【Auto】原神⭐钓鱼辅助工具 | 自动收竿、校准游标 | ✨您只需要抛出鱼竿,我们会帮你完成一切✨

Overview

原神钓鱼辅助工具

作者正在努力重构代码中……会尽快带给大家一个更完美的脚本

「您只需抛出鱼竿,然后我们会帮您搞定一切」

  • 如果你觉得这个脚本好用,请点一个 Star,你的 Star 就是作者更新最大的动力

欢迎大家在 Issues 中分享自己的配置文件

也祝各位早日钓到精五鱼叉

这个脚本有什么特色?

  • 直接在游戏画面上通过叠加层显示信息,直截了当,便于调试

    • 游戏中按下 Alt + 小键盘「.」 来显示/隐藏叠加层
  • 使用相对距离定位进度条,不会因为 ui 布局变化而影响检测效果

  • 当配置文件正确时,拥有接近 100% 的检测准确率

  • 可使用快捷键直接对选区截图,方便您构造自己的配置文件

使用教程:

💡 Release 版本现已发布,下载后直接解压即可使用,点击这里 跳转到下载页

  • 首先下载项目代码到本地
git clone https://github.com/Mufanc/Genshin-SmartFishingRod.git
cd Genshin-SmartFishingRod

然后检查您的游戏设置中是否能选择 1600x900 这一尺寸的窗口

  • -> 有
  1. 进入游戏设置,将画面大小改为 1600x900,此时游戏窗口应当没有边框

  2. 运行 python main.py(脚本会自动申请管理员权限)

  3. 选择合适位置抛下鱼竿,等待脚本自动完成钓鱼

  • -> 没有

  很遗憾,现有的配置文件并不能完美支持你的电脑。但请不要灰心,您可以参照下面的教程构建自己的配置文件

关于 detects/detects.yml

  该配置文件中存储着一些图片检测和坐标查找相关的选项:

detects:
  - name: button
    convert: 'gray'  # 颜色转换,会通过 cv2.COLOR_BGR2{{convert.upper()}} 进行转换
    rect: { left: 0.83, top: 0.88, right: 0.13, bottom: 0.03 }  # 标注的矩形框
    mode: match  # 可选 match(匹配) | find(大图找小图)
    threshold: 0.95  # 置信度,超过此阈值时认为匹配成功
    template: button.png

  - name: hook
    rect: { left: 0.49, top: 0.1, right: 0.49, bottom: 0.78 }
    mode: find
    threshold: 0.85
    template: hook.png

progress:  # 进度条相关
  width: 0.26
  height: 0.027
  offset: 0.053  # 进度条中心点到鱼钩图案中心点的高度
  frame-color: [ 192, 255, 255 ]  # 金色滑框和游标的颜色【BGR】
  threshold: 0.04  # 金色像素点数量在进度框中占比达到阈值时,才认为这是一个合法的进度条
  sp: [ 6, 18 ]  # 在 Y 轴方向上金色像素点数量达到一级时,判定为滑框;数量达到二级时,判定为游标
  • detects

  指定一个待识别 / 查找的区域,其 rect 属性中按比例存储了区域的位置信息,比如左上四分之一方框可以表示为:

rect: { left: 0, top: 0, right: 0.5, bottom: 0.5 }

  thresholdtemplate 必须同时指定或均不指定,当不指定时,脚本仅会在屏幕上划定一块区域,并为其赋予一个下标 [i],可以通过按下快捷键 Alt + 小键盘对应数字 对该区域快速截图,并保存到 detects/clips/ 文件夹下

  • progress

  用于提高进度条识别准确度的一些配置,脚本通过检测其下方的鱼钩图标,再进行对应坐标换算的方式定位进度条,其 widthheightoffset 属性均为与 detects 项中相同的比例表示方式。这里着重介绍一下 sp 属性的作用

  钓鱼时出现的金色游标和滑框并不像进度条本身一样半透明或颜色会发生变化,其颜色始终为不透明的金色 #ffffc0,故通过统计金色像素在 y 轴方向上出现的数量,加上合适的阈值,便可推断出滑框和游标的位置

  sp 为一个二元数组,设某一横坐标 x 下 y 轴方向金色像素数目为 n,则当 sp[0] <= n < sp[1] 时,认为这是一个滑框的左边界或右边界,而当 n >= sp[1] 时,则认为该位置是「更长」的游标。用截图工具截图并设法放大计数,便可得到 sp 的最佳取值

