Clean Chinese/garbled characters in docs and comments

This commit is contained in:
yuan dian 2026-02-28 16:16:31 +08:00
parent bd891a96dd
commit 8e241688d0
3 changed files with 86 additions and 84 deletions

View file

@ -1,6 +1,6 @@
# 1Android 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 @@
# 2Linux 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/

View file

@ -4108,10 +4108,12 @@ 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锟?
// The equation of a line in general form is Ax + By + C = 0.
// Given two points (x1, y1) and (x2, y2):
// (y1 - y2)x + (x2 - x1)y + (y2x1 - x2y1) = 0
// so A = (y1 - y2), B = (x2 - x1), C = (y2x1 - x2y1).
// The perpendicular distance of point (x, y) is
// (Ax + By + 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);

View file

@ -60,7 +60,7 @@ example
| ----------------- | ------------------------------------------------------------ |
| model_path | onnx model path |
| adla_toolkit_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 |