Closed mtbsteve closed 3 years ago
In the meantime I applied the PR https://github.com/stereolabs/zed-yolo/pull/37 Now I get the following error. libgtk2.0-dev and pkg-config are installed at their latest versions.
**** 1 Results ****
INFO:__main__:person: 94.0%
Traceback (most recent call last):
File "darknet_zed.py", line 489, in <module>
main(sys.argv[1:])
File "darknet_zed.py", line 477, in main
cv2.imshow("ZED", image)
cv2.error: OpenCV(4.4.0) /tmp/pip-install-nionzz5z/opencv-python_f450b930bdfe496fa4d5bfec20096961/opencv/modules/highgui/src/window.cpp:651: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'
apsync@apsync:~/GitHub/darknet$
OK - I solved it. You need to apply PR #37 as per post above and then run the following:
pip install opencv-contrib-python
Nvidia Jetson TX2 with Jetpack 4.4 on Ubuntu 18.04 CUDA 10.2.89; OpenCV 4.1.1, cuDNN 8.0.0.180; ZED SDK 3.4 for Jetpack 4.4. zed-ros-wrapper and zed-python-wrapper installed darknet/yolo installed. makefile includes ZED_CAMERA=1; no errors generated by make.
All ZED tools run well. ZED access via the zed-ros-wrapper works well. Darknet YoloV3 and V4 run well on sample images, videos and with a live webcam.
When I run
python3 darknet_zed.py -c cfg/yolov3.cfg -w yolov3.weights -m cfg/coco.data -t 0.5
I am getting a NULL pointer access error.
Full output: