English | 한국어 | 日本語 | Tiếng Việt |
Dart 예제
https://github.com/bobhyun/TS-ANPR/tree/main/examples/Dart/anpr
1. 엔진 파일 복사
[참고] 이 예제의 경우 다른 예제들과 엔진 파일을 공유하기 위해 examples/bin/
디렉토리에 압축 해제하지만 실제 배포시는 일반적으로 응용 프로그램의 실행 파일이 있는 디렉토리에 엔진 파일을 복사합니다.
- 윈도우즈 x86 64비트
엔진 파일을
examples/bin/windows-x86_64
디렉토리에 압축 해제unzip tsanpr*-windows-x86_64.zip
- 윈도우즈 x86 32비트
엔진 파일을
examples/bin/windows-x86
디렉토리에 압축 해제unzip tsanpr*-windows-x86.zip
- 리눅스 x86 64비트
엔진 파일을
examples/bin/linux-x86_64
디렉토리에 압축 해제tar xvf tsanpr*-linux-x86_64.tar.xz
- 리눅스 arm 64비트
엔진 파일을
examples/bin/linux-aarch64
디렉토리에 압축 해제tar xvf tsanpr*-linux-aarch64.tar.xz
- 디렉토리 구성
examples ├── bin │ ├─── windows-x86_64 # engine directory for Windows (x86_64) │ │ ├── tsanpr.dll │ │ ├── tsanpr-2505M.eon │ │ └── tshelper.exe │ ├─── windows-x86 # engine directory for Windows (x86) │ │ ├── tsanpr.dll │ │ ├── tsanpr-2505M.eon │ │ └── tshelper.exe │ ├── linux-x86_64 # engine directory for Linux (x86_64) │ │ ├── libtsanpr.so │ │ ├── tsanpr-2505M.eon │ │ └── tshelper │ └── linux-aarch64 # engine directory for Linux (arm64) │ ├── libtsanpr.so │ ├── tsanpr-2505M.eon │ └── tshelper ├── img # image directory └── Dart └── anpr ├── pubspec.yaml ├── bin # source directory │ ├── anpr.dart │ └── anpr.exe # compiled executable └── lib # library directory └── tsanpr.dart
2. 빌드 및 실행
# 종속성 설치
dart pub get
# 소스코드에서 직접 실행
dart run bin/anpr.dart
# 컴파일해서 실행파일 생성
dart compile exe bin/anpr.dart
# 컴파일된 실행파일 실행
bin/anpr