You are on page 1of 25

Alessandro de Oliveira Faria (A.K.A.

Cabelo)
Certiface e a tecnologia
Intel no combate a Fraude.
Apresentao
Apresentao
Ingressou-se aos 12 anos no
mercado de tecnologia/inovao.

Scio fundador da NETi TECNOLOGIA;

Inventor da tecnologia Certiface;

102 Artigos publicados na internet (Viva O Linux e outros);

Embaixador openSUSE na Amrica Latina;

Experincia com Viso Computacional (openCV e GPU );


Fraudadores: Briga de gato e rato!
Fraudadores: Briga de gato e rato!
SUPER
99,95%
O Certiface: Protege as pessoas
O Certiface: Protege as pessoas
O Certiface: Obrigado Intel...
O Certiface: Obrigado Intel...
Certiface: Nasceu grande...
Certiface: Nasceu grande...
PCL : Point Cloud Librar
PCL : Point Cloud Librar
$ unzip android-ndk-r4b-linux-x86.zip
Pronto o NDK esta instalado com sucesso!
Instalao e configurao N!":
Instalao e configurao N!":
public class HelloNDK extends Activity {
TextView txtHello;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
txtHello = (TextView) findViewById(R.id.txtHello);
String hello = sayHello();
txtHello.setText(hello);
}
public native String sayHello();
static {
System.loadLibrary("hellondk");
}
}
$ cd ~/workspace/HelloNDK
$ javah -o hellondk.h -classpath bin com.cabelo.hellondk.HelloNDK
$ mkdir jni
$ cp hellondk.h jni/
$ cd jni
$ vi hellondk.cpp
#include <hellondk.h>
JNIEXPORT jstring JNICALL
Java_com_cabelo_hellondk_HelloNDK_sayHello(JNIEnv *env, jobject
obj){
return env->NewStringUTF("Hello, NDK!");
}
PictureCallback rawCallback = new PictureCallback() {
public void onPictureTaken(byte[] _data, Camera _camera) {
[ ] } };
void
Java_com_cabelo_GetFace_PreviewView_RgbToGray( JNIEnv* env,
jobject this, jbyteArray src, jintArray dst )
{
jboolean b;
jint len;
jbyte* srcPtr=(*env)->GetByteArrayElements(env,src,&b);
jint* dstPtr=(*env)->GetIntArrayElements(env,dst,&b);
len = (*env)->GetArrayLength(env,src);
RGB32toGray8(srcPtr, dstPtr, len);
(*env)->ReleaseByteArrayElements(env, src, srcPtr, 0);
(*env)->ReleaseIntArrayElements(env, dst, dstPtr, 0);
};
$ vi Application.mk
APP_ABI := armeabi armeabi-v7a x86
$ /usr/local/share/android-ndk-r4b/ndk-build APP_ABI=all

Compile++ thumb: hellondk <= ~/HelloNDK/jni/hellondk.cpp
SharedLibrary : libhellondk.so
Install : libhellondk.so => ~/HelloNDK/libs/armeabi
Compile++ thumb: hellondk <= ~/HelloNDK/jni/hellondk.cpp
SharedLibrary : libhellondk.so
Install : libhellondk.so => ~/HelloNDK/libs/armeabi-v7
Compile++ thumb: hellondk <= ~/HelloNDK/jni/hellondk.cpp
SharedLibrary : libhellondk.so
Install : libhellondk.so => ~/HelloNDK/libs/x86
OpenC# for Android
OpenC# for Android
! " mais #erform$tico.
%tt#&''docs.o#encv.org'doc'tutorials'introduction'android(binar)(#ac*age'O+A(,-K.%tml
%tt#s&''....t%readingbuildingbloc*s.org'
%tt#s&''soft.are.intel.com'en/us'articles'using/intel/i##/.it%/android/os
gmake tbb tbbmalloc target=android
%tt#s&''soft.are.intel.com'en/us'android'articles'android/tutorial/.riting/a/
multit%readed/a##lication/using/intel/t%reading/building/bloc*s
$BB e IPP for Android
$BB e IPP for Android
FaceDetector face_detector = new FaceDetector(
background_image.getWidth(),
background_image.getHeight(), MAX_FACES);
faces = new FaceDetector.Face[MAX_FACES];
face_count = face_detector.findFaces(background_image, faces);
Log.d("Face_Detection", "Face Count: " +
String.valueOf(face_count));
%tt#s&''soft.are.intel.com'en/us'blogs'0!1'!'02'im#lementing/face/detection/in/android
!etectar faces
!etectar faces
Obrigado...
alessandrofaria3netitec.com.br

You might also like