Camera Bounding Box Functions

1 reply [Last post]
Thatsillogical
Thatsillogical's picture
Title: NooBot
Joined: 04/19/2013
Posts:
BotPoints: 26
User offline. Last seen 9 years 11 weeks ago.

We're trying to use the camera to find the bounding box of certain blobs.

According to the docs:

get_object_bbox [Category: Vision]
Format: rectangle get_object_bbox(int channel, int object);
Returns the bounding box of the given object on the given channel as a rectangle data type. For example,

  1. rectangle mybox;
  2. mybox = get_object_bbox(0,2);

However, when we try to run this code, the rectangle object is not found.

If it's relevant, we're using the CBCv3 with link firmware 1.9.5 and KISS IDE 4.0.5

Has anyone had success with using bounding boxes with the CBCv3?

:3

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 9 years 16 weeks ago.

Hi,

Try these two things:

1. Instead of rectangle, try struct rectangle.
2. Try manually including #include <kovan/geom.h>

If those don't work, paste your entire program and I'll try running it locally.

Thanks.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.