Initial commit: SmartCar Framework v0.1 — 龙芯2K0300智能车开发框架\n\n- HAL: GPIO/PWM/Encoder/Framebuffer 驱动\n- Control: PID/IMU/Motor/Servo 控制\n- Vision: HSV双Otsu→4点标定IPM→洪泛填充→逐行搜线\n- Strategy: 三区前瞻偏差+速度策略\n- Debug: 文件热调参+LCD预览+cv截帧\n- Scheduler: 5ms timerfd+epoll 中央调度器
This commit is contained in:
11
model/model.hpp
Normal file
11
model/model.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include "types.hpp"
|
||||
|
||||
// TFLM 模型推理接口 — 占位实现,后续接入模型
|
||||
// 用法:
|
||||
// 1. 将 .tflite 模型转为 C header 数组放入 model/ 目录
|
||||
// 2. 实现 model_init() / model_infer()
|
||||
// 3. 在 element.cpp 中调用
|
||||
|
||||
bool model_init();
|
||||
void model_infer(const uint8* image, int w, int h, float* output, int num_classes);
|
||||
Reference in New Issue
Block a user