项目
在 GitHub 查看
cyrildiagne/screenpoint
关于
Project an image centroid to another image using OpenCV
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ScreenPoint
Finds the (x,y) coordinates of the centroid of an image (eg: a mobile phone camera image) pointing at another image (eg: a computer screen) using OpenCV SIFT.

Installation
This library only supports Python 3.6 or Python 3.7. That until SIFT becomes available again in opencv-python-contrib.
pip install screenpoint
Usage
import screenpoint
import cv2
# Load input images.
screen = cv2.imread('screen.png', 0)
view = cv2.imread('view.jpg', 0)
# Project view centroid to screen space.
# x and y are the coordinate of the `view` centroid in `screen` space.
x, y = screenpoint.project(view, screen)
See example.py for more information.
探索相关项目
加载中…