first commit

This commit is contained in:
ykcheungab
2026-08-06 15:18:27 +08:00
commit a5a73d76d1
37 changed files with 2697 additions and 0 deletions
+123
View File
@@ -0,0 +1,123 @@
{
"app": {
"title": "Sensor Bench",
"language": "Language",
"lang_zh": "中文",
"lang_en": "English"
},
"panels": {
"instructions": "Instructions",
"options": "Sensor Component Types",
"camera": "Camera (Orisys SDK)",
"recording": "Recording",
"raw": "Raw Image (sensor.frame)",
"processed": "Processed Image (Sensor.get_img)",
"force": "Force Curves"
},
"labels": {
"sensor_type": "Sensor type",
"elastomer": "Elastomer",
"cmos": "CMOS",
"marker": "Marker",
"indentor": "Indenter",
"platform": "Platform",
"camera_index": "Camera index",
"backend": "Backend",
"fixed_mode": "Fixed mode: {mode}",
"fixed_mode_unset": "Fixed mode: set config path",
"fixed_mode_invalid": "Fixed mode: invalid config ({error})",
"requested": "Requested",
"actual": "Actual",
"capture_fps": "Capture FPS",
"render_fps": "Render FPS",
"proc_ms": "Proc ms",
"fn": "FN",
"fx": "FX",
"fy": "FY",
"no_preview": "No preview",
"processed_placeholder": "Start Preview to show Orisys output",
"not_recording": "Not recording",
"force_plot": "Force"
},
"buttons": {
"config": "Config…",
"cal": "Cal…",
"start_preview": "Start Preview",
"stop_preview": "Stop Preview",
"browse": "Browse…",
"start_record": "Start Record",
"stop_record": "Stop Record",
"next": "Next",
"revert": "Revert",
"reset": "New Sample / Reset"
},
"placeholders": {
"config": "DDJX01 config JSON path or name",
"cal": "Optional calibration .npy"
},
"dialogs": {
"select_config": "Select config JSON",
"select_cal": "Select calibration",
"select_recordings": "Select recordings folder",
"orisys_title": "Orisys",
"orisys_required": "orisys SDK is required for preview.\n\n{detail}",
"config_title": "Config",
"config_required": "Select a DDJX01 config JSON first.",
"config_invalid": "Config could not be loaded.",
"capture_title": "Capture",
"recording_title": "Recording",
"no_frame": "No frame yet."
},
"status": {
"ready": "Ready — Start Preview uses Orisys DDJX01 fixed format.",
"orisys_ok": "orisys available (version {version})",
"orisys_missing": "orisys not importable — add orisys-sdk/src to PYTHONPATH.",
"opening": "Opening Orisys ({mode})…",
"preview_stopped": "Preview stopped.",
"capture_error": "Capture error: {message}",
"frame_info": "{raw_w}x{raw_h} raw / {proc_w}x{proc_h} processed @ {fps:.1f} FPS",
"recording": "Recording… {name}\nOptions: sensor={sensor_type}, elastomer={elastomer}, cmos={cmos}, marker={marker}, indenter={indentor}, platform={platform}",
"recording_frames": "Recording… {name}\nFrames: {count}",
"saved": "Saved {count} frames → {path}",
"workflow_done": "All steps completed. Click New Sample / Reset for the next unit."
},
"workflow": {
"title": "Sensor Bench Inspection Workflow",
"current_marker": "Current",
"done_marker": "Done",
"steps": {
"power_on": {
"title": "Power on and connect",
"body": "Connect the sensor USB cable and wait until Windows recognizes the device."
},
"select_camera": {
"title": "Start Orisys preview",
"body": "Confirm camera index (usually 0) and DDJX01 config, then click Start Preview. Format is fixed by the Orisys config (1920x1080 @ 30)."
},
"set_options": {
"title": "Set sensor options",
"body": "Choose elastomer type, CMOS type, and marker type that match the physical unit under test."
},
"check_preview": {
"title": "Check raw and processed preview",
"body": "Confirm raw frame is ~1920x1080 and processed Orisys image is ~365x365. Inspect focus, lighting, and image cleanliness."
},
"record": {
"title": "Record raw data",
"body": "Choose a storage folder, start recording, exercise the sensor, then stop recording."
},
"review_curves": {
"title": "Review performance curves",
"body": "Watch capture/render FPS and force curves for drops or unstable exposure before signing off."
},
"sensitivity": {
"title": "Sensitivity test",
"body": "Choose a small indenter and apply a 2g weight, then watch for a clear force-curve change."
},
"max_load": {
"title": "Maximum load test",
"body": "Choose a flat plate indenter and apply weights from 10g to 500g to watch for curve changes. Use 10g to 500g for MINI and 2kg for BOX."
}
}
}
}
+123
View File
@@ -0,0 +1,123 @@
{
"app": {
"title": "传感器检测台",
"language": "语言",
"lang_zh": "中文",
"lang_en": "English"
},
"panels": {
"instructions": "操作步骤",
"options": "传感器组件类型",
"camera": "相机(Orisys SDK)",
"recording": "录制",
"raw": "原始图像(sensor.frame)",
"processed": "处理后图像(Sensor.get_img)",
"force": "力曲线"
},
"labels": {
"sensor_type": "传感器类型",
"elastomer": "弹性体",
"cmos": "CMOS",
"marker": "图案",
"indentor": "压头",
"platform": "平台",
"camera_index": "相机索引",
"backend": "后端",
"fixed_mode": "固定模式:{mode}",
"fixed_mode_unset": "固定模式:请设置配置路径",
"fixed_mode_invalid": "固定模式:配置无效({error})",
"requested": "请求",
"actual": "实际",
"capture_fps": "采集 FPS",
"render_fps": "渲染 FPS",
"proc_ms": "处理 ms",
"fn": "FN",
"fx": "FX",
"fy": "FY",
"no_preview": "暂无预览",
"processed_placeholder": "点击开始预览以显示 Orisys 输出",
"not_recording": "未在录制",
"force_plot": "力"
},
"buttons": {
"config": "配置…",
"cal": "标定…",
"start_preview": "开始预览",
"stop_preview": "停止预览",
"browse": "浏览…",
"start_record": "开始录制",
"stop_record": "停止录制",
"next": "下一步",
"revert": "上一步",
"reset": "新样品 / 重置"
},
"placeholders": {
"config": "DDJX01 配置 JSON 路径或名称",
"cal": "可选标定文件 .npy"
},
"dialogs": {
"select_config": "选择配置 JSON",
"select_cal": "选择标定文件",
"select_recordings": "选择录制文件夹",
"orisys_title": "Orisys",
"orisys_required": "预览需要 Orisys SDK。\n\n{detail}",
"config_title": "配置",
"config_required": "请先选择 DDJX01 配置 JSON。",
"config_invalid": "无法加载配置。",
"capture_title": "采集",
"recording_title": "录制",
"no_frame": "尚无可用帧。"
},
"status": {
"ready": "就绪 — 开始预览将使用 Orisys DDJX01 固定格式。",
"orisys_ok": "orisys 可用(版本 {version})",
"orisys_missing": "无法导入 orisys — 请将 orisys-sdk/src 加入 PYTHONPATH。",
"opening": "正在打开 Orisys({mode})…",
"preview_stopped": "预览已停止。",
"capture_error": "采集错误:{message}",
"frame_info": "{raw_w}x{raw_h} 原始 / {proc_w}x{proc_h} 处理 @ {fps:.1f} FPS",
"recording": "正在录制… {name}\n选项:传感器={sensor_type},弹性体={elastomer},CMOS={cmos},标记={marker},压头={indentor},平台={platform}",
"recording_frames": "正在录制… {name}\n帧数:{count}",
"saved": "已保存 {count} 帧 → {path}",
"workflow_done": "全部步骤已完成。可点击“新样品 / 重置”开始下一个样品。"
},
"workflow": {
"title": "传感器检测流程",
"current_marker": "当前",
"done_marker": "已完成",
"steps": {
"power_on": {
"title": "开机并连接",
"body": "连接传感器 USB 线缆,等待 Windows 识别设备。"
},
"select_camera": {
"title": "启动 Orisys 预览",
"body": "确认相机索引(通常为 0)和 DDJX01 配置,然后点击开始预览。格式由 Orisys 配置固定(1920x1080 @ 30)。"
},
"set_options": {
"title": "设置传感器选项",
"body": "选择与当前被测实物一致的弹性体类型、CMOS 类型和标记类型。"
},
"check_preview": {
"title": "检查原始与处理后预览",
"body": "确认原始画面约为 1920x1080,处理后 Orisys 图像约为 365x365。检查对焦、光照和画面清洁度。"
},
"record": {
"title": "录制原始数据",
"body": "选择存储文件夹,开始录制,操作传感器,然后停止录制。"
},
"review_curves": {
"title": "查看性能曲线",
"body": "观察采集/渲染 FPS 与力曲线,确认无明显掉帧或曝光不稳定后再签字确认。"
},
"sensitivity": {
"title": "灵敏度测试",
"body": "选择小压头,并加载 2g 砝码,观察力曲线是否有清晰变化。"
},
"max_load": {
"title": "最大载荷测试",
"body": "选择平板压头,并加载 10g 到 500g 的砝码观察曲线变化;MINI 使用 10g 到 500g,BOX 使用 2kg。"
}
}
}
}