Project an image centroid to another image using OpenCV
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
screenpoint-0.1.2.tar.gz
(2.8 kB
view details)
File details
Details for the file screenpoint-0.1.2.tar.gz
.
File metadata
- Download URL: screenpoint-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49b63b947b71bd234a8ce175979e169522d25ceaae0e29a7ee1e5c440321837 |
|
MD5 | 9cf39b83afce24a55c1819e7f7966c62 |
|
BLAKE2b-256 | 3680824d97468d04e067567dbc0dd9cad02dbb5b2ee4e3e303c73cc9f156e3c8 |