ValueError: could not broadcast input array from shape (1080,1917,3) into shape (1917,1080,3)
时间: 2024-05-31 16:07:47 浏览: 38
ValueError: Could not find a format to read the specified file in mode ‘i’
This error occurs when trying to perform an operation that requires two arrays to have the same shape, but they do not. In this specific case, the error is indicating that the input array has a shape of (1080,1917,3) while the output array has a shape of (1917,1080,3).
This error often occurs when working with images or other multi-dimensional arrays. It may occur, for example, when trying to transpose an image or reshape an array.
To fix this error, you will need to adjust the shape of the input array to match the shape of the output array. One solution is to transpose or reshape the input array to match the output array's shape. Alternatively, you may need to adjust the code to perform the operation in a way that is compatible with the input array's shape.
阅读全文