The row_idx should be divided by width, not height. The scale factors for mapping back to the resized image should be switched.
Since the height and the width are the same in the cropped image and the resized image, this error has no negative impact on running in the current version.
The row_idx should be divided by width, not height. The scale factors for mapping back to the resized image should be switched. Since the height and the width are the same in the cropped image and the resized image, this error has no negative impact on running in the current version.