public static void processedImageDisplaying() { GV.imgProcessed = GV.imgOriginal.Copy(); if (ImageProcessService.IsImgProcessOn) { isStopSignDetected = false; foreach (var p in listData) { float scale = GV.imgOriginal.Width / 1000f; Rectangle rect = new Rectangle() { X = p.X, Y = p.Y, Width = p.Width, Height = p.Height }; Color c = ImageLoader.ConvertHsvToRgb(p.Id * 1.0f / mYolo._yolo.ClassNames.Length, 1, 0.8f); GV.imgProcessed = drawBorder(GV.imgProcessed, rect, c, 3f * scale); GV.imgProcessed = drawString( $"{p.Name} ({p.Confidence * 100:00.0}%)", GV.imgProcessed, rect.Location, Brushes.White, 15f * scale); if (p.Name.Contains("stopSign")) { isStopSignDetected = true; } } if (!isStopSignDetected) { notStopSignCount++; } } else { GV.imgProcessed = new Image <Bgr, byte>(mYolo.Detect(GV.imgProcessed.ToBitmap())); } }