Vadim Levin
390957fec4
fix: NumPy array allocation error message in vector conversion
2021-09-02 10:32:17 +03:00
Alexander Alekhin
060a76dc3e
Merge pull request #20573 from rogday:onnx_scale_fix
2021-09-01 14:09:17 +00:00
Alexander Alekhin
6625810d2a
Merge pull request #20618 from VadimLevin:dev/vlevin/fix-vector-conversion
2021-09-01 10:52:37 +00:00
WJJ1995
edc442afdb
Merge pull request #20511 from wjj19950828:add_humanseg_support_0806
...
* support PPSeg model for dnn module
* fixed README for CI
* add test case
* fixed bug
* deal with comments
* rm dnn_model_runner
* update test case
* fixed bug for testcase
* update testcase
2021-09-01 10:10:05 +00:00
Vadim Levin
16b9514543
feat: update conversion logic for std::vector<T>
in Python bindings
...
`PyObject*` to `std::vector<T>` conversion logic:
- If user passed Numpy Array
- If array is planar and T is a primitive type (doesn't require
constructor call) that matches with the element type of array, then
copy element one by one with the respect of the step between array
elements. If compiler is lucky (or brave enough) copy loop can be
vectorized.
For classes that require constructor calls this path is not
possible, because we can't begin an object lifetime without hacks.
- Otherwise fall-back to general case
- Otherwise - execute the general case:
If PyObject* corresponds to Sequence protocol - iterate over the
sequence elements and invoke the appropriate `pyopencv_to` function.
`std::vector<T>` to `PyObject*` conversion logic:
- If `std::vector<T>` is empty - return empty tuple.
- If `T` has a corresponding `Mat` `DataType` than return
Numpy array instance of the matching `dtype` e.g.
`std::vector<cv::Rect>` is returned as `np.ndarray` of shape `Nx4` and
`dtype=int`.
This branch helps to optimize further evaluations in user code.
- Otherwise - execute the general case:
Construct a tuple of length N = `std::vector::size` and insert
elements one by one.
Unnecessary functions were removed and code was rearranged to allow
compiler select the appropriate conversion function specialization.
2021-09-01 13:00:21 +03:00
Alexander Alekhin
95c7f4a7f0
Merge pull request #20635 from alalek:issue_20559
2021-08-31 14:42:20 +00:00
Alexander Alekhin
ae6fabc6fe
dnn(ocl): drop CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE check
...
- it is a hint and it should not block kernel execution
2021-08-30 20:40:14 +00:00
Alexander Alekhin
7eaadf616c
Merge pull request #20622 from diablodale:fix20544-nodiscard
2021-08-30 18:09:51 +00:00
Alexander Alekhin
f25951c412
core(ocl): handle NULL in dumpValue() debug call
...
- NULL is used for allocation of workgroup local variables
2021-08-30 11:47:51 +00:00
Alexander Alekhin
2ed5cba110
build: eliminate build warnings
2021-08-29 09:18:21 +00:00
Alexander Alekhin
4c05a697fa
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-08-28 21:30:28 +00:00
Alexander Alekhin
1259a474ba
Merge pull request #20625 from alalek:fix_msvc_warnings
2021-08-28 21:24:03 +00:00
Dale Phurrough
3995deaf76
fix opencv/opencv#20544 nodiscard for msvc/gcc
...
- includes workaround for preprocessor non-compliance
- enable attribute syntax checking in msvc
2021-08-28 20:22:47 +02:00
Alexander Alekhin
076587425e
build: eliminate build warnings
2021-08-28 17:11:26 +00:00
Alexander Alekhin
da6aeaca46
Merge pull request #20623 from alalek:fix_java_byte
2021-08-28 13:23:33 +00:00
Alexander Alekhin
8ee33ca551
java(test): avoid deprecation warning
...
- 'new Byte' => 'Byte.valueOf'
2021-08-28 02:10:05 +00:00
Vincent Rabaud
38d0063c36
Do not use deprecated ReleaseCleared in protobuf library.
...
This is to make code work with protobuf arenas for memory
management (ReleaseCleared is incompatible).
The cleaning of the memory is also simpler.
2021-08-26 15:36:22 +02:00
Alexander Alekhin
56d0d5986f
Merge pull request #20598 from hanliutong:rvv-fix
2021-08-26 07:28:55 +00:00
Dale Phurrough
54a9e00970
fix opencv/opencv#20594 - exception handling with refcounts
2021-08-25 14:38:02 +02:00
Dale Phurrough
9bda96d39e
add test case
2021-08-25 14:32:40 +02:00
Alexander Alekhin
053470d5a8
Merge pull request #20597 from alalek:issue_20592
2021-08-24 19:30:38 +00:00
Alexander Panov
6f4160c014
Merge pull request #20584 from AleksandrPanov:fix_HoughCircles_ALT_dimensions
...
Fix hough circles alt dimensions
* fix OutputArray _circles dimensions
* add houghcircles_alt test
* fix warnings
* add shape assert
* change asserts
2021-08-24 19:29:40 +00:00
Sergey Ivanov
65ef82a946
Merge pull request #20570 from sivanov-work:vpl_source_data_adapter
...
G-API: oneVPL (simplification) Add data adapter & Cfg params
* Add cfg_param & data_provider
* Fix compilation after rebase
* Apply some comments
* Apply default ctor outside class definition comment
* Apply cfg param in source
* Fix compilation: add virtual dtor
* Move cfg_params in regular gapi src list
* Fix compilation: add export.hpp
* Add errno.h
* Add errno.h
* Apply namespace comment
* Add several Doxygen & rename cfg_param
* Fix build
* Update Doxygen docs for onevpl
* Fix typo
2021-08-24 15:41:57 +03:00
Alexander Alekhin
b509a7060a
Merge pull request #20593 from TolyaTalamanov:at/fix-gexecutor-writeback
2021-08-24 09:41:21 +00:00
Anatoliy Talamanov
5ad6ff239b
Merge pull request #20555 from TolyaTalamanov:at/fix-compileStreaming-bug
...
[G-API] Extend compileStreaming to support different overloads
* Make different overloads
* Order python compileStreaming overloads
* Fix compileStreaming bug
* Replace
gin -> descr_of
* Set error message
* Fix review comments
* Use macros for pyopencv_to GMetaArgs
* Use GAPI_PROP_RW
* Not split Prims python stuff
2021-08-24 12:37:50 +03:00
Nicolai Behmann
fdaa6ff9e3
Merge pull request #20475 from nibeh:patch-1
...
* Added exposure and gain props, maximized pixel clk
* removed pixel clock maximization
pixel clock maximization is not suitable for all use cases, so I removed it from PR.
2021-08-24 12:31:54 +03:00
HAN Liutong
2f31763335
fix v_reduce_sum
2021-08-24 11:42:19 +08:00
Alexander Alekhin
350562919c
highgui(win32): avoid using of stalled iterator
2021-08-23 18:16:14 +00:00
Anatoliy Talamanov
aa5c4945d6
Fix GExecutor WriteBackExec
2021-08-23 16:52:49 +03:00
Alexander Alekhin
6fbfc58602
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-08-21 17:25:18 +00:00
Alexander Alekhin
77a5c43d50
Merge pull request #20586 from alalek:issue_20585
2021-08-21 17:22:58 +00:00
Alexander Alekhin
f28e4b86fb
dnn(ocl): fix top initialization in verifyResult
2021-08-21 16:04:13 +00:00
rogday
6801dd043d
Merge pull request #20494 from rogday:onnx_diagnostic_fix
...
fix ONNXImporter diagnostic mode layer registration issue
* fix layer registration, thread unsafe access and align the behavior of DNN_DIAGNOSTICS_RUN between onnx and tf importers
* move skipModelInput
* print all missing layers
* address TF issue
2021-08-20 14:43:47 +00:00
Alexander Alekhin
b675e6ab77
Merge pull request #20581 from alalek:issue_20571
2021-08-20 11:36:38 +00:00
Alexander Alekhin
a9817e9127
Merge pull request #20556 from rogday:onnx_split_sum_fix
2021-08-20 08:10:18 +00:00
Alexander Alekhin
bb5f33d13c
Merge pull request #20572 from TolyaTalamanov:at/check-adapter-in-executor
2021-08-20 07:41:21 +00:00
Alexander Alekhin
c08897cd10
cmake: handle empty CVPY_SUFFIX
2021-08-19 20:06:41 +00:00
Vincent Rabaud
9cfa84313c
Use the one argument version of SetTotalBytesLimit.
...
The two argument versions has been deprecated, cf
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream
2021-08-19 14:31:29 +02:00
SamFC10
fa90e14b06
int8 layers and 8-bit quantization support
2021-08-19 09:56:47 +05:30
Smirnov Egor
fe625a558e
fix hasDynamicShapes for batch_size and fix axis selection in Scale layer
2021-08-18 19:22:24 +03:00
Anatoliy Talamanov
03b989251d
Check adapter in executor
2021-08-18 18:13:28 +03:00
Anatoliy Talamanov
95919051e0
Merge pull request #20528 from TolyaTalamanov:at/fix-overwrite-blob-precision-bug
...
[G-API] Prohibit setPrecision & preprocessing for importedNetworks
* Prohibit preprocessing for imported networks
* Fix typo
input_names -> output_names
* Move setBlob logic to separate function
* Change comment
2021-08-18 10:42:32 +03:00
Sergey Ivanov
46fb88c76f
Merge pull request #20546 from sivanov-work:initial_vpl_source
...
G-API: oneVPL (simplification) source base commit
* oneVPL source initial
* Fix compilation
* Fix compilation path
* Fix NO VPL compile
* Fix unused vars
* Fix unused vars in example
* Simplify oneVPL search: no custom path & download
* Fix standalone GAPI
* Apply comments
2021-08-17 20:11:22 +03:00
thezane
210bfaf8d6
Merge pull request #20483 from thezane:support-cumsum-layer-for-onnx
...
* Support cumsum layer for onnx
* Add unit tests
* Address review comments
2021-08-17 20:09:25 +03:00
zyp
8dcec034ed
Merge pull request #18694 from zyp:gstreamer_gray16
...
* videoio/gstreamer: Add support for GRAY16_LE.
* videoio/gstreamer: added BGRA/BGRx support
Co-authored-by: Maksim Shabunin <maksim.shabunin@gmail.com>
2021-08-16 16:20:10 +00:00
Smirnov Egor
9ef41f68fb
fix Split partial sum
2021-08-16 15:44:54 +03:00
Alexander Alekhin
05d733e707
Merge pull request #20524 from yichenj:dnn_text_recognition_enhance
2021-08-15 12:30:25 +00:00
Alexander Alekhin
4bbe28bdf0
Merge pull request #20460 from cv3d:flannHeapPool
2021-08-15 10:40:00 +00:00
Alexander Alekhin
0c01cf7c85
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-08-14 18:24:00 +00:00
Iyad Ahmed
917cd13ce2
Merge pull request #20549 from iyadahmed:video_capture_timeout_set_get
...
* VideoCapture add open/read timeout params to FFMPEG backend
* Fix wrong enum name
* Fix wrong enum name
2021-08-13 23:12:05 +03:00
Julia Bareeva
cfb36443fb
Merge pull request #20506 from JulieBar:lstm_activations
...
* Support activations(Sigmoid, Tanh) for LSTM
* fix warning
2021-08-13 15:41:00 +03:00
Alexander Alekhin
9d3826c676
Merge pull request #20525 from SamFC10:fix-prior-variances
2021-08-13 10:06:55 +00:00
Iyad Ahmed
4300bb2e1f
Merge pull request #20541 from iyadahmed:video_capture_timeout_prop
...
* VideoCapture timeout set/get
* Common formatting for enum values
* Fix enum values wrongly in videoio.hpp
* Define timeout enum values in public api and align with master
2021-08-12 19:51:02 +03:00
JIANG Yichen
955cf35d5f
Implement ctc prefix beam search decode for TextRecognitionModel.
...
The algorithm is based on Hannun's paper: First-Pass Large Vocabulary
Continuous Speech Recognition using Bi-Directional Recurrent DNNs
2021-08-12 20:33:31 +08:00
AleksandrPanov
25cd7c7c50
add note about Python's dsize to doc
2021-08-12 14:40:40 +03:00
Alexander Alekhin
0f8efb07c7
Merge pull request #20529 from saikatnanda:master
2021-08-12 08:14:42 +00:00
Alexander Alekhin
732cb6c45c
Merge pull request #20515 from utibenkei:fix_java_ml_testSaveLoad
2021-08-12 08:12:48 +00:00
Daniel Playfair Cal
4d63a89fa6
Merge pull request #20536 from hedgepigdaniel:fix/ocl-context-create-ownership
...
docs(core/ocl): clarify ownership of arguments passed into OpenCL related functions
* docs(core/ocl): clarify ownership in OpenCLExecutionContext::create
Although it is technically true that OpenCLExecutionContext::create
calls `clRetainContext` on its context argument, it is misleading
because it does not increase the reference count overall. Clarify that
the ownership of one reference of the passed context and device is
taken.
* docs(core/ocl): document ownership transfer in ocl::Device::fromHandle
2021-08-11 20:58:08 +03:00
Alexander Alekhin
266a868ba9
Merge pull request #20533 from AleksandrPanov:minAreaRect_fix_rotatingCalipers
2021-08-11 17:56:34 +00:00
AleksandrPanov
8199967b31
fix choose minimum angle in rotatingCalipers
2021-08-11 19:08:52 +03:00
utibenkei
9d61c18143
fix testSaveLoad
2021-08-11 21:52:39 +09:00
Hamdi Sahloul
7c73e28a6d
Improves FLANN's heap allocations by a memory pool
2021-08-11 17:34:15 +09:00
Alexander Alekhin
221bfa4c67
Merge pull request #20466 from rogday:efficientnet_fix_34
2021-08-10 22:18:17 +00:00
HAN Liutong
aaca4987c9
Merge pull request #20287 from hanliutong:dev-rvv-0.10
...
Optimization of DNN using native RISC-V vector intrinsics.
* Use RVV to optimize fastGEMM (FP32) in DNN.
* Use RVV to optimize fastGEMM1T in DNN.
* Use RVV to optimize fastConv in DNN.
* Use RVV to optimize fastDepthwiseConv in DNN.
* Vectorize tails using vl.
* Use "vl" instead of scalar to handle small block in fastConv.
* Fix memory access out of bound in "fastGEMM1T".
* Remove setvl.
* Remove useless initialization.
* Use loop unrolling to handle tail part instead of switch.
2021-08-11 01:16:03 +03:00
Alexander Alekhin
1a8b7f7513
Merge pull request #20500 from AleksandrPanov:findContours_documentation
2021-08-10 17:21:33 +00:00
AleksandrPanov
992b47b991
add 19769 and 19769_lightweight tests
2021-08-10 18:53:28 +03:00
Saikat Nanda
21d0f40751
Fix YUV indexes + YUV Planner detection condition
2021-08-09 21:41:00 -04:00
Alexander Alekhin
5e7f06397f
Merge pull request #20457 from komakai:ios-macos-mat-quicklook
2021-08-09 17:45:52 +00:00
Alexander Alekhin
adaace4ab8
Merge pull request #20510 from mpashchenkov:mp/python-ge-update
2021-08-09 15:42:27 +00:00
Smirnov Egor
739ff84732
add Max layer to TFImporter
2021-08-09 14:01:51 +03:00
SamFC10
2a177052de
fix bug in prior-box variances
2021-08-09 12:08:55 +05:30
Alexander Alekhin
424eaba4c5
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-08-07 17:25:06 +00:00
Julia Bareeva
e1cafa3834
Merge pull request #20442 from JulieBar:gru_layer
...
* Add initialization and inference for GRU layer
* fix issues found on review
2021-08-07 10:07:37 +03:00
Anatoliy Talamanov
ba539eb9aa
Merge pull request #20508 from TolyaTalamanov:at/expand-python-pyparams
...
[G-API] Expand PyParams to support constInput
* Wrap constInputs to python
* Wrap cfgNumRequests
* Fix alignment
* Move macro to the line above
2021-08-06 14:41:56 +03:00
Anatoliy Talamanov
24de676a64
Merge pull request #20476 from TolyaTalamanov:at/support-unet-camvid-0001-segm-sample
...
[G-API] Support postprocessing for not argmaxed outputs
* Support postprocessing for not argmaxed outputs
* Fix typo
* Add assert
* Remove static cast
* CamelCast to snake_case
* Fix windows warning
* Add static_cast to uint8_t
* Add const to variables
2021-08-06 10:26:49 +00:00
Alexander Alekhin
0c2741f7ad
Merge pull request #20503 from asmorkalov:as/riscv_rvv_v_rshr_pack_store
2021-08-06 09:54:05 +00:00
Alexander Alekhin
2b34e0abdc
Merge pull request #20502 from ddacw:3.4
2021-08-06 07:06:51 +00:00
Maxim Pashchenkov
6306bc3ddc
Applying of comments
2021-08-06 09:54:40 +03:00
Julia Bareeva
633fedaa96
Merge pull request #20480 from JulieBar:lstm_pytest
...
Add Python's test for LSTM layer
* Add Python's test for LSTM layer
* Set different test threshold for FP16 target
* rename test to test_input_3d
Co-authored-by: Julie Bareeva <julia.bareeva@xperience.ai>
2021-08-05 18:13:17 +03:00
Alexander Alekhin
4ff76cad2a
cmake: fix cross-compilation problems
...
- unexpected pkg-config module (we should not use host binary)
- bump cmake_minimum_required to 3.5 in toolchain files
2021-08-05 11:42:58 +00:00
Anatoliy Talamanov
5af09e73f2
Merge pull request #20490 from TolyaTalamanov:at/support-fp16-input-precision
...
[G-API] Support FP16 input precision for IE backend
* Support fp16 input precision IE backend
* Add support to wrapIE
2021-08-05 11:59:24 +03:00
Alexander Smorkalov
6a2e559222
Fixed memory access issue in v_rshr_pack_store intrinsic on RISC-V RVV.
2021-08-04 20:04:03 +03:00
Duong Dac
cefa602601
Avoid adding false UMat/GpuMat declaration
2021-08-04 15:17:25 +02:00
AleksandrPanov
d773691848
add note about hierarchy in python version
2021-08-04 15:37:20 +03:00
Dmitry Budnikov
ba0cea6826
Merge pull request #20474 from dbudniko:dbudniko/mtcnn_graph_without_resizes
...
Remove explicit PNet resizes from MTCNN graph
* remove PNet resizes
* address comment from Ruslan
2021-08-02 10:58:18 +00:00
Vadim Levin
531ea5b3a2
fix: convert arguments names that are keywords reserved by Python
2021-08-01 12:02:36 +03:00
Alexander Alekhin
d52e4e5df3
Merge pull request #20446 from alalek:cmake_eliminate_modules_scope
2021-07-31 14:49:03 +00:00
Alexander Alekhin
907743eee7
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-07-30 14:50:36 +00:00
Smirnov Egor
27392f832d
reimplement onnx refactor for master
2021-07-30 13:00:13 +03:00
Zhuo Zhang
bdd3930855
Fix typo in comment, OpenMP => TBB
2021-07-29 09:34:09 +08:00
rogday
cff0168f3a
Merge pull request #20453 from rogday:onnx_importer_fix
...
Split layer dispatch into functions in ONNXImporter
* split layer dispatch into functions
* fixes
* identation and comment fixes
* fix constness
2021-07-28 18:06:24 +03:00
Alexander Alekhin
70d5c88026
Merge pull request #20445 from dbudniko:dbudniko/G-API_mtcnn_demo_single_transpose
2021-07-26 10:09:04 +00:00
Giles Payne
2f180cea7f
Add Quicklook for Mat on iOS and macOS
2021-07-25 14:23:52 +09:00
Alexander Alekhin
f4d6a3ec4e
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-07-24 15:34:58 +00:00
Alexander Alekhin
06dcc5a2c6
Merge pull request #20424 from sbajtl:worker-importscript-bugfix
2021-07-24 15:28:01 +00:00
Julia Bareeva
4e5699fa71
Merge pull request #20450 from JulieBar:lstm_inside
...
Support non-zero hidden state for LSTM
* fully support non-zero hidden state for LSTM
* check dims of hidden state for LSTM
* fix failed test Test_Model.TextRecognition
* add new tests for LSTM w/ non-zero hidden params
Co-authored-by: Julie Bareeva <julia.bareeva@xperience.ai>
2021-07-23 17:11:50 +03:00
ZhangYin
acc576658a
Merge pull request #20412 from joy2myself:rvv-0.10
...
bug fixes for universal intrinsics of RISC-V back-end
* Align universal intrinsic comparator behaviour with other platforms
Set all bits to one for return value of int and fp comparators.
* fix v_pack_triplets, v_pack_store and v_pack_u_store
* Remove redundant CV_DECL_ALIGNED statements
Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>
2021-07-23 17:08:43 +03:00
Alexander Alekhin
4015a5486c
cmake: process modules in the same CMake scope
2021-07-22 15:22:42 +00:00
Smirnov Egor
024b43ca06
implement asymmetric padding for conv2d, max_pool and conv2d_backprop_input
2021-07-22 16:58:40 +03:00
Dmitry Budnikov
aae48e6fd7
single transpose MTCNN version
2021-07-22 16:52:11 +03:00