You are here: Start » Program Examples » WebHMI Runtime for Linux Code Reading Demo
WebHMI Runtime for Linux Code Reading Demo
Aim:
The task of this example is to prepare an application based on WebHMI creation. The application initializes camera parameters, grabs an image using GigE Vision filters, reads codes, and displays the result of the inspection on the WebHmi.
Input:
Images are acquired by GigEVision_GrabImage filter.
Output:
An application with a WebHMI interface that displays the results of the inspection in a web browser:
Hints:
In the following articles, you can find information about designing WebHmi and the Event Handling mechanism:
Solution (AVS):
- In the InitializeParameters macrofilter, adjust ExposureTime, Gain and WhiteBalance with GigEVision_SetRealParameter and GigEVision_SetEnumParameter filters.
- In the VariantQR, use ReadSingleQRCode_Deprecated. Gain the point of mass for the path outline with PathMassCenter. Draw the result string with DrawStrings_SingleColor filter, use the path mass center as location.
- In the VariantBarcode, use ReadSingleBarcode. Draw the result string with DrawStrings_SingleColor filter, use the outBarcode.Position.Origin as the location.
- Create an Event handler OnButton1_Click and Global Parameter GlobalExit(bool). In the event handler, use WriteParameter and modify global to True.
- Use ReadParameter to acquire GlobalExit value. At the end of the Main macrofilter, place Exit. Connect it with the value of GlobalExit.
Macrofilter Main
Macrofilter InitializeParameters
Macrofilter VariantQR(True)
Macrofilter VariantQR(False)
Macrofilter VariantBarcode(True)
Macrofilter VariantBarcode(False)
Event handling macrofilter OnButton1_Click
Further Readings
- Working with GigE Vision Devices - This article describes the basic concept of working with GigE Vision devices.