Class: RevieveCV

RevieveCV(sdk)

Class representing a RevieveCV image manipulator.

Constructor

new RevieveCV(sdk)

RevieveCV class. Revieve Computer Vision module
Parameters:
Name Type Description
sdk Object instance of RevieveSDK

Methods

analyzeImage() → {Promise}

Method to analyze an image and get results from server.
Returns:
Type
Promise

detectSkintoneFromSkinColor(skinColor) → {String}

Method to detect skin tone in Fitzpatrick scale from skin color
Parameters:
Name Type Description
skinColor String | Array base skin color for skintone detection in hex or rgb format
Returns:
string with Fitzpatrick scale's value detected
Type
String

getAcne(normalized) → {float}

Get acne value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
acne overall value
Type
float

getAnonymizeImage() → {Object}

Get the image analyzed anonymized
Returns:
image
Type
Object

getDarkcircles(normalized) → {float}

Get the dark circles value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
dark circles intensity
Type
float

getEyebags(normalized) → {float}

Get the eyebags value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
eyebags intensity
Type
float

getEyeColor() → {float}

Get the eye color value detected by CV processor
Returns:
eye color detected
Type
float

getFaceArea() → {Object}

Get the object with the information of the face area from server image analysis
Returns:
results
Type
Object

getFaceShape() → {float}

Get the face shape value detected by CV processor
Returns:
face shape detected
Type
float

getFindings() → {Object}

Get JSON structure with all the data detected by CV motor
Returns:
JSON structure with data
Type
Object

getHyperpigmentation(normalized) → {float}

Get the hyperpigmentation value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
hyperpigmentation intensity
Type
float

getImage() → {Object}

Get the image analyzed
Returns:
image
Type
Object

getMasks() → {Array.<Object>}

Get the masks detected by server image analysis
Returns:
masks
Type
Array.<Object>

getRedness(normalized) → {float}

Get the redness value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
redness intensity
Type
float

getResults() → {Object}

Get the results object from server image analysis
Returns:
results
Type
Object

getSkinFoundation() → {Object}

Get the skin foundation info detected by CV processor
Returns:
returns an object with rgb and hex skintone color and skintone value in Fitzpatrick scale detected
Type
Object

getSkinShine(normalized) → {float}

Get skin shine value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
skin shine overall value
Type
float

getSkinUndertone() → {float}

Get the skin undertone value detected by CV processor
Returns:
skin undertone detected
Type
float

getSmoothness(normalized) → {float}

Get the smoothness value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
smoothness intensity
Type
float

getState() → {Object}

Use this method to get the state of CV module
Returns:
General state
Type
Object

getStatus() → {Array.<Object>}

Use this method to check warnings and errors in image analysis.
Returns:
JSON object with description, idx, and isError boolean.
Type
Array.<Object>

getTexture(normalized) → {float}

Get texture value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
texture intensity
Type
float

getWrinkles(normalized) → {float}

Get the wrinkles value detected by CV processor
Parameters:
Name Type Default Description
normalized bool false force the returned value to be between 0 and 100
Returns:
wrinkles intensity
Type
float

hasError() → {Boolean}

Use this method to check if there were errors in image analysis.
Returns:
Error
Type
Boolean

setImage() → {Promise}

Sets an image
Returns:
returns image dimensions
Type
Promise