RaspBerry PI/Speach Recognition

Image Recognition (=이미지 인식)

ElectricShock 2018. 9. 21. 13:49

졸작의뢰 필요하신분은 (▶LINK)로 방문해주세요.


ㄱㄹㅎ (ㅈㅎㅇ)


부품리스트

RPi

Pi Cam

MP3 Module (◀LINK)

Speaker

Arduino (Option)



동작원리

Pi Cam을 통해 구분되는 3가지 동작을 이미지로 추출하여

각 이미지에 따라 3개의 출력으로 구분이어야한다.

이때의 출력이 MP3 Module을 통해 Speaker로 출력된다.

MP3모듈을 제어하기위해 Arduino가 들어갈 수도 있다.



Comparing two images taken from Pi camera

https://www.raspberrypi.org/forums/viewtopic.php?t=151371


https://www.pyimagesearch.com/

In this tutorial,

you will learn how to pip install OpenCV on Raspberry Pi.

이 튜토리얼에서,

넌 배울수있다. 어떻게 pip이 설치하는지 OpenCV를 on RPi상에.

In previous OpenCV install tutorials

I have recommended compiling from source;

however, in the past year it has become possible to install OpenCV via pip, Python's

very own package

이전 OpenCV 설치 튜토리얼에서

난 이미 추천했다. 비교하는걸 from 소스를;

하지만, in the 지난해에



Terminal명령어(필수)

sudo apt-get install python-opencv




▼MP3모듈

http://instructables.tistory.com/674



https://www.pyimagesearch.com/2015/02/05/thumbs-hand-gesture-recognition/

★ https://www.pyimagesearch.com/ (Main)

https://www.pyimagesearch.com/2018/09/19/pip-install-opencv/ (오픈CV설치)

* https://www.pyimagesearch.com/2018/05/21/an-opencv-barcode-and-qr-code-scanner-with-zbar/ (QR Code, Bar Code 리더)

https://www.pyimagesearch.com/2018/03/19/reading-barcodes-with-python-and-openmv/ (Reading Bar Code QR Code)

https://www.pyimagesearch.com/2017/07/24/bank-check-ocr-with-opencv-and-python-part-i/ (Bank Check OCR)

https://www.pyimagesearch.com/2017/07/17/credit-card-ocr-with-opencv-and-python/ (Credit Card OCR)

https://www.pyimagesearch.com/2017/06/19/image-difference-with-opencv-and-python/ (두개 이미치 차이)

https://www.pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/ (눈 깜빡임 졸음운전 방지)

https://www.pyimagesearch.com/2016/10/31/detecting-multiple-bright-spots-in-an-image-with-python-and-opencv/ (Detecting Multi Bright Spot)



Gesture Recognition Code

---

포함되야할 Header

#include<iostream>

#include "opencv2/objdetect/objdetect.hpp"

#include "opencv2/highgui/highgui.hpp"

#include "opencv2/imgproc/imgproc.hpp"

iostream.h





▼Zoom IN, Zoom OUT

Guesture Detection

https://medium.com/@CLiu13/gesture-detection-with-a-raspberry-pi-f72a6038e967

Guesture Detection with a Raspberry Pi


Ten years later, we continue to use accessories for controlling consumer electronics.

For example the TV Despite its great technological improvements over time

still relies on a remote control to perform basic tasks.

Instead of fumbling around for the remote when I want to change the channel,

I should 




https://www.youtube.com/watch?v=W4Afc9qcj4I





C++코드 넣는법

Cross Compiler :: 라즈베리파이에서 컴파일하면 속도가 느리므로 DeskTop에서 컴파일후 넣는 방식이 효율적이다.

RPi에서 Terminal창을 켜고 ifconfig하고 치면 RPi의 IP주소가 뜬다.

예를들면 192.168.192.61로 뜬다.

NetBean IDE 을 사용하여 데스크탑 환경에서 컴파일후 RPi에 넣어야 작업이 효율적이다.


실행후 Tools >> Plugins


File >> New Project >> C/C++ Application