The size of all images is (1080, 1920, 3). I want to crop the image from right to left side like (500, 500, 3). I've tried with follwing code:
img = img[0:500, 0:500] #y, x
As far as I know it work from left to right. And also need crop middle of the portion that called ROI and it'll size also (500, 500, 3).
How can do these work?
->(Q.1)
1920
--------------
|            |
|     500    |
|     -------|  
|     |      |
|     |      | 
|     -------|500
|     0      |
|            |
--------------
0            1080
->(Q.2)
    1920
--------------
|            |
|     500    |
|  -------   |
|  |     |   |
|  |     |   |
|  -------500|
|     0      |
|            |
--------------
0            1080
 
     
    