forked from rajangarhwal/DC_detection_software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.py
34 lines (33 loc) · 817 Bytes
/
python.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Tkinter, Tkconstants, tkFileDialog
from Tkinter import *
from ranking import rank, find_good_metaphases
import os
import matplotlib.pyplot as plt
from PIL import Image, ImageTk, ImageGrab
from os.path import basename
import tkMessageBox
import shutil
import ttk
import threading
import numpy as np
import openpyxl
import time
import cv2
segment_path="C:/Users/Acer/Desktop/1images/segments/scoredData.xlsx"
wb = openpyxl.load_workbook(segment_path)
ws = wb.active
col=ws.max_column
print(col)
c1=ws.cell(1, col)
c1.value="Dicentric"
c1=ws.cell(1, col+1)
c1.value="Monocentric"
c1=ws.cell(1, col+2)
c1.value="Total Chromsome"
c1=ws.cell(2, col)
if c1.value is None:
c1.value="Tu cheutia hai"
print("tu chutia hai")
else:
print("well done")
wb.save(segment_path)