Skip to main content

It looks like calango

Project description

Calango Project

It looks like magic

Tests PyPi Publish PyPI version

Get started

Install with pip

pip install calango

or

python -m pip install calango

Mouse Interface

from calango.devices import Mouse

mouse = Mouse()

mouse.up()  # move mouse pointer [up, down, left, right, top_left, top_right ...

mouse.position = (10, 10)  # move mouse pointer to (x, y)
print(mouse.position)  # return current postion

Camera Interface

from calango.devices import Capture
import cv2

cam = Capture()
while True:
    frame = next(cam)

    cv2.imshow('Window Name', frame)
    if cv2.waitKey(5) & 0xFF == 27:
        break
cam.stop()

# You can use out while context
frame = cam.frame  # current frame numpy array
cv2.imwrite('calango.png', frame)
cam.stop()  # stop capture

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calango-1.0.6.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

calango-1.0.6-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page