阿尔比恩(Albion Online)钓鱼脚本

最后编辑时间: 2021-06-15

尝试制作一个用于钓鱼脚本,关于阿尔比恩的钓鱼脚本,问题是在这个游戏中指针非常细,并且有许多不同的纹理和颜色,可以进行简单的灰度匹配在滑块的一个部分(例如,水纹理)上效果很好,有时在其他部分(树纹理)上效果,而在第三个元素上效果不佳。如果我更改为较低的阈值,它将经常激活而没有匹配。

# import the necessary packages
from collections import deque
from imutils.video import VideoStream
import numpy as np
import argparse
import cv2
import imutils
import time
from mss.linux import MSS as mss
from PIL import Image
import mss
import numpy
import pyautogui
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video",
    help="path to the (optional) video file")
ap.add_argument("-b", "--buffer", type=int, default=64,
    help="max buffer size")
args = vars(ap.parse_args())
# define the lower and upper boundaries of the "green"
# ball in the HSV color space, then initialize the
# list of tracked points
greenLower = (42, 84, 211)
greenUpper = (69, 130, 255)
blueLower = (88, 76, 255)
blueUpper = (151, 76, 255)
pts = deque(maxlen=args["buffer"])

# grab video from screen(monitor area)
with mss.mss() as sct:
monitor
= {"top": 325, "left": 4423, "width": 136, "height": 662}
while "Screen capturing":
#last_time = time.time()
#vs = numpy.array(sct.grab(monitor))
#print("fps: {}".format(1 / (time.time() - last_time)))
vs
= sct.grab(monitor)
# grab the current frame
#frame = vs
frame
= np.array(vs)
# resize the frame, blur it, and convert it to the HSV
# color space
blurred
= cv2.GaussianBlur(frame, (11, 11),

 

  1. 123
    2021-11-20 10:07:00

    用python

  2. 快乐的冬
    2106-02-07 14:28:15

    兄弟?

  3. 快乐的冬
    2106-02-07 14:28:15

    这个用什么运行?

请在下方留下您的评论