mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-06-30 20:06:27 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
5215218526
|
|||
854d5558cf
|
|||
df77421a34
|
15
.github/workflows/build-and-draft-release.yml
vendored
15
.github/workflows/build-and-draft-release.yml
vendored
@ -4,7 +4,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
# regex taken from
|
||||||
|
# https://packaging.python.org/en/latest/specifications/version-specifiers/#appendix-parsing-version-strings-with-regular-expressions
|
||||||
|
- '^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -29,14 +31,6 @@ jobs:
|
|||||||
pip install build
|
pip install build
|
||||||
python -m build
|
python -m build
|
||||||
|
|
||||||
- name: Remove `v` in tag name
|
|
||||||
uses: mad9000/actions-find-and-replace-string@5
|
|
||||||
id: tagNameReplaced
|
|
||||||
with:
|
|
||||||
source: ${{ github.ref_name }}
|
|
||||||
find: "v"
|
|
||||||
replace: ""
|
|
||||||
|
|
||||||
- name: Draft a release
|
- name: Draft a release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
@ -44,5 +38,4 @@ jobs:
|
|||||||
draft: true
|
draft: true
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
dist/arcaea_offline_ocr-${{ steps.tagNameReplaced.outputs.value }}*.whl
|
dist/*
|
||||||
dist/arcaea-offline-ocr-${{ steps.tagNameReplaced.outputs.value }}.tar.gz
|
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "arcaea-offline-ocr"
|
name = "arcaea-offline-ocr"
|
||||||
version = "0.0.98"
|
version = "0.0.99"
|
||||||
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
||||||
description = "Extract your Arcaea play result from screenshot."
|
description = "Extract your Arcaea play result from screenshot."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -125,7 +125,7 @@ class DeviceRoisMaskerAutoT1(DeviceRoisMaskerAuto):
|
|||||||
|
|
||||||
class DeviceRoisMaskerAutoT2(DeviceRoisMaskerAuto):
|
class DeviceRoisMaskerAutoT2(DeviceRoisMaskerAuto):
|
||||||
PFL_HSV_MIN = np.array([0, 0, 248], np.uint8)
|
PFL_HSV_MIN = np.array([0, 0, 248], np.uint8)
|
||||||
PFL_HSV_MAX = np.array([179, 10, 255], np.uint8)
|
PFL_HSV_MAX = np.array([179, 40, 255], np.uint8)
|
||||||
|
|
||||||
SCORE_HSV_MIN = np.array([0, 0, 180], np.uint8)
|
SCORE_HSV_MIN = np.array([0, 0, 180], np.uint8)
|
||||||
SCORE_HSV_MAX = np.array([179, 255, 255], np.uint8)
|
SCORE_HSV_MAX = np.array([179, 255, 255], np.uint8)
|
||||||
|
Reference in New Issue
Block a user