add dedicated folder

This commit is contained in:
Sem van der Hoeven
2023-05-08 17:19:42 +02:00
parent 93b09a49a9
commit 3366364778

View File

@@ -19,8 +19,8 @@ class CameraController(Node):
if (result):
if (request.input_name == "default"):
self.get_logger().info("Taking picture with default filename")
now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
imagename = "/home/ubuntu/" + now + ".jpg"
now = datetime.now().strftime("droneimage_%Y-%m-%d_%H-%M-%S")
imagename = "/home/ubuntu/drone_img" + now + ".jpg"
cv2.imwrite(imagename, image)
response.filename = imagename
else: