固件类型:官方提供的固件
固件文件名称:ROC-RK3588S-PC-EXT_Ubuntu20.04-Gnome-r2407_v1.1.1a
固件下载地址:ROC-RK3588S-PC-EXT_Ubuntu20.04-Gnome-r2407_v1.1.1a_230704
Log日志:微信图片_20230919164611.rar
我的需求是每秒钟采集一张图像识别
目前是Cv2Display里面做一个判断
def run(self):
while not self.is_stop:
with self.lock:
while not self.frame_complete:
self.condition.wait()
try:
if self.last < (time.time() * 1000) - 1000:
self.last = time.time() * 1000
input_para = self.module.getOutputImagePara()
data = self.frame.getActiveData()
# 帧数据转换为数组形式
img = data.reshape((input_para.vstride, input_para.hstride, 3))
print('--------------------------')
except ValueError as e:
print("Invalid image resolution!")
resolution = find_two_numbers(data.size // 3, input_para.hstride, input_para.vstride)
print("Try the recommended resolution: -o {}x{}".format(resolution[0], resolution[1]))
break
self.frame_complete = False
self.condition.notify()
采集一个rtsp的留CPU使用了百分之8
有什么好的解决办法
tchip_askquestions
微信图片_20230919164611.rar (43.6 KB)
