Page 32 of 60
7.
PGM Image Data
The IQeye 7xx and 8xx series cameras will have the ability to provide eight-bit monochrome data extracted
from the Y plane of YCbCr frames.
7.1.
PGM grayscale data
To request the monochrome (Y plane) data as a single frame use the URL:
http://<camera_ip>/now.pgm?ds=<size>
Where size is one of VGA(640x480), QVGA (320x240), QQVGA (160x120), or QQQVGA (80x60). This
will return a standard Portable Gray Map (PGM) bitmap in the format:
P5
#<sequence number>
<image width>
<image height>
<max grayscale value>
nnn nnn nnn nnn nnn nnn nnn nnn nnn <width values> nnn nnn nnn
(grayscale data for the entire requested image)
nnn nnn nnn nnn nnn nnn nnn nnn nnn <width values> nnn nnn nnn
The sequence number is an incrementing counter that can be used to identify this particular image.
7.2.
PGM serverpush stream
To request a stream of PGM images, use the URL:
http://<camera_ip>/now.pgm?snap=spush?ds=<size>
Where size is one of VGA(640x480), QVGA (320x240), QQVGA (160x120), or QQQVGA (80x60).
This results in an HTTP stream that is very similar to a MJPEG serverpush stream, but the content type is x-
portable-graymap.
HTTP/1.0 200 OK
Cache-Control: no-cache
Content-Type: multipart/x-mixed-replace; boundary=--ImageSeparator
--ImageSeparator
Content-Type: image/x-portable-graymap
Content-Length: <nnnn>
<PGM data>
--ImageSeparator
Content-Type: image/x-portable-graymap
Content-Length: <nnnn>
<PGM data>
--ImageSeparator