2024-02-01 11:37:15 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using Emgu.CV;
|
|
|
|
|
using Emgu.CV.CvEnum;
|
|
|
|
|
using Emgu.CV.Structure;
|
2024-03-02 14:14:15 +08:00
|
|
|
|
using static System.Net.Mime.MediaTypeNames;
|
|
|
|
|
using System.Net.Http.Headers;
|
2024-02-01 11:37:15 +08:00
|
|
|
|
|
|
|
|
|
namespace Parking_spaces.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class EngineeringController : Controller
|
|
|
|
|
{
|
|
|
|
|
private VideoCapture _capture;
|
2024-03-02 14:14:15 +08:00
|
|
|
|
private static int count = 0;
|
2024-02-01 11:37:15 +08:00
|
|
|
|
public IActionResult Engineering_total_table()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
public IActionResult Engineering_Index()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-02-04 11:58:46 +08:00
|
|
|
|
public IActionResult Engineering_Index_()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-02-20 16:29:25 +08:00
|
|
|
|
public IActionResult Engineering_Interview()
|
|
|
|
|
{
|
2024-03-02 14:14:15 +08:00
|
|
|
|
//傳送line
|
|
|
|
|
HttpClient httpClient = new HttpClient();
|
|
|
|
|
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
|
|
|
|
|
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "ykmUs2ZECQ9LDiNR4waT8w6NLXjWuYE9P8safG5xTZ6");
|
|
|
|
|
var content = new Dictionary<string, string>();
|
|
|
|
|
content.Add("message","有"+ count.ToString()+"人瀏覽過");
|
|
|
|
|
httpClient.PostAsync("https://notify-api.line.me/api/notify", new FormUrlEncodedContent(content));
|
|
|
|
|
count++;
|
2024-02-20 16:29:25 +08:00
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-02-01 11:37:15 +08:00
|
|
|
|
public IActionResult Engineering_CAM()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
public IActionResult Engineering_LED()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
public IActionResult Engineering_LED_detail(string id)
|
|
|
|
|
{
|
|
|
|
|
ViewBag.parking_spaces_name = id;
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
public IActionResult Engineering_CAM_detail(string id)
|
|
|
|
|
{
|
|
|
|
|
ViewBag.parking_spaces_name = "";
|
|
|
|
|
ViewBag.ip = "";
|
|
|
|
|
ViewBag.port = "";
|
|
|
|
|
string[] str_list = Regex.Split(id, ":");
|
|
|
|
|
if (str_list.Length >= 2)
|
|
|
|
|
{
|
|
|
|
|
ViewBag.parking_spaces_name = str_list[0];
|
|
|
|
|
ViewBag.ip = str_list[1];
|
|
|
|
|
ViewBag.port = str_list[2];
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ViewBag.ip = str_list[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ViewBag.parking_spaces_name = id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IActionResult Engineering_Violation()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-05-21 16:10:07 +08:00
|
|
|
|
public IActionResult Engineering_parking_user_list_index()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-02-01 21:51:22 +08:00
|
|
|
|
|
|
|
|
|
public IActionResult Engineering_RTSP()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
2024-02-01 11:37:15 +08:00
|
|
|
|
public IActionResult Single_violation_detail(string id)
|
|
|
|
|
{
|
|
|
|
|
ViewBag.parking_spaces_name = id;
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
public IActionResult Bootstrap_test(string id)
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-03 21:33:29 +08:00
|
|
|
|
public IActionResult Map_RTSP(string id)
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-05 12:08:31 +08:00
|
|
|
|
public IActionResult Yuntech_in_car()
|
|
|
|
|
{
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-01 11:37:15 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|