SqueezeBrains SDK 1.18
cs_project.h
1#pragma once
5namespace sb_cs
6{
18 public enum class SbProjectMode :int {
22 };
23
27 public enum class SbProjectTrainingStatus :int {
31 };
32
36 public ref class SbProjectInfo
37 {
38 public:
39 SbProjectType type;
40 String^ name;
41 String^ uuid;
42 internal:
43 SbError CopyFromNative(sb_t_project_info *info);
44 };
45
50 public ref class SbProject: SbCommon
51 {
52 public:
64 static SbProject^ Create(String^ name, SbProjectType type);
65
78 static SbProject^ Load(String^ solution_file, String^ project_uuid, SbProjectMode mode);
79
87 SbError Save(String^ solution_file, SbProjectMode mode);
88
100 SbProject^ Clone(SbProjectMode mode, bool regenerate_uuid);
101
112
120
130
140 SbRes^ GetRes(bool details);
141
150
158 String^ GetName();
159
166 SbError SetName(String^ name);
167
175 SbError Invalidate(String ^model_name, float scale);
176
185 SbError SetSensitivity(String ^model_name, float scale, float sensitivity);
186
194 float GetSensitivity(String ^model_name, float scale);
195
203 SbProjectTrainingStatus CheckTrained(String ^model_name, float scale);
204
212 String^ GetNotes();
213
220 SbError SetNotes(String ^ notes);
221
230
239 private:
240 ~SbProject();
241 SB_HANDLE sb_handle;
242 }; // group_cs_project // group_cs
245}
Common class
Definition: cs_common.h:242
SbImage class that wraps the sb_t_image structure. You must call the Dispose() method to free all the...
Definition: cs_image.h:66
Parameters Class that wraps the sb_t_par structure. You must call the Dispose() method to free all th...
Definition: cs_par.h:751
Project Class You must call the Dispose() method to free all the resources of the returned instance.
Definition: cs_project.h:51
SbProjectInfo GetInfo()
Gets the project information from the handle.
static SbProject Load(String^ solution_file, String^ project_uuid, SbProjectMode mode)
Loads an existing project from file.
SbRes GetRes(bool details)
Retrieves the results of the last processed image
String LicenseConfigurationCheck(SbLicenseConfigurationId id)
Checks if the project can be used with a license configuration.
SbError Invalidate(String ^model_name, float scale)
Eliminates the training of the models.
float GetSensitivity(String ^model_name, float scale)
Gets the classification threshold from the project handle.
SbError SetSensitivity(String ^model_name, float scale, float sensitivity)
Sets the classification threshold from the project handle.
SbVersion GetSvlVersion()
Retrieves the SVL version
SbProject Clone(SbProjectMode mode, bool regenerate_uuid)
Clones the project
SbProjectTrainingStatus CheckTrained(String ^model_name, float scale)
Checks if the project is trained. See the SB Library documentation for further details.
SbError Detection(SbImage ^img, SbRoi ^roi)
The function elaborates the image inside the ROI. For Surface projects the function computes also the...
SbError SetNotes(String ^ notes)
Sets the project notes
SbPar GetPar()
Retrieves the project parameters structure.
String GetNotes()
Retrieves the project notes
SbError SetName(String^ name)
Sets the project name
String GetName()
Retrieves the project name
static SbProject Create(String^ name, SbProjectType type)
Creates a new project of the specifed type.
SbError SetPar(SbPar^ par)
Sets the project parameters.
SbError Save(String^ solution_file, SbProjectMode mode)
Saves the project to file
Project info Class
Definition: cs_project.h:37
Class of the results of the image elaboration with the SbProject::Detection method....
Definition: cs_res.h:229
ROI Class that wraps the sb_t_roi structure. You must call the Dispose() method to free all the resou...
Definition: cs_roi.h:18
Version class that wraps the sb_t_version structure
Definition: cs_common.h:199
SbError
Enum error codes
Definition: cs_common.h:13
SbLicenseConfigurationId
License configuration id that wraps the sb_t_license_configuration_id enum.
Definition: cs_license.h:28
SbProjectType
Project type that wraps the sb_t_project_type enum
Definition: cs_par.h:16
SbProjectTrainingStatus
Project training status that wraps the sb_t_project_training_status enum
Definition: cs_project.h:27
SbProjectMode
Project loading or saving mode that wraps the sb_t_project_mode enum
Definition: cs_project.h:18
@ SB_PROJECT_TRAINED_OPENVINO
Project is trained and Intel OpenVino support is available.
@ SB_PROJECT_TRAINED_NONE
Project is not trained.
@ SB_PROJECT_TRAINED
Project is trained.
@ SB_PROJECT_MODE_DETECTION_ONLY
Load/save the minimum module information to allow detection.
@ SB_PROJECT_MODE_NO_DETECTION
Load/save the minimum module information and is not possible to do detection.
@ SB_PROJECT_MODE_DETECTION_AND_SVL
Load/save all the module information.
void * SB_HANDLE
HANDLE definition.
Definition: sb.h:6766
SB Namespace
Definition: cs_common.h:3
Project info structure.
Definition: sb.h:9695