Skip to main content

Package for collecting data and transforming to dataset

Project description

asldatacollector

asldatacollector 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 asldatacollector, run:

pipx install asldatacollector

Usage

Collecting Hand Images

To collect images, run:

asldatacollector 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

asldatacollector 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:

asldatacollector upload --key <API_KEY>

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

Listing Files

To list files in Google Storage, use:

asldatacollector list

Downloading Files

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

asldatacollector download --file-id <FILE_ID>

Or download all files:

asldatacollector download

Instruction

Firsly collect the data with

asldatacollector collect

then upload files to server:

asldatacollector 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

asldatacollector-0.0.6.tar.gz (56.0 kB view details)

Uploaded Source

Built Distribution

asldatacollector-0.0.6-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file asldatacollector-0.0.6.tar.gz.

File metadata

  • Download URL: asldatacollector-0.0.6.tar.gz
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for asldatacollector-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5f333b0f38a607a6de0d35f243d58d22106e6a1a85c52cc1eb654a461143bb73
MD5 583fa4de2cdc0b2434c6e81bd7da604e
BLAKE2b-256 e34405868f8f9d5cff0de4e642442f72245e3282d0d6f8f0ad1c238343ddfe84

See more details on using hashes here.

File details

Details for the file asldatacollector-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: asldatacollector-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 56.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for asldatacollector-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 91772b129b735299dd922553782fd2aa2c80b41ba5cd3c12356bd27e51fe32cf
MD5 86ceed3085c72b79629cbf77e93730b4
BLAKE2b-256 ee0f7fbd777ad2b95c6357021266afd546736e3ebf3ad8829a6226b29d009bb7

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