Face Detection object elements

Draw objects

for r in objects:
# how to access elements of r (x,y,w,h) ?? 
# Print FPS.
# Note: Actual FPS is higher, streaming the FB makes it slower.
#need to set xa and ya equal to elements of r in objects.
uart.write ("X {} Y {}\n".format(xa, ya)

I ordered a camera and am waiting for it. Above is adapted from the example - I need to extract the x, y, w, h from r in objects. How is done r[0]? r.x? Not familiar with micro python. Thanks for your help.

If r is a list then r[0]. If r is a object then r.x()