SB SDK 1.11
Results

Collection of functions to manage Detection results. More...

Collaboration diagram for Results:

Data Structures

struct  sb_t_ocr_res
 Results of OCR analysis. More...
 
struct  sb_t_surface_res
 Defines the result of the Surface analysis. More...
 
struct  sb_t_res_model
 Defines the results of a model. More...
 
struct  sb_t_res_models
 Defines the results of the models. More...
 
struct  sb_t_res
 Results of detection. More...
 

Enumerations

enum  sb_t_surface_image_truth {
  SB_IMAGE_TRUTH_UNDEFINED =0 , SB_IMAGE_TRUTH_GOOD , SB_IMAGE_TRUTH_NO_GOOD , SB_IMAGE_TRUTH_OVERKILL ,
  SB_IMAGE_TRUTH_ESCAPE
}
 Defines the surface image truth. More...
 

Functions

sb_t_err sb_res_destroy (sb_t_res **const res)
 Destroys the module results structure. More...
 
sb_t_err sb_res_clone (sb_t_res **const dst, const sb_t_res *const src)
 Copies the results of image elaboration. More...
 
sb_t_err sb_res_compress (sb_t_res *const res)
 Compress the results, in particular the Surface plane images. More...
 
sb_t_err sb_res_decompress (sb_t_res *const res)
 Decompress thre results. More...
 

Detailed Description

Collection of functions to manage Detection results.

Enumeration Type Documentation

◆ sb_t_surface_image_truth

Defines the surface image truth.

The values are 32 bits both for 32 and 64 bits library version.

Enumerator
SB_IMAGE_TRUTH_UNDEFINED 

Undefined truth.

SB_IMAGE_TRUTH_GOOD 

No defects.

SB_IMAGE_TRUTH_NO_GOOD 

Defects found.

SB_IMAGE_TRUTH_OVERKILL 

False defects found.

SB_IMAGE_TRUTH_ESCAPE 

Defects not found.

Definition at line 9930 of file sb.h.

Function Documentation

◆ sb_res_clone()

sb_t_err sb_res_clone ( sb_t_res **const  dst,
const sb_t_res *const  src 
)

Copies the results of image elaboration.

Parameters
[out]dstPointer to the pointer of the sb_t_res structure destination.
On successful return, this parameter will be updated with the pointer of the structure.
[in]srcPointer to the sb_t_res structure source.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.

◆ sb_res_compress()

sb_t_err sb_res_compress ( sb_t_res *const  res)

Compress the results, in particular the Surface plane images.

Surface weight image is compressed JPEG, while truth and model images are compressed RLE.

Parameters
[in]resPointer to the res to be compressed. The compression works in place.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.

◆ sb_res_decompress()

sb_t_err sb_res_decompress ( sb_t_res *const  res)

Decompress thre results.

Parameters
[in]resPointer to the res to be decompressed. The decompression works in place.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.

◆ sb_res_destroy()

sb_t_err sb_res_destroy ( sb_t_res **const  res)

Destroys the module results structure.

The field par in the structure sb_t_res is valorized with the parameters saved when the sb_project_detection function was last called.

Parameters
[in,out]resPointer to the results structure. It is set to NULL.
Returns
If successful, returns SB_ERR_NONE. Otherwise, it returns an error code sb_t_err.
See also
sb_project_get_res