Skip to content

docs(coco): update readme.md #1046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 30, 2025
Merged

docs(coco): update readme.md #1046

merged 8 commits into from
Jul 30, 2025

Conversation

kopitek8
Copy link
Contributor

No description provided.

@kopitek8 kopitek8 marked this pull request as ready for review July 30, 2025 13:42
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your-project-name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Replace Placeholder Values
- Replace placeholder values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- Press Run
- Accept the authorization prompts the first time you run the script
- View COCO JSON Output
- Go to View > Logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Go to View > Logs
- Go to `View > Logs`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added bold **

- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed created

- Update `Permission type`
- Go to the app settings
- Click **Scoped App**
- Tick the following
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

permissions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe not. please check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove line 58

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”
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@tnagorra tnagorra merged commit e32dcb3 into dev Jul 30, 2025
1 check passed
@tnagorra tnagorra deleted the docs/coco branch July 30, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants