How to get image area and align all images

I want to get an image area, for example, if the image is 150*30 pixels , than it returns / tells me this value is 150*30 , and if I have several images, and I want all of them to be the same size as they should all be 150*30 pixels in size than what I should do as I want to do this to train my data with SVM

+1
source share
1 answer

You must use the resize function, for example,

 resize(input,output,Size(150,30)); 
0
source

Source: https://habr.com/ru/post/976515/


All Articles