Advertisement
mhdew

Fish-Pak features

May 7th, 2021
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. count = 0
  2. catla_array = []
  3.  
  4. for f in catla_file_list:
  5.     f_name = catla_path+f
  6.     fish = io.imread(f_name)
  7.     fish_resized = cv.resize(fish, (100,100), interpolation=cv.INTER_AREA)
  8.     #fish_shape = fish_resized.shape
  9.     #feature = np.reshape(fish_resized, fish_shape[0]*fish_shape[1]*fish_shape[2])
  10.     catla_array.append(feature)
  11.     count+=1
  12.     if count == 25:
  13.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement