Skip to main content

Language

Compare frames

PyPI PyPI - License PyPI - Python Version

Compare 2 frames


Installation

Package Installation from PyPi

$ pip install compare-frames-g4

Package Installation from Source Code

The source code is available on GitHub.
Download and install the package:

$ git clone https://github.com/Genzo4/compare_frames
$ cd compare_frames
$ pip install -r requirements.txt
$ pip install .

Usage

  • From files
from compare_frames_g4 import compare_frames

is_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')
  • From frames (numpy.ndarray)
from compare_frames_g4 import compare_frames
import cv2

frame_1 = cv2.imread('path_to_frame_1')
frame_2 = cv2.imread('path_to_frame_2')

is_equal = compare_frames(frame_1, frame_2)
  • Mix
from compare_frames_g4 import compare_frames
import cv2

frame_1 = cv2.imread('path_to_frame_1')

is_equal = compare_frames(frame_1, 'path_to_frame_2')
from compare_frames_g4 import compare_frames
import cv2

frame_2 = cv2.imread('path_to_frame_2')

is_equal = compare_frames('path_to_frame_2', frame_2)

Changelog


Language

Compare frames

PyPI PyPI - License PyPI - Python Version

Сравнение двух кадров (изображений).


Установка

Установка пакета с PyPi

$ pip install compare-frames-g4

Установка пакета из исходного кода

Исходный код размещается на GitHub.
Скачайте его и установите пакет:

$ git clone https://github.com/Genzo4/compare_frames
$ cd compare_frames
$ pip install -r requirements.txt
$ pip install .

Использование

  • Берём кадры из файлов
from compare_frames_g4 import compare_frames

is_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')
  • Используем "готовые" кадры (numpy.ndarray). Например, из cv2.imread
from compare_frames_g4 import compare_frames
import cv2

frame_1 = cv2.imread('path_to_frame_1')
frame_2 = cv2.imread('path_to_frame_2')

is_equal = compare_frames(frame_1, frame_2)
  • Смешанный режим
from compare_frames_g4 import compare_frames
import cv2

frame_1 = cv2.imread('path_to_frame_1')

is_equal = compare_frames(frame_1, 'path_to_frame_2')
from compare_frames_g4 import compare_frames
import cv2

frame_2 = cv2.imread('path_to_frame_2')

is_equal = compare_frames('path_to_frame_2', frame_2)

Changelog

Release files for compare-frames-g4 1.1.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 compare-frames-g4 1.1.0
File Size Uploaded
compare_frames_g4-1.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compare-frames-g4 1.1.0
File Interpreter ABI Platform
compare_frames_g4-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / compare_frames_g4-1.1.0.tar.gz

Download URL compare_frames_g4-1.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9a36230deee38e2a49c3d252299ec571b679f01cbc9f7f7a9d7452e177c2eda
BLAKE2b-256 checksum
How to use checksums
23a9f9c1360d65ab72fe62055b21324e95ca870e389c05acefa3c2223b3c76f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / compare_frames_g4-1.1.0-py3-none-any.whl

Download URL compare_frames_g4-1.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea7f83ad17775ed28b6d22f65b3bd83a5eceec599e293bdb4788a5bed52e446d
BLAKE2b-256 checksum
How to use checksums
bebb6b61621a0c753cd0c7216c174a68e7d9b1e5c5f7e7ef41e0087b376b85d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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