Go to Post I think we need a little more humour injected into topics such as these to diffuse whatever tension has been created by the original discussion threads. - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-05-2016, 13:46
gofmannir gofmannir is offline
Registered User
AKA: Nir Gofman
FRC #2096 (RoboActive)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Israel
Posts: 13
gofmannir is an unknown quantity at this point
Teach me Vision

Hello,
There is some how can teach me from scratch how to do Vision Processing?
Wait before you close this thread - I promised my team I will succeed doing that and I failed...

I have 2 ways to do that (Programming with java):
  • Raspberry Pi
  • GRIP

Please if you know to program one of this ways a vision process Please comment me and teach me.

I'm not an idiot, I'm programming for 5 years - Websites and Application.
I am in the FRC program for 2 years and I know how things works, just in that topic I'm getting troubles..

Thanks,
Nir.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-05-2016, 13:48
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 166
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: Teach me Vision

The biggest thing that helped me learn vision was looking at other teams code. 548 will post their vision code soon, you can also look at other teams code from 2012 or 2013 when vision was used alot
__________________


Reply With Quote
  #3   Spotlight this post!  
Unread 06-05-2016, 13:54
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 477
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Teach me Vision

Also, remember to start with crude vision. Don't try to over complicate things before you get a basic form working. As to the actual details, I'm sorry but I can't help you. We work in LabVIEW with NI Vision Assistant.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #4   Spotlight this post!  
Unread 06-05-2016, 14:16
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,057
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Teach me Vision

I can walk you through the process I used to get started with OpenCV, or at least the steps I used.


Step 1: Compile a sample program - This may seem trivial but do it. It makes sure your environment is set up right.

Step 2: Load a static image and display it - Again, simple, but you'd be surprised at just how important small successes are in programming.

Step 3: Run a simple filter on your static image(I'm partial to threshold by a color) and display the result. - Not only does it get you an understanding of how to process images but you're going to do a lot of this anyway.

Step 4: Convert between different color spaces. Typical you have an RGB image, you should convert to HSV. Even if you don't need to it's good to know how to.

Step 5: Start writing your filter to find the desired feature. Typically this is a series of steps to isolate the feature. Ours was a simple threshold by and hue range this year.

Step 6: Extract Filter - For this I typically use the various contour functions.

Step 7: Filter your contours - maybe you got a light, maybe there's multiple targets. This isn't really vision just simple data cleaning.

Step 8: Interface with robot - ??? This is the hard part.
__________________




.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-05-2016, 17:22
TheModMaster8's Avatar
TheModMaster8 TheModMaster8 is offline
Active Alumni
FRC #5492 (Robo Jockeys)
Team Role: Alumni
 
Join Date: Apr 2015
Rookie Year: 2009
Location: USA, Kentucky
Posts: 119
TheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the rough
Re: Teach me Vision

To add on to this question. How do you export the video feed into java run on eclipse? in other words what i want is to use grip for the image processing but do the calculation for a crosshair, shape detecting and alignment on the live video in eclipse and I don't want to use the smart dashboard or anything. if this is at all possible that is
__________________
2009-2011: (FLL) Robot Builder / Operator
2012: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2013: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2014: (FRC Team 2783) Fabrication Student Lead / HumanPlayer / FLL Ref
2015: (FRC Team 2783) Fab Student, Teacher / HumanPlayer / Backup Driver / FLL Ref / FLL Mentor of 6 Teams
2016: (FRC Team 5492) Fabrication Student Lead / Driver / FLL Mentor of Crestwood Elementary
Past Alliance:(2783, 1208, 4154)(2783, 1002, 4265)(2783, 1182, 3868)(2783, 451, 4028)(2783, 1208!, 1288)(5492, 63, 1014) I Will Never Forget


Reply With Quote
  #6   Spotlight this post!  
Unread 06-05-2016, 17:26
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 477
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Teach me Vision

Quote:
Originally Posted by TheModMaster8 View Post
To add on to this question. How do you export the video feed into java run on eclipse? in other words what i want is to use grip for the image processing but do the calculation for a crosshair, shape detecting and alignment on the live video in eclipse and I don't want to use the smart dashboard or anything. if this is at all possible that is
I'm pretty sure that if you use grip, you need to send the data through network tables, which necessarily implies the use of a smartdashboard.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #7   Spotlight this post!  
Unread 08-05-2016, 21:31
TheModMaster8's Avatar
TheModMaster8 TheModMaster8 is offline
Active Alumni
FRC #5492 (Robo Jockeys)
Team Role: Alumni
 
Join Date: Apr 2015
Rookie Year: 2009
Location: USA, Kentucky
Posts: 119
TheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the roughTheModMaster8 is a jewel in the rough
Re: Teach me Vision

Quote:
Originally Posted by Hitchhiker 42 View Post
I'm pretty sure that if you use grip, you need to send the data through network tables, which necessarily implies the use of a smartdashboard.
well darn. Can you get smartdashboard on a mac?
__________________
2009-2011: (FLL) Robot Builder / Operator
2012: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2013: (FRC Team 2783) Fabrication / HumanPlayer / FLL Ref
2014: (FRC Team 2783) Fabrication Student Lead / HumanPlayer / FLL Ref
2015: (FRC Team 2783) Fab Student, Teacher / HumanPlayer / Backup Driver / FLL Ref / FLL Mentor of 6 Teams
2016: (FRC Team 5492) Fabrication Student Lead / Driver / FLL Mentor of Crestwood Elementary
Past Alliance:(2783, 1208, 4154)(2783, 1002, 4265)(2783, 1182, 3868)(2783, 451, 4028)(2783, 1208!, 1288)(5492, 63, 1014) I Will Never Forget


Reply With Quote
  #8   Spotlight this post!  
Unread 08-05-2016, 22:35
frcguy's Avatar
frcguy frcguy is offline
Unregistered Unuser
AKA: Nicholas Dal Porto
FRC #5940 (B.R.E.A.D.)
Team Role: Tactician
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Burlingame, California
Posts: 860
frcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond reputefrcguy has a reputation beyond repute
Teach me Vision

Quote:
Originally Posted by TheModMaster8 View Post
well darn. Can you get smartdashboard on a mac?
Unfortunately Smartdashboard is a component of Driver Station, a Windows only program. If you use Bootcamp (https://www.apple.com/support/bootcamp/) you can run Windows and thus Driver Station and Smartdashboard on your Mac. Boot Camp is significantly better than virtualization as it runs directly on the hardware, so no bottlenecks. That's what most of our programming guys with Macs do.

Edit:

Quote:
Originally Posted by Joe Ross View Post
Other then the fact that the driver station can launch smartdashboard, they aren't related at all. Smartdashboard is a Java program that can run on macs. See here for an example https://m.youtube.com/watch?v=qnS6O04Yjrc
Oops, I didn't know that. I've kept my original post if you want to run Driver Station, but perhaps someone with more knowledge than me can tell you how to get it running on Mac.
__________________


2016: Team 5940 (Silicon Valley Regional Rookie All-Star and Quarterfinalist, Curie Quarterfinalist)

Volunteer: 2016 (Chezy Champs Field Reset, Capital City Classic FTA, MadTown ThrowDown FTA)

Last edited by frcguy : 09-05-2016 at 14:08.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-05-2016, 08:57
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,560
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Quote:
Originally Posted by frcguy View Post
Unfortunately Smartdashboard is a component of Driver Station, a Windows only program.

Other then the fact that the driver station can launch smartdashboard, they aren't related at all. Smartdashboard is a Java program that can run on macs. See here for an example https://m.youtube.com/watch?v=qnS6O04Yjrc
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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