Python documentation. DrawContours (Bug #987)


Added by M M almost 14 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:documentation
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Dear OpenCV Team,

In Python OpenCV 2.2 Documentation (It appear as 2.1) the description of the function DrawContours does not match with the parameters that the function needs to run.

Parameters that are documented: img, contour, external_color, hole_color, max_level, thickness=1, lineType=8, offset=(0, 0)

Parameters the function really have: image, contours, contourIdx, color, [thickness], [typeLine]

Link to documentation: http://opencv.willowgarage.com/documentation/python/core_drawing_functions.html?highlight=drawcontours#DrawContours


Associated revisions

Revision 9f20d014
Added by Ilya Lysenkov almost 13 years ago

Added documentation of old Python parameters in cv.DrawContours() (issue #987)

Revision fbc68140
Added by Roman Donchenko over 11 years ago

Merge pull request #987 from jet47:bug-3085-fix

Revision 13cd0a05
Added by Roman Donchenko over 11 years ago

Merge remote-tracking branch 'origin/2.4'

Original pull requests:
#996 from jet47:gpu-nvcuvid-libraries
#995 from jet47:fix-bug-2985
#999 from snosov1:unreliable-results-fix
#1005 from alekcac:doc_fix
#1004 from jet47:fix-bug-3068
#987 from jet47:bug-3085-fix
#969 from pengx17:2.4_binary_cache
#929 from dominikrose:mingw-libdc1394-2-windows
#1000 from ivan-korolev:fix_sift_bug_2892
#1001 from ivan-korolev:fix_stitching_bug_2405
#998 from asmorkalov:android_cmake_mips_fix
#993 from ivan-korolev:fix_videostab_bug_3023
#988 from snosov1:3071-fix
#986 from pengx17:2.4_initiated_context
#982 from pengx17:2.4_fix_two_bugs
#981 from SeninAndrew:ximea_camera_support_fix
#991 from asmorkalov:android_javadoc_fix
#972 from jet47:mog2-params-bug-2168
#980 from SpecLad:include-config
#973 from pengx17:2.4_oclclahe
#903 from aks2:2.4
#968 from asmorkalov:android_na_cproj_fix
#971 from SpecLad:matchers-ctor
#970 from asmorkalov:dshow_valid_check_fix
#965 from apavlenko:fix_java_empty_mats

Conflicts:
cmake/OpenCVModule.cmake
modules/core/src/matmul.cpp
modules/gpu/CMakeLists.txt
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/perf/perf_imgproc.cpp
modules/ocl/src/imgproc.cpp
modules/ocl/src/initialization.cpp
modules/stitching/src/matchers.cpp
modules/video/src/video_init.cpp
modules/videostab/src/global_motion.cpp

History

Updated by Alexander Shishkov about 13 years ago

  • Description changed from Dear [[OpenCV]] Team, In Python [[OpenCV]] 2.2 Documentation (It appear as 2... to Dear OpenCV Team, In Python OpenCV 2.2 Documentation (It appear as 2.1) the ... More

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Normal
  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from Normal to Low

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Ilya Lysenkov almost 13 years ago

  • Target version set to 2.4.0
  • Assignee set to Ilya Lysenkov

Updated by Ilya Lysenkov almost 13 years ago

Thank you for the report. In fact, OpenCV has two Python interfaces:
the old one has following parameters: img, contour, externalColor, holeColor, maxLevel, thickness=1, lineType=8, offset=(0, 0)
the new one has these parameters: image, contours, contourIdx, color[, thickness[, lineType[, hierarchy[, maxLevel[, offset]]]]]

Both of them are documented now: see the stable official documentation at http://opencv.itseez.com/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#drawcontours

Also documentation of old parameters was added in r7904.

  • Status changed from Open to Done

Also available in: Atom PDF