TrafficJamanalyzer는 Tenerife 도로 주변의 CCTV 카메라의 이미지를 처리하여 트래픽 조건을 모니터링하고 분석하도록 설계된 고급 도구입니다. 시맨틱 커널 및 OpenAI와 함께 인공 지능 (AI)을 사용하여 응용 프로그램은 교통 밀도를 정확하게 평가하고 잠재적 인 교통 체증이있는 위치를 식별합니다.
TrafficJamanalyzer를 설치하기 전에 시스템이 다음 요구 사항을 충족하는지 확인하십시오.
다음 단계에 따라 Traffic Jamanalyzer를 설치하십시오.
저장소 복제 :
git clone https://github.com/emimontesdeoca/TrafficJamAnalyzer.git
cd TrafficJamAnalyzer환경 설정 : .NET 8 SDK가 컴퓨터에 설치되어 있는지 확인하십시오. 여기에서 다운로드하십시오.
종속성 설치 : NUGET 패키지 관리자를 사용하여 필요한 패키지를 설치하십시오.
dotnet restoreAI 통합 구성 :
AiApiService 에서 AppSettings를 구성하십시오.응용 프로그램 구축 :
dotnet build응용 프로그램 실행 :
dotnet run프로젝트는 다음과 같이 구성됩니다.
C:DEVELOPMENTSPEAKSAITRAFFICJAMANALYZER
├───TrafficJamAnalyzer.ApiService
├───TrafficJamAnalyzer.AppHost
├───TrafficJamAnalyzer.ServiceDefaults
├───TrafficJamAnalyzer.Services.AiApiService
├───TrafficJamAnalyzer.Services.ScraperApiService
├───TrafficJamAnalyzer.Services.TrafficService
├───TrafficJamAnalyzer.Shared.Clients
├───TrafficJamAnalyzer.Shared.Models
├───TrafficJamAnalyzer.Web
└───TrafficJamAnalyzer.Workers.Analyzer
OpenAI API 통합 설정을 포함하도록 TrafficJamAnalyzer.Services.AiApiService 프로젝트에서 appsettings.json 파일을 편집하십시오.
{
"Logging" : {
"LogLevel" : {
"Default" : " Information " ,
"Microsoft.AspNetCore" : " Warning "
}
},
"AllowedHosts" : " * " ,
"OpenAI" : {
"Endpoint" : " " ,
"DeploymentName" : " " ,
"ApiKey" : " " ,
"Prompt" : " The image I'm going to provide you is an image from a CCTV that shows a road, I need you to give me a JSON object with 'Title'' which is title in the top left and 'Traffic' which is an integer from 0 to 100 which shows the amount of traffic jam and the 'Date' that is on the bottom right, please only provide the JSON result and nothing else. Return only the json object without any markdown. If you a lot of lanes, please focus on the one that is busy when checking for the traffic, so, if you see 4 lanes and only 2 are full, it means that the traffic is jammed. "
}
}응용 프로그램 시작 : 명령 줄 또는 선택한 IDE를 통해 응용 프로그램을 시작하십시오.
설정 구성 :
appsettings.json 에서 OpenAI API 키가 올바르게 설정되어 있는지 확인하십시오.시작 분석 : 트래픽 조건을 모니터링하고 평가하려면 실시간 트래픽 분석을 시작하십시오.
검토 결과 : 교통 조건이 대시 보드에 표시되어 교통 체증이있는 영역이 강조됩니다.
우리는 Trafficjamanalyzer에 대한 기여를 환영합니다!
git checkout -b feature/your-feature-namegit commit -m ' Add some feature 'git push origin feature/your-feature-name MIT 라이센스에 따라 배포됩니다. 자세한 내용은 LICENSE 참조하십시오.
Trafficjamanalyzer를 사용해 주셔서 감사합니다! 테 네리 페 도로를 교통량없이 유지하는 데 도움이되기를 바랍니다.