ExecuteMain
This is the entry point for the procedure and that we have specified earlier in the header. ibaVision will execute this function for each frame.
Lines 5-11 unpack the input parameters into separate variables to improve readability.
Lines 11-18 calculate the average brightness of the image and use the OpenCV library to rotate it.
Lines 22-25 set the outputs for ibaVision to retrieve.
