old_contents: # loads dog images and bounding boxes around heads and bodies
  
  import cv2
  import os
  import pickle as pk
  
  pDogs = pk.load(open('pickle_files/pDogs-bounding-boxes.pd.pk', 'rb'))
  bb = pDogs.dropna()
  
  for i in bb.shape[0]:
      image = cv2.imread(bb.iloc[i].path)
new_contents: # loads dog images and bounding boxes around heads and bodies
  # honestly this would take way too long to go through by hand since there are ~1500 images
  
  import cv2
  import os
  import pickle as pk
  
  pDogs = pk.load(open('pickle_files/pDogs-bounding-boxes.pd.pk', 'rb'))
  bb = pDogs.dropna()
  
  for i in range(bb.shape[0]):
      image = cv2.imread(bb.iloc[i].path)
      clone = image.copy()
      for body in bb.iloc[i].bodies:
          cv2.rectangle(clone, body[0], body[1], (0, 255, 0), 2)
      cv2.imshow('',clone)
      cv2.waitKey(0)
      
  for i in range(bb.shape[0]):
      image = cv2.imread(bb.iloc[i].path)
      clone = image.copy()
      for head in bb.iloc[i].heads:
          cv2.rectangle(clone, head[0], head[1], (0, 255, 0), 2)
      cv2.imshow('',clone)
      cv2.waitKey(0)
subject: check bounding boxes for heads n bodies