mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Removed java fix for crash bug
This commit is contained in:
@@ -47,10 +47,6 @@ public class Collect2dTargetsPipe implements Pipe<Pair<List<RotatedRect>, Captur
|
||||
t.rawPoint = r;
|
||||
switch (this.calibrationMode) {
|
||||
case Single:
|
||||
if (this.calibrationPoint.get(0) == null)
|
||||
this.calibrationPoint.set(0, camProps.centerX);
|
||||
if (this.calibrationPoint.get(1) == null)
|
||||
this.calibrationPoint.set(1, camProps.centerY);
|
||||
t.calibratedX = this.calibrationPoint.get(0).doubleValue();
|
||||
t.calibratedY = this.calibrationPoint.get(1).doubleValue();
|
||||
break;
|
||||
|
||||
@@ -49,10 +49,6 @@ public class Draw2dCrosshairPipe implements Pipe<Pair<Mat, List<CVPipeline2d.Tar
|
||||
y = image.rows() / 2;
|
||||
switch (this.calibrationMode) {
|
||||
case Single:
|
||||
if (this.calibrationPoint.get(0) == null)
|
||||
this.calibrationPoint.set(0, image.cols()/2);
|
||||
if (this.calibrationPoint.get(1) == null)
|
||||
this.calibrationPoint.set(1, image.rows()/2);
|
||||
x = this.calibrationPoint.get(0).intValue();
|
||||
y = this.calibrationPoint.get(1).intValue();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user