{"id":22700046,"url":"https://github.com/ub-mannheim/crass","last_synced_at":"2025-04-13T05:51:53.923Z","repository":{"id":78071447,"uuid":"92058422","full_name":"UB-Mannheim/crass","owner":"UB-Mannheim","description":"Crop And Splice Segments (of scanned pages)","archived":false,"fork":false,"pushed_at":"2019-03-11T17:40:16.000Z","size":529,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T22:36:13.702Z","etag":null,"topics":["aktienfuehrer","crop","ocr","pre-ocr","splice"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UB-Mannheim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-22T13:45:03.000Z","updated_at":"2024-03-06T15:07:13.000Z","dependencies_parsed_at":"2023-10-20T23:34:36.975Z","dependency_job_id":null,"html_url":"https://github.com/UB-Mannheim/crass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UB-Mannheim%2Fcrass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UB-Mannheim%2Fcrass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UB-Mannheim%2Fcrass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UB-Mannheim%2Fcrass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UB-Mannheim","download_url":"https://codeload.github.com/UB-Mannheim/crass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670505,"owners_count":21142901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aktienfuehrer","crop","ocr","pre-ocr","splice"],"created_at":"2024-12-10T06:09:37.868Z","updated_at":"2025-04-13T05:51:53.898Z","avatar_url":"https://github.com/UB-Mannheim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![crass logo](docs/img/crass_logo.png)  \ncrop and splice segments  \n========================  \n[![Build Status](https://travis-ci.org/UB-Mannheim/crass.svg?branch=master)](https://travis-ci.org/UB-Mannheim/crass)\n![Python 2.7](https://img.shields.io/badge/python-2.7-yellow.svg)\n![license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)\n\n\nOverview\n--------\n\n**crass** is a command line driven post-processing tool for scanned sheets of paper.\nThe main purpose is to crop segments based on separator lines and splice them afterwards\ntogether in the reading order.\n\n![example-workflow](docs/img/basic_concept.png)\n\nIt is part of the [Aktienführer-Datenarchiv work process][akf-link],\nbut can also be used independently. \n\n\nBuilding instructions\n---------------------\n\nDependencies can be installed into a Python Virtual Environment:\n\n    $ virtualenv crass_venv/  \n    $ source crass_venv/bin/activate  \n    $ pip install -r requirements.txt  \n    $ python setup.py install  \n\nAn alternative method using Conda is also possible:\n\n    $ conda create -n crass_env python=2.7  \n    $ source activate crass_env  \n    $ conda install --file requirements.txt \n    $ python setup.py install  \n\nThe third alternative is to use the [Dockerfile](Dockerfile):\n\n    $ docker build -t crass-app .\n    $ docker run -it --rm -v \"$PWD\":/usr/src/app crass-app bash\n\n\nRunning\n-------\n\nHere is an example for a page:\n\n    # perform deskewing, crop and splice of a page\n    $ python ./crass.py \"./test/testimg.jpg\" \"jpg\" \n    \n    # perform deskewing, crop and splice of a page \n    # the horziontal line is in the bottom area and is bound to the footer\n    $ python ./crass.py \"./test/testimg_bottom_skew.jpg\" \"jpg\" --horlinepos 2 --horlinetype 1\n\nThe resulting files will be saved in the `out/` subdirectory (relative to the image file(s)) in several subsubdirectories.\n\n\nFurther Information\n-------------------\n\nYou can find more information on the [basic concepts][basic-link] and the\n[image processing][img-link] in the available documentation.\n\n\nCopyright and License\n----\n\nCopyright (c) 2017 Universitätsbibliothek Mannheim\n\nAuthor: [Jan Kamlah](https://github.com/jkamlah)\n\n**crass** is Free Software. You may use it under the terms of the Apache 2.0 License.\nSee [LICENSE](./LICENSE) for details.\n\n\n[akf-link]:  https://github.com/UB-Mannheim/Aktienfuehrer-Datenarchiv-Tools\n[basic-link]: docs/basic-concepts.md\n[img-link]: docs/image-processing.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fub-mannheim%2Fcrass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fub-mannheim%2Fcrass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fub-mannheim%2Fcrass/lists"}