Compare commits

...

2 Commits

Author SHA1 Message Date
强 杨 3eae86cc70 1
部署生产环境 / 编译发布 (push) Has been cancelled Details
部署生产环境 / 发布版本 (push) Has been cancelled Details
部署开发环境 / 编译发布 (push) Failing after 1m39s Details
2024-05-21 17:52:30 +08:00
强 杨 2e2ab7edd1 init 2024-05-21 17:52:02 +08:00
1 changed files with 3 additions and 4 deletions

View File

@ -64,10 +64,9 @@ namespace Marking.OCR.Service.Helper
public void Show(Mat mat, string title = "")
{
if (!App.HostEnvironment.IsDevelopment())
{
#if !DEBUG
return;
}
#endif
Cv2.ImShow(string.IsNullOrWhiteSpace(title) ? DateTime.UtcNow.ToString() : title, mat);
Cv2.WaitKey(0);
@ -146,7 +145,7 @@ namespace Marking.OCR.Service.Helper
{
//转换颜色空间
Mat mat_color = new Mat();
Cv2.CvtColor(mat, mat_color,ColorConversionCodes.GRAY2BGR);
Cv2.CvtColor(mat, mat_color, ColorConversionCodes.GRAY2BGR);
Cv2.DrawContours(mat_color, new Point[][] { contour }, -1, Scalar.Red, 2);
return mat_color;