SqueezeBrains SDK 1.13
cs_project.h
1#pragma once
5namespace sb_cs
6{
18 public enum class SbProjectMode :int {
21#ifdef SB_ENABLE_TENSORFLOW
22 SB_PROJECT_MODE_NO_DETECTION = SB_PROJECT_MODE_NO_DETECTION
23#endif
24 };
25
29 public ref class SbProjectInfo
30 {
31 public:
32 SbProjectType type;
33 String^ name;
34 String^ uuid;
35 internal:
36 SbError CopyFromNative(sb_t_project_info *info);
37 };
38
43 public ref class SbProject: SbCommon
44 {
45 public:
57 static SbProject^ Create(String^ name, SbProjectType type);
58
71 static SbProject^ Load(String^ solution_file, String^ project_uuid, SbProjectMode mode);
72
80 SbError Save(String^ solution_file, SbProjectMode mode);
81
93 SbProject^ Clone(SbProjectMode mode, bool regenerate_uuid);
94
105
113
123
133 SbRes^ GetRes(bool details);
134
143
151 String^ GetName();
152
159 SbError SetName(String^ name);
160
168 SbError Invalidate(String ^model_name, float scale);
169
178 SbError SetSensitivity(String ^model_name, float scale, float sensitivity);
179
187 float GetSensitivity(String ^model_name, float scale);
188
196 Boolean CheckTrained(String ^model_name, float scale);
197
205 String^ GetNotes();
206
213 SbError SetNotes(String ^ notes);
214
223
232 private:
233 ~SbProject();
234 SB_HANDLE sb_handle;
235 }; // group_cs_project // group_cs
238}
Common class
Definition: cs_common.h:191
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:657
Project Class You must call the Dispose() method to free all the resources of the returned instance.
Definition: cs_project.h:44
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
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.
Boolean CheckTrained(String ^model_name, float scale)
Checks if the project is trained. See the SB Library documentation for further details.
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:30
Class of the results of the image elaboration with the SbProject::Detection method....
Definition: cs_res.h:225
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_sb.h:39
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
SbProjectMode
Project loading or saving mode that wraps the sb_t_project_mode enum
Definition: cs_project.h:18
@ SB_PROJECT_MODE_DETECTION_ONLY
Load/save the minimum module information to allow detection.
@ SB_PROJECT_MODE_DETECTION_AND_SVL
Load/save all the module information.
void * SB_HANDLE
HANDLE definition.
Definition: sb.h:6042
SB Namespace
Definition: cs_common.h:3
Project info structure.
Definition: sb.h:8899