2020
09-24
09-24
python目标检测给图画框,bbox画到图上并保存案例
我就废话不多说了,还是直接上代码吧!importosimportxml.dom.minidomimportcv2ascvImgPath='C:/Users/49691/Desktop/gangjin/gangjin_test/JPEGImages/'AnnoPath='C:/Users/49691/Desktop/gangjin/gangjin_test/Annotations/'#xml文件地址save_path=''defdraw_anchor(ImgPath,AnnoPath,save_path):imagelist=os.listdir(ImgPath)forimageinimagelist:image_pre,ext=os.path.splitext(image)im...
继续阅读 >