TrafficJamanAdyzer هي أداة متقدمة مصممة للمساعدة في مراقبة وتحليل ظروف حركة المرور من خلال معالجة الصور من كاميرات CCTV حول طرق Tenerife. من خلال استخدام الذكاء الاصطناعي (AI) مع نواة الدلالية و Openai ، يقيم التطبيق بدقة كثافة حركة المرور ويحدد المواقع مع الاختناقات المرورية المحتملة.
قبل تثبيت TrafficJamanAdyzer ، تأكد من أن نظامك يفي بالمتطلبات التالية:
اتبع هذه الخطوات لتثبيت TrafficJamanAdyzer:
استنساخ المستودع :
git clone https://github.com/emimontesdeoca/TrafficJamAnalyzer.git
cd TrafficJamAnalyzerإعداد البيئة : تأكد من تثبيت .NET 8 SDK على جهازك. قم بتنزيله هنا.
تثبيت التبعيات : قم بتثبيت الحزم اللازمة باستخدام Nuget Package Manager:
dotnet restoreتكوين تكامل الذكاء الاصطناعي :
AiApiService .بناء التطبيق :
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
قم بتحرير ملف appsettings.json في مشروع TrafficJamAnalyzer.Services.AiApiService لتضمين إعدادات تكامل API Openai:
{
"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 .ابدأ التحليل : ابدأ تحليل حركة المرور في الوقت الفعلي لمراقبة وتقييم ظروف حركة المرور.
نتائج المراجعة : سيتم عرض ظروف حركة المرور على لوحة القيادة ، مع تسليط الضوء على المناطق مع الاختناقات المرورية المحتملة.
نرحب بالمساهمات في TrafficJamanAdyzer!
git checkout -b feature/your-feature-namegit commit -m ' Add some feature 'git push origin feature/your-feature-name موزعة تحت رخصة معهد ماساتشوستس للتكنولوجيا. انظر LICENSE لمزيد من المعلومات.
شكرا لك على استخدام TrafficJamanAdyzer! نأمل أن يساعدك ذلك في الحفاظ على طرق Tenerife خالية من حركة المرور.