sirfz / tesserocr

A Python wrapper for the tesseract-ocr API
MIT License
2k stars 254 forks source link

suggested improvement on api.SetRectangle input #352

Open herrxyz opened 3 months ago

herrxyz commented 3 months ago

suggestion: api method SetRectangle take tuple as alternative input

crop = (1,2,3,4) (left, top, width, height) = crop works: api.SetRectangle(left, top, width, height) breaks: api.SetRectangle(crop)

using current version 2.5.2 from conda-forge

sirfz commented 3 months ago

You can api.SetRectangle(*crop)