View Single Post
  #5   Spotlight this post!  
Unread 25-01-2017, 16:44
wlogeais wlogeais is offline
Registered User
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2011
Location: Minnesota
Posts: 18
wlogeais is an unknown quantity at this point
Re: Need NetworkTables to update??(Grip)

Quote:
Originally Posted by MarlyM64 View Post
yes i have code similar to i, but it still won't work ._.


if (!pipeline.filterContoursOutput().isEmpty()) {

System.out.println(pipeline.filterContoursOutput() .get(0));
//SmartDashboard.putNumber("opencv",pipeline.filterC ontoursOutput().get(0));
Seems to me your goal is really how to 'get' and display?

if (!pipeline.filterContoursOutput().isEmpty()) {
Rect r = Imgproc.boundingRect(pipeline.filterContoursOutput ().get(0));
SmartDashboard.putString("opencv", "at (" + r.x + ',' + r.y + ')' );
Reply With Quote