1. 09 6月, 2023 1 次提交
  2. 23 2月, 2023 1 次提交
  3. 22 2月, 2023 1 次提交
  4. 13 2月, 2023 1 次提交
    • D
      Merge pull request #23161 from dkurt:dnn_tflite · 76350cd3
      Dmitry Kurtaev 提交于
      TFLite models importer
      
      * initial commit
      
      * Refactor TFLiteImporter
      
      * Better FlatBuffers detection
      
      * Add permute before 4D->3D reshape
      
      * Track layers layout
      
      * TFLite Convolution2DTransposeBias layer
      
      * Skip TFLite tests without FlatBuffers
      
      * Fix check of FlatBuffers in tests. Add readNetFromTFLite from buffer
      
      * TFLite Max Unpooling test
      
      * Add skip for TFLite unpooling test
      
      * Revert DW convolution workaround
      
      * Fix ObjC bindings
      
      * Better errors handling
      
      * Regenerate TFLite schema using flatc
      
      * dnn(tflite): more checks, better logging
      
      * Checks for unimplemented fusion. Fix tests
      76350cd3
  5. 03 2月, 2023 1 次提交
  6. 21 12月, 2022 1 次提交
    • Y
      dnn: add the CANN backend (#22634) · a2b3acfc
      Yuantao Feng 提交于
      * cann backend impl v1
      
      * cann backend impl v2: use opencv parsers to build models for cann
      
      * adjust fc according to the new transA and transB
      
      * put cann net in cann backend node and reuse forwardLayer
      
      * use fork() to create a child process and compile cann model
      
      * remove legacy code
      
      * remove debug code
      
      * fall bcak to CPU backend if there is one layer not supoorted by CANN backend
      
      * fix netInput forward
      a2b3acfc
  7. 15 12月, 2022 1 次提交
  8. 12 11月, 2022 1 次提交
    • A
      Merge pull request #22706 from kallaballa:libavdevice_for_ffmpeg_v4l2 · da4ac6b7
      Amir Hassan 提交于
      Introduce libavdevice to make v4l2 available to the ffmpeg backend
      
      * introduce libavdevice to make v4l2 available to the ffmpeg backend
      
      * downgrade the min required libavdevice version to 53.2.0
      
      * make libavdevice optional
      
      * create OCV_OPTION OPENCV_FFMPEG_ENABLE_LIBAVDEVICE and add definition through ocv_add_external_target
      
      * move OCV_OPTION 'OPENCV_FFMPEG_ENABLE_LIBAVDEVICE' to detect_ffmpeg.cmake
      da4ac6b7
  9. 28 10月, 2022 1 次提交
  10. 16 10月, 2022 1 次提交
  11. 14 9月, 2022 1 次提交
  12. 13 9月, 2022 1 次提交
  13. 29 8月, 2022 1 次提交
  14. 21 8月, 2022 1 次提交
  15. 26 7月, 2022 1 次提交
  16. 27 6月, 2022 1 次提交
  17. 01 4月, 2022 1 次提交
  18. 04 2月, 2022 1 次提交
  19. 02 2月, 2022 3 次提交
  20. 24 12月, 2021 1 次提交
  21. 26 11月, 2021 1 次提交
  22. 24 11月, 2021 1 次提交
    • 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
  23. 29 10月, 2021 1 次提交
  24. 05 10月, 2021 1 次提交
  25. 09 9月, 2021 1 次提交
  26. 22 7月, 2021 1 次提交
  27. 21 7月, 2021 1 次提交
    • F
      Merge pull request #20392 from fpetrogalli:aarch64-semihosting · d29c7e78
      Francesco Petrogalli 提交于
      AArch64 semihosting
      
      * [ts] Disable filesystem support in the TS module.
      
      Because of this change, all the tests loading data will file, but tat
      least the core module can be tested with the following line:
      
          opencv_test_core --gtest_filter=-"*Core_InputOutput*:*Core_globbing.accuracy*"
      
      * [aarch64] Build OpenCV for AArch64 semihosting.
      
      This patch provide a toolchain file that allows to build the library
      for semihosting applications [1]. Minimal changes have been applied to
      the code to be able to compile with a baremetal toolchain.
      
      [1] https://developer.arm.com/documentation/100863/latest
      
      The option `CV_SEMIHOSTING` is used to guard the bits in the code that
      are specific to the target.
      
      To build the code:
      
          cmake ../opencv/ \
              -DCMAKE_TOOLCHAIN_FILE=../opencv/platforms/semihosting/aarch64-semihosting.toolchain.cmake \
              -DSEMIHOSTING_TOOLCHAIN_PATH=/path/to/baremetal-toolchain/bin/ \
              -DBUILD_EXAMPLES=ON -GNinja
      
      A barematel toolchain for targeting aarch64 semihosting can be found
      at [2], under `aarch64-none-elf`.
      
      [2] https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
      
      The folder `samples/semihosting` provides two example semihosting
      applications.
      
      The two binaries can be executed on the host platform with:
      
          qemu-aarch64 ./bin/example_semihosting_histogram
          qemu-aarch64 ./bin/example_semihosting_norm
      
      Similarly, the test and perf executables of the modules can be run
      with:
      
          qemu-aarch64 ./bin/opecv_[test|perf]_<module>
      
      Notice that filesystem support is disabled by the toolchain file,
      hence some of the test that depend on filesystem support will fail.
      
      * [semihosting] Remove blank like at the end of file. [NFC]
      
      The spurious blankline was reported by
      https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/31158.
      
      * [semihosting] Make the raw pixel file generation OS independent.
      
      Use the facilities provided by Cmake to generate the header file
      instead of a shell script, so that the build doesn't fail on systems
      that do not have a unix shell.
      
      * [semihosting] Rename variable for semihosting compilation.
      
      * [semihosting] Move the cmake configuration to a variable file.
      
      * [semihosting] Make the guard macro private for the core module.
      
      * [semihosting] Remove space. [NFC]
      
      * [semihosting] Improve comment with information about semihosting. [NFC]
      
      * [semihosting] Update license statement on top of sourvce file. [NFC]
      
      * [semihosting] Replace BM_SUFFIX with SEMIHOSTING_SUFFIX. [NFC]
      
      * [semihosting] Remove double space. [NFC]
      
      * [semihosting] Add some text output to the sample applications.
      
      * [semihosting] Remove duplicate entry in cmake configuration. [NFCI]
      
      * [semihosting] Replace `long` with `int` in sample apps. [NFCI]
      
      * [semihosting] Use `configure_file` to create the random pixels. [NFCI]
      
      * [semihosting][bugfix] Fix name of cmakedefine variable.
      
      * [semihosting][samples] Use CV_8UC1 for grayscale images. [NFCI]
      
      * [semihosting] Add readme file.
      
      * [semihosting] Remove blank like at the end of README. [NFC]
      
      This fixes the failure at
      https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/31272.
      d29c7e78
  28. 14 7月, 2021 1 次提交
  29. 09 7月, 2021 1 次提交
  30. 06 6月, 2021 1 次提交
  31. 21 5月, 2021 1 次提交
  32. 15 5月, 2021 1 次提交
    • M
      Merge pull request #19755 from mikhail-nikolskiy:ffmpeg-umat · a604d44d
      Mikhail Nikolskii 提交于
      cv::UMat output/input in VideoCapture/VideoWriter (data stays in GPU memory)
      
      * FFMPEG with UMat input/output
      
      * OpenCL_D3D* context
      
      * fix Linux build
      
      * cosmetic changes
      
      * fix build if USE_AV_HW_CODECS=0
      
      * simplify how child context pointer stored in parent context
      
      * QSV interop with OpenCL on Windows
      
      * detect_msdk.cmake via pkg-config
      
      * fix av_buffer_ref() usage
      
      * revert windows-decode-mfx whitelisting; remove debug msg
      
      * address review comments
      
      * rename property to HW_ACCELERATION_USE_OPENCL
      
      * fix issue with "cl_khr_d3d11_sharing" extension not reported by OpenCL GPU+CPU platform
      
      * core(ocl): add OpenCL stubs for configurations without OpenCL
      
      * videoio(ffmpeg): update #if guards
      
      * Put OpenCL related code under HAVE_OPENCL; simplify reuse of media context from OpenCL context
      
      * videoio(test): skip unsupported tests
      
      - plugins don't support OpenCL/UMat yet
      - change handling of *_USE_OPENCL flag
      
      * videoio(ffmpeg): OpenCL dependency
      
      * videoio(ffmpeg): MediaSDK/oneVPL dependency
      
      * cleanup, logging
      
      * cmake: fix handling of 3rdparty interface targets
      Co-authored-by: NAlexander Alekhin <alexander.a.alekhin@gmail.com>
      a604d44d
  33. 11 5月, 2021 1 次提交
  34. 07 5月, 2021 1 次提交
  35. 20 4月, 2021 1 次提交
  36. 05 3月, 2021 1 次提交
  37. 26 2月, 2021 1 次提交
    • G
      Merge pull request #19597 from komakai:android-ndk-camera · 0553543e
      Giles Payne 提交于
      Android NDK camera support
      
      * Add native camera video backend for Android
      
      * In the event of a "No buffer available error" wait for the appropriate callback and retry
      
      * Fix stale context when creating a new AndroidCameraCapture
      
      * Add property handling
      0553543e
  38. 24 2月, 2021 1 次提交