Skip to content

394481125/Insect_Identification_base_YOLOv5_4.0

Repository files navigation

Insect_Identification_APP_Project

Android+ncnn+yolov5实现的昆虫识别项目,个人参赛用,请勿他用。

此项目我们使用了XUI

github

此项目使用了YOLOv5

github

此项目使用了YOLOv5-ncnn

github

回忆一下出现的问题

1.debug时候正常没有任何报错,但打包成APK的release版本时报错?

解决:在app中的gradle里取消minifyEnabled,就是将它设为false,我的问题就解决了。

参考文章:https://blog.csdn.net/shenzhongaboluo/article/details/78325363

2.因为之前都是C#所以找Android字典没找到,果断用了hashmap?

解决:

import java.util.HashMap;
HashMap hm=new HashMap();
hm.put("001","张三");
hm.put("002","李四");
hm.put("003","王五");
String s=(String)hm.get("001");

参考文章:https://www.cnblogs.com/zzy-frisrtblog/p/5559467.html

其他问题我再想想吧……(Android assets、getAssets()、android.content.context、bitmap与uri、还有ndk的版本问题、TextView使用、TextView多行数据显示Android studio的常见布局FrameLayoutdecodeStream()cmake 常用变量和常用环境变量

About

个人参赛作品,请勿他用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published