后端新增《蚕茧识别V2》模块

This commit is contained in:
BBIT-Kai
2025-11-10 18:08:50 +08:00
parent 9527cc2f1c
commit 625d185f69
15 changed files with 559 additions and 809 deletions
+1
View File
@@ -0,0 +1 @@
LOCAL_IP = "10.10.12.101"
+4
View File
@@ -20,3 +20,7 @@ def format_datetime(dt: datetime, tz="Asia/Shanghai"):
tz_obj = pytz.timezone(tz)
dt = dt.astimezone(tz_obj)
return dt.strftime("%Y-%m-%d %H:%M:%S")
def safe_round(value, ndigits=2, default=None):
return round(value, ndigits) if value is not None else default