Vihang28 commited on
Commit
451ff98
·
verified ·
1 Parent(s): 54f36a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def concate_image(img_input):
40
  img2 = cv2.imread(img_name_lst[1])
41
  im_v = cv2.vconcat([img1, img2])
42
  cv2.imwrite('merge_image.jpg', im_v)
43
- return "merge_image.jpg"
 
44
 
45
  def encode_image(image_path):
46
  file_path = concate_image(image_path)
 
40
  img2 = cv2.imread(img_name_lst[1])
41
  im_v = cv2.vconcat([img1, img2])
42
  cv2.imwrite('merge_image.jpg', im_v)
43
+ cv2.cvtColor('merge_image.jpg', cv2.COLOR_RGB2GRAY)
44
+ return 'merge_image.jpg'
45
 
46
  def encode_image(image_path):
47
  file_path = concate_image(image_path)