Welcome to Raspbot repository
2.Picture Cut
If we want to cut the picture. First, we need to read the image, and then get the pixel area in the array.
In the following code, the area range we selected is X: 300-500 Y: 500-700,
Because the image size is 800*800, the area we choose should not exceed this resolution.
Code path:
/home/pi/Yahboom_Project/Raspbot/1.OpenCV_course/02Geometric_transformation/02_picture_cut.ipynb
|
After running the following program, two images will be displayed in the jupyterLab control interface, that is original image and the cut image.
|
|

[Orginial picture] [Cut picture]