Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
amquake committed Oct 15, 2023
1 parent 9eed5b4 commit 6be6c04
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
7 changes: 3 additions & 4 deletions photon-client/src/components/dashboard/tabs/ArucoTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ const currentPipelineSettings = useCameraSettingsStore().currentPipelineSettings
const threshWinSizes = computed<[number, number]>({
get: () => {
if (currentPipelineSettings.pipelineType === PipelineType.Aruco) {
return (Object.values(currentPipelineSettings.threshWinSizes) as [number, number]);
}
else {
return ([0, 0] as [number, number]);
return Object.values(currentPipelineSettings.threshWinSizes) as [number, number];
} else {
return [0, 0] as [number, number];
}
},
set: (v) => {
Expand Down
16 changes: 8 additions & 8 deletions photon-client/src/components/dashboard/tabs/TargetsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ import { useStateStore } from "@/stores/StateStore";
</template>
<template
v-if="
(useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag
|| useCameraSettingsStore().currentPipelineType === PipelineType.Aruco)
&& useCameraSettingsStore().currentPipelineSettings.solvePNPEnabled
(useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag ||
useCameraSettingsStore().currentPipelineType === PipelineType.Aruco) &&
useCameraSettingsStore().currentPipelineSettings.solvePNPEnabled
"
>
<th class="text-center">Ambiguity %</th>
Expand All @@ -49,8 +49,8 @@ import { useStateStore } from "@/stores/StateStore";
<td>{{ index }}</td>
<td
v-if="
useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag
|| useCameraSettingsStore().currentPipelineType === PipelineType.Aruco
useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag ||
useCameraSettingsStore().currentPipelineType === PipelineType.Aruco
"
>
{{ target.fiducialId }}
Expand All @@ -68,9 +68,9 @@ import { useStateStore } from "@/stores/StateStore";
</template>
<template
v-if="
(useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag
|| useCameraSettingsStore().currentPipelineType === PipelineType.Aruco)
&& useCameraSettingsStore().currentPipelineSettings.solvePNPEnabled
(useCameraSettingsStore().currentPipelineType === PipelineType.AprilTag ||
useCameraSettingsStore().currentPipelineType === PipelineType.Aruco) &&
useCameraSettingsStore().currentPipelineSettings.solvePNPEnabled
"
>
<td>{{ target.ambiguity?.toFixed(2) }}%</td>
Expand Down
2 changes: 1 addition & 1 deletion photon-client/src/types/PipelineTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export interface ArucoPipelineSettings extends PipelineSettings {
threshConstant: number;
debugThreshold: boolean;

useCornerRefinement: boolean,
useCornerRefinement: boolean;

useAruco3: boolean;
aruco3MinMarkerSideRatio: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ protected CVPipelineResult process(Frame frame, ArucoPipelineSettings settings)
if (settings.debugThreshold) {
var thresh =
drawThresholdFrame(
frame.processedImage.getMat(), settings.threshWinSizes.getFirst(), settings.threshConstant);
frame.processedImage.getMat(),
settings.threshWinSizes.getFirst(),
settings.threshConstant);
thresh.copyTo(frame.colorImage.getMat());
thresh.release();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.photonvision.vision.pipeline;

import com.fasterxml.jackson.annotation.JsonTypeName;

import org.photonvision.common.util.numbers.IntegerCouple;
import org.photonvision.vision.target.TargetModel;

Expand Down

0 comments on commit 6be6c04

Please sign in to comment.