5using namespace System::Runtime::InteropServices;
55 SbRgba(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
72 SbBgra(
unsigned char b,
unsigned char g,
unsigned char r,
unsigned char a);
479 static SbError StringCopyToNative(
char*
const dst,
int dst_size, String^ src);
480 static String^ StringCopyFromNative(
const char*
const src);
481 static String^ StringCopyFromNative(
char*
const src);
488#include "cs_folder.h"
489#include "cs_license.h"
491#include "cs_sample.h"
496#include "cs_project.h"
497#include "cs_solution.h"
bgra class that wraps the sb_t_bgra structure
unsigned char g
green component of color
unsigned char a
trasparency of color
unsigned char b
blue component of color
unsigned char r
red component of color
Characteristics of a computing device. It wraps the sb_t_device_info structure.
SbMemoryInfo memory
Memory information of the device and the process.
array< SbFrameworkType^> frameworks
Frameworks compatible with the device.
int id
Identifier of the device.
SbDeviceType type
Device type.
String compute_capability
Device CUDA Compute capability.
static SbError Release()
Releases all the resources allocated in the library
static SbError CheckMemoryLeak()
Checks if the library has a memory leak.
static String SbInitNoLicenseKey
SB_INIT_NO_LICENSE_KEY
static SbError InitDl(String^ search_path, SbDlLibraryType LibType)
Init the Deep Learning SB Library. The function enables the SbProject::Detection and SVL functions fo...
static String SbInitOnlySbLicenseKey
SB_INIT_ONLY_SB_LICENSE_KEY
static String SbInitOnlyHwLicenseKey
SB_INIT_ONLY_HW_LICENSE_KEY
static SbError CheckMemoryLeakReset()
Resets the memory leak control
static SbInfo GetInfo(int dl_devices_info)
The function gets information of the sb library and the available computational devices
static SbError Init(String ^ license_file)
Init the SB Library. The function initializes all the functionalities of the library including the li...
static String FormatDeviceType(SbDeviceType value)
The function gets the device type description
static String FormatFrameworkType(SbFrameworkType value)
The function gets the framework type description
Info class that wraps the sb_t_info structure. You must call the Dispose() method to free all the re...
signed long long malloc_size_max
Maximum allocated memory, expressed in bytes, by sb the library. sb_t_info.malloc_size_max
int dl_modules_enabled
Value is different from 0 if Deep Learning modules are enabled. sb_t_info.dl_modules_enabled
SbVersion version
Version of the sb library. sb_t_info.version
SbError Refresh(int dl_devices_info)
Refresh the sb library information
String compile_time
String of the compile time of the sb library sb_t_info.compile_time
String Format()
Formats SbInfo parameters in a string.
array< SbDeviceInfo^> devices
Array of available devices sb_t_info.devices
String version_str
String of the version of the sb library. sb_t_info.version_str
String compile_date
String of the compile date of the sb library. sb_t_info.compile_date
signed long long malloc_size
Current allocated memory, expressed in bytes, by sb the library. sb_t_info.malloc_size
Memory information. It wraps the sb_t_memory_info structure.
signed long long proc_virtual_max
maximum virtual memory usable by the process, in bytes
signed long long system_total
system physical memory, in bytes
signed long long proc_virtual_used
virtual memory used by process, in bytes
signed long long proc_physical_used_max
maximum physical memory used by the process, in bytes
signed long long system_free
system free physical memory, in bytes
signed long long proc_virtual_used_max
maximum virtual memory used by the process, in bytes
signed long long proc_physical_used
physical memory used by the process, in bytes
signed long long system_used
system used physical memory, in bytes
Surface res Class that wraps the sb_t_surface_res structure
float specificity
Specificity
Point class that wraps the sb_t_point2d_f structure
String ToString() override
Formats the sample coordinate in a readable string (x;y).
Point class that wraps the sb_t_point structure
String ToString() override
Formats the sample coordinate in a readable string (x;y).
Range value class that wraps the sb_t_range_flt structure
String ToString() override
Formats the range in a readable string (min;max).
Range value class that wraps the sb_t_range structure
String ToString() override
Formats the range in a readable string (min;max).
Rectangle class that wraps the sb_t_rect structure
int x
x coordinate of the upper left corner of the rectangle
int y
y coordinate of the upper left corner of the rectangle
int width
width of the rectangle
String ToString() override
Formats the rectangle in a readable string ul=(x;y) size=(width;height).
int height
height of the rectangle
rgba class that wraps the sb_t_rgba structure
unsigned char r
red component of color
unsigned char g
green component of color
unsigned char b
blue component of color
unsigned char a
trasparency of color
Size class that wraps the sb_t_size_flt structure
String ToString() override
Formats the size in a readable string (width;height).
Size class that wraps the sb_t_size structure
String ToString() override
Formats the size in a readable string (width:height).
Version class that wraps the sb_t_version structure
SbDlLibraryType
Deep Learning library types
@ SB_DL_LIBRARY_PYTORCH
SB_DL_LIBRARY_OPENVINO.
@ SB_DL_LIBRARY_NONE
No libraries defined.
@ SB_DL_LIBRARY_OPENVINO
Openvino library. Can be used only for inference with sb_project_detection function.
SbFrameworkType
Framework type that wraps the sb_t_framework_type enum
SbDeviceType
Device type that wraps the sb_t_device_type enum
#define SB_INIT_ONLY_HW_LICENSE_KEY
Use this define with sb_init in order to manage only hardware license keys.
#define SB_INIT_NO_LICENSE_KEY
Use this define with sb_init in order to not manage license keys.
#define SB_INIT_ONLY_SB_LICENSE_KEY
Use this define with sb_init in order to manage only SqueezeBrains software license keys.
SqueezeBrains libraries header file.
Defines the color in the format BGRA.
Information about a computing device.
General information about sb library and computing devices like CPU and GPUs.
Metrics calculated on counters.
Represents an ordered pair of float x and y coordinates that defines a point in a two-dimensional pla...
Represents an ordered pair of integer x and y coordinates that defines a point in a two-dimensional p...
Represents an ordered pair of float minimum and maximum values that defines a range.
Represents an ordered pair of 32 bits signed integer minimum and maximum values that defines a range.
Defines the position and size of a rectangle in a two-dimensional plane.
Defines the color in the format RGBA.
Represents an ordered pair of float x and y length that defines a rectangle in a two-dimensional plan...
Represents an ordered pair of integer x and y length that defines a rectangle in a two-dimensional pl...