|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
For the past couple weeks I have been working on creating a system for recognizing FRC hot targets and determining distance to them. This is a work in progress, and any feedback / suggestions people have would be much appreciated.
GitHub Repository |
|
#2
|
||||
|
||||
|
Re: FRC Computer Vision Code
Are you planning on using OpenCV? Right now it looks like you're writing everything from scratch and that's going to take a very long time to do.
|
|
#3
|
|||
|
|||
|
Re: FRC Computer Vision Code
I have already figured the whole thing out, I am just implementing what I already have planned on paper at this point. Also, I looked at the code for openCV, and while it is a very powerful framework, using it for this would be a performance nightmare. The first version of this actually used openCV. I spent over a week optimizing it, but it still ran slow. OpenCV is an truck; I need a sedan.
|
|
#4
|
||||
|
||||
|
Re: FRC Computer Vision Code
Are you planning to run this code on the roboRIO or the driver station? I know OpenCV got built for the roboRIO but I'm not sure if it was ever benchmarked.
OpenCV should run fine on a decent driver station (so no classmate). I got it working last year at about 30 fps on a crappy three year old Alienware laptop. |
|
#5
|
||||
|
||||
|
Re: FRC Computer Vision Code
OpenCV has been around since June of 2000 and was initially developed in Russia...
|
|
#6
|
|||
|
|||
|
Re: FRC Computer Vision Code
Quote:
Quote:
. I would not be surprised if running the vision code on the roboRIO would be faster anyway (I'm only mostly joking). |
|
#7
|
||||
|
||||
|
Re: FRC Computer Vision Code
This doesn't happen. The robot is always has communication with the driver station.
|
|
#8
|
|||
|
|||
|
Re: FRC Computer Vision Code
Quote:
At this point I'm not entirely sure whether we will be doing the vision processing on the drive station or the roboRIO. The roboRIO has a slower processor, but sending an image from the camera to the roboRIO, then to the modem, and then to the drive station sounds like a lot of latency. |
|
#9
|
|||
|
|||
|
Re: FRC Computer Vision Code
Quote:
The other problem we had was we didn't account for the diamond plating on the driver station so the reflection from the LED ring was tricking our vision tracking software into thinking it was a target. |
|
#10
|
||||
|
||||
|
Re: FRC Computer Vision Code
Quote:
Quote:
If that happens, your code should ignore "targets" smaller than some threshold. Then you'd only be processing the real targets. |
|
#11
|
|||
|
|||
|
Re: FRC Computer Vision Code
Sorry for taking up everyone's time, but the communication on this team has been rather poor coming into this season. First of all, we are running our vision code on the computer and I am not worried about processing power or speed. Second of all, we will be using openCV for our vision processing. After reading your code, I'm not sure it's right for the job. In the past, we have had bandwidth issues with our camera, and I think that somehow got miscommunicated to our newer members.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|