Sounds like you are using OpenCv so you may just want to use ROI (region of interest)
One watchout is to make sure you reset it after you are done using it
Hi, this question comes up a lot, depending on what sort of cropping you need, ther eare different ways of doing it. If you need a simple rectangular crop, you can use the ofPixels::crop methods or jcleave’s suggestion to use openCV functionality. If you need non rectangular cropping (to mitigate perspective distortion for example) you might look at this-thread which provides some other solutions for quad warping including an openCV approach warpIntoMe() or a routine I wrote called getQuadSubImage().
I’ve been looking for an example implementation of the simple rectangular crop but I’ve come up empty-handed. Found some really old implementation from before the ofPixels::crop existed in the forum, so maybe someone could post an example of how to crop a video using ofPixels() and crop()?