chehongshu / ncnnforandroid_objectiondetection_mobilenetssd Goto Github PK
View Code? Open in Web Editor NEW:fire:利用Mobilenetssd目标检测框架,ncnn前向推理,android项目
:fire:利用Mobilenetssd目标检测框架,ncnn前向推理,android项目
1.ncnn for android的时候,ANDROID_PLATFPRM=android-14,是安卓4.0系统的意思嘛,如果我是安卓6.0的系统,是改成Android-16就行了吗
2.android studio的使用,在新建工程的时候,phone and tablet也要选跟上面对应的系统嘛,比如教程里面交叉编译的是andriod-4.0系统,在AS里面也必须选4.0系统与之对应,对吗
你好,我想问一下, MobileNetSSD_deploy.id.h这个文件是哪里来的啊?自己写的还是ncnn源码编译出来的?我在ncnn的那个PC端demo中没看到这个文件
然后cpp/Mobilenetssd/include里面的文件是怎么得到的我也不太清楚,希望解答一下~谢谢
2019-10-26 15:38:54.538 31152-31152/che.example.com D/che.example.com.MainActivity: origin predict result:[]
2019-10-26 15:38:54.538 31152-31152/che.example.com D/result length: length of result: 0
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: java.lang.ArrayIndexOutOfBoundsException: length=0; index=1
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at che.example.com.MainActivity.get_max_result(MainActivity.java:199)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at che.example.com.MainActivity.predict_image(MainActivity.java:177)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at che.example.com.MainActivity.onActivityResult(MainActivity.java:152)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:7365)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:4329)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:4377)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.ActivityThread.-wrap19(Unknown Source:0)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1671)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.os.Looper.loop(Looper.java:164)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6650)
2019-10-26 15:38:54.539 31152-31152/che.example.com W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-10-26 15:38:54.540 31152-31152/che.example.com W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
2019-10-26 15:38:54.540 31152-31152/che.example.com W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:818)
请问下,我用MobileNetSSD_demo 这个demo在android上运行
加载完模型直接返回,重复多次,内存一直在涨。
请问这是哪里有问题?
工程和配套blog都很详细
非常感谢
我想把你的项目信息放在 ncnn readme 中作为例子
change this line to : jfloatArray jOutputData = env->NewFloatArray(output_wsize * output_hsize);
I tried most versions
你好
在MobileNetssd.cpp文件中
opt.num_threads = 4; //线程 这里可以修改
你有没有尝试过修改为1,2,4看看cpu占用率的情况?
我这里无论怎么修改CPU占用率都是60-70%左右,
但是我想设置为1,把CPU占用率降到20%左右。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.