Add 'save' command for saving images as jpg files.#3
Open
johnhany wants to merge 3 commits intofyu:masterfrom
Open
Add 'save' command for saving images as jpg files.#3johnhany wants to merge 3 commits intofyu:masterfrom
johnhany wants to merge 3 commits intofyu:masterfrom
Conversation
Add 'save' entry in command choices as well as in help text. The new 'save' command uses opencv interface for writing image files to disk.
Owner
|
If only saving images in one folder is concerned here, does "--flat" for export serve the purpose? |
Author
|
I tried |
Owner
|
I see. cv2.imwrite may be unavoidable to make the generated images supported by general image io. I will commit a fix for this soon. |
Author
|
Thank you for that:) BTW, this dataset is fantastic!!! |
Change exported file format from *.webp to *.jpg in export_images(), and we get save_images_fast(). It's a lot faster than cv2.imwrite() when exporting jpeg files.
Dakota48423
approved these changes
Dec 18, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Certain machine learning tools require every training image files contained in one folder, hence the 'save' command is needed, at least for my work:)