semvec/pypi-packages huggingface dataset:
mycalc2 0.2.2
A simple calc library
License: MIT
Requires Python: >=3.7,<4.0
Keywords: hypermodern

This is a simple Repo

[![Tests](https://github.com/s4sarath/mycalc2/workflows/Tests/badge.svg)](https://github.com/s4sarath/mycalc2/actions?workflow=Tests)
[![codecov](https://codecov.io/gh/s4sarath/mycalc2/branch/main/graph/badge.svg)](https://codecov.io/gh/s4sarath/mycalc2)
![Release](https://github.com/s4sarath/mycalc2/workflows/Release/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/mycalc2.svg)](https://pypi.org/project/mycalc2/)
[![Tag](https://img.shields.io/github/v/tag/s4sarath/mycalc2.svg?sort=semver)](https://github.com/s4sarath/mycalc2/tags)
[![release](https://img.shields.io/github/v/release/s4sarath/mycalc2.svg?sort=semver)](https://github.com/s4sarath/mycalc2/releases)
id-card-extractor 1.2.0
Crop id card from an image using OpenCV
License: MIT

# Detecting the National Identification Cards


You can use this project to extract information DOB (name, surname, date of birth, etc.) on the identity card. To do this, I'm broke down the problem into sub-problems as below:

- [this project] Identify Regions of Interest (ROI) containing the required information with deep learning
- [this project] Crop the regions identified above
- OCR on the identified region of interest

This project can do object detection + object classification + multiple object detection all at the same time.

**Use case diagram**

![UseCase](./static/usecase.png "UseCase")

Sample id cards

| Sample 1  | Sample 2 |Sample 3  |
|---|---|---|
| ![Old](./static/old_card.png "Old")  | ![new](./static/new_card.png "new")  |![licence](./static/licence.png "licence")  |


## How to Run

tested on python 3x

**Requirements**

- tensorflow 
- numpy
- opencv

to install requirements

```bash
 pip3 install -r requirements.txt
 ```
 
Runs the application with the default webcam.

```python
python3 id_card_detection_camera.py
```


Runs the application with the image file. Default image file "test_images/image1.jpg"

```python
python3 id_card_detection_image.py
```

## Result


![result](./static/result.png "result")  



###For Developers

* Version bump
    ```bumpversion --current-version 1.2.0 minor setup.py```
    
* Publishing to PyPi
    
    1.`python setup.py sdist`
    
    2.`twine upload dist/* --verbose`