Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Vision fun (http://www.chiefdelphi.com/forums/showthread.php?t=141310)

Fauge7 10-01-2016 10:31

Vision fun
 
Would anybody want me to make a simple vision program that detects the targets and will give info on them similar to what i did last year with the yellow totes? I know wpilib already has grip, but it does not seem polished and I do not think they are really focusing on it...The solution ideally run on either the driverstation computer or something such as a powerful coprocessor(odroid) maybe the roborio itself...discuss below, just thinking this could actually be VERY useful if you have a shooter...

(example output image)

iSpotix 10-01-2016 16:56

Re: Vision fun
 
That'd be awesome. I'm just starting to learn opencv and vision. I'll take a look at your code for the totes.

Fauge7 10-01-2016 21:15

Re: Vision fun
 
Quote:

Originally Posted by iSpotix (Post 1520402)
That'd be awesome. I'm just starting to learn opencv and vision. I'll take a look at your code for the totes.

Alright, since somebody wants it I will open source it...I will make a post about it soon

Ozuru 10-01-2016 21:32

Re: Vision fun
 
Quote:

Originally Posted by Fauge7 (Post 1520608)
Alright, since somebody wants it I will open source it...I will make a post about it soon

Definitely please do. The vision tracking I made last year was inspired by your project.

jfitz0807 10-01-2016 22:10

Re: Vision fun
 
We are looking into vision processing this year. We have some new team members who are interested in programming.

We use C++, but I suppose we can translate your java.

It looks like you are using Network Tables, so I guess this runs on the Drive Station laptop in which case presumably we can use it as is on the laptop.

Are there any issues with a java program and a C++ program communicating with each other through Network Tables?

Thanks.

Fauge7 10-01-2016 23:21

Re: Vision fun
 
Quote:

Originally Posted by jfitz0807 (Post 1520669)
We are looking into vision processing this year. We have some new team members who are interested in programming.

We use C++, but I suppose we can translate your java.

It looks like you are using Network Tables, so I guess this runs on the Drive Station laptop in which case presumably we can use it as is on the laptop.

Are there any issues with a java program and a C++ program communicating with each other through Network Tables?

Thanks.

hmm lets see, you might be able to write your own in c++. Esentially it could be run anywhere, from the driverstation (fastest computer you really have acess too) or a coprocessor) Network tables use a standard communication protocol so it will even work with labview.

Ozuru 11-01-2016 01:01

Re: Vision fun
 
Quote:

Originally Posted by jfitz0807 (Post 1520669)
We are looking into vision processing this year. We have some new team members who are interested in programming.

We use C++, but I suppose we can translate your java.

It looks like you are using Network Tables, so I guess this runs on the Drive Station laptop in which case presumably we can use it as is on the laptop.

Are there any issues with a java program and a C++ program communicating with each other through Network Tables?

Thanks.

Basically what Fague said. There is no reason that you can't easily port it over to C++. While there will be differences in the syntax, the process outlined will be the same.

Fauge7 11-01-2016 01:50

Re: Vision fun
 
Quote:

Originally Posted by Ozuru (Post 1520819)
Basically what Fauge said. There is no reason that you can't easily port it over to C++. While there will be differences in the syntax, the process outlined will be the same.

in fact, there is even more documentation on c++...

your all going to hate me for doing this so easy, but here is a little sneak peek

the code isnt optimized nor does it really give any good details but hey, it identifies the targets

Fauge7 20-01-2016 01:25

Re: Vision fun
 
Tower Tracker is live! click here for the link


All times are GMT -5. The time now is 10:23.

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