Go to Post I clicked on "agree to terms" ........ crash. I think I killed the server. ;) - rees2001 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 03-04-2015, 17:05
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Re: IP Camera use in robotics

We have been connecting directly to the camera in a web browser and using the mjpg stream for the lowest latency for us.
  #2   Spotlight this post!  
Unread 03-04-2015, 20:08
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,752
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: IP Camera use in robotics

I generally see a delay of at least 60ms, but it can be more. Four seconds is basically broken.

The delay can come from a number of places, so it is hard to give a single solution to the problem, but it can be fixed.

Things that can affect camera performance/latency:
Lighting -- low light will often cause the camera to extend the exposure, possibly changing camera frame rate from what you asked it to be.

Fast producer/slow consumer -- the camera pumps N frames into the stream and the client consumes M. When N is bigger than M, the latency grows very quickly. When equal, small delays can accumulate latency.

Network buffering -- in any driver, switch, or router. This would show up in the DS log because the traffic follows the same path and is treated the same.

I generally measure this by making a counter display that updates quickly and displays a ms counter. In LV, this is an indicator that displays i inside of a loop that sleeps for 1ms. You then point the camera at the display and display that next to the original. So adjacent to each other on the screen is the true counter display and a camera display of the counter. They are both flickering away. Then take a screenshot and you'll see that the camera display lags the counter by some amount. You can do this a few times if you want to average for a more precise lag measurement.

It has been a few years since I've made accurate measurements, and for this year, I just did the snap test. Snap your fingers or make some other hand transition such as finger-counting at a fixed rate. Modify it until you can estimate the lag.

Greg McKaskle
  #3   Spotlight this post!  
Unread 03-04-2015, 23:23
MasterSon MasterSon is offline
Registered User
no team
 
Join Date: Feb 2015
Location: ontario,canada
Posts: 8
MasterSon is an unknown quantity at this point
Re: IP Camera use in robotics

I have tested some different ip camera brands and it was suggested to me that axis may have the lowest delay rates. For those who are noticing a delay, are you using an axis ip camera?

Can you tell me the model and the resolution of the camera?

What software do you use to view the camera?
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 03:21.

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