简体   繁体   中英

OpenCV - Detect (one of) multiple objects in image

I have image with wood trunks .

I have to detect each wooden trunk individually. It looks similar like following image:

wooden trunks

Do you have any ideas about approaches how to do that?
Should I use Al? Or just machine learning like SVM? Or some pattern recognition algorithm? Or I can train it.

training dataset

I tried to detect circles/ellipses, but it doesnt have good results. I also read that wood reflect red color.
But I dont have so much experience with OpenCV, so I dont know which approach is the best for this task.
Thank you for your help

I think retraining YOLO seems like a good option:

https://github.com/AlexeyAB/darknet

You'll need about 2,000 labeled images, plus image augmentation. I've used this library for image augmentation for YOLO:

https://github.com/aleju/imgaug/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM