ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:99.51KB ,
资源ID:15706073      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/15706073.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(opencv for android官方教程Word下载.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

opencv for android官方教程Word下载.docx

1、This tutorial also assumes you have OpenCV4Android SDK already installed on your development machine and OpenCV Manager on your testing device correspondingly. If you need help with any of these, you may consult our OpenCV4Android SDK tutorial.If you encounter any error after thoroughly following th

2、ese steps, feel free to contact us via OpenCV4Android discussion group or OpenCV Q&A forum . Well do our best to help you out.Using OpenCV Library Within Your Android ProjectIn this section we will explain how to make some existing project to use OpenCV. Starting with 2.4.2 release for Android, Open

3、CV Manager is used to provide apps with the best available version of OpenCV. You can get more information here: Android OpenCV Manager and in these slides.JavaApplication Development with Async InitializationUsing async initialization is a recommended way for application development. It uses the Op

4、enCV Manager to access OpenCV libraries externally installed in the target system.1. Add OpenCV library project to your workspace. Use menu File - Import - Existing project in your workspace.Press Browse button and locate OpenCV4Android SDK (OpenCV-2.4.9-android-sdk/sdk).2. In application project ad

5、d a reference to the OpenCV Java SDK in Project - Properties - Android - Library - Add select OpenCV Library - 2.4.9.In most cases OpenCV Manager may be installed automatically from Google Play. For the case, when Google Play is not available, i.e. emulator, developer board, etc, you can install it

6、manually using adb tool. See How to select the proper version of OpenCV Manager for details.There is a very base code snippet implementing the async initialization. It shows basic principles. See the “15-puzzle” OpenCV sample for details. 1 2 3 4 5 6 7 8 910111213141516171819202122232425262728public

7、 class Sample1Java extends Activity implements CvCameraViewListener private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) Override public void onManagerConnected(int status) switch (status) case LoaderCallbackInterface.SUCCESS: Log.i(TAG, OpenCV loaded successfully); mOpenCvCamer

8、aView.enableView(); break; default: super.onManagerConnected(status); ; public void onResume() super.onResume(); OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this, mLoaderCallback); .It this case application works with OpenCV Manager in asynchronous fashion. OnManagerConnected callback

9、will be called in UI thread, when initialization finishes. Please note, that it is not allowed to use OpenCV calls or load OpenCV-dependent native libs before invoking this callback. Load your own native libraries that depend on OpenCV after the successful OpenCV initialization. Default BaseLoaderCa

10、llback implementation treat application context as Activity and calls Activity.finish() method to exit in case of initialization failure. To override this behavior you need to override finish() method of BaseLoaderCallback class and implement your own finalization method.Application Development with

11、 Static InitializationAccording to this approach all OpenCV binaries are included into your application package. It is designed mostly for development purposes. This approach is deprecated for the production code, release package is recommended to communicate with OpenCV Manager via the async initia

12、lization described above.1. Add the OpenCV library project to your workspace the same way as for the async initialization above. Use menu File - Existing project in your workspace, press Browse button and select OpenCV SDK path (OpenCV-2.4.9-android-sdk/sdk).2. In the application project add a refer

13、ence to the OpenCV4Android SDK in Project - Add select OpenCV Library - 2.4.9;3. If your application project doesnt have a JNI part, just copy the corresponding OpenCV native libs from /sdk/native/libs/ to your project directory to folder libs/.In case of the application project with a JNI part, instead of manual libraries copying you need to modify your Android.mk file: add the following two code lines after the include $(CLEAR_VARS) and before include path_to_OpenCV-2.4.9-android-sdk/sdk/native/jni/OpenCV.mk12OPENCV_CAMERA_MODULES:=onOP

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1