/**
* 智能停车管理系统 - 车辆检测模块头文件
*
* 功能:
* 1. 初始化和清理车辆检测资源
* 2. 检测车辆并获取车辆信息
* 3. 管理车辆队列
*/
#ifndef VEHICLE_DETECTION_H
#define VEHICLE_DETECTION_H
#include <time.h>
#include <stdint.h>
// 车辆信息结构体
typedef struct {
int64_t id; // 车辆ID
time_t timestamp; // 检测时间戳
int lane_id; // 车道ID
int direction; // 方向:0=入场,1=出场
char plate_number[16]; // 车牌号码
float confidence; // 识别置信度
int vehicle_type; // 车辆类型:1=小型车,2=中型车,3=大型车
char image_path[256]; // 车辆图像路径
} vehicle_t;
// 车辆队列节点
typedef struct vehicle_node {
vehicle_t vehicle;
struct vehicle_node* next;
} vehicle_node_t;
// 车辆队列
typedef struct {
vehicle_node_t* front;