Python Forum
Detect event by motion/image - Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detect event by motion/image - Help
#1
Hi.

Im trying to manipulate a event happening in a game. The event is a fishing script, where a vertical line slides from side to side and my goal is to detect when the vertical line is over the green area and then use pyautogui to press a key to complete the task. But Im fairly new to python and Im not sure how to grab this on. I have looked into cv2 but not sure if thats the right thing to start out with?

Heres a picture of what im talking about
[Image: 76327d66df16aeae86e2b1e16a0b5af5.png]
Sidenote: the area with green, yellow and red changes from time to time after each event. So it cant be manipulated with simple macroing
[Image: b7977c691bb7daca5cd6387f4e297f36.png]

Thanks in advance Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  motion tracking script ig? k4ne 0 475 Dec-13-2023, 02:00 AM
Last Post: k4ne
  Howto do motion event on solely window and not the widgets on it? janeik 3 849 Jul-11-2023, 12:10 AM
Last Post: deanhystad
  Creating Data Set for Changing Oscillation Motion jcraw77 0 1,593 Jun-19-2020, 12:25 AM
Last Post: jcraw77
  how to detect horizontal dotted lines in an image using OpenCV pframe 0 4,885 Apr-15-2020, 08:53 PM
Last Post: pframe
  Detection Motion Program Adek1243 11 4,374 Mar-23-2020, 10:12 AM
Last Post: Adek1243
  Is there a way to detect the text font, size and color from an image in python? Maia07 2 8,677 Aug-23-2018, 01:16 PM
Last Post: Maia07
  Simple python script for pir motion sensor Kimzer 0 4,079 Oct-03-2017, 05:36 PM
Last Post: Kimzer
  Help with circle and motion wigigx 4 4,062 Aug-29-2017, 09:49 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020