Screenpoint
Project an image centroid to another image using OpenCV
Install / Use
/learn @cyrildiagne/ScreenpointREADME
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.
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
