Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Help with coding CPP and OpenCv (http://www.chiefdelphi.com/forums/showthread.php?t=145839)

Bernstern 16-03-2016 23:58

Help with coding CPP and OpenCv
 
Hello,

I am working with the Jetson Tk1 and Nvidia Toolkit for the FRC stronghold competition. I have spent 8 hours today working on this and have basically given up. Are any teams willing to give up their cpp files for vision on a coprocessor, or willing to help because at this stage anything would be great :).

virtuald 17-03-2016 00:07

Re: Help with coding CPP and OpenCv
 
You should use the search functionality of the forum, there's lots of stuff.

http://www.chiefdelphi.com/forums/sh...d.php?t=142173

ProfessorAlekM 17-03-2016 12:37

Re: Help with coding CPP and OpenCv
 
You could try using my blob detection code here: http://einsteiniumstudios.com/make-y...ck-a-ball.html

Despite the fact that it's named 'ball tracking for BeagleBone' it's actually just blob detection on a debian/ubuntu system.

axton900 24-03-2016 20:00

Re: Help with coding CPP and OpenCv
 
Hey there!
If you are looking for some OpenCV CPP code that would be useful, I would recommend taking a look at Team 2053's TowerTracker which is a C++ port of Team 3019's TowerTracker which can be found here: https://github.com/team2053tigertron...016/src/vision
Good luck!

wireties 26-03-2016 02:47

Re: Help with coding CPP and OpenCv
 
Quote:

Originally Posted by axton900 (Post 1562772)
Hey there!
If you are looking for some OpenCV CPP code that would be useful, I would recommend taking a look at Team 2053's TowerTracker which is a C++ port of Team 3019's TowerTracker which can be found here: https://github.com/team2053tigertron...016/src/vision
Good luck!

Please include complete link? I'd like to look at this.

TIA

jreneew2 26-03-2016 07:56

Re: Help with coding CPP and OpenCv
 
Here you go

here

We also have code that works on the raspberry pi. I can upload that tonight if you want.

axton900 26-03-2016 19:13

Re: Help with coding CPP and OpenCv
 
Hey there!
I would be interested in that if you don't mind. Our team is also using a Raspberry Pi and would like to see how you pushed that through.
Thanks!

jreneew2 27-03-2016 09:34

Re: Help with coding CPP and OpenCv
 
I can grab the file tomorrow. Basically we ssh into the raspberry pi through the robot radio then edit the files via the command line. We use systemctl to run a bash script that sets up the library path and then runs the program at startup of the pi.

ProfessorAlekM 27-03-2016 09:39

Re: Help with coding CPP and OpenCv
 
Quote:

Originally Posted by jreneew2 (Post 1563496)
I can grab the file tomorrow. Basically we ssh into the raspberry pi through the robot radio then edit the files via the command line. We use systemctl to run a bash script that sets up the library path and then runs the program at startup of the pi.

Making your Co-Processor run it's tracking software at startup seems to be the way to go.

We used a BeagleBone Black for vision on our robot. Apparently the FMS won't let you ssh in when you are connected to it.

I didn't have time to try, but can you ssh in if you change the ssh port to one of the available ports for UDP with the roboRIO?

jreneew2 27-03-2016 10:28

Re: Help with coding CPP and OpenCv
 
I can try, but I don't think it matters that much because you wouldn't need to ssh in while connected to the FMS. All we need to do is connect to the robot over Ethernet during the field calibration time, and change the RGB threshold values that it sees. This is really fast with grip because you save an image onto the pi at boot up of the pi and download it onto your pc to run grip on it. Then change the values accordingly.

axton900 27-03-2016 18:37

Re: Help with coding CPP and OpenCv
 
Thanks!


All times are GMT -5. The time now is 02:05.

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