# DNN module fails to find some large objects

**URL:** <https://forum.opencv.org/t/dnn-module-fails-to-find-some-large-objects/5696>\
**Category:** C++\
**Tags:** dnn\
**Created:** [October 18, 2021, 7:15am UTC](https://forum.opencv.org/t/dnn-module-fails-to-find-some-large-objects/5696 "2021-10-18T07:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephane\_Charette](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/stephane_charette/32/1369_2.png) [@Stephane\_Charette](https://forum.opencv.org/u/Stephane_Charette)\
**Post date:** [October 18, 2021, 7:15am UTC](https://forum.opencv.org/t/dnn-module-fails-to-find-some-large-objects/5696/1 "2021-10-18T07:15:28Z")

</div>

I have a YOLOv3-tiny network I trained using Darknet. I can successfully load that network using `cv::dnn::readNetFromDarknet()` and I can get the predictions. Everything mostly works.

But large objects somehow aren’t “seen”. Here is an example where you can see the objects detected are exactly the same, except for the pedestrian and the two cars. The image on the left is using Darknet, the image on the right is with OpenCV’s DNN module from OpenCV v4.5.3.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/6/644b569824b64f298de0a4cfa6d5332f8b63d0bd.jpeg)

Source video with many more examples: [Compare 4 YOLO results - YouTube](https://www.youtube.com/watch?v=fFYV2uPt-XI)

This is not an isolated example. All my tests suffer from the same thing, where objects in the foreground (often large objects) are undetected when I use OpenCV DNN vs Darknet.

Curious to know if someone might have an idea as to the cause, or what I need to fix.
