parking-html/Parking_spaces/Controllers/EngineeringController.cs

73 lines
1.8 KiB
C#
Raw Normal View History

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;
namespace Parking_spaces.Controllers
{
public class EngineeringController : Controller
{
private VideoCapture _capture;
public IActionResult Engineering_total_table()
{
return View();
}
public IActionResult Engineering_Index()
{
return View();
}
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();
}
public IActionResult Single_violation_detail(string id)
{
ViewBag.parking_spaces_name = id;
return View();
}
public IActionResult Bootstrap_test(string id)
{
return View();
}
}
}