Tutorial 10 - Surface - How to create a project, set roi defects and execute the training (SVL).  
More...
Go to the source code of this file.
Tutorial 10 - Surface - How to create a project, set roi defects and execute the training (SVL). 
This tutorial shows you what you should do to train a model using a set of images and starting from scratch, i.e. without using the "SB GUI". You should follow the following steps:
- create a new project with the function sb_project_create
 
- get the project parameters with the functions sb_project_get_par
 
- add a level to the parameters with the function sb_par_add_level
 
- add a model to the parameters with the function sb_par_add_model
 
- set the project parameters with the functions sb_project_set_par
 
- labeling the image, i.e. set defect occurrences of the model in the dataset images
 
- execute the training with the function sb_svl_run 
- See also
 - sb_init 
 
- 
sb_release 
 
- 
sb_get_info 
 
- 
sb_license_get_info 
 
- 
sb_project_create 
 
- 
sb_solution_get_info 
 
- 
sb_solution_destroy_info 
 
- 
sb_project_load 
 
- 
sb_project_destroy 
 
- 
sb_project_save 
 
- 
sb_project_get_par 
 
- 
sb_project_set_par 
 
- 
sb_par_add_model 
 
- 
sb_image_info_load 
 
- 
sb_image_info_destroy 
 
- 
sb_image_info_save 
 
- 
sb_image_info_reset 
 
- 
sb_image_info_add_sample 
 
- 
sb_get_uuid 
 
- 
sb_svl_reset 
 
- 
sb_svl_run 
 
- 
sb_svl_get_res 
 
- 
sb_svl_destroy_res 
 
 
Definition in file surface_svl_simple.c.
 
◆ create_surface_project_file()
Create a surface project file. 
- Set parameters of the model of the object.
 
- Add a level
 
- Save the Surface project file.
 
Definition at line 101 of file surface_svl_simple.c.
 
 
◆ execute_training()
Execute training. 
- Get the solution information.
 
- Load the project.
 
- Reset a previous training.
 
- Set training parameters.
 
- Execute the training (SVL).
 
- Get training results.
 
- Save the training.
 
- Destroy the handles.
 
Definition at line 165 of file surface_svl_simple.c.
 
 
◆ main()
In the following the list of the program steps: 
- Initialization of the SqueezeBrains library.
 
- Wait until the license is active.
 
- Create Surface project file.
 
- Add labeling to image.
 
- Execute training.
 
- Destroy the project handle.
 
- Release the library.
 
Definition at line 60 of file surface_svl_simple.c.
 
 
◆ set_labeling()
Set labeling. 
- Add the labeling to the images. For each image:
- Set the flag classified of the image in order for the image to be considered for the learning
 
- Set the roi
 
- Set the defects
 
 
Definition at line 125 of file surface_svl_simple.c.