vusr commited on
Commit
51b9bbe
·
verified ·
1 Parent(s): 47c82bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -106,6 +106,13 @@ def Image_Processing(filelist):
106
  lbp = local_binary_pattern(gray_image, n_points, radius)
107
  fd,hog_image = hog(gray_image, orientations=10, pixels_per_cell=(16, 16), cells_per_block=(1, 1), visualize=True, multichannel=False, channel_axis=-1)
108
  hog_image_rescaled = exposure.rescale_intensity(hog_image, in_range=(0, 10))
 
 
 
 
 
 
 
109
 
110
  input_images = [(input_images[index],image_names[index]) for index in range(len(input_images))]
111
  color_images = [(cv2.cvtColor(color_images[index], cv2.COLOR_BGR2RGB),image_names[index]) for index in range(len(color_images))]
 
106
  lbp = local_binary_pattern(gray_image, n_points, radius)
107
  fd,hog_image = hog(gray_image, orientations=10, pixels_per_cell=(16, 16), cells_per_block=(1, 1), visualize=True, multichannel=False, channel_axis=-1)
108
  hog_image_rescaled = exposure.rescale_intensity(hog_image, in_range=(0, 10))
109
+
110
+ tips = tips.astype(np.uint8)
111
+ branches = branches.astype(np.uint8)
112
+ tips_and_branches = tips_and_branches.astype(np.uint8)
113
+ sift_image = sift_image.astype(np.uint8)
114
+ lbp = lbp.astype(np.uint8)
115
+ hog_image_rescaled = hog_image_rescaled.astype(np.uint8)
116
 
117
  input_images = [(input_images[index],image_names[index]) for index in range(len(input_images))]
118
  color_images = [(cv2.cvtColor(color_images[index], cv2.COLOR_BGR2RGB),image_names[index]) for index in range(len(color_images))]