Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceAnalyser.checkColorizedImage Method

Module: FaceAnalyser

## Definition

Verifies if an image is colorized or grayscale.

Python

    check_colorized_image(self, image: Image) -> bool

Parameters

> `image` Image
> in Source image to process.

Returns

> `bool`
> The boolean decision: True if colorized, False if grayscale.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    bool checkColorizedImage(Image image)

Parameters

> `image` Image
> in Source image to process.

Returns

> `bool`
> The boolean decision: True if colorized, False if grayscale.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public bool CheckColorizedImage(Image image)

Parameters

> `image` Image
> in Source image to process.

Returns

> `bool`
> The boolean decision: True if colorized, False if grayscale.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public boolean checkColorizedImage(Image image) throws FaceException

Parameters

> `image` Image
> in Source image to process.

Returns

> `boolean`
> The boolean decision: True if colorized, False if grayscale.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func checkColorizedImage(image: Image) throws -> Bool

Parameters

> `image` Image
> in Source image to process.

Returns

> `Bool`
> The boolean decision: True if colorized, False if grayscale.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceAnalyser_CheckColorizedImage (
        ID3_FACE_ANALYSER hFaceAnalyser,
        ID3_FACE_IMAGE hImage,
        bool * isColorized)

Parameters

> `hFaceAnalyser` ID3_FACE_ANALYSER
> in Handle to the FaceAnalyser object.
> `hImage` ID3_FACE_IMAGE
> in Source image to process.
> `isColorized` bool *
> out The boolean decision: True if colorized, False if grayscale.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.