View Single Post
  #7   Spotlight this post!  
Unread 01-02-2017, 09:32
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: Vision problem - robot view not matching Grip view

Quote:
Originally Posted by skidad68 View Post
So I've been monkeying around with this for some time now, and I think the real problem is that the HSV thresholds generated by GRIP don't produce the same results on the roboRIO. (Note that the camera I used to tune GRIP is the same one used by the roboRIO). Plus, the lack of brightness control in GRIP makes it pretty much useless for tuning as the brightness is a critical setting to improve noise rejection.
Yes, this is going to be true whenever the Robot calls the (CameraServer's) setResolution(...) and/or setContrast(...) methods. Good that you figured out how to adjust your HSV parameters into modified generated-code. The other (easier) approach to this should be to have the modified camera-server running on the RIO, and then have GRIP connect to this stream via 'add-ip-camera' in GRIP , eg with http://roborio-TEAM-frc:1181.
Reply With Quote