Skip to content

docs(coco): update readme.md #1045

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions manager-dashboard/user_scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## DropBox
### Prerequisites

- Create account: https://www.dropbox.com/register
- Create new App: https://www.dropbox.com/developers/apps
- Choose an API: Scoped access
- Choose the type of access you need: Full Dropbox
- Name your app: Mapswipe COCO
- Update `Permission type`
- Go to the app settings
- Click **Scoped App**
- Select
- files.metadata.read
- files.content.write
- files.content.read
- sharing.write
- sharing.read
- Submit
- Generate new access token:
- Go to the app settings
- Click **Generated access token**
- Install uv on your system: https://docs.astral.sh/uv/getting-started/installation/
- Download the [generate_coco_from_dropbox.py](user_scripts/generate_coco_from_dropbox.py) script

- Run the script
```bash
# Help
uv run generate_coco_dropbox.py --help

# Sample
uv run generate_coco_dropbox.py "DROPBOX_ACCESS_TOKEN" "FOLDER_PATH_IN_DROPBOX" "DESTINATION_EXPORT_FILE_NAME_IN_DROPBOX"

# Example
uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json”
```
- Download the coco_export.json from the dropbox
Loading