This project aims to convert a regular image into a pencil sketch using the popular computer vision library, OpenCV (cv2). The process involves various image processing techniques to simulate the appearance of a pencil-drawn sketch. The project is implemented in Python, making it easily accessible to a wide range of users.
To run the project locally, you need to have Python, Matplotlib and OpenCV installed on your machine. If you don't have them already, you can install them using the following commands:
pip install opencv-python matplotlib
- Clone the repository to your local machine:
git clone https://github.com/himanshumahajan138/LGMVIP-DataScience-2.git
- Change directory to the project folder:
cd LGMVIP-DataScience-2/Himanshu_sketch
- Run the conversion script:
python Himanshu_Sketch.py
Now After Running This Script Provide Image Path in input Section Then File Will Be saved to same Location.
Let's say we have an image named Himanshu.jpg
that we want to convert into a pencil sketch. To do this, run the following command:
python Himanshu_Sketch.py
>> "Himanshu.jpg"
After the conversion is complete, you will find the pencil sketch image saved as Sketched_Image_By_Himanshu.jpg
in the same directory.
Contributions to this project are welcome. If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License, which means you are free to use, modify, and distribute the code as long as you include the original license in your distribution.