GitPedia

QuickDraw

Implementation of Quickdraw - an online game developed by Google

From vietnh1009·Updated June 5, 2026·View on GitHub·

Here is my python source code for QuickDraw - an online game developed by google. with my code, you could: * **Run an app which you could draw in front of a camera (If you use laptop, your webcam will be used by default)** * **Run an app which you could draw on a canvas** The project is written primarily in Python, distributed under the MIT License license, first published in 2019. It has gained significant community traction with 1,108 stars and 196 forks on GitHub. Key topics include: cnn, computer-vision, cv2, deep-learning, deep-neural-networks.

<p align="center"> <h1 align="center">QuickDraw</h1> </p>

GitHub stars
GitHub forks
GitHub license

Introduction

Here is my python source code for QuickDraw - an online game developed by google. with my code, you could:

  • Run an app which you could draw in front of a camera (If you use laptop, your webcam will be used by default)
  • Run an app which you could draw on a canvas

Camera app

In order to use this app, you need a pen (or any object) with blue, red or green color. When the pen (object) appears in front of camera, it will be catched and highlighted by an yellow circle. When you are ready for drawing, you need to press space button. When you want to stop drawing, press space again
Below is the demo by running the sript camera_app.py:

<p align="center"> <img src="demo/quickdraw.gif" width=600><br/> <i>Camera app demo</i> </p>

Drawing app

The script and demo will be released soon

Dataset

The dataset used for training my model could be found at [Quick Draw dataset] https://console.cloud.google.com/storage/browser/quickdraw_dataset/sketchrnn. Here I only picked up 20 files for 20 categories

Categories:

The table below shows 20 categories my model used:

applebookbowtiecandle
cloudcupdoorenvelope
eyeglassesguitarhammerhat
ice creamleafscissorsstar
t-shirtpantslightningtree

Trained models

You could find my trained model at trained_models/whole_model_quickdraw

Training

You need to download npz files corresponding to 20 classes my model used and store them in folder data. If you want to train your model with different list of categories, you only need to change the constant CLASSES at src/config.py and download necessary npz files. Then you could simply run python3 train.py

Experiments:

For each class, I take the first 10000 images, and then split them to training and test sets with ratio 8:2. The training/test loss/accuracy curves for the experiment are shown below:

<img src="demo/loss_accuracy_curves.png" width="800">

Requirements

  • python 3.6
  • cv2
  • pytorch
  • numpy

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from vietnh1009/QuickDraw via the GitHub API.Last fetched: 6/21/2026