The result string is the string that is output over Ethernet, and which is defined in the
Ethernet
Results Output
dialog.
For example, if the current configuration has an object locator and an edge pixel counter,
and
Ethernet Results Output
uses the default example formatting string, the Inspector would
return the following string:
rgRES 0 194
Image_number: 9639
Object_locator.
Located: 1
Score: 99.00
Scale: 1.00
Position_(X,Y): (237.78,202.05)
Rotation: 20.05
-------------------------
Edge_pixel_counter_1
Decision: 1
Pixels: 724
The result is not synchronized with the live image. This means that in some situations, if you
retrieve a live image and after that a result string, that string may not contain the result for
the retrieved image, but for an image captured and analyzed later. See Section 3.2.3, “
chronize live image with result
” (page 14) for a solution.
3.2.3
Synchronize live image with result
To synchronize the live image with the result, you need to assign an id to the image. The id
can be up to 16 characters long and can consist of numbers, letters, and special characters.
http://<IP-address>/LiveImage.jpg?id=<ID>
The result for the live image assigned to the
<ID>
can be listed using the following syntax:
http://<IP-address>/ImageResult?id=<ID>
Note
The image might not update if this method is used due to caching, see Section 3.4.1, “
” (page 19) for more information.
Example URLs
Request a live image without overlay graphics and assign an id to the image:
http://192.168.1.110/LiveImage.jpg?id=ID_ABC123
Request a live image with overlay graphics and assign an id to the image:
http://192.168.1.110/LiveImage.jpg?ShowOverlay&id=ID_ABC123
Request a live image with simplified overlay graphics and assign an id to the image:
http://192.168.1.110/LiveImage.jpg?SimplifiedOverlay&id=ID_ABC123
3.2.4
Logged images
Logged images can be retrieved using the URL:
http://<IP-address>/LogImage.jpg?00
where the argument "00" is the image number. The image number is two digits in the range
[00, 29]. The device keeps writing to the log and therefore the log first has to be locked to
be able to retrieve an image. This is done by using the URL
http://<IP-address>/LockLog
The response to the request is a JPEG image. An empty image with a smaller size than a
normal image is returned if no log image is available for a certain position.
To start logging images again the log has to be unlocked first and this is done by using the
URL
http://<IP-address>/LockLog?Unlock
8015726/ZPP7/2018-
09
©SICK AG • Identification & Measuring • www.sick.com • All rights reserved
Subject to change without notice
14
Reference Manual
Web interface
Interfaces
Inspector PIM
Summary of Contents for Inspector PIM60
Page 1: ...Inspector PIM60 ver 2 0 Vision sensor REFERENCE MANUAL...
Page 5: ...Introduction...
Page 7: ...Interfaces...
Page 38: ...Appendix...
Page 83: ......