text_plain_output_1.png
from PIL import Image, ImageDraw

import os

import numpy as np
import pandas as pd
import xml.etree.ElementTree as ET
from xml.dom import minidom
import os
paths = []
for dirname, _, filenames in os.walk('/kaggle/input'):
    for filename in filenames:
        paths.append(os.path.join(dirname, filename))
xmls = []
jpgs = []
for path in paths:
    if path.split('.')[-1] == 'xml':
        xmls.append(path)
    if path.split('.')[-1] == 'jpg':
        jpgs.append(path)

Image.open(jpgs[0])