xavctn / img2table

img2table is a table identification and extraction Python Library for PDF and images, based on OpenCV image processing
MIT License
577 stars 76 forks source link

open cv attribute error #183

Open MadimetjaBethuel opened 7 months ago

MadimetjaBethuel commented 7 months ago

when running the extract table function cv2 throw an attibute error:

i am running the latest of the open-cv library.


AttributeError: module 'cv2.ximgproc' has no attribute 'niBlackThreshold'
massidi commented 6 months ago

i got the same error did you fine a solution

ujjwalm29 commented 4 months ago

Getting the same error. Anybody with a solution ?

BapfelX commented 4 months ago

Same error

Onyoursix commented 4 months ago

Also getting this error, anyone have an update?

CharlesMingus19 commented 3 months ago

Hey fellas, I got the solution:

You need to uninstall all opencv packages you have installed and install opencv-contrib-python-headless

GoGordini commented 3 months ago

It worked! Thanks CharlesMingus19!