Comments (8)
I am stuck, having these two issues: Build statically, missing cv::countNonZero(cv::_InputArray const&) and Building OpenCV statically in app fails βerror: undefined reference to 'ippicvsRound_64f'β. The time for this project has ended, but will update if some answers come back.
from native-opencv-android-template.
Sorry but I don't know how to do this. There's probably some ways to reduce apk size, but you'll have to search the web for more answers :-) If you find a solution, can you post the link here? Thank you and good luck for solving this!
from native-opencv-android-template.
You can use the static libs instead (from the sdk) and configure a few things, I will upload a project to GitHub and add a link.
from native-opencv-android-template.
Link: https://github.com/EmmanuelMess/Reduced-OpenCV-Android
from native-opencv-android-template.
Sorry for these issues, I hope you're going to find some answers!
from native-opencv-android-template.
I've found these instruction located in OpenCV-android-sdk/sdk/native/jni/OpenCVConfig.cmake.
# ===================================================================================
# The OpenCV CMake configuration file
#
# ** File generated automatically, do not modify **
#
# Usage from an external project:
# In your CMakeLists.txt, add these lines:
#
# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS}) # Not needed for CMake >= 2.8.11
# target_link_libraries(MY_TARGET_NAME ${OpenCV_LIBS})
#
# Or you can search for specific OpenCV modules:
#
# find_package(OpenCV REQUIRED core videoio)
#
# If the module is found then OPENCV_<MODULE>_FOUND is set to TRUE.
#
# This file will define the following variables:
# - OpenCV_LIBS : The list of all imported targets for OpenCV modules.
# - OpenCV_INCLUDE_DIRS : The OpenCV include directories.
# - OpenCV_ANDROID_NATIVE_API_LEVEL : Minimum required level of Android API.
# - OpenCV_VERSION : The version of this OpenCV build: "4.5.0"
# - OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION: "4"
# - OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION: "5"
# - OpenCV_VERSION_PATCH : Patch version part of OpenCV_VERSION: "0"
# - OpenCV_VERSION_STATUS : Development status of this build: ""
#
# ===================================================================================
I've followed it and it work like a charm. Basically, you just need to declare the OpenCV modules that you use in the project inside find_package(). For example:
find_package(OpenCV REQUIRED core videoio)
target_link_libraries(MY_TARGET_NAME ${OpenCV_LIBS})
For a complete module's name, you can find in here
from native-opencv-android-template.
@kim-ninh What does that do? How much space is saved from those changes?
from native-opencv-android-template.
Fixed?
from native-opencv-android-template.
Related Issues (10)
- I pasted my new OpenCV sdk location but studio still not seeing it.
- Please update gradle plugin, gradle version and configure kotlin version
- Does not seem to work with OpenCV 4.9.0 or a bit lower HOT 1
- Unable to Resolve Dependency: Could not resolve project :opencv HOT 11
- Enable SURF HOT 3
- Can't use OpenCV's core / imgcodecs HOT 2
- Incorrect orientation HOT 4
- couldn't find "libnative-lib.so" HOT 3
- Add Travis CI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from native-opencv-android-template.