├── README.md ├── data.py ├── data_util.py ├── infer.py ├── lanms ├── .gitignore ├── .ycm_extra_conf.py ├── Makefile ├── __init__.py ├── __main__.py ├── __pycache__ │ └── __init__.cpython-36.pyc ├── adaptor.cpp ├── include │ ├── clipper │ │ ├── clipper.cpp │ │ └── clipper.hpp │ └── pybind11 │ │ ├── attr.h │ │ ├── buffer_info.h │ │ ├── cast.h │ │ ├── chrono.h │ │ ├── class_support.h │ │ ├── common.h │ │ ├── complex.h │ │ ├── descr.h │ │ ├── eigen.h │ │ ├── embed.h │ │ ├── eval.h │ │ ├── functional.h │ │ ├── numpy.h │ │ ├── operators.h │ │ ├── options.h │ │ ├── pybind11.h │ │ ├── pytypes.h │ │ ├── stl.h │ │ ├── stl_bind.h │ │ └── typeid.h └── lanms.h ├── locality_aware_nms.py ├── model.py ├── nets ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-36.pyc │ ├── resnet_utils.cpython-36.pyc │ └── resnet_v1.cpython-36.pyc ├── resnet_utils.py └── resnet_v1.py ├── perspective_trans.py ├── requirements.txt ├── sample ├── i1.jpg ├── i2.jpg ├── i3.jpg ├── r1.jpg ├── r2.jpg └── r3.jpg └── train.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/README.md -------------------------------------------------------------------------------- /data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/data.py -------------------------------------------------------------------------------- /data_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/data_util.py -------------------------------------------------------------------------------- /infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/infer.py -------------------------------------------------------------------------------- /lanms/.gitignore: -------------------------------------------------------------------------------- 1 | adaptor.so 2 | -------------------------------------------------------------------------------- /lanms/.ycm_extra_conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/.ycm_extra_conf.py -------------------------------------------------------------------------------- /lanms/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/Makefile -------------------------------------------------------------------------------- /lanms/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/__init__.py -------------------------------------------------------------------------------- /lanms/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/__main__.py -------------------------------------------------------------------------------- /lanms/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /lanms/adaptor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/adaptor.cpp -------------------------------------------------------------------------------- /lanms/include/clipper/clipper.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/clipper/clipper.cpp -------------------------------------------------------------------------------- /lanms/include/clipper/clipper.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/clipper/clipper.hpp -------------------------------------------------------------------------------- /lanms/include/pybind11/attr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/attr.h -------------------------------------------------------------------------------- /lanms/include/pybind11/buffer_info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/buffer_info.h -------------------------------------------------------------------------------- /lanms/include/pybind11/cast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/cast.h -------------------------------------------------------------------------------- /lanms/include/pybind11/chrono.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/chrono.h -------------------------------------------------------------------------------- /lanms/include/pybind11/class_support.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/class_support.h -------------------------------------------------------------------------------- /lanms/include/pybind11/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/common.h -------------------------------------------------------------------------------- /lanms/include/pybind11/complex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/complex.h -------------------------------------------------------------------------------- /lanms/include/pybind11/descr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/descr.h -------------------------------------------------------------------------------- /lanms/include/pybind11/eigen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/eigen.h -------------------------------------------------------------------------------- /lanms/include/pybind11/embed.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/embed.h -------------------------------------------------------------------------------- /lanms/include/pybind11/eval.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/eval.h -------------------------------------------------------------------------------- /lanms/include/pybind11/functional.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/functional.h -------------------------------------------------------------------------------- /lanms/include/pybind11/numpy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/numpy.h -------------------------------------------------------------------------------- /lanms/include/pybind11/operators.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/operators.h -------------------------------------------------------------------------------- /lanms/include/pybind11/options.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/options.h -------------------------------------------------------------------------------- /lanms/include/pybind11/pybind11.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/pybind11.h -------------------------------------------------------------------------------- /lanms/include/pybind11/pytypes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/pytypes.h -------------------------------------------------------------------------------- /lanms/include/pybind11/stl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/stl.h -------------------------------------------------------------------------------- /lanms/include/pybind11/stl_bind.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/stl_bind.h -------------------------------------------------------------------------------- /lanms/include/pybind11/typeid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/include/pybind11/typeid.h -------------------------------------------------------------------------------- /lanms/lanms.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/lanms/lanms.h -------------------------------------------------------------------------------- /locality_aware_nms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/locality_aware_nms.py -------------------------------------------------------------------------------- /model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/model.py -------------------------------------------------------------------------------- /nets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nets/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/nets/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /nets/__pycache__/resnet_utils.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/nets/__pycache__/resnet_utils.cpython-36.pyc -------------------------------------------------------------------------------- /nets/__pycache__/resnet_v1.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/nets/__pycache__/resnet_v1.cpython-36.pyc -------------------------------------------------------------------------------- /nets/resnet_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/nets/resnet_utils.py -------------------------------------------------------------------------------- /nets/resnet_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/nets/resnet_v1.py -------------------------------------------------------------------------------- /perspective_trans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/perspective_trans.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/requirements.txt -------------------------------------------------------------------------------- /sample/i1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/i1.jpg -------------------------------------------------------------------------------- /sample/i2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/i2.jpg -------------------------------------------------------------------------------- /sample/i3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/i3.jpg -------------------------------------------------------------------------------- /sample/r1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/r1.jpg -------------------------------------------------------------------------------- /sample/r2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/r2.jpg -------------------------------------------------------------------------------- /sample/r3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/sample/r3.jpg -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tommyMessi/DocumentPhotoCorrection/HEAD/train.py --------------------------------------------------------------------------------