예제 #1
0
def cit(img, path=None, rgb=True, name=""):
    _count = get_count()
    if path is None:
        img = np.np.asarray(img, dtype=np.np.uint8)
        path = '~/temp/no-use/%s_%d_%s.jpg' % (log.get_date_str(), _count,
                                               name)
        _img.imwrite(path, img, rgb=rgb)
    return path
예제 #2
0
def sit(img, path=None, name=""):
    if path is None:
        _count = get_count()
        path = '~/temp/no-use/images/%s_%d_%s.jpg' % (log.get_date_str(),
                                                      _count, name)

    if type(img) == list:
        plt.show_images(images=img,
                        path=path,
                        show=False,
                        axis_off=True,
                        save=True)
    else:
        plt.imwrite(path, img)

    return path
예제 #3
0
def get_temp_path(name=''):
    _count = get_count()
    path = '~/temp/no-use/images/%s_%d_%s.png' % (log.get_date_str(), _count,
                                                  name)
    return path
예제 #4
0
def get_temp_path(name=''):
    _count = get_count()
    path = './sample_result/%s_%d_%s.png' % (log.get_date_str(), _count, name)
    return path
예제 #5
0
def get_temp_path(name=''):
    path = 'result/%s_%s.png' % (log.get_date_str(), name[:-4])
    return path