Skip to main content

AMMICO - AI-based Media and Misinformation Content Analysis Tool

License: MIT GitHub Workflow Status codecov Quality Gate Status Language Open In Colab

This package extracts data from images such as social media posts that contain an image part and a text part. The analysis can generate a very large number of features, depending on the user input. See our paper for a more in-depth description.

This project is currently under development!

Use pre-processed image files such as social media posts with comments and process to collect information:

  1. Text extraction from the images
    1. Language detection
    2. Translation into English or other languages
  2. Content extraction from the images
    1. Textual summary of the image content ("image caption")
    2. Feature extraction from the images: User inputs query and images are matched to that query (both text and image query)
    3. Question answering about image content
  3. Content extraction from videos
    1. Textual summary of the video content
    2. Question answering about video content
  4. Color analysis
    1. Analyse hue and percentage of color on image
  5. Multimodal analysis
    1. Find best matches for image content or image similarity
  6. Cropping images to remove comments from posts

Installation

The AMMICO package can be installed using pip:

pip install ammico 

Or install the development version from GitHub (currently recommended for the new features):

pip install git+https://github.com/ssciwr/AMMICO.git

This will install the package and its dependencies locally.

Usage

Demonstration notebooks can be found in the docs/tutorials folder and also on google colab:

Open In Colab

Features

Text extraction

The text is extracted from the images using google-cloud-vision. For this, you need an API key. Set up your google account following the instructions on the google Vision AI website or as described here. You then need to export the location of the API key as an environment variable:

export GOOGLE_APPLICATION_CREDENTIALS="location of your .json"

The extracted text is then stored under the text key (column when exporting a csv).

Googletrans is used to recognize the language automatically and translate into English. The text language and translated text is then stored under the text_language and text_english key (column when exporting a csv).

Content extraction from images and videos

The image and video content ("caption") is extracted using QWEN 2.5 Vision-Language model family. Qwen2.5-VL is a multimodal large language model capable of understanding and generating content from both images and videos. With its help, ammico supports tasks such as image/video summarization and image/video visual question answering, where the model answers users' questions about the context of a media file.

The audio transcription, language detection and translation is carried out using the WhisperX model family for audio transcription as developed by OpenAI.

Color/hue detection

Color detection is carried out using colorgram.py and colour for the distance metric. The colors can be classified into the main named colors/hues in the English language, that are red, green, blue, yellow, cyan, orange, purple, pink, brown, grey, white, black.

Contributing

We welcome contributions to the ammico project! If you'd like to help improve the tool, add new features, or report or fix bugs, please follow these guidelines.

Reporting Issues

Please use the issues tab to report bugs, request features, or start discussions.

License

ammico is licensed under the MIT license.

Citing ammico

Ammico has been published in Comp. Comm. Res., please cite the paper as specified in the Citations file.

Metadata

Release files for ammico 0.3.0

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

Source distribution (sdist)

Source distribution for ammico 0.3.0
File Size Uploaded Provenance Actions
ammico-0.3.0.tar.gz 10.7 MB With provenance Details for ammico-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ammico 0.3.0
File Interpreter ABI Platform Actions
ammico-0.3.0-py3-none-any.whl Python 3 none any Details for ammico-0.3.0-py3-none-any.whl

Total release size: 10.8 MB

Release files / ammico-0.3.0.tar.gz

Download URL ammico-0.3.0.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a9bd8240c2beb05249ace133ccb21344e4463edb070e30b91d6280bc8887fdec
BLAKE2b-256 checksum
How to use checksums
bc0788d45f5b275c48a87bdbbdbafc6470bf4a8c7fde2a01e00d7a192e4dc718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / ammico-0.3.0-py3-none-any.whl

Download URL ammico-0.3.0-py3-none-any.whl
Size 49.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ed522627eb400908ea6dc7f886bc24ec04473a510599654fb4c5af684f6ee3d
BLAKE2b-256 checksum
How to use checksums
ff7696a6f3b59ebe0a783ed34b7085d09afba86588be73eef105b9e79a4c8af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for ammico 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ammico-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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