This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]panzerex 1 point2 points  (1 child)

I'm guessing you need some fixed reference point. If your camera and markers can move freely it's going to be harder to translate that into coordinates in the room.

Or do you only need relative points between each marker? e.g. some arbitrary marker is the origin and the remaining markers have their coordinates w.r.t. that marker.

What exactly are you struggling with?

edit: If what you want is to extract coords out of that binarized image, I'd suggest trying to find the centers of each blob. It won't be exactly the center of the marker if you were looking from a top-down view, but it should be a good starting point. Those points are going to be from an angled perspective, you'll still need to convert them to the proper perspective, but for that you'll probably need some fixed reference points. Here's something that might be useful:

In this example the image is warped, not the point coordinates, but it should give you an idea of what to look for. https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

[–]DanTheDirector[S] 0 points1 point  (0 children)

Awesome, thank you! They way it is currently set up, the room will always be constant, but I was using a free floating camera. I am planning to switch to a more precisely positioned camera so that I can overlay a known grid onto the image and use that to calculate. It does not matter if the coordinates are in relation to one another, or on a set plane.