# Agregar al vector los nombres que el suusario selecciona segun el ID se deben agregar 8 camaras, se puede repetirclear nombres = [] i = 0 while i < 2: selecID = input("Selccione el ID para agregar a la visualizacion: ") newName = name + "_" + selecID nombres.append(newName) #print("La lista es: " + newName) i += 1 while True: vecImgs = [] ## cam 1 cam.setNameRACamera(nombres[0]) frame1 = cam.operator() salida1.write(frame1) if isinstance(frame1, np.ndarray): width, height = frame1.shape[:2] if width > 0 and height > 0: vecImgs.append(frame1) ## cam 2 cam.setNameRACamera(nombres[1]) frame2 = cam.operator() salida2.write(frame2) if isinstance(frame2, np.ndarray): width, height = frame2.shape[:2] if width > 0 and height > 0: vecImgs.append(frame2)
print("Numero de camaras Disponibles " + str(numCam)) if numCam == 0: print("No hay camaras moviles en el simulador") else: i = 0 while i < numCam: print("Acceder a las camaras con el nombre: " + name + "_" + str(i)) i += 1 while True: vecImgs = [] ## cam 1 cam.setNameRACamera(name + "_0") frame1 = cam.operator() if isinstance(frame1, np.ndarray): width, height = frame1.shape[:2] if width > 0 and height > 0: vecImgs.append(frame1) ## cam 2 cam.setNameRACamera(name + "_1") frame2 = cam.operator() if isinstance(frame2, np.ndarray): width, height = frame2.shape[:2] if width > 0 and height > 0: vecImgs.append(frame2) ## cam 3
# Agregar al vector los nombres que el suusario selecciona segun el ID se deben agregar 8 camaras, se puede repetirclear nombres = [] i = 0 while i < 8: selecID = input("Selccione el ID para agregar a la visualizacion: ") newName = name + "_" + selecID nombres.append(newName) #print("La lista es: " + newName) i += 1 while True: vecImgs = [] ## cam 1 cam.setNameRACamera(nombres[0]) frame1 = cam.operator() if isinstance(frame1, np.ndarray): width, height = frame1.shape[:2] if width > 0 and height > 0: vecImgs.append(frame1) ## cam 2 cam.setNameRACamera(nombres[1]) frame2 = cam.operator() if isinstance(frame2, np.ndarray): width, height = frame2.shape[:2] if width > 0 and height > 0: vecImgs.append(frame2) ## cam 3