semvec/pypi-packages huggingface dataset:
visual-compare 1.0.2.3
Image and PDF Compare
License: MIT
Keywords: visual compare image pdf diff

Visual Compare
==============

## Installation

```commandline
pip install visual-compare
```

## Examples

### Compare images ###

```python
from visual_compare.doc.visual import Visual

def get_path(filename):
    image_base = '../../files/images/'
    return image_base + filename

reference_image = get_path('123.png')
test_image = get_path('124.png')
vt = Visual()
is_diff, res = vt.compare_images(reference_image, test_image)
print(res)
assert is_diff is True
```

 Result as follows

![1.jpg](https://github.com/cuidingyong/visual-compare/raw/main/files/result/1.jpg)

### Compare images with mask ###

```python
from visual_compare.doc.visual import Visual

def get_path(filename):
    image_base = '../../files/images/'
    return image_base + filename

reference_image = get_path('123.png')
test_image = get_path('124.png')
mask_images = [get_path('000.png')]
vt = Visual()
mask = vt.generate_mask(reference_image, mask_images)
is_diff, res = vt.compare_images(reference_image, test_image, mask=mask)
print(res)
assert is_diff is True
```

 Result as follows

![2.jpg](https://github.com/cuidingyong/visual-compare/raw/main/files/result/2.jpg)

### Compare images with OCR ###

```python
from visual_compare.doc.visual import Visual

def get_path(filename):
    image_base = '../../files/images/'
    return image_base + filename

reference_image = get_path('123.png')
test_image = get_path('124.png')
vt = Visual()
is_diff, res = vt.compare_images(reference_image, test_image, force_ocr=True, lang=['ch_sim', 'en'])
print(res)
assert is_diff is True
```

 Result as follows

![3.jpg](https://github.com/cuidingyong/visual-compare/raw/main/files/result/3.jpg)
ds-stats-mexico 1.1.1
Librería de estadística (Gráficas) de México (Paises ricos, envejecimiento, mortalidad infantil)
License: MIT

# DocumentaciÃ³n

## InstalaciÃ³n
Para poder ejecutar el proyecto es necesario tener instalado Python 3.7.4 y las siguientes librerÃ­as:
* matplotlib

```
pip install matplotlib ds-stats-mexico
```

## Uso

Importe la librerÃ­a:

```
import ds_stats_mexico as dsm
```

Para obtener los datos de los 10 paÃ­ses mÃ¡s ricos del mundo:

```
dsm.grafica_barras_paises_ricos()
```

Para obtener los datos del Ã­ndice de envejecimiento de la poblaciÃ³n de MÃ©xico:

```
dsm.grafica_lineal_envejecimiento_mexico()
```

Para obtener los datos de mortalidad en menores de un aÃ±o en MÃ©xico:

```
dsm.grafica_pastel_mortalidad_infantil_mexico_causas()
```

por sexo:

```
dsm.grafica_pastel_mortalidad_infantil_mexico_sexo()
```

_Creado por Erick Flores_
breast-cancer-detection 0.0.1
Breast Cancer Detection from Mammography using Deep Learning
License: MIT
Requires Python: >=3.7.1,<4.0

# Breast Cancer Detection from Mammography using Deep Learning

[![PyPI](https://img.shields.io/pypi/v/bcd?style=flat-square)](https://pypi.python.org/pypi/bcd/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bcd?style=flat-square)](https://pypi.python.org/pypi/bcd/)
[![PyPI - License](https://img.shields.io/pypi/l/bcd?style=flat-square)](https://pypi.python.org/pypi/bcd/)

---

**Documentation**: [https://john-james-ai.github.io/b](https://john-james-ai.github.io/bcd)reast_cancer_detection

**Source Code**: [https://github.com/john-james-ai/](https://github.com/john-james-ai/bcd)[b](https://john-james-ai.github.io/bcd)reast_cancer_detection

**PyPI**: [https://pypi.org/project/](https://pypi.org/project/bcd/)[b](https://john-james-ai.github.io/bcd)reast_cancer_detection/

---

Breast Cancer Detection from Mammography using Deep Learning

## Installation

```sh
pip install bcd
```

## Development

* Clone this repository
* Requirements:
  * [Poetry](https://python-poetry.org/)
  * Python 3.7+
* Create a virtual environment and install the dependencies

```sh
poetry install
```

* Activate the virtual environment

```sh
poetry shell
```

### Testing

```sh
pytest
```

### Documentation

The documentation is automatically generated from the content of the [docs directory](./docs) and from the docstrings
 of the public signatures of the source code. The documentation is updated and published as a [Github project page
 ](https://pages.github.com/) automatically as part each release.

### Releasing

Trigger the [Draft release workflow](https://github.com/john-james-ai/bcd/actions/workflows/draft_release.yml)
(press _Run workflow_). This will update the changelog & version and create a GitHub release which is in _Draft_ state.

Find the draft release from the
[GitHub releases](https://github.com/john-james-ai/bcd/releases) and publish it. When
 a release is published, it'll trigger [release](https://github.com/john-james-ai/bcd/blob/master/.github/workflows/release.yml) workflow which creates PyPI
 release and deploys updated documentation.

### Pre-commit

Pre-commit hooks run all the auto-formatters (e.g. `black`, `isort`), linters (e.g. `mypy`, `flake8`), and other quality
 checks to make sure the changeset is in good shape before a commit/push happens.

You can install the hooks with (runs for each commit):

```sh
pre-commit install
```

Or if you want them to run only for each push:

```sh
pre-commit install -t pre-push
```

Or if you want e.g. want to run all checks manually for all files:

```sh
pre-commit run --all-files
```

---

This project was generated using the [wolt-python-package-cookiecutter](https://github.com/woltapp/wolt-python-package-cookiecutter) template.