image-classification/code/inference.py [137:153]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return json.dumps(prediction_json)
    
def _print_image_metadata(img):
    # Retrieve the attributes of the image
    fileFormat      = img.format       
    imageMode       = img.mode        
    imageSize       = img.size  # (width, height)
    colorPalette    = img.palette       

    print(f'    File format: {fileFormat}')
    print(f'    Image mode:  {imageMode}')
    print(f'    Image size:  {imageSize}')
    print(f'    Color pal:   {colorPalette}')

    print(f'    Keys from image.info dictionary:')
    for key, value in img.info.items():
        print(f'      {key}')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



object-detection/code/inference.py [136:152]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return json.dumps(prediction_json)
    
def _print_image_metadata(img):
    # Retrieve the attributes of the image
    fileFormat      = img.format       
    imageMode       = img.mode        
    imageSize       = img.size  # (width, height)
    colorPalette    = img.palette       

    print(f'    File format: {fileFormat}')
    print(f'    Image mode:  {imageMode}')
    print(f'    Image size:  {imageSize}')
    print(f'    Color pal:   {colorPalette}')

    print(f'    Keys from image.info dictionary:')
    for key, value in img.info.items():
        print(f'      {key}')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



