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
35ac9593
Commit
35ac9593
authored
Dec 19, 2012
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Dec 19, 2012
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #236 from asmorkalov:javadoc_fix
parents
b35fa6c4
d7c89fc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
gen_javadoc.py
modules/java/generator/gen_javadoc.py
+16
-3
android+CameraBridgeViewBase.java
...java/generator/src/java/android+CameraBridgeViewBase.java
+1
-1
android+OpenCVLoader.java
modules/java/generator/src/java/android+OpenCVLoader.java
+1
-1
No files found.
modules/java/generator/gen_javadoc.py
View file @
35ac9593
...
...
@@ -3,6 +3,19 @@
import
os
,
sys
,
re
,
string
,
glob
from
optparse
import
OptionParser
# Black list for classes and methods that does not implemented in Java API
# Created to exclude referencies to them in @see tag
JAVADOC_ENTITY_BLACK_LIST
=
set
([
"org.opencv.core.Core#abs"
,
\
"org.opencv.core.Core#theRNG"
,
\
"org.opencv.core.Core#extractImageCOI"
,
\
"org.opencv.core.PCA"
,
\
"org.opencv.core.SVD"
,
\
"org.opencv.core.RNG"
,
\
"org.opencv.imgproc.Imgproc#createMorphologyFilter"
,
\
"org.opencv.imgproc.Imgproc#createLinearFilter"
,
\
"org.opencv.imgproc.Imgproc#createSeparableLinearFilter"
,
\
"org.opencv.imgproc.FilterEngine"
])
class
JavadocGenerator
(
object
):
def
__init__
(
self
,
definitions
=
{},
modules
=
[],
javadoc_marker
=
"//javadoc:"
):
self
.
definitions
=
definitions
...
...
@@ -214,9 +227,9 @@ class JavadocGenerator(object):
for
see
in
decl
[
"seealso"
]:
seedecl
=
self
.
definitions
.
get
(
see
,
None
)
if
seedecl
:
doc
+=
prefix
+
" * @see "
+
self
.
getJavaName
(
seedecl
,
"#"
)
+
"
\n
"
else
:
doc
+=
prefix
+
" * @see "
+
see
.
replace
(
"::"
,
"."
)
+
"
\n
"
javadoc_name
=
self
.
getJavaName
(
seedecl
,
"#"
)
if
(
javadoc_name
not
in
JAVADOC_ENTITY_BLACK_LIST
)
:
doc
+=
prefix
+
" * @see "
+
javadoc_name
+
"
\n
"
prefix
=
" *
\n
"
#doc += prefix + " * File: " + decl["file"] + " (line " + str(decl["line"]) + ")\n"
...
...
modules/java/generator/src/java/android+CameraBridgeViewBase.java
View file @
35ac9593
...
...
@@ -344,7 +344,7 @@ public abstract class CameraBridgeViewBase extends SurfaceView implements Surfac
* @param supportedSizes
* @param surfaceWidth
* @param surfaceHeight
* @return
* @return
optimal frame size
*/
protected
Size
calculateCameraFrameSize
(
List
<?>
supportedSizes
,
ListItemAccessor
accessor
,
int
surfaceWidth
,
int
surfaceHeight
)
{
int
calcWidth
=
0
;
...
...
modules/java/generator/src/java/android+OpenCVLoader.java
View file @
35ac9593
...
...
@@ -31,7 +31,7 @@ public class OpenCVLoader
* @param Version OpenCV library version.
* @param AppContext application context for connecting to the service.
* @param Callback object, that implements LoaderCallbackInterface for handling the connection status.
* @return
Returns true if initialization of OpenCV is successful.
* @return
Returns true if initialization of OpenCV is successful.
*/
public
static
boolean
initAsync
(
String
Version
,
Context
AppContext
,
LoaderCallbackInterface
Callback
)
...
...
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