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
e241c14b
Commit
e241c14b
authored
Jun 26, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenCV Library and Manager version incremented.
OpenCV Version 2.4.6; OpenCV Manager Version 2.8; Doc fixes.
parent
bf6b119a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
21 deletions
+30
-21
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
+9
-9
version.hpp
modules/core/include/opencv2/core/version.hpp
+1
-1
android+OpenCVLoader.java
modules/java/generator/src/java/android+OpenCVLoader.java
+5
-0
BaseLoaderCallback.rst
platforms/android/service/doc/BaseLoaderCallback.rst
+1
-1
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 @
e241c14b
...
@@ -48,10 +48,10 @@ The structure of package contents looks as follows:
...
@@ -48,10 +48,10 @@ The structure of package contents looks as follows:
::
::
OpenCV-2.4.
5
-android-sdk
OpenCV-2.4.
6
-android-sdk
|_ apk
|_ apk
| |_ OpenCV_2.4.
5
_binary_pack_armv7a.apk
| |_ OpenCV_2.4.
6
_binary_pack_armv7a.apk
| |_ OpenCV_2.4.
5_Manager_2.7
_XXX.apk
| |_ OpenCV_2.4.
6_Manager_2.8
_XXX.apk
|
|
|_ doc
|_ doc
|_ samples
|_ samples
...
@@ -157,10 +157,10 @@ Get the OpenCV4Android SDK
...
@@ -157,10 +157,10 @@ Get the OpenCV4Android SDK
.. code-block:: bash
.. code-block:: bash
unzip ~/Downloads/OpenCV-2.4.
5
-android-sdk.zip
unzip ~/Downloads/OpenCV-2.4.
6
-android-sdk.zip
.. |opencv_android_bin_pack| replace:: :file:`OpenCV-2.4.
5
-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.
5/OpenCV-2.4.5
-android-sdk.zip/download
.. _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_url| replace:: |opencv_android_bin_pack|
.. |opencv_android_bin_pack_url| replace:: |opencv_android_bin_pack|
.. |seven_zip| replace:: 7-Zip
.. |seven_zip| replace:: 7-Zip
.. _seven_zip: http://www.7-zip.org/
.. _seven_zip: http://www.7-zip.org/
...
@@ -295,7 +295,7 @@ Well, running samples from Eclipse is very simple:
...
@@ -295,7 +295,7 @@ Well, running samples from Eclipse is very simple:
.. code-block:: sh
.. code-block:: sh
:linenos:
:linenos:
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.
5_Manager_2.7
_armv7a-neon.apk
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.
6_Manager_2.8
_armv7a-neon.apk
.. note:: ``armeabi``, ``armv7a-neon``, ``arm7a-neon-android8``, ``mips`` and ``x86`` stand for
.. note:: ``armeabi``, ``armv7a-neon``, ``arm7a-neon-android8``, ``mips`` and ``x86`` stand for
platform targets:
platform targets:
...
...
doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.rst
View file @
e241c14b
...
@@ -55,14 +55,14 @@ Manager to access OpenCV libraries externally installed in the target system.
...
@@ -55,14 +55,14 @@ Manager to access OpenCV libraries externally installed in the target system.
:guilabel:`File -> Import -> Existing project in your workspace`.
:guilabel:`File -> Import -> Existing project in your workspace`.
Press :guilabel:`Browse` button and locate OpenCV4Android SDK
Press :guilabel:`Browse` button and locate OpenCV4Android SDK
(:file:`OpenCV-2.4.
5
-android-sdk/sdk`).
(:file:`OpenCV-2.4.
6
-android-sdk/sdk`).
.. image:: images/eclipse_opencv_dependency0.png
.. image:: images/eclipse_opencv_dependency0.png
:alt: Add dependency from OpenCV library
:alt: Add dependency from OpenCV library
:align: center
:align: center
#. In application project add a reference to the OpenCV Java SDK in
#. In application project add a reference to the OpenCV Java SDK in
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
5
``.
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
6
``.
.. image:: images/eclipse_opencv_dependency1.png
.. image:: images/eclipse_opencv_dependency1.png
:alt: Add dependency from OpenCV library
:alt: Add dependency from OpenCV library
...
@@ -101,7 +101,7 @@ See the "15-puzzle" OpenCV sample for details.
...
@@ -101,7 +101,7 @@ See the "15-puzzle" OpenCV sample for details.
public void onResume()
public void onResume()
{
{
super.onResume();
super.onResume();
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
5
, this, mLoaderCallback);
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
6
, this, mLoaderCallback);
}
}
...
...
...
@@ -128,27 +128,27 @@ described above.
...
@@ -128,27 +128,27 @@ described above.
#. Add the OpenCV library project to your workspace the same way as for the async initialization
#. 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`,
above. Use menu :guilabel:`File -> Import -> Existing project in your workspace`,
press :guilabel:`Browse` button and select OpenCV SDK path
press :guilabel:`Browse` button and select OpenCV SDK path
(:file:`OpenCV-2.4.
5
-android-sdk/sdk`).
(:file:`OpenCV-2.4.
6
-android-sdk/sdk`).
.. image:: images/eclipse_opencv_dependency0.png
.. image:: images/eclipse_opencv_dependency0.png
:alt: Add dependency from OpenCV library
:alt: Add dependency from OpenCV library
:align: center
:align: center
#. In the application project add a reference to the OpenCV4Android SDK in
#. In the application project add a reference to the OpenCV4Android SDK in
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
5
``;
:guilabel:`Project -> Properties -> Android -> Library -> Add` select ``OpenCV Library - 2.4.
6
``;
.. image:: images/eclipse_opencv_dependency1.png
.. image:: images/eclipse_opencv_dependency1.png
:alt: Add dependency from OpenCV library
:alt: Add dependency from OpenCV library
:align: center
:align: center
#. If your application project **doesn't have a JNI part**, just copy the corresponding OpenCV
#. If your application project **doesn't have a JNI part**, just copy the corresponding OpenCV
native libs from :file:`<OpenCV-2.4.
5
-android-sdk>/sdk/native/libs/<target_arch>` to your
native libs from :file:`<OpenCV-2.4.
6
-android-sdk>/sdk/native/libs/<target_arch>` to your
project directory to folder :file:`libs/<target_arch>`.
project directory to folder :file:`libs/<target_arch>`.
In case of the application project **with a JNI part**, instead of manual libraries copying you
In case of the application project **with a JNI part**, instead of manual libraries copying you
need to modify your ``Android.mk`` file:
need to modify your ``Android.mk`` file:
add the following two code lines after the ``"include $(CLEAR_VARS)"`` and before
add the following two code lines after the ``"include $(CLEAR_VARS)"`` and before
``"include path_to_OpenCV-2.4.
5
-android-sdk/sdk/native/jni/OpenCV.mk"``
``"include path_to_OpenCV-2.4.
6
-android-sdk/sdk/native/jni/OpenCV.mk"``
.. code-block:: make
.. code-block:: make
:linenos:
:linenos:
...
@@ -221,7 +221,7 @@ taken:
...
@@ -221,7 +221,7 @@ taken:
.. code-block:: make
.. code-block:: make
include C:\Work\OpenCV4Android\OpenCV-2.4.
5
-android-sdk\sdk\native\jni\OpenCV.mk
include C:\Work\OpenCV4Android\OpenCV-2.4.
6
-android-sdk\sdk\native\jni\OpenCV.mk
Should be inserted into the :file:`jni/Android.mk` file **after** this line:
Should be inserted into the :file:`jni/Android.mk` file **after** this line:
...
@@ -379,7 +379,7 @@ result.
...
@@ -379,7 +379,7 @@ result.
public void onResume()
public void onResume()
{
{
super.onResume();
super.onResume();
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
3
, this, mLoaderCallback);
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
6
, this, mLoaderCallback);
}
}
#. Defines that your activity implements ``CvViewFrameListener2`` interface and fix activity related
#. Defines that your activity implements ``CvViewFrameListener2`` interface and fix activity related
...
...
modules/core/include/opencv2/core/version.hpp
View file @
e241c14b
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
#define CV_VERSION_EPOCH 2
#define CV_VERSION_EPOCH 2
#define CV_VERSION_MAJOR 4
#define CV_VERSION_MAJOR 4
#define CV_VERSION_MINOR
5
#define CV_VERSION_MINOR
6
#define CV_VERSION_REVISION 0
#define CV_VERSION_REVISION 0
#define CVAUX_STR_EXP(__A) #__A
#define CVAUX_STR_EXP(__A) #__A
...
...
modules/java/generator/src/java/android+OpenCVLoader.java
View file @
e241c14b
...
@@ -27,6 +27,11 @@ public class OpenCVLoader
...
@@ -27,6 +27,11 @@ public class OpenCVLoader
*/
*/
public
static
final
String
OPENCV_VERSION_2_4_5
=
"2.4.5"
;
public
static
final
String
OPENCV_VERSION_2_4_5
=
"2.4.5"
;
/**
* OpenCV Library version 2.4.6.
*/
public
static
final
String
OPENCV_VERSION_2_4_6
=
"2.4.6"
;
/**
/**
* Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").
* Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").
...
...
platforms/android/service/doc/BaseLoaderCallback.rst
View file @
e241c14b
...
@@ -48,7 +48,7 @@ See the "15-puzzle" OpenCV sample for details.
...
@@ -48,7 +48,7 @@ See the "15-puzzle" OpenCV sample for details.
super.onResume();
super.onResume();
Log.i(TAG, "Trying to load OpenCV library");
Log.i(TAG, "Trying to load OpenCV library");
if (!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
4
, this, mOpenCVCallBack))
if (!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_
6
, this, mOpenCVCallBack))
{
{
Log.e(TAG, "Cannot connect to OpenCV Manager");
Log.e(TAG, "Cannot connect to OpenCV Manager");
}
}
...
...
platforms/android/service/doc/JavaHelper.rst
View file @
e241c14b
...
@@ -55,3 +55,7 @@ OpenCV version constants
...
@@ -55,3 +55,7 @@ OpenCV version constants
.. data:: OPENCV_VERSION_2_4_5
.. data:: OPENCV_VERSION_2_4_5
OpenCV Library version 2.4.5
OpenCV Library version 2.4.5
.. data:: OPENCV_VERSION_2_4_6
OpenCV Library version 2.4.6
platforms/android/service/engine/AndroidManifest.xml
View file @
e241c14b
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.engine"
package=
"org.opencv.engine"
android:versionCode=
"2
7
@ANDROID_PLATFORM_VERSION_CODE@"
android:versionCode=
"2
8
@ANDROID_PLATFORM_VERSION_CODE@"
android:versionName=
"2.
7
"
>
android:versionName=
"2.
8
"
>
<uses-sdk
android:minSdkVersion=
"@ANDROID_NATIVE_API_LEVEL@"
/>
<uses-sdk
android:minSdkVersion=
"@ANDROID_NATIVE_API_LEVEL@"
/>
<uses-feature
android:name=
"android.hardware.touchscreen"
android:required=
"false"
/>
<uses-feature
android:name=
"android.hardware.touchscreen"
android:required=
"false"
/>
...
...
platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.cpp
View file @
e241c14b
...
@@ -15,7 +15,7 @@ using namespace android;
...
@@ -15,7 +15,7 @@ using namespace android;
const
int
OpenCVEngine
::
Platform
=
DetectKnownPlatforms
();
const
int
OpenCVEngine
::
Platform
=
DetectKnownPlatforms
();
const
int
OpenCVEngine
::
CpuID
=
GetCpuID
();
const
int
OpenCVEngine
::
CpuID
=
GetCpuID
();
const
int
OpenCVEngine
::
KnownVersions
[]
=
{
2040000
,
2040100
,
2040200
,
2040300
,
2040301
,
2040302
,
2040400
,
2040500
};
const
int
OpenCVEngine
::
KnownVersions
[]
=
{
2040000
,
2040100
,
2040200
,
2040300
,
2040301
,
2040302
,
2040400
,
2040500
,
2040600
};
bool
OpenCVEngine
::
ValidateVersion
(
int
version
)
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