sunrise@ubuntu:/app/ai_inference/05_web_display_camera_sample$ sudo python3 mipi_camera_web.py
[C][3690][07-30][12:18:04:931][configuration.cpp:51][EasyDNN]EasyDNN version: 0.3.5
[BPU_PLAT]BPU Platform Version(1.3.1)!
[HBRT] set log level as 0. version = 3.13.27
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
ioctl write error, ret = -1 error = 121
keros_i2c_write failed
ioctl write error, ret = -1 error = 121
keros_i2c_write failed
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
ioctl read error, ret = -1 error = 121
keros_i2c_read failed
[000:000] (keros_util.cpp:99): keros_authentication failed, ret = 0
[000:000] (configuration.cpp:147): Keros key init failed.
[DNN] Runtime version = 1.8.4_(3.13.27 HBRT)
[HorizonRT] The model builder version = 1.5.2
start ptf 547151053280
[[ 1.14109039e+01 -7.75694847e-01 1.92137901e+03 1.08148106e+03
5.20426929e-01 5.90000000e+01]
[ 1.26648331e+01 7.12396860e+00 1.90858910e+03 1.08148106e+03
6.30833447e-01 0.00000000e+00]
[ 5.28334923e+02 2.97700369e+02 6.81968465e+02 4.48379423e+02
5.37012875e-01 1.40000000e+01]]
Error: no vps chn can be get
[x3_venc_file]:[612]:Invalid image address!
connection handler failed
TypeError: expected bytes, NoneType found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py”, line 232, in handler
await self.ws_handler(self)
File “/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py”, line 1146, in _ws_handler
return await cast(
File “mipi_camera_web.py”, line 249, in web_service
enc.encode_file(origin_image)
SystemError: <method ‘encode_file’ of ‘libsrcampy.Encoder’ objects> returned a result with an error set
[[5.28334923e+02 2.97700369e+02 6.81968465e+02 4.46163551e+02
5.52025557e-01 1.40000000e+01]
[1.26648331e+01 7.12396860e+00 1.90858910e+03 1.08148106e+03
6.31318271e-01 0.00000000e+00]]
Error: no vps chn can be get
[x3_venc_file]:[612]:Invalid image address!
connection handler failed
TypeError: expected bytes, NoneType found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py”, line 232, in handler
await self.ws_handler(self)
File “/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py”, line 1146, in _ws_handler
return await cast(
File “mipi_camera_web.py”, line 249, in web_service
enc.encode_file(origin_image)
SystemError: <method ‘encode_file’ of ‘libsrcampy.Encoder’ objects> returned a result with an error set
检测摄像头正常