Ask Your Question
0

Solution for Multiple Object Detection and Tracking

asked 2014-05-21 07:37:25 -0600

Junglee gravatar image

updated 2014-05-22 00:54:45 -0600

berak gravatar image

Hi All, I am newbie, sorry if i am talking anything irrelevant because i have started learning recently. I wanted to detect multiple objects which are in motion in front of camera, and parallel when it gets detected i just want to display text on screen that Object is detected. well i have tried single object detection without color that comes with OpenCV_Source, i have tried examples but i didn't get how to made with many objects, objects comes on tray may be in different orientation and they may be in same color, so can anyone please suggest whats the best way to do it???

Objects that i want to detect

Regards, Junglee.

edit retag flag offensive close merge delete

Comments

2

Try to be more specific in your description of the problem. Is the tray clearly different from the objects? Is it smooth or textured? Is it moving? What about the lighting conditions? Are they constant or can very? And objects? Always the same or can differ? Post an example image.

Witek gravatar imageWitek ( 2014-05-21 15:26:06 -0600 )edit

@Witek , Tray is nothing but its just a plain moving sheet , it is black in color no texture(i missed it in attachment), yes it is moving continuously in one direction either back or forth, lightning condition will be normal or we could just make adjustments on top of tray to avoid shadows beside object, yes they are constant in unique place but orientation may change, objects will be same they won't differ, for example i got some parts from my garage ,can refer image attached.

Junglee gravatar imageJunglee ( 2014-05-21 23:52:11 -0600 )edit
1

Are these the objects you want to detect?? It is important to know exactly what objects you are dealing with before deciding for a particular solution. Unless you want to detect anything and you don't know what it is going to be. And what should be the output? Just some text each time an object is detected? What if we see more than one object? Do you need to count or recognize the objects or just detect that something is there?

Witek gravatar imageWitek ( 2014-05-22 03:15:05 -0600 )edit

@Witek, okay 'll answer you in detail, Lets say if i keep parts of my computer in front of camera then it should recognize(Not simply detect) what is what and these parts will be same they won't change, only their orientation and their place on tray may change. i want to recognize above objects for what i have now, of course there are 6 objects in above image and i just want to recognize all of 'em at the same time or i may place only 4 and show its name when it is recognized(in future i may want to display description), But let me recognize them first.

Junglee gravatar imageJunglee ( 2014-05-22 06:58:58 -0600 )edit
1

Ok, so now the situation is slightly different. You want to RECOGNIZE the objects and not only DETECT them. That is much more difficult. The key is to find some features that are easy to calculate and enable distinction between the objects at the same time. In your particular case, since you want to recognize these 6 objects that will just be oriented differently, it is quite simple.

  1. Subtract the empty background from the image with objects.
  2. Threshold the result
  3. Find contours.
  4. Calculate the area of the contours. You can recognize the four smallest ones just by their area.
  5. As for the two biggest ones, find average color of a small patch of pixels in the center of each of them. You will find your red and blue objects.
Witek gravatar imageWitek ( 2014-05-22 10:06:50 -0600 )edit

@Witek, Thanks for your valuable suggestion, 'll try this if i am facing any prob. 'll post it.

Junglee gravatar imageJunglee ( 2014-05-23 01:28:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-31 00:42:17 -0600

Junglee gravatar image

I Know its very old post of mine but i have been working on this field for long and moved on with some other libraries. Firstly i achieved my goal using Metaio, but unfortunately they shutdown the company without intimation. so i was back to square one and i have to repeat the whole thing so used Vuforia with Unity3d, and the results were not that great but ok.

Look for Vuforia, Wikitude for this functionalities.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-21 07:37:25 -0600

Seen: 4,814 times

Last updated: Aug 31 '16