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, orNoneif not foundhas_embedded_json() -> bool: Check if the image contains embedded JSON datato_bytes() -> bytes: Get the raw image data as bytes
Properties
image_data: bytes: The raw JPEG image datasource_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17ee4228a9fe1f76140f36c50b5c090a4e1d3bf523e120d4a32773e487f641f3
|
|
| MD5 |
e7d7a24890b947c2eb08377b1a3ce2e4
|
|
| BLAKE2b-256 |
6a72178f0cfd34f3082364b84713b52d0b0dbaa672f9c72d8b3096e89c9e6f8d
|
Provenance
The following attestation bundles were made for overview_jpeg_tools-1.0.1.tar.gz:
Publisher:
publish.yml on OverviewCorporation/overview-jpeg-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overview_jpeg_tools-1.0.1.tar.gz -
Subject digest:
17ee4228a9fe1f76140f36c50b5c090a4e1d3bf523e120d4a32773e487f641f3 - Sigstore transparency entry: 753667553
- Sigstore integration time:
-
Permalink:
OverviewCorporation/overview-jpeg-tools@964c305db3f95aa389352d306fe6e7ce5f5d7a14 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/OverviewCorporation
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@964c305db3f95aa389352d306fe6e7ce5f5d7a14 -
Trigger Event:
release
-
Statement type:
File details
Details for the file overview_jpeg_tools-1.0.1-py3-none-any.whl.
File metadata
- Download URL: overview_jpeg_tools-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d7a41b1cd17dae405eef2bf80f6d0e9ff062ce0ce080199a65e0d83ef6cc68
|
|
| MD5 |
ec925dec5598ea049d89d403b18e8138
|
|
| BLAKE2b-256 |
0383cb75c108a60051004d8159545a171e020daf7d0ebc87f79ab3e07c4a3a3a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overview_jpeg_tools-1.0.1-py3-none-any.whl -
Subject digest:
e8d7a41b1cd17dae405eef2bf80f6d0e9ff062ce0ce080199a65e0d83ef6cc68 - Sigstore transparency entry: 753667565
- Sigstore integration time:
-
Permalink:
OverviewCorporation/overview-jpeg-tools@964c305db3f95aa389352d306fe6e7ce5f5d7a14 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/OverviewCorporation
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@964c305db3f95aa389352d306fe6e7ce5f5d7a14 -
Trigger Event:
release
-
Statement type: