Skip to the content.
English 한국어 日本語 Tiếng Việt

Go 예제

https://github.com/bobhyun/TS-ANPR/tree/main/examples/Go/anpr

1. 엔진 파일 복사

[참고] 이 예제의 경우 다른 예제들과 엔진 파일을 공유하기 위해 examples/bin/ 디렉토리에 압축 해제하지만 실제 배포시는 일반적으로 응용 프로그램의 실행 파일이 있는 디렉토리에 엔진 파일을 복사합니다.

2. 빌드 및 실행

2.1 윈도우즈

  1. 모듈 초기화

    go mod tidy
    
  2. 종속성 설치

    • GoCV 공식 설치 가이드 참고 (https://gocv.io/getting-started/windows/)
  3. 빌드 방법

    go build -o anpr.exe main.go
    
  4. 실행 방법

    .\anpr.exe
    

2.2. 리눅스

  1. 모듈 초기화

    go mod tidy
    
  2. 종속성 설치

    • Debian / Ubuntu Linux

      sudo apt install -y build-essential g++ libopencv-dev
      
    • Oracle Linux / RedHat (RHEL) / CentOS

      sudo def install -y epel-release gcc gcc-c++ opencv opencv-devel
      
  3. 빌드 방법

    go build -o anpr main.go
    
  4. 실행 방법

    ./anpr