A python script based on opencv and paddleocr, which can automatically pick up tasks, make cookies, and receive rewards in the Destiny 2 Dawning Oven

Overview

Destiny 2 Automatic Dawning Oven

还在手动接任务刷光尘?我来教你挂机!

只要材料、微光充足,躺着也能刷光尘!

这是一个基于OpenCV-PythonPaddleOCR的全自动接悬赏、做饼干、领取悬赏奖励的脚本。

准备工作

安装Python

首先去Python官网下载python并安装。

这里选择3.9.5版本的下载安装。

安装完后,打开一个cmd,键入py,有输出即表示安装成功。

安装Shapely

打开官网Shapely

因为安装的Python是3.9.5,所以这里选择Shapely‑1.8.0‑cp39‑cp39‑win_amd64.whl版本的下载。

下载后,到下载的文件夹里,按住shift加上鼠标右键,打开终端或者powershell:

输入:

py -m pip install Shapely‑1.8.0‑cp39‑cp39‑win_amd64.whl

安装完毕后,终端不要关,还有东西需要安装。

安装PaddleOCR

等Shapely安装完后,再输入:

py -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple 

等待安装即可。

安装依赖

首先把项目下载,然后打开项目目录,在目录按住shift加上鼠标右键,打开终端或者powershell,输入:

py -m pip install -r requirements.txt

安装完毕后,终端不要关。

截图

既然是基于OpenCV-Python,那么截图肯定又是必不可少的。

我用的是2k分辨率全屏截的图,如果你也是2k分辨率全屏那么可能不需要重新截图(是可能,如果发现不太正常,建议还是重新截图)。

cookie的截图我是按照烤炉里的顺序排序命名的,所以按顺序截图即可(具体对应关系可以看lib/cookies.py)。

这里再说一下其他图怎么截:

  • 悬赏上限时提示----limit.png
  • 曙光节NPC名字----npc.png
  • 打开任务面板,上方任务两个字----taskBtn.png
  • 打开任务面板,右键烤炉的图标----oven.png
  • 曙光节NPC处接的光尘悬赏图标----task.png
  • 曙光节光尘悬赏完成图标----rewards.png
  • 进入烤炉第一行第一个框----frameBtn.png
  • 进入烤炉选择饼干上一页----preBtn.png
  • 进入烤炉选择饼干下一页按钮----nextBtn.png

游戏按键设置

在游戏的键盘设置里,拉到最下面,将打开任务的按键设置为f2

当然也可以用别的键,在项目里的main.py搜索f2修改即可。

使用

做了那么多准备工作,终于可以开始使用了。

接悬赏刷光尘

在项目目录按住shift加上鼠标右键,打开终端或者powershell,输入:

py ./main.py

然后切换回游戏,打开曙光节NPC界面,然后按一下F3即可开始,当需要结束时,按一下F4即可。

只做一种饼干

需要打开项目目录下的main.py,然后在文件开头找到single = '',修改为目标饼干即可。

例如最容易做的老九饼干:

修改完后再启动脚本。

然后进入烤炉,再按一下F3即可开始,结束时再按一次F4即可。

ERQA - Edge Restoration Quality Assessment

ERQA - a full-reference quality metric designed to analyze how good image and video restoration methods (SR, deblurring, denoising, etc) are restoring real details.

MSU Video Group 27 Dec 17, 2022
Code for CVPR'2022 paper ✨ "Predict, Prevent, and Evaluate: Disentangled Text-Driven Image Manipulation Empowered by Pre-Trained Vision-Language Model"

PPE ✨ Repository for our CVPR'2022 paper: Predict, Prevent, and Evaluate: Disentangled Text-Driven Image Manipulation Empowered by Pre-Trained Vision-

Zipeng Xu 34 Nov 28, 2022
Erosion and dialation using structure element in OpenCV python

Erosion and dialation using structure element in OpenCV python

Tamzid hasan 2 Nov 11, 2021
Automatically remove the mosaics in images and videos, or add mosaics to them.

