OpenCV for Unity ver2.1.6 Release!
- Author: Enox Software
- Category: Update
- Tags: OpenCV for Unity
Version 2.1.6
[Common]Fixed fastMatToTexture2D() method.
Related posts
OpenCV for Unity ver2.2.1 Release!
Version 2.2.1[Common]Updated to OpenCV3.3.0.[Common]Added dnn module.(win,mac,ios,android platform)[Common]Added img_hash, reg, text module.(all platform)[Common]Added MobileNetSSDExample, MobileNetSSDWebCamTextureExample, TensorFlowWebCamTextureExample, ThinPlateSplineShapeTransformerExample, TextDetectionExample, VideoWriterExample.[Common]WindowsStoreApp8.1 & WindowsPhone8.1 support have been deprecated.
- Author: Enox Software
- Category: Update
- Tags: OpenCV for Unity
OpenCV for Unity ver2.3.9 Release!
Version 2.3.9 [Common]Updated to OpenCV4.3.0. [Common]Added LibFaceDetectionV2Example, LibFaceDetectionV3Example, ColorizationExample and DocumentScannerExample. [Common]Update ArUcoCameraCalibrationExample and WrapPerspectiveExample.
- Author: Enox Software
- Category: Update
- Tags: OpenCV for Unity
How to run DNN modules with CUDA backend support on Windows platform?
Overview In 2019, a commit was merged that added the option to use the CUDA backend for inference in OpenCV’s DNN module, resulting in faster inference on Nvidia GPUs. If you wish to use this CUDA backend with OpenCV for Unity, it is necessary to build and set up OpenCV as a dynamic library on your own. This article will provide guidance on the process. Steps Build the OpenCV library with the OPENCV_DNN_CUDA flag enabled. Please refer to the article below for instructions on how to build OpenCV with OPENCV_DNN_CUDA enabled. https://learnopencv.com/how-to-use-opencv-dnn-module-with-nvidia-gpu-on-windows/ https://www.jamesbowley.co.uk/qmd/opencv_cuda_python_windows.html https://medium.com/geekculture/setup-opencv-dnn-module-with-cuda-backend-support-for-windows-7f1856691da3 Build with OPENCV_EXTRA_MODULES_PATH and BUILD_SHARED_LIBS enabled. In addition, it is recommended that you download and build the same revision of the source as the OpenCV git link provided in the ReadMe.pdf. OPENCV_EXTRA_MODULES_PATH:PATH=C:/Users/xxxxx/opencv_contrib/modules BUILD_SHARED_LIBS:BOOL=ON Copy the built dll files to the Plugins folder. Replace the opencvforunity.dll file in the Extra package with opencvforunity.dll in the Plugins folder. To enable the CUDA backend, change the code as follows. net.setPreferableBackend( Dnn.DNN_BACKEND_CUDA); net.setPreferableTarget( Dnn.DNN_TARGET_CUDA); Result
- Author: Enox Software
- Category: Tips
- Tags: OpenCV for Unity