I want to convert openCV rectangle coordinates into CGRect so I can draw image using this.
rectangle(frame, box, Scalar(0,0,255));
In the below code I create the rectangle with these parameters as frame is mat type ,box is CGRect type.
In openCV it display rectangle correctly but I need to create UIImage with same frame.
Any help will be appreciated. Thanks.