ReyaLabColumbia commited on
Commit
2af8199
·
verified ·
1 Parent(s): 8da9c21

Upload Colony_Analyzer_AI_zstack2_HF.py

Browse files
Files changed (1) hide show
  1. Colony_Analyzer_AI_zstack2_HF.py +1 -1
Colony_Analyzer_AI_zstack2_HF.py CHANGED
@@ -273,7 +273,7 @@ def main(args):
273
  img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
274
  caption = np.ones((150, 2048, 3), dtype=np.uint8) * 255 # Multiply by 255 to make it white
275
  cv2.putText(caption, 'No colonies detected.', (40, 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 0), 3)
276
- cv2.imwrite('results.png', np.vstack(img, caption))
277
  colonies = pd.DataFrame({"Colony Number":[], 'Colony volume':[], "colony_area":[],'mean_pixel_value':[], "centroid":[], "necrotic_area":[],"percent_necrotic":[]})
278
  with pd.ExcelWriter('results.xlsx') as writer:
279
  colonies.to_excel(writer, sheet_name="Colony data", index=False)
 
273
  img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
274
  caption = np.ones((150, 2048, 3), dtype=np.uint8) * 255 # Multiply by 255 to make it white
275
  cv2.putText(caption, 'No colonies detected.', (40, 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 0), 3)
276
+ cv2.imwrite('results.png', np.vstack((img, caption)))
277
  colonies = pd.DataFrame({"Colony Number":[], 'Colony volume':[], "colony_area":[],'mean_pixel_value':[], "centroid":[], "necrotic_area":[],"percent_necrotic":[]})
278
  with pd.ExcelWriter('results.xlsx') as writer:
279
  colonies.to_excel(writer, sheet_name="Colony data", index=False)