Skip to content

Commit

Permalink
update the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Barqawiz authored Feb 9, 2023
1 parent 9c4c17a commit 953d320
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ from snappy2 import Snappy2
## Code Examples (How to)
- Draw Mustache on face *(3 lines)*
```
human_image = snappy2.load_image('<file_path>')
snappy2 = Snappy2()
snappy2.set_mustache(human_image, mus_index=0)
snappy = Snappy2()
human_image = snappy.load_image('<file_path>')
snappy.set_mustache(human_image, mus_index=0)
```
<img height="300px" src="snappy2/resource/example/tony_mustache.PNG" alt="[ Mustache Image ]"/>

- Draw glasses on face *(3 lines)*
```
human_image = snappy2.load_image('<file_path>')
snappy = Snappy2()
snappy2 = Snappy2()
snappy2.set_glasses(human_image, gls_index=0)
human_image = snappy.load_image('<file_path>')
snappy.set_glasses(human_image, gls_index=0)
```

<img height="300px" src="snappy2/resource/example/tony_glasses.PNG" alt="[ Glass Image ]"/>

- Draw ears on face *(3 lines)*
```
human_image = snappy2.load_image('<file_path>')
snappy = Snappy2()
snappy2 = Snappy2()
snappy2.set_ears(human_image, gls_index=0)
human_image = snappy.load_image('<file_path>')
snappy.set_ears(human_image, gls_index=0)
```
<img height="300px" src="snappy2/resource/example/ears_on_face.PNG" alt="[ Ears Image ]"/>

Expand Down

0 comments on commit 953d320

Please sign in to comment.