Captures an image from the camera panel.
Retrieves the current image displayed in the camera interface.
planetcnc.image_from_cam()
#! /usr/bin/env python import planetcnc img = planetcnc.image_from_cam() if img: print("Image successfully captured from camera panel") # Save the image planetcnc.image_save(img, "captured_image.png") # Close the image planetcnc.image_close(img) else: print("Failed to capture image from camera panel")