Home  |  Site Map  |  Contact   


Product Support
: Knowledge Base

Our on-line Knowledge Base contains answers to some of the most common support questions. It has information about all PGR products and was developed to help customers resolve product issues. It is constantly updated, expanded, and refined to ensure that our customers have access to the latest information.

Knowledge Base Search

Search For: In:
Any Word All Words Exact Phrase
Show:
 
Avoiding dropped or missed images using PGR FlyCapture.
Article 141: Avoiding dropped or missed images using PGR FlyCapture.

SUMMARY:
This article describes some general conditions under which grabbed images may be missed, dropped or overwritten before the user can see them.

APPLICABLE PRODUCTS :
Firefly (Discontinued) •  Dragonfly (NANC) •  Scorpion •  Firefly2 (NANC) •  Flea (NANC) • 

ANSWER:
This article describes some general conditions under which grabbed images may be missed, dropped or overwritten before the user can see them.

DETECTING DROPPED OR MISSED IMAGES
  1. Users who use FlyCaptureImagePlus in their programs have access to an image sequence number via the uiSeqNum member of the FlyCaptureImagePlus structure. This sequence number is generated by the driver and sequential images should have a difference of one. If the difference is greater than one, it indicates the number of missed images since the last flycaptureLockNext() call.
  2. Many PGR IEEE-1394 digital cameras have embedded time stamp functionality (see http://www.ptgrey.com/support/kb/details.asp?id=99). If the camera is running at a set frame rate (e.g. 15fps = 1 frame every 66.6ms), the user can use the timestamps from two successive images to calculate the actual time between images.

CAUSE OF DROPPED OR MISSED IMAGES

If a user program is reporting “missed” images, this is a result of the missing images being overwritten in main memory. When flycaptureStart*() is called, four buffers in main memory are allocated that are used to hold the images that are streamed in from the camera. Once a camera has been started, it immediately begins capturing and streaming images via DMA to these memory buffers. Once these buffers are full, they will be overwritten with consecutive images unless the user locks them. Therefore, to avoid missing images: (a) allocate a larger number of memory buffers; (b) reduce system latency; and/or (c) restrict the amount of processing that is being done between successive calls to flycaptureLockNext(). System latency (b) can be caused by overloading the CPU; to reduce this latency, increase system processing power.

The term ”dropped images” is often used to mean that images have not reached the memory buffers at all, but instead have been lost somewhere in transit between the camera and main memory. There are three main points where images can be dropped, and in most cases it will always be a full frame that gets dropped:
  1. On the camera itself, a frame transmit failure can occur. However, this is usually caused by either a serious problem or bug in the firmware or hardware of the camera, and is very rare.
  2. On the way from the camera, along the IEEE-1394 bus, to the PCI bus. However, this requires the IEEE-1394 bandwidth requirements to be exceeded (see http://www.ptgrey.com/support/kb/details.asp?id=22).
  3. Along the PCI bus on the way to the CPU, where it generates an interrupt and gets sent to memory by the driver. However, this requires the PCI bus to be saturated. While PGR technical staff has never observed this directly, it might happen if multiple 1394b cards were each trying to send 80MB/s along the bus. It's important to note that the workings at this level are handled by the Windows 1394 driver system, not by PGR drivers.

AVOIDING DROPPED OR MISSED IMAGES

In general, users should: a) not exceed IEEE-1394 bus bandwidth constraints; b) avoid saturating the PCI bus; c) have the latest stable version of PGR camera firmware installed; and d) have a fast system with an appropriate number of buffers allocated, to avoid missing or dropping images.

RELATED ARTICLES :
KB Article 22: Maximum number of IEEE-1394 cameras on a single 1394 bus.
KB Article 99: Imaging Products timestamping and different timestamp mechanisms.
KB Article 147: How does image data get from a PGR IEEE-1394 digital camera to the user?
KB Article 188: Image data is corrupt and images being displayed are broken or torn.
KB Article 182: Why is the frame rate displayed in the demo program different from the requested frame rate?
KB Article 316: Cameras become unresponsive when connected to FirePRO PCIe cards in a multiple-camera configuration


ARTICLE INFO:
Article ID:
141
Published:
12:00:00 AM
Last Modified:
12:00:00 AM



ARTICLE FEEDBACK:
How useful was this article?
less
more
1
2
3
4
5
Additional comments or suggestions?

Go Back Printable Version Email This Article Bookmark This Article

 
 
 

Point Grey Fly Capture
FlyCapture 2.3 Release 18 is available for download!
Download Software