Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for saving images #19

Open
3 tasks
maeriil opened this issue Oct 15, 2023 · 0 comments
Open
3 tasks

Support for saving images #19

maeriil opened this issue Oct 15, 2023 · 0 comments
Labels
enhancement New feature or request Low Priority Not an urgent requirement

Comments

@maeriil
Copy link
Owner

maeriil commented Oct 15, 2023

In the imagetranslation.py file, we currently support file saving like this:

    if save_image:
        directory = "results/"
        if not os.path.exists(directory):
            os.makedirs(directory)
        name = "translated_image.png"

        cv2.imwrite(os.path.join(directory, name), destination_image)

We want to add following support as well.

  • Support for saving images to custom path location. The location will be an optional parameter in the main function translate. Default path will be results/. Error handling should be added for this setup.
  • Support for saving images in different image format. The format will be an optional parameter in the main function translate. Default format will be .png. Error handling should be added for this setup.
  • Support for saving images in different file name. The format will be an optional parameter in the main function translate. Default name will be translated_image
@maeriil maeriil added this to the Second Version Release milestone Oct 15, 2023
@maeriil maeriil added enhancement New feature or request Low Priority Not an urgent requirement labels Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low Priority Not an urgent requirement
Projects
None yet
Development

No branches or pull requests

1 participant