devicehive-video-analysis
devicehive-video-analysis copied to clipboard
Error in Raspberry Pi
$ python3 eval.py --video="aab.mp4"
** (Detector:2966): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted
$python3 daemon.py [INFO] 2018-05-13 17:50:24,420: Start camera loop terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted
$python3 Python 3.5.3 [GCC 6.3.0 20170124] on linux
import tensorflow import cv2 tensorflow.version '1.4.0' cv2.version '3.4.0'
Hi, How do you install openCV on RPI? AFAIK opencv-python that is used in this demo do not officially support ARM builds. Best solution for now is to build openCV from scratch. Here you can found good tutorial.
'std::bad_alloc' what(): std::bad_alloc
This allocation error is due to Heap Memory so just as mentioned above try to reinstall using some other way.. If you haven't installed please do follow this the best one and you can build from scratch.
Just follow the above mentioned link thats the best one..
Goodluck