ammariii08 commited on
Commit
f888ca5
·
verified ·
1 Parent(s): d089a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def gradio_stitch_and_detect(image_files):
53
  result_image = process_image(image_paths, scale_percent=50)
54
 
55
  if result_image is not None:
56
- result_image_rgb = cv2.cvtColor(result_image, cv2.COLOR_BGR2RGB)
57
  pil_image = Image.fromarray(result_image_rgb)
58
  pil_image.save("stitched_image.jpg", "JPEG")
59
  return pil_image, "stitched_image.jpg"
 
53
  result_image = process_image(image_paths, scale_percent=50)
54
 
55
  if result_image is not None:
56
+ result_image_rgb = result_image
57
  pil_image = Image.fromarray(result_image_rgb)
58
  pil_image.save("stitched_image.jpg", "JPEG")
59
  return pil_image, "stitched_image.jpg"