Comments (9)
Yes, happened that I came across that post and I find it interesting to share.
from object-detection-opencv.
Hello @limkimhoe , I have not tried tiny YOLO yet. It's on my to-do list to try next. I will give it a try and get back to you.
from object-detection-opencv.
Thank you in advance!
from object-detection-opencv.
Sorry, just tried. I think it got no problem, my issue was the number anchors. I got 9 pairs and the number was stated 6.
from object-detection-opencv.
Hi Arun,
I found something interesting.
https://stackoverflow.com/questions/36921249/drawing-angled-rectangles-in-opencv
Wonder if this applicable to OpenCV with YOLO weight.
from object-detection-opencv.
Hello @limkimhoe , I am not sure I understood your question clearly. You want to draw angled rectangles over detected objects using YOLO in the image?
from object-detection-opencv.
Cool. Thanks for sharing @limkimhoe.
from object-detection-opencv.
@limkimhoe I came across the same issue you had earlier. Can you please tell, how can I know number of anchors I have? I have put 3 but I am not sure. I am following this tutorial and they dont explain on how to count anchors : http://emaraic.com/blog/yolov3-custom-object-detector#ref1
from object-detection-opencv.
@limkimhoe I came across the same issue you had earlier. Can you please tell, how can I know number of anchors I have? I have put 3 but I am not sure. I am following this tutorial and they dont explain on how to count anchors : http://emaraic.com/blog/yolov3-custom-object-detector#ref1
@MURL1DHAR You can run the following script to check the anchors of your images for better result. Example for 480x480 9 pairs of anchors:
darknet.exe detector calc_anchors data/obj.data -num_of_clusters 9 -width 480 -heigh 480
Anchors looks like:
37.5147,61.6030, 45.9996,87.0276, 55.9612,106.0157, 69.6980,128.4734, 87.5660,154.2261, 63.9268,244.7612, 94.8347,186.5155, 100.9767,341.4545, 139.2702,283.6874
After each pair, there is a space gap. Total of 9 pairs of floating numbers.
So your Yolo layer in cfg file will state num=9. The Tiny model, cfg given 6 anchors. So you have to recalculate your images with 6 anchors. However, I tested my Tiny model with 9 anchors, it worked for me too.
Hope it is clear and able to helps.
from object-detection-opencv.
Related Issues (20)
- File "yolo_opencv.py", line 39, in draw_prediction HOT 2
- SystemError: <method 'forward' of 'cv2.dnn_Net' objects> returned NULL without setting an error
- unrecognized arguments: --image dog.jpg
- opencv cannot read net - Error of "Unknown layer type"
- TypeError: only size-1 arrays can be converted to Python scalars HOT 4
- Error HOT 2
- How to train customs image ?
- please help me to for how to get the high accuracy in faster-rcnn and parameter tuning
- Command prompt hangs
- Where should i make changes in your code to detect Objects in Grayscale Image without changing it to RGB format?
- Error, help me to fix this (I'm using jupyter notebook)
- Error when using readNetfromDarknet
- Detect_person HOT 1
- Failed to parse NetParameter file: yolov3.weights in function 'cv::dnn::dnn4_v20201117::readNetFromDarknet' HOT 1
- Issue with NMSBoxes HOT 2
- IndexError: invalid index to scalar variable. HOT 2
- How can I do when 'IndexError: invalid index to scalar variable'. Its different from #34 HOT 3
- yolo_opencv.py: error: the following arguments are required: -i/--image, -c/--config, -w/--weights, -cl/--classes HOT 1
- How can i give path in argparse.add_argument
- Object detection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from object-detection-opencv.