virantha / pypdfocr

Python script to do PDF OCR conversion using Tesseract
Apache License 2.0
372 stars 114 forks source link

Resolves ValueError for string representations of floats. #79

Open dynamicwebpaige opened 6 years ago

dynamicwebpaige commented 6 years ago

The following are totally acceptable in python:

But you get a ValueError if you pass a string representation of a float into int, or a string representation of anything but an integer (including empty string).