From 868a593693b621c984af3f45086b9306296441d7 Mon Sep 17 00:00:00 2001 From: "dian.yuan" Date: Wed, 25 Feb 2026 17:24:09 +0800 Subject: [PATCH] fix: correct garbled characters in C++ comments and standardize punctuation in documentation. --- docs/Platform_compile_guide.md | 4 ++-- examples/ppocr-det/cpp/src/clipper.cpp | 7 ++++--- examples/yolov8/README.md | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/Platform_compile_guide.md b/docs/Platform_compile_guide.md index 41433c4..e289aba 100755 --- a/docs/Platform_compile_guide.md +++ b/docs/Platform_compile_guide.md @@ -1,6 +1,6 @@ -# 1、Android Platform +# 1. Android Platform ​ **Android compilation** depends on the NDK toolchain. Currently, version r25c is recommended. Download link: https://github.com/android/ndk/wiki/Unsupported-Downloads @@ -34,7 +34,7 @@ -# 2、Linux Platform +# 2. Linux Platform **Linux compilation** toolchain dependency: **gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf**, download link: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads/ diff --git a/examples/ppocr-det/cpp/src/clipper.cpp b/examples/ppocr-det/cpp/src/clipper.cpp index d35b8a4..87ab7de 100755 --- a/examples/ppocr-det/cpp/src/clipper.cpp +++ b/examples/ppocr-det/cpp/src/clipper.cpp @@ -4109,9 +4109,10 @@ inline double DistanceSqrd(const IntPoint &pt1, const IntPoint &pt2) { double DistanceFromLineSqrd(const IntPoint &pt, const IntPoint &ln1, const IntPoint &ln2) { // The equation of a line in general form (Ax + By + C = 0) - // given 2 points (x锟?y锟? & (x锟?y锟? is ... - //(y锟?- y锟?x + (x锟?- x锟?y + (y锟?- y锟?x锟?- (x锟?- x锟?y锟?= 0 - // A = (y锟?- y锟?; B = (x锟?- x锟?; C = (y锟?- y锟?x锟?- (x锟?- x锟?y锟? // perpendicular distance of point (x锟?y锟? = (Ax锟?+ By锟?+ C)/Sqrt(A锟?+ B锟? + // given 2 points (x1,y1) & (x2,y2) is ... + //(y1 - y2)x + (x2 - x1)y + (y1 - y2)x2 - (x2 - x1)y2 = 0 + // A = (y1 - y2); B = (x2 - x1); C = (y1 - y2)x2 - (x2 - x1)y2 + // perpendicular distance of point (x0,y0) = (Ax0 + By0 + C)/Sqrt(A^2 + B^2) // see http://en.wikipedia.org/wiki/Perpendicular_distance double A = double(ln1.Y - ln2.Y); double B = double(ln2.X - ln1.X); diff --git a/examples/yolov8/README.md b/examples/yolov8/README.md index c4f0d08..3aecc48 100644 --- a/examples/yolov8/README.md +++ b/examples/yolov8/README.md @@ -60,7 +60,7 @@ example | ----------------- | ------------------------------------------------------------ | | model_path | onnx model path | | adla_tookkit_path | path to adla_toolkit | -| target_platform | Specify target platform. for A311D2 : PRODUCT_PID0XA003。for S905X5: PRODUCT_PID0XA005 | +| target_platform | Specify target platform. for A311D2 : PRODUCT_PID0XA003. for S905X5: PRODUCT_PID0XA005 |