Skip to content

daffpy/instadraw

Repository files navigation

InstaDraw

what is InstaDraw?

It is a viral computer vision image tracing project made with OpenCV and PyAutoGUI for Instagram's latest doodle feature update. It uses a combination contouring and thresholding of a custom image to simulate pixel-to-pixel image drawing on Instagram app

using OpenCV contouring:

377637c138184a088763c2628db9d259.MOV

this video reaches 2.1M views on tiktok (@browhateveridc69)

using OpenCV thresholding:

bad_apple_4.mov

what are the requirements?

It requires python3.13 to be installed on your computer and all of its library or module listed on requirements.txt. It also requires a use of emulator for example: BlueStack or built-in Iphone Mirroring feature on Mac.

Setup

  1. Simply prompt on your terminal/command prompt pip install -r requirements.txt to install all of the required library
  2. Modify all of pyautogui coordinate by assigning your emulator window's coordinate, you could check the coordinate by calling getCoord() method, and it will reveal the current position of the cursor
  3. Modify the image path if you intend to use custom images (note: every image might need a different level of thresholding and tweaking)
  4. use the scale_image() method to scale the image into a smaller resolution to fit your emulator window
  5. use drawManual() method for a contour-like result and drawManualThresh() for a full but black-and-white result only

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages