Files
Loongson_2k0300_SmartCar_Fr…/model/model.hpp

12 lines
362 B
C++

#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);