'write results files in pascal devkit path
:param all_boxes: boxes to be processed [bbox, confidence]
:return: None'

def write_pascal_results(self, all_boxes):

    for (cls_ind, cls) in enumerate(self.classes):
        if (cls == '__background__'):
            continue
        logger.info(('Writing    %s    VOC    results    file' % cls))
        filename = self.get_result_file_template().format(cls)
        with open(filename, 'wt') as f:
            for (im_ind, index) in enumerate(self.image_set_index):
                dets = all_boxes[cls_ind][im_ind]
                if (len(dets) == 0):
                    continue
                for k in range(dets.shape[0]):
                    f.write('{:s}    {:.3f}    {:.1f}    {:.1f}    {:.1f}    {:.1f}\n'.format(index, dets[(k, (-1))], (dets[(k, 0)] + 1), (dets[(k, 1)] + 1), (dets[(k, 2)] + 1), (dets[(k, 3)] + 1)))
