code: def rect_to_bb(rect):
      # take a bounding predicted by dlib and convert it
      # to the format (x, y, w, h) as we would normally do
      # with OpenCV
      x = rect.left()
      y = rect.top()
      w = rect.right() - x
      h = rect.bottom() - y
  
      # return a tuple of (x, y, w, h)
      return (x, y, w, h)
  
imports: from collections import OrderedDict
  import numpy
  import cv2
label_desc: Use image node_id 1 for calling a global function with example usage: rect_to_bb(rect) and returns: x,  y,  w,  h