|
@@ -1,12 +1,13 @@
|
|
using Assets.StreetLight.Adapters;
|
|
using Assets.StreetLight.Adapters;
|
|
using Assets.StreetLight.Interfaces;
|
|
using Assets.StreetLight.Interfaces;
|
|
using Assets.StreetLight.Poco;
|
|
using Assets.StreetLight.Poco;
|
|
|
|
+using Newtonsoft.Json;
|
|
|
|
+using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Collections.ObjectModel;
|
|
using System.Globalization;
|
|
using System.Globalization;
|
|
using System.IO;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
-using UnityEditor;
|
|
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace Assets.StreetLight.Scripts
|
|
namespace Assets.StreetLight.Scripts
|
|
@@ -16,15 +17,14 @@ namespace Assets.StreetLight.Scripts
|
|
public ObservableCollection<Person> Persons { get; private set; }
|
|
public ObservableCollection<Person> Persons { get; private set; }
|
|
public PositionCalculator PositionCalculator { get; private set; }
|
|
public PositionCalculator PositionCalculator { get; private set; }
|
|
|
|
|
|
- public string calibrationCsvPath;
|
|
|
|
-
|
|
|
|
private IPersonDetector personDetector;
|
|
private IPersonDetector personDetector;
|
|
|
|
|
|
void Start()
|
|
void Start()
|
|
{
|
|
{
|
|
|
|
+ var lines = File.ReadAllLines(Configuration.Instance.InputCalibrationFilePath);
|
|
|
|
+
|
|
var calibrationPoints = new List<CalibrationPoint>();
|
|
var calibrationPoints = new List<CalibrationPoint>();
|
|
|
|
|
|
- var lines = File.ReadAllLines(calibrationCsvPath);
|
|
|
|
foreach (var line in lines.Skip(1))
|
|
foreach (var line in lines.Skip(1))
|
|
{
|
|
{
|
|
var coordinates = line.Split(',').Skip(1).ToArray();
|
|
var coordinates = line.Split(',').Skip(1).ToArray();
|