Skip to content

Commit

Permalink
[update] update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NatLee committed Feb 1, 2023
1 parent 542a8ad commit 184c5e1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ usage: blurgenerator [-h] [--input INPUT] [--input_depth_map INPUT_DEPTH_MAP] [-

- Original image

![original image](./doc/test.png)
![original image](https://github.com/NatLee/Blur-Generator/raw/main/doc/test.png)

#### Usage

Expand All @@ -66,7 +66,7 @@ result = motion_blur(img, size=100, angle=30)
cv2.imwrite('./output.png', result)
```

![motion blur image](./doc/motion.png)
![motion blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/motion.png)

- Lens blur

Expand All @@ -80,7 +80,7 @@ result = lens_blur(img, radius=5, components=4, exposure_gamma=2)
cv2.imwrite('./output.png', result)
```

![lens blur image](./doc/lens.png)
![lens blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/lens.png)

- Gaussian blur

Expand All @@ -94,19 +94,19 @@ result = gaussian_blur(img, 100)
cv2.imwrite('./output.png', result)
```

![gaussian blur image](./doc/gaussian.png)
![gaussian blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/gaussian.png)

### With depth map

Feature from this [issue](https://github.com/NatLee/Blur-Generator/issues/1).

- Original image

![photo](./doc/depth-test.jpg)
![photo](https://github.com/NatLee/Blur-Generator/raw/main/doc/depth-test.jpg)

- Depth map

![depth map](./doc/depth-map-test.png)
![depth map](https://github.com/NatLee/Blur-Generator/raw/main/doc/depth-map-test.png)

#### Usage

Expand All @@ -130,7 +130,7 @@ result = motion_blur_with_depth_map(
cv2.imwrite('./output.png', result)
```

![depth motion blur image](./doc/depth-motion-output.png)
![depth motion blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/depth-motion-output.png)

- Lens blur with depth map

Expand All @@ -153,7 +153,7 @@ result = lens_blur_with_depth_map(
cv2.imwrite('./output.png', result)
```

![depth lens blur image](./doc/depth-lens-output.png)
![depth lens blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/depth-lens-output.png)

- Gaussian blur with depth map

Expand All @@ -175,4 +175,26 @@ result = gaussian_blur_with_depth_map(
cv2.imwrite('./output.png', result)
```

![depth gaussian blur image](./doc/depth-gaussian-output.png)
![depth gaussian blur image](https://github.com/NatLee/Blur-Generator/raw/main/doc/depth-gaussian-output.png)

## Contributor

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/NatLee"><img src="https://avatars.githubusercontent.com/u/10178964?v=3?s=100" width="100px;" alt="Nat Lee"/><br /><sub><b>Nat Lee</b></sub></a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

## LICENSE

[MIT](LICENSE)
2 changes: 1 addition & 1 deletion src/blurgenerator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Blur maker init
"""
__version__ = "1.0.2"
__version__ = "1.0.3"

from .motion_blur import motion_blur
from .lens_blur import lens_blur
Expand Down

0 comments on commit 184c5e1

Please sign in to comment.