Files
web-Iot/src/pages/Agri.jsx

5292 lines
122 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { useState, useEffect, useRef } from 'react';
import {
Row, Col, Card, Button, Tag, Typography, Space, Statistic, message,
Divider, Input, Select, Switch, Upload, Progress, Tabs, Empty,
InputNumber, Radio, Spin
} from 'antd';
import {
ReloadOutlined, InfoCircleOutlined, ThunderboltOutlined,
AppstoreOutlined, CheckCircleOutlined, CloudOutlined,
AimOutlined, FireOutlined, InboxOutlined,
PlayCircleOutlined, FileTextOutlined, HistoryOutlined,
SearchOutlined, SettingOutlined, FullscreenOutlined,
UploadOutlined, LoadingOutlined, CheckOutlined,
SyncOutlined, DatabaseOutlined
} from '@ant-design/icons';
import {
getDetectModels,
submitDetectJob,
getDetectJobStatus,
getDetectJobResult,
submitSegmentationAnalyze,
getHotDemo,
getTargetDemo
} from '../api/aiAnalysis';
import utils from '../lib/utils';
import { useTranslation } from 'react-i18next';
import './Agri.css';
const { Title, Text } = Typography;
const { Dragger } = Upload;
const { Option } = Select;
// 算法列表定义
export default function Agri() {
const { t } = useTranslation();
const [activeAlgo, setActiveAlgo] = useState('detect');
const [models, setModels] = useState([]);
const [loadingModels, setLoadingModels] = useState(false);
const [history, setHistory] = useState([]);
const algorithmList = [
{
id: 'detect',
name: '目标检测',
alias: 'waterway-trt',
desc: '图片/视频检测,创建任务后轮询结果。',
icon: <AimOutlined />,
status: t('devices.running')
},
{
id: 'segmentation',
name: '热成像分割',
alias: 'v1.0.0',
desc: '热成像热点、面板分区和温度统计。',
icon: <FireOutlined />,
status: t('devices.running')
}
];
// 检测任务状态
const [detectForm, setDetectForm] = useState({
modelAlias: '',
inputType: 'image',
conf: 0.25,
iou: 0.45,
imgsz: 1280,
device: 'auto',
maxDet: 300,
vidStride: 1,
half: false,
speedPreset: 'speed'
});
const [detectFiles, setDetectFiles] = useState([]);
const [selectedHotspot, setSelectedHotspot] = useState(null);
const [targetLoading, setTargetLoading] = useState(false);
const [hotLoading, setHotLoading] = useState(false);
const [detectJobId, setDetectJobId] = useState(null);
const [detectStatus, setDetectStatus] = useState(null);
const [detectResult, setDetectResult] = useState(null);
const [polling, setPolling] = useState(false);
// 分割任务状态
const [segForm, setSegForm] = useState({
threshold_c: 48,
min_area_px: 25,
max_regions: 120,
include_panel_segments: true
});
const [thermalFile, setThermalFile] = useState(null);
const [maskFile, setMaskFile] = useState(null);
const [geojsonFile, setGeojsonFile] = useState(null);
const [segResult, setSegResult] = useState(null);
const [segLoading, setSegLoading] = useState(false);
const pollTimer = useRef(null);
// 初始化:加载模型列表
useEffect(() => {
fetchModels();
}, []);
const fetchModels = async () => {
setLoadingModels(true);
try {
const res = await getDetectModels();
if (res && res.list) {
setModels(res.list);
const defaultModel = res.list.find(m => m.default) || res.list[0];
if (defaultModel) {
setDetectForm(prev => ({ ...prev, modelAlias: defaultModel.alias }));
}
}
} catch (err) {
utils.message.error(t('page.listFixed2FailedFixed2'));
} finally {
setLoadingModels(false);
}
};
const handleGetTargetDemo = () => {
setTargetLoading(true);
getTargetDemo().then((res) => {
if (res && res?.jobId) {
setDetectJobId(res?.jobId);
setDetectStatus('queued');
//setPolling(true);
//startPolling(res?.data?.jobId);
// 添加到历史
addToHistory('detect', res?.jobId);
setTargetLoading(false);
}
})
//const res = {
// "msg": "操作成功",
// "code": 200,
// "data": {
// "jobId": "detect-job-0048",
// "status": "succeeded",
// "service": "detect-service",
// "modelAlias": "waterway-trt",
// "requestedModelAlias": "waterway-trt",
// "deviceUsed": "cuda:0",
// "workerId": "waterway-trt-cuda0-worker1",
// "latencyMs": 79.91,
// "detectionCount": 1,
// "resultImageUrl": "http://50.50.50.117:10101/runtime-static/detection/jobs/detect-job-0048/annotated.jpg",
// "inputImageUrl": "http://50.50.50.117:10101/runtime-static/detection/jobs/detect-job-0048/input.jpg",
// "resultJsonUrl": "http://50.50.50.117:10101/runtime-static/detection/jobs/detect-job-0048/result.json",
// "detections": [
// {
// "label": "Iw_valve_blockage",
// "confidence": 0.5728,
// "bbox": [
// 0.0,
// 596.58,
// 65.63,
// 697.6
// ]
// }
// ],
// "runtime": {
// "torchAvailable": true,
// "torchVersion": "2.2.2+cu121",
// "cudaAvailable": true,
// "cudaDeviceCount": 2,
// "cudaVersion": "12.1"
// },
// "cudaAvailable": true,
// "cudaDeviceCount": 2,
// "activeDevices": [
// "cuda:0",
// "cuda:1"
// ],
// "multiGpuEnabled": true,
// "modelReplicas": 2,
// "createdAt": "2026-05-22T05:17:32+00:00"
// }
//}
}
// --- 目标检测逻辑 ---
const handleSubmitDetect = async () => {
if (detectFiles.length === 0) {
utils.message.warning(t('page.uploadImageVideoFixed2'));
return;
}
const formData = new FormData();
detectFiles.forEach(file => {
formData.append('files', file.originFileObj);
});
formData.append('inputType', detectForm.inputType);
formData.append('modelAlias', detectForm.modelAlias);
formData.append('conf', detectForm.conf.toString());
formData.append('iou', detectForm.iou.toString());
formData.append('imgsz', detectForm.imgsz.toString());
formData.append('device', detectForm.device);
formData.append('maxDet', detectForm.maxDet.toString());
formData.append('vidStride', detectForm.vidStride.toString());
formData.append('half', detectForm.half.toString());
try {
setDetectStatus('submitting');
const res = await submitDetectJob(formData);
if (res && res.jobId) {
setDetectJobId(res.jobId);
setDetectStatus('queued');
setPolling(true);
startPolling(res.jobId);
// 添加到历史
addToHistory('detect', res.jobId);
}
} catch (err) {
utils.message.error(t('aiAnalysis.submitTaskFailed'));
setDetectStatus(null);
}
};
const handleGetDemo = () => {
setHotLoading(true);
//const res = {
// "msg": "操作成功",
// "code": 200,
// "data": {
// "analysis_id": "1c18f7cc93654ae48f47418cd2e85eee",
// "created_at": "2026-05-22T05:06:43.525963",
// "request": {
// "thermal_path": "/runtime/segmentation/uploads/1c18f7cc93654ae48f47418cd2e85eee/thermal_测试算法1.jpg",
// "array_mask_path": "",
// "panel_geojson_path": "",
// "threshold_c": 48.0,
// "min_area_px": 25,
// "max_regions": 120,
// "open_k": 3,
// "close_k": 3,
// "shrink_in": 2,
// "show_mask_edge": true
// },
// "summary": {
// "thermal_name": "thermal_测试算法1.jpg",
// "width": 4000,
// "height": 3000,
// "valid_pixels": 12000000,
// "p95_temp_c": 222.0,
// "max_temp_c": 255.0,
// "threshold_c": 48.0,
// "array_hotspot_count": 120,
// "panel_hotspot_count": 120,
// "filtered_hotspot_count": 0,
// "array_mask_pixels": 12000000,
// "panel_polygon_count": 0,
// "panel_mask_pixels": 0,
// "array_source": "回退到热图有效像素",
// "panel_source": "未找到panel geojson"
// },
// "image": {
// "source_width": 4000,
// "source_height": 3000,
// "rendered_width": 1800,
// "rendered_height": 1350,
// "scale": 0.45,
// "overlay_image_url": "http://50.50.50.117:10102/api/v1/segmentation/analyses/1c18f7cc93654ae48f47418cd2e85eee/overlay"
// },
// "panel_overview": [
// {
// "label": "热斑#1",
// "peak_temp_c": 255.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 10930693,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#2",
// "peak_temp_c": 231.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 54,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#3",
// "peak_temp_c": 218.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 122756,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#4",
// "peak_temp_c": 160.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 211,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#5",
// "peak_temp_c": 158.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 627,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#6",
// "peak_temp_c": 140.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 100,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#7",
// "peak_temp_c": 130.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 26,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#9",
// "peak_temp_c": 123.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 267,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#8",
// "peak_temp_c": 123.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 259,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#10",
// "peak_temp_c": 122.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 26,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#11",
// "peak_temp_c": 120.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 51,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#12",
// "peak_temp_c": 116.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 84,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#13",
// "peak_temp_c": 114.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 361,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#14",
// "peak_temp_c": 111.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 123,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#15",
// "peak_temp_c": 108.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 28,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#16",
// "peak_temp_c": 105.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 263,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#18",
// "peak_temp_c": 102.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 81,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#17",
// "peak_temp_c": 102.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 60,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#19",
// "peak_temp_c": 101.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 26,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#21",
// "peak_temp_c": 99.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 150,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#20",
// "peak_temp_c": 99.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 103,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#22",
// "peak_temp_c": 96.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 241,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#23",
// "peak_temp_c": 95.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 232,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#24",
// "peak_temp_c": 94.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 4519,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#25",
// "peak_temp_c": 93.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 46,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#26",
// "peak_temp_c": 86.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 86,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#28",
// "peak_temp_c": 86.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 64,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#27",
// "peak_temp_c": 86.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 46,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#30",
// "peak_temp_c": 84.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 201,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#29",
// "peak_temp_c": 84.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 58,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#31",
// "peak_temp_c": 84.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 34,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#32",
// "peak_temp_c": 83.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 86,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#34",
// "peak_temp_c": 82.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 256,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#33",
// "peak_temp_c": 82.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 171,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#35",
// "peak_temp_c": 81.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 91,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#37",
// "peak_temp_c": 81.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 79,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#36",
// "peak_temp_c": 81.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 49,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#39",
// "peak_temp_c": 80.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 56,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#38",
// "peak_temp_c": 80.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 25,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#43",
// "peak_temp_c": 79.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 872,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#42",
// "peak_temp_c": 79.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 171,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#40",
// "peak_temp_c": 79.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 41,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#41",
// "peak_temp_c": 79.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 31,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#48",
// "peak_temp_c": 78.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 154,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#46",
// "peak_temp_c": 78.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 45,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#47",
// "peak_temp_c": 78.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 40,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#45",
// "peak_temp_c": 78.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 36,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#44",
// "peak_temp_c": 78.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 34,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#50",
// "peak_temp_c": 77.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 282,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#49",
// "peak_temp_c": 77.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 70,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#51",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 204,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#52",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 97,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#54",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 40,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#56",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 28,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#55",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 27,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#53",
// "peak_temp_c": 76.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 25,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#59",
// "peak_temp_c": 75.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 77,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#60",
// "peak_temp_c": 75.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 69,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#57",
// "peak_temp_c": 75.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 43,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#58",
// "peak_temp_c": 75.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 37,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#62",
// "peak_temp_c": 74.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 135,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#61",
// "peak_temp_c": 74.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 38,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#63",
// "peak_temp_c": 74.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 36,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#64",
// "peak_temp_c": 74.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 27,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#66",
// "peak_temp_c": 73.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 362,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#65",
// "peak_temp_c": 73.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 66,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#70",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 503,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#74",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 93,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#68",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 48,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#73",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 45,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#72",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 41,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#69",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 40,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#67",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 27,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#71",
// "peak_temp_c": 72.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 26,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#81",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 2075,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#77",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 310,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#82",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 103,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#79",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 101,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#78",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 72,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#75",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 57,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#76",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 53,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#80",
// "peak_temp_c": 71.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 53,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#86",
// "peak_temp_c": 70.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 201,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#83",
// "peak_temp_c": 70.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 129,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#85",
// "peak_temp_c": 70.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 88,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#84",
// "peak_temp_c": 70.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 41,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#90",
// "peak_temp_c": 69.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 1135,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#88",
// "peak_temp_c": 69.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 224,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#87",
// "peak_temp_c": 69.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 145,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#89",
// "peak_temp_c": 69.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 97,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#92",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 419,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#96",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 64,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#95",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 54,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#94",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 43,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#91",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 35,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#93",
// "peak_temp_c": 68.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 25,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#100",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 180,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#99",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 33,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#97",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 32,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#98",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 31,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#101",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 29,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#102",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 29,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#103",
// "peak_temp_c": 67.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 26,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#109",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 141,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#106",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 137,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#112",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 101,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#107",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 46,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#108",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 43,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#104",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 42,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#105",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 41,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#110",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 40,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#111",
// "peak_temp_c": 66.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 29,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#114",
// "peak_temp_c": 65.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 188,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#115",
// "peak_temp_c": 65.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 116,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#116",
// "peak_temp_c": 65.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 47,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#117",
// "peak_temp_c": 65.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 40,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#113",
// "peak_temp_c": 65.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 27,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#118",
// "peak_temp_c": 64.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 164,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#120",
// "peak_temp_c": 64.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 51,
// "block_id": null,
// "lat": null,
// "lon": null
// },
// {
// "label": "热斑#119",
// "peak_temp_c": 64.0,
// "gps_text": "-",
// "hotspot_count": 1,
// "area_px": 42,
// "block_id": null,
// "lat": null,
// "lon": null
// }
// ],
// "hotspots": [
// {
// "hotspot_id": 1,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 255.0,
// "avg_temp_c": 144.94,
// "p95_temp_c": 223.0,
// "area_px": 10930693,
// "peak_x": 387,
// "peak_y": 0,
// "bbox": {
// "x0": 0,
// "y0": 0,
// "x1": 3999,
// "y1": 2999
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 2,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 231.0,
// "avg_temp_c": 113.06,
// "p95_temp_c": 209.95,
// "area_px": 54,
// "peak_x": 3402,
// "peak_y": 0,
// "bbox": {
// "x0": 3400,
// "y0": 0,
// "x1": 3416,
// "y1": 3
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 3,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 218.0,
// "avg_temp_c": 53.8,
// "p95_temp_c": 59.0,
// "area_px": 122756,
// "peak_x": 360,
// "peak_y": 2925,
// "bbox": {
// "x0": 0,
// "y0": 2844,
// "x1": 1410,
// "y1": 2999
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 4,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 160.0,
// "avg_temp_c": 71.96,
// "p95_temp_c": 136.0,
// "area_px": 211,
// "peak_x": 2953,
// "peak_y": 2605,
// "bbox": {
// "x0": 2947,
// "y0": 2603,
// "x1": 2966,
// "y1": 2620
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 5,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 158.0,
// "avg_temp_c": 65.09,
// "p95_temp_c": 105.0,
// "area_px": 627,
// "peak_x": 738,
// "peak_y": 2745,
// "bbox": {
// "x0": 718,
// "y0": 2725,
// "x1": 771,
// "y1": 2747
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 6,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 140.0,
// "avg_temp_c": 99.91,
// "p95_temp_c": 135.1,
// "area_px": 100,
// "peak_x": 1408,
// "peak_y": 401,
// "bbox": {
// "x0": 1406,
// "y0": 394,
// "x1": 1417,
// "y1": 406
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 7,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 130.0,
// "avg_temp_c": 98.77,
// "p95_temp_c": 128.75,
// "area_px": 26,
// "peak_x": 1437,
// "peak_y": 298,
// "bbox": {
// "x0": 1435,
// "y0": 294,
// "x1": 1438,
// "y1": 300
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 8,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 123.0,
// "avg_temp_c": 77.97,
// "p95_temp_c": 119.0,
// "area_px": 259,
// "peak_x": 3725,
// "peak_y": 2562,
// "bbox": {
// "x0": 3713,
// "y0": 2556,
// "x1": 3751,
// "y1": 2575
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 9,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 123.0,
// "avg_temp_c": 60.76,
// "p95_temp_c": 111.7,
// "area_px": 267,
// "peak_x": 2426,
// "peak_y": 2625,
// "bbox": {
// "x0": 2410,
// "y0": 2601,
// "x1": 2437,
// "y1": 2629
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 10,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 122.0,
// "avg_temp_c": 85.38,
// "p95_temp_c": 116.25,
// "area_px": 26,
// "peak_x": 697,
// "peak_y": 2726,
// "bbox": {
// "x0": 696,
// "y0": 2724,
// "x1": 699,
// "y1": 2730
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 11,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 120.0,
// "avg_temp_c": 84.29,
// "p95_temp_c": 118.0,
// "area_px": 51,
// "peak_x": 2689,
// "peak_y": 2615,
// "bbox": {
// "x0": 2687,
// "y0": 2612,
// "x1": 2695,
// "y1": 2622
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 12,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 116.0,
// "avg_temp_c": 80.82,
// "p95_temp_c": 112.0,
// "area_px": 84,
// "peak_x": 869,
// "peak_y": 2756,
// "bbox": {
// "x0": 868,
// "y0": 2754,
// "x1": 878,
// "y1": 2763
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 13,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 114.0,
// "avg_temp_c": 78.84,
// "p95_temp_c": 108.0,
// "area_px": 361,
// "peak_x": 2281,
// "peak_y": 2378,
// "bbox": {
// "x0": 2271,
// "y0": 2370,
// "x1": 2294,
// "y1": 2388
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 14,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 111.0,
// "avg_temp_c": 83.14,
// "p95_temp_c": 108.9,
// "area_px": 123,
// "peak_x": 1385,
// "peak_y": 345,
// "bbox": {
// "x0": 1382,
// "y0": 336,
// "x1": 1392,
// "y1": 349
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 15,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 108.0,
// "avg_temp_c": 78.25,
// "p95_temp_c": 106.65,
// "area_px": 28,
// "peak_x": 2925,
// "peak_y": 2604,
// "bbox": {
// "x0": 2923,
// "y0": 2602,
// "x1": 2929,
// "y1": 2606
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 16,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 105.0,
// "avg_temp_c": 61.0,
// "p95_temp_c": 91.9,
// "area_px": 263,
// "peak_x": 3477,
// "peak_y": 2566,
// "bbox": {
// "x0": 3464,
// "y0": 2554,
// "x1": 3498,
// "y1": 2572
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 17,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 102.0,
// "avg_temp_c": 77.93,
// "p95_temp_c": 101.05,
// "area_px": 60,
// "peak_x": 2284,
// "peak_y": 2282,
// "bbox": {
// "x0": 2281,
// "y0": 2274,
// "x1": 2287,
// "y1": 2286
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 18,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 102.0,
// "avg_temp_c": 68.51,
// "p95_temp_c": 95.0,
// "area_px": 81,
// "peak_x": 3806,
// "peak_y": 2547,
// "bbox": {
// "x0": 3799,
// "y0": 2545,
// "x1": 3812,
// "y1": 2553
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 19,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 101.0,
// "avg_temp_c": 75.42,
// "p95_temp_c": 100.0,
// "area_px": 26,
// "peak_x": 215,
// "peak_y": 2781,
// "bbox": {
// "x0": 212,
// "y0": 2779,
// "x1": 216,
// "y1": 2784
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 20,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 99.0,
// "avg_temp_c": 64.85,
// "p95_temp_c": 92.9,
// "area_px": 103,
// "peak_x": 2733,
// "peak_y": 2605,
// "bbox": {
// "x0": 2730,
// "y0": 2603,
// "x1": 2743,
// "y1": 2614
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 21,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 99.0,
// "avg_temp_c": 60.19,
// "p95_temp_c": 94.1,
// "area_px": 150,
// "peak_x": 2721,
// "peak_y": 2599,
// "bbox": {
// "x0": 2707,
// "y0": 2592,
// "x1": 2722,
// "y1": 2611
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 22,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 96.0,
// "avg_temp_c": 60.3,
// "p95_temp_c": 93.0,
// "area_px": 241,
// "peak_x": 410,
// "peak_y": 2758,
// "bbox": {
// "x0": 398,
// "y0": 2740,
// "x1": 417,
// "y1": 2777
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 23,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 95.0,
// "avg_temp_c": 70.21,
// "p95_temp_c": 91.0,
// "area_px": 232,
// "peak_x": 676,
// "peak_y": 233,
// "bbox": {
// "x0": 664,
// "y0": 222,
// "x1": 694,
// "y1": 246
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 24,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 94.0,
// "avg_temp_c": 66.44,
// "p95_temp_c": 82.0,
// "area_px": 4519,
// "peak_x": 2256,
// "peak_y": 2554,
// "bbox": {
// "x0": 2254,
// "y0": 2488,
// "x1": 2295,
// "y1": 2637
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 25,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 93.0,
// "avg_temp_c": 68.67,
// "p95_temp_c": 91.0,
// "area_px": 46,
// "peak_x": 3484,
// "peak_y": 2590,
// "bbox": {
// "x0": 3478,
// "y0": 2585,
// "x1": 3486,
// "y1": 2593
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 26,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 86.0,
// "avg_temp_c": 64.62,
// "p95_temp_c": 84.0,
// "area_px": 86,
// "peak_x": 899,
// "peak_y": 2743,
// "bbox": {
// "x0": 894,
// "y0": 2739,
// "x1": 909,
// "y1": 2745
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 27,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 86.0,
// "avg_temp_c": 58.76,
// "p95_temp_c": 73.75,
// "area_px": 46,
// "peak_x": 1516,
// "peak_y": 1384,
// "bbox": {
// "x0": 1511,
// "y0": 1378,
// "x1": 1517,
// "y1": 1387
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 28,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 86.0,
// "avg_temp_c": 64.17,
// "p95_temp_c": 82.0,
// "area_px": 64,
// "peak_x": 2665,
// "peak_y": 2631,
// "bbox": {
// "x0": 2662,
// "y0": 2623,
// "x1": 2669,
// "y1": 2634
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 29,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 84.0,
// "avg_temp_c": 57.59,
// "p95_temp_c": 79.6,
// "area_px": 58,
// "peak_x": 2934,
// "peak_y": 2598,
// "bbox": {
// "x0": 2932,
// "y0": 2596,
// "x1": 2943,
// "y1": 2605
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 30,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 84.0,
// "avg_temp_c": 65.21,
// "p95_temp_c": 81.0,
// "area_px": 201,
// "peak_x": 1170,
// "peak_y": 2681,
// "bbox": {
// "x0": 1153,
// "y0": 2672,
// "x1": 1176,
// "y1": 2691
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 31,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 84.0,
// "avg_temp_c": 66.18,
// "p95_temp_c": 82.0,
// "area_px": 34,
// "peak_x": 935,
// "peak_y": 2756,
// "bbox": {
// "x0": 930,
// "y0": 2754,
// "x1": 936,
// "y1": 2760
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 32,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 83.0,
// "avg_temp_c": 60.1,
// "p95_temp_c": 80.5,
// "area_px": 86,
// "peak_x": 421,
// "peak_y": 2747,
// "bbox": {
// "x0": 419,
// "y0": 2744,
// "x1": 436,
// "y1": 2750
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 33,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 82.0,
// "avg_temp_c": 64.54,
// "p95_temp_c": 78.5,
// "area_px": 171,
// "peak_x": 1473,
// "peak_y": 1865,
// "bbox": {
// "x0": 1469,
// "y0": 1849,
// "x1": 1478,
// "y1": 1878
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 34,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 82.0,
// "avg_temp_c": 59.0,
// "p95_temp_c": 77.0,
// "area_px": 256,
// "peak_x": 225,
// "peak_y": 2765,
// "bbox": {
// "x0": 214,
// "y0": 2764,
// "x1": 235,
// "y1": 2785
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 35,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 81.0,
// "avg_temp_c": 65.36,
// "p95_temp_c": 79.0,
// "area_px": 91,
// "peak_x": 1246,
// "peak_y": 2734,
// "bbox": {
// "x0": 1239,
// "y0": 2727,
// "x1": 1256,
// "y1": 2736
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 36,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 81.0,
// "avg_temp_c": 65.63,
// "p95_temp_c": 79.0,
// "area_px": 49,
// "peak_x": 1275,
// "peak_y": 374,
// "bbox": {
// "x0": 1266,
// "y0": 370,
// "x1": 1279,
// "y1": 375
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 37,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 81.0,
// "avg_temp_c": 58.08,
// "p95_temp_c": 79.1,
// "area_px": 79,
// "peak_x": 3911,
// "peak_y": 2568,
// "bbox": {
// "x0": 3907,
// "y0": 2556,
// "x1": 3918,
// "y1": 2571
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 38,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 80.0,
// "avg_temp_c": 62.6,
// "p95_temp_c": 79.4,
// "area_px": 25,
// "peak_x": 1399,
// "peak_y": 574,
// "bbox": {
// "x0": 1398,
// "y0": 573,
// "x1": 1402,
// "y1": 578
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 39,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 80.0,
// "avg_temp_c": 56.27,
// "p95_temp_c": 76.0,
// "area_px": 56,
// "peak_x": 2913,
// "peak_y": 2610,
// "bbox": {
// "x0": 2904,
// "y0": 2609,
// "x1": 2914,
// "y1": 2618
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 40,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 79.0,
// "avg_temp_c": 67.76,
// "p95_temp_c": 78.0,
// "area_px": 41,
// "peak_x": 1378,
// "peak_y": 358,
// "bbox": {
// "x0": 1375,
// "y0": 355,
// "x1": 1382,
// "y1": 362
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 41,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 79.0,
// "avg_temp_c": 63.87,
// "p95_temp_c": 78.0,
// "area_px": 31,
// "peak_x": 554,
// "peak_y": 2763,
// "bbox": {
// "x0": 552,
// "y0": 2760,
// "x1": 557,
// "y1": 2766
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 42,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 79.0,
// "avg_temp_c": 60.39,
// "p95_temp_c": 74.0,
// "area_px": 171,
// "peak_x": 1402,
// "peak_y": 1857,
// "bbox": {
// "x0": 1395,
// "y0": 1847,
// "x1": 1415,
// "y1": 1862
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 43,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 79.0,
// "avg_temp_c": 55.03,
// "p95_temp_c": 69.0,
// "area_px": 872,
// "peak_x": 1131,
// "peak_y": 2622,
// "bbox": {
// "x0": 1129,
// "y0": 2615,
// "x1": 1176,
// "y1": 2656
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 44,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 78.0,
// "avg_temp_c": 68.0,
// "p95_temp_c": 77.35,
// "area_px": 34,
// "peak_x": 628,
// "peak_y": 238,
// "bbox": {
// "x0": 627,
// "y0": 237,
// "x1": 636,
// "y1": 241
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 45,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 78.0,
// "avg_temp_c": 65.53,
// "p95_temp_c": 78.0,
// "area_px": 36,
// "peak_x": 2304,
// "peak_y": 2253,
// "bbox": {
// "x0": 2301,
// "y0": 2249,
// "x1": 2306,
// "y1": 2256
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 46,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 78.0,
// "avg_temp_c": 57.44,
// "p95_temp_c": 76.6,
// "area_px": 45,
// "peak_x": 198,
// "peak_y": 2774,
// "bbox": {
// "x0": 196,
// "y0": 2771,
// "x1": 202,
// "y1": 2781
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 47,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 78.0,
// "avg_temp_c": 60.92,
// "p95_temp_c": 76.05,
// "area_px": 40,
// "peak_x": 616,
// "peak_y": 473,
// "bbox": {
// "x0": 611,
// "y0": 469,
// "x1": 617,
// "y1": 475
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 48,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 78.0,
// "avg_temp_c": 57.84,
// "p95_temp_c": 74.0,
// "area_px": 154,
// "peak_x": 127,
// "peak_y": 2766,
// "bbox": {
// "x0": 122,
// "y0": 2762,
// "x1": 141,
// "y1": 2777
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 49,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 77.0,
// "avg_temp_c": 60.46,
// "p95_temp_c": 75.0,
// "area_px": 70,
// "peak_x": 656,
// "peak_y": 2732,
// "bbox": {
// "x0": 653,
// "y0": 2724,
// "x1": 661,
// "y1": 2737
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 50,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 77.0,
// "avg_temp_c": 56.78,
// "p95_temp_c": 71.95,
// "area_px": 282,
// "peak_x": 2461,
// "peak_y": 2709,
// "bbox": {
// "x0": 2436,
// "y0": 2699,
// "x1": 2466,
// "y1": 2716
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 51,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 56.22,
// "p95_temp_c": 72.0,
// "area_px": 204,
// "peak_x": 379,
// "peak_y": 2744,
// "bbox": {
// "x0": 378,
// "y0": 2741,
// "x1": 395,
// "y1": 2765
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 52,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 63.44,
// "p95_temp_c": 75.0,
// "area_px": 97,
// "peak_x": 102,
// "peak_y": 311,
// "bbox": {
// "x0": 81,
// "y0": 309,
// "x1": 105,
// "y1": 320
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 53,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 67.36,
// "p95_temp_c": 75.0,
// "area_px": 25,
// "peak_x": 1402,
// "peak_y": 473,
// "bbox": {
// "x0": 1399,
// "y0": 470,
// "x1": 1404,
// "y1": 474
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 54,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 61.15,
// "p95_temp_c": 74.1,
// "area_px": 40,
// "peak_x": 1463,
// "peak_y": 1902,
// "bbox": {
// "x0": 1460,
// "y0": 1900,
// "x1": 1467,
// "y1": 1906
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 55,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 62.44,
// "p95_temp_c": 75.7,
// "area_px": 27,
// "peak_x": 3724,
// "peak_y": 2549,
// "bbox": {
// "x0": 3721,
// "y0": 2545,
// "x1": 3726,
// "y1": 2551
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 56,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 76.0,
// "avg_temp_c": 62.0,
// "p95_temp_c": 74.65,
// "area_px": 28,
// "peak_x": 1347,
// "peak_y": 484,
// "bbox": {
// "x0": 1347,
// "y0": 483,
// "x1": 1350,
// "y1": 492
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 57,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 75.0,
// "avg_temp_c": 60.6,
// "p95_temp_c": 73.0,
// "area_px": 43,
// "peak_x": 2429,
// "peak_y": 2602,
// "bbox": {
// "x0": 2425,
// "y0": 2596,
// "x1": 2431,
// "y1": 2606
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 58,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 75.0,
// "avg_temp_c": 58.81,
// "p95_temp_c": 73.2,
// "area_px": 37,
// "peak_x": 2886,
// "peak_y": 2683,
// "bbox": {
// "x0": 2884,
// "y0": 2680,
// "x1": 2891,
// "y1": 2685
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 59,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 75.0,
// "avg_temp_c": 54.68,
// "p95_temp_c": 69.2,
// "area_px": 77,
// "peak_x": 2497,
// "peak_y": 2617,
// "bbox": {
// "x0": 2490,
// "y0": 2614,
// "x1": 2499,
// "y1": 2625
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 60,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 75.0,
// "avg_temp_c": 57.2,
// "p95_temp_c": 72.8,
// "area_px": 69,
// "peak_x": 335,
// "peak_y": 2760,
// "bbox": {
// "x0": 332,
// "y0": 2756,
// "x1": 341,
// "y1": 2764
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 61,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 74.0,
// "avg_temp_c": 59.76,
// "p95_temp_c": 72.15,
// "area_px": 38,
// "peak_x": 2515,
// "peak_y": 2563,
// "bbox": {
// "x0": 2511,
// "y0": 2558,
// "x1": 2518,
// "y1": 2565
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 62,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 74.0,
// "avg_temp_c": 57.69,
// "p95_temp_c": 70.0,
// "area_px": 135,
// "peak_x": 2466,
// "peak_y": 2635,
// "bbox": {
// "x0": 2464,
// "y0": 2628,
// "x1": 2494,
// "y1": 2636
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 63,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 74.0,
// "avg_temp_c": 59.0,
// "p95_temp_c": 72.25,
// "area_px": 36,
// "peak_x": 821,
// "peak_y": 2738,
// "bbox": {
// "x0": 816,
// "y0": 2735,
// "x1": 823,
// "y1": 2740
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 64,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 74.0,
// "avg_temp_c": 66.11,
// "p95_temp_c": 72.7,
// "area_px": 27,
// "peak_x": 1411,
// "peak_y": 494,
// "bbox": {
// "x0": 1406,
// "y0": 491,
// "x1": 1411,
// "y1": 495
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 65,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 73.0,
// "avg_temp_c": 56.58,
// "p95_temp_c": 71.0,
// "area_px": 66,
// "peak_x": 528,
// "peak_y": 2765,
// "bbox": {
// "x0": 526,
// "y0": 2762,
// "x1": 534,
// "y1": 2775
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 66,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 73.0,
// "avg_temp_c": 53.61,
// "p95_temp_c": 64.0,
// "area_px": 362,
// "peak_x": 1222,
// "peak_y": 2688,
// "bbox": {
// "x0": 1180,
// "y0": 2681,
// "x1": 1228,
// "y1": 2698
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 67,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 62.67,
// "p95_temp_c": 71.0,
// "area_px": 27,
// "peak_x": 1391,
// "peak_y": 514,
// "bbox": {
// "x0": 1387,
// "y0": 511,
// "x1": 1392,
// "y1": 517
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 68,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 56.5,
// "p95_temp_c": 70.0,
// "area_px": 48,
// "peak_x": 3891,
// "peak_y": 2563,
// "bbox": {
// "x0": 3887,
// "y0": 2561,
// "x1": 3894,
// "y1": 2572
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 69,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 55.95,
// "p95_temp_c": 67.1,
// "area_px": 40,
// "peak_x": 3584,
// "peak_y": 2567,
// "bbox": {
// "x0": 3579,
// "y0": 2567,
// "x1": 3585,
// "y1": 2575
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 70,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 54.59,
// "p95_temp_c": 67.0,
// "area_px": 503,
// "peak_x": 2082,
// "peak_y": 2780,
// "bbox": {
// "x0": 2071,
// "y0": 2769,
// "x1": 2122,
// "y1": 2796
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 71,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 59.88,
// "p95_temp_c": 69.0,
// "area_px": 26,
// "peak_x": 657,
// "peak_y": 2764,
// "bbox": {
// "x0": 655,
// "y0": 2762,
// "x1": 661,
// "y1": 2766
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 72,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 60.41,
// "p95_temp_c": 70.0,
// "area_px": 41,
// "peak_x": 2452,
// "peak_y": 2579,
// "bbox": {
// "x0": 2450,
// "y0": 2571,
// "x1": 2453,
// "y1": 2581
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 73,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 59.31,
// "p95_temp_c": 70.4,
// "area_px": 45,
// "peak_x": 1483,
// "peak_y": 1875,
// "bbox": {
// "x0": 1481,
// "y0": 1869,
// "x1": 1488,
// "y1": 1879
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 74,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 72.0,
// "avg_temp_c": 54.03,
// "p95_temp_c": 68.0,
// "area_px": 93,
// "peak_x": 313,
// "peak_y": 2814,
// "bbox": {
// "x0": 310,
// "y0": 2811,
// "x1": 318,
// "y1": 2826
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 75,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 61.3,
// "p95_temp_c": 70.0,
// "area_px": 57,
// "peak_x": 2113,
// "peak_y": 85,
// "bbox": {
// "x0": 2111,
// "y0": 83,
// "x1": 2121,
// "y1": 88
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 76,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 58.55,
// "p95_temp_c": 67.4,
// "area_px": 53,
// "peak_x": 1456,
// "peak_y": 1875,
// "bbox": {
// "x0": 1455,
// "y0": 1873,
// "x1": 1466,
// "y1": 1877
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 77,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 56.25,
// "p95_temp_c": 66.0,
// "area_px": 310,
// "peak_x": 3570,
// "peak_y": 2654,
// "bbox": {
// "x0": 3555,
// "y0": 2645,
// "x1": 3582,
// "y1": 2666
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 78,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 56.32,
// "p95_temp_c": 67.9,
// "area_px": 72,
// "peak_x": 85,
// "peak_y": 2728,
// "bbox": {
// "x0": 80,
// "y0": 2724,
// "x1": 92,
// "y1": 2733
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 79,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 57.49,
// "p95_temp_c": 68.0,
// "area_px": 101,
// "peak_x": 759,
// "peak_y": 2713,
// "bbox": {
// "x0": 755,
// "y0": 2709,
// "x1": 768,
// "y1": 2721
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 80,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 57.79,
// "p95_temp_c": 67.4,
// "area_px": 53,
// "peak_x": 1437,
// "peak_y": 1892,
// "bbox": {
// "x0": 1434,
// "y0": 1889,
// "x1": 1442,
// "y1": 1896
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 81,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 54.34,
// "p95_temp_c": 63.0,
// "area_px": 2075,
// "peak_x": 1219,
// "peak_y": 2593,
// "bbox": {
// "x0": 1181,
// "y0": 2575,
// "x1": 1235,
// "y1": 2670
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 82,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 71.0,
// "avg_temp_c": 56.58,
// "p95_temp_c": 67.9,
// "area_px": 103,
// "peak_x": 1435,
// "peak_y": 1872,
// "bbox": {
// "x0": 1431,
// "y0": 1867,
// "x1": 1441,
// "y1": 1885
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 83,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 70.0,
// "avg_temp_c": 55.29,
// "p95_temp_c": 67.6,
// "area_px": 129,
// "peak_x": 2443,
// "peak_y": 2613,
// "bbox": {
// "x0": 2440,
// "y0": 2597,
// "x1": 2450,
// "y1": 2621
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 84,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 70.0,
// "avg_temp_c": 54.22,
// "p95_temp_c": 67.0,
// "area_px": 41,
// "peak_x": 111,
// "peak_y": 2757,
// "bbox": {
// "x0": 108,
// "y0": 2753,
// "x1": 118,
// "y1": 2759
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 85,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 70.0,
// "avg_temp_c": 55.01,
// "p95_temp_c": 66.0,
// "area_px": 88,
// "peak_x": 3502,
// "peak_y": 2581,
// "bbox": {
// "x0": 3494,
// "y0": 2578,
// "x1": 3508,
// "y1": 2589
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 86,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 70.0,
// "avg_temp_c": 57.51,
// "p95_temp_c": 68.0,
// "area_px": 201,
// "peak_x": 2488,
// "peak_y": 2713,
// "bbox": {
// "x0": 2485,
// "y0": 2709,
// "x1": 2502,
// "y1": 2723
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 87,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 69.0,
// "avg_temp_c": 53.4,
// "p95_temp_c": 63.4,
// "area_px": 145,
// "peak_x": 3467,
// "peak_y": 2633,
// "bbox": {
// "x0": 3458,
// "y0": 2629,
// "x1": 3476,
// "y1": 2644
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 88,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 69.0,
// "avg_temp_c": 52.81,
// "p95_temp_c": 65.85,
// "area_px": 224,
// "peak_x": 706,
// "peak_y": 2740,
// "bbox": {
// "x0": 689,
// "y0": 2735,
// "x1": 714,
// "y1": 2758
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 89,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 69.0,
// "avg_temp_c": 56.78,
// "p95_temp_c": 68.0,
// "area_px": 97,
// "peak_x": 2272,
// "peak_y": 2405,
// "bbox": {
// "x0": 2268,
// "y0": 2401,
// "x1": 2278,
// "y1": 2413
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 90,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 69.0,
// "avg_temp_c": 52.54,
// "p95_temp_c": 60.0,
// "area_px": 1135,
// "peak_x": 1258,
// "peak_y": 2680,
// "bbox": {
// "x0": 1230,
// "y0": 2638,
// "x1": 1266,
// "y1": 2695
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 91,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 59.8,
// "p95_temp_c": 67.0,
// "area_px": 35,
// "peak_x": 561,
// "peak_y": 197,
// "bbox": {
// "x0": 554,
// "y0": 195,
// "x1": 563,
// "y1": 201
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 92,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 53.93,
// "p95_temp_c": 63.1,
// "area_px": 419,
// "peak_x": 1171,
// "peak_y": 2583,
// "bbox": {
// "x0": 1158,
// "y0": 2570,
// "x1": 1189,
// "y1": 2615
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 93,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 57.2,
// "p95_temp_c": 67.8,
// "area_px": 25,
// "peak_x": 721,
// "peak_y": 2748,
// "bbox": {
// "x0": 719,
// "y0": 2746,
// "x1": 723,
// "y1": 2750
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 94,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 55.98,
// "p95_temp_c": 67.0,
// "area_px": 43,
// "peak_x": 1279,
// "peak_y": 2704,
// "bbox": {
// "x0": 1277,
// "y0": 2699,
// "x1": 1282,
// "y1": 2706
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 95,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 55.89,
// "p95_temp_c": 66.35,
// "area_px": 54,
// "peak_x": 2262,
// "peak_y": 2481,
// "bbox": {
// "x0": 2260,
// "y0": 2474,
// "x1": 2265,
// "y1": 2484
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 96,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 68.0,
// "avg_temp_c": 55.45,
// "p95_temp_c": 65.85,
// "area_px": 64,
// "peak_x": 1275,
// "peak_y": 2723,
// "bbox": {
// "x0": 1271,
// "y0": 2720,
// "x1": 1283,
// "y1": 2726
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 97,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 57.31,
// "p95_temp_c": 65.0,
// "area_px": 32,
// "peak_x": 1428,
// "peak_y": 1807,
// "bbox": {
// "x0": 1426,
// "y0": 1802,
// "x1": 1430,
// "y1": 1809
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 98,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 58.26,
// "p95_temp_c": 67.0,
// "area_px": 31,
// "peak_x": 3667,
// "peak_y": 376,
// "bbox": {
// "x0": 3666,
// "y0": 372,
// "x1": 3672,
// "y1": 378
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 99,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 57.55,
// "p95_temp_c": 65.4,
// "area_px": 33,
// "peak_x": 1161,
// "peak_y": 2619,
// "bbox": {
// "x0": 1160,
// "y0": 2618,
// "x1": 1167,
// "y1": 2622
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 100,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 56.23,
// "p95_temp_c": 65.0,
// "area_px": 180,
// "peak_x": 2500,
// "peak_y": 2689,
// "bbox": {
// "x0": 2492,
// "y0": 2685,
// "x1": 2510,
// "y1": 2701
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 101,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 54.62,
// "p95_temp_c": 67.0,
// "area_px": 29,
// "peak_x": 898,
// "peak_y": 2720,
// "bbox": {
// "x0": 895,
// "y0": 2719,
// "x1": 901,
// "y1": 2723
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 102,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 58.38,
// "p95_temp_c": 66.6,
// "area_px": 29,
// "peak_x": 2928,
// "peak_y": 2612,
// "bbox": {
// "x0": 2926,
// "y0": 2610,
// "x1": 2931,
// "y1": 2616
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 103,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 67.0,
// "avg_temp_c": 58.73,
// "p95_temp_c": 66.75,
// "area_px": 26,
// "peak_x": 744,
// "peak_y": 2816,
// "bbox": {
// "x0": 741,
// "y0": 2814,
// "x1": 747,
// "y1": 2817
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 104,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 55.79,
// "p95_temp_c": 64.0,
// "area_px": 42,
// "peak_x": 287,
// "peak_y": 2756,
// "bbox": {
// "x0": 286,
// "y0": 2754,
// "x1": 291,
// "y1": 2762
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 105,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 56.98,
// "p95_temp_c": 63.0,
// "area_px": 41,
// "peak_x": 3875,
// "peak_y": 2564,
// "bbox": {
// "x0": 3870,
// "y0": 2562,
// "x1": 3877,
// "y1": 2567
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 106,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 53.37,
// "p95_temp_c": 61.2,
// "area_px": 137,
// "peak_x": 42,
// "peak_y": 2815,
// "bbox": {
// "x0": 40,
// "y0": 2808,
// "x1": 55,
// "y1": 2822
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 107,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 56.54,
// "p95_temp_c": 65.75,
// "area_px": 46,
// "peak_x": 994,
// "peak_y": 2751,
// "bbox": {
// "x0": 990,
// "y0": 2750,
// "x1": 998,
// "y1": 2755
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 108,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 54.81,
// "p95_temp_c": 64.9,
// "area_px": 43,
// "peak_x": 2866,
// "peak_y": 2611,
// "bbox": {
// "x0": 2860,
// "y0": 2608,
// "x1": 2868,
// "y1": 2614
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 109,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 52.26,
// "p95_temp_c": 60.0,
// "area_px": 141,
// "peak_x": 1027,
// "peak_y": 2708,
// "bbox": {
// "x0": 1022,
// "y0": 2704,
// "x1": 1040,
// "y1": 2715
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 110,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 55.92,
// "p95_temp_c": 65.05,
// "area_px": 40,
// "peak_x": 2549,
// "peak_y": 2599,
// "bbox": {
// "x0": 2548,
// "y0": 2598,
// "x1": 2555,
// "y1": 2606
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 111,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 56.0,
// "p95_temp_c": 65.0,
// "area_px": 29,
// "peak_x": 2428,
// "peak_y": 2591,
// "bbox": {
// "x0": 2427,
// "y0": 2587,
// "x1": 2431,
// "y1": 2592
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 112,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 66.0,
// "avg_temp_c": 54.13,
// "p95_temp_c": 63.0,
// "area_px": 101,
// "peak_x": 3891,
// "peak_y": 2548,
// "bbox": {
// "x0": 3874,
// "y0": 2546,
// "x1": 3893,
// "y1": 2554
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 113,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 65.0,
// "avg_temp_c": 56.07,
// "p95_temp_c": 64.7,
// "area_px": 27,
// "peak_x": 1263,
// "peak_y": 2729,
// "bbox": {
// "x0": 1261,
// "y0": 2728,
// "x1": 1267,
// "y1": 2732
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 114,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 65.0,
// "avg_temp_c": 53.66,
// "p95_temp_c": 62.0,
// "area_px": 188,
// "peak_x": 2418,
// "peak_y": 2688,
// "bbox": {
// "x0": 2410,
// "y0": 2684,
// "x1": 2434,
// "y1": 2700
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 115,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 65.0,
// "avg_temp_c": 55.51,
// "p95_temp_c": 62.0,
// "area_px": 116,
// "peak_x": 1170,
// "peak_y": 2666,
// "bbox": {
// "x0": 1169,
// "y0": 2661,
// "x1": 1183,
// "y1": 2670
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 116,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 65.0,
// "avg_temp_c": 54.85,
// "p95_temp_c": 62.4,
// "area_px": 47,
// "peak_x": 315,
// "peak_y": 2767,
// "bbox": {
// "x0": 311,
// "y0": 2761,
// "x1": 316,
// "y1": 2769
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 117,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 65.0,
// "avg_temp_c": 56.33,
// "p95_temp_c": 65.0,
// "area_px": 40,
// "peak_x": 918,
// "peak_y": 2757,
// "bbox": {
// "x0": 915,
// "y0": 2753,
// "x1": 925,
// "y1": 2759
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 118,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 64.0,
// "avg_temp_c": 52.8,
// "p95_temp_c": 61.85,
// "area_px": 164,
// "peak_x": 2518,
// "peak_y": 2620,
// "bbox": {
// "x0": 2501,
// "y0": 2613,
// "x1": 2521,
// "y1": 2627
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 119,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 64.0,
// "avg_temp_c": 52.45,
// "p95_temp_c": 60.95,
// "area_px": 42,
// "peak_x": 3655,
// "peak_y": 2553,
// "bbox": {
// "x0": 3654,
// "y0": 2545,
// "x1": 3659,
// "y1": 2555
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// },
// {
// "hotspot_id": 120,
// "label": null,
// "panel_id": null,
// "sub_id": null,
// "parent_id": null,
// "peak_temp_c": 64.0,
// "avg_temp_c": 52.18,
// "p95_temp_c": 58.0,
// "area_px": 51,
// "peak_x": 0,
// "peak_y": 2616,
// "bbox": {
// "x0": 0,
// "y0": 2609,
// "x1": 5,
// "y1": 2617
// },
// "gps": {
// "lat": null,
// "lon": null,
// "text": "-"
// }
// }
// ],
// "temp_buckets": [
// {
// "range_label": "48.0~53.0℃",
// "count": 0
// },
// {
// "range_label": "53.0~58.0℃",
// "count": 0
// },
// {
// "range_label": ">=58.0℃",
// "count": 120
// }
// ],
// "panel_segments": [],
// "reportUrl": null,
// "reportFileName": null,
// "reportGeneratedAt": null
// }
//}
getHotDemo().then(res => {
setHotLoading(false);
setSegResult(res);
utils.message.success(t('aiAnalysis.thermalAnalysisComplete'));
addToHistory('segmentation', res.analysisId || 'seg-' + Date.now());
}).catch(err => { })
}
const startPolling = (jobId) => {
if (pollTimer.current) clearInterval(pollTimer.current);
pollTimer.current = setInterval(async () => {
try {
const statusRes = await getDetectJobStatus(jobId);
setDetectStatus(statusRes.status);
if (statusRes.status === 'succeeded') {
clearInterval(pollTimer.current);
setPolling(false);
const resultRes = await getDetectJobResult(jobId);
setDetectResult(resultRes);
utils.message.success(t('devices.taskExecSuccess'));
} else if (['failed', 'cancelled'].includes(statusRes.status)) {
clearInterval(pollTimer.current);
setPolling(false);
utils.message.error(`任务执行${statusRes.status === 'failed' ? t('common.failure') : '被取消'}`);
}
} catch (err) {
console.error('轮询失败', err);
}
}, 2000);
};
// --- 热成像分割逻辑 ---
const handleSubmitSeg = async () => {
if (!thermalFile) {
utils.message.warning(t('page.uploadThermal2'));
return;
}
const formData = new FormData();
formData.append('thermal_file', thermalFile.originFileObj);
if (maskFile) formData.append('array_mask_file', maskFile.originFileObj);
if (geojsonFile) formData.append('panel_geojson_file', geojsonFile.originFileObj);
formData.append('threshold_c', segForm.threshold_c.toString());
formData.append('min_area_px', segForm.min_area_px.toString());
formData.append('max_regions', segForm.max_regions.toString());
formData.append('include_panel_segments', segForm.include_panel_segments.toString());
setSegLoading(true);
try {
const res = await submitSegmentationAnalyze(formData);
setSegResult(res);
utils.message.success(t('aiAnalysis.thermalAnalysisComplete'));
addToHistory('segmentation', res.analysisId || 'seg-' + Date.now());
} catch (err) {
utils.message.error(t('aiAnalysis.thermalAnalysisFailed'));
} finally {
setSegLoading(false);
}
};
const addToHistory = (type, id) => {
const newItem = {
id,
type,
time: new Date().toLocaleString(),
name: type === 'detect' ? '目标检测任务' : '热成像分割分析'
};
setHistory(prev => [newItem, ...prev]);
};
// 替换成这个 renderStats
const renderStats = () => (
<Row gutter={[8, 8]} style={{ marginBottom: 8 }}>
{[
{
title: t('aiAnalysis.algoCount'),
value: '2',
unit: `${t('aiAnalysis.algoCountUnit')}`,
icon: <AppstoreOutlined />,
color: '#165DFF',
bg: '#E8F3FF',
},
{
title: t('aiAnalysis.onlineServices'),
value: '2',
unit: 'health 实时检查',
icon: <CloudOutlined />,
color: '#00B42A',
bg: '#E8FFEA',
},
{
title: t('aiAnalysis.modelCount'),
value: models.length || 3,
unit: '检测模型 registry',
icon: <DatabaseOutlined />,
color: '#165DFF',
bg: '#E8F3FF',
},
{
title: t('aiAnalysis.historyRecords'),
value: history.length,
unit: '本页联调记录',
icon: <HistoryOutlined />,
color: '#722ED1',
bg: '#F3E8FF',
},
].map((item, index) => (
<Col key={index} xs={24} sm={12} md={12} xl={6}>
<Card
bordered={false}
bodyStyle={{ padding: '20px 16px' }}
style={{ height: '100%' }}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'flex-start',
}}
>
<div style={{ flex: 1 }}>
<div
style={{
fontSize: 'clamp(12px, 0.8vw, 13px)',
color: '#86909C',
marginBottom: 8,
whiteSpace: 'nowrap',
}}
>
{item.title}
</div>
<div
style={{
fontSize: 'clamp(20px, 1.4vw, 24px)',
fontWeight: 800,
color: item.color,
display: 'flex',
alignItems: 'baseline',
gap: 4,
}}
>
{item.value}
{item.unit && (
<span
style={{
fontSize: 13,
fontWeight: 400,
color: '#86909C',
}}
>
{item.unit}
</span>
)}
</div>
</div>
<div
style={{
width: 44,
height: 44,
background: item.bg,
borderRadius: '12px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexShrink: 0,
boxShadow: `0 4px 10px ${item.bg}80`,
}}
>
{React.cloneElement(item.icon, {
style: { fontSize: 22, color: item.color },
})}
</div>
</div>
</Card>
</Col>
))}
</Row>
);
// 渲染检测工作区
const renderDetectWorkspace = () => (
<div style={{ padding: '0 8px' }}>
<div style={{ marginBottom: 16 }}>
<Text strong style={{ fontSize: 15 }}>{t('aiAnalysis.detectModel')}</Text>
<Select
style={{ width: '100%', marginTop: 8 }}
value={detectForm.modelAlias}
onChange={val => setDetectForm(prev => ({ ...prev, modelAlias: val }))}
loading={loadingModels}
>
{models.map(m => (
<Option key={m.alias} value={m.alias}>{m.alias} {m.default ? '(默认)' : ''}</Option>
))}
</Select>
</div>
<Row gutter={[16, 16]}>
<Col span={12}>
<Text strong style={{ fontSize: 13, display: 'block', marginBottom: 8 }}>{t('aiAnalysis.inputType')}</Text>
<Radio.Group
value={detectForm.inputType}
onChange={e => setDetectForm(prev => ({ ...prev, inputType: e.target.value }))}
buttonStyle="solid"
size="small"
>
<Radio.Button value="image">{t('aiAnalysis.image')}</Radio.Button>
<Radio.Button value="video">{t('constants.sourceVideo')}</Radio.Button>
</Radio.Group>
</Col>
<Col span={12}>
<Text strong style={{ fontSize: 13, display: 'block', marginBottom: 8 }}>{t('aiAnalysis.inferencePreset')}</Text>
<Radio.Group
value={detectForm.speedPreset}
onChange={e => setDetectForm(prev => ({ ...prev, speedPreset: e.target.value }))}
size="small"
>
<Radio.Button value="quality">{t('aiAnalysis.quality')}</Radio.Button>
<Radio.Button value="speed">{t('devices.speed')}</Radio.Button>
</Radio.Group>
</Col>
</Row>
<Row gutter={[16, 16]} style={{ marginTop: 16 }}>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>conf</Text>
<InputNumber
size="small"
min={0} max={1} step={0.01}
value={detectForm.conf}
onChange={val => setDetectForm(prev => ({ ...prev, conf: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>iou</Text>
<InputNumber
size="small"
min={0} max={1} step={0.01}
value={detectForm.iou}
onChange={val => setDetectForm(prev => ({ ...prev, iou: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>imgsz</Text>
<InputNumber
size="small"
value={detectForm.imgsz}
onChange={val => setDetectForm(prev => ({ ...prev, imgsz: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>device</Text>
<Select
size="small"
value={detectForm.device}
onChange={val => setDetectForm(prev => ({ ...prev, device: val }))}
style={{ width: '100%' }}
>
<Option value="auto">auto</Option>
<Option value="cpu">cpu</Option>
<Option value="cuda:0">cuda:0</Option>
</Select>
</Col>
</Row>
<Row gutter={[16, 16]} style={{ marginTop: 16 }}>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>max_det</Text>
<InputNumber
size="small"
value={detectForm.maxDet}
onChange={val => setDetectForm(prev => ({ ...prev, maxDet: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>vid_stride</Text>
<InputNumber
size="small"
value={detectForm.vidStride}
onChange={val => setDetectForm(prev => ({ ...prev, vidStride: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>half</Text>
<Switch
size="small"
checked={detectForm.half}
onChange={val => setDetectForm(prev => ({ ...prev, half: val }))}
/>
</Col>
</Row>
<div style={{ marginTop: 24 }}>
<Dragger
fileList={detectFiles}
onChange={info => {
setDetectFiles(info.fileList.slice(-1));
}}
beforeUpload={() => false}
limit={1}
style={{ background: '#fafafa', borderRadius: 8 }}
>
<p className="ant-upload-drag-icon">
<InboxOutlined style={{ color: '#1677ff' }} />
</p>
<p className="ant-upload-text">{t('page.fixed2DragFile')}</p>
<p className="ant-upload-hint">{t('page.jpgPngWebpMp4')}</p>
</Dragger>
</div>
<Space style={{ marginTop: 24 }}>
<Button
type="primary"
icon={polling ? <LoadingOutlined /> : <CheckCircleOutlined />}
onClick={handleSubmitDetect}
disabled={polling}
>
{polling ? '任务处理中...' : '提交检测任务'}
</Button>
<Button
icon={<PlayCircleOutlined />}
onClick={handleGetTargetDemo}
loading={targetLoading}
>{t('page.s7')}</Button> <Button icon={<SyncOutlined />} onClick={fetchModels}>{t('aiAnalysis.refreshModels')}</Button>
</Space>
</div>
);
// 渲染分割工作区
const renderSegWorkspace = () => (
<div style={{ padding: '0 8px' }}>
<Row gutter={[16, 16]}>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>threshold_c</Text>
<InputNumber
size="small"
value={segForm.threshold_c}
onChange={val => setSegForm(prev => ({ ...prev, threshold_c: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>min_area_px</Text>
<InputNumber
size="small"
value={segForm.min_area_px}
onChange={val => setSegForm(prev => ({ ...prev, min_area_px: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>max_regions</Text>
<InputNumber
size="small"
value={segForm.max_regions}
onChange={val => setSegForm(prev => ({ ...prev, max_regions: val }))}
style={{ width: '100%' }}
/>
</Col>
<Col span={6}>
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>include_panel_segments</Text>
<Switch
size="small"
checked={segForm.include_panel_segments}
onChange={val => setSegForm(prev => ({ ...prev, include_panel_segments: val }))}
/>
</Col>
</Row>
<div style={{ marginTop: 24 }}>
<Text strong style={{ fontSize: 13, display: 'block', marginBottom: 8 }}>{t('page.thermalFile')}</Text>
<Dragger
fileList={thermalFile ? [thermalFile] : []}
onChange={info => setThermalFile(info.fileList[0])}
beforeUpload={() => false}
maxCount={1}
style={{ background: '#fafafa', borderRadius: 8, height: 120 }}
>
<p className="ant-upload-drag-icon" style={{ fontSize: 24 }}>
<CloudOutlined style={{ color: '#1677ff' }} />
</p>
<p style={{ fontSize: 12 }}>{t('page.fixed2UploadTiffPngJpg')}</p>
</Dragger>
</div>
<Space style={{ marginTop: 16 }}>
<Upload
fileList={maskFile ? [maskFile] : []}
onChange={info => setMaskFile(info.fileList[0])}
beforeUpload={() => false}
maxCount={1}
>
<Button size="small">{t('page.mask')}</Button>
</Upload>
<Upload
fileList={geojsonFile ? [geojsonFile] : []}
onChange={info => setGeojsonFile(info.fileList[0])}
beforeUpload={() => false}
maxCount={1}
>
<Button size="small">{t('page.geojson')}</Button>
</Upload>
</Space>
<Space style={{ marginTop: 24 }}>
<Button
type="primary"
icon={segLoading ? <LoadingOutlined /> : <CheckOutlined />}
onClick={handleSubmitSeg}
loading={segLoading}
>{t('aiAnalysis.submitThermalAnalysis')}</Button>
<Button
icon={<PlayCircleOutlined />}
onClick={handleGetDemo}
loading={hotLoading}
>{t('page.s7')}</Button> <Button icon={<HistoryOutlined />}>{t('aiAnalysis.readServerHistory')}</Button>
</Space>
</div>
);
// 1. 目标检测的结果布局(第一张图的样式:三列)
const renderDetectResultLayout = () => {
const inputFile = detectFiles[0];
const hasResult = !!detectResult;
return (
<Card
title={<Text strong style={{ fontSize: 14 }}>{t('page.s15')}</Text>}
bordered={false}
style={{ marginTop: 12, borderRadius: 8 }}
bodyStyle={{ padding: '12px' }}
>
<Text type="secondary" style={{ fontSize: 11, display: 'block', marginBottom: 12 }}>{t('page.jsonViewFixed2')}</Text>
<Row gutter={12}>
{/* 输入预览 */}
<Col span={8}>
<Card size="small" title={t('aiAnalysis.inputPreview')} style={{ height: 480 }}>
<div style={{ height: 400, background: '#001529', display: 'flex', alignItems: 'center', justifyContent: 'center', overflow: 'hidden' }}>
{inputFile && (
detectForm.inputType === 'image' ? (
<img
src={URL.createObjectURL(inputFile.originFileObj)}
style={{ maxWidth: '100%', maxHeight: '100%' }}
alt="input"
/>
) : (
<video
src={URL.createObjectURL(inputFile.originFileObj)}
controls
style={{ maxWidth: '100%', maxHeight: '100%' }}
/>
)
)}
</div>
</Card>
</Col>
{/* 结果图/视频 */}
<Col span={8}>
<Card size="small" title={t('page.videoFixed2')} style={{ height: 480 }}>
<div style={{ height: 400, display: 'flex', alignItems: 'center', justifyContent: 'center', background: '#fafafa' }}>
{hasResult ? (
detectForm.inputType === 'image' ? (
<img
src={"http://47.100.102.7:10101" + detectResult.files[0]?.annotatedUrl || ''}
style={{ maxWidth: '100%', maxHeight: '100%' }}
alt="result"
/>
) : (
<video
src={"http://47.100.102.7:10101" + detectResult.files[0]?.annotatedUrl || ''}
controls
style={{ maxWidth: '100%', maxHeight: '100%' }}
/>
)
) : (
<Text type="secondary">{t('page.fixed2TaskSuspended2Fixed2Complete')}</Text>
)}
</div>
</Card>
</Col>
{/* 结果JSON */}
<Col span={8}>
<Card size="small" title={t('page.json')} style={{ height: 480 }}>
<div style={{ height: 400, overflowY: 'auto', background: '#fafafa', padding: 8 }}>
{hasResult ? (
<pre style={{ fontSize: 10, margin: 0 }}>{JSON.stringify(detectResult, null, 2)}</pre>
) : (
<Text type="secondary">{t('page.noResultFixed2')}</Text>
)}
</div>
</Card>
</Col>
</Row>
</Card>
);
};
// 2. 热成像分割的结果布局(第二张图的样式:两列)
// 2. 热成像分割的结果布局(第二张图的样式:两列 + 热点交互)
const renderSegResultLayout = () => {
const hasResult = !!segResult;
const inputFile = thermalFile;
const hotspots = segResult?.hotspots || [];
const panels = segResult?.panel_overview || [];
// 选中的点位详情
const selectedPoint = selectedHotspot
? hotspots.find(h => h.hotspot_id === selectedHotspot)
: null;
return (
<Card
title={<Text strong style={{ fontSize: 14 }}>{t('page.s15')}</Text>}
bordered={false}
style={{ marginTop: 12, borderRadius: 8 }}
bodyStyle={{ padding: '12px' }}
>
<Text type="secondary" style={{ fontSize: 11, display: 'block', marginBottom: 12 }}>{t('page.jsonViewFixed2')}</Text>
{/* 顶部统计卡片 */}
<div style={{ marginBottom: 16 }}>
<Text strong style={{ fontSize: 13, display: 'block', marginBottom: 8 }}>{t('page.s19')}</Text>
<Text type="secondary" style={{ fontSize: 11, marginBottom: 12 }}>{t('page.viewFixed2TemperatureGpsInfoFixed2')}</Text>
<Row gutter={8}>
<Col span={6}>
<Card
size="small"
bordered={false}
style={{
background: '#E8FFEA',
borderRadius: 8,
height: '100%'
}}
bodyStyle={{ padding: '12px 8px' }}
>
<Statistic
title={<span style={{ fontSize: 15, color: '#86909C' }}>{t('page.quantityFixed2')}</span>}
value={segResult?.summary?.panel_hotspot_count || 0}
valueStyle={{ fontSize: 18, fontWeight: 600, color: '#FF4D4F' }}
/>
</Card>
</Col>
<Col span={6}>
<Card
size="small"
bordered={false}
style={{
background: '#E6F4FF',
borderRadius: 8,
height: '100%'
}}
bodyStyle={{ padding: '12px 8px' }}
>
<Statistic
title={<span style={{ fontSize: 15, color: '#86909C' }}>{t('aiAnalysis.panelArea')}</span>}
value={segResult?.summary?.panel_polygon_count || 0}
titleStyle={{ fontSize: 12, color: '#333', marginBottom: 4 }}
valueStyle={{ fontSize: 18, fontWeight: 600, color: '#1677FF' }}
/>
</Card>
</Col>
<Col span={6}>
<Card
size="small"
bordered={false}
style={{
background: '#FFF7E8',
borderRadius: 8,
height: '100%'
}}
bodyStyle={{ padding: '12px 8px' }}
>
<Statistic
title={<span style={{ fontSize: 15, color: '#86909C' }}>{t('aiAnalysis.maxTemperature')}</span>}
value={hasResult ? `${segResult.summary?.max_temp_c || 0}℃` : '-'}
titleStyle={{ fontSize: 12, color: '#333', marginBottom: 4 }}
valueStyle={{ fontSize: 18, fontWeight: 600, color: '#FF7D00' }}
/>
</Card>
</Col>
<Col span={6}>
<Card
size="small"
bordered={false}
style={{
background: '#F3E8FF',
borderRadius: 8,
height: '100%'
}}
bodyStyle={{ padding: '12px 8px' }}
>
<Statistic
title={<span style={{ fontSize: 15, color: '#86909C' }}>{t('page.s23')}</span>}
value={segResult?.analysis_id?.substring(0, 8) || '-'}
titleStyle={{ fontSize: 12, color: '#333', marginBottom: 4 }}
valueStyle={{ fontSize: 18, fontWeight: 600, color: '#722ED1' }}
/>
</Card>
</Col>
</Row>
</div>
<Row gutter={12}>
{/* 左侧:结果图 + 热点标记 */}
<Col span={12}>
<div
style={{
background: '#001529',
borderRadius: 8,
height: 400,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
overflow: 'hidden',
position: 'relative'
}}
>
{segResult?.image?.overlay_image_url && (
<img
src={hasResult
? "http://47.100.102.7:10101" + segResult?.image?.overlay_image_url
: URL.createObjectURL(inputFile.originFileObj)
}
style={{ maxWidth: '100%', maxHeight: '100%' }}
alt="thermal"
/>
)}
{/*{!inputFile && (
<Empty description={<span style={{ color: '#fff' }}>{t('page.uploadThermal')}</span>} image={Empty.PRESENTED_IMAGE_SIMPLE} />
)}*/}
{/* 热点标记点 */}
{hasResult && hotspots.map(hotspot => {
// 计算图片缩放比例,把原始坐标转为百分比位置
const scaleX = 100 / (segResult.image?.source_width || 4000);
const scaleY = 100 / (segResult.image?.source_height || 3000);
const left = hotspot.peak_x * scaleX;
const top = hotspot.peak_y * scaleY;
const isSelected = selectedHotspot === hotspot.hotspot_id;
return (
<div
key={hotspot.hotspot_id}
onClick={() => setSelectedHotspot(hotspot.hotspot_id)}
style={{
position: 'absolute',
left: `${left}%`,
top: `${top}%`,
transform: 'translate(-50%, -50%)',
width: isSelected ? 36 : 28,
height: isSelected ? 36 : 28,
borderRadius: '50%',
background: isSelected ? '#ff4d4f' : '#fa8c16',
color: '#fff',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 12,
fontWeight: 'bold',
cursor: 'pointer',
boxShadow: isSelected ? '0 0 0 4px rgba(255,77,79,0.4)' : '0 2px 8px rgba(0,0,0,0.3)',
border: '2px solid white',
transition: 'all 0.2s'
}}
>
{hotspot.hotspot_id}
</div>
);
})}
</div>
</Col>
{/* 右侧:点位详情 + 列表 */}
<Col span={12}>
<Card
size="small"
title={t('page.detailFixed2')}
extra={<Text type="secondary" style={{ fontSize: 11 }}>{t('page.fixed2PleaseSelect')}</Text>}
style={{ height: 400 }}
bodyStyle={{ height: 350 }}
>
{/* 总容器:垂直布局,占满卡片内容区 */}
<div style={{
width: '100%',
height: '100%',
display: 'flex',
flexDirection: 'column',
boxSizing: 'border-box',
paddingBottom: 8
}}>
{/* --------------- 上半部分:点位详情 50% --------------- */}
<div style={{
flex: 1,
minHeight: 0,
overflowY: 'auto',
paddingRight: 4,
boxSizing: 'border-box',
height: "50%"
}}>
{selectedPoint ? (
<div>
<div style={{ marginBottom: 16 }}>
<Space>
<Text strong style={{ fontSize: 14 }}>热点 {selectedPoint.hotspot_id}</Text>
<Tag color="red">{t('page.s26')}</Tag>
</Space>
</div>
{[
{ label: t('home.temperature'), value: `${selectedPoint.peak_temp_c}℃` },
{ label: t('page.s49'), value: selectedPoint.panel_id || '-' },
{ label: 'GPS', value: selectedPoint.gps?.text || '-' },
{ label: t('page.s50'), value: `${selectedPoint.peak_x}, ${selectedPoint.peak_y}` },
{ label: t('page.s51'), value: `${selectedPoint.peak_x}, ${selectedPoint.peak_y}` },
{ label: t('page.s52'), value: `${selectedPoint.area_px} px` }
].map((item, i) => (
<div key={i} style={{
display: 'flex',
justifyContent: 'space-between',
padding: '8px 0',
borderBottom: '1px dashed #eee'
}}>
<Text type="secondary">{item.label}</Text>
<Text>{item.value}</Text>
</div>
))}
</div>
) : (
<Text type="secondary" style={{ fontSize: 12, display: 'block' }}>{t('page.completeViewDetailsFixed2')}</Text>
)}
</div>
{/* 分割线 */}
<div style={{
height: 1,
background: '#eee',
margin: '12px 0',
flexShrink: 0
}} />
{/* --------------- 下半部分:热点/面板列表 50% --------------- */}
<div style={{
flex: 1,
minHeight: 0,
overflowY: 'auto',
paddingRight: 4,
boxSizing: 'border-box'
}}>
<Text strong style={{ fontSize: 13, display: 'block', marginBottom: 8 }}>{t('page.listFixed2')}</Text>
{panels.map((p, i) => (
<div
key={i}
onClick={() => {
const matchHotspot = hotspots.find(h => h.hotspot_id === i + 1);
if (matchHotspot) setSelectedHotspot(matchHotspot.hotspot_id);
}}
style={{
display: 'flex',
justifyContent: 'space-between',
padding: '8px 12px',
borderRadius: 4,
marginBottom: 4,
background: selectedHotspot === i + 1 ? '#e6f4ff' : '#fafafa',
cursor: 'pointer',
fontSize: 12
}}
>
<span>{p.label || `面板 #${i + 1}`}</span>
<span style={{ color: '#ff4d4f' }}>{p.peak_temp_c}℃</span>
</div>
))}
</div>
</div>
</Card>
</Col>
</Row>
</Card>
);
};
// 主渲染结果方法:根据算法选择不同布局
const renderResults = () => {
if (activeAlgo === 'detect') {
return renderDetectResultLayout();
} else {
return renderSegResultLayout();
}
};
return (
<div style={{ padding: '8px', background: '#f4f7f9', minHeight: '100vh' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', paddingBottom: "16px" }}>
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(18px, 1.5vw, 24px)', color: '#1D2129' }}>{t('page.s29')}</Typography.Title>
</div>
{renderStats()}
<Row gutter={12} style={{ flexWrap: 'wrap' }}>
{/* 左侧:算法列表 */}
<Col xs={24} sm={12} md={12} lg={4}>
<Card
title={<Text strong style={{ fontSize: 14 }}>{t('aiAnalysis.algorithmList')}</Text>}
bordered={false}
bodyStyle={{ padding: '8px' }}
style={{ borderRadius: 8, height: '100%' }}
extra={<Text type="secondary" style={{ fontSize: 11 }}>{t('page.2')}</Text>}
>
{algorithmList.map(algo => (
<div
key={algo.id}
onClick={() => setActiveAlgo(algo.id)}
style={{
padding: '12px',
borderRadius: 8,
cursor: 'pointer',
marginBottom: 8,
border: `1px solid ${activeAlgo === algo.id ? '#1677ff' : '#f0f0f0'}`,
background: activeAlgo === algo.id ? '#e6f4ff' : '#fff',
transition: 'all 0.3s'
}}
>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 4 }}>
<Space>
<span style={{ color: activeAlgo === algo.id ? '#1677ff' : '#666', fontSize: 16 }}>{algo.icon}</span>
<Text strong style={{ color: activeAlgo === algo.id ? '#1677ff' : '#333' }}>{algo.name}</Text>
</Space>
<Tag color="blue" size="small" style={{ margin: 0, fontSize: 10 }}>{algo.status}</Tag>
</div>
<div style={{ fontSize: 11, color: '#999', marginBottom: 4 }}>{algo.alias}</div>
<div style={{ fontSize: 11, color: '#999' }}>{algo.desc}</div>
</div>
))}
</Card>
</Col>
{/* 中间:工作区 */}
<Col xs={24} sm={24} md={12} lg={14}>
<Card
title={
<Space>
<Text strong style={{ fontSize: 14 }}>
{activeAlgo === 'detect' ? '检测任务工作区' : '热成像分割工作区'}
</Text>
<Tag color="blue" size="small">
{activeAlgo === 'detect' ? '异步任务' : '同步分析'}
</Tag>
</Space>
}
bordered={false}
bodyStyle={{ padding: '16px' }}
style={{ borderRadius: 8 }}
>
<Text type="secondary" style={{ fontSize: 11, display: 'block', marginBottom: 16 }}>
{activeAlgo === 'detect'
? '提交图片或视频检测任务,轮询状态并查看检测结果图。'
: '上传热成像图与可选 mask/geojson,同步返回叠加图和热点 JSON。'}
</Text>
{activeAlgo === 'detect' ? renderDetectWorkspace() : renderSegWorkspace()}
</Card>
{renderResults()}
</Col>
{/* 右侧:历史记录 */}
<Col xs={24} sm={12} md={12} lg={6}>
<Card
title={<Text strong style={{ fontSize: 14 }}>{t('page.fixed2HistoryAnalysis')}</Text>}
bordered={false}
bodyStyle={{ padding: '8px' }}
style={{ borderRadius: 8, height: '100%' }}
extra={<Text type="secondary" style={{ fontSize: 11 }}>{history.length} 条</Text>}
>
{history.length === 0 ? (
<Empty description={t('page.noHistoryFixed2')} image={Empty.PRESENTED_IMAGE_SIMPLE} />
) : (
history.map(item => (
<div
key={item.id}
style={{
padding: '10px',
borderRadius: 6,
border: '1px solid #f0f0f0',
marginBottom: 8,
fontSize: 12
}}
>
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 4 }}>
<Text strong>{item.name}</Text>
<Tag size="small" color={item.type === 'detect' ? 'cyan' : 'purple'}>
{item.type === 'detect' ? '检测' : '分割'}
</Tag>
</div>
<div style={{ color: '#999', fontSize: 11, marginBottom: 4 }}>ID: {item.id.substring(0, 12)}...</div>
<div style={{ color: '#ccc', fontSize: 10 }}>{item.time}</div>
</div>
))
)}
</Card>
</Col>
</Row>
</div>
);
}