IQinVision iq510 참조 가이드

다운로드
페이지 60
 
Page 27 of 60 
5. Single JPEG Image 
All IQinVision cameras can deliver single JPEG images.  The JPEG image format is defined by the Joint 
Photographic Experts Group and can be seen in ISO document 10918. 
IQinVision cameras include a default comment in the JPEG header to identify the camera which created the 
image.  This comment consists of the six byte MAC address followed by a single byte which is the camera 
product code. 
5.1. Requesting a single JPEG image 
The simplest method to get a single frame of data is to use an http request to get an image. The basic URL 
used to request a single JPEG image is: 
http://<camera_ip>/now.jpg 
This http request can be issued in a number of ways: 
 
Using a browser. 
 
Using WinInet calls on a Win32 platform.  Please se
 and search for 
WinInet for an overview of the provided functionality and interfaces. 
 
Using PERL scripting. For talking over the web with Perl, the defacto standard is the LWP set of 
modules.  (LWP  stands for "Library for WWW in Perl")  Please see 
 for LWP 
documentation and examples. 
 
Using direct TCP connection requests. 
Regardless of the mechanism used to issue the http request, the camera will return the specified image in the 
format requested.