mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-11 05:20:49 +08:00
chore(rapidocr_openvino/paddle): Optim code
This commit is contained in:
1 parent
64da0dd455
commit
81cea705a8
30 files changed
+12
-12
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -8,9 +8,9 @@ from typing import Any, List, Optional, Tuple, Union
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
from .ch_ppocr_v2_cls import TextClassifier
|
||||
from .ch_ppocr_v3_det import TextDetector
|
||||
from .ch_ppocr_v3_rec import TextRecognizer
|
||||
from .ch_ppocr_cls import TextClassifier
|
||||
from .ch_ppocr_det import TextDetector
|
||||
from .ch_ppocr_rec import TextRecognizer
|
||||
from .utils import (
|
||||
LoadImage,
|
||||
UpdateParameters,
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -8,9 +8,9 @@ from typing import Any, List, Optional, Tuple, Union
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
from .ch_ppocr_v2_cls import TextClassifier
|
||||
from .ch_ppocr_v3_det import TextDetector
|
||||
from .ch_ppocr_v3_rec import TextRecognizer
|
||||
from .ch_ppocr_cls import TextClassifier
|
||||
from .ch_ppocr_det import TextDetector
|
||||
from .ch_ppocr_rec import TextRecognizer
|
||||
from .utils import (
|
||||
LoadImage,
|
||||
UpdateParameters,
|
||||
|
||||
@@ -194,7 +194,7 @@ def test_input_three_ndim_one_channel():
|
||||
|
||||
|
||||
def test_det():
|
||||
module_name = "ch_ppocr_v3_det"
|
||||
module_name = "ch_ppocr_det"
|
||||
class_name = "TextDetector"
|
||||
|
||||
base = BaseModule(package_name)
|
||||
@@ -212,7 +212,7 @@ def test_det():
|
||||
|
||||
|
||||
def test_cls():
|
||||
module_name = "ch_ppocr_v2_cls"
|
||||
module_name = "ch_ppocr_cls"
|
||||
class_name = "TextClassifier"
|
||||
|
||||
base = BaseModule(package_name=package_name)
|
||||
@@ -231,7 +231,7 @@ def test_cls():
|
||||
|
||||
|
||||
def test_rec():
|
||||
module_name = "ch_ppocr_v3_rec"
|
||||
module_name = "ch_ppocr_rec"
|
||||
class_name = "TextRecognizer"
|
||||
|
||||
base = BaseModule(package_name)
|
||||
|
||||
@@ -194,7 +194,7 @@ def test_input_three_ndim_one_channel():
|
||||
|
||||
|
||||
def test_det():
|
||||
module_name = "ch_ppocr_v3_det"
|
||||
module_name = "ch_ppocr_det"
|
||||
class_name = "TextDetector"
|
||||
|
||||
base = BaseModule(package_name)
|
||||
@@ -212,7 +212,7 @@ def test_det():
|
||||
|
||||
|
||||
def test_cls():
|
||||
module_name = "ch_ppocr_v2_cls"
|
||||
module_name = "ch_ppocr_cls"
|
||||
class_name = "TextClassifier"
|
||||
|
||||
base = BaseModule(package_name=package_name)
|
||||
@@ -231,7 +231,7 @@ def test_cls():
|
||||
|
||||
|
||||
def test_rec():
|
||||
module_name = "ch_ppocr_v3_rec"
|
||||
module_name = "ch_ppocr_rec"
|
||||
class_name = "TextRecognizer"
|
||||
|
||||
base = BaseModule(package_name)
|
||||
|
||||
Reference in new issue
Block a user