Go to Post ... the real mark of integrity is doing the right thing even when nobody is watching. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-03-2014, 18:04
35Billy42 35Billy42 is offline
Registered User
FRC #3542
 
Join Date: Feb 2014
Location: Michigan
Posts: 6
35Billy42 is an unknown quantity at this point
Camera Programming

Hey everyone! I'm trying to program a D-link DCS-930L Network Camera. Due to the Cloud Settings on it, I can't get it to connect to my robot. Is there anyway I can get past the Cloud Settings?
  #2   Spotlight this post!  
Unread 10-03-2014, 18:20
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Camera Programming

Quote:
Originally Posted by 35Billy42 View Post
Hey everyone! I'm trying to program a D-link DCS-930L Network Camera. Due to the Cloud Settings on it, I can't get it to connect to my robot. Is there anyway I can get past the Cloud Settings?
How are you trying to access the camera?
Are you using the WPI Libraries, or some other method?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #3   Spotlight this post!  
Unread 10-03-2014, 18:34
35Billy42 35Billy42 is offline
Registered User
FRC #3542
 
Join Date: Feb 2014
Location: Michigan
Posts: 6
35Billy42 is an unknown quantity at this point
Re: Camera Programming

I haven't even gotten that far yet. I'm trying to setup the camera so I can access it through the WPI robotics library. I believe I need to enter the IP address still.
  #4   Spotlight this post!  
Unread 10-03-2014, 20:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Programming

If it isn't an Axis, WPILib will not work on it. You will have better luck using a web browser to log into the camera and using the web browser as your dashboard or a component in your dashboard.

Greg McKaskle
  #5   Spotlight this post!  
Unread 28-03-2014, 07:25
DrTulof DrTulof is offline
Registered User
no team
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Walnut, USA
Posts: 1
DrTulof is an unknown quantity at this point
Re: Camera Programming

First, we should define the protocols. Because Panasonic has its own and D-Link has another. Moreover, we should pay additional attention to the data itself - MJPEG, MPEG2, MPEG4 ....

Last edited by DrTulof : 28-03-2014 at 08:46.
  #6   Spotlight this post!  
Unread 28-03-2014, 14:13
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Camera Programming

I am pretty sure there is a way to give the MJPEG stream URL into WPILib instead of just the IP address. Otherwise, you may also use OpenCV or RoboRealm!
After looking at some of our robot code, we just supply the address, "10.11.65.11". I am pretty sure you could find the AxisCamera object and modify it to connect to the right address of the camera!
  #7   Spotlight this post!  
Unread 28-03-2014, 22:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Programming

The camera runs a web service. If you don't type in the right URL, it won't work. The WPILib camera libraries were built around the commands for Axis. It would actually be a good challenge for you to try and update them to support a new camera, but you would need to follow the documentation quite closely.

Greg McKaskle
  #8   Spotlight this post!  
Unread 28-03-2014, 23:03
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Camera Programming

It really depends on the internal workings of the WPILib. If it uses a standard MJPEG stream, you're golden. If it uses a JPEG image downloaded from the AXIS camera (standard: "[IP]/jpg/image.jpg", you are probably golden, otherwise, you'd need to create your own object. In this case, try a simple port of the OpenCV CvCapture because that will give a good standing point! It supports MJPG, and dozens of other protocols/file formats!
  #9   Spotlight this post!  
Unread 28-03-2014, 23:21
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,089
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Camera Programming

The AxisCamera class doesn't just get images from the camera. It's able to change exposure, brightness and other settings on the fly.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #10   Spotlight this post!  
Unread 28-03-2014, 23:32
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Camera Programming

Quote:
Originally Posted by cgmv123 View Post
The AxisCamera class doesn't just get images from the camera. It's able to change exposure, brightness and other settings on the fly.
I guess. I haven't been thoroughly through the code. However, you just enlightened me! . Maybe I could port that to OpenCV so it can change those variables too!

You're brilliant! Thanks!
  #11   Spotlight this post!  
Unread 29-03-2014, 13:26
lucas.alvarez96's Avatar
lucas.alvarez96 lucas.alvarez96 is offline
Registered User
AKA: Lucas Alvarez
FRC #2576 (Chilean Heart)
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Chile
Posts: 123
lucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to alllucas.alvarez96 is a name known to all
Re: Camera Programming

OpenCV can already configure those variables with VideoCapture::set
__________________
FRC 2576 2015-2016: Mentor
FRC 2576 2013-2015: Programmer & Chairman's Presenter

Los Angeles Regional 2014: Regional Chairman's Award
  #12   Spotlight this post!  
Unread 29-03-2014, 17:12
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Camera Programming

Quote:
Originally Posted by lucas.alvarez96 View Post
OpenCV can already configure those variables with VideoCapture::set
I didn't know that! However, I use CvCapture, not VideoCapture! I don't know if it'll work for me! Anyways, my program is robust enough to resist the camera changing it's settings automatically! In fact, I'd prefer the camera to auto adjust because it seems like as long as it stays in a certain limit. all izz well and my program should be able to work at a reasonable accuracy!
  #13   Spotlight this post!  
Unread 31-03-2014, 17:15
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 102
sparkytwd will become famous soon enough
Re: Camera Programming

Quote:
Originally Posted by cgmv123 View Post
The AxisCamera class doesn't just get images from the camera. It's able to change exposure, brightness and other settings on the fly.
If you're using a V4L based camera, you can also change camera settings during active capture. #3574 does that to switch our front facing camera out of autonomous mode to something more usable by a human.
Closed Thread


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 02:39.

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