Vision Programming NiryoOne

  • I am currently working on a project on NiryoOne which requires facial detection of a person through NiryoOne camera (ELP SONY IMX). The code that I am using works on my laptop running ubuntu. However, I am currently getting an assertion error, which suggests that the file path has not been properly specified, but have tried various file path and none seem to be the solution. Not certain if I am missing some dependencies or packages on NiryoOne. Any help regarding the use of OpenCV would be greatly appreciated.

    For both laptop and NiryoOne

    Ubuntu: 16.04 Python: 2.7.13 OpenCV: 3.3.1-dev


    niryo@niryo-desktop:~/sepra6$ python OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/objdetect/src/cascadedetect.cpp, line 1698 Traceback (most recent call last): File "", line 31, in faces = face_cascade.detectMultiScale(gray, scaleFactor=1.5, minNeighbors=5) #1.5, 5 standard values ; scaling factor increase for higher accuracy cv2.error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/objdetect/src/cascadedetect.cpp:1698: error: (-215) !empty() in function detectMultiScale

Advertising from our partners