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()
7 years ago
ilovezfs
0c4328fbf3
Python 3.7 compatability
...
The result of PyUnicode_AsUTF8() is now of type const char * rather of
char *.
7 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
Alexander Alekhin
25be4186bc
python: apply CV_OVERRIDE/CV_FINAL
7 years ago
Alexander Alekhin
08941b7890
cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars
...
- Recommended compiler checks:
- GCC: CV_GCC
- Clang: CV_CLANG
- fixed problem with CMAKE_CXX_COMPILER_ID=Clang/AppleClang mess on MacOSX
Details: cmake --help-policy CMP0025
- do not declare Clang as GCC compiler
7 years ago
Andrei Costinescu
38d73123c1
#include <math.h> in cv2.cpp
...
My build fails with the error:
"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/cmath:1136:11: error: '::hypot' has not been declared".
I have tried to fix it by adding "#include <cmath>" before the line "#include <Python.h>" but then the build has failed with the error:
"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/math.h:91:12:: error: 'std::_hypot' has not been declared".
Adding "#include <math.h>" allowed me to build opencv.
7 years ago
luz.paz
d05714995c
Misc. modules/ cont. pt2
...
Found via `codespell`
7 years ago
Alexander Alekhin
84887d3011
cmake: use -isystem for Python/numpy include directories
7 years ago
Alexander Alekhin
9e298ea1bb
build: eliminate c++17 Python build warning
7 years ago
Alexander Alekhin
01f4a173ab
opencv_version: dump OpenCL information via opencv_version
...
fix missing "opencv2/core/opencl" headers from core module (updated install list)
7 years ago
Pavel Rojtberg
2d674fc151
persistence: replace arbitrary limit of cn to 4 by CV_CN_MAX ( #10636 )
...
* persistence: replace arbitrary limit of cn to 4 by CV_CN_MAX
* python: added persistence test, remove temp files
* fixup! python: added persistence test, remove temp files
* fixup! python: added persistence test, remove temp files
7 years ago
Alexander Alekhin
59c6661db0
cmake: eliminate ninja generator warning (CMake 3.10), refactor code
7 years ago
Alexander Alekhin
ea5a3e557f
python: filter modules headers (from <module>/include directory)
7 years ago
Alexander Alekhin
361bb1197f
cmake: fix opencv_world build with contrib
7 years ago
Vitaly Tuzov
51cb56ef2c
Implementation of bit-exact resize. Internal calls to linear resize updated to use bit-exact version. ( #9468 )
7 years ago
Alexander Alekhin
5560db73bf
python: 'cv2.' -> 'cv.' via 'import cv2 as cv'
7 years ago
Alexander Alekhin
768f4cb7bc
python: 'sub-module' for binding sources and documentation meta information
7 years ago
Pavel Rojtberg
6fb9d42c3f
Hid symbols in static builds, added LTO flags, removed exports from ts
7 years ago
Pavel Rojtberg
3c795a0dab
add test_algorithm_rw using AKAZE
7 years ago
Alexander Alekhin
cbf2b51e40
bindings(py): fix handling of 'isalgorithm'
7 years ago
Alexander Alekhin
019de554a0
python(test): don't write bytecode
...
Tests are usually lauched from source directory, so additional unnecessary
files should be eliminated.
Alternative ways (command line):
- python -B ...
- PYTHONDONTWRITEBYTECODE=1 python ...
7 years ago
Alexander Alekhin
3ee8079f35
python(test): add tests filter
...
Usage example (bash):
$ OPENCV_PYTEST_FILTER=test_digits python test.py -v
7 years ago
Alexander Alekhin
aa70199ce1
build: avoid exporting of unnecessary symbols from Python bindings
7 years ago
Cartucho
7267e94be7
Merge pull request #9736 from Cartucho/const_and_class_to_json
...
* Adding constants to json file
* adding sub-module to constants name
* adding namespace to functions
* adding namespace to classes
* remove namespace from methods
* static methods
* python signatures generation
* python: more fixes for signatures generation
Python names existence can be checked via command:
python -c "import cv2 as cv; print(repr(<py_name>))"
7 years ago