Skip to main content

Package for collecting data and transforming to dataset

Project description

idatagate

idatagate is a CLI tool designed for managing and processing hand image datasets, as well as uploading files to Google Storage. It allows you to collect images, transform them into datasets, and manage files in Google Drive storage efficiently.

Table Of Contents

Features

  • Collect hand images with real-time landmark detection for multiple classes.
  • Upload files to Google Storage.
  • Download files or list files from Google Storage.

Installation

To install idatagate, run:

pipx install idatagate

Usage

Collecting Hand Images

To collect images, run:

idatagate collect --data-dir /path/to/save/images --classes-number 26 --samples-number 100

The command will take images for 26 different classes (such as the alphabet in sign language) and store them in the specified directory. Each class will have by default 100 images collected using landmark detection. The collection will continue until all images are gathered for each class. The image collection uses real-time landmark detection to capture high-quality images. For reference, the classes are aligned with the alphabet as demonstrated in this example image:

img

Example Command

idatagate collect --data-dir ./images --classes-number 26 --samples-number 100

This command will continuously capture images for 26 classes (each corresponding to a letter of the alphabet) until 100 samples per class are collected.

Uploading Files

To upload a zip file to Google Storage, use:

idatagate upload --key <API_KEY>

Make sure the key is already set before running the upload command. If the key is not set, use the idatagate set-key command as described earlier.

Listing Files

To list files in Google Storage, use:

idatagate list

Downloading Files

To download a file from Google Storage, you can specify a file ID:

idatagate download --file-id <FILE_ID>

Or download all files:

idatagate download

Instruction

Firsly collect the data with

idatagate collect

then upload files to server:

idatagate upload

Caching the Encryption Key

It is possible

Contributing

Feel free to open issues or contribute by submitting pull requests.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idatagate-0.0.4.tar.gz (55.8 kB view details)

Uploaded Source

Built Distribution

idatagate-0.0.4-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file idatagate-0.0.4.tar.gz.

File metadata

  • Download URL: idatagate-0.0.4.tar.gz
  • Upload date:
  • Size: 55.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure

File hashes

Hashes for idatagate-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d53ce39c9eb1312e7c74b8d94c526ab74ae18cc634862054c4f2a816a6602b4f
MD5 7a8e0fca404267aba1f7b344a2ea3f69
BLAKE2b-256 e4c9cc295a2119f2c97042816c0b04bc5146b777c262ff5d8681ed5529622643

See more details on using hashes here.

File details

Details for the file idatagate-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: idatagate-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure

File hashes

Hashes for idatagate-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b145ad2e74fffa3a2cfd8f17e98c0442167ff8d73ced438a48643c29ba775fdc
MD5 b4da865d70477d55d69c369a5d6f6087
BLAKE2b-256 23adc3e2aebe9f49a70b328b0b3264f09ac884d34937081a67256c62e29f57d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page