Merge pull request #3 from Yuandian-aml/main
clean up invalide characters
This commit is contained in:
commit
2d5e6eae3e
3 changed files with 86 additions and 84 deletions
|
|
@ -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/
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue