nn-mouse
Neural network based humanized mouse movements. The models in this projects are from https://github.com/DaiCapra/Natural-Mouse-Movements-Neural-Networks
Demo
Installation
You can install the package via pip:
pip install nn-mouse[opencv] mouse
or
pip install nn-mouse[opencv-contrib] mouse
Note: Any mouse module that can parse the current location of the mouse and move the mouse can be used. In this example, https://github.com/boppreh/mouse is used.
Usage
import time
import mouse
from nn_mouse import get_path
# monitor size
w, h = 1920, 1080
# current location
x, y = mouse.get_position()
# destination location
x1, y1 = 435, 578
# get the path of the movement
path = get_path(x, y, x1, y1, w, h)
# [
# (614.0211354717612, 247.95467158179963, 7.2918200492858884e-06),
# (605.374471783638, 262.2269676923752, 0.0002616463661193848),
# (605.2463676929474, 262.5907788351178, 0.00032121673583984374),
# (605.0176306962967, 263.15670113265514, 0.00036980979919433595),
# (604.8388337492943, 264.25625159591436, 0.0004095515823364258),
# ...
# ]
# move the mouse based on the path
for x, y, t in path:
mouse.move(x, y)
time.sleep(t)
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for nn-mouse 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nn_mouse-1.0.2.tar.gz | 843.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nn_mouse-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / nn_mouse-1.0.2.tar.gz
| Download URL | nn_mouse-1.0.2.tar.gz |
|---|---|
| Size | 843.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e17c5e8acbc0b7ab6a0c54e871181f34f0f5e83b1b8f4987ff98c23469494e27
|
|
BLAKE2b-256 checksum How to use checksums |
5b5ff28bf30d6b0e47d7e065fa1bbe93b2e062e99ff01507b73b7c0c37cbc6a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / nn_mouse-1.0.2-py3-none-any.whl
| Download URL | nn_mouse-1.0.2-py3-none-any.whl |
|---|---|
| Size | 841.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0290df21bc0f28883afc6bd2b3b7ef266c907f5b64dfa249ade1e935c7b1907
|
|
BLAKE2b-256 checksum How to use checksums |
bb037dd380e237fd431a7798b400e6a7149f3162cf51643b8e052fd9f0787b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for nn-mouse 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.