Ask Your Question
0

Help to identify orientation of R.A.M. module

asked 2018-10-18 11:51:08 -0600

confusedboii gravatar image

updated 2018-10-18 11:54:55 -0600

berak gravatar image

I've been working on a project with OpenCV to identify the orientation of the module.

image description

(If the module is facing up or down, flipped right or left... so there's 4 orientation). I've tried matchTemplate and using the slot in the middle as a reference but I haven't had the best results. What would you guys recommend?

edit retag flag offensive close merge delete

Comments

Google for convolutionary neuronal networks. And esp about difference classification/detection.

If you want to do it with opencv - take a look at the dnn module / examples.

holger gravatar imageholger ( 2018-10-18 13:01:42 -0600 )edit

What do you want exactly ? What have you already try? Can you give all possible images?

LBerger gravatar imageLBerger ( 2018-10-18 14:26:07 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-10-19 01:33:41 -0600

berak gravatar image

you could try to find a homography between a non-rotated template, and your scene. once you have that, the rotation can be calculated like:

## derive rotation angle from homography
theta = - math.atan2(M[0,1], M[0,0]) * 180 / math.pi
edit flag offensive delete link more
0

answered 2018-10-18 19:23:54 -0600

Tetragramm gravatar image

How about, threshold the image so you have the whole RAM as a white mask, and find the center.

Then take the original image, use inRange to find the gold, and find it's center. Then between the two centers you know the location.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-18 11:47:45 -0600

Seen: 222 times

Last updated: Oct 19 '18