opencv/modules/python
Vadim Pisarevsky 66e5fce928
Merge pull request #27499 from vpisarev:image_io_with_metadata
Extend image I/O API with metadata support #27499

Covered with the PR:
* AVIF encoder can write exif, xmp, icc
* AVIF decoder can read exif
* JPEG encoder can write exif
* JPEG decoder can read exif
* PNG encoder can write exif
* PNG decoder can read exif

This PR is a sort of preamble for #27488. I suggest to merge this one first to OpenCV 4.x, then promote this change to OpenCV 5.x and then provide extra API to read and write metadata in 5.x (or maybe 4.x) in a style similar to #27488. Maybe in that PR exif packing/unpacking should be done using a separate external API. That is, metadata reading and writing can/should be done in 2 steps:

 * [1] pack and then [2] embed exif into image at the encoding stage.
 * [1] extract and then [2] unpack exif at the decoding stage.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2025-07-01 18:38:22 +03:00
..
bindings Fixed bug in ifdef state machine in header parser for bindings. 2025-06-02 12:41:39 +03:00
package pre: OpenCV 4.12.0 (version++). 2025-06-19 11:03:59 +03:00
python2 python: support standalone Python bindings build 2018-06-07 15:16:39 +03:00
python3 Manage Python Limited API version externally. 2024-01-10 12:30:29 +03:00
src2 Fixed ifdef logic operators evaluation with some old python versions. 2025-06-25 10:35:53 +03:00
test Merge pull request #27499 from vpisarev:image_io_with_metadata 2025-07-01 18:38:22 +03:00
CMakeLists.txt Fix configuring with CMake version 4 2025-04-02 13:45:08 -07:00
common.cmake Manage Python Limited API version externally. 2024-01-10 12:30:29 +03:00
python_loader.cmake addition of POST_BUILD 2025-01-09 20:40:56 +05:30
standalone.cmake python: update CMake install rules 2019-03-15 13:11:00 +03:00