OTR icon indicating copy to clipboard operation
OTR copied to clipboard

Error when loading image

Open maryjis opened this issue 7 years ago • 2 comments

I run module python test-otr.py 0110_099.png and get this error

Traceback (most recent call last): File "C:/Users/User/Documents/проект по иммунологии/OTR/test-otr.py", line 56, in img = runOTR("0110_099.png") File "C:/Users/User/Documents/проект по иммунологии/OTR/test-otr.py", line 27, in runOTR contour_analyzer.find_corner_clusters() File "C:\Users\User\Documents\проект по иммунологии\OTR\TableRecognition.py", line 293, in find_corner_clusters distmat = scipy.spatial.distance.cdist(corners, corners, 'euclidean') File "C:\Users\User\Anaconda3\lib\site-packages\scipy\spatial\distance.py", line 2369, in cdist raise ValueError('XA must be a 2-dimensional array.') ValueError: XA must be a 2-dimensional array.

maryjis avatar Dec 18 '18 14:12 maryjis

Thanks for reporting this - I'll take a closer look later this week when I'm back from a business trip. Any chance you could share 0110_099.png so I could test with your data?

ulikoehler avatar Dec 18 '18 18:12 ulikoehler

Sorry for the delay. I had a look at the issue and with this random test image from the internet, it worked fine for me. Can you share the file you used, or any similar file?

С Новым Годом 2019!

PS: Great to hear that you are using OTR for immunology projects since those are related to bioinformatics. I studied bioinformaticcs as well.

ulikoehler avatar Dec 31 '18 22:12 ulikoehler