Example #1
0
File: dump.py Project: GuanLab/owl
    def handle(self, *args, **options):
        for anno in Annotation.objects.all():
            a = fix_transpose(json.loads(anno.anno)["shapes"][0]["geometry"])
            print "%s\t%g\t%g\t%g\t%g" %(anno.image.meta, a["x"], a["y"], a["width"], a["height"])
        #hours = options['hours'] + 24 * options['days']
        #check_and_import(hours, not options['run'], options['check'])

        pass