OpenCV on CBC

4 replies [Last post]
baobrien
baobrien's picture
Title: NooBot+
Joined: 11/14/2010
Posts:
BotPoints: 14
User offline. Last seen 11 years 31 weeks ago.

Has anyone made any attempts at running OpenCV on the CBC yet? It doesn't seem like it'd be too terribly difficult, especially with the already existing work of Rand and others. Also interesting would be getting JNA running with CBCJVM by recompiling the jniloader library, which would also give access to the java bindings for OpenCV.

If it's not broken, take it apart and fix it

Isn't it fun when your team's home base is only about a mile from GCER?

baobrien
baobrien's picture
Title: NooBot+
Joined: 11/14/2010
Posts:
BotPoints: 14
User offline. Last seen 11 years 31 weeks ago.

I'm going to try to get JNA running on arm.

If it's not broken, take it apart and fix it

Isn't it fun when your team's home base is only about a mile from GCER?

catron
catron's picture
Title: ZoomBot
Joined: 06/02/2009
Posts:
BotPoints: 98
User offline. Last seen 10 years 30 weeks ago.

While you could probably get OpenCV compiled and running with relative ease, getting the camera to work would be a completely different story. The camera's driver is a hack job, and corrupts itself at resolutions higher than 160x120. If you do have any success though it would be neat to hear about. Truthfully I haven't used JNA for anything too serious, but it should be easy to get working. I considered JNA for a long while, but eventually went with JNI for the CBCJVM libcbc binding.

Best of Luck.
Braden.

"When you do things right, people won't know you've done anything at all."

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 14 weeks ago.

OpenCV is also VERY resource intensive. In reality you would most likely only do things the KISS library already supports.

All is fair in love and war, and botball is both :)

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

As Scott said, OpenCV really isn't designed for low-end computers like the Chumby; it probably wouldn't have the performance necessary for Botball.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS