199 size_t solver_parameters_count,
SFESolver *out_solver);
226 unsigned char *out_data,
size_t *in_out_data_len);
263 size_t height,
SFEImage *out_image);
278 size_t *in_out_detection_count);
318 float track_low_threshold,
float match_threshold,
319 uint64_t max_time_lost,
SFETracker *out_tracker);
338 size_t detections_count,
340 size_t *in_out_tracked_count);
349 size_t *in_out_entities_count);
358 size_t *in_out_entities_count);
std::optional< std::string > solver
SFEError sfeImageColorTranspose(SFEImageView image, SFEImage *out_image)
Transpose RGB<->BGR color channel order.
void sfeSolverFree(SFESolver solver)
Free memory associated with SFESolver.
SFEError sfeDetectionTrackerCreate(float new_track_threshold, float track_high_threshold, float track_low_threshold, float match_threshold, uint64_t max_time_lost, SFETracker *out_tracker)
Create a new tracker.
SFEError sfeImageResize(SFEImageView image, size_t width, size_t height, SFEImage *out_image)
Resize image.
SFEHwidMethod
Supported methods for Hardware ID (HWID) computation.
@ SFE_HWID_METHOD_ANDROID_ID
@ SFE_HWID_METHOD_DISK_ID
@ SFE_HWID_METHOD_SERIAL_NUMBER
@ SFE_HWID_METHOD_MAC_ADDRESS
@ SFE_HWID_METHOD_SM_BIOS
SFEError sfeLicenseValidate(void)
Validate a license for this product. This process conducts checks to confirm the license's validity f...
SFEError sfeDetectionTrackerUpdate(SFETracker tracker, const SFEDetection *detections, size_t detections_count, SFETracked *out_tracked, size_t *in_out_tracked_count)
Update the tracker.
SFELicenseType
License types.
@ SFE_LICENSE_TYPE_FILE
License was read from a file.
@ SFE_LICENSE_TYPE_ENV
License was read from an environment variable.
@ SFE_LICENSE_TYPE_TOKEN
License was read from a USB token.
@ SFE_LICENSE_TYPE_NONE
License was not read.
@ SFE_LICENSE_TYPE_MEMORY
License was read from memory.
SFEError sfeHwidGet(char *out_hwid, size_t *in_out_hwid_len, SFEHwidMethod method)
Get Hardware ID (HWID) of the current machine.
void sfeErrorFree(SFEError error)
Free memory associated with SFEError.
SFEError sfeDetectionTrackerRemoved(SFETracker tracker, SFEEntity *out_entities, size_t *in_out_entities_count)
Get removed entities after update.
void * SFESolver
Solver provides an abstract interface over inference models and engines.
void sfeLicenseSet(const unsigned char *data, const size_t data_len)
Set the license data via environment variable. The environment variable that will be set: ILICENSE_DA...
SFEImage SFEImageView
Raw raster image view, HWC|BGR order.
void * SFEError
Error type used to hold optional error message.
void sfeImageFree(SFEImage image)
Free memory associated with SFEImage.
SFEError sfeLicenseType(SFELicenseType *out_license_type)
Get license type. This function returns the type of license that is currently active without performi...
SFEImageFormat
Supported image formats.
@ SFE_IMAGE_FORMAT_BMP
Windows Bitmap format.
@ SFE_IMAGE_FORMAT_PNG
Portable Network Graphics format.
@ SFE_IMAGE_FORMAT_GIF
Graphics Interchange Format.
@ SFE_IMAGE_FORMAT_QOI
Quite OK Image format.
@ SFE_IMAGE_FORMAT_TGA
Truevision TGA format.
@ SFE_IMAGE_FORMAT_JPEG
Joint Photographic Experts Group format.
SFEError sfeImageEncode(SFEImageView image, SFEImageFormat image_format, unsigned char *out_data, size_t *in_out_data_len)
Encode SFEImage into a buffer with specified image_format.
SFEError sfeSolverCreate(const char *solver_file, const SFESolverParameter *solver_parameters, size_t solver_parameters_count, SFESolver *out_solver)
Create new solver from solver file.
const char *const sfeVersion()
Get version of the toolkit library.
void sfeDetectionTrackerFree(SFETracker tracker)
Free the tracker.
SFETrackedState
Tracked state.
@ SFE_TRACKED_STATE_REMOVED
@ SFE_TRACKED_STATE_TRACKED
SFEError sfeImageResizeWithAspectRatio(SFEImageView image, size_t width, size_t height, SFEImage *out_image)
Resize image with maintaining aspect ratio. Whole resized image will be fitted and centered inside ou...
SFEError sfeDetectionTrackerLost(SFETracker tracker, SFEEntity *out_entities, size_t *in_out_entities_count)
Get lost entities after update.
SFEError sfeImageInfo(const unsigned char *data, size_t data_len, SFEImageInfo *out_image_info)
Try to get information from image data without fully decoding it.
SFEError sfeImageDecode(const unsigned char *data, size_t data_len, SFEImage *out_image)
Decode SFEImage from raw image data of various formats. Eg. PNG, JPEG ..
const char * sfeErrorMessage(SFEError error)
Get error message.
SFEError sfeDetect(SFESolver solver, SFEImageView image, float threshold, SFEDetection *out_detections, size_t *in_out_detection_count)
Detect objects in the source image using unified detection API.
void * SFETracker
Tracker is a ByteTrack implementation for multi-modal tracking across multiple frames.
File containing core detection type definitions.
Core detection - tagged union containing all detection types.
Entity type, used to group templates for entity identification. This type is compatible with uuid_v4 ...
Candidate for identification by entity.
float score
matching score
SFEEntity entity
candidate entity id
size_t index
index of the entity from the input gallery
Raw owned raster image representation, HWC|BGR order.
size_t width
Width of the image in pixels.
unsigned char * data
Pointer to raw HWC|BGR data, size is width * height * 3.
size_t height
Height of the image in pixels.
Image information structure, for describing image format and size.
size_t height
Height of the image in pixels.
SFEImageFormat format
Format of the image.
size_t width
Width of the image in pixels.
Solver parameter used to configure solvers.
const char * value
parameter value
const char * name
parameter name
Candidate for identification by template.
float score
matching score
size_t index
index of the template from the input gallery
SFEDetection detection
Tracked detection.
enum SFETrackedState state
Tracking state.