cv2dnnNMSBoxesboxes confidences 025 045 Cant convert vector element for scores index=0
The error message suggests that there is an issue with the 'scores' parameter in the cv2.dnn.NMSBoxes function.
The 'scores' parameter should be a vector or array of floating-point values representing the confidence scores for each bounding box. However, it seems that the element at index 0 of the 'scores' parameter cannot be converted to a float.
To resolve this issue, you can check the 'confidences' array or vector to ensure that the values are correctly formatted and can be converted to floats. Make sure that the 'confidences' array contains valid confidence scores for each corresponding bounding box.
If the issue persists, you can provide more information about the input data, such as the values in the 'confidences' array, the shape of the arrays, or any pre-processing steps you have applied before passing them to the NMSBoxes function
原文地址: https://www.cveoy.top/t/topic/iagE 著作权归作者所有。请勿转载和采集!