Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f027cf80
Commit
f027cf80
authored
Nov 01, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenCV Version++. OpenCV Manager Version++.
parent
e7e6d9d6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
19 deletions
+28
-19
O4A_SDK.rst
...tutorials/introduction/android_binary_package/O4A_SDK.rst
+7
-7
dev_with_OCV_on_Android.rst
...uction/android_binary_package/dev_with_OCV_on_Android.rst
+7
-7
version.hpp
modules/core/include/opencv2/core/version.hpp
+2
-2
android+OpenCVLoader.java
modules/java/generator/src/java/android+OpenCVLoader.java
+5
-0
JavaHelper.rst
platforms/android/service/doc/JavaHelper.rst
+4
-0
AndroidManifest.xml
platforms/android/service/engine/AndroidManifest.xml
+2
-2
OpenCVEngine.cpp
...droid/service/engine/jni/BinderComponent/OpenCVEngine.cpp
+1
-1
No files found.
doc/tutorials/introduction/android_binary_package/O4A_SDK.rst
View file @
f027cf80
...
...
@@ -48,10 +48,10 @@ The structure of package contents looks as follows:
::
OpenCV-2.4.
6
-android-sdk
OpenCV-2.4.
7
-android-sdk
|_ apk
| |_ OpenCV_2.4.
6
_binary_pack_armv7a.apk
| |_ OpenCV_2.4.
6_Manager_2.9
_XXX.apk
| |_ OpenCV_2.4.
7
_binary_pack_armv7a.apk
| |_ OpenCV_2.4.
7_Manager_2.13
_XXX.apk
|
|_ doc
|_ samples
...
...
@@ -157,10 +157,10 @@ Get the OpenCV4Android SDK
.. code-block:: bash
unzip ~/Downloads/OpenCV-2.4.
6
-android-sdk.zip
unzip ~/Downloads/OpenCV-2.4.
7
-android-sdk.zip
.. |opencv_android_bin_pack| replace:: :file:`OpenCV-2.4.
6
-android-sdk.zip`
.. _opencv_android_bin_pack_url: http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.
6/OpenCV-2.4.6
-android-sdk.zip/download
.. |opencv_android_bin_pack| replace:: :file:`OpenCV-2.4.
7
-android-sdk.zip`
.. _opencv_android_bin_pack_url: http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.
7/OpenCV-2.4.7
-android-sdk.zip/download
.. |opencv_android_bin_pack_url| replace:: |opencv_android_bin_pack|
.. |seven_zip| replace:: 7-Zip
.. _seven_zip: http://www.7-zip.org/
...
...
@@ -295,7 +295,7 @@ Well, running samples from Eclipse is very simple:
.. code-block:: sh
:linenos:
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.
6_Manager_2.9
_armv7a-neon.apk
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.
7_Manager_2.13
_armv7a-neon.apk
.. note:: ``armeabi``, ``armv7a-neon``, ``arm7a-neon-android8``, ``mips`` and ``x86`` stand for
platform targets:
...
...
doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.rst
View file @
f027cf80
...
...
@@ -55,14 +55,14 @@ Manager to access OpenCV libraries externally installed in the target system.
:guilabel:`File -> Import -> Existing project in your workspace`.
Press :guilabel:`Browse` button and locate OpenCV4Android SDK
(:file:`OpenCV-2.4.
6
-android-sdk/sdk`).
(:file:`OpenCV-2.4.
7
-android-sdk/sdk`).
.. image:: images/eclipse_opencv_dependency0.png
:alt: Add dependency from OpenCV library
:align: center
#. In application project add a reference to the OpenCV Java SDK in
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
6
``.
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
7
``.
.. image:: images/eclipse_opencv_dependency1.png
:alt: Add dependency from OpenCV library
...
...
@@ -128,27 +128,27 @@ described above.
#. Add the OpenCV library project to your workspace the same way as for the async initialization
above. Use menu :guilabel:`File -> Import -> Existing project in your workspace`,
press :guilabel:`Browse` button and select OpenCV SDK path
(:file:`OpenCV-2.4.
6
-android-sdk/sdk`).
(:file:`OpenCV-2.4.
7
-android-sdk/sdk`).
.. image:: images/eclipse_opencv_dependency0.png
:alt: Add dependency from OpenCV library
:align: center
#. In the application project add a reference to the OpenCV4Android SDK in
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
6
``;
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
7
``;
.. image:: images/eclipse_opencv_dependency1.png
:alt: Add dependency from OpenCV library
:align: center
#. If your application project **doesn't have a JNI part**, just copy the corresponding OpenCV
native libs from :file:`<OpenCV-2.4.
6
-android-sdk>/sdk/native/libs/<target_arch>` to your
native libs from :file:`<OpenCV-2.4.
7
-android-sdk>/sdk/native/libs/<target_arch>` to your
project directory to folder :file:`libs/<target_arch>`.
In case of the application project **with a JNI part**, instead of manual libraries copying you
need to modify your ``Android.mk`` file:
add the following two code lines after the ``"include $(CLEAR_VARS)"`` and before
``"include path_to_OpenCV-2.4.
6
-android-sdk/sdk/native/jni/OpenCV.mk"``
``"include path_to_OpenCV-2.4.
7
-android-sdk/sdk/native/jni/OpenCV.mk"``
.. code-block:: make
:linenos:
...
...
@@ -221,7 +221,7 @@ taken:
.. code-block:: make
include C:\Work\OpenCV4Android\OpenCV-2.4.
6
-android-sdk\sdk\native\jni\OpenCV.mk
include C:\Work\OpenCV4Android\OpenCV-2.4.
7
-android-sdk\sdk\native\jni\OpenCV.mk
Should be inserted into the :file:`jni/Android.mk` file **after** this line:
...
...
modules/core/include/opencv2/core/version.hpp
View file @
f027cf80
...
...
@@ -49,8 +49,8 @@
#define CV_VERSION_EPOCH 2
#define CV_VERSION_MAJOR 4
#define CV_VERSION_MINOR
6
#define CV_VERSION_REVISION
2
#define CV_VERSION_MINOR
7
#define CV_VERSION_REVISION
0
#define CVAUX_STR_EXP(__A) #__A
#define CVAUX_STR(__A) CVAUX_STR_EXP(__A)
...
...
modules/java/generator/src/java/android+OpenCVLoader.java
View file @
f027cf80
...
...
@@ -32,6 +32,11 @@ public class OpenCVLoader
*/
public
static
final
String
OPENCV_VERSION_2_4_6
=
"2.4.6"
;
/**
* OpenCV Library version 2.4.7.
*/
public
static
final
String
OPENCV_VERSION_2_4_7
=
"2.4.7"
;
/**
* Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").
...
...
platforms/android/service/doc/JavaHelper.rst
View file @
f027cf80
...
...
@@ -59,3 +59,7 @@ OpenCV version constants
.. data:: OPENCV_VERSION_2_4_6
OpenCV Library version 2.4.6
.. data:: OPENCV_VERSION_2_4_7
OpenCV Library version 2.4.7
platforms/android/service/engine/AndroidManifest.xml
View file @
f027cf80
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.engine"
android:versionCode=
"21
0
@ANDROID_PLATFORM_VERSION_CODE@"
android:versionName=
"2.1
0
"
>
android:versionCode=
"21
3
@ANDROID_PLATFORM_VERSION_CODE@"
android:versionName=
"2.1
3
"
>
<uses-sdk
android:minSdkVersion=
"@ANDROID_NATIVE_API_LEVEL@"
/>
<uses-feature
android:name=
"android.hardware.touchscreen"
android:required=
"false"
/>
...
...
platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.cpp
View file @
f027cf80
...
...
@@ -15,7 +15,7 @@ using namespace android;
const
int
OpenCVEngine
::
Platform
=
DetectKnownPlatforms
();
const
int
OpenCVEngine
::
CpuID
=
GetCpuID
();
const
int
OpenCVEngine
::
KnownVersions
[]
=
{
2040000
,
2040100
,
2040200
,
2040300
,
2040301
,
2040302
,
2040400
,
2040500
,
2040600
};
const
int
OpenCVEngine
::
KnownVersions
[]
=
{
2040000
,
2040100
,
2040200
,
2040300
,
2040301
,
2040302
,
2040400
,
2040500
,
2040600
,
2040700
};
bool
OpenCVEngine
::
ValidateVersion
(
int
version
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment