[英]How to capture Camera footage /capture using ARCore
我对ARCore非常陌生...尝试捕获ARCore的摄像机镜头并处理其视频/静态图片。
有没有人关于如何使用ARCore捕捉Android手机的相机镜头的示例? (以视频或静态图片的形式)
我想将此素材作为应用程序的一部分,而不用于营销目的。
有谁知道要使用哪个ARCore API?
感谢您的帮助 ...
你可以使用这个非常容易地捕获屏幕的照片是这样的:
StartCoroutine( TakeScreenshotAndSave() );
这是他们关于如何捕获并将其保存到图库的示例之一
private IEnumerator TakeScreenshotAndSave()
{
yield return new WaitForEndOfFrame();
Texture2D ss = new Texture2D( Screen.width, Screen.height, TextureFormat.RGB24, false );
ss.ReadPixels( new Rect( 0, 0, Screen.width, Screen.height ), 0, 0 );
ss.Apply();
// Save the screenshot to Gallery/Photos
Debug.Log( "Permission result: " + NativeGallery.SaveImageToGallery( ss, "GalleryTest", "My img {0}.png" ) );
// To avoid memory leaks
Destroy( ss );
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.