在Python中使用OpenCV裁剪图像

What is Cropping?

什么是播种?

Cropping is the removal of unwanted outer areas from a photographic or illustrated image. The process usually consists of the removal of some of the peripheral areas of an image to remove extraneous trash from the picture, to improve its framing, to change the aspect ratio, or to accentuate or isolate the subject matter from its background.

裁剪是从摄影或插图图像中去除不需要的外部区域。 该过程通常包括去除图像的某些外围区域,以从图片中去除多余的垃圾,以改善其取景,改变纵横比,或者使主题与背景突出或隔离。

We will be using these functions of OpenCV - python(cv2),

我们将使用OpenCV的这些功能-python(cv2),

  1. imread(): This function is like it takes an absolute path of the file and reads the whole image, and after reading the whole image it returns us the image and we will store that image in a variable.

    imread() :此函数就像它采用文件的绝对路径并读取整个图像一样࿰

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值