首页 > 解决方案 > MTCNN 没有为 bbox 提供正确的输出

问题描述

嗨,我一直在运行我自己的图像数据集的链接上显示的这个笔记本教程。但是,当我运行这段代码时,我的 bbox 的形状是 (0,5) 而不是 (1,5)。对此有什么解释,我该如何解决?


#image = cv2.imread('test/6.jpg')
image = cv2.imread('train_data/train/class1/CB6320R.jpg')


input = np.copy(image)

bboxes = create_mtcnn_net(input, (50, 15), device, p_model_path='MTCNN/weights/pnet_Weights', 
          o_model_path='MTCNN/weights/onet_Weights')
bboxes.shape
output: (0,5)

链接到 LPRNET MTCNN 汽车检测板教程

标签: image-processingconv-neural-networkimage-recognitionbounding-box

解决方案


推荐阅读