compare-frames-g4

Compare 2 frames


Keywords
g4, compare_frames, compare, frames
License
MIT
Install
pip install compare-frames-g4==1.1.0

Documentation

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