The line, live -
GET /blob/VIS/S00/CN_VIEW/frm?stream=1waiting for the camera
One camera, four connections. CN_CAM opens the source; CN_VIEW (this picture),
CN_INS (the dashed window) and CN_SEN (the coloured boxes, below) are
link:CN_CAM - the
same frames, each through its own con_cam_* fields.| state | delivered | read | what it is | |
|---|---|---|---|---|
| CN_CAM | ||||
| CN_INS | ||||
| CN_VIEW | ||||
| CN_SEN |
Camera -
CAM_ONSource -
SRCLive view -
VIEW_FPSThe last bottle -
GET /blob/VIS/S00/SHOT/valno bottle yet
--
liquid top-- px, must be ≤ --
cap middle-- px, must be ≥ --
inspection-- ms
where the cap must be
the fill line
the liquid's top, found
How often the inspection looks -
INS_FPS, CN_INS con_cam_fpsA bottle is whole in the window for about four camera frames. Look less often and some
pass uninspected: MISSED - and a bottle nobody inspected is rejected.
How fast - the line asked for, and what the engine really does
The line -
SPEED: the recording played at this many frames a second, a bottle every 8Camera CN_CAM
-- frames/s
asked --
Inspection CN_INS
-- frames/s
of -- it could read
Inspected
-- bottles/min
-- a second
Missed
-- bottles/min
nobody looked at them
One bottle
-- ms
inspect + draw + JPEG
The rates are the connections' own (
con_cam_rate, the last 4 s); bottles a minute are
counted by this page over the last 5 s. At 1000 the camera stops where reading the recording stops: one JPEG
decoded at a time. Choose every frame for the inspection, or it looks ten times a second and misses
almost every bottle.The line, watched without a script -
CN_SEN
[CON.cam,PRO.vision], device DV_SEN: four blocks the engine runs on every frame
Moving S_MOVE diff
-- % of pixels changed
frame against the frame before, where the bottles pass. Alarm under 0.5 %: the line stands.
Light barrier S_GATE count
-- % liquid
a strip 8 px wide in the middle: a bottle stands in it three frames in eight.
Light S_LIGHT roi
-- / 255
the wall's mean, the last minute. Cover the lens: warning under 140, alarm under 80.
Camera position S_SHIFT match
--, -- px moved
match --
a bolt under the belt, cut from the first frame, found again in every one.
No line of script: each block's numbers reach an
<io> as a Modbus register's
would, and each <io> has its alarm limits (ALM.onlvl). Switch the camera off and the
blocks' watchdog sets the device WAITING, in alarm, within a few seconds.Rejects in the last 20 bottles
-- %
warning at 35 %, alarm at 50 % (
ALM.onlvl). The recorded line makes one bad bottle in four.| inspected | -- | |
|---|---|---|
| good | -- | |
| no cap | -- | |
| wrong cap | -- | |
| cap high | -- | |
| low fill | -- | |
| missed | -- | |
| passed the camera | -- | from the recording's own frame number, 0.6 s late |
The last six rejects -
REJ0 .. REJ5, newest first