- Windows 설치 환경
- Wise Plate 는 Linux(Ubuntu 22.04) 환경에서 사용하도록 개발된 프로그램으로 리눅스 OS 사용하여야 함 .
- Windows 10(20H2) 이상의 OS 환경에서 사용 할 경우 WSL 을 통한 Linux System 구축 후 Wise Plate’ 연동 진행 - 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())
- JPEG 인식
• Request• Response
http://localhost:8070/predict
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())
- IP 설정
- ‘localhost:8070'의 경우 Window Command 창에서 'wsl.exe hostname -I' 를 입력해 나오는 WSL 시스템의 IP 로
기입하여 테스트 한다. - 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
'주차관제' 카테고리의 다른 글
[CtrlS || All-In-One]출입 통제 시스템 :: 시제품 제작 (0) | 2024.08.13 |
---|---|
[CtrlS || All-In-One]출입 통제 시스템 :: 장비 구성 방안 (0) | 2024.08.13 |
[CtrlS || Wise-Plate]LPR(차량번호인식) Engine :: Starter 프로그램 실행 및 번호인식 테스트 (0) | 2024.07.30 |
[CtrlS || Wise-Plate]LPR(차량번호인식) Engine :: Starter 라이센스 인증 및 관리 (0) | 2024.07.30 |
[CtrlS || Wise-Plate]LPR(차량번호인식) Engine :: Ubuntu & Wise-Plate설치 (0) | 2024.07.29 |