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
525da9ef
Commit
525da9ef
authored
Oct 12, 2010
by
Ethan Rublee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on cleaning up the android port - trying to fix the distortion coefficients bug
parent
2f859a86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Makefile
android/android-jni/Makefile
+3
-4
Calibration.cpp
android/android-jni/jni/Calibration.cpp
+1
-1
project_create.sh
android/android-jni/project_create.sh
+4
-0
No files found.
android/android-jni/Makefile
View file @
525da9ef
# The path to the NDK, requires crystax version r-4 for now, due to support
# The path to the NDK, requires crystax version r-4 for now, due to support
#for the standard library
#
for the standard library
#load environment from local make file
#
load environment from local make file
LOCAL_ENV_MK
=
local.env.mk
LOCAL_ENV_MK
=
local.env.mk
ifneq
"$(wildcard $(LOCAL_ENV_MK))"
""
ifneq
"$(wildcard $(LOCAL_ENV_MK))"
""
include
$(LOCAL_ENV_MK)
include
$(LOCAL_ENV_MK)
...
@@ -9,8 +9,7 @@ else
...
@@ -9,8 +9,7 @@ else
$(shell
cp
sample.$(LOCAL_ENV_MK)
$(LOCAL_ENV_MK))
$(shell
cp
sample.$(LOCAL_ENV_MK)
$(LOCAL_ENV_MK))
$(info ERROR local environement not setup! try
:
)
$(info ERROR local environement not setup! try
:
)
$(info
gedit
$(LOCAL_ENV_MK))
$(info
gedit
$(LOCAL_ENV_MK))
$(info
Please
setup
the
$(LOCAL_ENV_MK)
-
the
default
was
just
created')
$(error
Please
setup
the
$(LOCAL_ENV_MK)
-
the
default
was
just
created')
include
$(LOCAL_ENV_MK)
endif
endif
ANDROID_NDK_BASE
=
$(ANDROID_NDK_ROOT)
ANDROID_NDK_BASE
=
$(ANDROID_NDK_ROOT)
...
...
android/android-jni/jni/Calibration.cpp
View file @
525da9ef
...
@@ -69,7 +69,7 @@ bool runCalibration(vector<vector<Point2f> > imagePoints,
...
@@ -69,7 +69,7 @@ bool runCalibration(vector<vector<Point2f> > imagePoints,
if
(
flags
&
CV_CALIB_FIX_ASPECT_RATIO
)
if
(
flags
&
CV_CALIB_FIX_ASPECT_RATIO
)
cameraMatrix
.
at
<
double
>
(
0
,
0
)
=
aspectRatio
;
cameraMatrix
.
at
<
double
>
(
0
,
0
)
=
aspectRatio
;
distCoeffs
=
Mat
::
zeros
(
5
,
1
,
CV_64F
);
distCoeffs
=
Mat
::
zeros
(
4
,
1
,
CV_64F
);
vector
<
vector
<
Point3f
>
>
objectPoints
(
1
);
vector
<
vector
<
Point3f
>
>
objectPoints
(
1
);
calcChessboardCorners
(
boardSize
,
squareSize
,
objectPoints
[
0
]);
calcChessboardCorners
(
boardSize
,
squareSize
,
objectPoints
[
0
]);
...
...
android/android-jni/project_create.sh
0 → 100755
View file @
525da9ef
#!/bin/sh
#this generates an ant based cli build of the android-jni project
android update project
--name
android-opencv
\
--path
.
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