Alexander Alekhin
15612ebd39
python: enable Python 3.8
5 years ago
Alexander Alekhin
4ec4ec844f
python: fix issue with bindings loading on Python 3.8
5 years ago
Alexander Alekhin
76a27e3399
pre: OpenCV 3.4.9 (version++)
5 years ago
Alexander Alekhin
4dfa0a0383
bindings: basic support for #if preprocessor directives
...
- #if 0
- #ifdef __OPENCV_BUILD
5 years ago
Vadim Levin
8d74101f07
Merge pull request #15955 from VadimLevin:dev/vlevin/generator_tests
...
Tests for argument conversion of Python bindings generator
* Tests for parsing elemental types from Python bindings
- Add positive and negative tests for int, float, double, size_t,
const char*, bool.
- Tests with wrong conversion behavior are skipped.
* Move implicit conversion of bool to integer/floating types to wrong
conversion behavior.
5 years ago
Alexander Alekhin
5d96f984b1
python: reduce code size of cv2.cpp
5 years ago
Alexander Alekhin
7ec91aefc1
python: force using of ArgInfo
5 years ago
Alexander Alekhin
973b367da6
python: emit bindings conversion failures on OPENCV_PYTHON_DEBUG=1
5 years ago
berak
b7c8e9e874
python: fix type error msg
5 years ago
Alexander Alekhin
0e40c8a031
fix pylint warnings
...
pylint 1.8.3
5 years ago
luz.paz
fcc7d8dd4e
Fix modules/ typos
...
Found using `codespell -q 3 -S ./3rdparty -L activ,amin,ang,atleast,childs,dof,endwhile,halfs,hist,iff,nd,od,uint`
backporting of commit: ec43292e1e
5 years ago
gal0is
bb7dc5f992
Solve the import issue in Python2.
6 years ago
Maksim Shabunin
10d61a2b44
Limited API support for Python3
6 years ago
Alexander Alekhin
f5ca9d3fe1
python: visibility
6 years ago
Ahmed Ashour
5c56b8ce92
java: generated code to have javadoc
6 years ago
Alexander Alekhin
9340af1a8a
core: Async API / AsyncArray
6 years ago
Alexander Alekhin
a0a1fb5fec
python: discover tests from module/misc/python/test paths
6 years ago
Alexander Alekhin
470dfba96c
python: update CMake install rules
6 years ago
Alexander Alekhin
030e955db7
python: support Python list for cv::Range
6 years ago
Alexander Alekhin
f5b58e5fc9
bindings: backport generator from OpenCV 4.x
...
- better handling of enum arguments
- less merge conflicts
6 years ago
Maksim Shabunin
8c1e0537ec
Merge pull request #13889 from mshabunin:enable-narrowing-warning
...
* Enabled -Wnarrowing warning
* Fixed type narrowing issues
* Cast python constants
* Use long long for python constants
* Use int for python constants with fallback to long
* Update cv2.cpp
6 years ago
Pavel Rojtberg
f0ef4b2246
python: sys.path[0] is reserved for the main script
6 years ago
Alexander Alekhin
bb8c19aad3
cmake: fix python install paths
6 years ago
Alexander Alekhin
ad35b79e3f
python: update install paths
...
- don't require "OPENCV_PYTHON{2,3}_INSTALL_PATH" if OPENCV_SKIP_PYTHON_LOADER=ON
- avoid unnecessary relative paths in generated config-X.Y.py
6 years ago
Alexander Alekhin
ce6acd3ecd
python: bindings loader package
...
Configures and loads OpenCV bindings extension including 3rdparty dependencies
Based on running Python specify:
- configure PYTHON_PATH (via "sys.path")
- configure LD_LIBRARY_PATH / PATH
6 years ago
Alexander Alekhin
2fa9bd221d
core: add utils::findDataFile() / samples::findFile()
6 years ago
Alexander Alekhin
96c71dd3d2
dnn: reduce set of ignored warnings
6 years ago
Diego Barrios Romero
7a884ab6a5
Fix closing input file
6 years ago
Alexander Alekhin
aa6e296236
python: eliminate DeprecationWarning: SO -> EXT_SUFFIX
...
- https://python.readthedocs.io/en/stable/whatsnew/3.4.html
- The `sysconfig` key `SO` is deprecated, it has been replaced by `EXT_SUFFIX`
6 years ago
Alexander Alekhin
404893810c
cmake: fix Python detection for standalone bindings
6 years ago
Dmitry Kurtaev
24ab751547
Merge pull request #12565 from dkurt:dnn_non_intel_gpu
...
* Remove isIntel check from deep learning layers
* Remove fp16->fp32 fallbacks where it's not necessary
* Fix Kernel::run to prevent localsize > globalsize
6 years ago
Alexander Alekhin
3cab9e7a9c
3.4: fixes
6 years ago
Dmitry Kurtaev
d259eb28bb
Add python tests for dnn module
6 years ago
Hamdi Sahloul
03b3be0f51
MSVC: Slience external/meaningless warnings
6 years ago
Alexander Alekhin
95dd4b3f27
bindings: add debug helpers for args conversions
6 years ago
Hamdi Sahloul
a39e0daacf
Utilize CV_UNUSED macro
6 years ago
berak
21f3987d53
python: add support for NMSBoxes
6 years ago
Maksim Shabunin
0aded5aae6
cmake: fixed builds in directories containing plus sign
6 years ago
Alexander Alekhin
270cc3bcbc
videoio: add routines to query information about backends API
...
into cv::videoio_registry namespace
6 years ago
Alexander Alekhin
b09a4a98d4
opencv: Use cv::AutoBuffer<>::data()
6 years ago
ilovezfs
0c4328fbf3
Python 3.7 compatability
...
The result of PyUnicode_AsUTF8() is now of type const char * rather of
char *.
6 years ago
Alexander Alekhin
dd7f88bd68
python: support standalone Python bindings build
...
- requires OpenCV source directory
- requires OpenCV binary directory with built modules and 'python_bindings_generator' target
7 years ago
Alexander Alekhin
dcb9bc2544
python: eliminate pylint warnings
...
Tested with:
- pylint 1.9.1
7 years ago
Alexander Alekhin
c2d40b465d
python: fix arg types of cv2_UMatWrapperObject functions
7 years ago
Alexander Alekhin
1207300e01
python: avoid direct cast PyCFunctionWithKeywords->PyCFunction
7 years ago
Dmitry Kurtaev
d5b9563263
Custom deep learning layers in Python
7 years ago
Alexander Alekhin
21026bf7cd
python: fix support of UI callbacks
7 years ago
Dan Mašek
8c1d8eccdd
Merge pull request #11207 from dan-masek:add_redirect_error
...
* Add Python support for error message handlers.
* Move the static variable to the only function that uses it.
* Remove the optional param (user data), since this can already be handled by closures.
* Correct the help string.
* python: added redirectError test
7 years ago
Dan Mašek
f6e299b58b
Fix #11206
7 years ago
Dan Mašek
eae3ed0c08
Fix a leak described in issue #11205
7 years ago