A small app providing a tesseract field for django
Project description
[![PyPI version](https://badge.fury.io/py/django-tesseractfield.svg)](https://badge.fury.io/py/django-tesseractfield)
# django-tesseractfield
This module fills the need of having a **tesseractfield** that's usable in both
django models and forms.
![django-tesseractfield](https://www.useloom.com/share/bc991388a02047a7ae2f9796f23a719f)
Makes use of [tesseract](https://opensource.google.com/projects/tesseract).
## Installation
- Run ``pip install django-tesseractfield``
- Add ``tesseractfield`` to your ``INSTALLED_APPS``
- Collect static files with ``./manage.py collectstatic``
## Usage
To activate tesseract transcription on your Django site, add this line to your URLconf:
```python
path('', include('tesseractfield.urls')),
```
In your models, you can use it like this:
```python
from django.db import models
from tesseractfield.fields import TesseractField
class MyModel(model.Model):
content = TesseractField()
```
In your foms, you can use it like this:
```python
from django import forms
from tesseractfield.fields import TesseractWidget
class MyForm(forms.Form):
content = forms.Textarea()
class Meta:
widgets = {
'content': TesseractWidget(),
}
```
## Maintainers
- [@duboisR](https://github.com/duboisR)
## Articles
- [Django Tesseract OCR](https://medium.com/@duboisr/django-et-tesseract-188d389ad4ba)
# django-tesseractfield
This module fills the need of having a **tesseractfield** that's usable in both
django models and forms.
![django-tesseractfield](https://www.useloom.com/share/bc991388a02047a7ae2f9796f23a719f)
Makes use of [tesseract](https://opensource.google.com/projects/tesseract).
## Installation
- Run ``pip install django-tesseractfield``
- Add ``tesseractfield`` to your ``INSTALLED_APPS``
- Collect static files with ``./manage.py collectstatic``
## Usage
To activate tesseract transcription on your Django site, add this line to your URLconf:
```python
path('', include('tesseractfield.urls')),
```
In your models, you can use it like this:
```python
from django.db import models
from tesseractfield.fields import TesseractField
class MyModel(model.Model):
content = TesseractField()
```
In your foms, you can use it like this:
```python
from django import forms
from tesseractfield.fields import TesseractWidget
class MyForm(forms.Form):
content = forms.Textarea()
class Meta:
widgets = {
'content': TesseractWidget(),
}
```
## Maintainers
- [@duboisR](https://github.com/duboisR)
## Articles
- [Django Tesseract OCR](https://medium.com/@duboisr/django-et-tesseract-188d389ad4ba)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-tesseractfield-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9beb9137c1aa5c36f75f03953bfaa2d3075aca1d10bfd7e3e1376760262fd65f |
|
MD5 | d3cec7cea2afa6aa4c5ad9e2a725fee8 |
|
BLAKE2b-256 | a2cc06342eca705162a5a3689e682b8baed7de9e21c64c3337944675f3e3c293 |