2016-12-21 7 views
0

내 프로젝트에서 포인트 클라우드를 캡처하고이를 기반으로 탱고 타블렛 메인 카메라의 캡쳐 된 이미지에 적용 할 바이너리 마스크를 만듭니다. 따라서 최종 이미지는 검출 된 포인트 클라우드 포인트의 컷 아웃.탱고 장치 메인 카메라 이미지를 단일체로 얻으십시오

카메라 이미지를 가져 오기 위해 탱고 예제를 사용하여 추가 후가공 작업을 할 수 있었지만 성공하지 못했습니다. (임시 해킹은 텍스처를 렌더링 한 다음 렌더러에 마스킹 쉐이더를 적용하는 카메라를 포함합니다)

Unity에서 탱고 기본 카메라 이미지를 얻는 가장 쉬운 방법은 무엇입니까?

/// Connect a callback to a camera for access to the pixels. 
    /// 
    /// This is not recommended for display but for applications requiring access to the 
    /// <code>HAL_PIXEL_FORMAT_YV12</code> pixel data. The camera is selected via TangoCameraId. Currently only 
    /// <code>TANGO_CAMERA_COLOR</code> and <code>TANGO_CAMERA_FISHEYE</code> are supported. 
    /// 
    /// The <i>onImageAvailable</i> callback will be called when a new frame is available from the camera. The 
    /// Enable Video Overlay option must be enabled for this to succeed. 
    /// 
    /// Note: The first scan-line of the color image is reserved for metadata instead of image pixels. 

당신은 TANGO_CAMERA_COLOR 카메라와 TANGO_CAMERA_FISHEYE 모두에 액세스 할 수 있습니다 :

+0

이 질문에 대한 답을 확인해 주시면 도움이 될 것입니다. http://stackoverflow.com/questions/41176053/post-processing-effects-with-tango-camera –

답변

0

VideoOverlayProvider.cs 파일에서보세요, 당신이 찾고있는 것을 같은 소리 두 개의 정적 방법 SetCallback (..)이 있습니다 카메라 프레임