Skip to main content

FeatureScope Python Library.

Project description

FeatureScope (Python package)

This package provides a function apply_featurizer to compute custom features on images contained in a folder, so that these images and features can be visualized with the featurescope.

Example

We have a local folder of images:

/mnist
   01.png
   02.png
   ...

and a featurizer function in Python:

def mnist_featurizer(image: np.ndarray) -> Dict:
    return {
        "mean": np.mean(image),
        "max": np.max(image),
        "min": np.min(image),
    }

then, we can use:

from featurescope import apply_featurizer

apply_featurizer(mnist_featurizer, images_dir="./mnist")

Running apply_featurizer will load, and apply the featurizer function to all images in the folder, and save a CSV file dataset.csv in that same folder.

/mnist
   01.png
   02.png
   ...
   dataset.csv  <- Contains the computed image features!

With the features computed and stored, the folder /mnist can be dropped in the featurescope app in a web browser for visualization.

Installation

From PyPi:

pip install featurescope

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

featurescope-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

featurescope-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurescope-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for featurescope-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8c0f554fa99951dd6b24c5dc6ad44cd5e264dd83489b686ff46b67f9d43bed16
MD5 17ca0ebf18db4b9a1c2765d970e6fe03
BLAKE2b-256 0346aa48f049255203a56ea0a0ceacc9c9c9fea09fc3e5f62ede125ed99f86ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurescope-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for featurescope-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 052976c21684a1e595e34b72119a31f748e4d7dfea0dd3038f74d4f0db26471f
MD5 a4ca326d07f453df84086f50b35797c1
BLAKE2b-256 175f688017346f9385e55359bc399b6f01533f6b81c2c6ddb956fe9677e5bf08

See more details on using hashes here.

Supported by

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