Go to Post Unless your HS students have earned BSEE and BSME degreees already, how can they lead or run an engineering team? - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2017, 11:02
wwalcher wwalcher is offline
Registered User
FRC #4511
 
Join Date: Jan 2017
Location: Minnesota
Posts: 5
wwalcher is an unknown quantity at this point
How do you draw a bounding box using GRIP?

Hey there!

I've managed get my GRIP pipeline working, and have successfully manipulated the data from NetworkTables in our Java program to detect the distance from the targets on the sides of the gear hook.
However, I now want to actually use the vision data to determine how the robot drives. Since there are two targets being detected, I felt it would make sense to draw a bounding box around the two and use the center of the bounding box as my target for the hook (as it should be approximately in the middle of the bounding rectangle). I figured that GRIP would have the ability to draw a bounding box, but lo and behold, it does not. So, I figure I can use OpenCV to do this using the boundingRect() method, but my question is: How do I do this? Is there a way for me to access the actual OpenCV code being generated by GRIP and add in the boundingRect() method?
Any help would be greatly appreciated!

Thanks!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi