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

# FaceAnalyser.removeCompressionArtifacts Method

Module: FaceAnalyser

## Definition

Upscale and enhance the image of a face.

Important

This methods requires the `CompressionArtifactRemover` model to be loaded.

Python

    remove_compression_artifacts(self, image: Image) -> Image

Parameters

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

Returns

> Image
> The enhanced face.

Exceptions

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

Dart

    Image removeCompressionArtifacts(Image image)

Parameters

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

Returns

> Image
> The enhanced face.

Exceptions

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

C#

    public Image RemoveCompressionArtifacts(Image image)

Parameters

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

Returns

> Image
> The enhanced face.

Exceptions

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

Java

    public Image removeCompressionArtifacts(Image image) throws FaceException

Parameters

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

Returns

> Image
> The enhanced face.

Exceptions

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

Swift

    public func removeCompressionArtifacts(image: Image) throws -> Image

Parameters

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

Returns

> Image
> The enhanced face.

Exceptions

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

C

    int id3FaceAnalyser_RemoveCompressionArtifacts (
        ID3_FACE_ANALYSER hFaceAnalyser,
        ID3_FACE_IMAGE hImage,
        ID3_FACE_IMAGE hEnhancedImage)

Parameters

> `hFaceAnalyser` ID3_FACE_ANALYSER
> in Handle to the FaceAnalyser object.
> `hImage` ID3_FACE_IMAGE
> in Source image to process.
> `hEnhancedImage` ID3_FACE_IMAGE
> out The enhanced face.

Returns

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