|
|
@@ -37,15 +37,26 @@ public partial class ScreenLocate : MonoBehaviour
|
|
|
{
|
|
|
var size = getUVCCameraInfoSize;
|
|
|
Debug.Log("QuitScreenLocateManual Size:" + size);
|
|
|
- screenIdentification?.SetScreenQuad(
|
|
|
- new QuadrilateralInCamera(
|
|
|
- new o0.Geometry2D.Float.Vector(points[0].x * size.x, points[0].y * size.y),
|
|
|
- new o0.Geometry2D.Float.Vector(points[1].x * size.x, points[1].y * size.y),
|
|
|
- new o0.Geometry2D.Float.Vector(points[3].x * size.x, points[3].y * size.y),
|
|
|
- new o0.Geometry2D.Float.Vector(points[2].x * size.x, points[2].y * size.y),
|
|
|
- size.o0Vector()
|
|
|
- )
|
|
|
- );
|
|
|
+ var quad = new QuadrilateralInCamera(
|
|
|
+ new o0.Geometry2D.Float.Vector(points[0].x * size.x, points[0].y * size.y),
|
|
|
+ new o0.Geometry2D.Float.Vector(points[1].x * size.x, points[1].y * size.y),
|
|
|
+ new o0.Geometry2D.Float.Vector(points[3].x * size.x, points[3].y * size.y),
|
|
|
+ new o0.Geometry2D.Float.Vector(points[2].x * size.x, points[2].y * size.y),
|
|
|
+ size.o0Vector());
|
|
|
+
|
|
|
+ //screenIdentification?.SetScreenQuad(quad);
|
|
|
+ screenIdentification.QuadManual = quad;
|
|
|
+ Debug.Log("<color=aqua>[ScreenLocate] 记录手动数据</color>");
|
|
|
+
|
|
|
+ //screenIdentification?.SetScreenQuad(
|
|
|
+ // new QuadrilateralInCamera(
|
|
|
+ // new o0.Geometry2D.Float.Vector(points[0].x * size.x, points[0].y * size.y),
|
|
|
+ // new o0.Geometry2D.Float.Vector(points[1].x * size.x, points[1].y * size.y),
|
|
|
+ // new o0.Geometry2D.Float.Vector(points[3].x * size.x, points[3].y * size.y),
|
|
|
+ // new o0.Geometry2D.Float.Vector(points[2].x * size.x, points[2].y * size.y),
|
|
|
+ // size.o0Vector()
|
|
|
+ // )
|
|
|
+ //);
|
|
|
}
|
|
|
ToMode(Mode.InfraredLocate);
|
|
|
}
|