OpenCVで顔認識 | Visualize the Invisible

Visualize the Invisible

株価の変動をデータとAIを使って分析、何が起きているかを「見える化」したい。


http://uepon.hatenadiary.com/entry/2017/04/06/213128

まずは顔の認識、その次に切り出し、その次にファイル送信かな。

-- Result --

pi@raspberrypi:~ $ python facetest.py
OpenCV Error: Parsing error (./haarcascade_frontalface_default.xml(7): Valid XML should start with '<?xml ...?>') in icvXMLParse, file /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/core/src/persistence.cpp, line 2252
Traceback (most recent call last):
  File "facetest.py", line 6, in <module>
    faceCascade = cv2.CascadeClassifier('./haarcascade_frontalface_default.xml')
cv2.error: /build/opencv-U1UwfN/opencv-2.4.9.1+dfsg1/modules/core/src/persistence.cpp:2252: error: (-212) ./haarcascade_frontalface_default.xml(7): Valid XML should start with '<?xml ...?>' in function icvXMLParse