Vadim Pisarevsky
b8b5d83ad0
Merge pull request #9566 from alalek:python_signatures
2017-09-13 13:32:05 +00:00
Maksim Shabunin
2ac57a2b1f
Merge pull request #9457 from alalek:type_traits_issue_7599
2017-09-06 13:34:29 +00:00
Alexander Alekhin
572a7bf6ce
python: add special targets gen_opencv_python2(3)
2017-09-06 08:23:04 +03:00
Alexander Alekhin
200c8a0d3a
python: generate pyopencv_signatures.json file
2017-09-06 08:23:04 +03:00
Lewis B
1caca2112b
Merge pull request #8934 from lewisjb:python-classes
...
* Refactor Python Classes
2017-09-05 05:38:17 +00:00
Alexander Alekhin
7791839f22
python(test): tests filtering
2017-09-03 18:26:24 +00:00
Alexander Alekhin
2f94637899
python(test): refactor test.py, move test code outside from test.py
2017-09-03 18:26:09 +00:00
Alexander Alekhin
936234d5b1
python(test): enable pylint checks for tests
2017-09-03 18:19:17 +00:00
Alexander Alekhin
72f789bf34
core: fix type traits
2017-08-31 15:05:46 +03:00
Alexander Alekhin
ea6fe71a50
python: eliminate -Wundef warning about NPY_INTERNAL_BUILD
...
numpy 1.13.0+
2017-08-22 11:56:55 +03:00
Alexander Alekhin
b6949c5088
cmake: CMP0022 NEW
2017-08-19 15:15:05 +00:00
Alexander Alekhin
46f05f2db6
python: disable assertion in NumpyAllocator
2017-07-30 14:44:11 +03:00
Alexander Alekhin
15a6586062
python: stitching simple test
2017-07-30 14:44:10 +03:00
Alexander Alekhin
b32d914aab
static analyze: python dynamic_cast checks
2017-07-06 17:11:51 +03:00
Alexander Alekhin
6ea6e4bceb
binding: fix headers processing
2017-06-30 14:53:21 +03:00
Alexander Alekhin
2db45c8a85
hdr_parser: ignore lines with 'CV__' macros
2017-06-30 14:36:08 +03:00
Maksim Shabunin
9087778b06
Merge pull request #8895 from lewisjb:python-docstrings
2017-06-29 07:35:33 +00:00
Alexander Alekhin
006966e629
trace: initial support for code trace
2017-06-26 17:07:13 +03:00
lewisjb
078b4cc971
Added Python Docstrings
2017-06-14 16:46:08 +10:00
Werner Palfinger
0f42031b10
fixed typo in pyopencv_from Point3d
2017-05-30 16:49:23 +02:00
Pavel Rojtberg
930611dfa8
python: move Ptr specializations above generic_vec to allow vector_Ptr_T
2017-04-27 11:28:31 +02:00
Peter Würtz
a4c70aebd0
Expose UMat OpenCL handles and buffer information to python
2017-04-22 09:42:27 +02:00
Hamdi Sahloul
89088937a7
Avoid memory leakage in smart pointers wrapper
2017-04-01 18:27:57 +09:00
Hamdi Sahloul
c75b589f89
Wraps smart pointers properly
2017-04-01 03:19:29 +09:00
Hans Gaiser
11b24eb49f
Expose CirclesGridFinderParameters in findCirclesGrid.
2017-03-02 10:53:45 +01:00
Maksim Shabunin
220d1f0b3e
Merge pull request #8231 from paroj:pytype
2017-02-27 11:17:02 +00:00
Pavel Rojtberg
789dc0a3b7
python: type of initial_button_state must match format string
2017-02-21 11:11:22 +01:00
Hamdi Sahloul
232d6b87f4
cv::Matx python wrapper
2017-02-21 11:29:28 +09:00
Alexander Alekhin
a5d16f09e6
cmake world: allow to build python bindings
2017-01-23 18:45:53 +03:00
Alexander Alekhin
205ccddff8
Merge pull request #8053 from pwuertz:umat-copy-python
2017-01-23 13:20:56 +00:00
Peter Würtz
c659f94dca
Expose more UMat constructors to python
2017-01-22 13:11:13 +01:00
Alexander Alekhin
a2b6b595c2
shape: force column-based vector
2017-01-18 13:02:51 +03:00
StevenPuttemans
6d34d6b47e
update samples: waitKey() usage
...
Original commit is a5f19f7dd6
2016-12-15 15:39:47 +03:00
Alexander Alekhin
30807b26c7
Merge pull request #7644 from alalek:cmake_python_install
2016-11-18 12:19:00 +00:00
Alexander Alekhin
a88b94cc44
build: fix warning in python parser
...
/usr/lib/python3.5/re.py:203: FutureWarning: split() requires a non-empty pattern match.
return _compile(pattern, flags).split(string, maxsplit)
2016-11-11 17:45:12 +03:00
Alexander Alekhin
edcbc15a90
cmake: python installation
...
Also fixes issue with empty PYTHON_PACKAGES_PATH (cross-compilation mode)
2016-11-10 17:53:53 +03:00
abratchik
8da1303179
add vector_vector_KeyPoint support to python wrappers
2016-10-16 19:09:35 +04:00
Alexander Alekhin
5da8d65371
eliminate compiler warnings
2016-10-08 02:19:43 +03:00
Vadim Pisarevsky
a799cc13d9
Merge pull request #6078 from PolarNick239:master
2016-10-05 17:27:23 +00:00
Alexander Alekhin
73e1d64ae0
Merge pull request #6956 from mshabunin:fix-chessboard-bug
2016-09-27 13:33:42 +00:00
Maksim Shabunin
b8bce55270
Several chessboard detector improvements:
...
- fixed uninitialized memory access and memory leaks
- extracted several code blocks to separate functions
- updated part of algorithm to use cv::Mat instead of CvMat and IplImage
2016-09-22 19:25:04 +03:00
Vladislav Sovrasov
ae28345ca5
Make test_texture_flow.py more robust
2016-09-21 17:11:00 +03:00
Vadim Pisarevsky
ea1f885be1
Merge pull request #7055 from gylns:master
2016-08-18 13:17:18 +00:00
Vitaliy Lyudvichenko
ab8de8f506
Adding of user-defined type conversions for python bindings inside module directories
...
Adding of destructor and placement new constructors for classes wrapped with CV_EXPORTS_W_SIMPLE macro
2016-08-16 13:10:17 +03:00
will hunt
ac2d79fd67
MSER: all test passed.
...
1. if a component's variation is a global minimum than it should be a local minimum
2. for the small image with invert and blur, the MSERs number should be 20
2016-08-15 09:25:45 +08:00
Maksim Shabunin
474868a892
Merge pull request #6884 from alalek:migration
2016-07-18 07:49:38 +00:00
Maksim Shabunin
63d8290491
Merge pull request #6779 from alalek:python_dynamic_lookup
2016-07-15 12:28:30 +00:00
Maksim Shabunin
f698bc1cc2
Fixes header filtering for python bindings generator
2016-07-13 19:49:38 +03:00
Alexander Alekhin
ddc0b42bc3
migration: github.com/opencv/opencv
2016-07-12 12:51:12 +03:00
Alexander Alekhin
c0fe374490
cmake: python, allow dynamic symbols lookup from libpython.so
2016-07-07 14:23:35 +03:00
Matthew Skolaut
f861d0d643
merge #ifs in highgui bindings
2016-06-21 17:16:16 -05:00
Matthew Skolaut
7284a77cd3
fix casting warning in python createButton binding
2016-06-20 21:07:24 -05:00
Matthew Skolaut
9b959072a2
added python binding for createButton
2016-06-20 16:24:15 -05:00
Vadim Pisarevsky
0fc26f80d7
Merge pull request #6547 from mshabunin:python-vector-pair-int-double
2016-05-25 13:17:15 +00:00
Maksim Shabunin
8011be2810
Python bindings: added std::vector< std::pair< int, double > > type read support
2016-05-17 17:26:27 +03:00
berak
11e563fd5d
python: support for size_t args (default value)
2016-05-03 09:50:08 +02:00
Vladislav Sovrasov
a490b64e9b
Add function setRNGSeed and seed setup in python tests
2016-03-25 16:17:58 +03:00
Vladislav Sovrasov
fd61978795
Add goodfeatures python test and cleanup in test directory
2016-03-18 11:16:08 +03:00
Vladislav Sovrasov
e2434ab7c3
Use AKAZE detector instead of ORB in feature_homography test
2016-03-09 11:37:25 +03:00
Vladislav Sovrasov
22b028b64b
Fix warnings in python3
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
e4fed417d2
Add segmentation and object tracking python tests
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
0c6e09f060
Changes in facedetect test
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
87fc75c6d7
Improvements in tests, bugfix in digits_video sample
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
4e3a6328ba
Fixes in calibration and camshift tests
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
54c07ba0ff
Add 2 new tests, bugfixed in old tests
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
cb7cc81653
Add dft python test, fix platform depended result in morphology test
2016-03-03 11:06:21 +03:00
Vladislav Sovrasov
aaa43dc84f
Add morphology python test, fix python3 compabtibility in kmeans test
2016-03-03 11:06:20 +03:00
Vladislav Sovrasov
56571561b4
Add k-means python test, fix loading images in calibration test
2016-03-03 11:06:20 +03:00
Vladislav Sovrasov
5625d79508
Fix loading images in python tests
2016-03-03 11:06:20 +03:00
Vladislav Sovrasov
ab4d375349
Add new tests on python
2016-03-03 11:06:20 +03:00
Alexander Alekhin
d2e5f90f32
cmake: fix cv2.lib conflict for python2/3 bindings (MSVS)
2016-02-26 17:08:07 +03:00
Nikolay Polyarniy
46e08d34dd
T-API python support implemented:
...
- cv2.UMat implemented - python thin wrapper for UMat
- no implicit copy from GPU to Host done, resulting UMat can be passed to next function without overhead
- cv2.UMat.get() - to fetch data to Host
- new tests covers: ORB, BFMatcher, goodFeaturesToTrack, calcOpticalFlowPyrLK
2016-02-09 12:33:07 +03:00
Vadim Pisarevsky
97dc5be841
Merge pull request #5821 from alalek:build_framework
2015-12-18 10:12:55 +00:00
Alexander Alekhin
be23846c4e
update osx and ios build_framework.py
2015-12-17 16:17:31 +03:00
Maksim Shabunin
84f37d352f
HAL moved back to core
2015-12-17 12:33:23 +03:00
Alexander Alekhin
0db10a3052
fixes #5019 : python and java bindings become CMake modules (loadable plugins)
2015-12-14 16:20:18 +03:00
Vadim Pisarevsky
b5fd7868a8
Merge pull request #5487 from Wangyida:python
2015-11-02 12:26:53 +00:00
Vadim Pisarevsky
39346f3204
Merge pull request #5592 from berak:python_rect2d
2015-11-02 11:36:03 +00:00
berak
1048b235bf
add Rect2d to python bindings
2015-10-30 10:02:33 +01:00
Wangyida
ca599eee40
python modification for Point3D
2015-10-29 10:24:49 +08:00
Maksim Shabunin
6e9d0d9a0c
Visual Studio 2015 warning and test fixes
2015-10-20 12:48:37 +03:00
boatx
d674965bf9
Fixing typo in variable name.
2015-08-12 20:50:05 +00:00
Vadim Pisarevsky
e379ea6ed6
Merge pull request #4117 from jaimefrio:relaxed_strides
2015-07-01 10:53:45 +00:00
Vadim Pisarevsky
945aa06f58
Merge pull request #4111 from mshabunin:fix-flann-access
2015-06-22 11:53:32 +00:00
Vadim Pisarevsky
66216ea2be
Merge pull request #4093 from mshabunin:python-bases
2015-06-17 11:55:07 +00:00
Maksim Shabunin
fef7509eed
NumpyAllocator: check reference count before actual release, revert flann changes
2015-06-17 12:07:57 +03:00
Jaime Fernandez
c613ee2da4
BUG: ndarray to Mat conversion with NPY_RELAXED_STRIDES set
...
Add logic to avoid nonsense strides when dimension size is 1 and
NumPy is built with NPY_RELAXED_STRIDES from tripping OpenCV.
2015-06-11 09:41:12 -07:00
Alexander Alekhin
caaf60ba00
remove bindings generation for DetectionBasedTracker
2015-06-09 19:01:04 +03:00
Maksim Shabunin
78ddc567f9
Python generator: moved base class handling to the generate step
2015-06-05 12:41:23 +03:00
Maksim Shabunin
c137ba53a0
Wrap ANN_MLP class into Python
2015-05-06 15:21:23 +03:00
Mansour Moufid
b99f7a29df
Cast some image coordinates and sizes to double.
...
Conflicts:
modules/gpu/perf/perf_imgproc.cpp
Cast a long integer to double explicitly.
Conflicts:
modules/python/src2/cv2.cpp
Cast some matrix sizes to type int.
Change some vector mask types to unsigned.
Conflicts:
modules/core/src/arithm.cpp
2015-04-25 18:54:53 +02:00
Ying Xiong
2d8b4fea9f
Add #ifdef's such that python wrapper builds independent of other components
2015-04-06 19:57:10 -04:00
Maksim Shabunin
e94dfcee0d
Add python test for inheritance structure generation
2015-03-26 11:43:49 +03:00
Maksim Shabunin
82adf7955f
Fix python submodules inheritance detection
2015-03-26 11:22:56 +03:00
Tim D. Smith
b9b743bbe3
Don't explicitly link Python on OS X
...
Explicitly linking to a Python framework on OS X prevents modules from
being built against one Python (i.e. system python) and imported from
another (i.e. Homebrew python); the interpreter segfaults if there's a
linkage to a foreign Python. Building the module with `-undefined
dynamic_lookup` instead of an explicit link allows the symbols to be
resolved at load time from a compatible python.
2015-03-23 23:36:46 -07:00
Adam Greig
211a131351
Fix Python3 binding's submodules
...
Previously the Python3 cv2 package ends up with no submodules (bgsegm, face,
etc) in it, which makes a lot of functionality unusable. By not writing over
our root reference we ensure the new submodules are added to the correct cv2
module.
2015-03-10 22:07:53 +00:00
Vadim Pisarevsky
6820292256
Merge pull request #3700 from MSOpenTech:winrt-cmake-contrib
2015-03-03 12:52:03 +00:00
Maxim Kostin
cdd23440c9
Adding support for WinRT(WinPhone 8/8.1 and Win Store) via CMake 3.1
...
- Substituted HAVE_WINRT with WINRT
- Fixed compilation issues in ocl.cpp and parallel.cpp
- Fixed compiler issue for WP8: "C2678: binary '+' : no operator found which takes a left-hand - Fixed gitignore
- Added #ifdef HAVE_OPENCL to remove compiler warnings in ocl.cpp
- Used NO_GETENV similar to '3rdparty\libjpeg\jmemmgr.c;
- Added ole32.lib for core module (for WindowsStore 8.0 builds)
- Made OpenCV_ARCH aware of ARM
Signed-off-by: Maxim Kostin <v-maxkos@microsoft.com>
2015-03-02 22:26:43 +03:00
Maksim Shabunin
37c74e38f4
Python support
2015-03-02 18:13:00 +03:00
Maksim Shabunin
553020c448
Enabled STL usage within the library
2015-02-18 12:36:50 +03:00
Maksim Shabunin
a5a510da4b
Support for compound modules, support for contrib_world
2015-02-10 18:30:05 +03:00
Mike Izbicki
ac47c0c624
fix to work with python 2.6
...
I had to make this modification locally to get opencv to build with python 2.6. Python 2.6 requires indices in the format string (the `0` I added). This requirement was relaxed in 2.7, so what used to be there would be working for people who could upgrade. I don't think the change has any negative consequences for future python versions, but I'm no expert.
2015-01-02 14:41:44 -08:00
Maksim Shabunin
84379140ba
Python test: added options to provide local data path
2014-12-03 18:12:01 +03:00
Shiquan Wang
7127634aa0
Mod: Open header files with io.open
for Python 2/3 compatibility.
2014-11-10 21:09:43 +08:00
Vadim Pisarevsky
80a985c894
fixed path to the checkerboard image
2014-11-07 15:57:42 +03:00
Vadim Pisarevsky
1176d4ef84
fixed some more compile errors and test failures
2014-10-17 15:02:56 +04:00
abidrahmank
797143d515
extending stitching module for Java and Python bindings
2014-09-27 19:35:49 +04:00
Maksim Shabunin
6337fd0650
Support of bioinspired contrib module wrapping
...
- added java wrapper
- disabled python wrapper
2014-09-22 11:43:29 +04:00
Huu Nguyen
81b9be1623
Fix implicit narrowing error in initializer list
...
The implicit narrowing in the initializer list throws a compiler error for some compilers with C++11 support turned on. The specific error message is: "error: narrowing conversion of 'PyInt_AsLong(((PyObject*)o))' from 'long int' to 'double' inside { }".
Tested on Clang 5.1.0 and Mac OS X 10.9.4.
2014-09-16 15:30:10 -07:00
Alexander Mordvintsev
c1032b6232
remove structured_edge_detection.hpp from blacklist
...
don't discard pure virtual methods in hdr_parser.py (was broken anyway)
2014-09-01 13:55:41 +04:00
Alexander Mordvintsev
c23d6b67ee
blacklisted 'tracking' due to some linking problem
2014-08-21 18:45:50 +04:00
Alexander Mordvintsev
2a9e252f77
fix namespace conflicts (like cv::inpaint and cv::xphoto::inpaint)
...
whitespace fix
2014-08-21 17:33:21 +04:00
Alexander Mordvintsev
74c77d826f
base class name resolution
...
fixed find_obj.py
2014-08-21 14:51:03 +04:00
Alexander Mordvintsev
40d0f853d6
removing modules from blacklist
2014-08-19 19:19:11 +04:00
Alexander Mordvintsev
c4c731c0aa
fixing warnings
...
keep old const names for compatibility
2014-08-19 16:57:37 +04:00
Alexander Mordvintsev
c22dcb04af
fixing warnings
2014-08-19 16:40:09 +04:00
Alexander Mordvintsev
e74cddfbd1
put consts into python submodules
...
maintain set of visited namespaces in CppHeaderParser
WARNING: REMOVED const name conversion (SomeConstName -> SOME_CONST_NAME), discussion needed
2014-08-19 16:40:09 +04:00
Alexander Mordvintsev
6d1c02ffed
unified namespace population with 'init_submodule'
2014-08-19 16:40:08 +04:00
Alexander Mordvintsev
4a519a25f3
nested classes support
2014-08-19 16:40:08 +04:00
Alexander Mordvintsev
5ad7f9910f
function namespaces partially work
2014-08-19 16:40:07 +04:00
Alexander Mordvintsev
e85e83f491
handling namespaces on parsing functions
...
submodule method tables generation
2014-08-19 16:40:06 +04:00
Vadim Pisarevsky
740c5234b1
fix compile problems with contributed ximgproc/xphoto
2014-08-15 18:00:41 +04:00
Vadim Pisarevsky
6f86c9f118
another mac-related fix, let's squeeze it in this PR too
2014-08-14 10:45:47 +04:00
Vadim Pisarevsky
31df47b6ea
moved nonfree and a part of features2d to opencv_contrib/xfeatures2d
2014-08-11 23:26:39 +04:00
Vadim Pisarevsky
d0137b6d2d
moved part of video to contrib/{outflow, bgsegm}; moved matlab to contrib
2014-08-10 23:24:16 +04:00
Vadim Pisarevsky
e2f24f43c9
added some basic functionality needed by the new face module (moved from the old "contrib")
2014-08-10 01:54:16 +04:00
arc
3d0a270a66
Merge branch 'master' into python2and3
2014-08-07 01:04:26 -04:00
Michael Pratt
e9ccadebed
Support Python 2 and 3 in test script
...
Add Python 3 support to the Python test.py script.
The print function is used in place of the print statement.
The urlopen function has been moved to urllib.request in Python 3, so
attempt to import it from either location.
TestCase.assert_() has been deprecated in place of
TestCase.assertTrue().
The tests all pass in both Python 2 and 3.
2014-08-07 00:51:48 -04:00
Michael Pratt
7d41ce23a7
Build Python 3 bindings in subdirectory
...
Build the Python 3 cv2 module in lib/python3/, to avoid potential naming
conflicts with the Python 2 bindings.
The Python 2 bindings are placed directly in lib/, where they are
required for the Buildbot to successfully execute the Python tests.
2014-08-07 00:21:42 -04:00
Michael Pratt
d921cde4d2
Add opencv_matlab to Python ignored modules
...
Requested by @vpisarev in #3047 .
2014-08-07 00:16:49 -04:00
Michael Pratt
9d9411555f
Place Python library out in dedicated folder
...
Place the built Python module library in a dedicated folder inside of
lib/. This ensures that even if the Python 2 and Python 3 module names
conflict, they will not overwrite one another.
2014-08-06 02:31:30 -04:00
Michael Pratt
976c727eec
Fix a few more PYTHON_NUMPY_INCLUDE_PATH
...
The previous commit fixing references to PYTHON_NUMPY_INCLUDE_PATH
missed a few unset()s.
2014-08-06 02:30:35 -04:00
Michael Pratt
218b12c557
Merge branch 'master' into python2and3
2014-08-06 01:45:07 -04:00
Alexander Alekhin
55188fe991
world fix
2014-08-05 20:12:35 +04:00
Vadim Pisarevsky
432b7cb235
Merge pull request #3032 from vpisarev:refactor_ml2
2014-08-04 14:51:38 +00:00
Vladislav Vinogradov
cdb7b83741
fix python module compilation with enabled CUDA support:
...
filterout all CUDA related headers from python module include headers
2014-08-04 12:12:51 +04:00
Vadim Pisarevsky
8e9d1d9fe6
temporarily disabled java bindings for ml; hopefully fixed warnings etc.
2014-08-03 04:28:20 +04:00
Michael Pratt
52df3b232d
Reference PYTHON_NUMPY_INCLUDE_DIRS not PYTHON_NUMPY_INCLUDE_PATH
...
PYTHON_NUMPY_INCLUDE_PATH was a typo, it should have been
PYTHON_NUMPY_INCLUDE_DIRS.
2014-07-31 03:27:06 -04:00
Michael Pratt
c9876c3cd8
Merge branch 'master' into python2and3
2014-07-31 01:13:16 -04:00
Vadim Pisarevsky
e368f17caf
fixed python bindings generation
2014-07-30 16:11:08 +04:00
Alexander Mordvintsev
5f47f70183
module blacklist
2014-07-27 18:03:27 +04:00
Alexander Mordvintsev
a2ae1db31c
'adas' extra module doesn't produce .lib on windows (causes link error)
2014-07-27 17:41:12 +04:00
Alexander Mordvintsev
9ab3b89c53
pass header list to gen2.py by a text file (avoid command line length limit on windows)
2014-07-27 17:17:36 +04:00
Alexander Mordvintsev
42ecfc5538
fixed parsing enums with tailing comma
...
gen2.py reports headers it processes
cmake file restructured
2014-07-27 17:17:35 +04:00
Alexander Mordvintsev
964657a155
glob for python module dependences
2014-07-27 17:17:35 +04:00
Alexander Mordvintsev
1d1bfd3d7d
automatic search for headers for python wrapper generation
2014-07-27 17:17:35 +04:00
vbystricky
d58f736935
Split highgui module to videoio and highgui
2014-07-14 23:16:47 +04:00
vbystricky
4286f60387
Extract imgcodecs module from highgui
2014-07-07 16:28:08 +04:00
Michael Pratt
cac1218eef
Build both Python 2 and Python 3 bindings
...
If both Python 2 and Python 3 are found, then build bindings for both of
them during the build process. Currently, one version of Python is
detected automatically, and building for the other requires changes the
CMake config.
The largest chunk of this change generalizes OpenCVDetectPython.cmake to
find both a Python 2 and Python 3 version of Python. Secondly, the
opencv_python module is split into two modules, opencv_python2 and
opencv_python3. Both are built from the same source. but for different
versions of Python.
2014-06-29 20:08:13 -04:00
Vadim Pisarevsky
3858f2291d
removed contrib, legacy and softcsscade modules; removed latentsvm and datamatrix detector from objdetect. removed haartraining and sft apps.
...
some of the stuff will be moved to opencv_contrib module.
in order to make this PR pass buildbot, please, comment off opencv_legacy, opencv_contrib and opencv_softcascade test runs.
2014-06-24 19:18:51 +04:00