Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quzanh1130/synthetic-rain-images
https://github.com/quzanh1130/synthetic-rain-images
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/quzanh1130/synthetic-rain-images
- Owner: quzanh1130
- Created: 2023-07-04T09:54:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-04T10:05:49.000Z (over 1 year ago)
- Last Synced: 2023-10-04T12:51:38.520Z (about 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# synthetic-rain-images
This repo helps you to add synthetic rain to the image.## Using
### Step 1:
Clone this repo
### Step 2:
Add 2 folders to repo
- imgs: folder to store source image
- result: folder to store images that have been added to rain
### Step 3:
Config the level of rain that you want
```bash
# =============== config =================
# Angle gave as integer between (-90 < angle < 90)
# angle = 100 -> random
angle = 100
# The max length of raindrops in pixels(the actual length is random up to length)
# should be matched somehow to the image resolution
length = 20
# Rain drop width
thickness = 1
# Number of raindrops to be added
drop_nrs = 1000
# Size of the blur filter
blur = 4
# Intensity(grayscale) of rain streaks
intensity = 100
```
### Step 4:
Install some require libraries and Run the project
```bash
python3 main.py
```