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
377637c138184a088763c2628db9d259.MOV
this video reaches 2.1M views on tiktok (@browhateveridc69)
bad_apple_4.mov
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.
- Simply prompt on your terminal/command prompt
pip install -r requirements.txtto install all of the required library - 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 - Modify the image path if you intend to use custom images (note: every image might need a different level of thresholding and tweaking)
- use the
scale_image()method to scale the image into a smaller resolution to fit your emulator window - use
drawManual()method for a contour-like result anddrawManualThresh()for a full but black-and-white result only