Can I use CameraX to take panoramic photos?

148 views
Skip to first unread message

Hong Wang (LazyIonEs)

unread,
Oct 7, 2024, 10:40:31 PM10/7/24
to Android CameraX Discussion Group
Can I use CameraX to take panoramic photos? What to do?

Eino-Ville Talvala

unread,
Oct 8, 2024, 1:51:15 PM10/8/24
to Hong Wang (LazyIonEs), Android CameraX Discussion Group
Hi -

CameraX doesn't have built-in support for panoramas, but you can certainly build a panorama capture feature on top of CameraX.
That said, it would be quite a bit of work and requires understanding of computer vision (or finding a lot of libraries to help).

There are various ways panorama features work, but roughly speaking, you would need to use the ImageAnalysis use case to detect as the camera moves and when a new frame of the panorama needs to be captured. You also need to create a preview composite to show a in-progress panorama.   And then either use the ImageCapture use case to capture that new frame in high resolution or just use a frame from ImageAnalysis which might be a bit more fluid.  Once the user completes the capture, and for the in-progress preview, you need to align and merge all the individual frames.  That requires a lot of standard computer vision analysis and computer graphics knowledge.

- Eddy

On Mon, Oct 7, 2024 at 7:40 PM Hong Wang (LazyIonEs) <lazy...@gmail.com> wrote:
Can I use CameraX to take panoramic photos? What to do?

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/4488e713-758d-4b65-8d07-f5e1b61e51f6n%40android.com.

Hong Wang (LazyIonEs)

unread,
Oct 8, 2024, 9:07:23 PM10/8/24
to Android CameraX Discussion Group, etal...@google.com, Android CameraX Discussion Group, Hong Wang
Oh well, it looks like I'll need a lot of time to finish it.

Frank D

unread,
Dec 9, 2024, 3:06:21 PM12/9/24
to Android CameraX Discussion Group, lazy...@gmail.com, etal...@google.com, Android CameraX Discussion Group

An MVP would be to trigger manually the different pictures and "only" do the align and merge all the individual frames.
Reply all
Reply to author
Forward
0 new messages