diff --git a/docs/about_model/convert_model/index.html b/docs/about_model/convert_model/index.html index 5ca7ee22..f5afc075 100644 --- a/docs/about_model/convert_model/index.html +++ b/docs/about_model/convert_model/index.html @@ -318,7 +318,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1541,7 +1541,7 @@

    不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -663,7 +663,7 @@

    -

    不同版本模型之间比较

    +

    Benchmark: 不同版本模型之间比较

    @@ -1459,7 +1459,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/about_model/index.xml b/docs/about_model/index.xml index f6459759..d31ec4b8 100644 --- a/docs/about_model/index.xml +++ b/docs/about_model/index.xml @@ -8,7 +8,7 @@ en-us Tue, 22 Nov 2022 12:36:15 +0000 - 不同版本模型之间比较 + Benchmark: 不同版本模型之间比较 https://rapidai.github.io/RapidOCRDocs/docs/about_model/model_summary/ Thu, 29 Sep 2022 00:00:00 +0000 diff --git a/docs/about_model/model_summary/index.html b/docs/about_model/model_summary/index.html index 022e0da6..fc3ce7f1 100644 --- a/docs/about_model/model_summary/index.html +++ b/docs/about_model/model_summary/index.html @@ -18,7 +18,7 @@ - 不同版本模型之间比较 | RapidOCR Documentation + Benchmark: 不同版本模型之间比较 | RapidOCR Documentation @@ -32,16 +32,16 @@ - + - + - - - + + + @@ -343,7 +343,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -654,7 +654,7 @@ @@ -714,7 +714,7 @@

    - 不同版本模型之间比较 + Benchmark: 不同版本模型之间比较

    @@ -940,20 +940,20 @@

    指标说明 Exact Match (精确匹配准确率) + id="bcdafeTab" data-bs-toggle="tab" data-bs-target="#bcdafe" + type="button" role="tab" aria-controls="bcdafe" aria-selected="true">Exact Match (精确匹配准确率) Char Match (字符级准确率) + id="dfbaceTab" data-bs-toggle="tab" data-bs-target="#dfbace" + type="button" role="tab" aria-controls="dfbace" aria-selected="true">Char Match (字符级准确率) Score(两者综合) + id="bfcadeTab" data-bs-toggle="tab" data-bs-target="#bfcade" + type="button" role="tab" aria-controls="bfcade" aria-selected="true">Score(两者综合) @@ -969,7 +969,7 @@

    指标说明 +

    $$ Exact\ Match = \frac{1}{N}\sum_{i=0}^{N} s(p_{i}, g_{i}) @@ -994,7 +994,7 @@

    指标说明 +

    $$ Char\ Match = 1 - \frac{1}{N} \sum_{i=0}^{N} s(p_{i}, g_{i}) @@ -1022,7 +1022,7 @@

    指标说明 +

    $$ Score = \frac{1}{2}(Exact\ Match + Char\ Match) @@ -1052,7 +1052,7 @@

    指标说明 @@ -1859,7 +1859,7 @@

    指标说明 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -763,7 +763,7 @@

    -

    navigate_before 不同版本模型之间比较

    +

    navigate_before Benchmark: 不同版本模型之间比较

    @@ -1531,7 +1531,7 @@

    不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1686,7 +1686,7 @@

    情 { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/blog/02_config_parameter/index.html b/docs/blog/02_config_parameter/index.html index bd6b1ec5..9fd56395 100644 --- a/docs/blog/02_config_parameter/index.html +++ b/docs/blog/02_config_parameter/index.html @@ -318,7 +318,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1822,7 +1822,7 @@

    Rec部分 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1524,7 +1524,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/blog/04_inference_summary/index.html b/docs/blog/04_inference_summary/index.html index 2df2f84c..8623b166 100644 --- a/docs/blog/04_inference_summary/index.html +++ b/docs/blog/04_inference_summary/index.html @@ -320,7 +320,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1592,7 +1592,7 @@

    不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1621,7 +1621,7 @@

    获取字典内容 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1604,7 +1604,7 @@

    3. 使用该模型 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1510,7 +1510,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/business_support/index.html b/docs/business_support/index.html index 6465f0a6..bd7b3f34 100644 --- a/docs/business_support/index.html +++ b/docs/business_support/index.html @@ -318,7 +318,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1531,7 +1531,7 @@

    服务三:国产操作系 { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/changelog/index.html b/docs/changelog/index.html index 81351c2c..2b07dd22 100644 --- a/docs/changelog/index.html +++ b/docs/changelog/index.html @@ -316,7 +316,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1476,7 +1476,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/changelog/rapidocr/index.html b/docs/changelog/rapidocr/index.html index 2c6b8f01..c3b91026 100644 --- a/docs/changelog/rapidocr/index.html +++ b/docs/changelog/rapidocr/index.html @@ -326,7 +326,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1835,7 +1835,7 @@

    2021-03-24 udpate: 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1527,7 +1527,7 @@

    🍜2023-05-22 api update: 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1563,7 +1563,7 @@

    2023-10-23 v1.3.9 update: 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1546,7 +1546,7 @@

    🏸2023-04-16 ocrweb v0.1.1 update: 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1536,7 +1536,7 @@

    (推荐) 加入QQ频道 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1584,7 +1584,7 @@

    Q: 边缘总有一行 { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/index.html b/docs/index.html index f4327f00..a236f437 100644 --- a/docs/index.html +++ b/docs/index.html @@ -316,7 +316,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1638,7 +1638,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/inference_engine/index.html b/docs/inference_engine/index.html index a7bf9987..c1ecd6bf 100644 --- a/docs/inference_engine/index.html +++ b/docs/inference_engine/index.html @@ -316,7 +316,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1442,7 +1442,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/inference_engine/onnxruntime/index.html b/docs/inference_engine/onnxruntime/index.html index af4864c1..e075a652 100644 --- a/docs/inference_engine/onnxruntime/index.html +++ b/docs/inference_engine/onnxruntime/index.html @@ -316,7 +316,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1450,7 +1450,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/inference_engine/onnxruntime/infer_optim/index.html b/docs/inference_engine/onnxruntime/infer_optim/index.html index 22956c9b..359e2306 100644 --- a/docs/inference_engine/onnxruntime/infer_optim/index.html +++ b/docs/inference_engine/onnxruntime/infer_optim/index.html @@ -326,7 +326,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1867,7 +1867,7 @@

    参考资料 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1591,7 +1591,7 @@

    相关对比表格 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1450,7 +1450,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/inference_engine/openvino/infer-gpu/index.html b/docs/inference_engine/openvino/infer-gpu/index.html index cfd2a3f9..e8550e6f 100644 --- a/docs/inference_engine/openvino/infer-gpu/index.html +++ b/docs/inference_engine/openvino/infer-gpu/index.html @@ -318,7 +318,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -745,7 +745,7 @@

    -

    不同版本模型之间比较 navigate_next

    +

    Benchmark: 不同版本模型之间比较 navigate_next

    @@ -1502,7 +1502,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/inference_engine/openvino/infer/index.html b/docs/inference_engine/openvino/infer/index.html index 4a43effe..70f8c36b 100644 --- a/docs/inference_engine/openvino/infer/index.html +++ b/docs/inference_engine/openvino/infer/index.html @@ -326,7 +326,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1754,7 +1754,7 @@

    OpenVINO与ONNXRuntime { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/install_usage/index.html b/docs/install_usage/index.html index 81e110a3..0c3e9fa7 100644 --- a/docs/install_usage/index.html +++ b/docs/install_usage/index.html @@ -316,7 +316,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1476,7 +1476,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/install_usage/rapidocr/cli/index.html b/docs/install_usage/rapidocr/cli/index.html index dbd2b218..798095c6 100644 --- a/docs/install_usage/rapidocr/cli/index.html +++ b/docs/install_usage/rapidocr/cli/index.html @@ -320,7 +320,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -813,26 +813,26 @@

    使用示例 图像预测 + id="cfabdeTab" data-bs-toggle="tab" data-bs-target="#cfabde" + type="button" role="tab" aria-controls="cfabde" aria-selected="true">图像预测 只使用检测 + id="dbeacfTab" data-bs-toggle="tab" data-bs-target="#dbeacf" + type="button" role="tab" aria-controls="dbeacf" aria-selected="true">只使用检测 只使用识别 + id="aebfcdTab" data-bs-toggle="tab" data-bs-target="#aebfcd" + type="button" role="tab" aria-controls="aebfcd" aria-selected="true">只使用识别 可视化查看 + id="cdeabfTab" data-bs-toggle="tab" data-bs-target="#cdeabf" + type="button" role="tab" aria-controls="cdeabf" aria-selected="true">可视化查看 @@ -848,7 +848,7 @@

    使用示例 +
    @@ -881,7 +881,7 @@

    使用示例 +
    @@ -914,7 +914,7 @@

    使用示例 +
    @@ -947,7 +947,7 @@

    使用示例 +
    @@ -1803,7 +1803,7 @@

    使用示例 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1468,7 +1468,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/install_usage/rapidocr/install/index.html b/docs/install_usage/rapidocr/install/index.html index 2c086efc..f7e2fc09 100644 --- a/docs/install_usage/rapidocr/install/index.html +++ b/docs/install_usage/rapidocr/install/index.html @@ -336,7 +336,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1703,7 +1703,7 @@

    安装 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -860,32 +860,32 @@

    输入 str + id="bfcaedTab" data-bs-toggle="tab" data-bs-target="#bfcaed" + type="button" role="tab" aria-controls="bfcaed" aria-selected="true">str np.ndarray + id="fdecabTab" data-bs-toggle="tab" data-bs-target="#fdecab" + type="button" role="tab" aria-controls="fdecab" aria-selected="true">np.ndarray PIL.Image.Image + id="dcbefaTab" data-bs-toggle="tab" data-bs-target="#dcbefa" + type="button" role="tab" aria-controls="dcbefa" aria-selected="true">PIL.Image.Image Bytes + id="bdafecTab" data-bs-toggle="tab" data-bs-target="#bdafec" + type="button" role="tab" aria-controls="bdafec" aria-selected="true">Bytes Path + id="bcfdeaTab" data-bs-toggle="tab" data-bs-target="#bcfdea" + type="button" role="tab" aria-controls="bcfdea" aria-selected="true">Path @@ -901,7 +901,7 @@

    输入 +
    @@ -941,7 +941,7 @@

    输入 +
    @@ -981,7 +981,7 @@

    输入 +
    @@ -1021,7 +1021,7 @@

    输入 +
    @@ -1063,7 +1063,7 @@

    输入 +
    @@ -1115,38 +1115,38 @@

    输出 只有检测 + id="dfaebcTab" data-bs-toggle="tab" data-bs-target="#dfaebc" + type="button" role="tab" aria-controls="dfaebc" aria-selected="true">只有检测 只有分类 + id="fcbeadTab" data-bs-toggle="tab" data-bs-target="#fcbead" + type="button" role="tab" aria-controls="fcbead" aria-selected="true">只有分类 只有识别 + id="edbcafTab" data-bs-toggle="tab" data-bs-target="#edbcaf" + type="button" role="tab" aria-controls="edbcaf" aria-selected="true">只有识别 检测 + 识别 + id="bfadecTab" data-bs-toggle="tab" data-bs-target="#bfadec" + type="button" role="tab" aria-controls="bfadec" aria-selected="true">检测 + 识别 分类 + 识别 + id="acedbfTab" data-bs-toggle="tab" data-bs-target="#acedbf" + type="button" role="tab" aria-controls="acedbf" aria-selected="true">分类 + 识别 检测 + 分类 + 识别 + id="abcfedTab" data-bs-toggle="tab" data-bs-target="#abcfed" + type="button" role="tab" aria-controls="abcfed" aria-selected="true">检测 + 分类 + 识别 @@ -1162,7 +1162,7 @@

    输出 +
    @@ -1226,7 +1226,7 @@

    输出 +
    @@ -1289,7 +1289,7 @@

    输出 +
    @@ -1355,7 +1355,7 @@

    输出 +
    @@ -1422,7 +1422,7 @@

    输出 +
    @@ -1488,7 +1488,7 @@

    输出 +
    @@ -1578,14 +1578,14 @@

    可视化查看结果 只可视化检测 + id="ecbadfTab" data-bs-toggle="tab" data-bs-target="#ecbadf" + type="button" role="tab" aria-controls="ecbadf" aria-selected="true">只可视化检测 可视化检测和识别 + id="abcefdTab" data-bs-toggle="tab" data-bs-target="#abcefd" + type="button" role="tab" aria-controls="abcefd" aria-selected="true">可视化检测和识别 @@ -1601,7 +1601,7 @@

    可视化查看结果 +
    @@ -1647,7 +1647,7 @@

    可视化查看结果 +
    @@ -2518,7 +2518,7 @@

    可视化查看结果 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -838,14 +838,14 @@

    Python调用 以文件方式发送POST请求 + id="cbedafTab" data-bs-toggle="tab" data-bs-target="#cbedaf" + type="button" role="tab" aria-controls="cbedaf" aria-selected="true">以文件方式发送POST请求 以base64方式发送POST请求 + id="abdecfTab" data-bs-toggle="tab" data-bs-target="#abdecf" + type="button" role="tab" aria-controls="abdecf" aria-selected="true">以base64方式发送POST请求 @@ -861,7 +861,7 @@

    Python调用 +
    @@ -903,7 +903,7 @@

    Python调用 +
    @@ -1888,7 +1888,7 @@

    API输出 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -788,14 +788,14 @@

    使用 CPU端推理 + id="feacdbTab" data-bs-toggle="tab" data-bs-target="#feacdb" + type="button" role="tab" aria-controls="feacdb" aria-selected="true">CPU端推理 GPU端推理 + id="efbdacTab" data-bs-toggle="tab" data-bs-target="#efbdac" + type="button" role="tab" aria-controls="efbdac" aria-selected="true">GPU端推理 @@ -811,7 +811,7 @@

    使用 +

    前提是安装了CPU版的PaddlePaddle

    @@ -854,7 +854,7 @@

    使用 +

    前提是安装了GPU版的PaddlePaddle,注意在实例化RapidOCR类时,需要通过参数显式指定使用GPU。

    @@ -1753,7 +1753,7 @@

    推理速度比较 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1725,7 +1725,7 @@

    使用步骤 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1501,7 +1501,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/install_usage/rapidocr_web/nuitka_package/index.html b/docs/install_usage/rapidocr_web/nuitka_package/index.html index 4d1c6b02..da1d3883 100644 --- a/docs/install_usage/rapidocr_web/nuitka_package/index.html +++ b/docs/install_usage/rapidocr_web/nuitka_package/index.html @@ -332,7 +332,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1741,7 +1741,7 @@

    补充 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1696,7 +1696,7 @@

    运行步骤 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1499,7 +1499,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/install_usage/rapidocr_web/rapidocr_web/index.html b/docs/install_usage/rapidocr_web/rapidocr_web/index.html index e85c63b4..bb1c2d67 100644 --- a/docs/install_usage/rapidocr_web/rapidocr_web/index.html +++ b/docs/install_usage/rapidocr_web/rapidocr_web/index.html @@ -328,7 +328,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1641,7 +1641,7 @@

    使用 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1545,7 +1545,7 @@

    在线Demo 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1541,7 +1541,7 @@

    不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1580,7 +1580,7 @@

    相关产品概览图 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -719,14 +719,14 @@

    2. 使用 终端使用 + id="bdacefTab" data-bs-toggle="tab" data-bs-target="#bdacef" + type="button" role="tab" aria-controls="bdacef" aria-selected="true">终端使用 Python使用 + id="cefbdaTab" data-bs-toggle="tab" data-bs-target="#cefbda" + type="button" role="tab" aria-controls="cefbda" aria-selected="true">Python使用 @@ -742,7 +742,7 @@

    2. 使用 +
    @@ -775,7 +775,7 @@

    2. 使用 +
    @@ -1677,7 +1677,7 @@

    3. 查看效果 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1537,7 +1537,7 @@

    不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1442,7 +1442,7 @@

    { id: 27 , href: "\/RapidOCRDocs\/docs\/about_model\/model_summary\/", - title: "不同版本模型之间比较", + title: "Benchmark: 不同版本模型之间比较", description: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.", content: "各个版本ONNX模型效果对比(仅供参考) link notifications 以下测试结果均在自己构建测试集上评测所得,不代表在其他测试集上结果也是如此。 文本检测模型 link notifications 以下表格中推理时间是基于MacBook Pro M2运行所得,不同机器会有差别,请侧重查看彼此之间的比较。 评测采用的是TextDetMetric库 + text_det_test_dataset,详情可以移步AI Studio运行查看。\n指标计算都是在相同参数下计算得来,差别仅在于模型文件不同。对应模型下载地址:link。\n模型 模型大小 Precision Recall H-mean Speed(s/img) ch_PP-OCRv4_det_infer.onnx 4.5M 0.8300 0.8659 0.8476 0.2256 ch_PP-OCRv3_det_infer.onnx 2.3M 0.8021 0.8457 0.8234 0.1660 ch_PP-OCRv2_det_infer.onnx 2.2M 0.7579 0.8010 0.7788 0.1570 ch_PP-OCRv4_det_server_infer.onnx 108M 0.7922 0.8533 0.8216 3.9093 ch_ppocr_server_v2.0_det_infer.onnx 47M 0.7298 0.8128 0.7691 0.7419 damo/cv_proxylessnas_ocr-detection-db-line-level_damo 5.8M 0.7666 0.8128 0.7890 0.6636 damo/cv_resnet18_ocr-detection-db-line-level_damo 47.2M 0.7749 0.8167 0.7952 0.4121 damo/cv_resnet18_ocr-detection-line-level_damo 未跑通 312M - - - - 文本识别模型 link 测试集: 自己构建中英文(168个) 输入Shape: v2: [3, 32, 320] v3~v4: [3, 48, 320] 模型 对应PaddleOCR分支 模型大小 Exact Match Char Match Score Speed(s/img) ch_PP-OCRv4_rec_infer.onnx release/v2.7 10M 0.5655 0.9261 0.7458 0.0218 ch_PP-OCRv4_rec_server_infer.onnx release/v2.7 86M 0.6310 0.9382 0.7846 0.1622 ch_PP-OCRv3_rec_infer.onnx release/v2.6 10M 0.5893 0.9209 0.7551 0.0183 ch_PP-OCRv2_rec_infer.onnx release/v2.3 8.0M 0.4881 0.9029 0.6955 0.0193 ch_ppocr_mobile_v2.0_rec_infer.onnx release/v2.0 4.3M 0.5595 0.8979 0.7287 0.0045 指标说明 link Exact Match (精确匹配准确率) Char Match (字符级准确率) Score(两者综合) $$ Exact\\ Match = \\frac{1}{N}\\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = \\begin{cases} 1 \u0026 \\text{if } p_{i} = g_{i} \\ 0 \u0026 \\text{otherwise } \\end{cases} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $$ Char\\ Match = 1 - \\frac{1}{N} \\sum_{i=0}^{N} s(p_{i}, g_{i}) $$\n$$ s(p_{i}, g_{i}) = 1 - NL(p_{i}, g_{i}) $$\n$$ NL(p_{i}, g_{i}) = \\frac{Levenshtein(p_{i}, g_{i})}{\\max \\big(len(p_{i}), len(g_{i}) \\big)} $$\n$N$: 总的文本行个数 $p_{i}$: 第 $i$ 条文本行识别结果 $g_{i}$: 第 $i$ 条文本行对应的真实标签 $Levenshtein(x, y)$: 求字符串 $x$ 和字符串 $y$ 的编辑距离 $max(x, y)$: 求 $x$ 和 $y$ 的最大值 $len(x)$: 求所给字符串 $x$ 的长度 $$ Score = \\frac{1}{2}(Exact\\ Match + Char\\ Match) $$\n" } diff --git a/docs/related_projects/related_projects/index.html b/docs/related_projects/related_projects/index.html index bc78c560..35406714 100644 --- a/docs/related_projects/related_projects/index.html +++ b/docs/related_projects/related_projects/index.html @@ -334,7 +334,7 @@ -
  • 不同版本模型之间比较
  • +
  • Benchmark: 不同版本模型之间比较
  • @@ -1689,7 +1689,7 @@

    印章OCR 不同版本模型之间比较 +
  • Benchmark: 不同版本模型之间比较
  • @@ -1540,7 +1540,7 @@

    Buy me a Coffee - 不同版本模型之间比较 + Benchmark: 不同版本模型之间比较 https://rapidai.github.io/RapidOCRDocs/docs/about_model/model_summary/ Thu, 29 Sep 2022 00:00:00 +0000 diff --git a/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_18385201140982992681.png b/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_18385201140982992681.png new file mode 100644 index 00000000..b6b63836 Binary files /dev/null and b/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_18385201140982992681.png differ diff --git a/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_7835501747438213800.png b/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_7835501747438213800.png deleted file mode 100644 index 2afbff80..00000000 Binary files a/opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_7835501747438213800.png and /dev/null differ diff --git a/sitemap.xml b/sitemap.xml index 243eaaad..620d9b58 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -84,7 +84,7 @@ 2023-09-28T08:38:57+08:00 https://rapidai.github.io/RapidOCRDocs/docs/about_model/model_summary/ - 2024-04-09T15:18:34+08:00 + 2024-04-09T15:22:41+08:00 https://rapidai.github.io/RapidOCRDocs/docs/about_model/support_language/ 2023-09-28T08:38:57+08:00 @@ -147,7 +147,7 @@ 2024-03-04T15:21:12+08:00 https://rapidai.github.io/RapidOCRDocs/ - 2024-04-09T15:18:34+08:00 + 2024-04-09T15:22:41+08:00 https://rapidai.github.io/RapidOCRDocs/categories/