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即可。

An interactive interface for using OpenCV's GrabCut algorithm for image segmentation.

Interactive GrabCut An interactive interface for using OpenCV's GrabCut algorithm for image segmentation. Setup Install dependencies: pip install nump

Jason Y. Zhang 16 Oct 10, 2022
🔎 Like Chardet. 🚀 Package for encoding & language detection. Charset detection.

Charset Detection, for Everyone 👋 The Real First Universal Charset Detector A library that helps you read text from an unknown charset encoding. Moti

TAHRI Ahmed R. 332 Dec 31, 2022
docstrum

Docstrum Algorithm Getting Started This repo is for developing a Docstrum algorithm presented by O’Gorman (1993). Disclaimer This source code is built

Chulwoo Mike Pack 54 Dec 13, 2022
Image processing is one of the most common term in computer vision

Image processing is one of the most common term in computer vision. Computer vision is the process by which computers can understand images and videos, and how they are stored, manipulated, and retri

Happy N. Monday 3 Feb 15, 2022
pulse2percept: A Python-based simulation framework for bionic vision

pulse2percept: A Python-based simulation framework for bionic vision Retinal degenerative diseases such as retinitis pigmentosa and macular degenerati

67 Dec 29, 2022
Python Computer Vision from Scratch

This repository explores the variety of techniques commonly used to analyze and interpret images. It also describes challenging real-world applications where vision is being successfully used, both f

Milaan Parmar / Милан пармар / _米兰 帕尔马 221 Dec 26, 2022
Play the Namibian game of Owela against a terrible AI. Built using Django and htmx.

Owela Club A Django project for playing the Namibian game of Owela against a dumb AI. Built following the rules described on the Mancala World wiki pa

Adam Johnson 18 Jun 01, 2022
Document Layout Analysis

Eynollah Document Layout Analysis Introduction This tool performs document layout analysis (segmentation) from image data and returns the results as P

QURATOR-SPK 198 Dec 29, 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
Code for CVPR 2022 paper "SoftGroup for Instance Segmentation on 3D Point Clouds"

SoftGroup We provide code for reproducing results of the paper SoftGroup for 3D Instance Segmentation on Point Clouds (CVPR 2022) Author: Thang Vu, Ko

Thang Vu 231 Dec 27, 2022
Let's explore how we can extract text from forms

Form Segmentation Let's explore how we can extract text from any forms / scanned pages. Objectives The goal is to find an algorithm that can extract t

Philip Doxakis 42 Jun 05, 2022
Program created with opencv that allows you to automatically count your repetitions on several fitness exercises.

Virtual partner of gym Description Program created with opencv that allows you to automatically count your repetitions on several fitness exercises li

1 Jan 04, 2022
Make OpenCV camera loops less of a chore by skipping the boilerplate and getting right to the interesting stuff

camloop Forget the boilerplate from OpenCV camera loops and get to coding the interesting stuff Table of Contents Usage Install Quickstart More advanc

Gabriel Lefundes 9 Nov 12, 2021
Convolutional Recurrent Neural Network (CRNN) for image-based sequence recognition.

Convolutional Recurrent Neural Network This software implements the Convolutional Recurrent Neural Network (CRNN), a combination of CNN, RNN and CTC l

Baoguang Shi 2k Dec 31, 2022
Awesome anomaly detection in medical images

A curated list of awesome anomaly detection works in medical imaging, inspired by the other awesome-* initiatives.

Kang Zhou 57 Dec 19, 2022
STEFANN: Scene Text Editor using Font Adaptive Neural Network

STEFANN: Scene Text Editor using Font Adaptive Neural Network @ The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 2020.

Prasun Roy 208 Dec 11, 2022
Brief idea about our project is mentioned in project presentation file.

Brief idea about our project is mentioned in project presentation file. You just have to run attendance.py file in your suitable IDE but we prefer jupyter lab.

Dhruv ;-) 3 Mar 20, 2022
This repository contains codes on how to handle mouse event using OpenCV

Handling-Mouse-Click-Events-Using-OpenCV This repository contains codes on how t

Happy N. Monday 3 Feb 15, 2022
Camera Intrinsic Calibration and Hand-Eye Calibration in Pybullet

This repository is mainly for camera intrinsic calibration and hand-eye calibration. Synthetic experiments are conducted in PyBullet simulator. 1. Tes

CAI Junhao 7 Oct 03, 2022
Code release for our paper, "SimNet: Enabling Robust Unknown Object Manipulation from Pure Synthetic Data via Stereo"

SimNet: Enabling Robust Unknown Object Manipulation from Pure Synthetic Data via Stereo Thomas Kollar, Michael Laskey, Kevin Stone, Brijen Thananjeyan

68 Dec 14, 2022