Skip to main content

Android OpenCV 3.1.0 - Android OpenCV Manager

Android OpenCV 3.1.0 - Android OpenCV Manager

Android OpenCV 3.1.0 - Android OpenCV Manager

Test Android OpenCV Manager

Run Eclipse,create a new project.

image.png

If target is Android 6.0,and then input project name.

image.png

Once you confirm ok, click the button 'Next >'.

image.png

Once you confirm ok, click the button 'Next >'.

image.png

Once you confirm ok, click the button 'Next >'.

image.png

Once you confirm ok, click the button 'Finish'.

image.png

Choice 'Import…',we will include 'OpenCV 3.1.0 SDK'.

image.png

We will run 'existing Android Code Into Workspace'.

image.png

Click the button 'Browse'.

image.png

You need to find out the folder 'OpenCV-3.1.0-android-sdk', sub directory is 'sdk'.

image.png

Including OpenCV 3.1.0.

image.png

In the project 'OpenCVTest', click the right key of mouse, appear a menu, click the item 'Properties'.

image.png

Click the button 'Add'.

image.png

Add 'OpenCV Library – 3.1.0'

image.png

Double click the file 'MainActivity.java'

image.png


protected static final String TAG = "OpenCVTest";

@Override
public void onResume()
{
    super.onResume();
    OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, this, mLoaderCallback);
}

private BaseLoaderCallback  mLoaderCallback = new BaseLoaderCallback(this) {
    @Override
    public void onManagerConnected(int status) {
        switch (status) {
        case LoaderCallbackInterface.SUCCESS:
        {
            Log.i(TAG, "OpenCV loaded successfully");
        } break;
        default:
        {
            super.onManagerConnected(status);
        } break;
    }
}
};

Move the mouse cursor on the red wave line, appear quick fix items.
Click the item 'Import ...', Step by step until no red wave line.

image.png

image.png

image.png

image.png

Click the button 'Run',and then choice the item 'Run Configurations…'.

image.png

Choice the AVD of Android 6.0.

image.png

Appear run-time screen.

image.png

In the Logcat, you will see the green words 'OpenCV loaded successfully'.

image.png

We are finish this test Android OpenCV Manager 3.1.0.

Popular posts from this blog

Python 日期與時間的處理

Visual Basic 6.0 (VB6) 程式語言案例學習 (10. 條碼列印程式)

寫作:波蘭文學習之旅:1-1. 波蘭文字母與發音(注音版)

Python 日期與時間的處理

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (10. 條碼列印程式)

Image

寫作:波蘭文學習之旅:1-1. 波蘭文字母與發音(注音版)

Image

數位影像處理:最佳化處理策略之快速消除扭曲演算法

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (04. 人事考勤管理系統)

Image

用10種程式語言做影像二值化(Image binarization)

Visual Basic 6.0 (VB6) 程式語言案例學習 (07. 收據列印程式)

Image

Visual Basic .Net (VB.Net) 程式語言案例學習 (03. 場地預約系統)

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (11. 生產線拍照程式)

Image

Visual Basic .Net (VB.Net) 程式語言案例學習 (06. 題庫測驗系統)

Image