Metadata-Version: 2.1
Name: detecty
Version: 0.0.31
Summary: 
Author: Gilad Kutiel
Author-email: gilad.kutiel@gmail.com
Requires-Python: ==3.10.*
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: fire (>=0.5.0,<0.6.0)
Requires-Dist: pillow (>=10.1.0,<11.0.0)
Description-Content-Type: text/markdown

# Detecty
A Mobilenet based single car plate detection model.

## Installation
Currently detecty is intended to use on CPU machine (GPU support is coming soon).
To install detecty on a CPU run:

```
pip3 install detecty
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
```

## Usage
### Command line
If you have a car image named `car.jpg`

![](https://i.imgur.com/qrHvGmj.jpg)

You can run `detecty car.jpg` and get the plate in `plate.jpg`

![](https://i.imgur.com/C6gnTim.jpg)

### Python
```python
from PIL import Image
from detecty.model import Detection

img = Image.open('car.jpg')
model = Detection()
res = model(img)
res.plate.save('plate.jpg')
```

