Programming
6.2 Sequence and procedures
Example of a program flow
The following figure shows an example of the basic program flow:
①
②
34
•
Initializing the camera
•
Video pipeline
•
Initializing the neural network
•
...
•
Input/trigger from the CPU
•
Fetching image from camera
•
Image pre-processing
•
Calling up inference
•
Post-processing results
•
...
•
Sending results to the CPU
③
MicroPython standard libraries
TM NPU-specific libraries and objects for
access to:
•
Camera(s)
•
Process image
•
SIMATIC Memory Card
•
FTP
•
...
④
•
User data, e.g. images
•
Configurations
•
Trace
Technology Module TM NPU
Equipment Manual, 07/2023, A5E46384784-AC