Skip to main content

Tools and utilities to read embedded JSON data from OV Vision Systems

Project description

Overview JPEG Tools

Tools and utilities to read embedded JSON data from OV Vision Systems.

Installation

pip install overview-jpeg-tools

Requirements

  • Python 3.8+

Quick Start

from overview_jpeg_tools import JpegJsonReader

# Extract JSON data from an image
reader = JpegJsonReader("path/to/image.jpg")
data = reader.extract_json()

if data:
    print(f"Found embedded data: {data}")
else:
    print("No embedded JSON found")

Usage

Extract JSON from JPEG

from overview_jpeg_tools import JpegJsonReader

# From file path
reader = JpegJsonReader("/path/to/image.jpg")
json_data = reader.extract_json()

# From bytes
with open("image.jpg", "rb") as f:
    image_bytes = f.read()
reader = JpegJsonReader(image_bytes)
json_data = reader.extract_json()

Check for Embedded JSON

reader = JpegJsonReader("image.jpg")
if reader.has_embedded_json():
    data = reader.extract_json()

Access Raw Image Data

reader = JpegJsonReader("image.jpg")
raw_bytes = reader.to_bytes()

API Reference

JpegJsonReader

Main class for reading JSON data from JPEG images.

Constructor

JpegJsonReader(source: Union[str, Path, bytes, BytesIO])
  • source: File path (str/Path) or binary JPEG data (bytes/BytesIO)

Methods

  • extract_json() -> Optional[Dict[str, Any]]: Extract and return embedded JSON data, or None if not found
  • has_embedded_json() -> bool: Check if the image contains embedded JSON data
  • to_bytes() -> bytes: Get the raw image data as bytes

Properties

  • image_data: bytes: The raw JPEG image data
  • source_path: Optional[Path]: The original file path if loaded from disk

License

Proprietary - Copyright (c) 2024-2025 Overview Corporation. All rights reserved.

Support

For support, contact: support@overview.ai

Website: https://overview.ai

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

overview_jpeg_tools-1.0.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

overview_jpeg_tools-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file overview_jpeg_tools-1.0.1.tar.gz.

File metadata

  • Download URL: overview_jpeg_tools-1.0.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for overview_jpeg_tools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 17ee4228a9fe1f76140f36c50b5c090a4e1d3bf523e120d4a32773e487f641f3
MD5 e7d7a24890b947c2eb08377b1a3ce2e4
BLAKE2b-256 6a72178f0cfd34f3082364b84713b52d0b0dbaa672f9c72d8b3096e89c9e6f8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for overview_jpeg_tools-1.0.1.tar.gz:

Publisher: publish.yml on OverviewCorporation/overview-jpeg-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file overview_jpeg_tools-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for overview_jpeg_tools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d7a41b1cd17dae405eef2bf80f6d0e9ff062ce0ce080199a65e0d83ef6cc68
MD5 ec925dec5598ea049d89d403b18e8138
BLAKE2b-256 0383cb75c108a60051004d8159545a171e020daf7d0ebc87f79ab3e07c4a3a3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for overview_jpeg_tools-1.0.1-py3-none-any.whl:

Publisher: publish.yml on OverviewCorporation/overview-jpeg-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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