Automatically remove the mosaics in images and videos, or add mosaics to them.

Hypo 1.4k Dec 30, 2022
A simple QR-Code Reader in Python

A simple QR-Code Reader written in Python, that copies the content of a QR-Code directly into the copy clipboard.

Eric 1 Oct 28, 2021
Pytorch implementation of PSEnet with Pyramid Attention Network as feature extractor

Scene Text-Spotting based on PSEnet+CRNN Pytorch implementation of an end to end Text-Spotter with a PSEnet text detector and CRNN text recognizer. We

azhar shaikh 62 Oct 10, 2022
kaldi-asr/kaldi is the official location of the Kaldi project.

Kaldi Speech Recognition Toolkit To build the toolkit: see ./INSTALL. These instructions are valid for UNIX systems including various flavors of Linux

Kaldi 12.3k Jan 05, 2023
Implement 'Single Shot Text Detector with Regional Attention, ICCV 2017 Spotlight'

SSTDNet Implement 'Single Shot Text Detector with Regional Attention, ICCV 2017 Spotlight' using pytorch. This code is work for general object detecti

HotaekHan 84 Jan 05, 2022
question‘s area recognition using image processing and regular expression

======================================== Paper-Question-recognition ======================================== question‘s area recognition using image p

Yuta Mizuki 7 Dec 27, 2021
Document blur detection based on Laplacian operator and text detection.

Document Blur Detection For general blurred image, using the variance of Laplacian operator is a good solution. But as for the blur detection of docum

JoeyLr 5 Oct 20, 2022
Awesome Spectral Indices in Python.

Awesome Spectral Indices in Python: Numpy | Pandas | GeoPandas | Xarray | Earth Engine | Planetary Computer | Dask GitHub: https://github.com/davemlz/

David Montero Loaiza 98 Jan 02, 2023
PyQT5 app that colorize black & white pictures using CNN(use pre-trained model which was made with OpenCV)

About PyQT5 app that colorize black & white pictures using CNN(use pre-trained model which was made with OpenCV) Colorizor Приложение для проекта Yand

1 Apr 04, 2022
天池2021"全球人工智能技术创新大赛"【赛道一】:医学影像报告异常检测 - 第三名解决方案

天池2021"全球人工智能技术创新大赛"【赛道一】:医学影像报告异常检测 比赛链接 个人博客记录 目录结构 ├── final------------------------------------决赛方案PPT ├── preliminary_contest--------------------

19 Aug 17, 2022
TextBoxes re-implement using tensorflow

TextBoxes-TensorFlow TextBoxes re-implementation using tensorflow. This project is greatly inspired by slim project And many functions are modified ba

Gu Xiaodong 44 Dec 29, 2022
Augmenting Anchors by the Detector Itself

Augmenting Anchors by the Detector Itself Introduction It is difficult to determine the scale and aspect ratio of anchors for anchor-based object dete

4 Nov 06, 2022
caffe re-implementation of R2CNN: Rotational Region CNN for Orientation Robust Scene Text Detection

R2CNN: Rotational Region CNN for Orientation Robust Scene Text Detection Abstract This is a caffe re-implementation of R2CNN: Rotational Region CNN fo

candler 80 Dec 28, 2021
A Python wrapper for Google Tesseract

Python Tesseract Python-tesseract is an optical character recognition (OCR) tool for python. That is, it will recognize and "read" the text embedded i

Matthias A Lee 4.6k Jan 06, 2023
Run tesseract with the tesserocr bindings with @OCR-D's interfaces

ocrd_tesserocr Crop, deskew, segment into regions / tables / lines / words, or recognize with tesserocr Introduction This package offers OCR-D complia

OCR-D 38 Oct 14, 2022
Character Segmentation using TensorFlow

Character Segmentation Segment characters and spaces in one text line,from this paper Chinese English mixed Character Segmentation as Semantic Segment

26 Aug 25, 2022
Fatigue Driving Detection Based on Dlib

Fatigue Driving Detection Based on Dlib

5 Dec 14, 2022