|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
Re: image processing using opencv - how to combine with the bobot code
Quote:
so what I need to write instead of mat, rect, imgproc, matofpoint, matofpoint2f, cvtype, scalar, size, and etc..? |
|
#4
|
||||
|
||||
|
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
|
|
#5
|
||||
|
||||
|
Re: image processing using opencv - how to combine with the bobot code
Nothing. As I said already, OpenCV is included. So go ahead and use mat, rect, imgproc, etc
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|