compare-frames-g4


Namecompare-frames-g4 JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/Genzo4/compare_frames
SummaryCompare 2 frames
upload_time2023-10-06 01:47:10
maintainer
docs_urlNone
authorGenzo
requires_python>=3.6
licenseMIT
keywords g4 compare_frames compare frames
VCS
bugtrack_url
requirements opencv-contrib-python multipledispatch numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Language](https://img.shields.io/badge/English-brigthgreen)

# Compare frames

![PyPI](https://img.shields.io/pypi/v/compare-frames-g4)
![PyPI - License](https://img.shields.io/pypi/l/compare-frames-g4)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/compare-frames-g4)


Compare 2 frames

***

## Installation

### Package Installation from PyPi

```bash
$ pip install compare-frames-g4
```

### Package Installation from Source Code

The source code is available on [GitHub](https://github.com/Genzo4/compare_frames).  
Download and install the package:

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

***

## Usage

- From files

```python
from compare_frames_g4 import compare_frames

is_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')
```

- From frames (numpy.ndarray)

```python
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

```python
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')
```

```python
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](https://github.com/Genzo4/compare_frames/blob/main/CHANGELOG.md)

***

![Language](https://img.shields.io/badge/Русский-brigthgreen)

# Compare frames

![PyPI](https://img.shields.io/pypi/v/compare-frames-g4)
![PyPI - License](https://img.shields.io/pypi/l/compare-frames-g4)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/compare-frames-g4)

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

***

## Установка

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

```bash
$ pip install compare-frames-g4
```

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

Исходный код размещается на [GitHub](https://github.com/Genzo4/compare_frames).  
Скачайте его и установите пакет:

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

***

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

- Берём кадры из файлов 

```python
from compare_frames_g4 import compare_frames

is_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')
```

- Используем "готовые" кадры (numpy.ndarray). Например, из cv2.imread

```python
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)
```

- Смешанный режим

```python
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')
```

```python
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](https://github.com/Genzo4/compare_frames/blob/main/CHANGELOG.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Genzo4/compare_frames",
    "name": "compare-frames-g4",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "g4,compare_frames,compare frames",
    "author": "Genzo",
    "author_email": "genzo@bk.ru",
    "download_url": "https://files.pythonhosted.org/packages/23/a9/f9c1360d65ab72fe62055b21324e95ca870e389c05acefa3c2223b3c76f5/compare_frames_g4-1.1.0.tar.gz",
    "platform": null,
    "description": "![Language](https://img.shields.io/badge/English-brigthgreen)\r\n\r\n# Compare frames\r\n\r\n![PyPI](https://img.shields.io/pypi/v/compare-frames-g4)\r\n![PyPI - License](https://img.shields.io/pypi/l/compare-frames-g4)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/compare-frames-g4)\r\n\r\n\r\nCompare 2 frames\r\n\r\n***\r\n\r\n## Installation\r\n\r\n### Package Installation from PyPi\r\n\r\n```bash\r\n$ pip install compare-frames-g4\r\n```\r\n\r\n### Package Installation from Source Code\r\n\r\nThe source code is available on [GitHub](https://github.com/Genzo4/compare_frames).  \r\nDownload and install the package:\r\n\r\n```bash\r\n$ git clone https://github.com/Genzo4/compare_frames\r\n$ cd compare_frames\r\n$ pip install -r requirements.txt\r\n$ pip install .\r\n```\r\n\r\n***\r\n\r\n## Usage\r\n\r\n- From files\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\n\r\nis_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')\r\n```\r\n\r\n- From frames (numpy.ndarray)\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_1 = cv2.imread('path_to_frame_1')\r\nframe_2 = cv2.imread('path_to_frame_2')\r\n\r\nis_equal = compare_frames(frame_1, frame_2)\r\n```\r\n\r\n- Mix\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_1 = cv2.imread('path_to_frame_1')\r\n\r\nis_equal = compare_frames(frame_1, 'path_to_frame_2')\r\n```\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_2 = cv2.imread('path_to_frame_2')\r\n\r\nis_equal = compare_frames('path_to_frame_2', frame_2)\r\n```\r\n\r\n***\r\n\r\n[Changelog](https://github.com/Genzo4/compare_frames/blob/main/CHANGELOG.md)\r\n\r\n***\r\n\r\n![Language](https://img.shields.io/badge/\u0420\u0443\u0441\u0441\u043a\u0438\u0439-brigthgreen)\r\n\r\n# Compare frames\r\n\r\n![PyPI](https://img.shields.io/pypi/v/compare-frames-g4)\r\n![PyPI - License](https://img.shields.io/pypi/l/compare-frames-g4)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/compare-frames-g4)\r\n\r\n\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043a\u0430\u0434\u0440\u043e\u0432 (\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439).\r\n\r\n***\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\n\r\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0441 PyPi\r\n\r\n```bash\r\n$ pip install compare-frames-g4\r\n```\r\n\r\n### \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430\r\n\r\n\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0430 [GitHub](https://github.com/Genzo4/compare_frames).  \r\n\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442:\r\n\r\n```bash\r\n$ git clone https://github.com/Genzo4/compare_frames\r\n$ cd compare_frames\r\n$ pip install -r requirements.txt\r\n$ pip install .\r\n```\r\n\r\n***\r\n\r\n## \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\r\n\r\n- \u0411\u0435\u0440\u0451\u043c \u043a\u0430\u0434\u0440\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 \r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\n\r\nis_equal = compare_frames('path_to_frame_1', 'path_to_frame_2')\r\n```\r\n\r\n- \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \"\u0433\u043e\u0442\u043e\u0432\u044b\u0435\" \u043a\u0430\u0434\u0440\u044b (numpy.ndarray). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437 cv2.imread\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_1 = cv2.imread('path_to_frame_1')\r\nframe_2 = cv2.imread('path_to_frame_2')\r\n\r\nis_equal = compare_frames(frame_1, frame_2)\r\n```\r\n\r\n- \u0421\u043c\u0435\u0448\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_1 = cv2.imread('path_to_frame_1')\r\n\r\nis_equal = compare_frames(frame_1, 'path_to_frame_2')\r\n```\r\n\r\n```python\r\nfrom compare_frames_g4 import compare_frames\r\nimport cv2\r\n\r\nframe_2 = cv2.imread('path_to_frame_2')\r\n\r\nis_equal = compare_frames('path_to_frame_2', frame_2)\r\n```\r\n\r\n***\r\n\r\n[Changelog](https://github.com/Genzo4/compare_frames/blob/main/CHANGELOG.md)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Compare 2 frames",
    "version": "1.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/Genzo4/compare_frames/issues",
        "Homepage": "https://github.com/Genzo4/compare_frames"
    },
    "split_keywords": [
        "g4",
        "compare_frames",
        "compare frames"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bebb6b61621a0c753cd0c7216c174a68e7d9b1e5c5f7e7ef41e0087b376b85d5",
                "md5": "0775065002ef064250651435f13d4f28",
                "sha256": "ea7f83ad17775ed28b6d22f65b3bd83a5eceec599e293bdb4788a5bed52e446d"
            },
            "downloads": -1,
            "filename": "compare_frames_g4-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0775065002ef064250651435f13d4f28",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4641,
            "upload_time": "2023-10-06T01:47:08",
            "upload_time_iso_8601": "2023-10-06T01:47:08.290207Z",
            "url": "https://files.pythonhosted.org/packages/be/bb/6b61621a0c753cd0c7216c174a68e7d9b1e5c5f7e7ef41e0087b376b85d5/compare_frames_g4-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23a9f9c1360d65ab72fe62055b21324e95ca870e389c05acefa3c2223b3c76f5",
                "md5": "951ceb16f084d231e1f2e0be665feddf",
                "sha256": "b9a36230deee38e2a49c3d252299ec571b679f01cbc9f7f7a9d7452e177c2eda"
            },
            "downloads": -1,
            "filename": "compare_frames_g4-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "951ceb16f084d231e1f2e0be665feddf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4926,
            "upload_time": "2023-10-06T01:47:10",
            "upload_time_iso_8601": "2023-10-06T01:47:10.847570Z",
            "url": "https://files.pythonhosted.org/packages/23/a9/f9c1360d65ab72fe62055b21324e95ca870e389c05acefa3c2223b3c76f5/compare_frames_g4-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-06 01:47:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Genzo4",
    "github_project": "compare_frames",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "opencv-contrib-python",
            "specs": [
                [
                    "<",
                    "4.6"
                ]
            ]
        },
        {
            "name": "multipledispatch",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        }
    ],
    "lcname": "compare-frames-g4"
}
        
Elapsed time: 0.16885s