Files
yolov5-inferrence/vertix.h
T
2025-08-22 13:52:24 +08:00

24 lines
344 B
C

#ifndef __MY_VERTIX_H__
#define __MY_VERTIX_H__
typedef struct
{
float x;
float y;
} Point;
typedef struct
{
int numVertix;
Point *vertix;
} Polygon;
extern Polygon workspace;
#define DUMP_POLYGON_INFO
void init_polygon(float *datas, int size);
bool is_point_in_workspace(int left, int top, int right, int bottom);
#endif