So, I've captured my images. I took four using a DSLR calibration grey card that I got off Amazon.
I captured the images usingHere are the images: https://drive.google.com/drive/folders/ ... sp=sharing
The problem I'm having now is trying to get alsc_only.py to run.
Here is the output:
It appears that pyexiv2 does not have access to the class pyexif.ImageMetadata().
Here's what I've tried:
Thanks,
Jamie
I captured the images using
Code:
libcamera-still -o alsc_6000k_1.jpg -r
The problem I'm having now is trying to get alsc_only.py to run.
Here is the output:
Code:
PS C:\Users\jamie\Desktop\project> python3 .\libcamera\utils\raspberrypi\ctt\alsc_only.py -i "C:\Users\jamie\Desktop\project\images" -o "C:\Users\jamie\Desktop\project\output.json"Read lsc_max_gain 8.0Loading images from C:\Users\jamie\Desktop\project\images/Files found: 4Loading image: alsc_6000k_1.dngERROR: failed to load DNG file C:\Users\jamie\Desktop\project\images/alsc_6000k_1.dngEither file does not exist or is incompatibleTraceback (most recent call last): File "C:\Users\jamie\Desktop\project\libcamera\utils\raspberrypi\ctt\alsc_only.py", line 42, in <module> run_ctt(json_output, directory, config, log_output, json_template, grid_size, target, alsc_only=True) File "C:\Users\jamie\Desktop\project\libcamera\utils\raspberrypi\ctt\ctt.py", line 739, in run_ctt Cam.add_imgs(directory, mac_config, blacklevel) File "C:\Users\jamie\Desktop\project\libcamera\utils\raspberrypi\ctt\ctt.py", line 547, in add_imgs Img = load_image(self, address, mac=False) File "C:\Users\jamie\Desktop\project\libcamera\utils\raspberrypi\ctt\ctt_image_load.py", line 377, in load_image Img = dng_load_image(Cam, im_str) File "C:\Users\jamie\Desktop\project\libcamera\utils\raspberrypi\ctt\ctt_image_load.py", line 300, in dng_load_image metadata = pyexif.ImageMetadata(im_str) File "C:\Users\jamie\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyexiv2\__init__.py", line 33, in ImageMetadata raise NameError('ImageMetadata() is the API of py3exiv2, see https://pypi.org/project/py3exiv2 . ' +NameError: ImageMetadata() is the API of py3exiv2, see https://pypi.org/project/py3exiv2 . However, the library you imported is pyexiv2, see https://pypi.org/project/pyexiv2 .
Here's what I've tried:
- Running the program on Windows, Linux and Mac OS
- Reinstalling pyexiv2 using pip
- Installing pyexiv2 using brew on Mac OS
- Building pyexiv2 from source
- Installing py3exiv2 (which is impossible to do on all platforms)
- Running using different versions of Python (3.8, 3.10, 3.12)
Thanks,
Jamie
Statistics: Posted by jwainwright87 — Wed Jul 10, 2024 8:09 am