mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-07-01 12:26:27 +00:00
refactor!: replace attrs
with dataclass
This commit is contained in:
@ -1,3 +1,2 @@
|
|||||||
attrs==23.1.0
|
|
||||||
numpy==1.26.1
|
numpy==1.26.1
|
||||||
opencv-python==4.8.1.78
|
opencv-python==4.8.1.78
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import attrs
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
@attrs.define
|
|
||||||
class B30OcrResultItem:
|
class B30OcrResultItem:
|
||||||
rating_class: int
|
rating_class: int
|
||||||
score: int
|
score: int
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import attrs
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
@attrs.define
|
|
||||||
class DeviceOcrResult:
|
class DeviceOcrResult:
|
||||||
rating_class: int
|
rating_class: int
|
||||||
pure: int
|
pure: int
|
||||||
|
Reference in New Issue
Block a user