陈可以
陈可以
> replace the code line, > > `rgb_small_frame = small_frame[:, :, ::-1] ` with below code line, > > `rgb_small_frame = cv2.cvtColor(small_frame, cv2.COLOR_BGR2RGB) ` 这对我有所帮助,It works for me.
> 这个错误本质是你推流的时候一端在读,一端在写,你已经没有可以写的帧了还在往里写导致的。 本质是循环判断有毛病,前面的issue中也提到过我不知道官方为什么过一个版本了仍不修改。 摄像头检测很多时候都是空帧会导致queue消耗太快提前终止循环。 deploy/pipeline/pipeline.py里修改这一段: > > ``` > framequeue = queue.Queue(10) > thread = threading.Thread( > target=self.capturevideo, args=(capture, framequeue)) > thread.start() > time.sleep(1) > > while (not framequeue.empty()): >...