Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this project

This is a project aim to extract my pets from Puzzle and dragons for development usage

How does it works?

Use ffmpeg + ImageMagick to extract the pet icons from screen recording that scroll through the in-game box from top to bottom. Then use opencv features matching (SIFT + FLANN) to match the extracted icons with the original pet images

Before you start

Please note that there are a lot of hardcoded stuff inside the scripts, you should read the code and adjust the values by yourself.

If you know Chinese, you can also check out my blog to get "slightly" more detail there

https://auphone.net/posts/匯出龍族拼圖(Puzzle-Dragons)寵物清單的方法/

Pre-request

The version on my DEV env, FYI

Python 3.9
OpenCv 4.5
FFmpeg 4.4
ImageMagick 7.1

Getting started

  1. Clone the project

  2. Create videos folder

cd pad-pet-extractor
mkdir videos
  1. Put the video inside the videos folder and name it as box.mp4

  2. Get the original pet images (Use your method)

I got the images from one of the Chinese wiki website. I don't recommend it, but I will provide the script in ./lib/image_downloader.js anyway

  1. Run the script one by one
./1_extract_video.sh
./2_extract_pet.sh
./3_matching.sh

At the end you will get an ID list located at ./out/ids.txt

Have fun ( ゚Д゚)σ

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages