Skip to content

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.

License

Notifications You must be signed in to change notification settings

himanshumahajan138/LGMVIP-DataScience-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

LGMVIP-DataScience-2

Image to Pencil Sketch Conversion Project

Introduction

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.

Table of Contents

Installation

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

Usage

  1. Clone the repository to your local machine:
git clone https://github.com/himanshumahajan138/LGMVIP-DataScience-2.git
  1. Change directory to the project folder:
cd LGMVIP-DataScience-2/Himanshu_sketch
  1. 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.

Example

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.

Contributing

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.

License

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.


About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published