View Single Post
  #1   Spotlight this post!  
Unread 07-02-2017, 18:40
ST-MTP ST-MTP is offline
Registered User
FRC #4913
 
Join Date: Feb 2017
Location: Anaheim
Posts: 1
ST-MTP is an unknown quantity at this point
Vision Thread error

visionThread = new VisionThread(server,new Pipeline(), pipeline -> {
if (!pipeline.filterContoursOutput().isEmpty()) {
Rect r = Imgproc.boundingRect(pipeline.filterContoursOutput ().get(0));
synchronized (imgLock) {
centerX = r.x + (r.width / 2);
}
}
});

We met an error: The constructor VisionThread(CameraServer, Pipeline, (<no type> pipeline) -> {}) is undefined.
Can you help us with that ? And can you explain the code ?
Reply With Quote