Skip to content

Commit

Permalink
some optimizations 2
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Nov 12, 2023
1 parent b8ed185 commit 82a6c22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ public int GetDiceCountByOcr()
_logger.LogInformation("通过OCR识别当前骰子数量: {Text}", text);
if (string.IsNullOrWhiteSpace(text))
{
Cv2.ImWrite($"log\\dice_count_empty{DateTime.Now:yyyy-MM-dd HH:mm:ss:ffff}.jpg", diceCountMap);
//Cv2.ImWrite($"log\\dice_count_empty{DateTime.Now:yyyy-MM-dd HH:mm:ss:ffff}.jpg", diceCountMap);
return -10;
}
else if (Regex.IsMatch(text, @"^[0-9]+$"))
Expand All @@ -1220,7 +1220,7 @@ public int GetDiceCountByOcr()
}
else
{
Cv2.ImWrite($"log\\dice_count_error_{DateTime.Now:yyyy-MM-dd HH:mm:ss:ffff}.jpg", diceCountMap);
//Cv2.ImWrite($"log\\dice_count_error_{DateTime.Now:yyyy-MM-dd HH:mm:ss:ffff}.jpg", diceCountMap);
return -10;
}
}
Expand Down

0 comments on commit 82a6c22

Please sign in to comment.