A simple tool for converting Googles QuickDraw Ndjson dataset into useable png images. The Ndjson dataset can be found here. The resulting png will be 255x255 with a white background and black drawing, similar to the original image.
This tool was made for our own little project and designed to convert only a subset of the whole dataset. If you want to convert all 345 categories, you might want to make some changes.
Simply clone the repository and run npm install
.
- Create a directory named
data
at the root of the project folder. - Paste all your ndjson-files into
data
- Create a subdirectory
images
indata
- Create a subdirectory in
data\images
for each category you want to convert. The subdirectories should be named according to the category name, for exampleapple
. - Add your categories to
dataList
in theparser.ts
file. - Compile the
parser.ts
file and runnpm start
. In the console you'll get ask which category and how many files you want to convert.
The png images will be saved to their according subdirectories.