Skip to content

A program made in Python that automatically draws an image using OpenCV and Pynput.

License

Notifications You must be signed in to change notification settings

GustavoHenriqueMuller/auto-drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoDrawer

A program made in Python 3.7 that automatically draws an image using OpenCV and Pynput. Made to work with Paint, but it can also work with other drawing tools. The project is being developed in Visual Studio 2019 (Community Edition).

How to use

  • Open CMD in the project folder and run "pip install -r requirements.text" to install all the libraries needed.
  • Run "main.py".
  • Customize all the drawing parameters.
  • Once you're satisfied, click the draw button. After clicking, the program will start drawing in 3 seconds, so make sure you already have Paint opened up beforehand in the background.
  • After the 3 seconds, the program will record the position of your mouse. That position will be the top left corner of the image.
  • Finally, the program will minimize and will start to simulate mouse presses/movements to draw on the screen.

    Press [ESC] to stop drawing during runtime.

Libraries Used

Contour Recognition: OpenCV
Interface: PySimpleGUI
Drawing: Pynput

Other libraries:
Time, Winsound, Numpy, Urrlib, Keyboard

About

A program made in Python that automatically draws an image using OpenCV and Pynput.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages