以下三种读取方式,b,c 是conda环境的labelimg的读取图片方式
a是labelimg.exe 离线版本的读取方式
电科院等其他三方标注平台标注的工具通常是离线标注,读取图片采用a的方式进行读取
a = cv2.imdecode(np.fromfile(img1,dtype=np.uint8), -1)
b = cv2.imread(img1)
c = cv2.imdecode(np.fromfile(img1,dtype=np.uint8),flags=cv2.IMREAD_COLOR)
image.png