View Single Post
  #1   Spotlight this post!  
Unread 26-01-2017, 16:05
mjbergman92's Avatar
mjbergman92 mjbergman92 is offline
Registered User
AKA: Malachi
FRC #3534 (House of Cards)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2026
Location: michigan
Posts: 5
mjbergman92 is an unknown quantity at this point
Listener from VisionThread? What do I put in this?

This is our first year of vision processing. I am trying to figure out what goes in for the "listener" portion for the VisionThread.

Code:
visionThread = new VisionThread(server, new GripPipeline(),?){
            if (!gripPipeline.filterContoursOutput().isEmpty()) {
                Rect r = Imgproc.boundingRect(gripPipeline.filterContoursOutput().get(0));
                synchronized (imgLock){
                    centerX = r.x + (r.width / 2);
                }
            }
        }
Please help!
Reply With Quote