将识别结果的字号放大,并且加粗!
This commit is contained in:
@@ -608,14 +608,24 @@ class FoodClassifierApp:
|
||||
)
|
||||
name_label.pack(fill="x", padx=5, pady=2)
|
||||
|
||||
# 识别结果
|
||||
result_label = ctk.CTkLabel(
|
||||
# 识别结果标题
|
||||
result_title_label = ctk.CTkLabel(
|
||||
info_frame,
|
||||
text=f"识别结果: {result['predicted_class']}",
|
||||
text="识别结果:",
|
||||
anchor="w",
|
||||
font=("Arial", 11)
|
||||
)
|
||||
result_label.pack(fill="x", padx=5, pady=2)
|
||||
result_title_label.pack(fill="x", padx=5, pady=(2, 0))
|
||||
|
||||
# 识别结果内容(大字体、红色、加粗)
|
||||
result_content_label = ctk.CTkLabel(
|
||||
info_frame,
|
||||
text=result['predicted_class'],
|
||||
anchor="w",
|
||||
font=("Arial", 18, "bold"),
|
||||
text_color="green"
|
||||
)
|
||||
result_content_label.pack(fill="x", padx=5, pady=(0, 2))
|
||||
|
||||
# 置信度
|
||||
confidence_label = ctk.CTkLabel(
|
||||
|
||||
Reference in New Issue
Block a user