cekong

导航

Python openCV TypeError: labels data type = 18 is not supported

例如:


recvData, addr = recvSocket.recvfrom(400000)
imde = cv2.imdecode(recvData, 1)

错误,需改为

recvData, addr = recvSocket.recvfrom(400000)
recvData = np.frombuffer(recvData, dtype=np.uint8)
imde = cv2.imdecode(recvData, 1)

 

 

posted on 2019-08-27 17:19  cekong  阅读(1607)  评论(0编辑  收藏  举报