ocropus-archive / DUP-ocropy

Python-based tools for document analysis and OCR
Apache License 2.0
3.42k stars 591 forks source link

Unused function select_regions() in ocropus-nlbin #137

Open amitdo opened 8 years ago

amitdo commented 8 years ago

def select_regions(binary,f,min=0,nbest=100000)

Robust Binarization of Stereo and Monocular Document Images Using Percentile Filter In this paper, there is a text area detection phase (figure 2f).

zuphilip commented 7 years ago

It looks that the function select_regions is defined two times:

The second one is also used in ocropus-gpageseg, see https://github.com/tmbdev/ocropy/search?utf8=%E2%9C%93&q=select_regions .

What would you suggest to do?

amitdo commented 7 years ago

Hi Philipp!

Assuming the two select_regions are identical, you can remove the one in ocropus-nlbin.

To solve the original issue I reported, in ocropus-nlbin you should import morph and call the function somewhere.