Export Bounding Boxes for Objects

Hi, I am happy to have found this forum!

I have a scene with several objects and a little animation that makes my camera follow a path. For each frame, I will save what the camera sees. Also, I would like to export the oriented bounding boxes for the objects in the scene, e.g. with their center point, width and height or with the locations of all corner points to a text file. This will later help me to cut and identify the objects in subsequent steps.
So, how do I

  1. create bounding boxes for the objects
  2. export the bounding boxes to a text file.

Thanks in advance!