|
|
@@ -86,6 +86,7 @@
|
|
|
import { canvasHeight, canvasWidth, domHeight, domWidth } from './constants';
|
|
|
import useFullscreen from 'vue-hooks-plus/lib/useFullscreen';
|
|
|
import { updateCameraAlgoApi } from '@/api/camera/camera-preview';
|
|
|
+ import { RegionJudge } from '../FenceToolbar/constants';
|
|
|
|
|
|
const emits = defineEmits<{
|
|
|
(e: 'changeTreeRender', render: number | string): unknown;
|
|
|
@@ -138,9 +139,12 @@
|
|
|
|
|
|
const extraStr = selectedAlgoDetail.extra;
|
|
|
const extraJSON = JSON.parse(extraStr);
|
|
|
- const regionJudge = !extraJSON.inferParams?.[0]?.regionJudge;
|
|
|
+ const nextRegionJudge =
|
|
|
+ extraJSON.inferParams?.[0]?.regionJudge === RegionJudge.out
|
|
|
+ ? RegionJudge.in
|
|
|
+ : RegionJudge.out;
|
|
|
|
|
|
- extraJSON.inferParams[0].regionJudge = regionJudge ? 1 : 0;
|
|
|
+ extraJSON.inferParams[0].regionJudge = nextRegionJudge;
|
|
|
|
|
|
const newParam = {
|
|
|
cameraId: cameraId,
|