-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtcnn.h
74 lines (51 loc) · 992 Bytes
/
mtcnn.h
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
63
64
65
66
67
68
69
70
71
72
73
74
//
// mtcnn.h
//
#pragma once
#include <stdint.h>
namespace MTCNN
{
template< typename TYPE >
struct POINT
{
TYPE X ;
TYPE Y ;
} ;
template< typename TYPE >
struct RECT
{
TYPE L ;
TYPE T ;
TYPE R ;
TYPE B ;
} ;
} // namespace MTCNN
extern "C"
{
typedef struct
{
MTCNN::RECT< int32_t > Rect ;
MTCNN::RECT< float > Bias ;
MTCNN::POINT< float > Points[ 5 ] ;
int32_t area ;
float score ;
} Object_t ;
typedef void ( * ObjectCallback_t )( Object_t * pObject, void * pOpaque ) ;
typedef struct
{
ObjectCallback_t pMethod ;
void * pOpaque ;
unsigned char * pPixels ;
int32_t iPixelD ;
int32_t iPixelH ;
int32_t iPixelW ;
int32_t iStride ;
float fScaleStep ;
float fSizeMax ;
float fSizeMin ;
} detect_options_t ;
typedef struct Detect_t * detect_handle_t ;
int detect_exec( detect_handle_t pDetect, detect_options_t * pOptions ) ;
detect_handle_t detect_exit( detect_handle_t pDetect ) ;
detect_handle_t detect_init() ;
}