#ifndef __MVPT_PROCESS_ASSIST_H__ #define __MVPT_PROCESS_ASSIST_H__ #include #include "sy_common.h" #include "det_obj_header.h" #include #ifdef _MSC_VER #include #include #define ACCESS _access #define MKDIR(a) _mkdir((a)) #else #include #include #include #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 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 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__