mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
added 3d accuracy
This commit is contained in:
@@ -74,6 +74,7 @@ public class StandardCVPipelineSettingsDeserializer extends BaseDeserializer<Sta
|
||||
|
||||
pipeline.is3D = getBoolean("is3D", pipeline.is3D);
|
||||
pipeline.targetCornerMat = getMatOfPoint3f("targetCornerMat", pipeline.targetCornerMat);
|
||||
pipeline.accuracy = getDouble("accuracy", pipeline.accuracy.doubleValue());
|
||||
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@ public class StandardCVPipelineSettingsSerializer extends BaseSerializer<Standar
|
||||
|
||||
gen.writeBooleanField("is3D", pipeline.is3D);
|
||||
writeMatOfPoint3f("targetCornerMat", pipeline.targetCornerMat);
|
||||
gen.writeNumberField("accuracy", pipeline.accuracy.doubleValue());
|
||||
gen.writeEndObject();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ public class StandardCVPipelineSettings extends CVPipelineSettings {
|
||||
|
||||
// 3d stuff
|
||||
public MatOfPoint3f targetCornerMat = new MatOfPoint3f();
|
||||
public Number accuracy = 2;
|
||||
private static MatOfPoint3f hexTargetMat = new MatOfPoint3f();
|
||||
|
||||
static {
|
||||
|
||||
Reference in New Issue
Block a user