opencvForUnity学习

目录

一、目的:

1、最近需要在Unity中使用到opencv,找了很多,opencvSharp、opencv做成dll给Unity调用,然后找到了这个插件

一、参考:

1、参考:OpenCVForUnity下载:

①总结:pass,要钱,

2、参考:OpenCVForUnity插件 配置基础开发环境

①总结:good;可以下载并且可以运行;but:测试了不按照作者将文件夹挪动也是可以的,最好不挪动文件夹位置,后期发现挪动了,会报一些错误

3、参考:#基于VR环境下的手指识别键盘输入# 利用OpenCV for Unity初步完成的手指识别效果(二)

①总结:待测试:

4、参考:OpenCVForUnity 图像分割,分离前景和背景

①总结:待测试:

5、参考:#基于VR环境下的手指识别键盘输入# 利用OpenCV for Unity初步完成的手指识别效果(一)

①总结:待测试:

6、参考:用OpenCV For Unity读取图片

①总结:待测试;内容:使用这个插件,环境配置好:OpenCVForUnity插件 配置基础开发环境,读取指定文件夹下面的图片,显示在RawImage中

①参考后自己写:注意:读取的图片要进行修改

7、参考:[Unity教程]如何使用OpenCV for Unity创建文档扫描程序(英文字幕)

①总结:待测试;


 

一、目的:

1、最近需要在Unity中使用到opencv,找了很多,opencvSharp、opencv做成dll给Unity调用,然后找到了这个插件

一、参考:

1、参考:OpenCVForUnity下载:

https://github.com/EnoxSoftware/OpenCVForUnity

①总结:pass,要钱,

2、参考:OpenCVForUnity插件 配置基础开发环境

https://blog.csdn.net/tpz789/article/details/91171127

①总结:good;可以下载并且可以运行;but:测试了不按照作者将文件夹挪动也是可以的,最好不挪动文件夹位置,后期发现挪动了,会报一些错误

3、参考:#基于VR环境下的手指识别键盘输入# 利用OpenCV for Unity初步完成的手指识别效果(二)

https://blog.csdn.net/zxycs1996/article/details/80669060

 

①总结:待测试:

4、参考:OpenCVForUnity 图像分割,分离前景和背景

https://blog.csdn.net/u010407393/article/details/77868069

①总结:待测试:

5、参考:#基于VR环境下的手指识别键盘输入# 利用OpenCV for Unity初步完成的手指识别效果(一)

https://blog.csdn.net/zxycs1996/article/details/80668118

①总结:待测试:

6、参考:用OpenCV For Unity读取图片

https://www.jianshu.com/p/3126e269973b

①总结:待测试;内容:使用这个插件,环境配置好:OpenCVForUnity插件 配置基础开发环境,读取指定文件夹下面的图片,显示在RawImage中

①参考后自己写:注意:读取的图片要进行修改

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using OpenCVForUnity;
using OpenCVForUnity.CoreModule;
using OpenCVForUnity.UnityUtils;
using UnityEngine.UI;

/// <summary>
/// 测试:打开图片
/// </summary>

public class My_test1_openImage : MonoBehaviour
{
    public RawImage rawImage;
    
    void Start()
    {
        ShowImage2RawImage();
    }
    void ShowImage2RawImage()
    {
        Texture2D imgTexture = Resources.Load("0") as Texture2D;
        Mat imgMat = new Mat(imgTexture.height, imgTexture.width, CvType.CV_8UC4);
        Utils.texture2DToMat(imgTexture, imgMat);
        Debug.Log("imgMat.ToString() " + imgMat.ToString());
        Texture2D texture = new Texture2D(imgMat.cols(), imgMat.rows(), TextureFormat.RGBA32, false);
        Utils.matToTexture2D(imgMat, texture);        
        rawImage.texture = texture;
    }

}

7、参考:[Unity教程]如何使用OpenCV for Unity创建文档扫描程序(英文字幕)

https://www.bilibili.com/video/av64225606?from=search&seid=14655307841053114490

①总结:待测试;

  • 7
    点赞
  • 56
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Works with Unity Cloud Build iOS & Android support Windows10 UWP support WebGL support Win & Mac & Linux Standalone support Preview support in the Editor OpenCV for Unity is an Assets Plugin for using OpenCV 3.4.2 from within Unity. Official Site | ExampleCode | Android Demo WebGL Demo | Tutorial & Demo Video | Forum | API Reference | Support Modules Features: - Since this package is a clone of OpenCV Java, you are able to use the same API as OpenCV Java 3.4.2 (link). - You can image processing in real-time by using the WebCamTexture capabilities of Unity. (real-time face detection works smoothly on iPhone 5) - Provides a method to interconversion of Unity's Texture2D and OpenCV's Mat. - IDisposable is implemented in many classes.You can manage the resources with the “using” statement. - Examples of integration with other publisher assets are available.(e.g. PlayMaker, NatCam, NatCorder) ExampleCode using OpenCV for Unity is available. MarkerBased AR Example MarkerLess AR Example FaceTracker Example FaceSwapper Example FaceMask Example RealTime FaceRecognition Example GoogleVR with OpenCV for Unity Example Kinect with OpenCV for Unity Example AVPro with OpenCV for Unity Example HoloLens with OpenCV for Unity Example PlayMakerActions for OpenCVforUnity NatCam with OpenCVForUnity Example NatCorder with OpenCVForUnity Example OpenCV for Unity uses OpenCV under 3-clause BSD License; see Third-Party Notices.txt file in package for details. System Requirements Build Win Standalone & Preview Editor : Windows 7 or later Build Mac Standalone & Preview Editor : OSX 10.9 or later
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值