TrafficJamAnalyzer
1.0.0
Clafcitjamanalyzer是一種高級工具,旨在通過處理Tenerife周圍的CCTV攝像機的圖像來幫助監視和分析交通狀況。通過使用具有語義內核和OpenAI的人工智能(AI),該應用程序可以準確評估交通密度並確定潛在的交通擁堵的位置。
在安裝流量Jamanalyzer之前,請確保您的系統符合以下要求:
請按照以下步驟安裝Clafculjamanalyzer:
克隆存儲庫:
git clone https://github.com/emimontesdeoca/TrafficJamAnalyzer.git
cd TrafficJamAnalyzer設置環境:確保在計算機上安裝.NET 8 SDK。在這裡下載。
安裝依賴項:使用Nuget軟件包管理器安裝必要的軟件包:
dotnet restore配置AI集成:
AiApiService中配置AppSetting。構建應用程序:
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
在TrafficJamAnalyzer.Services.AiApiService項目中編輯appsettings.json文件,以包括您的OpenAI API集成設置:
{
"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密鑰。開始分析:開始實時流量分析以監視和評估交通狀況。
審查結果:交通狀況將顯示在儀表板上,突出顯示具有潛在交通擁堵的區域。
我們歡迎向流動日式分析儀捐款!
git checkout -b feature/your-feature-namegit commit -m ' Add some feature 'git push origin feature/your-feature-name根據MIT許可分發。有關更多信息,請參見LICENSE 。
感謝您使用criginentJamanalyzer!我們希望它可以幫助您保持無特內里費島的道路。