FPrint.Image

g FPrint.Image FPrint.Image GObject.Object GObject.Object GObject.Object->FPrint.Image

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (width, height)

detect_minutiae (cancellable, callback, *user_data)

detect_minutiae_finish (result)

get_binarized ()

get_data ()

get_height ()

get_minutiae ()

get_ppmm ()

get_width ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

height

int

r/w/co

The height of the image

width

int

r/w/co

The width of the image

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class FPrint.Image(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

FPrint.ImageClass

classmethod new(width, height)
Parameters:
  • width (int) –

  • height (int) –

Return type:

FPrint.Image

detect_minutiae(cancellable, callback, *user_data)
Parameters:

Detects the minutiae found in an image.

detect_minutiae_finish(result)
Parameters:

result (Gio.AsyncResult) – A Gio.AsyncResult

Raises:

GLib.Error

Returns:

True on success

Return type:

bool

Finish minutiae detection in an image

get_binarized()
Returns:

The binarized image data

Return type:

bytes

Gets the binarized data for an image. This data must not be modified or freed. You need to first detect the minutiae using FPrint.Image.detect_minutiae().

get_data()
Returns:

The image data

Return type:

bytes

Gets the greyscale data for an image. This data must not be modified or freed.

get_height()
Returns:

the height of the image

Return type:

int

Gets the pixel height of an image.

get_minutiae()
Returns:

The detected minutiae

Return type:

[FPrint.Minutia]

Gets the minutiae for an image. This data must not be modified or freed. You need to first detect the minutiae using FPrint.Image.detect_minutiae().

get_ppmm()
Returns:

the resolution of the image in points per millimeter

Return type:

float

Gets the resolution of the image. Note that this is assumed to be fixed to 500 points per inch (~19.685 p/mm) for most drivers.

get_width()
Returns:

the width of the image

Return type:

int

Gets the pixel width of an image.

Property Details

FPrint.Image.props.height
Name:

height

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The height of the image

FPrint.Image.props.width
Name:

width

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The width of the image