AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.76k stars 7.96k forks source link

iPhone vertical videos #1790

Open leicao-me opened 6 years ago

leicao-me commented 6 years ago

The output video from iPhone "vertical" video (height > width) inputs will be rotated by 90 degrees counter-clockwise by Darknet automatically. Thus, the detection works very bad on the rotated videos.

Note:

  1. Those videos that have this problem are taken by iPhone directly. Those vertical videos generated or edited and saved by social media apps have no such problem.
  2. Horizontal videos (width > height) have no such problem.
  3. Tested on iPhone 7 Plus and iPhone X.

Is there a way to auto-detect such videos and rotate them in the darknet, or can someone provide a workaround solution, please?

One can test this problem by visiting my project website and upload a vertical video from your iPhone: http://objectdetect.pro

Please upload videos with no potential privacy issues. You can overwrite your previous video by uploading a new video. Previous videos are not saved in the server.

Thank you

leicao-me commented 6 years ago

No one experience the same error?

AlexeyAB commented 6 years ago

You should add your code: