Libuvccamera
一个支持UVC、USB摄像头的库,使用容易用
Install / Use
/learn @MuZiLee/LibuvccameraREADME
libuvccamera
重新编译uvccamer.os库
使用
1、将uvccamera添加到你的工程根目录
2、./settings.gradle 添加 include ':uvccamerasdk'
3、./build.gradle
allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://dl.google.com/dl/android/maven2/' }
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
}
4、app/src/main/AndroidManifest.xml 添加
<uses-permission android:name="android.permission.CAMERA" />
5、app/build.gradle
android {
compileSdkVersion 27
buildToolsVersion "27.0.1"
defaultConfig {
applicationId "com.muzilee.demo"
minSdkVersion 18
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk { abiFilters "armeabi" }
externalNativeBuild {
cmake {
cppFlags ""
abiFilters 'armeabi'
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// ...
implementation project(':uvccamerasdk')
}
5、go to happy!!!
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
