Skip to main content

image-features

PyPi

A library for processing image features in a dataframe.

Dependencies :globe_with_meridians:

Python 3.11.6:

Raison D'être :thought_balloon:

image-features transforms URLs in a dataframe into image features.

Architecture :triangular_ruler:

image-features is a functional library, meaning that each phase of feature extraction gets put through a different function until the final output. The features its computes are as follows:

  1. Embeddings - An embedding for each image in the row.
  2. Luminosity - A measure of the luminosity of the image.
  3. Mean Channels - The mean of each R/G/B channel.

Installation :inbox_tray:

This is a python package hosted on pypi, so to install simply run the following command:

pip install image-features

or install using this local repository:

python setup.py install --old-and-unmanageable

Usage example :eyes:

The use of image-features is entirely through code due to it being a library. It attempts to hide most of its complexity from the user, so it only has a few functions of relevance in its outward API.

Generating Features

To generate features:

import datetime

import pandas as pd

from imagefeatures.process import process

df = ... # Your timeseries dataframe
df = process(df, {"image_url"})

This will produce a dataframe that contains the new image related features.

License :memo:

The project is available under the MIT License.

Metadata

Release files for imagefeatures 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imagefeatures 0.0.2
File Size Uploaded Provenance
imagefeatures-0.0.2.tar.gz 5.1 kB Without provenance Details

Release files / imagefeatures-0.0.2.tar.gz

Download URL imagefeatures-0.0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
36c37129806c5556d4128555dcbb6176aca53bf444e58481d0506f12ea800c61
BLAKE2b-256 checksum
How to use checksums
a23bfc2faeff36f283401df6edb293cbfa6c7d2a76bdc11671b5be03b40a930d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.6

Security for imagefeatures 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page