java: fix javadoc generation

pull/18519/head
Alexander Alekhin 5 years ago
parent a5b8f163d7
commit 644de8f22a
  1. 2
      modules/calib3d/include/opencv2/calib3d.hpp
  2. 1
      modules/java/generator/gen_java.py

@ -2163,7 +2163,7 @@ final fundamental matrix. It can be set to something like 1-3, depending on the
point localization, image resolution, and the image noise. point localization, image resolution, and the image noise.
@param confidence Parameter used for the RANSAC and LMedS methods only. It specifies a desirable level @param confidence Parameter used for the RANSAC and LMedS methods only. It specifies a desirable level
of confidence (probability) that the estimated matrix is correct. of confidence (probability) that the estimated matrix is correct.
@param mask @param[out] mask optional output mask
@param maxIters The maximum number of robust method iterations. @param maxIters The maximum number of robust method iterations.
The epipolar geometry is described by the following equation: The epipolar geometry is described by the following equation:

@ -769,6 +769,7 @@ class JavaWrapperGenerator(object):
inCode = True inCode = True
if "</code>" in line: if "</code>" in line:
inCode = False inCode = False
line = line.replace('@result ', '@return ') # @result is valid in Doxygen, but invalid in Javadoc
if "@return " in line: if "@return " in line:
returnTag = True returnTag = True

Loading…
Cancel
Save