• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    C++
  • Created about 7 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build OpenCV3 Android SDK with contrib modules

OpenCV 3.3.1 Android SDK with contrib modules

The official build doesn't provide contrib modules. This build includes all the opencv-contrib modules.

Download

Go to ./OpenCV-android-sdk, just like the offical SDK, all are there including contrib modules.

For someone who are curious about the generated JNI code, go to ./o4a or other build intermediate directories.

How to build yourself

Please refer to https://chao.yang.to/post/build-opencv-android-sdk/

How to Use in your Android project

import into existing project

  • In Android Studio, File -> New -> Import Module.., select OpenCV-android-sdk/sdk/java, then a new library module will be imported.

  • Copy the pre-compiled libs in OpenCV-android-sdk/sdk/native/libs into jniLibs of your Android studio module.

Avoid installing OpenCV Manager

If you don't want to install OpenCV Manager, you need to embed openCV library into your App.

New a subclass of android.app.Application class, in this class, put this line:

static {
    if (!OpenCVLoader.initDebug()) {
        Log.e(TAG, "Cannot load OpenCV library");
    }
}

Don't use OpenCVLoader.initAsync(..). That's it.

Filter out specific CPU architecture

If you want to keep your release App slim and only support some architectures, add this line into your module's build.gradle:

externalNativeBuild {
    cmake {
        abiFilters 'armeabi-v7a', 'arm64-v8a' //'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'mips', 'mips64'
    }
}

The last

Thanks to OpenCV, recently I developed an App sucessfully.

More Repositories

1

gava

🚀 A sandboxed VM any Java developer can afford
Go
169
star
2

simpledb

SimpleDB is developed by Edward Sciore. This repo is to enhance it and provide more features.
Java
15
star
3

maxine

Maxine VM - a meta-circular JVM originally created by Oracle. For learning only.
Java
6
star
4

zava

Mini Java VM in Zig
Zig
6
star
5

webworker-polyfill

Let web worker access `localStorage` etc
JavaScript
6
star
6

weiv

🤡 weiv.js - A pragmatic UI view library for modern component-oriented web development.
JavaScript
6
star
7

sqlite-3.11.1

This copy is a companion to read book "SQLite Database System Design and Implementation".
C
5
star
8

yapai

🌹Yet Another Promises/A+ Implementation
JavaScript
4
star
9

eudic-hack

JavaScript
4
star
10

node-http-interceptor

A low-level NodeJS http.request or https.request interceptor useful for debugging, logging, monitoring, instrumentations etc
TypeScript
3
star
11

node-library-template

A template repo to set up your NodeJS library project
TypeScript
3
star
12

rvz

xv6 port on RISC-V VisionFive2 / Nezha in Zig
Zig
3
star
13

openjdk9

2
star
14

BoomCast

💂 A simple Podcast manager
Java
2
star
15

cookie-audit

Audit how/where/when a cookie is born (client-side cookies & HTTP cookies)
JavaScript
2
star
16

rsql-js

RSQL parser and builder for Javascript
TypeScript
1
star
17

types-extension

Typescript types extending the built-in types
TypeScript
1
star
18

breezedb

A simplified database implementation
Go
1
star
19

cosmos

🎄🎅A kernel for my delight of system programming
C
1
star
20

maven-fatjar-plugin

A maven plugin for archiving standalone JAR(run it directly on the fly)
Java
1
star
21

android-lirc

Android LIRC wrapper library for Infrared transmitters
C
1
star
22

Whatson

🎈 Find nearby events
Java
1
star
23

patchable

Ease the API Patch implementation in Spring Boot and Micronaut
Java
1
star
24

cookie-collector

JavaScript
1
star
25

rvx

xv6 on risc-v baremetal -> Nezha (Allwinner D1)
C
1
star
26

oskit

C
1
star
27

loadrush

Simple and flexible load testing tool by developers and for developers
TypeScript
1
star