Go to Post We use a student coach/team captain for Team 342. This allows us mentors to sit in the pit area during competition and just relax. Watching the competition really gets our stomachs tied in knots. - cbolin [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 29-01-2014, 10:34
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: How to access Axis camera feed with OpenCV

My team has also been working with OpenCV (using the official 2.4.7 Java bindings), and we have been using this URL successfully:
Code:
http://10.xx.yy.11/mjpg/video.mjpg
I wonder if there are any differences between the two URLs other than that you can specify camera settings in your URL.

Also, I'm curious as to your decision to use JavaCV now that OpenCV includes Java bindings. Would you say there is an advantage to using JavaCV over the official bindings, or does JavaCV supplement them?
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2014, 15:31
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: How to access Axis camera feed with OpenCV

Quote:
Originally Posted by DomenicR View Post
I wonder if there are any differences between the two URLs other than that you can specify camera settings in your URL.
We tried http://10.xx.yy.11/mjpg/video.mjpg but kept getting errors. This setup uses the M1011 with the DLink Rev A though.

Quote:
Originally Posted by DomenicR View Post
Also, I'm curious as to your decision to use JavaCV now that OpenCV includes Java bindings. Would you say there is an advantage to using JavaCV over the official bindings, or does JavaCV supplement them?
We supplemented OpenCV with the JavaCV wrappers, but JavaCV had most of the functions we needed. Team 341's DaisyCV example used JavaCV so this was just a bit more convenient. I don't know about any other advantages.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2014, 22:31
charr charr is offline
Registered User
FRC #3504
 
Join Date: Aug 2013
Location: Pittsburgh
Posts: 20
charr is an unknown quantity at this point
Re: How to access Axis camera feed with OpenCV

I'm trying to coax my daughter's team in the direction of OpenCV and wondered if you could share any more pointers or code samples.
Thanks,
Chris

Quote:
Originally Posted by DomenicR View Post
My team has also been working with OpenCV (using the official 2.4.7 Java bindings), and we have been using this URL successfully:
Code:
http://10.xx.yy.11/mjpg/video.mjpg
I wonder if there are any differences between the two URLs other than that you can specify camera settings in your URL.

Also, I'm curious as to your decision to use JavaCV now that OpenCV includes Java bindings. Would you say there is an advantage to using JavaCV over the official bindings, or does JavaCV supplement them?
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2014, 00:34
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: How to access Axis camera feed with OpenCV

Quote:
Originally Posted by charr View Post
I'm trying to coax my daughter's team in the direction of OpenCV and wondered if you could share any more pointers or code samples.
Thanks,
Chris
Let me prefix this post by stating that I've only been working with OpenCV for about a month, and am by no means an expert. This will be my team's first year using it. Nevertheless, here are some of the resources I've been using to learn OpenCV:

- The OpenCV documentation and tutorials are well written and a great reference. The first class you will want to learn about is the Mat class (short for Matrix), which is what images are stored as. Then look into the Core, Imgproc, and Highgui modules.
- If you use the Java bindings of OpenCV, then you will want to refer to the Javadocs
- This thread contains links to many valuable resources regarding OpenCV and vision processing.
- The ScreenSteps Live documentation has a section that explains the algorithm that the sample vision code uses. Although it uses NI Vision as opposed to OpenCV, many of the principles still apply.
- DaisyCV, Team 341's 2012 vision code, is an excellent example of an FRC vision system built with OpenCV. Note that it is a SmartDashboard extension and uses WPIJavaCV, which differs a bit from modern OpenCV.

We'll likely be posting our code after the end of the season on GitHub (shameless self plug ), but if you'd like to see a sample of the code I have now to help you get started, send me a PM and I'll see what I can do.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2014, 13:45
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: How to access Axis camera feed with OpenCV

Quote:
Originally Posted by DomenicR View Post
We'll likely be posting our code after the end of the season on GitHub (shameless self plug ), but if you'd like to see a sample of the code I have now to help you get started, send me a PM and I'll see what I can do.
Same here, I'm no expert either but feel free to PM me. OpenCV samples are in our GitHub repo, mostly gathered across the Internet (the repo's not very well documented - sorry).

You may find it easier to begin with OpenCV-Python or SimpleCV, which have great documentation. Here's a StackOverflow post with a bunch of other good resources.

Last edited by NWChen : 30-01-2014 at 13:48. Reason: Disclaimer
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 10:40.

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