Skip to content

Commit

Permalink
Update supported formats doc for OpenCV 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 5, 2023
1 parent 3fecf80 commit 7e08c42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ This program can be used to automatically start, split, and reset your preferred
### Compatibility

- Windows 10 and 11.
- Python 3.9+ (Not requried for normal use. Refer to the [build instructions](/docs/build%20instructions.md) if you'd like run the application directly in Python).
- Python 3.9+ (Not required for normal use. Refer to the [build instructions](/docs/build%20instructions.md) if you'd like run the application directly in Python).

## OPTIONS

#### Split Image Folder

- Supported image file types: .png, .jpg, .jpeg, .bmp, and [more](https://docs.opencv.org/3.0-beta/modules/imgcodecs/doc/reading_and_writing_images.html#imread).
- Images can be any size.
- Supported image file types: PNG, JPEG, bitmaps, WebP, and [more](https://docs.opencv.org/4.8.0/d4/da8/group__imgcodecs.html#imread).
- Images can be any size and ratio.
- Images are matched in alphanumerical order.
- Recommended filenaming convention: `001_SplitName.png, 002_SplitName.png, 003_SplitName.png`...
- Custom split image settings are handled in the filename. See how [here](#custom-split-image-settings).
Expand Down
3 changes: 2 additions & 1 deletion src/region_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@
("JPEG 2000 files", "*.jp2"),
("Portable Network Graphics", "*.png"),
("WebP", "*.webp"),
("AVIF", "*.avif"),
("Portable image format", "*.pbm *.pgm *.ppm *.pxm *.pnm"),
("PFM files", "*.pfm"),
("Sun rasters", "*.sr *.ras"),
("TIFF files", "*.tiff *.tif"),
("OpenEXR Image files", "*.exr"),
("Radiance HDR", "*.hdr *.pic"),
]
"""https://docs.opencv.org/4.5.4/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56"""
"""https://docs.opencv.org/4.8.0/d4/da8/group__imgcodecs.html#imread"""
IMREAD_EXT_FILTER = "All Files (" \
+ " ".join([f"{extensions}" for _, extensions in SUPPORTED_IMREAD_FORMATS]) \
+ ");;"\
Expand Down

0 comments on commit 7e08c42

Please sign in to comment.