Intelligent-Traffic-Based-On-CV icon indicating copy to clipboard operation
Intelligent-Traffic-Based-On-CV copied to clipboard

运行server.selector.py时报错

Open Zhouming2312 opened this issue 2 years ago • 1 comments

你好,当我运行server.selector.py时,成功监听本地127.0.0.1 10001后,开始waiting for I/O,当代码运行到和rtmp服务器连接成功返回cap init is completed后,就报can't pickle _thread.lock objects,如下图所示: image

当我把process.start()改为process.run()后,代码可以跑,但是似乎无法开启多进程,只会一直返回waiting for I/O。

不知道您当时有没有遇到这个问题,希望能得到您的回复。

Zhouming2312 avatar May 25 '22 00:05 Zhouming2312

print('waiting for I/O')注释掉,再看看readVideo()是否在读取视频帧,打印看看是否有数据

Kevinnan-teen avatar May 25 '22 19:05 Kevinnan-teen