连接的是logi的720P USB摄像头
可以使用usb_camera_snap.py拍照
无法使用usb_camera_fcos.py
Image saved as img.jpg
sunrise@ubuntu:/app/pydev_demo/02_usb_camera_sample$ Deinit vdsp core 0 smmu failed, return -17Deinit vdsp core 0 smmu failed, return -17^C
sunrise@ubuntu:/app/pydev_demo/02_usb_camera_sample$ ^C
sunrise@ubuntu:/app/pydev_demo/02_usb_camera_sample$ ^C
sunrise@ubuntu:/app/pydev_demo/02_usb_camera_sample$ ^C
sunrise@ubuntu:/app/pydev_demo/02_usb_camera_sample$ python3 usb_camera_fcos.py
[UCP]: log level = 3
[UCP]: UCP version = 3.3.3
[VP]: log level = 3
[DNN]: log level = 3
[HPL]: log level = 3
[UCPT]: log level = 6
[DSP]: log level = 3
[E][4993][07-01][10:38:15:771][configuration.h:107][python3][DSP] Init vdsp core 0 smmu failed, return -1
[BPU][[BPU_MONITOR]][281473420887744][INFO]BPULib verison(2, 1, 2)[0d3f195]!
[DNN] HBTL_EXT_DNN log level:6
[DNN]: 3.3.3_(4.1.17 HBRT)
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1318]Preparing model tensors…
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1319]Number of input tensors: 2
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1320]Number of output tensors: 15
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 0: 1310720 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 1: 327680 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 2: 81920 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 3: 20480 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 4: 5120 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 5: 65536 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 6: 16384 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 7: 4096 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 8: 1024 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 9: 256 bytes
2025/07/01 10:38:16.423 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 10: 16384 bytes
2025/07/01 10:38:16.424 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 11: 4096 bytes
2025/07/01 10:38:16.424 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 12: 1024 bytes
2025/07/01 10:38:16.424 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 13: 256 bytes
2025/07/01 10:38:16.424 !INFO [prepare_model_tensor][1421]Memory allocated for output tensor 14: 128 bytes
2025/07/01 10:38:16.424 !INFO [prepare_model_tensor][1424]Model tensor preparation completed successfully.
tensor type: uint8
data type: uint32
layout: NHWC
shape: (1, 512, 512, 1)
15
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 80, 64, 64)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 80, 32, 32)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 80, 16, 16)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 80, 8, 8)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 80, 4, 4)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 4, 64, 64)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 4, 32, 32)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 4, 16, 16)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 4, 8, 8)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 4, 4, 4)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 1, 64, 64)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 1, 32, 32)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 1, 16, 16)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 1, 8, 8)
tensor type: int32
data type: int32
layout: NHWC
shape: (1, 1, 4, 4)
Opening video device: /dev/video0
Open usb camera successfully
2025/07/01 10:38:17.612 !WARN [Display_display][0803]Warning: Using vot_chn values 0-3 is deprecated. Defaulting to HDMI mode.
2025/07/01 10:38:17.612 !WARN [Display_display][0804]Please use the new method: pass 10 for DisplayPort (DP) or 11 for HDMI.
2025/07/01 10:38:17.612 !INFO [OpenDisplay][0111]Wayland is available, using Wayland for rendering.
Using default socket path: /run/user/1000/wayland-0
Corrupt JPEG data: 3 extraneous bytes before marker 0xd6
2025/07/01 10:38:20.056 !WARN [operator()][0091]Aligned size (32 elements) > Shape size (16 elements). Using 1D array.
Traceback (most recent call last):
File “/app/pydev_demo/02_usb_camera_sample/usb_camera_fcos.py”, line 336, in
result_str = get_Postprocess_result(output_tensors,len(models[0].outputs), ctypes.pointer(fcos_postprocess_info)).decode(‘utf-8’)
AttributeError: ‘NoneType’ object has no attribute ‘decode’
[E][4993][07-01][10:38:20:187][configuration.h:120][python3][DSP] Deinit vdsp core 0 smmu failed, return -17
请大佬帮忙看看,解决有奖,赠送衣服及周边。