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
8fed5fc5ae
Merge pull request #20633 from alalek:ocl_dumpValue_handle_null
2021-08-30 13:39:44 +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
c11195d5e3
Merge pull request #20628 from alalek:fix_build_warnings_4.x
2021-08-30 08:26: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
Alexander Alekhin
ea7f13922b
Merge pull request #20609 from vrabaud:3.4
2021-08-27 23:42:24 +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
Alexander Alekhin
df83459721
Merge pull request #20602 from diablodale:fix20594-refcounts-wiith-exceptions
2021-08-25 22:13:43 +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 Panov
d6306f8ccb
Merge pull request #20564 from AleksandrPanov:update_kalman_sample
...
Update kalman sample
* updated view and comments, fixed dims
* updated view and comments, added statePost
2021-08-20 10:57:05 +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
Alexander Alekhin
384875f4fc
Merge pull request #20386 from vrabaud:3.4
2021-08-19 14:54:02 +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
Vadim Pisarevsky
f787c49b53
Merge pull request #20228 from SamFC10:int8
2021-08-19 08:09:01 +00: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