- Home /
Access XML resource from path inside build.
I'm new to Unity and I'm trying to create a simple face recognition app with an OpenCV C# wrapper and have it run in the WebPlayer.
The problem is that OpenCV requires (in this case) haarcascade_frontalface_alt.xml for the facial "patterns", and loads it from a string path. This isn't an issue from the Editor, but is from the build for the WebPlayer as all the resources are packed.
I've already tried putting it in the Assets/Resources directory and load it through Resources.Load(), but OpenCV still expects a string and has internal loading.
Loading it from an http resource through the WWW class won't be an option either as this would get me the file in memory but not the good ol' expected path.
Perhaps hijacking the OpenCV loader into using the file is the most viable option, but I want to make sure it's not overkill.
I feel like I'm missing some key-piece of information, hopefully someone will be able to enlighten my path (to the XML :P).
For the OpenCV wrapper I'm using OpenCVSharp.
Thanks in advance!
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
WebPlayer Build 1 Answer
Getting a standalone project to run on a webpage? 0 Answers
How to add xml to project build 1 Answer
The type or namespace name `OpenCVForUnity' could not be found 0 Answers