utilityfun.py
def save_image(image, output_folder='./output_images/',
               name='Current_Image', colorspace='RGB'):
    """Save image to a file."""
    save_path = os.path.join(output_folder, name) + '.jpg'

    if colorspace != 'BGR':
        converter = getattr(cv2, "COLOR_" + colorspace + "2BGR")
        image = cv2.cvtColor(image, converter)

    cv2.imwrite(save_path, image)
Save image to a file.
Save image to a file.
Save image to a file .
def save_image(image, output_folder='./output_images/',
               name='Current_Image', colorspace='RGB'):
    save_path = os.path.join(output_folder, name) + '.jpg'
    if colorspace != 'BGR':
        converter = getattr(cv2, "COLOR_" + colorspace + "2BGR")
        image = cv2.cvtColor(image, converter)
    cv2.imwrite(save_path, image)
def save_image ( image , output_folder = './output_images/' , name = 'Current_Image' , colorspace = 'RGB' ) : save_path = os . path . join ( output_folder , name ) + '.jpg' if colorspace != 'BGR' : converter = getattr ( cv2 , "COLOR_" + colorspace + "2BGR" ) image = cv2 . cvtColor ( image , converter ) cv2 . imwrite ( save_path , image )
Save image to a file.
Save image to a file .
"""Save image to a file."""
image
output_folder
name
colorspace