Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   image processing using opencv - how to combine with the bobot code (http://www.chiefdelphi.com/forums/showthread.php?t=154123)

Noam 23-01-2017 07:10

image processing using opencv - how to combine with the bobot code
 
I have code for image processing using opencv, and i'm trying to combine it with the robot code - now I have just a opencv program, that find the reflective (and the size and the position of the reflective) - when the camera is connected to the computer. How can I combine the opencv code, with the robot code ?

Thanks in advance

euhlmann 23-01-2017 07:23

Re: image processing using opencv - how to combine with the bobot code
 
OpenCV is now included in WPILib projects. So just copy and paste your OpenCV processing code into your robot program, and use cscore to get Mats from a USB or AXIS camera connected to the roboRIO.

Noam 24-01-2017 11:01

Re: image processing using opencv - how to combine with the bobot code
 
Quote:

Originally Posted by euhlmann (Post 1635031)
OpenCV is now included in WPILib projects. So just copy and paste your OpenCV processing code into your robot program, and use cscore to get Mats from a USB or AXIS camera connected to the roboRIO.

oh ok thanks

so what I need to write instead of mat, rect, imgproc, matofpoint, matofpoint2f, cvtype, scalar, size, and etc..?

SamCarlberg 24-01-2017 11:31

Re: image processing using opencv - how to combine with the bobot code
 
You can use GRIP to generate code straight into your robot project. See the Screensteps pages

euhlmann 24-01-2017 16:19

Re: image processing using opencv - how to combine with the bobot code
 
Quote:

Originally Posted by Noam (Post 1635555)
oh ok thanks

so what I need to write instead of mat, rect, imgproc, matofpoint, matofpoint2f, cvtype, scalar, size, and etc..?

Nothing. As I said already, OpenCV is included. So go ahead and use mat, rect, imgproc, etc


All times are GMT -5. The time now is 21:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi