Skip to main content

Human-like mouse automation using statistical models and minimum-jerk interpolation

Project description

HumanMoveMouse 🖱️

Python License

🎯 Human-like mouse automation using statistical models and minimum-jerk interpolation.


Overview

HumanMoveMouse is a human-like mouse automation tool built on over 300 real human mouse movement samples.
By extracting key statistical features from these trajectories and combining them with minimum-jerk interpolation,
the tool enables the generation of natural, smooth, and realistic cursor paths.

These paths closely mimic real human behavior and are ideal for automation tasks requiring authenticity,
such as UI testing, game botting, or user behavior simulation.


Installation

Install the required packages using pip:

pip install numpy pandas scipy scikit-learn pyautogui pygame

Core Functions & Examples

Basic Movement

Move the cursor smoothly between two points.

from human_mouse.human_mouse_controller import HumanMouseController 
controller = HumanMouseController(model_pkl="mouse_model.pkl") 
controller.move((100, 100), (800, 600)) # Move to coordinates 
controller.move_and_click((800, 600), (400, 400)) # Move and click

Parameter Tuning

Adjust trajectory smoothness and speed.

controller = HumanMouseController( 
    model_pkl="mouse_model.pkl", 
    num_points=200, 
    jitter_amplitude=0.2, 
    speed_factor=0.5, ) 

controller.move((300, 300), (900, 500))

Drag and Drop

controller.drag((500, 500), (700, 700))`

Training a Model

You can train your own model using real mouse data.
First, collect trajectory CSVs using:

csv_data_collecter/Mouse Trajectory Collecter.py

Then train a model with:

from human_mouse.human_mouse_stat_mj import train_mouse_model 
train_mouse_model("./csv_data", "mouse_model.pkl")`

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

humanmovemouse-0.1.3.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

humanmovemouse-0.1.3-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file humanmovemouse-0.1.3.tar.gz.

File metadata

  • Download URL: humanmovemouse-0.1.3.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for humanmovemouse-0.1.3.tar.gz
Algorithm Hash digest
SHA256 372c78957fa436cb165f48071173e7223f976e0c8e8abf69fbcdab9235d14743
MD5 6db88083f78f34ce565378ea5234344b
BLAKE2b-256 c0e38894cbbe0675161789cc8c5db82cc42faa9fb6b2cca0f92325833dd0184e

See more details on using hashes here.

File details

Details for the file humanmovemouse-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: humanmovemouse-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for humanmovemouse-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 daa1c133e8123f4f5fdbf73f35c950dfc2c9671215d9edf475857ec746a028aa
MD5 bb6caaba8e9bce1cab0b11a7d25334e3
BLAKE2b-256 fcd8c8feeb2c8b4650c4a2ed4e16566e19d7ceedf0b95d69cbc27686d04d9009

See more details on using hashes here.

Supported by

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