diff --git a/packages/camera/src/components/UploadCenter/UploadCard/hooks/useSubtitle.js b/packages/camera/src/components/UploadCenter/UploadCard/hooks/useSubtitle.js index e6d79f418..8d55d9034 100644 --- a/packages/camera/src/components/UploadCenter/UploadCard/hooks/useSubtitle.js +++ b/packages/camera/src/components/UploadCenter/UploadCard/hooks/useSubtitle.js @@ -10,8 +10,8 @@ const validErrorCodes = [ 'WRONG_CENTER_PART', 'MISSING_PARTS', 'HIDDEN_PARTS', - 'TOO_ZOOMED', - 'NOT_ZOOMED_ENOUGH', + // 'TOO_ZOOMED', + // 'NOT_ZOOMED_ENOUGH', ]; export default function useSubtitle({ diff --git a/packages/camera/src/components/UploadCenter/index.js b/packages/camera/src/components/UploadCenter/index.js index 5b1babc16..1cee3efa9 100644 --- a/packages/camera/src/components/UploadCenter/index.js +++ b/packages/camera/src/components/UploadCenter/index.js @@ -118,8 +118,8 @@ export default function UploadCenter({ const displayRetakeAll = useMemo( () => Object.values(uploads.state).some((u) => !!u.error) || Object.values(compliance.state) .some((c) => ['rejected', 'unsatisfied'].includes(c.status) - || c?.result?.data?.compliances?.image_quality_assessment?.is_compliant === false - || c?.result?.data?.compliances?.zoom_level?.is_compliant === false), + || c?.result?.data?.compliances?.image_quality_assessment?.is_compliant === false), + // || c?.result?.data?.compliances?.zoom_level?.is_compliant === false), [compliance, uploads], ); @@ -141,11 +141,11 @@ export default function UploadCenter({ reasons: value?.result?.data?.compliances?.image_quality_assessment?.reasons, status: value?.result?.data?.compliances?.image_quality_assessment?.status, }, - zoom_level: { - isCompliant: value?.result?.data?.compliances?.zoom_level?.is_compliant, - reasons: value?.result?.data?.compliances?.zoom_level?.reasons, - status: value?.result?.data?.compliances?.zoom_level?.status, - }, + // zoom_level: { + // isCompliant: value?.result?.data?.compliances?.zoom_level?.is_compliant, + // reasons: value?.result?.data?.compliances?.zoom_level?.reasons, + // status: value?.result?.data?.compliances?.zoom_level?.status, + // }, }, })), }), [ids, compliance.state]); diff --git a/src/screens/InspectionCreate/useCreateInspection/index.js b/src/screens/InspectionCreate/useCreateInspection/index.js index 4188daa0b..b4996cc03 100644 --- a/src/screens/InspectionCreate/useCreateInspection/index.js +++ b/src/screens/InspectionCreate/useCreateInspection/index.js @@ -18,13 +18,15 @@ export default function useCreateInspection(vehicle) { }, damageDetection: { ...taskOptions, - generate_subimages_parts: {}, - generate_subimages_damages: {}, - damage_score_threshold: 0.3, - generate_visual_output: { - generate_parts: true, - generate_damages: true + generate_subimages_parts: { + generate_tight: false, }, + // generate_subimages_damages: {}, + damage_score_threshold: 0.3, + // generate_visual_output: { + // generate_parts: true, + // generate_damages: true, + // }, }, }; @@ -33,7 +35,8 @@ export default function useCreateInspection(vehicle) { vehicle, damage_severity: { output_format: 'toyota' }, additionalData: { - damage_detection_version: "v2", + damage_detection_version: 'v2', + use_dynamic_crops: true, }, }); }, []);