★ 개요 ★

WebCamTexture <-> OpenCV.Mat 변환




WebCamTexture  ★

-1. 유니티에서 제공하는 클래스로 카메라를 컨트롤 할 수 있다

-2. isFrontFacing : 전면 카메라인지 확인





★ WebCamTexture -> Texture 로 변환하여 출력하기 ★



- Update 에서 매 프레임 texture 갱신 -





★ WebCamTexture 정보 -> OpenCV.Mat Class 저장하기 ★ ( Scene : WebCamTextureToMatExample )



- 코드 -

rgbaMat = new Mat (webCamTexture.height, webCamTexture.width, CvType.CV_8UC4);


+ Recent posts