error: (-209) The operation is neither 'array op array' (where arrays have the same size and type),
nor 'array op scalar', nor 'scalar op array' in function cv::binary_op
解决办法:将输入数据转换为np.uint8类型,如
img = img.astype(np.uint8)
error: (-209) The operation is neither 'array op array' (where arrays have the same size and type),
nor 'array op scalar', nor 'scalar op array' in function cv::binary_op
解决办法:将输入数据转换为np.uint8类型,如
img = img.astype(np.uint8)