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

The first time you run the set-key command, the key is securely stored using a credentials management system. You don't need to provide the key again unless you wish to change it.

bash

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.1.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

idatagate-0.0.1-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idatagate-0.0.1.tar.gz
  • Upload date:
  • Size: 53.5 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.1.tar.gz
Algorithm Hash digest
SHA256 a355f8524785b93b99e90f1c1cc16b31ccdf3e7e0faed8a80bb866f3c9a57bbd
MD5 2ea188dcf2d857dc56309478d989fd8d
BLAKE2b-256 31a3ceb88b92f6285265e9dcfcc4840152d22b77083ef48f9d24d25728e46d91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idatagate-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 52.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 342139af424d044f6fdfa72e22cc7fe442583cdaef5e1a37bc48f498c7d36b2f
MD5 5ffa2c980e2a8d684ed99b782b974784
BLAKE2b-256 34345faf5c87d75cb2d65c14574ab90ca363afb30fbc7677469c29a9ed16db31

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