18 Commits

Author SHA1 Message Date
flp
4ed2d6328b Python samples adapted for Python3 compatibility
Common fixes:
- print function
- int / float division
- map, zip iterators in py3 but lists in py2

Known bugs with opencv 3.0.0
- digits.py, called via digits_video.py: https://github.com/Itseez/opencv/issues/4969
- gaussian_mix.py: https://github.com/Itseez/opencv/pull/4232
- video_v4l2.py: https://github.com/Itseez/opencv/pull/5474

Not working:
- letter_recog.py due to changed ml_StatModel.train() signature
2015-12-13 02:49:54 +01:00
Dmitriy Anisimov
1007c06d44 initial commit 2014-09-23 07:45:51 +04:00
Andrey Kamaev
3b364330ad Merge branch '2.4' 2013-04-12 15:35:38 +04:00
Roman Donchenko
57d4c86b2b Fixed the shebang lines on the Python scripts.
Also, removed the one from modules/python/src2/cv.py and cleared its
executable bit, since it's not a script.
2013-04-11 18:37:23 +04:00
Moshe Kaplan
bd042d9cc3 Fixed shebangs, added error checking 2013-03-06 01:41:02 -05:00
marina.kolpakova
285d6320be add #/usr/bin/env python to all python files 2012-11-23 22:57:22 +04:00
OpenCV Buildbot
04384a71e4 Normalize line endings and whitespace 2012-10-17 15:32:23 +04:00
Andrey Kamaev
b368f99d03 Merged the trunk r8852:8880 2012-07-02 11:04:43 +00:00
Gary Bradski
dfaabd88fc added cv2.destroyAllWindows() 2012-03-15 03:45:15 +00:00
Gary Bradski
9164ccbaaf added 0xFF & in front of every waitKey so that it works on linux 2012-03-14 21:46:34 +00:00
Vadim Pisarevsky
16ba62dcd5 added COLOR_... enumeration to imgproc.hpp and EVENT_... enumeration to highgui.hpp 2011-07-18 13:05:34 +00:00
Alexander Mordvintsev
ae5dd1d748 math.pi -> np.pi
squares.py sample added
2011-07-16 18:29:51 +00:00
Vadim Pisarevsky
f2e1a64c1b fixed "import cv" in the new python samples. corrected Python bindings to match the documentation and vice versa (NOTE: in cv2.stereoCalibrate the parameter ordering has been changed) 2011-07-16 09:35:56 +00:00
Vadim Pisarevsky
386f147597 a few minor fixes in Python samples 2011-07-13 06:19:21 +00:00
Alexander Mordvintsev
55ba0af2bc use addWeighted for blending 2011-07-04 14:13:57 +00:00
Alexander Mordvintsev
afad87b5f2 inpaint.py sample added 2011-07-02 07:13:31 +00:00
Alexander Mordvintsev
84568cb18e python Sketcher utility class 2011-07-01 17:33:29 +00:00
Alexander Mordvintsev
aa695abad2 watershed.py sample added 2011-07-01 15:09:38 +00:00