Skip to content

wrznr/column-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

column-detect

Simple approach to column detection in (book) pages

Setup

  1. Clone the repository.
  2. Install python3.
  3. Install dependencies. (Using virtualenv is recommended.)
$ virtualenv -p python3 env
$ . env/bin/activate
(env) $ pip install -r requirements.txt

Invocation

Running

(env) $ python column_detect.py --help

gives an overview on mandatory and optional parameters.

Running

(env) $ python column_detect.py -o test.json -O json test/test.bin.png

should create a file test.json which contains a list of corrdinates representing the detected column areas.

{
    "test.bin.png": [
        {
            "l": 0,
            "t": 0,
            "r": 1255,
            "b": 4274
        },
        {
            "l": 1225,
            "t": 0,
            "r": 2280,
            "b": 4274
        },
        {
            "l": 2251,
            "t": 0,
            "r": 3365,
            "b": 4274
        }
    ]
}

About

Simple approach to column detection in (book) pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages