devicehive-video-analysis icon indicating copy to clipboard operation
devicehive-video-analysis copied to clipboard

Error in Raspberry Pi

Open ramineniraviteja opened this issue 6 years ago • 2 comments

$ 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'

ramineniraviteja avatar May 13 '18 18:05 ramineniraviteja

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.

igor-panteleev avatar May 14 '18 08:05 igor-panteleev

'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

vamshireddyp avatar Jul 12 '18 14:07 vamshireddyp