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
e3fc4053
Commit
e3fc4053
authored
May 17, 2012
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #1954 (typos)
parent
b82b4a64
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
24 additions
and
24 deletions
+24
-24
SampleCvViewBase.java
.../org/opencv/samples/colorblobdetect/SampleCvViewBase.java
+1
-1
SampleCvViewBase.java
...g/opencv/samples/imagemanipulations/SampleCvViewBase.java
+1
-1
Sample0View.java
...dcamera/src/org/opencv/samples/tutorial0/Sample0View.java
+2
-2
SampleViewBase.java
...mera/src/org/opencv/samples/tutorial0/SampleViewBase.java
+4
-4
Sample1View.java
...dopencv/src/org/opencv/samples/tutorial1/Sample1View.java
+1
-1
SampleViewBase.java
...encv/src/org/opencv/samples/tutorial1/SampleViewBase.java
+4
-4
SampleCvViewBase.java
...ra/src/org/opencv/samples/tutorial2/SampleCvViewBase.java
+1
-1
Sample3View.java
...-native/src/org/opencv/samples/tutorial3/Sample3View.java
+1
-1
SampleViewBase.java
...tive/src/org/opencv/samples/tutorial3/SampleViewBase.java
+4
-4
Sample4View.java
...4-mixed/src/org/opencv/samples/tutorial4/Sample4View.java
+1
-1
SampleViewBase.java
...ixed/src/org/opencv/samples/tutorial4/SampleViewBase.java
+4
-4
No files found.
samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/SampleCvViewBase.java
View file @
e3fc4053
...
...
@@ -52,7 +52,7 @@ public abstract class SampleCvViewBase extends SurfaceView implements SurfaceHol
}
public
void
setupCamera
(
int
width
,
int
height
)
{
Log
.
i
(
TAG
,
"setupCamera"
);
Log
.
i
(
TAG
,
"setupCamera
("
+
width
+
", "
+
height
+
")
"
);
synchronized
(
this
)
{
if
(
mCamera
!=
null
&&
mCamera
.
isOpened
())
{
List
<
Size
>
sizes
=
mCamera
.
getSupportedPreviewSizes
();
...
...
samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/SampleCvViewBase.java
View file @
e3fc4053
...
...
@@ -54,7 +54,7 @@ public abstract class SampleCvViewBase extends SurfaceView implements SurfaceHol
}
public
void
setupCamera
(
int
width
,
int
height
)
{
Log
.
i
(
TAG
,
"setupCamera"
);
Log
.
i
(
TAG
,
"setupCamera
("
+
width
+
", "
+
height
+
")
"
);
synchronized
(
this
)
{
if
(
mCamera
!=
null
&&
mCamera
.
isOpened
())
{
List
<
Size
>
sizes
=
mCamera
.
getSupportedPreviewSizes
();
...
...
samples/android/tutorial-0-androidcamera/src/org/opencv/samples/tutorial0/Sample0View.java
View file @
e3fc4053
...
...
@@ -62,8 +62,8 @@ class Sample0View extends SampleViewBase {
}
@Override
protected
void
onPreviewStared
(
int
previewWidth
,
int
previewHeight
)
{
Log
.
i
(
TAG
,
"onPreviewStared("
+
previewWidth
+
", "
+
previewHeight
+
")"
);
protected
void
onPreviewStar
t
ed
(
int
previewWidth
,
int
previewHeight
)
{
Log
.
i
(
TAG
,
"onPreviewStar
t
ed("
+
previewWidth
+
", "
+
previewHeight
+
")"
);
/* Create a bitmap that will be used through to calculate the image to */
mBitmap
=
Bitmap
.
createBitmap
(
previewWidth
,
previewHeight
,
Bitmap
.
Config
.
ARGB_8888
);
mRGBA
=
new
int
[
previewWidth
*
previewHeight
];
...
...
samples/android/tutorial-0-androidcamera/src/org/opencv/samples/tutorial0/SampleViewBase.java
View file @
e3fc4053
...
...
@@ -132,7 +132,7 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
}
/* Notify that the preview is about to be started and deliver preview size */
onPreviewStared
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
onPreviewStar
t
ed
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
/* Now we can start a preview */
mCamera
.
startPreview
();
...
...
@@ -159,17 +159,17 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
protected
abstract
Bitmap
processFrame
(
byte
[]
data
);
/**
* This method is called when the preview process is be
e
ing started. It is called before the first frame delivered and processFrame is called
* This method is called when the preview process is being started. It is called before the first frame delivered and processFrame is called
* It is called with the width and height parameters of the preview process. It can be used to prepare the data needed during the frame processing.
* @param previewWidth - the width of the preview frames that will be delivered via processFrame
* @param previewHeight - the height of the preview frames that will be delivered via processFrame
*/
protected
abstract
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
);
protected
abstract
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
);
/**
* This method is called when preview is stopped. When this method is called the preview stopped and all the processing of frames already completed.
* If the Bitmap object returned via processFrame is cached - it is a good time to recycle it.
* Any other resourc
s
es used during the preview can be released.
* Any other resources used during the preview can be released.
*/
protected
abstract
void
onPreviewStopped
();
...
...
samples/android/tutorial-1-addopencv/src/org/opencv/samples/tutorial1/Sample1View.java
View file @
e3fc4053
...
...
@@ -31,7 +31,7 @@ class Sample1View extends SampleViewBase {
}
@Override
protected
void
onPreviewStared
(
int
previewWidth
,
int
previewHeight
)
{
protected
void
onPreviewStar
t
ed
(
int
previewWidth
,
int
previewHeight
)
{
synchronized
(
this
)
{
// initialize Mats before usage
mYuv
=
new
Mat
(
getFrameHeight
()
+
getFrameHeight
()
/
2
,
getFrameWidth
(),
CvType
.
CV_8UC1
);
...
...
samples/android/tutorial-1-addopencv/src/org/opencv/samples/tutorial1/SampleViewBase.java
View file @
e3fc4053
...
...
@@ -131,7 +131,7 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
}
/* Notify that the preview is about to be started and deliver preview size */
onPreviewStared
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
onPreviewStar
t
ed
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
/* Now we can start a preview */
mCamera
.
startPreview
();
...
...
@@ -158,17 +158,17 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
protected
abstract
Bitmap
processFrame
(
byte
[]
data
);
/**
* This method is called when the preview process is be
e
ing started. It is called before the first frame delivered and processFrame is called
* This method is called when the preview process is being started. It is called before the first frame delivered and processFrame is called
* It is called with the width and height parameters of the preview process. It can be used to prepare the data needed during the frame processing.
* @param previewWidth - the width of the preview frames that will be delivered via processFrame
* @param previewHeight - the height of the preview frames that will be delivered via processFrame
*/
protected
abstract
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
);
protected
abstract
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
);
/**
* This method is called when preview is stopped. When this method is called the preview stopped and all the processing of frames already completed.
* If the Bitmap object returned via processFrame is cached - it is a good time to recycle it.
* Any other resourc
s
es used during the preview can be released.
* Any other resources used during the preview can be released.
*/
protected
abstract
void
onPreviewStopped
();
...
...
samples/android/tutorial-2-opencvcamera/src/org/opencv/samples/tutorial2/SampleCvViewBase.java
View file @
e3fc4053
...
...
@@ -52,7 +52,7 @@ public abstract class SampleCvViewBase extends SurfaceView implements SurfaceHol
}
public
void
setupCamera
(
int
width
,
int
height
)
{
Log
.
i
(
TAG
,
"setupCamera"
);
Log
.
i
(
TAG
,
"setupCamera
("
+
width
+
", "
+
height
+
")
"
);
synchronized
(
this
)
{
if
(
mCamera
!=
null
&&
mCamera
.
isOpened
())
{
List
<
Size
>
sizes
=
mCamera
.
getSupportedPreviewSizes
();
...
...
samples/android/tutorial-3-native/src/org/opencv/samples/tutorial3/Sample3View.java
View file @
e3fc4053
...
...
@@ -14,7 +14,7 @@ class Sample3View extends SampleViewBase {
}
@Override
protected
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
)
{
protected
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
)
{
mFrameSize
=
previewWidtd
*
previewHeight
;
mRGBA
=
new
int
[
mFrameSize
];
mBitmap
=
Bitmap
.
createBitmap
(
previewWidtd
,
previewHeight
,
Bitmap
.
Config
.
ARGB_8888
);
...
...
samples/android/tutorial-3-native/src/org/opencv/samples/tutorial3/SampleViewBase.java
View file @
e3fc4053
...
...
@@ -130,7 +130,7 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
}
/* Notify that the preview is about to be started and deliver preview size */
onPreviewStared
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
onPreviewStar
t
ed
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
/* Now we can start a preview */
mCamera
.
startPreview
();
...
...
@@ -158,17 +158,17 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
protected
abstract
Bitmap
processFrame
(
byte
[]
data
);
/**
* This method is called when the preview process is be
e
ing started. It is called before the first frame delivered and processFrame is called
* This method is called when the preview process is being started. It is called before the first frame delivered and processFrame is called
* It is called with the width and height parameters of the preview process. It can be used to prepare the data needed during the frame processing.
* @param previewWidth - the width of the preview frames that will be delivered via processFrame
* @param previewHeight - the height of the preview frames that will be delivered via processFrame
*/
protected
abstract
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
);
protected
abstract
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
);
/**
* This method is called when preview is stopped. When this method is called the preview stopped and all the processing of frames already completed.
* If the Bitmap object returned via processFrame is cached - it is a good time to recycle it.
* Any other resourc
s
es used during the preview can be released.
* Any other resources used during the preview can be released.
*/
protected
abstract
void
onPreviewStopped
();
...
...
samples/android/tutorial-4-mixed/src/org/opencv/samples/tutorial4/Sample4View.java
View file @
e3fc4053
...
...
@@ -29,7 +29,7 @@ class Sample4View extends SampleViewBase {
}
@Override
protected
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
)
{
protected
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
)
{
// initialize Mats before usage
mYuv
=
new
Mat
(
getFrameHeight
()
+
getFrameHeight
()
/
2
,
getFrameWidth
(),
CvType
.
CV_8UC1
);
mGraySubmat
=
mYuv
.
submat
(
0
,
getFrameHeight
(),
0
,
getFrameWidth
());
...
...
samples/android/tutorial-4-mixed/src/org/opencv/samples/tutorial4/SampleViewBase.java
View file @
e3fc4053
...
...
@@ -130,7 +130,7 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
}
/* Notify that the preview is about to be started and deliver preview size */
onPreviewStared
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
onPreviewStar
t
ed
(
params
.
getPreviewSize
().
width
,
params
.
getPreviewSize
().
height
);
/* Now we can start a preview */
mCamera
.
startPreview
();
...
...
@@ -159,17 +159,17 @@ public abstract class SampleViewBase extends SurfaceView implements SurfaceHolde
protected
abstract
Bitmap
processFrame
(
byte
[]
data
);
/**
* This method is called when the preview process is be
e
ing started. It is called before the first frame delivered and processFrame is called
* This method is called when the preview process is being started. It is called before the first frame delivered and processFrame is called
* It is called with the width and height parameters of the preview process. It can be used to prepare the data needed during the frame processing.
* @param previewWidth - the width of the preview frames that will be delivered via processFrame
* @param previewHeight - the height of the preview frames that will be delivered via processFrame
*/
protected
abstract
void
onPreviewStared
(
int
previewWidtd
,
int
previewHeight
);
protected
abstract
void
onPreviewStar
t
ed
(
int
previewWidtd
,
int
previewHeight
);
/**
* This method is called when preview is stopped. When this method is called the preview stopped and all the processing of frames already completed.
* If the Bitmap object returned via processFrame is cached - it is a good time to recycle it.
* Any other resourc
s
es used during the preview can be released.
* Any other resources used during the preview can be released.
*/
protected
abstract
void
onPreviewStopped
();
...
...
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