Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vermavinay982/image-daytime-replacement
A short tool, to change the daylight of the image based on choice of user - day, night, or evening
https://github.com/vermavinay982/image-daytime-replacement
Last synced: 9 days ago
JSON representation
A short tool, to change the daylight of the image based on choice of user - day, night, or evening
- Host: GitHub
- URL: https://github.com/vermavinay982/image-daytime-replacement
- Owner: vermavinay982
- Created: 2024-09-11T14:08:16.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T14:22:32.000Z (about 2 months ago)
- Last Synced: 2024-10-14T14:11:47.966Z (24 days ago)
- Language: Python
- Size: 700 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_daytime.py
Awesome Lists containing this project
README
# image_daytime_replacement
A short tool, to change the daylight of the image based on choice of user - day, night, or evening## Usage
```sh
# to ensure required packages are installed
pip install -r requirements.txt# run the script in cli
python .\change_daytime.py -i .\input.jpg -d night --plot
```## Output Samples
Night![Image](assets/op1.png)
Evening
![Image](assets/op2.png)
## Further Options
```sh
python .\change_daytime.py -h
usage: change_daytime.py [-h] [--input INPUT] [--reference REFERENCE] [--output OUTPUT]
[--new_daytime NEW_DAYTIME] [--root_folder ROOT_FOLDER] [--plot]Change image colors based on the time of day.
options:
-h, --help show this help message and exit
--input INPUT, -i INPUT
Path to the input image
--reference REFERENCE, -ref REFERENCE
Reference image or data for color adjustment
--output OUTPUT, -o OUTPUT
Path to save the output image
--new_daytime NEW_DAYTIME, -d NEW_DAYTIME
Specify the new time of day (e.g., "morning", "afternoon", "evening", "night")
--root_folder ROOT_FOLDER, -root ROOT_FOLDER
Root folder for assets
--plot Flag to plot and visualize the image after processing
```- License: MIT
- Author: [Vinay Kumar Verma](mailto:[email protected])
- Maintainer: [Vinay Kumar Verma](mailto:[email protected])