Created
August 24, 2011 08:09
-
-
Save wanewang/1167546 to your computer and use it in GitHub Desktop.
opencv with jni
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test.opencv; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
public class Opencvtest extends Activity { | |
/** Called when the activity is first created. */ | |
public native void setimage(); | |
static{ | |
System.loadLibrary("imagefea"); | |
} | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
TextView tv = new TextView(this); | |
long StartTime = System.currentTimeMillis(); | |
setimage(); | |
long ProcessTime = System.currentTimeMillis() - StartTime; | |
tv.setText(String.valueOf(ProcessTime)); | |
setContentView(tv); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment