Conversation
tnagorra
reviewed
Jul 30, 2025
| @@ -0,0 +1,74 @@ | |||
| ## Description | |||
| This read me will guide you on how to create a COCO file using the utility script for Google Drive and DropBox | |||
Contributor
There was a problem hiding this comment.
Suggested change
| This read me will guide you on how to create a COCO file using the utility script for Google Drive and DropBox | |
| This readme will guide you on how to create a COCO file using the utility script for Google Drive and DropBox |
| - Click on "New Project" | ||
| - Rename the project name to your desired project name | ||
| - Paste the utility script | ||
| - Replace any existing default code the code from this utility file |
| - Create a Google Apps script project | ||
| - Go to https://script.google.com | ||
| - Click on "New Project" | ||
| - Rename the project name to your desired project name |
| - Rename the project name to your desired project name | ||
| - Paste the utility script | ||
| - Replace any existing default code the code from this utility file | ||
| - Replace Placeholder Values |
Contributor
There was a problem hiding this comment.
Suggested change
| - Replace Placeholder Values | |
| - Replace placeholder values |
| - Press Run | ||
| - Accept the authorization prompts the first time you run the script | ||
| - View COCO JSON Output | ||
| - Go to View > Logs |
Contributor
There was a problem hiding this comment.
Suggested change
| - Go to View > Logs | |
| - Go to `View > Logs` |
| - Accept the authorization prompts the first time you run the script | ||
| - View COCO JSON Output | ||
| - Go to View > Logs | ||
| - Copy the Google Drive URL where the coco file is created and generated |
| - Update `Permission type` | ||
| - Go to the app settings | ||
| - Click **Scoped App** | ||
| - Tick the following |
| - Install uv on your system: https://docs.astral.sh/uv/getting-started/installation/ | ||
| - Download the [generate_coco_from_dropbox.py](./generate_coco_from_dropbox.py) script | ||
| - Create a DropBox folder and upload images | ||
| - Your image files should be stored in a public DropBox folder |
| uv run generate_coco_dropbox.py "DROPBOX_ACCESS_TOKEN" "FOLDER_PATHNAME_IN_DROPBOX" "DESTINATION_EXPORT_FILE_NAME_IN_DROPBOX" | ||
|
|
||
| # Example | ||
| uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json” |
Contributor
There was a problem hiding this comment.
Suggested change
| uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json” | |
| uv run generate_coco_dropbox.py sl.yourAccessTokenHere "/COCO TEST" "coco_export.json" |
tnagorra
approved these changes
Jul 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.