Skip to main content

No project description provided

Project description

PyPI version License: MIT Downloads LinkedIn

etoile_pixtral_description

etoile_pixtral_description is a Python package designed to extract detailed descriptions from images using advanced language models. It focuses on providing concrete descriptions of visible content characteristics on web pages or other digital media, making it particularly useful for content analysis, accessibility improvements, and SEO enhancements.

Installation

To install etoile_pixtral_description, use pip:

pip install etoile_pixtral_description

Usage

The package provides a function describe_image that generates a detailed description of the content found within an image. It uses the ScreenContentSimplified model for structured output.

Setting Up the Model

from langchain_mistralai import ChatMistralAI

CVISION_MODEL = "pixtral-12b-2409"

llm = ChatMistralAI(
    model=CVISION_MODEL,
    temperature=0,
    max_retries=2,
)

Describing an Image

from etoile_pixtral_description import describe_image

# `screenshot.link` should be a string containing the URL to the image you want to describe.
screenshot_link = "https://example.com/path/to/screenshot.jpg"
result = describe_image(llm, screenshot_link, verbose=True)
print(result)
# Assuming `result` contains a property `description` which holds the detailed description.

This function returns a structured response with a detailed description of each content characteristic on the screen, which is useful for various applications, including digital asset management and accessibility compliance.

Features

  • Provides detailed and concrete descriptions of images for enhanced understanding and analysis.
  • Utilizes advanced machine learning models to interpret and describe visual content.
  • Supports detailed descriptions including the semantics of textual content and the aesthetics of visual elements.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

etoile_pixtral_description is licensed under the MIT License.

Acknowledgements

This package was developed by Evgenii (Eugene) Evstafev as part of the Mistral Étoile suite during the London Hackathon. It aims to provide tools that assist in the detailed analysis of digital content for various professional fields.

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

etoile_pixtral_description-2025.5.160702.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file etoile_pixtral_description-2025.5.160702.tar.gz.

File metadata

File hashes

Hashes for etoile_pixtral_description-2025.5.160702.tar.gz
Algorithm Hash digest
SHA256 3ebe6ce690da0e6c7c1f8754413b92a5b21f7ab183783300866e3a59af7f7c31
MD5 3c061fddd9e481394c18951e137e760f
BLAKE2b-256 62cb6dec0241f6bf1461bc934785854fb0a5da4fdb9bf146a6c198b39e100b36

See more details on using hashes here.

File details

Details for the file etoile_pixtral_description-2025.5.160702-py3-none-any.whl.

File metadata

File hashes

Hashes for etoile_pixtral_description-2025.5.160702-py3-none-any.whl
Algorithm Hash digest
SHA256 a84ce0ab353a65f4cf6551607c21296995fb0260080b2b51d80de38501b45797
MD5 3c1e4b8068d44df067c388b7e8c81b3d
BLAKE2b-256 70e9eacacbf3a0df765f43d1413ad6d369a5d5eda3b0d4fb2b5e64d364154bdb

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