Alexander Alekhin
c371df4aa2
samples: use findFile() in "python"
6 years ago
Patrick Cox
6820abd67f
samples(python): Updated use of model.load instances
...
The load() function returns a new object, and as such does not use the one it is called on.
This commit updates the uses of model.load in this program so it will work as intended and not throw an error.
6 years ago
Alexander Alekhin
5560db73bf
python: 'cv2.' -> 'cv.' via 'import cv2 as cv'
7 years ago
tribta
7555ab194f
Samples Python:
...
* Unused variables
* Bad identation
7 years ago
Vladislav Sovrasov
54c07ba0ff
Add 2 new tests, bugfixed in old tests
9 years ago
Vladislav Sovrasov
e90dc20361
Update letter_recog sample to current version of opencv interfaces
9 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
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
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
Marina Kolpakova
162f9fd7ea
merged the trunk r8735:8766, r8769, r8777:8780, r8790 and r8800:8811
13 years ago
Alexander Mordvintsev
a3220a446f
added comment to letter_recog.py sample (adopted from c++ version)
13 years ago
Andrey Kamaev
f666bd221f
Merged the trunk r8595:8668 (except iOS and new gpu functionality)
13 years ago
Alexander Mordvintsev
a98d6b6217
exposed parallelized SVM prediction to python (predict_all)
13 years ago
Gary Bradski
dfaabd88fc
added cv2.destroyAllWindows()
13 years ago
Alexander Mordvintsev
a0af870719
added CV_OUT to CvANN_MLP::predict
...
python cv2 MLP sample done
13 years ago
Alexander Mordvintsev
622bd42224
work on MLP sample in letter_recog.py (in progress...)
13 years ago
Alexander Mordvintsev
b6c19d365f
switched from argparse to getopt for compatibility with Python 2.6
14 years ago
Alexander Mordvintsev
6dc7ae0ff6
added some constants to python cv2 api
14 years ago
Alexander Mordvintsev
07f28d3309
added python cv2 port of letter_recog sample
14 years ago