BlinkID C SDK version 5.16.0
Typedefs | Enumerations
RecognizerImage.h File Reference
#include "Export.h"
#include "RecognizerError.h"
#include "Types.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef MB_EXPORTED_TYPE struct MBRecognizerImage MBRecognizerImage
 Typedef for MBRecognizerImage structure.
 
typedef MB_EXPORTED_TYPE enum MBRawImageType MBRawImageType
 Typedef for MBRawImageType enum.
 
typedef MB_EXPORTED_TYPE enum MBImageOrientation MBImageOrientation
 Typedef for MBImageOrientation enum.
 

Enumerations

enum  MBRawImageType {
  MB_RAW_IMAGE_TYPE_BGRA , MB_RAW_IMAGE_TYPE_RGBA , MB_RAW_IMAGE_TYPE_BGR , MB_RAW_IMAGE_TYPE_RGB ,
  MB_RAW_IMAGE_TYPE_GRAY , MB_RAW_IMAGE_TYPE_NV21
}
 Enumeration of all possible raw image types. More...
 
enum  MBImageOrientation { MB_IMAGE_ORIENTATION_ROTATED_LEFT_90 , MB_IMAGE_ORIENTATION_NO_ROTATION , MB_IMAGE_ORIENTATION_ROTATED_RIGHT_90 , MB_IMAGE_ORIENTATION_ROTATED_180 }
 Specifies the orientation of the contents of the image. This is important for some recognizers, especially when performing recognition on the mobile device. More...
 

Detailed Description

Copyright (c)2015 MicroBlink Ltd. All rights reserved.

ANY UNAUTHORIZED USE OR SALE, DUPLICATION, OR DISTRIBUTION OF THIS PROGRAM OR ANY OF ITS PARTS, IN SOURCE OR BINARY FORMS, WITH OR WITHOUT MODIFICATION, WITH THE PURPOSE OF ACQUIRING UNLAWFUL MATERIAL OR ANY OTHER BENEFIT IS PROHIBITED! THIS PROGRAM IS PROTECTED BY COPYRIGHT LAWS AND YOU MAY NOT REVERSE ENGINEER, DECOMPILE, OR DISASSEMBLE IT.

Enumeration Type Documentation

◆ MBImageOrientation

Specifies the orientation of the contents of the image. This is important for some recognizers, especially when performing recognition on the mobile device.

Enumerator
MB_IMAGE_ORIENTATION_ROTATED_LEFT_90 

Image contents are rotated 90 degrees left. This usually happens on mobile devices when capturing image while device is held in "portrait" orientation, while device camera sensor is mounted horizontally (i.e. produced image is in "landscape" orienation).

MB_IMAGE_ORIENTATION_NO_ROTATION 

Image contents are not rotated in any manner. This orientation usually happens on mobile devices when capturing image while device is held in "landscape" orientation, while device camera sensor is mounted horizontally (i.e. also in same orientation).

MB_IMAGE_ORIENTATION_ROTATED_RIGHT_90 

Image contents are rotated 90 degrees right. This usually happens on mobile devices when capturing image while device is held in "reverse-portrait" orientation, while device camera sensor is mounted horizontally (i.e. produced image is in "landscape" orienation).

MB_IMAGE_ORIENTATION_ROTATED_180 

Image contents are rotated 180 degrees, i.e. image contents are "upside down". This usually happens on mobile devices when capturing image while device is held in "reverse-landscape" orientation, while device camera sensor is mounted horizontally (i.e. produced image is in "landscape" orienation).

◆ MBRawImageType

Enumeration of all possible raw image types.

Enumerator
MB_RAW_IMAGE_TYPE_BGRA 

4 channel raw image with 32 bit per pixel, 8 bit per channel, channel order is BGRA

MB_RAW_IMAGE_TYPE_RGBA 

4 channel raw image with 32 bit per pixel, 8 bit per channel, channel order is RGBA

MB_RAW_IMAGE_TYPE_BGR 

3 channel raw image with 24 bit per pixel, 8 bit per channel, channel order is BGR

MB_RAW_IMAGE_TYPE_RGB 

3 channel raw image with 24 bit per pixel, 8 bit per channel, channel order is BGR

MB_RAW_IMAGE_TYPE_GRAY 

1 channel grayscale raw image with 8 bit per pixel

MB_RAW_IMAGE_TYPE_NV21 

Raw YUV 4:2:0 image with a plane of 8 bit Y samples followed by an interleaved V/U plane containing 8 bit 2x2 subsampled chroma samples. Typically, frames from Android video capture are obtained in this format.