'how to capture and import RAW or .DNG image directly from an iPhone 13 on a mobile device?

I am attempting to capture or import RAW images directly from a small python script to import for further analysis. I am attempting to create a simple mobile code to run on pythnissta 3 or similar platform to stream line my analysis. I have tried a few things to import the last taken image form the photo library but my attempts were unfruitful:

import photos
all_assets = photos.get_assests()

last_asset = all_assests[-1]

img = last_assest.image()

img. show 

To capture images directly:

import photos

import console

console.clear()

nom_album = contacts

photos.create_album(nom_album)

img = photos.capture_image()

Here's a link to an example image.This is a .DNG image taken under the Pro RAW settings from an iPhone 13 pro.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source