Permalink
Browse files

Updating the readme

  • Loading branch information...
federico-pepe committed May 28, 2017
1 parent 543b3de commit 4894df1ab0b4c3ca65d8a67ac8aebad0d73eda60
Showing with 5 additions and 5 deletions.
  1. +3 −3 Google_Quick_Draw.pde
  2. +2 −2 README.md
@@ -2,7 +2,7 @@
* Quick, Draw! The Data with Processing
* by Federico Pepe
* 23.05.2017
*
*
* Quick, Draw! Dataset by Google
* https://github.com/googlecreativelab/quickdraw-dataset
*/
@@ -37,7 +37,7 @@ void mousePressed() {
endShape(CLOSE);
}
}
}
}
catch (IOException e) {
e.printStackTrace();
line = null;
@@ -48,4 +48,4 @@ void mousePressed() {
// Stop reading because of an error or file is empty
noLoop();
}
}
}
@@ -2,6 +2,6 @@
This is an experiment with the [Quick, Draw! dataset](https://github.com/googlecreativelab/quickdraw-dataset) by Google and [Processing](https://github.com/processing/processing).
## Accessing the data
Since I wasn't able to read all the JSON objects through the `loadJSONObject()` function, to access the data I converted the `ndjson` file downloaded from the [Google Cloud Console](https://console.cloud.google.com/storage/browser/quickdraw_dataset/full/simplified) to an array. I added a `[` at the beginning of the file and a `]` at the end and I replaced all the `}` with `},`.
This script currently works only with the simplified drawing files (`.ndjson`) which don't include the timing information.
If you have a cleaner solution, please do a pull request to this repo.
Each line of the `.ndjson` file contains a JSONObject so we need a `BufferedReader` object to access each line separately.

0 comments on commit 4894df1

Please sign in to comment.