fvilmos / tello_object_tracking

DJI Tello Drone tracks a moving object (a face or a person) on the horizontal/vertical plane keeps also a constant distance from the detection.
GNU General Public License v3.0
27 stars 7 forks source link

opencv "Assertion failed" error #2

Closed Pejosonic closed 2 years ago

Pejosonic commented 3 years ago

When trying to run the example i'm getting this error: run command: python3 tello_object_tracking.py -proto ./data/ssd_mobilenet_v1_coco_2017_11_17.pbtxt -model ./data/frozen_inference_graph.pb -obj Person -debug True -dconf 0.4


[ERROR:0] global C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-ep71p_ws\opencv\modules\videoio\src\cap.cpp (162) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-ep71p_ws\opencv\modules\videoio\src\cap_images.cpp:293: error: (-215:Assertion failed) !_filename.empty() in 
function 'cv::CvCapture_Images::open'

Maybe is because an opencv version mismatch? Installed opencv-python-4.5.3.56

fvilmos commented 3 years ago

At first glance, it seems the application can't connect to the Tello video stream, therefore no image is decoded. If you are connected to the Tello wifi and the problem still persists, please try to install the ffmpeg drivers on your system.