Giter Club home page Giter Club logo

homerecognition's Introduction

树莓派人脸识别

1、识别熟悉的人 2、语音播报

环境准备

# Ubuntu
sudo apt-get install libdlib-dev libblas-dev liblapack-dev libjpeg-turbo8-dev
# Debian
sudo apt-get install libdlib-dev libblas-dev liblapack-dev libjpeg62-turbo-dev

# 声音
sudo apt-get install libasound2-dev

设置声音输出方式

sudo raspi-config
设置使用HDMI音频输出

测试工具
sudo apt install mplayer mpg123 -y 

测试声音
sudo mplayer xx.mp3

设置帧率

https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=268139&p=1627824#p1627824
sudo touch /etc/modprobe.d/bcm2835-v4l2.conf
add 
options bcm2835-v4l2 max_video_width=1920 max_video_height=1088

其余优化帧率方法

https://www.e-consystems.com/Articles/Camera/accessing_cameras_in_opencv_with_high_performance.asp
https://github.com/econsystems/opencv_v4l2

FAQ

树莓派遇到编译问题 “{aka ‘__gnu_cxx::__normal_iterator<dlib::vector<double, 2>*, std::vector<dlib::vector<double, 2> > >’} changed in GCC 7.1” ,修改 /home/pi/gopro/pkg/mod/github.com/!kagami/[email protected]/face.go

添加忽略警告标识: -Wno-psabi // #cgo CXXFLAGS: -std=c++1z -Wall -O3 -DNDEBUG -march=native 为 // #cgo CXXFLAGS: -std=c++1z -Wall -O3 -DNDEBUG -march=native -Wno-psabi

参考文献:

http://dlib.net/ https://hackernoon.com/face-recognition-with-go-676a555b8a7e https://studygolang.com/articles/20172

homerecognition's People

Contributors

panyingyun avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.