DeepMicroscopy / SlideRunner

SlideRunner is a tool for massive cell annotations in whole slide images
GNU General Public License v3.0
75 stars 10 forks source link

Prevent exception if text is None #30

Closed ChristianMarzahl closed 3 years ago

ChristianMarzahl commented 3 years ago

Code to reproduce the exception: SlideRunner Version: SlideRunner-1.31.0-

DB = Database() DB.create("SDATA_Final_Annotations.sqlite") DB.insertAnnotator('EXACT') DB.insertClass('0') DB.insertNewSlide(slide,image_path)

DB.insertNewAreaAnnotation(x1=int(vector['x1']), y1=int(vector['y1']), x2=int(vector['x2']), y2=int(vector['y2']), slideUID=image_id, classID=label_id, annotator=1)