APrigarina
0f24d4d2a1
fix samples
3 years ago
APrigarina
5e80bd3cc9
fix samples 3.4
4 years ago
Ixarias
3f14341629
Change Keymap wording for gray image in curve mode
...
Instead of being a copy of line 76, line 79 instead correctly indicates that it will show a histogram for a gray image in curve mode, as given by the code block at line 103 referencing image "gray" instead of image "im".
4 years ago
Alexander Alekhin
04fad57fc1
samples: fix python samples compatibility with demo.py
6 years ago
Alexander Alekhin
c371df4aa2
samples: use findFile() in "python"
6 years ago
Alexander Alekhin
5560db73bf
python: 'cv2.' -> 'cv.' via 'import cv2 as cv'
7 years ago
StevenPuttemans
6d34d6b47e
update samples: waitKey() usage
...
Original commit is a5f19f7dd6
8 years ago
Alexander Alekhin
a8e2922467
rename samples/{python2 -> python}
9 years ago
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
9 years ago
Dmitriy Anisimov
1007c06d44
initial commit
10 years ago
Roman Donchenko
9b92545ce6
War on Whitespace, master edition: trailing spaces.
11 years ago
Roman Donchenko
e9a28f66ee
Normalized file endings.
11 years ago
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.
12 years ago
Moshe Kaplan
bd042d9cc3
Fixed shebangs, added error checking
12 years ago
Abid K
96b2898f38
Update samples/python2/hist.py
...
range in calcHist() changed from [0,255] to [0,256]. Otherwise, it won't count pixels with value 255. It can be verified taking sum of histogram values and checking it with image size.
12 years ago
marina.kolpakova
285d6320be
add #/usr/bin/env python to all python files
12 years ago
OpenCV Buildbot
81f826db2b
Normalize line endings and whitespace
12 years ago
OpenCV Buildbot
04384a71e4
Normalize line endings and whitespace
12 years ago
Gary Bradski
c47c1adc94
remove some unneeded imports
13 years ago
Gary Bradski
dfaabd88fc
added cv2.destroyAllWindows()
13 years ago
Gary Bradski
41d2a3c832
Examples of using histograms in python
13 years ago