mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-07-02 04:46:27 +00:00
Compare commits
5 Commits
00cd32dfdc
...
master
Author | SHA1 | Date | |
---|---|---|---|
5215218526
|
|||
854d5558cf
|
|||
df77421a34
|
|||
2241230a7a
|
|||
fb4b1fb9b8
|
41
.github/workflows/build-and-draft-release.yml
vendored
Normal file
41
.github/workflows/build-and-draft-release.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: "Build and draft a release"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
# 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:
|
||||
contents: write
|
||||
discussions: write
|
||||
|
||||
jobs:
|
||||
build-and-draft-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Python environment
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
pip install build
|
||||
python -m build
|
||||
|
||||
- name: Draft a release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
discussion_category_name: New releases
|
||||
draft: true
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/*
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "arcaea-offline-ocr"
|
||||
version = "0.0.97"
|
||||
version = "0.0.99"
|
||||
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
||||
description = "Extract your Arcaea play result from screenshot."
|
||||
readme = "README.md"
|
||||
@ -16,8 +16,8 @@ classifiers = [
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "https://github.com/283375/arcaea-offline-ocr"
|
||||
"Bug Tracker" = "https://github.com/283375/arcaea-offline-ocr/issues"
|
||||
"Homepage" = "https://github.com/ArcaeaOffline/core-ocr"
|
||||
"Bug Tracker" = "https://github.com/ArcaeaOffline/core-ocr/issues"
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
|
@ -125,7 +125,7 @@ class DeviceRoisMaskerAutoT1(DeviceRoisMaskerAuto):
|
||||
|
||||
class DeviceRoisMaskerAutoT2(DeviceRoisMaskerAuto):
|
||||
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_MAX = np.array([179, 255, 255], np.uint8)
|
||||
|
Reference in New Issue
Block a user