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.

Download files

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

Source Distribution

imagefeatures-0.0.2.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file imagefeatures-0.0.2.tar.gz.

File metadata

  • Download URL: imagefeatures-0.0.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for imagefeatures-0.0.2.tar.gz
Algorithm Hash digest
SHA256 36c37129806c5556d4128555dcbb6176aca53bf444e58481d0506f12ea800c61
MD5 ab39d19ce4c5e7cf2f981e06c2d3bdf6
BLAKE2b-256 a23bfc2faeff36f283401df6edb293cbfa6c7d2a76bdc11671b5be03b40a930d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

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