Skip to content

Hieuzest/pcr-box-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCR Box Detector

For Princess Connect Re:DIVE

Auto detect characters and stars in box screenshot

However, the detector should be executed in ThreadPoolExecutor, due to its cost

This repo contains a working example plugin for HoshinoBot

Dependencies

pip install opencv-contrib-python
If using SIFT:

SIFT is not patented now in OpenCV 3.4.10, 4.3.0 or above.

If no distribution found, try updating your pip using pip install -U pip

Usage

BoxDetector::detect(img) accept image in OpenCv / PIL / bytes forms

Example

import cv2
from box_detector import BoxDetector

box_detector = BoxDetector()
box_detector.set_config(path_to_icon=f'./unit')
box_detector.init()

img = cv2.imread("test.jpg")

print(box_detector.detect(img))

Build into HoshinoBot

A recommended workflow is:

.../hoshino/modules/priconne/$ git submodule add -b master https://github.com/Hieuzest/pcr-box-detector box_detector

This should be enough to go.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages