Offline navigation, sensors and camera only

How can I get images from the installed camera on a librem 5? I can get images form a USB camera but that is not rigidly attached to the phone so the gravity and hall sensors cant really be aligned. I am trying to do this all in python if possible. Hopefully this will be a hack that can get us a 500m CAP where a local map would be able to be brought into service for the final navigation.

Do you mean that you want to automate the capturing of still images from the Librem 5’s built-in camera?

I’m not sure I grasp fully what’s asked, but if you’re looking for the command for taking a camera picture, it’s cam -c1 -C1, if I recall.

sorry for delay, yes I need to get an image from the main camera either a direct access to a /dev/camera0 or I guess maybe a processed image with exact timestamp near realtime could work too, I with best night vision settings to snap stars. I have not worked with cameras like this before and I am expecting the python libs to do the lifting for me.

is it possible to shoot the sun without burning out the sensor or as I suspect just washing out to white when even within a few degrees of the sunlight entering the camera?

You’re asking the camera a lot with those usecases. I’m not sure but in this post there may be something that could help with piping the image more directly: Lib[rem5|camera] to use everywhere - #8 by galilley but the noise ratio of the camera may be a bit much for stars (depending on the quality you want and environmental factors). Astrophotography forums may have better answers.

With sun, prolonged exposure is a risk. I’d get a sun filter and tape it (or do a 3D printed holder that you can slide) into place when taking a sun picture. You’re unlikely to get any details of it without one and even still, with wide angle lens, it’s probably just a small bright dot. Again, astophotography forums and sites have better info available.