makeup|SDK makeup|SDK is a library based on visage|SDK face tracking used to configure and render virtual makeup.

Loading...
Searching...
No Matches
SkinToneAnalyzer.h
1//
2// SkinToneAnalyzerHTML.h
3// SkinTone
4//
5// Created by Visage on 18.07.2023..
6// Copyright © 2023 Visage Technologies AB. All rights reserved.
7//
8
9#ifndef SkinToneAnalyzerHTML_h
10#define SkinToneAnalyzerHTML_h
11#import "FaceTracker.h"
12
16 typedef NS_ENUM(NSUInteger, MonkScale) { Monk_UNDEFINED = 0, Monk_1, Monk_2, Monk_3, Monk_4, Monk_5, Monk_6, Monk_7, Monk_8, Monk_9, Monk_10 };
17
21 typedef NS_ENUM(NSUInteger, TrackStatus) { OFF = 0, OK, RECOVERING, INIT };
22
26 struct SkinToneColor{
27 unsigned char r;
28 unsigned char g;
29 unsigned char b;
30};
31 struct SkinToneHSL{
32 float h;
33 float s;
34 float l;
35};
36 typedef struct SkinToneColor SkinToneColor;
37 typedef struct SkinToneHSL SkinToneHSL;
38
42@interface SkinToneResult : NSObject
43 @property(nonatomic, readonly) MonkScale monk;
44 @property(nonatomic, readonly) float decimalMonk;
48 @property(nonatomic, readonly) SkinToneColor RGB;
52 @property(nonatomic, readonly) SkinToneColor renderRGB;
56 @property(nonatomic, readonly) SkinToneHSL HSL;
60 @property(nonatomic, readonly) long frameIndex;
61
65 @property(nonatomic, readonly) TrackStatus status;
66
67-(id) initWithMonk:(MonkScale) monk andDecimalMonk:(float) decimalMonk andColor:(SkinToneColor) RGB andRenderRGB:(SkinToneColor) renderRGB andFrameIndex:(long) frameIndex andTrackStatus:(TrackStatus) status;
68@end
69
73@interface SkinToneAnalyzer : NSObject
74{
75}
76
82- (void) StartAnalysis:(void(^)(SkinToneResult *))callback;
83
87- (void) StopAnalysis;
88
92- (void) Reset;
93
94- (id)initWithSkinToneModule:(void*) skinToneModule;
95
96@end
97
98#endif
SkinToneAnalyzer
Definition SkinToneAnalyzer.h:74
SkinToneResult
Object representing the result retrieved from the skin tone analyzer.
Definition SkinToneAnalyzer.h:43
SkinToneResult::RGB
SkinToneColor RGB
Definition SkinToneAnalyzer.h:48
SkinToneResult::HSL
SkinToneHSL HSL
Definition SkinToneAnalyzer.h:56
SkinToneResult::status
TrackStatus status
Definition SkinToneAnalyzer.h:65
SkinToneResult::renderRGB
SkinToneColor renderRGB
Definition SkinToneAnalyzer.h:52
SkinToneResult::frameIndex
long frameIndex
Definition SkinToneAnalyzer.h:60
SkinToneColor
Definition SkinToneAnalyzer.h:26