From 017ff26feb518bfaf7f78b62c570e5ac9849ff33 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 27 Jul 2021 15:39:12 +0800 Subject: [PATCH] add psenet --- ppocr/postprocess/pse_postprocess/pse/setup.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ppocr/postprocess/pse_postprocess/pse/setup.py diff --git a/ppocr/postprocess/pse_postprocess/pse/setup.py b/ppocr/postprocess/pse_postprocess/pse/setup.py new file mode 100644 index 00000000..03746782 --- /dev/null +++ b/ppocr/postprocess/pse_postprocess/pse/setup.py @@ -0,0 +1,14 @@ +from distutils.core import setup, Extension +from Cython.Build import cythonize +import numpy + +setup(ext_modules=cythonize(Extension( + 'pse', + sources=['pse.pyx'], + language='c++', + include_dirs=[numpy.get_include()], + library_dirs=[], + libraries=[], + extra_compile_args=['-O3'], + extra_link_args=[] +))) -- GitLab