Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.61 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.61 KB

docs-icon

Aimlab - OpenCV POC

This repository serves as a Proof-of-Concept for myself on working with OpenCV in Python. Playing with color-spaces, masking, identifying, tracking, etc.

What was accomplished in this POC:

  1. A tool was created for fine tuning HSV lower & upper bound values
  2. Objects in the screen-capture scan-box were successfully identified
  3. A c-types controller was built for MnK events because DirectInput is slow and win32api does not work
  4. Basic logic was implemented for finding the center of each identified object and the clicking it

Technology used:

  1. mss - Very fast screenshot package
  2. c-types - Building MnK controller
  3. keyboard - Used for handling basic keyboard events
  4. pydirectinput - Finding cursor position values in a 3D scene of Aimlab
  5. opencv-python - Open Source Computer Vision handles the bulk of the project workload
  6. pygetwindow - Logic based on whether Aimlab window is active | Identify Aimlab window

Interesting Reads:

  1. OpenCV Find Contours - Link
  2. OpenCV inRange Thresholding - Link
  3. Aimbot Math - Link

Example

Aimlab-Gridshot-FINAL-720p.mp4