Ask Your Question
0

Find rotated and scaled marker

asked 2013-10-09 03:08:28 -0500

underst0rm gravatar image

updated 2013-10-09 03:16:58 -0500

Hi,

I've been looking into finding a simple marker

image description

on an image:

image description

There might be several markers in the image and they might be scaled and rotated. I've looked into SURF etc. both in openCV and simplecv but it looks like their are more targeted for more complex images. So I have not got them to work.

Is there a possibility to match blob contours or so? Your help and hints on how to solve this will be greatly appreciated!

I've also had a look at Hu Moments - but i think this does not recover the rotation, right?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-09 08:22:16 -0500

updated 2013-10-09 08:37:56 -0500

can not help much at first we do the deskewing image right?

simplecv with it is easy.

see a image deskewing:

from SimpleCV import *
import time


img = Image("scene_2.png") # carrega a imagem 
bin = img.binarize().invert()#binariza para que fique mais facil encontrar a rotacao
bin = bin.smartRotate()


bin.show()
time.sleep(5)

result:

image description

after that you can also extract the object so that it becomes easier to detect :

from SimpleCV import *
import time


img = Image("scene_2.png") # carrega a imagem 
binario = img.binarize()#binariza para que fique mais facil encontrar a rotacao

binario = binario.smartRotate()

blobs = binario.findBlobs()

obj = blobs[-1] # extrai blob maior para obj

obj = obj.crop() #recorta obj

obj.show()
time.sleep(5)

image description

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-10-09 03:08:28 -0500

Seen: 273 times

Last updated: Oct 09 '13