Hello,
I am doing something that I almost seem to have correct but its slightly off enough that I’m missing something easy. I’ve got these very large frames from a 4K video that I am resizing to perform operations on and I end up with a rectangle from the resized/smaller frames. My thought process is that scaling up and down the image is probably damaging to the image in that its adds distortions/noise/whatever, so I would like to take the rectangle from the resized smaller frame and expand it to the original frame.
So, for instance imagine I take a frame from a video and resize it to 50% of the original size and then perform face detection upon it, then I’d like to take the resulting rectangle from face detection and expand and reposition it to the original frame, how do I go about doing that?
Currently, I am resizing it by multiplying the ROI height/width by 0.5 and then modifying the ROI x,y coordinates by taking the difference between the original width/height with the resized width/height divided in half-- which is almost right, but leaves me a bit off-- what am I doing wrong here?
Thanks
Nathan