spmallick / learnopencv

Learn OpenCV : C++ and Python Examples
https://www.learnopencv.com/
20.69k stars 11.52k forks source link

object_detection_yolo.py opencv4 #313

Open zihaozhang9 opened 5 years ago

zihaozhang9 commented 5 years ago

https://github.com/spmallick/learnopencv/blob/master/ObjectDetection-YOLO/object_detection_yolo.py Does this code support opencv4? Why can't I detect any objects using opencv4 test yolov2?

eugeneRover commented 4 years ago

I have the same issue. Opencv 4.1.1 Python 2.7

zihaozhang9 commented 4 years ago

I have the same issue. Opencv 4.1.1 Python 2.7

Opencv is amazing, we can't see the implementation inside the function! Or you can succeed with the following environment python3.6 opencv3.4.1 opencv-contrib3.4.1

eugeneRover commented 4 years ago

I've finally managed to run the example with my configuration ( Opencv 4.1.1/ Python 2.7) !

Changes:

Here is the patch 1.txt Best wishes :)

zihaozhang9 commented 4 years ago
  • scalefactor

thanks~