1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| module FaceDetect
| {
| struct POINT
| {
| int x;
| int y;
| }
|
| struct RECT
| {
| int left;
| int top;
| int right;
| int bottom;
| }
|
| struct FaceAngle
| {
| int yaw;
| int pitch;
| int roll;
| float confidence;
| }
|
| struct ThftResult
| {
| int gender;//1-male,0-female
| int age;//range[0-100]
| int race; //[1-white,2-yellow,3-black]
| int beauty_level;//range[0-100]
| int smile_level;//range[0-100]
| }
|
| sequence<byte> Data;
|
| struct FacePos
| {
| RECT rcFace;
| POINT ptLeftEye;
| POINT ptRightEye;
| POINT ptMouth;
| POINT ptNose;
| FaceAngle fAngle;
| int nQuality;
| Data pFacialData;
| long pfaceId;
| }
|
| sequence<FacePos> Faces;
|
| interface FaceDetectServer
| {
| Faces faceDetect(int width, int height, string shareMemory);
| ThftResult faceProperty(int width, int height, FacePos pos, string shareMemory);
| }
|
| interface FaceExtractServer
| {
| Data faceExtract(int width, int height, FacePos pos, string shareMemory);
| //Data faceExtract(Data jpgImage);
| }
| }
|
|