Go to Post FIRST has set me on a completely different path in life. And I'm all the better for it. - Vincent Chan [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 01-09-2008, 23:34
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Ethernet camera

If you were to choose an ethernet video camera, which one would you choose? (This would be based on low cost, low processing requirements, avaliability, and easily usable interface (I assume cameras just export JPEGs or TIFFs, but I figured there might be some funky encryption stuff, and I'd rather not try to deal with that in Labview)).

Why did I place this in "Programming" and not "Technical"? I'm using the camera for practice programming, being a programmer, and as long as it's ethernet, I shouldn't have to worry about physical interface.

Thanks in advance!
__________________
-- Marshal Horn
  #2   Spotlight this post!  
Unread 02-09-2008, 07:23
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: Ethernet camera

just to turn over the apple cart.......................

In the FRC applications I'm familiar with the camera is not used to transmit images. The camera can do video, but it is put into a different mode. In hardware/software it is put into a mode where it filters all colors except for the color on the target light.

The camera then streams x,y coordinate data of the light. If you look at the video when in this mode and using the light, all you see is a black screen with a bright dot, where the light is.

If you know the x,y coordinates of the light then you can make things go.

whether the data comes over ethernet or rs232 it doesn't matter since they are only transport layers.

where all this goes in the future is tbd.
__________________
Ed Barker
  #3   Spotlight this post!  
Unread 02-09-2008, 09:08
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Ethernet camera

ebarker correctly describes the functionality of the CMUcam we received in the KOP some years ago, but that does not apply here--the CompactRIO should (from what I understand) take anything you throw at it.

I know Linksys makes some remote surveillance products but I think they demand a high premium. After some searching on NewEgg (no affiliation, just..they do great work ) the list shows that the cheapest Ethernet camera is $79.99. As far as transferring images, I think you will need to do a bit of reverse engineering. Can you do HTTP with LabVIEW? I am not familiar with it at all, so I don't know how possible this is. If the web interface is a simple webpage refreshing itself, you could possibly hotlink to that JPEG and keep downloading it every second or so. But if it's anything more sophisticated...you are welcome to ask here, but I can't guarantee that we can help.

Good luck, and I wish I were in your shoes. Instead I'm a college freshman...got to focus on class, not FIRST, at least for a few terms...

May the force be with you!
JBot

Some more thoughts: don't bother buying the camera until you have set up (on your PC) a copy of WAMP or something equivalent and placed a JPEG in the WWW folder and successfully parsed and processed it with LabVIEW on the CRIO. Then you can figure out the interface if it isn't a series of JPEG images.

You have a lot of work to do...but I still envy you!
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 02-09-2008 at 09:12.
  #4   Spotlight this post!  
Unread 02-09-2008, 19:40
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,748
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: Ethernet camera

Can LV do HTTP? Yes, though you will do it over TCP with a bit of string formatting and parsing.

If you choose to go this route, any enet camera should do. All we've looked at use HTTP to initiate the communications and change params. Some camera vendor's have good documentation on their web site, others were reverse engineered using wire shark.

By the way, doing this on a PC and later taking it to the cRIO should transition easily.

Greg McKaskle
  #5   Spotlight this post!  
Unread 03-09-2008, 12:47
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,953
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Ethernet camera

Quote:
Originally Posted by Greg McKaskle View Post
Can LV do HTTP? Yes, though you will do it over TCP with a bit of string formatting and parsing.

If you choose to go this route, any enet camera should do. All we've looked at use HTTP to initiate the communications and change params. Some camera vendor's have good documentation on their web site, others were reverse engineered using wire shark.

By the way, doing this on a PC and later taking it to the cRIO should transition easily.

Greg McKaskle
Thanks Greg for all your answers and patience.

Can LV or NI Vision parse frames from MJPEG for image Recognition?
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #6   Spotlight this post!  
Unread 03-09-2008, 22:35
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,748
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: Ethernet camera

Quote:
Originally Posted by Daniel_LaFleur View Post
Thanks Greg for all your answers and patience.

Can LV or NI Vision parse frames from MJPEG for image Recognition?
Yes, but not nearly as well as they will in a few months. The current code for loading JPEGs and MJPEGs expects them to come from disk. So, you can make it functional, but not performant.

Greg McKaskle
  #7   Spotlight this post!  
Unread 05-09-2008, 19:57
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Ethernet camera

Let me just make sure I interpreted that correctly:
One of the things NI is currently working on is a VI to convert live video from an ethernet camera into a picture data type that will give the current frame whenever requested? (And this VI will not be locked, so we can actually see how it has been done?)
__________________
-- Marshal Horn
  #8   Spotlight this post!  
Unread 05-09-2008, 22:25
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,748
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: Ethernet camera

The few months wasn't meant to imply we are still working on it, but rather when it will be delivered.

As for locking VIs, the JPEG convertor will in fact call into a C++ library because that is what the kernel of the imaging library is written in. The networking layer will be done with native LV functions, and all of the new VIs being written for FRC are unlocked and open source.

There will be some locked VIs in vi.lib, same as there are in regular LV. The reasons for locking them tend to involve submission for patents. There will also be many many example to rip into.

Greg McKaskle
  #9   Spotlight this post!  
Unread 05-09-2008, 23:11
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Ethernet camera

Cool. I had just run into some silly stuff like color to RBG being locked.
Thanks, it sounds great!
__________________
-- Marshal Horn
  #10   Spotlight this post!  
Unread 06-09-2008, 08:09
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,748
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: Ethernet camera

Quote:
Originally Posted by kamocat View Post
Cool. I had just run into some silly stuff like color to RBG being locked.
That is pretty silly. That VI calls back into a LV entry point, and unless that sort of thing is locked down, people will start calling into it as well, but without the wrapper, the parameters may not get conditioned -- leading to crashes. And if/when we change the interface, we can also change our wrapper to match. If other locations are calling the interface, we have to honor the old interface as well or break their code.

Anyway, the reason the color stuff has to call back into LV is for the symbolic colors. The LV color picker and managers tap into the OS colors such as Window BG, Text FG, Text Selection, etc. That color lookup is the primary thing that the callback into LV handles.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell the difference: 2007 CMU Camera, 2006, 2005 camera? Chris_Elston Programming 2 07-01-2008 13:11
CAMERA Slick Programming 30 10-02-2007 13:30
Camera The yellowdart General Forum 4 21-01-2007 22:56
Embedded Ethernet? Andrew Blair Technical Discussion 6 22-06-2006 21:12
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56


All times are GMT -5. The time now is 09:27.

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