mvpt_process_assist.h
1.66 KB
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
#ifndef __MVPT_PROCESS_ASSIST_H__
#define __MVPT_PROCESS_ASSIST_H__
#include <bitset>
#include "sy_common.h"
#include "det_obj_header.h"
#include <stdio.h>
#ifdef _MSC_VER
#include <direct.h>
#include <io.h>
#define ACCESS _access
#define MKDIR(a) _mkdir((a))
#else
#include <unistd.h>
#include <stdarg.h>
#include <sys/stat.h>
#define ACCESS access
#define MKDIR(a) mkdir((a),0755)
#endif
using namespace std;
int CreateDir(char *pszDir);
void CreateResultFolder(char* resultFolder, const char* jointFolder);
//bool sy_legal_pos(bitset<EDGESIZE> flags, int left, int top, int right, int bottom, int imgHeight, int imgWidth);
bool LegalArea(int maxArea, int lastArea, int left, int top, int right, int bottom);
bool LegalMinArea(int width, int height, sy_rect min_box);
void ExpandMargin(int direction_x, int direction_y, int boundary_w, int boundary_h,
int &boundary_left, int &boundary_right, int &boundary_top, int &boundary_bottom);
void CreateResultFolder(char* resultFolder, const char* jointFolder);
bool snapshot_legal_inarea(int width, int height);
bool snapshot_legal_inarea(sy_rect algor_area, int left, int top, int right, int bottom);
bool snapshot_legal_minarea(int index, int width, int height);
// bool snapshot_algor_open_config(const OBJ_KEY& obj_key);
bool snapshot_legal_pos(bitset<EDGESIZE> flags, int left, int top, int right, int bottom, int image_width, int image_height);
bool snapshot_legal_area(int max_area, int last_area, int left, int top, int right, int bottom);
bool snapshot_legal_pose(float last_roll, float last_yaw, float last_pitch, float roll, float yaw, float pitch); // added by zsh 220719 判断人脸姿态角
#endif // __MVPT_PROCESS_ASSIST_H__