AR智能识别
@if (!isModelLoading && isSimulationMode) {
🎮 模拟识别模式(网络受限)
}
@if (isModelLoading) {

正在初始化...

请稍候

} @if (cameraError && !isModelLoading) {
⚠️

AI模型加载失败

无法访问 Google 服务器

解决方案:

1. 开启 VPN/代理 后刷新页面

2. 或使用备用识别模式

} @if (!isModelLoading && !cameraError) {
@if (!isScanning) {

将废品对准摄像头进行识别

支持塑料瓶、纸张、电子产品等物品

} @if (isScanning) {

🔍 {{ isSimulationMode ? '智能分析中' : 'AI识别中' }}...

请保持物品在画面中

}
} @if (recognitionResult) {

识别结果

置信度: {{ recognitionResult.confidence }}%
{{ recognitionResult.item }}
{{ recognitionResult.category }}
+{{ recognitionResult.points }} 积分

回收信息

材质: {{ recognitionResult.recyclingInfo.material }}
可回收: {{ recognitionResult.recyclingInfo.recyclable ? '是' : '否' }}
处理方式: {{ recognitionResult.recyclingInfo.process }}

回收提示

    @for (tip of recognitionResult.tips; track tip) {
  • {{ tip }}
  • }
}
@if (!recognitionResult) {
} @if (scanHistory.length > 0) {

扫描历史

{{ scanHistory.length }} 条记录
@for (item of scanHistory.slice(0, 3); track item.id) {
{{ item.item }}
{{ item.category }} {{ item.time }}
+{{ item.points }}
}
}