Help With Camera?

4 replies [Last post]
TreeTreeTree
TreeTreeTree's picture
Title: NooBot
Joined: 05/20/2013
Posts:
BotPoints: 10
User offline. Last seen 9 years 12 weeks ago.

First time programmer here-
I was wondering how to go about defining and recognizing the size of a blob using the camera. Any help?

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.

Hi, welcome to the Botball Community! I assume you're using the KIPR Link (2013 Botball controller) and not the CBC (2012 and earlier)? If that assumption is correct, there should be some sample code for the camera in the workshop slides, which I think includes info on blob size. I will lookup the slide number when I have a moment and get back to you.

EDIT: Based on slide 236 in the 1.4.9 workshop slides, I *think* you want get_object_area(channel, object)

Let me know if you have any follow-up questions.

-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

dgoree
Title: NooBot
Joined: 02/13/2012
Posts:
BotPoints: 130
User offline. Last seen 5 years 47 weeks ago.

Jeremy, is there away to tag other community members in posts? I believe TBTF is fairly experienced in getting blob sizes.

-Daniel Goree
Former...
Senior Project Manager
President
Norman Advanced Robotics (13-0113)

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.

Unfortunately I don't think there is. :-(

-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

TreeTreeTree
TreeTreeTree's picture
Title: NooBot
Joined: 05/20/2013
Posts:
BotPoints: 10
User offline. Last seen 9 years 12 weeks ago.

Thank you! I looked up the slide and I think it did just the trick. :)