Skip to content

Mainly demonstrated how opencvsharp's image detection function is used in Unity.

License

Notifications You must be signed in to change notification settings

AndyWangGoGoGo/OpenCVSharpForUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

OpenCVSharpForUnity

Mainly demonstrated how opencvsharp's image detection function is used in Unity. There are plugins in the Unity Asset Store which do this and more,but here is a free solution.

OpenCVSharp

OpenCvSharp is modeled on the native OpenCV C/C++ API style as much as possible. See opencvsharp for more details

Currently supports windows x86, x64 standalone and Unity editor. If you want to support more platforms, Please consider using OpenCV for Unity

How To

Just open the Unity project in Unity2018+ and try the SampleScene. The Utils script provides interconversion between Texture2d and Mat.

Feature

1、CapturePattern scene demonstrates the ability to capture and save the current image of the camera in the Screenshot folder(Application.persistentDataPath + "/Screenshot/").

2、WebCamDetector scene demonstrates live detection of images stored in the Screenshot directory in camera view.Display matching images in the upper right corner of the window.

License

Licensed under the BSD 3-Clause License.

About

Mainly demonstrated how opencvsharp's image detection function is used in Unity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages