Giter VIP home page Giter VIP logo

unproject_text's People

Contributors

mzucker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

unproject_text's Issues

Error with the usage command

m-c02sh1f0g8wl:unproject_text-master arg000m$ python unproject_text.py deskew0.jpg
Traceback (most recent call last):
File "unproject_text.py", line 503, in
main()
File "unproject_text.py", line 490, in main
contours, hierarchy = get_contours(img)
File "unproject_text.py", line 135, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: need more than 2 values to unpack

could you help me with this ?

Value Error: not enough values to unpack

Python 3 / OSX

$ python3 unproject_text/unproject_text.py samples/hd/IMG_1234.jpg
Traceback (most recent call last):
File "unproject_text/unproject_text.py", line 503, in
main()
File "unproject_text/unproject_text.py", line 490, in main
contours, hierarchy = get_contours(img)
File "unproject_text/unproject_text.py", line 135, in get_contours
cv2.CHAIN_APPROX_NONE)
ValueError: not enough values to unpack (expected 3, got 2)

"ValueError: Not a bracketing interval." on some images

Tried to run the program on some images, for some it worked, but on many I get this error:

python3 unproject_text.py lp8.png

abs_area_cutoff = 18.7572
got 6 contours with 1 small.
got bounding rect -281 163 583 58
got bounding rect -305 186 586 12
got bounding rect 263 197 3 1
Traceback (most recent call last):
File "unproject_text.py", line 503, in
main()
File "unproject_text.py", line 495, in main
SRH = skew_detect(img, contours, RH)
File "unproject_text.py", line 468, in skew_detect
res = scipy.optimize.minimize_scalar(f, (-2.0, 0.0, 2.0))
File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_minimize.py", line 653, in minimize_scalar
return _minimize_scalar_brent(fun, bracket, args, **options)
File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 2108, in _minimize_scalar_brent
brent.optimize()
File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 1892, in optimize
xa, xb, xc, fa, fb, fc, funcalls = self.get_bracket_info()
File "/usr/local/lib/python3.6/site-packages/scipy/optimize/optimize.py", line 1880, in get_bracket_info
raise ValueError("Not a bracketing interval.")
ValueError: Not a bracketing interval.

The image I tried was:
https://liorazi.github.io/lp8.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.