diff --git a/modules/image/text_recognition/ch_pp-ocrv3/README.md b/modules/image/text_recognition/ch_pp-ocrv3/README.md old mode 100644 new mode 100755 index 0bf8f21566d1b436cc90485d38b4b4715018beca..ac3812a7de1bba023f2f4add816bc7b3adde3eea --- a/modules/image/text_recognition/ch_pp-ocrv3/README.md +++ b/modules/image/text_recognition/ch_pp-ocrv3/README.md @@ -35,18 +35,9 @@ - ### 1、环境依赖 - - paddlepaddle >= 1.7.2 + - paddlepaddle >= 2.2 - - paddlehub >= 1.6.0 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) - - - shapely - - - pyclipper - - - ```shell - $ pip install shapely pyclipper - ``` - - **该Module依赖于第三方库shapely和pyclipper,使用该Module之前,请先安装shapely和pyclipper。** + - paddlehub >= 2.2 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) - ### 2、安装 diff --git a/modules/image/text_recognition/ch_pp-ocrv3/character.py b/modules/image/text_recognition/ch_pp-ocrv3/character.py index 571f8f999b5bbb61db88e96237705047773b8ec7..eaa45a581306e4760e90c81f30b94d810796f8eb 100644 --- a/modules/image/text_recognition/ch_pp-ocrv3/character.py +++ b/modules/image/text_recognition/ch_pp-ocrv3/character.py @@ -1,4 +1,4 @@ -# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/modules/image/text_recognition/ch_pp-ocrv3/module.py b/modules/image/text_recognition/ch_pp-ocrv3/module.py index 402ac8a28cb93586f64e1d4b5a884d15e8b3c2df..133f8d78550ef0045d1978a0e63fce0bf697ec83 100644 --- a/modules/image/text_recognition/ch_pp-ocrv3/module.py +++ b/modules/image/text_recognition/ch_pp-ocrv3/module.py @@ -1,4 +1,17 @@ # -*- coding:utf-8 -*- +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import argparse import ast import copy diff --git a/modules/image/text_recognition/ch_pp-ocrv3/requirements.txt b/modules/image/text_recognition/ch_pp-ocrv3/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..7159e62c0b7cbe93e28406dd40e5b030e904a2a2 --- /dev/null +++ b/modules/image/text_recognition/ch_pp-ocrv3/requirements.txt @@ -0,0 +1,2 @@ +shapely +pyclipper diff --git a/modules/image/text_recognition/ch_pp-ocrv3/utils.py b/modules/image/text_recognition/ch_pp-ocrv3/utils.py index 18aa6ceec21260377c8a463a7ee78a00d5c0e3b2..d6309f2f53c934561cd54dffc0d2d7573745e6c1 100644 --- a/modules/image/text_recognition/ch_pp-ocrv3/utils.py +++ b/modules/image/text_recognition/ch_pp-ocrv3/utils.py @@ -1,4 +1,17 @@ # -*- coding:utf-8 -*- +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/modules/image/text_recognition/ch_pp-ocrv3_det/README.md b/modules/image/text_recognition/ch_pp-ocrv3_det/README.md old mode 100644 new mode 100755 index a974bdd989d4ac9db6919ee8f3403e3c6846ae80..d1bf63bfb17a62bf65a323c482e15e4a5656f48c --- a/modules/image/text_recognition/ch_pp-ocrv3_det/README.md +++ b/modules/image/text_recognition/ch_pp-ocrv3_det/README.md @@ -35,18 +35,9 @@ - ### 1、环境依赖 - - paddlepaddle >= 1.7.2 + - paddlepaddle >= 2.2 - - paddlehub >= 1.6.0 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) - - - shapely - - - pyclipper - - - ```shell - $ pip install shapely pyclipper - ``` - - **该Module依赖于第三方库shapely和pyclipper,使用该Module之前,请先安装shapely和pyclipper。** + - paddlehub >= 2.2 | [如何安装paddlehub](../../../../docs/docs_ch/get_start/installation.rst) - ### 2、安装 diff --git a/modules/image/text_recognition/ch_pp-ocrv3_det/module.py b/modules/image/text_recognition/ch_pp-ocrv3_det/module.py index 679681530118fc97e429c601b86a2c9416583a3f..52d50a60e08a93e33d1c4927fdfaf7a2fa721c78 100644 --- a/modules/image/text_recognition/ch_pp-ocrv3_det/module.py +++ b/modules/image/text_recognition/ch_pp-ocrv3_det/module.py @@ -1,4 +1,17 @@ # -*- coding:utf-8 -*- +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/modules/image/text_recognition/ch_pp-ocrv3_det/processor.py b/modules/image/text_recognition/ch_pp-ocrv3_det/processor.py index 2de682548a687d823686f96dfd62d9d353929ed2..46a3b263879e992bff1f23bd3df5ff36467ca993 100644 --- a/modules/image/text_recognition/ch_pp-ocrv3_det/processor.py +++ b/modules/image/text_recognition/ch_pp-ocrv3_det/processor.py @@ -1,4 +1,17 @@ # -*- coding:utf-8 -*- +# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/modules/image/text_recognition/ch_pp-ocrv3_det/requirements.txt b/modules/image/text_recognition/ch_pp-ocrv3_det/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..7159e62c0b7cbe93e28406dd40e5b030e904a2a2 --- /dev/null +++ b/modules/image/text_recognition/ch_pp-ocrv3_det/requirements.txt @@ -0,0 +1,2 @@ +shapely +pyclipper