一些技巧

  • 自动钓鱼时,将检测鱼钩图样的黄色方框置于偏深色背景下,有助于提高稳定性

  • 如果在雪山、踏鞴砂等特殊钓点出现无法自动收竿的情况,请尝试更改阈值或使用针对性的匹配图样

声明和警告

  • 脚本需要管理员权限是因为游戏以管理员权限启动,若无管理员权限则无法模拟鼠标动作

  • 脚本并未修改游戏内存及文件数据,而是类似连点器这样使用 PostMessage 向窗口发送鼠标事件,但仍然存在被检测到的可能,如果你很担心被封号,请不要使用该脚本

You might also like...
local pypi server (custom packages and auto-mirroring of pypi)

localshop A PyPI server which automatically proxies and mirrors PyPI packages based upon packages requested. It has support for multiple indexes and t

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
Transformer-based Text Auto-encoder (T-TA) using TensorFlow 2.

T-TA (Transformer-based Text Auto-encoder) This repository contains codes for Transformer-based Text Auto-encoder (T-TA, paper: Fast and Accurate Deep

Auto-generate PEP-484 annotations

PyAnnotate: Auto-generate PEP-484 annotations Insert annotations into your source code based on call arguments and return types observed at runtime. F

Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.6 and above with performance auto-tuning. Optionally with Alpine Linux.
Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.6 and above with performance auto-tuning. Optionally with Alpine Linux.

Supported tags and respective Dockerfile links python3.8, latest (Dockerfile) python3.7, (Dockerfile) python3.6 (Dockerfile) python3.8-slim (Dockerfil

rewise is an unofficial wrapper for google search's auto-complete feature

rewise is an unofficial wrapper for google search's auto-complete feature

Windows Stack Based Auto Buffer Overflow Exploiter
Windows Stack Based Auto Buffer Overflow Exploiter

Autoflow - Windows Stack Based Auto Buffer Overflow Exploiter Autoflow is a tool that exploits windows stack based buffer overflow automatically.

Telegram bot to auto post messages of one channel in another channel as soon as it is posted, without the forwarded tag.

Channel Auto-Post Bot This bot can send all new messages from one channel, directly to another channel (or group, just in case), without the forwarded

Django project starter on steroids: quickly create a Django app AND generate source code for data models + REST/GraphQL APIs (the generated code is auto-linted and has 100% test coverage).

Create Django App 💛 We're a Django project starter on steroids! One-line command to create a Django app with all the dependencies auto-installed AND

A Advanced Auto Filter Bot Which Can Be Used In Many Groups With Multiple Channel Support....

Adv Auto Filter Bot This Just A Simple Hand Auto Filter Bot For Searching Files From Channel... Just Sent Any Text I Will Search In All Connected Chat

StackStorm (aka
A selectional auto-encoder approach for document image binarization

The code of this repository was used for the following publication. If you find this code useful please cite our paper: @article{Gallego2019, title =

A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.

pmdarima Pmdarima (originally pyramid-arima, for the anagram of 'py' + 'arima') is a statistical library designed to fill the void in Python's time se

根据midi文件演奏“风物之诗琴”的脚本
根据midi文件演奏“风物之诗琴”的脚本 "Windsong Lyre" auto play

Genshin-lyre-auto-play 简体中文 | English 简介 根据midi文件演奏“风物之诗琴”的脚本。由Python驱动,在此承诺, ⚠️ 项目内绝不含任何能够引起安全问题的代码。 前排提示:所有键盘在动但是原神没反应的都是因为没有管理员权限,双击run.bat或者以管理员模式

Bot Auto Chess.com
Bot Auto Chess.com

Bot Auto Chess.com Is a suggestion for chess moves on the chess.com platform. The available features are: chess suggestions and moves automatically. i

Official implementation for Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020

Likelihood-Regret Official implementation of Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020. T

Add-on for importing and auto setup of character creator 3 character exports.

CC3 Blender Tools An add-on for importing and automatically setting up materials for Character Creator 3 character exports. Using Blender in the Chara

Offcial repository for the IEEE ICRA 2021 paper Auto-Tuned Sim-to-Real Transfer.

Offcial repository for the IEEE ICRA 2021 paper Auto-Tuned Sim-to-Real Transfer.

SSH-Restricted deploys an SSH compliance rule (AWS Config) with auto-remediation via AWS Lambda if SSH access is public.
SSH-Restricted deploys an SSH compliance rule (AWS Config) with auto-remediation via AWS Lambda if SSH access is public.

SSH-Restricted SSH-Restricted deploys an SSH compliance rule with auto-remediation via AWS Lambda if SSH access is public. SSH-Auto-Restricted checks

Comments
  • 什么都没改,忽然失效???

    什么都没改,忽然失效???

    修改了模板匹配方式后可以正常使用 detector.py

    result = cv2.matchTemplate(target, template, cv2.TM_CCOEFF_NORMED)
    min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result)
    # similarity = 1 - min_val  # 计算相似度
    similarity = max_val
    min_loc = max_loc
    

    detects.yml

    templates:
      - name: button
        rect: { left: 0.83, top: 0.88, right: 0.13, bottom: 0.03 }  # 识别区域
        threshold: 0.5
        template: button.png
    
      - name: hook
        rect: { left: 0.49, top: 0.1, right: 0.49, bottom: 0.76 }
        threshold: 0.5
        template: hook.png
    
    opened by cibimo 1
  • 运行直接报错

    运行直接报错

    源码运行还是exe运行都报错 Traceback (most recent call last): File "main.py", line 53, in File "main.py", line 21, in init AssertionError [53132] Failed to execute script 'main' due to unhandled exception! Exception ignored in: <function Window.del at 0x0000014AF6ABAC10> Traceback (most recent call last): File "main.py", line 48, in del AttributeError: 'Window' object has no attribute 'hMemDc'

    opened by 940842546 1
  • 设置缩放后标记位置出现偏差

    设置缩放后标记位置出现偏差

    本人电脑显示设置中缩放与布局设置了150%的缩放 代码需要做出以下更改: 1.overlay.py中_update() width, height = right - left, bottom - top xxx = 1.5 win32gui.MoveWindow(self.hwnd, int(left/xxx), int(top/xxx), width, height, False)

    2.detector.py中mark() xxx = 1.5 x1, y1, x2, y2 = int(x1/xxx), int(y1/xxx), int(x2/xxx), int(y2/xxx) cv2.rectangle(image, (x1, y1), (x2, y2), color, 2)

    opened by cibimo 0
Releases(3.1.1)
Owner
  喜欢编程,喜欢设计,喜欢研究各种新奇好玩的东西
null
Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker.

Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker. Unlimited RajeLiker Credit Hack. Thanks To RajeLiker.

Md. Mehedi Hasan 32 Dec 28, 2022
An integration of several popular automatic augmentation methods, including OHL (Online Hyper-Parameter Learning for Auto-Augmentation Strategy) and AWS (Improving Auto Augment via Augmentation Wise Weight Sharing) by Sensetime Research.

An integration of several popular automatic augmentation methods, including OHL (Online Hyper-Parameter Learning for Auto-Augmentation Strategy) and AWS (Improving Auto Augment via Augmentation Wise Weight Sharing) by Sensetime Research.

null 45 Dec 8, 2022
Discord Auto bumper made in python, just a simple auto bumper that I made.

Discord Auto bumper made in python, just a simple auto bumper that I made.

XPTGR 0 Dec 4, 2021
Auto like & auto followers facebook

Auto like & auto followers facebook

Fahmi Dev 23 Dec 8, 2022
NS-Defacer: a auto html injecter, In other words It's a auto defacer to deface a lot of websites in less time

Overview NS-Defacer is a auto html injecter, In other words It's a auto defacer

NightSec 10 Nov 19, 2022
Auto-Approved-Bot - Auto Approved Invaite Link Request Telegram Bot

?? ????????-??????????????-?????? ?? ℹ️ ?????????? ℹ️ When a join request invita

Muhammed 32 Dec 18, 2022
Auto-commiter - Auto commiter Github

auto committer Github Follow the steps below to use this repository: 1-install c

Arman Ebtekari 8 Nov 14, 2022
Auto-Rollnumber-sender - Auto Rollnumber sender with python

Auto-Rollnumber-sender The above code fits better on my system but it can vary s

Riya Tripathi 2 Feb 14, 2022
Auto-generate PEP-484 annotations

PyAnnotate: Auto-generate PEP-484 annotations Insert annotations into your source code based on call arguments and return types observed at runtime. F

Dropbox 1.4k Dec 26, 2022
CLI for SQLite Databases with auto-completion and syntax highlighting

litecli Docs A command-line client for SQLite databases that has auto-completion and syntax highlighting. Installation If you already know how to inst

dbcli 1.8k Dec 31, 2022