|
@@ -1,16 +1,12 @@
|
|
|
using Assets.StreetLight.Adapters;
|
|
|
using Assets.StreetLight.Interfaces;
|
|
|
using Assets.StreetLight.Poco;
|
|
|
-using System;
|
|
|
-using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Collections.ObjectModel;
|
|
|
using System.Globalization;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
-using System.Runtime.CompilerServices;
|
|
|
-using System.Text;
|
|
|
-using System.Threading;
|
|
|
+using UnityEditor;
|
|
|
using UnityEngine;
|
|
|
|
|
|
namespace Assets.StreetLight.Scripts
|
|
@@ -20,15 +16,15 @@ namespace Assets.StreetLight.Scripts
|
|
|
public ObservableCollection<Person> Persons { get; private set; }
|
|
|
public PositionCalculator PositionCalculator { get; private set; }
|
|
|
|
|
|
+ public string calibrationCsvPath;
|
|
|
+
|
|
|
private IPersonDetector personDetector;
|
|
|
|
|
|
void Start()
|
|
|
{
|
|
|
- var filePath = @"C:\Users\nick.steyer\SmartStreetLight\StreetLight\Calibration.csv";
|
|
|
-
|
|
|
var calibrationPoints = new List<CalibrationPoint>();
|
|
|
|
|
|
- var lines = File.ReadAllLines(filePath);
|
|
|
+ var lines = File.ReadAllLines(calibrationCsvPath);
|
|
|
foreach (var line in lines.Skip(1))
|
|
|
{
|
|
|
var coordinates = line.Split(',').Skip(1).ToArray();
|