我有一个函数,它接受rs2::pipeline作为参数,并且有多个D435 & T265试图访问该函数。我希望根据调用该函数的照相机显示不同的信息,那么如何通过rs2::pipeline对象获取有关照相机的信息。 rs2::device有一个用于get_info的方法,它提供了有关摄像头的信息,但我不确定如何从Rs2::管道引用rs2::device。 void RenderCamera(rs2::pipeline pipe,int id){
//Display the camera information here from the rs2::pipeline object
将Image保存到不从画廊或照相机获取图像的设备上的正确方法是什么?
在PageA中,有一个允许用户捕捉图像的照相机按钮。一旦图像被捕获,它将转到PageB (EditImagePage)。一旦用户编辑完图像,它将返回到PageA,并将图像保存到设备中。
PageA
@override
userImage(File images) async { // when user has captured image, it will run this code
if (images != null) {
Image image = await Navigator.pus