# How to use machine learning to derive a mathematical function for image boundary boxes

Say I have several images taken from a car dashcam where I have boundary box around the car with corners A (x1,y1), B (x2,y1) ,C (x2, y2) ,D (x1, y2) and a boundary box around it’s associated number plate with corners E (a1,b1),F (a2, b1),G (a2, b2) ,H (a1, b2). How can I derive a relationship between the two boxes?

The license plate boundary box moves within the boundary box of the car because of the angle of view of the camera and the position of the vehicle in frame. For example, cars directly in front have a license plate position that is mostly central whereas a car on the right has a license plate boundary box to the right, within the car boundary box.

The image below should help to show this.

https://imgur.com/a/giY51Us

I intend to train a machine learning model with several hundred images but I need just need to get the ball rolling with the mathematical concept? Is it some form of regression?

I have the co-ordinates of each corner in (x,y)pixels. How do I derive a relationship between the two?

I also have image width (W) of 720 pixels and image height( H) of 1080. I suppose the independent variables are A,B,C,D and dependant variables E,F,G,H.

I believe I would have 4 functions for each independent variable?