OpenCV object detection via cascade java (NOT FACE DETECTION)
dear friends, i use openCV in Java. Everything is fine but the thing is that am limited with API, i cant create C files (i'm not skilled in C/C++ that much and i did not use them for a long time) for my specific tasks, thus i must solve my pr开发者_如何学JAVAoblem with haar cascade xml file...
My task is to detect simple objects NOT FACEs, just simple objects like cup on the table, clock on the wall...
I think it is possible with edge detecting, but i did not find any cascades for this simple detection stuff. It is quite hard for me to google it because when i search object detection it always gives face detection stuff...
Could you please suggest me solution for this? Your help will be appreciated. Regards.
You can create your own haarcascades, but it's a lot of work! You will find some interesting links in the answers to this question.
As you said, there are other ways to detect objects, like edge detection or color tracking for instance. There are plenty of resources for this on the web.
I guess i find the solution,
1) Solution one - there is very useful blob function witch does exactly what i wanted to, and even more, it detects center of the blob...
2) You can use deprecated method CV.findContours(...) and do your necessary stuff.
Please let me know if you have any suggestions or fixes to this...
精彩评论