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!我们希望它可以帮助您保持无特内里费岛的道路。