Info |
---|
This page shows several examples of how to use the current code module. The examples are structured as a copy-and-paste code that works without any knowledge of programming. (Some codes might require primitive modification based on the description provided) |
To implement any of these codes into your project it is necessary that you:
Create a new Code module and name it according to the feature
Delete all of the predefined example code - “make your canvas clean ”
Copy and paste the code provided and modify only the specified variables.
Expand | |||||
---|---|---|---|---|---|
| |||||
Exit image evaluation from flow:It is possible to stop evaluation to save time based on a specific condition e.g. a Classifier returned a defective product class and therefore further evaluation is not needed. To stop the evaluation copy and paste the following code:
|
...
awfawf
awfwa wa fwa fwa
...
title | Cut by a detected rectangle |
---|
...
It is necessary to modify the list |
Expand | |||||
---|---|---|---|---|---|
| |||||
Crop image by a detected rectangleUseful when the image contains unnecessary elements and the goal is to focus only on a certain part. To do this you first need to train a Detector module (or other) to find the region of interest. Then copy the following code into the Code module:
It is necessary to modify the |
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
Save evaluated images to foldersUseful when your goal is to inspect the evaluated images at a later time again.
To do this create a new folder you wish to save your images to. Then copy the following code into the Code module:
It is necessary to modify at least The folder path to copy and paste is written here: |