face_recognition和图像处理中left、top、right、bottom解释

import face_recognition
face_locations = face_recognition.face_locations(demo_image, model='hog')

print(face_locations)

输出:[(426, 1429, 555, 1300), (528, 1062, 795, 795)]
上面的格式是[top, right, bottom, left]
看下面的图片知道第一张人脸的坐标
左上角坐标:(left, top) = (1300, 426)
右上角坐标:(right, bottom) = (1429, 555)
其中:
left,top为左上角的点坐标
right,bottom为右下角的点坐标

转换一下为opencv常用的:
x=left
y=top
width=right-left
height=bottom-top
在这里插入图片描述
以上参考:MFC:矩形left、right、top、bottom的表示_转载

相关推荐

  1. 图像图像处理

    2024-01-23 06:12:04       11 阅读
  2. Python图像处理计算机视觉应用

    2024-01-23 06:12:04       38 阅读
  3. 如何在MATLAB处理图像视频?

    2024-01-23 06:12:04       16 阅读
  4. 如何在Python处理图像视频?

    2024-01-23 06:12:04       18 阅读
  5. 图像处理图像分割

    2024-01-23 06:12:04       7 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-23 06:12:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-23 06:12:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-23 06:12:04       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-23 06:12:04       20 阅读

热门阅读

  1. 如何优雅的发布一个 TypeScript 软件包?

    2024-01-23 06:12:04       31 阅读
  2. TS-React:useRef 使用

    2024-01-23 06:12:04       30 阅读
  3. Mongodb 控制查询返回字段

    2024-01-23 06:12:04       34 阅读
  4. RPC教程 4.超时处理机制

    2024-01-23 06:12:04       27 阅读