Skip to Main Content
Unity 2018 Augmented Reality Projects
book

Unity 2018 Augmented Reality Projects

by Jesse Glover
July 2018
Intermediate to advanced content levelIntermediate to advanced
358 pages
7h 17m
English
Packt Publishing
Content preview from Unity 2018 Augmented Reality Projects

OpenCV and Unity

Now, we can finally start working in Unity in this section. This is the easier part, where we just need to create our wrapper and our MonoBehaviour script to attach to an object.

Navigate to the dll file that we created. This should be in the x64 | Debug folder of the source project:

Create two folder called Plugins and Scripts in Unity, just as we did in Chapter3.

Now, we will create two scripts. One for our Wrapper class, and the other for our MonoBehaviour. The Wrapper class will be called OpenCVWrapper, and the MonoBehaviour class will be called OpenCVFaceDetection.

Open the OpenCVWrapper class in Visual Studio. It is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Unity 2020 Game Development

Hands-On Unity 2020 Game Development

Nicolas Alejandro Borromeo

Publisher Resources

ISBN: 9781788838764Supplemental Content