Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sudharsan-selvaraj/selenium-image-sketch
Selenium automation script to draw any image into HTML canvas using edge detection algorithm
https://github.com/sudharsan-selvaraj/selenium-image-sketch
automation image-detection paint python selenium selenium-webdriver
Last synced: 14 days ago
JSON representation
Selenium automation script to draw any image into HTML canvas using edge detection algorithm
- Host: GitHub
- URL: https://github.com/sudharsan-selvaraj/selenium-image-sketch
- Owner: sudharsan-selvaraj
- Created: 2020-05-21T09:50:35.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-01-30T09:13:04.000Z (almost 3 years ago)
- Last Synced: 2023-03-06T15:01:22.584Z (over 1 year ago)
- Topics: automation, image-detection, paint, python, selenium, selenium-webdriver
- Language: Python
- Homepage:
- Size: 3.82 MB
- Stars: 11
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Image Sketch:
Have you ever wondered drawing any image on html canvas using selenium is possible? Yes, it's totally possible with the help of image processing.
I have used canny edge detection algorithm to extract the outline coordinates from the input image.
Algoritm courtesy: http://people.ece.cornell.edu/
# Setup:
1. Install python
2. Install the dependencies from requirement.txt
3. Downlaod chromedriver file# How to run?:
Enter the below command in terminal:```bash
python draw.py --image /path/to/any/image
```This will open the chrome browser ans start sketching the image provided.
# Sample:
![sample](sample_outputs/readme_tom_face.png)# Demo:
Youtube: https://www.youtube.com/watch?v=vJRyGTcqZfM