Ask Your Question
0

ValueError: unsupported bit depth for aaline draw

asked 2013-04-09 14:39:43 -0500

wodiesan gravatar image

I'm working Keypoint Template Matching on a Raspberry Pi. I'm using LXTerminal, in the SimpleCV Shell. I've been trying to search for keypoints. When I type keys = area.findKeypoints() it takes a moment to do its thing. Then when I follow up with keys.draw() I get that ValueError, ending with (supports 32 & 24 bit). I checked the image and it is 640x480 images at 24 bit depth. Is there something I'm missing?

edit retag flag offensive close merge delete

Comments

SimpleCV Image is always 8 bit depth image. 24 bit?

jayrambhia gravatar imagejayrambhia ( 2013-04-09 16:42:41 -0500 )edit

That's what it returned within the error. I think I figured out what was happening: I binarized the image before trying keypoints. When I did it with the normal image it was fine.

wodiesan gravatar imagewodiesan ( 2013-04-09 16:49:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-09 22:30:46 -0500

kscottz gravatar image

So this is kinda a known bug on the raspberry pi. What you are seeing is a error in the pygame rendering interface. I have yet to find a good work around for it, but I really haven't gotten a chance to debug it properly. Basically a good chunk of the drawing layer rendering gets borked in SimpleCV on the pi due to issues with pygame. This means that while the vision calls do in fact work, none of the draw commands can render correctly. We have plans to gut pygame from SimpleCV over the summer to fix this. If I get some spare time I may see if we can come up with a patch in the near term.

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-04-09 14:39:43 -0500

Seen: 655 times

Last updated: Apr 09 '13