FAQ
Short answers to common questions about LumiScan AI Object Matching. Each entry links to the page with the details. Problems and error messages are described in Troubleshooting.
Each entry has a fixed anchor (for example #faq-run-inference). To find an error message, search the Troubleshooting page for it.
|
Getting started
What does LumiScan AI Object Matching do, and what does it need?
- Answer
-
It uses a trained neural network to detect objects in images and reports their position and orientation in pixel coordinates. It runs on ctrlX OS (ctrlX CORE or ctrlX IPC) with the ctrlX Data Layer, or on a PC (Windows 11 or Ubuntu 24.04) with LumiScan Keryx, and is controlled through the Data Layer; the node addresses are the same on both. It does not acquire images itself; it reads images published by another application, for example the LumiScan Cam Driver (
hdvisionsystems/lumiscan-cam-driver/camera1/output/image). The model is created with the LumiScan Annotation Framework and LumiScan Training Framework. - More
Can I use TPU acceleration, and what are the requirements?
- Applies to
-
ctrlX OS
- Answer
-
TPU acceleration is optional. If it is used, the ctrlX CORE must include a TPU, and the following versions apply: ctrlX CORE X3 with app version v1.2 or later, ctrlX CORE X7 with app version v1.1 or later, and App Hardware Support exactly 2.6.2. With a HAILO TPU, downgrading Hardware Support to v2.6.2 is mandatory. In the model JSON file, set
providertoHAILO. On a PC, use an NVIDIA GPU withproviderset toCUDAinstead. - More
Configuration
Where are the configuration files?
- Answer
-
In the folder
lumiscan-ai-object-matching. On ctrlX OS, open Home > Manage app data in the ctrlX OS web interface, select File View and open that folder. On a PC it is the settings folder of the application: on Windows%APP_RESOURCE_DIR%\etc\lumiscan-ai-object-matching, or withoutAPP_RESOURCE_DIRC:\ProgramData\HD Vision Systems GmbH\LumiScan Vision Suite\lumiscan-ai-obj-mat\etc\lumiscan-ai-object-matching. Restart the application after changing any file. The settings can also be read and changed on the Data Layer athdvisionsystems/lumiscan-ai-object-matching/system/settings. The folder contains:-
ai-object-matching.json: application configuration (inputFileTypeLumiScan-CtrlX-AI-Object-Matching);moduleslists the module configuration files. -
A module configuration file (for example
ai-object-matching-module.json,inputFileTypeLumiScan-CtrlX-AI-Object-Matching-Module). Itsnameis the network name used in the Data Layer address, andneuralNetworkConfigpoints to the model’s JSON file. -
models: the model files.
-
- More
-
LumiScan AI Object Matching Folder Structure, Settings on the Data Layer
What is in the models folder, and which model parameters may I change?
- Answer
-
The models folder holds two files generated by the LumiScan Training Framework, which belong together: a
.onnxfile with the trained network and a.jsonfile with the detection parameters. Only these JSON parameters should be changed manually; restart the application afterwards:-
thresholdList: minimum confidence per class, between0.0and1.0(1.0= 100 %). -
pathToNetwork: path to the.onnxfile, relative to the JSON file. -
provider:CPUorHAILOon ctrlX OS,CPUorCUDA(an NVIDIA GPU) on a PC. -
deviceIndex: currently must be0.
-
- More
How do I use a newly trained model?
- Answer
-
Upload the new model together with its description file (they are always handled as one unit); on a PC, copy both into the
modelsfolder of the settings folder. Make sure the module configuration file is listed inmodulesofai-object-matching.jsonand that itsneuralNetworkConfigpoints to the new model’s JSON file. Check the remaining module settings, save, and restart the application. - More
Which image formats and image sources are supported?
- Answer
-
An external image address configured in the module must provide
<address>/data(array ofuint8_t),<address>/heightand<address>/width(uint32_t) and<address>/pixel-type(Mono8orRGB8). This interface is designed and tested for the LumiScan Cam Driver; other sources are not guaranteed to work. If no external image address is configured, the module createshdvisionsystems/lumiscan-ai-object-matching/<network name>/input/image, where you write the raw image and set its width, height and pixel format. RGB data is laid out as height, width, channel. From v2.2.0 a module can also infer on the image stream of the Cam Driver (experimental). - More
Running inference
How do I start an inference and get the result?
- Answer
-
Use the ready/request handshake on
hdvisionsystems/lumiscan-ai-object-matching/<network name>/control/inference/: wait untilreadyisTrue, note the value of<network name>/output/package-identifier, setrequesttoTrue, wait untilreadyisFalse(the inference is already running), setrequesttoFalse, and wait untilreadyisTrueagain. Ifoutput/package-identifierhas grown by one, the inference succeeded: read the result at<network name>/output/result.status/codeis3at the end of every inference requested through the handshake, whether it succeeded or not. From v2.1.0, you can instead write once to<network name>/control/inference/execute, which blocks until the operation is done;status/codethen keeps the outcome:0,100001or-1. Only one process may writerequestat a time. - More
-
Initializing the Inference, Outcome of an Inference, Release Notes: v2.1.0
How do I restrict the result to certain classes?
- Answer
-
Write the class names to include into
hdvisionsystems/lumiscan-ai-object-matching/<network name>/input/class-filters; leave the array empty to disable filtering. With the default class mapping,class_indexin the result is the position of the class in the network’s class-names array. Theinstancesarray can contain objects of different classes, so the PLC program has to select the required class. - More
Reading results in ctrlX PLC Engineering
Where do I get the FlatBuffers schema for the result?
- Applies to
-
ctrlX OS
- Answer
-
The result node
<network name>/output/resultis a FlatBuffers message described byobject_detection.fbs. The application copies this file on each start tolumiscan-ai-object-matching/schemas/flatbuffers; download it in Manage app data with the download icon in the Actions column, or over WebDAV. Do not edit files inschemas, because the folder is recreated on every start. After an application update, download and re-import the schema. - More
How do I import the schema into my PLC project?
- Answer
-
You need ctrlX PLC Engineering 2.6 or later and the libraries
CXA_DatalayerandCXA_Flatbuffersin the Library Manager. In the device tree, right-click Application, select Import from FlatBuffers file… and chooseobject_detection.fbs. If Import from FlatBuffers file… is not in the context menu, the ctrlX Data Layer library is missing: installCXA_Datalayervia Tools > Library Repository… and repeat the import. - More
How do I read the position and score of the best detection?
- Answer
-
After the inference has finished and succeeded (handshake:
output/package-identifierhas grown by one;inference/execute:status/codeis0), read the result node withDL_ReadNodeValueand passGetDataandGetSizeof theDL_NodeValuetogetRootAsResultofhdv_object_detection2d_Result. Instances are sorted by score (highest first);getBestIndex()always returns the best one. From the instance,GetScore()gives the score (0.0 to 1.0) andgetOrientedBoundingBox()gives the box withGetCenterX()/GetCenterY()in pixels; the angle is in degrees and can be negative. The function blocks read the buffer in place, so use or copy the values before the next read. - More
Troubleshooting
Problems and error messages are described step by step in Troubleshooting:
Licensing and support
Which licence do I need, and what happens without one?
- Answer
-
The ctrlX licence for LumiScan AI Object Matching is
SWL-W-XCx-OBJxMATCHxHDVSx-V2NN. Bought in the ctrlX Store for ctrlX OS, it is a ctrlX licence and needs no LumiScan Key. On ctrlX OS, the application shuts down shortly after starting if the licence is missing; the reason is in the system log. A missing licence is reported as status-4"MissingLicense". - More
Where can I find more answers or get support?
- Answer
-
See the site-wide LumiScan FAQ. Contact HD Vision Systems customer success at customer.success@hdvisionsystems.com or +49 6221 6721905; for licences, licenses@hdvisionsystems.com.
- More