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
pip install opencv-contrib-python
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
BoxDetector::detect(img) accept image in OpenCv / PIL / bytes forms
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))
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.