opencv

opencv / PixelateFace / 0.1.13

README.md

Pixelate Face

This algorithm uses Face Detection to detect any faces in an image and pixellates them. The first argument is the source image and the second is the destination. The third argument is the amount of pixelation, the higher this parameter, the more pixelated the face.

Input Formats

The algorithm has 3 separate input types, a fully described input, and two automatic inputs.

Full Input

[
    inputUrl: String,
    output: String,
    pixelSize: Int
]

inputUrl – inputUrl contains a data API url starting with data:// that contains an image file (must be of either type jpeg or png format)

output – output is the path for a data collection, this could be either a personal collection (denoted by .my) or a algo collection (denoted by .algo).

pixelSize – the size of the pixels used to obscure the face, value is length of one side of a obscuring square (IE: pixelSize = 5, obscuring square = 5x5) 

The output for this method is a url pointing to the output file in the data API.

Binary Input

Input: Byte[] 

This input accepts a binary image file (must be of jpeg format).

The output for this method is the output image as a binary file.


base 64 bit encoded String Input

InputUrl: String

This input contains a string consisting of either: 1) a data API url starting with data:// that contains an image file (must be of either type jpeg or png format). 2) a base 64 encoded jpg or png image.

The output for this method is the output image as a binary file.