4 Star 39 Fork 21

shopping/yolo_v5_nnie

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.c 781 Bytes
一键复制 编辑 原始数据 按行查看 历史
shopping 提交于 2020-11-28 17:53 . add main.c.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "vision/nnie_face_api.h"
#include <assert.h>
#include <math.h>
int main(int argc, char* argv[]){
char *pcSrcFile = "./data/lanmei_.bgr";
if (argc != 2){
printf("parameter num is wrong \n");
}else{
pcSrcFile = argv[1];
}
char *pcModelName = "./data/fruit_no_permute.wk";
//char *pcSrcFile = "./data/lanmei_.bgr";
float iou_threshold = 0.5f;
float conf_threshold = 0.4f;
printf("pcSrcFile = %s\n", pcSrcFile);
int ret = yolo_image_inference(pcModelName, conf_threshold, iou_threshold, pcSrcFile);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/shopping-tang/yolo_v5_nnie.git
git@gitee.com:shopping-tang/yolo_v5_nnie.git
shopping-tang
yolo_v5_nnie
yolo_v5_nnie
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891