回顾

继上一篇如何在Ubuntu中编译VLC-Android开源项目,已经成功的编译了vlc-android,并且也编译出了对应版本的

所需环境

androidstudio最新版本

其他…

搭建工程

首先打开androidstudio,新建一个项目,输入项目的名称和包名,就ok了。

然后复制编译好的到libs目录下

我的工程目录结构如下

目录结构

还需要在文件做修改,如下

applyplugin:''android{compileSdkVersion27buildToolsVersion'27.0.3'defaultConfig{applicationId""minSdkVersion19targetSdkVersion27versionCode1versionName"1.0"testInstrumentationRunner""}buildTypes{release{minifyEnabledfalseproguardFilesgetDefaultProguardFile(''),''}}}android{compileOptions{_1_8_1_8}}repositories{flatDir{dirs'libs'}maven{url""}}depencies{implementationfileTree(include:['*.jar'],dir:'libs')implementation':appcompat-v7:27.1.1'implementation':constraint-layout:1.1.3'testImplementation'junit:junit:4.12'androidTestImplementation':runner:1.0.2'androidTestImplementation':espresso-core:3.0.2'compile(name:'',ext:'aar')implementationfiles('libs/')}

最后运行如图所示

运行效果

项目源码

本项目主要基于vlc来播放流媒体视频

主要包含以下内容

1、使用已经编译的libvlc来播放流媒体视频

2、使用MTCNN进行人脸识别并标记人脸

3、保存标记的人脸图片

4、使用FACENET进行人脸比对

未完待续…

1,addedlibvlc

2,supportforplayingrtspvideostream