[유니티] The type or namespace name `OpenCVForUnity' could not be found

프로그래밍/유니티2018. 4. 8. 16:38

안녕하세요. 개발자 드리머즈입니다.


Unity에서 OpenCV를 테스트 해보기 위해 https://assetstore.unity.com/packages/templates/tutorials/facetracker-example-35284의 예제?(Asset)을 다운받았습니다.

유니티에서 실행시키려고 했더니 아래의 에러가 발생했습니다.


Assets/FaceTrackerExample/FaceTracker/FaceDetector.cs(6,7): error CS0246: The type or namespace name `OpenCVForUnity' could not be found. Are you missing an assembly reference?


에러가 발생한 위치는 아래와 같습니다.

using OpenCVForUnity;
cs

OpenCVForUnity를 찾지 못해 발생한 에러입니다.


음.. 그런데 이 OpenCvForUnity가 유료인 것 같습니다.

https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088



OpenCV는 무료인데, 유니티에서 사용할 수 있는 OpenCV인 OpenCVForUnity를 만들어 유료로 파는 것 같네요?

OpenCV for Unity is an Assets Plugin for using OpenCV 3.4.1 from within Unity. 

- Since this package is a clone of OpenCV Java, you are able to use the same API as OpenCV Java 3.4.1 (link). 

단순히 유니티를 위한 OpenCV만 있는게 아니라 예제 코드들을 포함하는 것 같습니다.


음.. 어차피 위의 애셋의 핵심 OpenCV 관련 코드는 OpenCV 공식홈의 코드를 사용할 것이기에

위의 유료 애셋을 구입하는 방법 말고 다른 방법이 없나 찾아봐야겠습니다.

작성자

Posted by 드리머즈

관련 글

댓글 영역