1.
Subscribe to snapshot information
Command:
http://<server>/cgi-
bin/snapManager.cgi?action=attachFileProc&Flags[0]=Event&Events=[<eve
ntCode>,<eventCode>...][&channel=<ChannelNo>][&heartbeat=<Heartbeat>]
parameter:
server, the IP address of the device.
eventCode: Event code, values: TrafficJunction (Bayonet Event),
TrafficManualSnap (Manual Snap Event), All (means all events).
ChannelNo: channel number, value: integer, start from 1.
Heartbeat: Heartbeat time, value: [1, 60], for example, Heartbeat=5
means that the device needs to send heartbeat message "Heartbeat" to
the client every 5 seconds. Used to keep CGI alive.
Examples:
http://192.168.1.108/cgi-
bin/snapManager.cgi?action=attachFileProc&Flags[0]=Event&Events=[Traf
ficJunction]&heartbeat=5
return:
(Event information + picture information)
--myboundary
Content-Type: text/plain // Event information
Content-Length: 4388 // Data length
Events[0].Action=4
Events[0].Code=TrafficJunction // Event code
Events[0].CommInfo.Country= // License plate country or
region
Events[0].CommInfo.ParkType=0 // Entry and exit type: 0 does not
distinguish between exit/entrance, 1 entry camera, 2 exit camera
Events[0].CommInfo.VehicleTypeInTollStation=Unknown // Toll station
type classification
Events[0].CountInGroup=1
Events[0].DetectRegion[0][0]=1170 // Vertex coordinates of detection
area:[[x1,y1],[x2,y2],[],[]]
Events[0].DetectRegion[0][1]=2041
Events[0].DetectRegion[1][0]=931
Events[0].DetectRegion[1][1]=7752
Events[0].DetectRegion[2][0]=7177
Events[0].DetectRegion[2][1]=7301
Events[0].DetectRegion[3][0]=7119
Events[0].DetectRegion[3][1]=1816
Events[0].FrameSequence=19012
Events[0].GroupID=123
Events[0].IndexInGroup=1
Events[0].JunctionDirection=Reverse // Vehicle driving direction
relative to lane direction: Obverse forward, Reverse reverse
Events[0].Lane=1 // Lane/Parking Number
Events[0].Name=TrafficJunction1 // Event name
Events[0].Object.BoundingBox[0]=4544 // Relative coordinates of
license plate: left, up, right, down
Events[0].Object.BoundingBox[1]=4784
Events[0].Object.BoundingBox[2]=4960
Events[0].Object.BoundingBox[3]=5168
Events[0].Object.Category=Normal // License plate category, blue
card
Events[0].Object.Center[0]=4752 // License plate center
coordinates
Events[0].Object.Center[1]=4976
Events[0].Object.Confidence=58
Events[0].Object.Country= // License plate country or region
Events[0].Object.MainColor[0]=0 // License plate color: R, G, B,
brightness
Events[0].Object.MainColor[1]=0
Events[0].Object.MainColor[2]=255
Events[0].Object.MainColor[3]=0
Events[0].Object.ObjectID=229
Events[0].Object.ObjectType=Plate // Object type, license plate
Events[0].Object.OriginalBoundingBox[0]=1065 // Absolute coordinates
of the license plate: left, up, right, down
Events[0].Object.OriginalBoundingBox[1]=694
Events[0].Object.OriginalBoundingBox[2]=1162
Events[0].Object.OriginalBoundingBox[3]=745
Events[0].Object.RelativeID=227
Events[0].Object.Text=浙A9MY10 // number plate
Events[0].ObjectID=227
Events[0].OpenStrobeState=Close // Open state
Events[0].PTS=42950210789.999998
Events[0].TrafficCar.CapTime=946779433.429000 // Capture time
Events[0].TrafficCar.CarType=NormalCar // Vehicle category
Events[0].TrafficCar.CountInGroup=1
Events[0].TrafficCar.Country= // License plate country or
region
Events[0].TrafficCar.DefendCode=3vfBB61xjCDPd0ph // Picture
security code
Events[0].TrafficCar.Event=TrafficJunction // event
Events[0].TrafficCar.GroupID=123
Events[0].TrafficCar.IndexInGroup=1
Events[0].TrafficCar.Lane=1 // Lane/Parking Number
Events[0].TrafficCar.MachineName=ITC215-PW5H-F //device name
Events[0].TrafficCar.PlateColor=Blue //plate color
Events[0].TrafficCar.PlateNumber=浙A9MY10 //number plate
Events[0].TrafficCar.PlateType=Normal //plate type,blue plate
Events[0].TrafficCar.VehicleColor=White //vehicle color
Events[0].TrafficCar.VehicleSign=Audi //logo
Events[0].TrafficCar.VehicleSize=Light-duty //vehicle size,small
vehicle
Events[0].TriggerType=2 // Trigger type, value: 0 car detector, 1
radar, 2 video
Events[0].UTC=946779433 // Event time
Events[0].UTCMS=429 // Event time in
milliseconds
Events[0].Vehicle.BoundingBox[0]=3296 // Relative body
coordinates
Events[0].Vehicle.BoundingBox[1]=2032
Events[0].Vehicle.BoundingBox[2]=5408
Events[0].Vehicle.BoundingBox[3]=5344
Events[0].Vehicle.BrandYear=1 // Vehicle brand year, you need to get
the real year through the mapping table
Events[0].Vehicle.CarLogoIndex=1 // Vehicle logo, you need to get the
real logo through the mapping table
Events[0].Vehicle.CarSeriesIndex=1002 // Vehicle sub-brand, you
need to get the real sub-brand through the mapping table
Events[0].Vehicle.CarSeriesIndexYear=1 // Car year, you need to get
the real year through the mapping table
Events[0].Vehicle.Category=SaloonCar // Vehicle category, sedan
Events[0].Vehicle.Center[0]=4352 // Body center coordinates
Events[0].Vehicle.Center[1]=3688
Events[0].Vehicle.Confidence=178
Events[0].Vehicle.HeadDirection=0 // Head direction
Events[0].Vehicle.MainColor[0]=255 // Body color: R, G, B,
transparency
Events[0].Vehicle.MainColor[1]=255
Events[0].Vehicle.MainColor[2]=255
Events[0].Vehicle.MainColor[3]=0
Events[0].Vehicle.ObjectID=227
Events[0].Vehicle.ObjectType=Vehicle // Object type, body
Events[0].Vehicle.OriginalBoundingBox[0]=772 // Body absolute
coordinates: left, up, right, down
Events[0].Vehicle.OriginalBoundingBox[1]=331
Events[0].Vehicle.OriginalBoundingBox[2]=1267
Events[0].Vehicle.OriginalBoundingBox[3]=768
Events[0].Vehicle.RelativeID=229
Events[0].Vehicle.SubBrand=1002 // Vehicle sub-brand, you need to
get the real sub-brand through the mapping table
Events[0].Vehicle.SubText=A1-20122014-低配 // Car serial
Events[0].Vehicle.Text=Audi //logo
Events[0].Vehicle.VehicleTypeInTollStation=Unknown // Toll station
type classification
Events[0].VehicleHeadDirection=0 // Heading: 0 unknown, 1 left,
2 middle, 3 right
--myboundary
Content-Type: image/jpeg // Picture information, jpeg format
Content-Length: 74304 // Data length
Return parameter:
Events[0]:Information about the first event in the event list
Events[0].Object:License plate information
Events[0].Vehicle:vehicle information
Events[0].TrafficCar:Database records of traffic vehicles, including
comprehensive information on body and license plates
Events[0].CommInfo:Extended information public information of
intelligent traffic events