【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
  喜欢编程,喜欢设计,喜欢研究各种新奇好玩的东西
Autonomous Driving project for Euro Truck Simulator 2

hope-autonomous-driving Autonomous Driving project for Euro Truck Simulator 2 Video: How is it working ? In this video, the program processes the imag

Umut Görkem Kocabaş 36 Nov 06, 2022
Localization of thoracic abnormalities model based on VinBigData (top 1%)

Repository contains the code for 2nd place solution of VinBigData Chest X-ray Abnormalities Detection competition. The goal of competition was to auto

33 May 24, 2022
A Joint Video and Image Encoder for End-to-End Retrieval

Frozen️ in Time ❄️ ️️️️ ⏳ A Joint Video and Image Encoder for End-to-End Retrieval (arXiv) Repository to contain the code, models, data for end-to-end

225 Dec 25, 2022
Face_mosaic - Mosaic blur processing is applied to multiple faces appearing in the video

動機 face_recognitionを使用して得られる顔座標は長方形であり、この座標をそのまま用いてぼかし処理を行った場合得られる画像は醜い。 それに対してモ

Yoshitsugu Kesamaru 6 Feb 03, 2022
A facial recognition device is a device that takes an image or a video of a human face and compares it to another image faces in a database.

A facial recognition device is a device that takes an image or a video of a human face and compares it to another image faces in a database. The structure, shape and proportions of the faces are comp

Pavankumar Khot 4 Mar 19, 2022
An expandable and scalable OCR pipeline

Overview Nidaba is the central controller for the entire OGL OCR pipeline. It oversees and automates the process of converting raw images into citable

81 Jan 04, 2023
This is a Computer vision package that makes its easy to run Image processing and AI functions. At the core it uses OpenCV and Mediapipe libraries.

CVZone This is a Computer vision package that makes its easy to run Image processing and AI functions. At the core it uses OpenCV and Mediapipe librar

CVZone 648 Dec 30, 2022
Code for the paper: Fusformer: A Transformer-based Fusion Approach for Hyperspectral Image Super-resolution

Fusformer Code for the paper: "Fusformer: A Transformer-based Fusion Approach for Hyperspectral Image Super-resolution" Plateform Python 3.8.5 + Pytor

Jin-Fan Hu (胡锦帆) 11 Dec 12, 2022
A version of nrsc5-gui that merges the interface developed by cmnybo with the architecture developed by zefie in order to start a new baseline that is not heavily dependent upon Python processing.

NRSC5-DUI is a graphical interface for nrsc5. It makes it easy to play your favorite FM HD radio stations using an RTL-SDR dongle. It will also displa

61 Dec 22, 2022
Drowsiness Detection and Alert System

A countless number of people drive on the highway day and night. Taxi drivers, bus drivers, truck drivers, and people traveling long-distance suffer from lack of sleep.

Astitva Veer Garg 4 Aug 01, 2022
Document manipulation detection with python

image manipulation detection task: -- tianchi function image segmentation salie

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

原神钓鱼辅助工具 ✨ 作者正在努力重构代码中……会尽快带给大家一个更完美的脚本 ✨ 「您只需抛出鱼竿,然后我们会帮您搞定一切」 如果你觉得这个脚本好用,请点一个 Star ⭐ ,你的 Star 就是作者更新最大的动力 点击这里 查看演示视频 ✨ 欢迎大家在 Issues 中分享自己的配置文件 ✨ ✨

261 Jan 02, 2023
When Age-Invariant Face Recognition Meets Face Age Synthesis: A Multi-Task Learning Framework (CVPR 2021 oral)

MTLFace This repository contains the PyTorch implementation and the dataset of the paper: When Age-Invariant Face Recognition Meets Face Age Synthesis

Hzzone 120 Jan 05, 2023
📷 Face Recognition using Haar-Cascade Classifier, OpenCV, and Python

Face-Recognition-System Face Recognition using Haar-Cascade Classifier, OpenCV and Python. This project is based on face detection and face recognitio

1 Jan 10, 2022
Using computer vision method to recognize and calcutate the features of the architecture.

building-feature-recognition In this repository, we accomplished building feature recognition using traditional/dl-assisted computer vision method. Th

4 Aug 11, 2022
chineseocr/table_line 表格线检测模型pytorch版

table_line_pytorch chineseocr/table_detct 表格线检测模型table_line pytorch版 原项目github: https://github.com/chineseocr/table-detect 1、模型转换 下载原项目table_detect模型文

1 Oct 21, 2021
The code for CVPR2022 paper "Likert Scoring with Grade Decoupling for Long-term Action Assessment".

Likert Scoring with Grade Decoupling for Long-term Action Assessment This is the code for CVPR2022 paper "Likert Scoring with Grade Decoupling for Lon

10 Oct 21, 2022
Image augmentation library in Python for machine learning.

Augmentor is an image augmentation library in Python for machine learning. It aims to be a standalone library that is platform and framework independe

Marcus D. Bloice 4.8k Jan 04, 2023
Convolutional Recurrent Neural Networks(CRNN) for Scene Text Recognition

CRNN_Tensorflow This is a TensorFlow implementation of a Deep Neural Network for scene text recognition. It is mainly based on the paper "An End-to-En

MaybeShewill-CV 1000 Dec 27, 2022
GDB python tool to pretty print and debug c++ xtensor containers

gdb_xt2np GDB python tool to pretty print, examine, and debug c++ Xtensor containers. Xtensor is a c++ library for scientific computing using multidim

Christopher Burke 4 Oct 29, 2021