Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaminus committed Feb 18, 2018
1 parent 2393d86 commit c0395c8
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# saram - Image/PDF OCR conversion
Get OCR in txt form from an image or pdf extension supporting multiple files from directory using pytesseract.
Get OCR in txt form from an image or pdf extension supporting multiple files from directory using `pytesseract` with support for rotation in case of wrong orientation along.

To use (with caution), simply do::
**Currently in alpha state**

>>> import saram
>>> saram <dirname>
[![Srijana features](https://i.imgur.com/FDGpiwp.gif)](https://youtu.be/Cpj3XVdsK_g)

**Note:**
Mkae sure you have a OCR tool like `tesseract` and certain data value for comparing OCR, eg `tesseract-data-eng` along with `Pillow` and `Wand` for image conversion and loading which will be fetched during pip install

## Installation

Install using PIP:
```
$ sudo pip install pahelee
$ saram <dirname>
```
***else***

Clone the source locally:
```
$ git clone https://github.com/aryaminus/saram
$ cd saram
$ python main.py <dirname>
```

## Todo
- [x] Add support for PDF by PDF -> image -> txt with converted image deletion after processing
- [x] Double check for orientation in case of image and PDF
- [x] Make a PIP package
- [ ] Add NLP to process the most repeated frequent characters to filer content
- [ ] Add Cloud Vision support for effective character recognization

## Reference
1. <a href="https://github.com/lucab85/PDFtoTXT" target="_blank">PDFtoTXT</a>
2. <a href="https://github.com/prabhakar267/ocr-convert-image-to-text" target="_blank">ocr-convert-image-to-text</a>
3. <a href="https://pastebin.com/QFMpp28T" target="_blank">Fix-image-rotation</a>
4. <a href="https://python-packaging.readthedocs.io/en/latest/minimal.html" target="_blank">python-packaging </a>


-----------------------------------------------------------------------------------------------------------

## Contributing

1. Fork it (<https://github.com/aryaminus/saram/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

**Enjoy!**

0 comments on commit c0395c8

Please sign in to comment.