Skip to main content

A library for processing image features in a dataframe.

Project description

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.

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

imagefeatures-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: imagefeatures-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 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.1.tar.gz
Algorithm Hash digest
SHA256 224bd874acdd309de7393d3183caf7d8c727a7633108e2babff0863cbd900cba
MD5 67e25f8610183971d83a9022024562b8
BLAKE2b-256 86392b0df3791006a876cd3d08cecceccdc1117f69e17f3da35714420f1f50f2

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