1. 02 12月, 2021 1 次提交
  2. 30 11月, 2021 1 次提交
  3. 29 11月, 2021 2 次提交
  4. 28 11月, 2021 2 次提交
  5. 27 11月, 2021 4 次提交
    • A
      gapi: fix build with MSVS2015 (with IE) · c15218e3
      Alexander Alekhin 提交于
      c15218e3
    • A
      dnn(test): update InferenceEngine tests · 985aa042
      Alexander Alekhin 提交于
      985aa042
    • O
      Merge pull request #21103 from OrestChura:oc/fix_1D_Mat_RMat_View_issue · e20fe421
      Orest Chura 提交于
      [G-API] Fix issue of getting 1D Mat out of RMat::View
      
      * Fix issue of getting 1D Mat out of RMat::View
       - added test
       - fixed for standalone too (removed Assert(dims.empty()))
      
      * Fixed asVeiw() function for standalone
      
      * Put more detailed comment
      e20fe421
    • O
      Merge pull request #21083 from OrestChura:oc/fix_coverity_vino_issues · 2deb38d6
      Orest Chura 提交于
      [G-API] Fixed Coverity issues
      
      * Fixed Coverity issues
       - VectorRef&OpaqueRef m_kind = CV_UNKNOWN
       - added same-type overload for saturate()
       - sanitized resize value in ByteMemoryInStream::operator>> (std::string& str)
       - handled throws from ~GStreamingExecutor()
      
      * Catching exception by const ref
      
      * Addressing Sergey's comments
      
      * Applied enable_if semanitcs to saturate(x, round) too
      
      * Removed uncaught_exception, made destructor noexcept back
      
      * Split Fluid ConvertTo to multiple functions to avoid ifs; added CV_ALWAYS_INLINE
      
      * Added FIXME to address throwings from stop()
      
      * Fix standalone
      
      * Addressing comments
      
      * Guarded SIMD optimizations properly
      
      * Removed excess parameter from simd_impl functions
      2deb38d6
  6. 26 11月, 2021 3 次提交
  7. 24 11月, 2021 2 次提交
    • C
      Merge pull request #20978 from cudawarped:videocapture_read_raw_enchancement · 97c6ec6d
      cudawarped 提交于
      Add capacity to Videocapture to return the extraData from FFmpeg when required
      
      * Update rawMode to append any extra data recieved during the initial negotiation of an RTSP stream or during the parsing of an MPEG4 file header.
      For h264[5] RTSP streams this ensures the parameter sets if available are always returned on the first call to grab()/read() and has two purposes:
      1) To ensure the parameter sets are available even if they are not transmitted in band.  This is common for axis ip camera's.
      2) To allow callers of VideoCapture::grab()[read()] to write to split the raw stream over multiple files by appending the parameter sets to the begining of any new files.
      For (1) there is no alternative, for (2) if the parameter sets were provided in band it would be possible to parse the raw bit stream and search for the parameter sets however that would be a lot of work when that information is already provided by FFMPEG.
      For MPEG4 files this information is only suplied in the header and is required for decoding.
      
      Two properties are also required to enable the raw encoded bitstream to be written to multiple files, these are;
      1) an indicator as to whether the last frame was a key frame or not - each new file needs to start at a key frame to avoid storing unusable frame diffs,
      2) the length in bytes of the paramater sets contained in the last frame - required to split the paramater sets from the frame without having to parse the stream.  Any call to VideoCapture::get(CAP_PROP_LF_PARAM_SET_LEN) returning a number greater than zero indicates the presense of a parameter set at the begining of the raw bitstream.
      
      * Adjust test data to account for extraData
      
      * Address warning.
      
      * Change added property names and remove paramater set start code check.
      
      * Output extra data on calls to retrieve instead of appending to the first packet.
      
      * Reverted old test case and added new one to evaluate new functionality.
      
      * Add missing definition.
      
      * Remove flag from legacy api.
      Add property to determine if returning extra data is supported.
      Always allow extra data to be returned on calls to cap.retrieve()
      Update test case.
      
      * Update condition which indicates CAP_PROP_CODEC_EXTRADATA_INDEX is not supported in test case.
      
      * Include compatibility for windows dll if not updated.
      Enforce existing return status convention.
      
      * Fix return error and missing test constraints.
      97c6ec6d
    • H
      Merge pull request #20406 from MarkGHX:gsoc_2021_webnn · 1fcf7ba5
      Hanxi Guo 提交于
      [GSoC] OpenCV.js: Accelerate OpenCV.js DNN via WebNN
      
      * Add WebNN backend for OpenCV DNN Module
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Add WebNN head files into OpenCV 3rd partiy files
      
      Create webnn.hpp
      
      update cmake
      
      Complete README and add OpenCVDetectWebNN.cmake file
      
      add webnn.cpp
      
      Modify webnn.cpp
      
      Can successfully compile the codes for creating a MLContext
      
      Update webnn.cpp
      
      Update README.md
      
      Update README.md
      
      Update README.md
      
      Update README.md
      
      Update cmake files and
      
      update README.md
      
      Update OpenCVDetectWebNN.cmake and README.md
      
      Update OpenCVDetectWebNN.cmake
      
      Fix OpenCVDetectWebNN.cmake and update README.md
      
      Add source webnn_cpp.cpp and libary libwebnn_proc.so
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      update dnn.cpp
      
      update op_webnn
      
      update op_webnn
      
      Update op_webnn.hpp
      
      update op_webnn.cpp & hpp
      
      Update op_webnn.hpp
      
      Update op_webnn
      
      update the skeleton
      
      Update op_webnn.cpp
      
      Update op_webnn
      
      Update op_webnn.cpp
      
      Update op_webnn.cpp
      
      Update op_webnn.hpp
      
      update op_webnn
      
      update op_webnn
      
      Solved the problems of released variables.
      
      Fixed the bugs in op_webnn.cpp
      
      Implement op_webnn
      
      Implement Relu by WebNN API
      
      Update dnn.cpp for better test
      
      Update elementwise_layers.cpp
      
      Implement ReLU6
      
      Update elementwise_layers.cpp
      
      Implement SoftMax using WebNN API
      
      Implement Reshape by WebNN API
      
      Implement PermuteLayer by WebNN API
      
      Implement PoolingLayer using WebNN API
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Implement poolingLayer by WebNN API and add more detailed logs
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Remove redundant codes and add more logs for poolingLayer
      
      Add more logs in the pooling layer implementation
      
      Fix the indent issue and resolve the compiling issue
      
      Fix the build problems
      
      Fix the build issue
      
      FIx the build issue
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      * Fix the build issue
      
      * Implement BatchNorm Layer by WebNN API
      
      * Update convolution_layer.cpp
      
      This is a temporary file for Conv2d layer implementation
      
      * Integrate some general functions into op_webnn.cpp&hpp
      
      * Update const_layer.cpp
      
      * Update convolution_layer.cpp
      
      Still have some bugs that should be fixed.
      
      * Update conv2d layer and fc layer
      
      still have some problems to be fixed.
      
      * update constLayer, conv layer, fc layer
      
      There are still some bugs to be fixed.
      
      * Fix the build issue
      
      * Update concat_layer.cpp
      
      Still have some bugs to be fixed.
      
      * Update conv2d layer, fully connected layer and const layer
      
      * Update convolution_layer.cpp
      
      * Add OpenCV.js DNN module WebNN Backend (both using webnn-polyfill and electron)
      
      * Delete bib19450.aux
      
      * Add WebNN backend for OpenCV DNN Module
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Add WebNN head files into OpenCV 3rd partiy files
      
      Create webnn.hpp
      
      update cmake
      
      Complete README and add OpenCVDetectWebNN.cmake file
      
      add webnn.cpp
      
      Modify webnn.cpp
      
      Can successfully compile the codes for creating a MLContext
      
      Update webnn.cpp
      
      Update README.md
      
      Update README.md
      
      Update README.md
      
      Update README.md
      
      Update cmake files and
      
      update README.md
      
      Update OpenCVDetectWebNN.cmake and README.md
      
      Update OpenCVDetectWebNN.cmake
      
      Fix OpenCVDetectWebNN.cmake and update README.md
      
      Add source webnn_cpp.cpp and libary libwebnn_proc.so
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      update dnn.cpp
      
      update op_webnn
      
      update op_webnn
      
      Update op_webnn.hpp
      
      update op_webnn.cpp & hpp
      
      Update op_webnn.hpp
      
      Update op_webnn
      
      update the skeleton
      
      Update op_webnn.cpp
      
      Update op_webnn
      
      Update op_webnn.cpp
      
      Update op_webnn.cpp
      
      Update op_webnn.hpp
      
      update op_webnn
      
      update op_webnn
      
      Solved the problems of released variables.
      
      Fixed the bugs in op_webnn.cpp
      
      Implement op_webnn
      
      Implement Relu by WebNN API
      
      Update dnn.cpp for better test
      
      Update elementwise_layers.cpp
      
      Implement ReLU6
      
      Update elementwise_layers.cpp
      
      Implement SoftMax using WebNN API
      
      Implement Reshape by WebNN API
      
      Implement PermuteLayer by WebNN API
      
      Implement PoolingLayer using WebNN API
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Update pooling_layer.cpp
      
      Implement poolingLayer by WebNN API and add more detailed logs
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      Remove redundant codes and add more logs for poolingLayer
      
      Add more logs in the pooling layer implementation
      
      Fix the indent issue and resolve the compiling issue
      
      Fix the build problems
      
      Fix the build issue
      
      FIx the build issue
      
      Update dnn.cpp
      
      Update dnn.cpp
      
      * Fix the build issue
      
      * Implement BatchNorm Layer by WebNN API
      
      * Update convolution_layer.cpp
      
      This is a temporary file for Conv2d layer implementation
      
      * Integrate some general functions into op_webnn.cpp&hpp
      
      * Update const_layer.cpp
      
      * Update convolution_layer.cpp
      
      Still have some bugs that should be fixed.
      
      * Update conv2d layer and fc layer
      
      still have some problems to be fixed.
      
      * update constLayer, conv layer, fc layer
      
      There are still some bugs to be fixed.
      
      * Update conv2d layer, fully connected layer and const layer
      
      * Update convolution_layer.cpp
      
      * Add OpenCV.js DNN module WebNN Backend (both using webnn-polyfill and electron)
      
      * Update dnn.cpp
      
      * Fix Error in dnn.cpp
      
      * Resolve duplication in conditions in convolution_layer.cpp
      
      * Fixed the issues in the comments
      
      * Fix building issue
      
      * Update tutorial
      
      * Fixed comments
      
      * Address the comments
      
      * Update CMakeLists.txt
      
      * Offer more accurate perf test on native
      
      * Add better perf tests for both native and web
      
      * Modify per tests for better results
      
      * Use more latest version of Electron
      
      * Support latest WebNN Clamp op
      
      * Add definition of HAVE_WEBNN macro
      
      * Support group convolution
      
      * Implement Scale_layer using WebNN
      
      * Add Softmax option for native classification example
      
      * Fix comments
      
      * Fix comments
      1fcf7ba5
  8. 23 11月, 2021 1 次提交
  9. 22 11月, 2021 1 次提交
    • S
      Merge pull request #21022 from sivanov-work:async_mfp_demux · 02f08879
      Sergey Ivanov 提交于
      G-API: oneVPL Implement asynchronous MFP demux data provider
      
      * Add dummy dmux
      
      * Initial commit for draft versionn
      
      * Demux for low res file works
      
      * Add media source resolver to work over incorrect MIME
      
      * Add MFP Demux logger
      
      * stash changes
      
      * Extend IDataProvider with CodecId, Add troubleshooting info
      
      * Add IDapaProvider dispatcher
      
      * Add ComPtrGuard wrappers
      
      * Add new unit test scope for MFP demux & Add minor changes
      
      * Enhance UTs
      
      * Remove ATL header
      
      * Remove ATL another one
      
      * Fix build
      
      * Add static for some methods
      
      * Initial commit
      
      * Add async demuxing
      
      * Apply tdd idea
      
      * Intro IDataProvider changes: +fetch_bitstream, -fetch_data
      
      * Fix UTs
      
      * Remove IDataProvider::CodecId & Fix EOF hang
      
      * Remove sync demux
      
      * Remove mfp async dependencies
      
      * Remove VPL dependencies from IDataProvider declaration
      
      * Apply comments
      
      * Fix compilation
      
      * Suppress unused warning
      
      * Apply some comments
      
      * Apply some comments
      
      * Apply comments
      02f08879
  10. 20 11月, 2021 1 次提交
  11. 19 11月, 2021 5 次提交
  12. 18 11月, 2021 2 次提交
  13. 17 11月, 2021 3 次提交
  14. 16 11月, 2021 4 次提交
  15. 12 11月, 2021 3 次提交
    • T
      Merge pull request #20857 from alexgiving:atrutnev/move_API_samples · b525480b
      Trutnev Aleksei 提交于
      Move API sample code to tutorial_code location
      b525480b
    • F
      modules/videoio/src/cap_ffmpeg_impl.hpp: fix build with gcc 4.8 · 4c92a286
      Fabrice Fontaine 提交于
      Fix the following build failure with gcc 4.8:
      
      In file included from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/cap_ffmpeg_impl.hpp:100:0,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/cap_ffmpeg.cpp:50:
      /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/cap_ffmpeg_hw.hpp: In constructor 'HWAccelIterator::HWAccelIterator(cv::VideoAccelerationType, bool, AVDictionary*)':
      /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/cap_ffmpeg_hw.hpp:939:23: error: use of deleted function 'std::basic_istringstream<char>& std::basic_istringstream<char>::operator=(const std::basic_istringstream<char>&)'
                   s_stream_ = std::istringstream(accel_list);
                             ^
      In file included from /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/arm-none-linux-gnueabi/include/c++/4.8.3/complex:45:0,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/core/include/opencv2/core/cvstd.inl.hpp:47,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/core/include/opencv2/core.hpp:3306,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/include/opencv2/videoio.hpp:46,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/precomp.hpp:57,
                       from /home/buildroot/autobuild/instance-3/output-1/build/opencv4-4.5.4/modules/videoio/src/cap_ffmpeg.cpp:42:
      /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/arm-none-linux-gnueabi/include/c++/4.8.3/sstream:272:11: note: 'std::basic_istringstream<char>& std::basic_istringstream<char>::operator=(const std::basic_istringstream<char>&)' is implicitly deleted because the default definition would be ill-formed:
           class basic_istringstream : public basic_istream<_CharT, _Traits>
                 ^
      /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/arm-none-linux-gnueabi/include/c++/4.8.3/sstream:272:11: error: use of deleted function 'std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)'
      
      Fixes:
       - http://autobuild.buildroot.org/results/60f8846b435dafda0ced412d59ffe15bdff0810dSigned-off-by: NFabrice Fontaine <fontaine.fabrice@gmail.com>
      4c92a286
    • A
      Merge pull request #21025 from alalek:issue_21004 · 8041ab8a
      Alexander Alekhin 提交于
      * dnn(ocl4dnn): fix LRN layer accuracy problems
      
      - FP16 intermediate computation is not accurate and may provide NaN values
      
      * dnn(test): update tolerance for FP16
      8041ab8a
  16. 11 11月, 2021 3 次提交
  17. 10 11月, 2021 2 次提交
    • P
      Add support for runtime CPU feature check on POWER on FreeBSD. · 68e425f8
      Piotr Kubaj 提交于
      1. Code uses PPC_FEATURE_HAS_VSX, but it's not checked similarly to
      PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00 for availability. FreeBSD has
      those macros in machine/cpu.h, but I went with the way chosen for
      PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00. Other than that, FreeBSD also
      has sys/auxv.h and that's where elf_aux_info() is defined.
      2. getauxval() is actually Linux-only, but code checked for __unix__. It won't
      work on all UNIX, so change it back to __linux__. Add another code variant
      strictly for FreeBSD.
      3. Update comment. This commit adds code for FreeBSD, but recently there
      appeared support for powerpc64 in OpenBSD.
      68e425f8
    • S
      Merge pull request #20901 from sivanov-work:merge_source_unite_perf_mod · da634429
      Sergey Ivanov 提交于
       G-API: oneVPL - Performance: Add async decode pipeline & add cached pool
      
      * Add async decode pipeline & intro cached pool
      
      * Fix performacne test with checking OPENCV_EXTRA
      
      * Add sip perf test with no VPL
      
      * Fix misprint
      
      * Remove empty line..
      
      * Apply some comments
      
      * Apply some comments
      
      * Make perf test fail if no OPENCV_TEST_DATA_PATH declared
      da634429