chore: add object setting i18n keys

This commit is contained in:
ZhaiSoul 2025-03-13 00:41:53 +08:00
parent a5bd4b8550
commit a726b40b78
3 changed files with 11 additions and 5 deletions

View File

@ -246,7 +246,10 @@
"title": "Object Shape Filter Drawing", "title": "Object Shape Filter Drawing",
"desc": "Draw a rectangle on the image to view area and ratio details", "desc": "Draw a rectangle on the image to view area and ratio details",
"tips": "Enable this option to draw a rectangle on the camera image to show its area and ratio. These values can then be used to set object shape filter parameters in your config.", "tips": "Enable this option to draw a rectangle on the camera image to show its area and ratio. These values can then be used to set object shape filter parameters in your config.",
"document": "Read the documentation " "document": "Read the documentation ",
"score": "Score",
"ratio": "Ratio",
"area": "Area"
} }
}, },
"users": { "users": {

View File

@ -246,7 +246,10 @@
"title": "允许绘制“对象形状过滤器”", "title": "允许绘制“对象形状过滤器”",
"desc": "在图像上绘制矩形,以查看区域和比例详细信息。", "desc": "在图像上绘制矩形,以查看区域和比例详细信息。",
"tips": "启用此选项,能够在摄像头图像上绘制矩形,将显示其区域和比例。然后,您可以使用这些值在配置中设置对象形状过滤器参数。", "tips": "启用此选项,能够在摄像头图像上绘制矩形,将显示其区域和比例。然后,您可以使用这些值在配置中设置对象形状过滤器参数。",
"document": "阅读文档(英文)" "document": "阅读文档(英文)",
"score": "分数",
"ratio": "比例",
"area": "区域"
} }
}, },
"users": { "users": {

View File

@ -373,7 +373,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
<div className="text-md mr-2 w-1/3"> <div className="text-md mr-2 w-1/3">
<div className="flex flex-col items-end justify-end"> <div className="flex flex-col items-end justify-end">
<p className="mb-1.5 text-sm text-primary-variant"> <p className="mb-1.5 text-sm text-primary-variant">
Score {t("debug.objectShapeFilterDrawing.score")}
</p> </p>
{obj.score {obj.score
? (obj.score * 100).toFixed(1).toString() ? (obj.score * 100).toFixed(1).toString()
@ -384,7 +384,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
<div className="text-md mr-2 w-1/3"> <div className="text-md mr-2 w-1/3">
<div className="flex flex-col items-end justify-end"> <div className="flex flex-col items-end justify-end">
<p className="mb-1.5 text-sm text-primary-variant"> <p className="mb-1.5 text-sm text-primary-variant">
Ratio {t("debug.objectShapeFilterDrawing.ratio")}
</p> </p>
{obj.ratio ? obj.ratio.toFixed(2).toString() : "-"} {obj.ratio ? obj.ratio.toFixed(2).toString() : "-"}
</div> </div>
@ -392,7 +392,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
<div className="text-md mr-2 w-1/3"> <div className="text-md mr-2 w-1/3">
<div className="flex flex-col items-end justify-end"> <div className="flex flex-col items-end justify-end">
<p className="mb-1.5 text-sm text-primary-variant"> <p className="mb-1.5 text-sm text-primary-variant">
Area {t("debug.objectShapeFilterDrawing.area")}
</p> </p>
{obj.area ? ( {obj.area ? (
<> <>