YOLO ALGORITHM- uniqueness of objects

asked 2020-01-02 14:39:42 -0600

ikaranta gravatar image

Guys , does anyone know if there is a 'discriminator' for each object that has been detected?

i have 2 cameras and i want find 3D coordinates from the 2D coordinates of the center of mass of each object but i cant figure out how to match the corresponding center of masses.

edit retag flag offensive close merge delete

Comments

1

and how is one thing related to the other ?

what would your "discriminator" be ? (apart from probabilities it's already returning ?)

you get bounding boxes, so you have the "geometric center". for the center of mass, you would need contours or binary crops

(maybe you need a more sophisticated cnn, like RCNN, where you could do something with segmented object masks ?)

"uniqueness of objects" -- please explain !

berak gravatar imageberak ( 2020-01-02 15:34:07 -0600 )edit

@berak have put two web video cameras on the corners of the ceiling of room. Lets say that two people enters the room.I grab the first frame of the first camera and the first frame of the second camera. Afterwards, i implement YOLO algorithm on these two frames separately. So i have: Coords of geometric center1 , center2 (first camera - person1 person2) Coordsof center1',center2' (second camera - person1 person2) I intend to use cv2.triangulatePoints() in order to find 3D coords using coords of the centers. In order to do that i must know the corresponding geometric centers. That is, i must know that in the first frame of the first camera there is person1 and person2 and not just person and person( same thing for the second camera) so i can use the above function and find 3D coords

ikaranta gravatar imageikaranta ( 2020-01-04 14:51:21 -0600 )edit

so really, you're unable to find the center of a given bounding box ? (maths fail)

berak gravatar imageberak ( 2020-01-09 11:07:40 -0600 )edit

@berak my question is:

how can i have the coordinates from the geometric center of one object on the 1st frame on the 1st camera and the geometric center of the SAME object on the 1st frame of the 2nd camera through the results of YOLO algorithm

ikaranta gravatar imageikaranta ( 2020-01-09 13:01:47 -0600 )edit

SAME objects (from 2 seperate detections in 2 images), that's the key now

berak gravatar imageberak ( 2020-01-09 13:03:32 -0600 )edit

@berak exactly, i pointed out in the 1st comment, saying corresponding. Anyway is there any solution to this problem?

ikaranta gravatar imageikaranta ( 2020-01-09 13:09:07 -0600 )edit

no i don't think, there's any solution, your original problem seems to be ill-stated.

(you'll never get a proper 3d pose from the input you have now)

berak gravatar imageberak ( 2020-01-09 13:15:56 -0600 )edit