image.vision\intelligent_vision\intelligent_vision.mbt

94.4% · 101 / 107 points · 641 lines

Background color reports the state of each line. Underlined characters mark exact instrumented byte offsets; hover them to inspect the visit count.

  1. 1///|
  2. 2/// # 智能视觉 intelligent_vision/intelligent_vision
  3. 3///
  4. 4/// 图像处理库子模块
  5. 5/// 图像处理库子模块 Image processing library submodule
  6. 6// 智能应用视觉(v39.0.0)
  7. 7// 自动驾驶、机器人视觉、工业检测、安防监控、农业视觉、天文图像处理
  8. 8
  9. 9///|
  10. 10/// 自动驾驶任务类型
  11. 11/// `#non_exhaustive` 表示未来可能添加新构造器
  12. 12#derive(Eq, @debug.Debug)
  13. 13#non_exhaustive
  14. 14pub(all) enum AutonomousDrivingTask {
  15. 15 LaneDetection
  16. 16 TrafficSignRecognition
  17. 17 PedestrianDetection
  18. 18 VehicleDetection
  19. 19 ObstacleDetection
  20. 20 RoadSegmentation
  21. 21 DepthEstimation
  22. 22 TrafficLightDetection
  23. 23 Unknown
  24. 24}
  25. 25
  26. 26///|
  27. 27pub extend AutonomousDrivingTask with @debug.Debug::{to_repr}
  28. 28
  29. 29///|
  30. 30pub extend AutonomousDrivingTask with Eq::{not_equal, equal}
  31. 31
  32. 32///|
  33. 33/// 机器人视觉任务类型
  34. 34/// `#non_exhaustive` 表示未来可能添加新构造器
  35. 35#derive(Eq, @debug.Debug)
  36. 36#non_exhaustive
  37. 37pub(all) enum RobotVisionTask {
  38. 38 ObjectRecognition
  39. 39 GraspDetection
  40. 40 Navigation
  41. 41 SLAM
  42. 42 HumanFollowing
  43. 43 GestureRecognition
  44. 44 FaceRecognition
  45. 45 SceneUnderstanding
  46. 46 Unknown
  47. 47}
  48. 48
  49. 49///|
  50. 50pub extend RobotVisionTask with @debug.Debug::{to_repr}
  51. 51
  52. 52///|
  53. 53pub extend RobotVisionTask with Eq::{not_equal, equal}
  54. 54
  55. 55///|
  56. 56/// 工业检测任务类型
  57. 57/// `#non_exhaustive` 表示未来可能添加新构造器
  58. 58#derive(Eq, @debug.Debug)
  59. 59#non_exhaustive
  60. 60pub(all) enum IndustrialInspectionTask {
  61. 61 DefectDetection
  62. 62 SurfaceInspection
  63. 63 DimensionMeasurement
  64. 64 AssemblyVerification
  65. 65 QualityControl
  66. 66 WeldInspection
  67. 67 PCBInspection
  68. 68 TextileInspection
  69. 69 Unknown
  70. 70}
  71. 71
  72. 72///|
  73. 73pub extend IndustrialInspectionTask with @debug.Debug::{to_repr}
  74. 74
  75. 75///|
  76. 76pub extend IndustrialInspectionTask with Eq::{not_equal, equal}
  77. 77
  78. 78///|
  79. 79/// 安防监控任务类型
  80. 80/// `#non_exhaustive` 表示未来可能添加新构造器
  81. 81#derive(Eq, @debug.Debug)
  82. 82#non_exhaustive
  83. 83pub(all) enum SecurityMonitoringTask {
  84. 84 IntrusionDetection
  85. 85 FaceRecognition
  86. 86 BehaviorAnalysis
  87. 87 CrowdCounting
  88. 88 LicensePlateRecognition
  89. 89 AbandonedObjectDetection
  90. 90 FireSmokeDetection
  91. 91 FallDetection
  92. 92 Unknown
  93. 93}
  94. 94
  95. 95///|
  96. 96pub extend SecurityMonitoringTask with @debug.Debug::{to_repr}
  97. 97
  98. 98///|
  99. 99pub extend SecurityMonitoringTask with Eq::{not_equal, equal}
  100. 100
  101. 101///|
  102. 102/// 农业视觉任务类型
  103. 103/// `#non_exhaustive` 表示未来可能添加新构造器
  104. 104#derive(Eq, @debug.Debug)
  105. 105#non_exhaustive
  106. 106pub(all) enum AgriculturalVisionTask {
  107. 107 CropDetection
  108. 108 WeedDetection
  109. 109 DiseaseDetection
  110. 110 PestDetection
  111. 111 YieldEstimation
  112. 112 SoilAnalysis
  113. 113 IrrigationMonitoring
  114. 114 HarvestReadiness
  115. 115 Unknown
  116. 116}
  117. 117
  118. 118///|
  119. 119pub extend AgriculturalVisionTask with @debug.Debug::{to_repr}
  120. 120
  121. 121///|
  122. 122pub extend AgriculturalVisionTask with Eq::{not_equal, equal}
  123. 123
  124. 124///|
  125. 125/// 天文图像处理任务类型
  126. 126/// `#non_exhaustive` 表示未来可能添加新构造器
  127. 127#derive(Eq, @debug.Debug)
  128. 128#non_exhaustive
  129. 129pub(all) enum AstronomicalImageTask {
  130. 130 StarDetection
  131. 131 GalaxyClassification
  132. 132 PlanetDetection
  133. 133 NebulaAnalysis
  134. 134 CometTracking
  135. 135 SupernovaDetection
  136. 136 CosmicRayRemoval
  137. 137 ImageStacking
  138. 138 Unknown
  139. 139}
  140. 140
  141. 141///|
  142. 142pub extend AstronomicalImageTask with @debug.Debug::{to_repr}
  143. 143
  144. 144///|
  145. 145pub extend AstronomicalImageTask with Eq::{not_equal, equal}
  146. 146
  147. 147///|
  148. 148/// 检测结果
  149. 149#derive(Eq, @debug.Debug)
  150. 150pub(all) struct DetectionResultIV {
  151. 151 class_name : String
  152. 152 confidence : Double
  153. 153 bounding_box : Array[Double]
  154. 154 class_id : Int32
  155. 155 num_detections : Int32
  156. 156}
  157. 157
  158. 158///|
  159. 159pub extend DetectionResultIV with Eq::{not_equal, equal}
  160. 160
  161. 161///|
  162. 162pub extend DetectionResultIV with @debug.Debug::{to_repr}
  163. 163
  164. 164///|
  165. 165/// 车道线检测结果
  166. 166#derive(Eq, @debug.Debug)
  167. 167pub(all) struct LaneDetectionResult {
  168. 168 lanes : Array[Array[Array[Double]]]
  169. 169 num_lanes : Int32
  170. 170 lane_type : String
  171. 171 confidence : Double
  172. 172 curvature : Double
  173. 173}
  174. 174
  175. 175///|
  176. 176pub extend LaneDetectionResult with Eq::{not_equal, equal}
  177. 177
  178. 178///|
  179. 179pub extend LaneDetectionResult with @debug.Debug::{to_repr}
  180. 180
  181. 181///|
  182. 182/// 交通标志识别结果
  183. 183#derive(Eq, @debug.Debug)
  184. 184pub(all) struct TrafficSignResult {
  185. 185 sign_type : String
  186. 186 sign_value : String
  187. 187 confidence : Double
  188. 188 bounding_box : Array[Double]
  189. 189 num_signs : Int32
  190. 190}
  191. 191
  192. 192///|
  193. 193pub extend TrafficSignResult with Eq::{not_equal, equal}
  194. 194
  195. 195///|
  196. 196pub extend TrafficSignResult with @debug.Debug::{to_repr}
  197. 197
  198. 198///|
  199. 199/// 缺陷检测结果
  200. 200#derive(Eq, @debug.Debug)
  201. 201pub(all) struct DefectDetectionResult {
  202. 202 defect_type : String
  203. 203 severity : String
  204. 204 confidence : Double
  205. 205 bounding_box : Array[Double]
  206. 206 defect_area : Double
  207. 207 num_defects : Int32
  208. 208}
  209. 209
  210. 210///|
  211. 211pub extend DefectDetectionResult with Eq::{not_equal, equal}
  212. 212
  213. 213///|
  214. 214pub extend DefectDetectionResult with @debug.Debug::{to_repr}
  215. 215
  216. 216///|
  217. 217/// 入侵检测结果
  218. 218#derive(Eq, @debug.Debug)
  219. 219pub(all) struct IntrusionDetectionResult {
  220. 220 is_intrusion : Bool
  221. 221 confidence : Double
  222. 222 intrusion_region : Array[Double]
  223. 223 object_type : String
  224. 224 timestamp : Double
  225. 225 num_intrusions : Int32
  226. 226}
  227. 227
  228. 228///|
  229. 229pub extend IntrusionDetectionResult with Eq::{not_equal, equal}
  230. 230
  231. 231///|
  232. 232pub extend IntrusionDetectionResult with @debug.Debug::{to_repr}
  233. 233
  234. 234///|
  235. 235/// 作物检测结果
  236. 236#derive(Eq, @debug.Debug)
  237. 237pub(all) struct CropDetectionResult {
  238. 238 crop_type : String
  239. 239 health_status : String
  240. 240 confidence : Double
  241. 241 bounding_box : Array[Double]
  242. 242 growth_stage : String
  243. 243 num_crops : Int32
  244. 244}
  245. 245
  246. 246///|
  247. 247pub extend CropDetectionResult with Eq::{not_equal, equal}
  248. 248
  249. 249///|
  250. 250pub extend CropDetectionResult with @debug.Debug::{to_repr}
  251. 251
  252. 252///|
  253. 253/// 星体检测结果
  254. 254#derive(Eq, @debug.Debug)
  255. 255pub(all) struct StarDetectionResult {
  256. 256 stars : Array[Array[Double]]
  257. 257 num_stars : Int32
  258. 258 magnitudes : Array[Double]
  259. 259 brightest_star : Array[Double]
  260. 260 sky_background : Double
  261. 261}
  262. 262
  263. 263///|
  264. 264pub extend StarDetectionResult with Eq::{not_equal, equal}
  265. 265
  266. 266///|
  267. 267pub extend StarDetectionResult with @debug.Debug::{to_repr}
  268. 268
  269. 269///|
  270. 270/// 智能视觉配置
  271. 271#derive(Eq, @debug.Debug)
  272. 272pub(all) struct IntelligentVisionConfig {
  273. 273 confidence_threshold : Double
  274. 274 nms_threshold : Double
  275. 275 max_detections : Int32
  276. 276 input_size : Int32
  277. 277 use_gpu : Bool
  278. 278 model_type : String
  279. 279}
  280. 280
  281. 281///|
  282. 282pub extend IntelligentVisionConfig with Eq::{not_equal, equal}
  283. 283
  284. 284///|
  285. 285pub extend IntelligentVisionConfig with @debug.Debug::{to_repr}
  286. 286
  287. 287///|
  288. 288/// 创建默认智能视觉配置
  289. 289pub fn create_default_intelligent_vision_config() -> IntelligentVisionConfig {
  290. 290● IntelligentVisionConfig::{
  291. 291 confidence_threshold: 0.5,
  292. 292 nms_threshold: 0.45,
  293. 293 max_detections: 100,
  294. 294 input_size: 640,
  295. 295 use_gpu: false,
  296. 296 model_type: "yolov8",
  297. 297 }
  298. 298}
  299. 299
  300. 300///|
  301. 301/// 通用目标检测(简化版)
  302. 302pub fn detect_objects_iv(
  303. 303 image : @types.Image,
  304. 304 config : IntelligentVisionConfig,
  305. 305) -> Array[DetectionResultIV] {
  306. 306● let w = image.width
  307. 307 let h = image.height
  308. 308 let results : Array[DetectionResultIV] = []
  309. 309
  310. 310 // 简化的检测:基于高对比度区域
  311. 311 let grid_size = 64
  312. 312 let mut detection_count = 0
  313. 313
  314. 314 for gy in 0..<(h / grid_size) {
  315. 315● for gx in 0..<(w / grid_size) {
  316. 316● if detection_count >= config.max_detections {
  317. 317● break
  318. 318 }
  319. 319
  320. 320 // 计算区域对比度
  321. 321 let mut sum = 0.0
  322. 322 let mut sum_sq = 0.0
  323. 323 let count = grid_size * grid_size
  324. 324 for y in 0..<grid_size {
  325. 325● for x in 0..<grid_size {
  326. 326● let idx = (gy * grid_size + y) * w + (gx * grid_size + x)
  327. 327● let v = image.data[idx].to_double()
  328. 328 sum += v
  329. 329 sum_sq += v * v
  330. 330 }
  331. 331 }
  332. 332● let mean = sum / count.to_double()
  333. 333● let variance = sum_sq / count.to_double() - mean * mean
  334. 334● let std_dev = if variance > 0.0 { variance.sqrt() } else { 0.0 }
  335. 335
  336. 336 if std_dev > 30.0 {
  337. 337● let confidence = if std_dev > 50.0 { 0.8 } else { 0.6 }
  338. 338 if confidence >= config.confidence_threshold {
  339. 339● let bx = gx.to_double() * grid_size.to_double()
  340. 340● let by = gy.to_double() * grid_size.to_double()
  341. 341● let bw = grid_size.to_double()
  342. 342● let bh = grid_size.to_double()
  343. 343 let bbox : Array[Double] = [bx, by, bw, bh]
  344. 344● results.push(DetectionResultIV::{
  345. 345 class_name: "object",
  346. 346 confidence,
  347. 347 bounding_box: bbox,
  348. 348 class_id: 0,
  349. 349 num_detections: 1,
  350. 350 })
  351. 351 detection_count += 1
  352. 352 }
  353. 353 }
  354. 354 }
  355. 355 }
  356. 356
  357. 357 results
  358. 358}
  359. 359
  360. 360///|
  361. 361/// 车道线检测(简化版)
  362. 362pub fn detect_lanes(
  363. 363 image : @types.Image,
  364. 364 config : IntelligentVisionConfig,
  365. 365) -> LaneDetectionResult {
  366. 366● ignore(config)
  367. 367 let w = image.width
  368. 368 let h = image.height
  369. 369 let lanes : Array[Array[Array[Double]]] = []
  370. 370
  371. 371 // 简化的车道线检测:基于底部区域的边缘检测
  372. 372 let roi_height = h / 3
  373. 373 let roi_y = h - roi_height
  374. 374
  375. 375 // 左车道线
  376. 376 let left_lane : Array[Array[Double]] = []
  377. 377 for i in 0..<10 {
  378. 378● let y = roi_y + i * (roi_height / 10)
  379. 379 let x = w / 4 + i * 5
  380. 380● left_lane.push([x.to_double(), y.to_double()])
  381. 381 }
  382. 382● lanes.push(left_lane)
  383. 383
  384. 384 // 右车道线
  385. 385 let right_lane : Array[Array[Double]] = []
  386. 386 for i in 0..<10 {
  387. 387● let y = roi_y + i * (roi_height / 10)
  388. 388 let x = 3 * w / 4 - i * 5
  389. 389● right_lane.push([x.to_double(), y.to_double()])
  390. 390 }
  391. 391● lanes.push(right_lane)
  392. 392
  393. 393 LaneDetectionResult::{
  394. 394 lanes,
  395. 395 num_lanes: 2,
  396. 396 lane_type: "solid",
  397. 397 confidence: 0.7,
  398. 398 curvature: 0.05,
  399. 399 }
  400. 400}
  401. 401
  402. 402///|
  403. 403/// 交通标志识别(简化版)
  404. 404pub fn recognize_traffic_signs(
  405. 405 image : @types.Image,
  406. 406 config : IntelligentVisionConfig,
  407. 407) -> Array[TrafficSignResult] {
  408. 408● let results : Array[TrafficSignResult] = []
  409. 409● let detections = detect_objects_iv(image, config)
  410. 410
  411. 411 for det in detections {
  412. 412● let sign_type = if det.confidence > 0.7 { "speed_limit" } else { "warning" }
  413. 413● let sign_value = if sign_type == "speed_limit" { "60" } else { "caution" }
  414. 414
  415. 415● results.push(TrafficSignResult::{
  416. 416 sign_type,
  417. 417 sign_value,
  418. 418 confidence: det.confidence,
  419. 419 bounding_box: det.bounding_box,
  420. 420 num_signs: 1,
  421. 421 })
  422. 422 }
  423. 423
  424. 424 results
  425. 425}
  426. 426
  427. 427///|
  428. 428/// 缺陷检测(简化版)
  429. 429pub fn detect_defects(
  430. 430 image : @types.Image,
  431. 431 config : IntelligentVisionConfig,
  432. 432) -> Array[DefectDetectionResult] {
  433. 433● let results : Array[DefectDetectionResult] = []
  434. 434● let detections = detect_objects_iv(image, config)
  435. 435
  436. 436 for det in detections {
  437. 437● let defect_type = if det.confidence > 0.7 { "crack" } else { "scratch" }
  438. 438 let severity = if det.confidence > 0.8 {
  439. 439○ "high"
  440. 440● } else if det.confidence > 0.6 {
  441. 441● "medium"
  442. 442 } else {
  443. 443● "low"
  444. 444 }
  445. 445
  446. 446● results.push(DefectDetectionResult::{
  447. 447 defect_type,
  448. 448 severity,
  449. 449 confidence: det.confidence,
  450. 450 bounding_box: det.bounding_box,
  451. 451 defect_area: det.bounding_box[2] * det.bounding_box[3],
  452. 452 num_defects: 1,
  453. 453 })
  454. 454 }
  455. 455
  456. 456 results
  457. 457}
  458. 458
  459. 459///|
  460. 460/// 入侵检测(简化版)
  461. 461pub fn detect_intrusion(
  462. 462 image : @types.Image,
  463. 463 roi : Array[Double],
  464. 464 config : IntelligentVisionConfig,
  465. 465) -> IntrusionDetectionResult {
  466. 466● let detections = detect_objects_iv(image, config)
  467. 467 let mut is_intrusion = false
  468. 468 let mut intrusion_region : Array[Double] = []
  469. 469 let mut object_type = "none"
  470. 470 let mut max_confidence = 0.0
  471. 471
  472. 472 for det in detections {
  473. 473 // 检查检测框是否与ROI重叠
  474. 474● let x1 = det.bounding_box[0]
  475. 475 let y1 = det.bounding_box[1]
  476. 476 let x2 = x1 + det.bounding_box[2]
  477. 477 let y2 = y1 + det.bounding_box[3]
  478. 478
  479. 479 let roi_x1 = roi[0]
  480. 480 let roi_y1 = roi[1]
  481. 481 let roi_x2 = roi[0] + roi[2]
  482. 482 let roi_y2 = roi[1] + roi[3]
  483. 483
  484. 484 let overlap_x = if x2 > roi_x1 && x1 < roi_x2 {
  485. 485◐ let min_x2 = if x2 < roi_x2 { x2 } else { roi_x2 }
  486. 486◐ let max_x1 = if x1 > roi_x1 { x1 } else { roi_x1 }
  487. 487 min_x2 - max_x1
  488. 488 } else {
  489. 489● 0.0
  490. 490 }
  491. 491
  492. 492 let overlap_y = if y2 > roi_y1 && y1 < roi_y2 {
  493. 493◐ let min_y2 = if y2 < roi_y2 { y2 } else { roi_y2 }
  494. 494◐ let max_y1 = if y1 > roi_y1 { y1 } else { roi_y1 }
  495. 495 min_y2 - max_y1
  496. 496 } else {
  497. 497● 0.0
  498. 498 }
  499. 499
  500. 500 if overlap_x > 0.0 && overlap_y > 0.0 {
  501. 501● is_intrusion = true
  502. 502 intrusion_region = det.bounding_box
  503. 503 object_type = det.class_name
  504. 504 if det.confidence > max_confidence {
  505. 505● max_confidence = det.confidence
  506. 506 }
  507. 507 }
  508. 508 }
  509. 509
  510. 510 IntrusionDetectionResult::{
  511. 511 is_intrusion,
  512. 512 confidence: max_confidence,
  513. 513 intrusion_region,
  514. 514 object_type,
  515. 515 timestamp: 0.0,
  516. 516 num_intrusions: if is_intrusion {
  517. 517● 1
  518. 518 } else {
  519. 519● 0
  520. 520 },
  521. 521 }
  522. 522}
  523. 523
  524. 524///|
  525. 525/// 作物检测(简化版)
  526. 526pub fn detect_crops(
  527. 527 image : @types.Image,
  528. 528 config : IntelligentVisionConfig,
  529. 529) -> Array[CropDetectionResult] {
  530. 530● let results : Array[CropDetectionResult] = []
  531. 531● let detections = detect_objects_iv(image, config)
  532. 532
  533. 533 for det in detections {
  534. 534● let crop_type = if det.confidence > 0.7 { "wheat" } else { "corn" }
  535. 535 let health_status = if det.confidence > 0.8 {
  536. 536○ "healthy"
  537. 537● } else if det.confidence > 0.6 {
  538. 538● "moderate"
  539. 539 } else {
  540. 540● "stressed"
  541. 541 }
  542. 542● let growth_stage = if det.confidence > 0.7 { "mature" } else { "growing" }
  543. 543
  544. 544● results.push(CropDetectionResult::{
  545. 545 crop_type,
  546. 546 health_status,
  547. 547 confidence: det.confidence,
  548. 548 bounding_box: det.bounding_box,
  549. 549 growth_stage,
  550. 550 num_crops: 1,
  551. 551 })
  552. 552 }
  553. 553
  554. 554 results
  555. 555}
  556. 556
  557. 557///|
  558. 558/// 星体检测(简化版)
  559. 559pub fn detect_stars(
  560. 560 image : @types.Image,
  561. 561 config : IntelligentVisionConfig,
  562. 562) -> StarDetectionResult {
  563. 563● ignore(config)
  564. 564 let w = image.width
  565. 565 let h = image.height
  566. 566 let _ = w * h
  567. 567 let stars : Array[Array[Double]] = []
  568. 568 let magnitudes : Array[Double] = []
  569. 569
  570. 570 // 简化的星体检测:寻找亮像素
  571. 571 let threshold = 200.0
  572. 572 let mut brightest : Array[Double] = [0.0, 0.0]
  573. 573 let mut max_brightness = 0.0
  574. 574 let mut background_sum = 0.0
  575. 575 let mut background_count = 0
  576. 576
  577. 577 for y in 0..<h {
  578. 578● for x in 0..<w {
  579. 579● if y % 2 == 0 && x % 2 == 0 {
  580. 580● let idx = y * w + x
  581. 581● let brightness = image.data[idx].to_double()
  582. 582
  583. 583 if brightness > threshold {
  584. 584● let star_pos : Array[Double] = [x.to_double(), y.to_double()]
  585. 585● stars.push(star_pos)
  586. 586 let magnitude = 25.0 - brightness / 10.0
  587. 587● magnitudes.push(magnitude)
  588. 588
  589. 589 if brightness > max_brightness {
  590. 590● max_brightness = brightness
  591. 591● brightest = [x.to_double(), y.to_double()]
  592. 592 }
  593. 593 } else {
  594. 594● background_sum += brightness
  595. 595 background_count += 1
  596. 596 }
  597. 597 }
  598. 598 }
  599. 599 }
  600. 600
  601. 601 let sky_background = if background_count > 0 {
  602. 602● background_sum / background_count.to_double()
  603. 603 } else {
  604. 604● 0.0
  605. 605 }
  606. 606
  607. 607 StarDetectionResult::{
  608. 608 stars,
  609. 609● num_stars: stars.length(),
  610. 610 magnitudes,
  611. 611 brightest_star: brightest,
  612. 612 sky_background,
  613. 613 }
  614. 614}
  615. 615
  616. 616///|
  617. 617/// 生成智能视觉报告
  618. 618pub fn intelligent_vision_report_to_string(
  619. 619 task_name : String,
  620. 620 num_results : Int32,
  621. 621 avg_confidence : Double,
  622. 622 config : IntelligentVisionConfig,
  623. 623) -> String {
  624. 624● let mut report = "## 智能视觉报告\n\n"
  625. 625 report = report + "### 任务信息\n\n"
  626. 626 report = report + "| 指标 | 值 |\n|------|------|\n"
  627. 627 report = report + "| 任务类型 | " + task_name + " |\n"
  628. 628● report = report + "| 检测数量 | " + num_results.to_string() + " |\n"
  629. 629 report = report +
  630. 630 "| 平均置信度 | " +
  631. 631● (avg_confidence * 100.0).to_string() +
  632. 632 "% |\n"
  633. 633 report = report +
  634. 634 "| 置信度阈值 | " +
  635. 635● (config.confidence_threshold * 100.0).to_string() +
  636. 636 "% |\n"
  637. 637 report = report + "| 模型类型 | " + config.model_type + " |\n"
  638. 638● report = report + "| 输入尺寸 | " + config.input_size.to_string() + " |\n"
  639. 639
  640. 640 report
  641. 641}