Our great sponsors
-
LaserDistancer-and-SerialMonitor
A project to calculate distance using lasers, camera(android phone), servo motor and arduino. (app includes a serial monitor)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
termux-app
Termux - a terminal emulator application for Android OS extendible by variety of packages.
It's been many years since I used camera APIs, and only camera1. I don't have experience with camera2 and cameraX. The android camera docs https://developer.android.com/training/camerax/choose-camera-library lists the available libraries and in additional resources at bottom of pages, there are samples available. You probably need https://github.com/android/camera-samples/tree/master/Camera2Basic or https://github.com/android/camera-samples/tree/master/Camera2Extensions
Simple multi picture capture with camera1 and opencv processing is also available at https://github.com/agnostic-apollo/LaserDistancer-and-SerialMonitor/blob/master/app/src/main/java/com/allonsy/laserdistancer/PhotoTaker.java and https://github.com/agnostic-apollo/LaserDistancer-and-SerialMonitor/blob/ea5b1fa1ad62f623ae99a974986dc57741ffd923/app/src/main/java/com/allonsy/laserdistancer/DistanceCalculatorService.java#L273 but it was just for research/testing purposes so not for "production", but it did work.