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
69322033
Commit
69322033
authored
Jul 19, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android samples; updated black list of enums.
parent
1fc895ff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
gen_java.py
modules/java/gen_java.py
+8
-0
ImageManipulationsView.java
...cv/samples/imagemanipulations/ImageManipulationsView.java
+4
-4
Sample1View.java
...dopencv/src/org/opencv/samples/tutorial1/Sample1View.java
+3
-3
Sample2View.java
...vcamera/src/org/opencv/samples/tutorial2/Sample2View.java
+2
-2
Sample4View.java
...4-mixed/src/org/opencv/samples/tutorial4/Sample4View.java
+4
-4
No files found.
modules/java/gen_java.py
View file @
69322033
...
...
@@ -99,6 +99,14 @@ const_ignore_list = (
"CV_CAP_PROP_MAX_DC1394"
,
"CV_CAP_GSTREAMER_QUEUE_LENGTH"
,
"CV_CAP_PROP_PVAPI_MULTICASTIP"
,
"CV_CAP_PROP_SUPPORTED_PREVIEW_SIZES_STRING"
,
"EVENT_.*"
,
"CV_L?(BGRA?|RGBA?|GRAY|XYZ|YCrCb|Luv|Lab|HLS|YUV|HSV)
\
d*2L?(BGRA?|RGBA?|GRAY|XYZ|YCrCb|Luv|Lab|HLS|YUV|HSV).*"
,
"CV_COLORCVT_MAX"
,
"CV_.*Bayer.*"
,
"CV_YUV420i2.+"
,
"CV_TM_.+"
,
"CV_FLOODFILL_.+"
,
)
...
...
samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsView.java
View file @
69322033
...
...
@@ -86,7 +86,7 @@ class ImageManipulationsView extends SampleCvViewBase {
CreateAuxiliaryMats
();
imgproc
.
Canny
(
mGrayInnerWindow
,
mGrayInnerWindow
,
80
,
90
);
imgproc
.
cvtColor
(
mGrayInnerWindow
,
mRgbaInnerWindow
,
imgproc
.
C
V
_GRAY2BGRA
,
4
);
imgproc
.
cvtColor
(
mGrayInnerWindow
,
mRgbaInnerWindow
,
imgproc
.
C
OLOR
_GRAY2BGRA
,
4
);
break
;
case
ImageManipulationsActivity
.
VIEW_MODE_SOBEL
:
...
...
@@ -98,7 +98,7 @@ class ImageManipulationsView extends SampleCvViewBase {
imgproc
.
Sobel
(
mGrayInnerWindow
,
mIntermediateMat
,
CvType
.
CV_8U
,
1
,
1
);
core
.
convertScaleAbs
(
mIntermediateMat
,
mIntermediateMat
,
10
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgbaInnerWindow
,
imgproc
.
C
V
_GRAY2BGRA
,
4
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgbaInnerWindow
,
imgproc
.
C
OLOR
_GRAY2BGRA
,
4
);
break
;
case
ImageManipulationsActivity
.
VIEW_MODE_SEPIA
:
...
...
@@ -117,9 +117,9 @@ class ImageManipulationsView extends SampleCvViewBase {
capture
.
retrieve
(
mRgba
,
highgui
.
CV_CAP_ANDROID_COLOR_FRAME_RGBA
);
if
(
mZoomCorner
==
null
||
mZoomWindow
==
null
)
CreateAuxiliaryMats
();
imgproc
.
resize
(
mZoomWindow
,
mZoomCorner
,
mZoomCorner
.
S
ize
());
imgproc
.
resize
(
mZoomWindow
,
mZoomCorner
,
mZoomCorner
.
s
ize
());
Size
wsize
=
mZoomWindow
.
S
ize
();
Size
wsize
=
mZoomWindow
.
s
ize
();
core
.
rectangle
(
mZoomWindow
,
new
Point
(
1
,
1
),
new
Point
(
wsize
.
width
-
2
,
wsize
.
height
-
2
),
new
Scalar
(
255
,
0
,
0
,
255
),
2
);
break
;
}
...
...
samples/android/tutorial-1-addopencv/src/org/opencv/samples/tutorial1/Sample1View.java
View file @
69322033
...
...
@@ -36,15 +36,15 @@ class Sample1View extends SampleViewBase {
switch
(
Sample1Java
.
viewMode
)
{
case
Sample1Java
.
VIEW_MODE_GRAY
:
imgproc
.
cvtColor
(
mGraySubmat
,
mRgba
,
imgproc
.
C
V
_GRAY2RGBA
,
4
);
imgproc
.
cvtColor
(
mGraySubmat
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2RGBA
,
4
);
break
;
case
Sample1Java
.
VIEW_MODE_RGBA
:
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
V
_YUV420i2RGB
,
4
);
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
OLOR
_YUV420i2RGB
,
4
);
core
.
putText
(
mRgba
,
"OpenCV + Android"
,
new
Point
(
10
,
100
),
3
/* CV_FONT_HERSHEY_COMPLEX */
,
2
,
new
Scalar
(
255
,
0
,
0
,
255
),
3
);
break
;
case
Sample1Java
.
VIEW_MODE_CANNY
:
imgproc
.
Canny
(
mGraySubmat
,
mIntermediateMat
,
80
,
100
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
V
_GRAY2BGRA
,
4
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2BGRA
,
4
);
break
;
}
...
...
samples/android/tutorial-2-opencvcamera/src/org/opencv/samples/tutorial2/Sample2View.java
View file @
69322033
...
...
@@ -32,7 +32,7 @@ class Sample2View extends SampleCvViewBase {
switch
(
Sample2NativeCamera
.
viewMode
)
{
case
Sample2NativeCamera
.
VIEW_MODE_GRAY
:
capture
.
retrieve
(
mGray
,
highgui
.
CV_CAP_ANDROID_GREY_FRAME
);
imgproc
.
cvtColor
(
mGray
,
mRgba
,
imgproc
.
C
V
_GRAY2RGBA
,
4
);
imgproc
.
cvtColor
(
mGray
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2RGBA
,
4
);
break
;
case
Sample2NativeCamera
.
VIEW_MODE_RGBA
:
capture
.
retrieve
(
mRgba
,
highgui
.
CV_CAP_ANDROID_COLOR_FRAME_RGBA
);
...
...
@@ -41,7 +41,7 @@ class Sample2View extends SampleCvViewBase {
case
Sample2NativeCamera
.
VIEW_MODE_CANNY
:
capture
.
retrieve
(
mGray
,
highgui
.
CV_CAP_ANDROID_GREY_FRAME
);
imgproc
.
Canny
(
mGray
,
mIntermediateMat
,
80
,
100
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
V
_GRAY2BGRA
,
4
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2BGRA
,
4
);
break
;
}
...
...
samples/android/tutorial-4-mixed/src/org/opencv/samples/tutorial4/Sample4View.java
View file @
69322033
...
...
@@ -36,17 +36,17 @@ class Sample4View extends SampleViewBase {
switch
(
Sample4Mixed
.
viewMode
)
{
case
Sample4Mixed
.
VIEW_MODE_GRAY
:
imgproc
.
cvtColor
(
mGraySubmat
,
mRgba
,
imgproc
.
C
V
_GRAY2RGBA
,
4
);
imgproc
.
cvtColor
(
mGraySubmat
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2RGBA
,
4
);
break
;
case
Sample4Mixed
.
VIEW_MODE_RGBA
:
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
V
_YUV420i2RGB
,
4
);
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
OLOR
_YUV420i2RGB
,
4
);
break
;
case
Sample4Mixed
.
VIEW_MODE_CANNY
:
imgproc
.
Canny
(
mGraySubmat
,
mIntermediateMat
,
80
,
100
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
V
_GRAY2BGRA
,
4
);
imgproc
.
cvtColor
(
mIntermediateMat
,
mRgba
,
imgproc
.
C
OLOR
_GRAY2BGRA
,
4
);
break
;
case
Sample4Mixed
.
VIEW_MODE_FEATURES
:
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
V
_YUV420i2RGB
,
4
);
imgproc
.
cvtColor
(
mYuv
,
mRgba
,
imgproc
.
C
OLOR
_YUV420i2RGB
,
4
);
FindFeatures
(
mGraySubmat
.
getNativeObjAddr
(),
mRgba
.
getNativeObjAddr
());
break
;
}
...
...
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