Face SDK  1.7 Mozart rc
Face Recognition Software Development Kit
Classes | Enumerations | Functions
Image compressor

Classes

class  face_sdk::image_compressor
 The image_compressor. Can be used to compress and/or decompress images. More...
 

Enumerations

enum  face_sdk::compression_level {
  face_sdk::_1 = 1, face_sdk::_2, face_sdk::_3, face_sdk::_4,
  face_sdk::_5
}
 Level of compression used in compress_image function. More...
 

Functions

std::shared_ptr< image_compressor > FACE_SDK_EXPORT face_sdk::make_image_compressor (uint32_t version)
 Makes an image_compressor with specified version. More...
 
std::shared_ptr< image_compressor > FACE_SDK_EXPORT face_sdk::make_image_compressor (uint32_t version, const std::shared_ptr< face_sdk::license > &license)
 Makes an image_compressor with specified version and license. More...
 

Detailed Description

Module performs image compression and decompression capabilities.

Enumeration Type Documentation

◆ compression_level

Level of compression used in compress_image function.

_1 means less size with smaller quality and _5 means bigger size, but higher quality.

Enumerator
_1 

size of resulting image will be not more than 800 bytes.

_2 

size of resulting image will be not more than 900 bytes.

_3 

size of resulting image will be not more than 1000 bytes.

_4 

size of resulting image will be not more than 1100 bytes.

_5 

size of resulting image will be not more than 1200 bytes.

Function Documentation

◆ make_image_compressor() [1/2]

std::shared_ptr<image_compressor> FACE_SDK_EXPORT face_sdk::make_image_compressor ( uint32_t  version)

Makes an image_compressor with specified version.

Parameters
[in]versionRequired version of the algorithm. See Image Smart Compression versions.
Exceptions
face_sdk::exception.See Exceptions handling.

◆ make_image_compressor() [2/2]

std::shared_ptr<image_compressor> FACE_SDK_EXPORT face_sdk::make_image_compressor ( uint32_t  version,
const std::shared_ptr< face_sdk::license > &  license 
)

Makes an image_compressor with specified version and license.

Parameters
[in]versionRequired version of the algorithm. See Image Smart Compression versions.
[in]licenseThe license object. See Licensing.
Exceptions
face_sdk::exception.See Exceptions handling.