Closed igordutra closed 8 years ago
Hi @igordutra,
Look at the ofRectangle documentation.
If you assign a ofRectangle some coordinates and a size, you can check whether the blob has gone Inside the box using this https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/types/ofRectangle.h#L462
You can do multiples as well.
In terms of circles/triangles and polygons I'm sure there are ways.
David
Thanks, I'll give it a go!
Hi @DHaylock
We currently have a horizontal line to trigger traffic in and traffic out events. We're trying to position the cameras in different angles and locations, therefore the horizontal line isn't suitable for all our scenarios. I would like to make the following adjustments to the code but since I'm not familiar with openFrameworks I don't know where to start:
Can you send some reference and tips on how to implement the above items?
Thanks Igor