Go to Post Its a good idea to learn to tame CAD monkeys. They're very useful. - Akash Rastogi [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 20-01-2017, 14:14
neilmart neilmart is offline
Registered User
FRC #2130
 
Join Date: Jan 2016
Location: idaho
Posts: 4
neilmart is an unknown quantity at this point
Yet Another GRIP Request

Hello! I have some questions regarding GRIP, and how to implement its pipeline to find the center of rectangles. I've essentially copied the example on screensteps live, and I've had some issues calling parts of the auto -generated GripPipeline class. I'll post the code and the error below, and if anyone has had this problem before and resolved it I would be incredibly appreciative.

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture() ;
camera.setResolution(IMG_WIDTH, IMG_HEIGHT);

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

Upon writing this, I get an error that reads "The constructor VisionThread(UsbCamera, Pipeline, (<no type> pipeline) -> {}) is undefined" As far as I can tell, pipeline should be a part of wpilib yet seems to lack any documentation among its library.

Again, any help would be greatly appreciated, thank you for your time.
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 03:39.

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