1. Windows 설치 환경
    - Wise Plate 는 Linux(Ubuntu 22.04) 환경에서 사용하도록 개발된 프로그램으로 리눅스 OS 사용하여야 함 .
    - Windows 10(20H2) 이상의 OS 환경에서 사용 할 경우 WSL 을 통한 Linux System 구축 후 Wise Plate’ 연동 진행

  2. Wise Plate 동작 확인
    •  Request (GET)
      http://localhost:8070
    •  Response
      {“version”: “024.020.102-master”}

    •  Curl 예제
      curl -X GET http://localhost:8070

    •  Python 예제
      application/json
    import requests
    
    response = requests(url=”http://localhost:8070”print(response.json())


  3. JPEG 인식
    • Response
       application/json 
    {
       “status”: “OK”, 
       “region”: [0.75, 0.16, 0.07, 0.03], 
       “took”: [0.014, 0.032], 
       “vid”: “123다4567”, 
       “ev”: 0
    }

    • Curl 예제
       curl -X POST -H “Content-Type:application/octet-stream” –data-binary@image.jpg http://localhost:8070/predict

    • Python예제
    import requests
    
    data = open(“image.jpg”, “rb”).read()
    response = requests.post(url=”http://localhost:8070/predict”, data=data, headers={“Content-Type”: “application/octet-stream”})
    print(response.json())
  4. IP 설정
    - ‘localhost:8070'의 경우 Window Command 창에서 'wsl.exe hostname -I' 를 입력해 나오는 WSL 시스템의 IP 로
    기입하여 테스트 한다.

  5. ROI 전송
    • Curl 예제
        curl -X POST http://IPADDR:8070/region -d "{\"x\": 0.05, \"y\": 0.25, \"w\": 0.8, \"h\": 0.5}

    • HTTP 예제
    HTTP  POST 
    addr : http://IPADDR:8070/region
    data : {“x”: 0.05, “y”: 0.25, “w”: 0.8, “h”: 0.5}
    HTTP DELETE
    addr : http://IPADDR:8070/region

← BACK