Skip to main content

A Python module for communication with PEKAT VISION

Project description

PEKAT VISION SDK - Python

A Python module for communication with PEKAT VISION.

Full SDK documentation available here: https://pekat-vision.github.io/pekat-vision-sdk-python

Installation

Type pip install "pekat-vision-sdk" into your terminal.

Installing with pip install "pekat-vision-sdk[opencv]" also installs opencv.

Example

Creating the analyzer

from PekatVisionSDK import Instance

# Start a project locally (host 0.0.0.0 - listen on all interfaces)

p_local = Instance("~/PekatVisionProjects/my_project", port=8100, host="0.0.0.0")

# Connect to an already running project

p_remote = Instance(port=8000, already_running=True)

Sending an image to analyze

import numpy as np

# p = Instance(...)

# Analyze image from disk

result = p.analyze("path_to_image.png", response_type="annotated_image")

# Analyze a numpy image

# image: np.ndarray = ...
result = p.analyze(image)

Accessing the results

# Get the evaluation result (True/False)

flow_result = result.context["result"]

# Decode image bytes and save image on disk

import cv2

if result.image_bytes is not None:
    image = result.get_decoded_image()
    cv2.imwrite("result_with_annotations.png", image)

Stopping a project

# Project must have been started using the SDK
p_local.stop()

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

pekat_vision_sdk-2.3.3.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.

pekat_vision_sdk-2.3.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pekat_vision_sdk-2.3.3.tar.gz.

File metadata

  • Download URL: pekat_vision_sdk-2.3.3.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 pekat_vision_sdk-2.3.3.tar.gz
Algorithm Hash digest
SHA256 d124a4b235fc9747bc43dfe9e0410788d2f2ed3a3f8b2e5131c0764814aa447d
MD5 bb24cefa81e05ae62fc8fd3f7e2b4fb5
BLAKE2b-256 82d9788dfdfa120def6799ed5539a16d9c938759f7aa8b40c2e9e01503c0d836

See more details on using hashes here.

Provenance

The following attestation bundles were made for pekat_vision_sdk-2.3.3.tar.gz:

Publisher: release.yml on pekat-vision/pekat-vision-sdk-python

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

File details

Details for the file pekat_vision_sdk-2.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pekat_vision_sdk-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc8be81284ec75bac9cd245ae113a2bd48dff05bf6d382c0c5e60fba06addfc9
MD5 650a0ab9bceaec0747d25f7d52ae081d
BLAKE2b-256 7ab2b5ac0490d3ec09d3a1e34f141fcc48ce3989aca5c59a4e846eaffa99a39b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pekat_vision_sdk-2.3.3-py3-none-any.whl:

Publisher: release.yml on pekat-vision/pekat-vision-sdk-python

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