SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
I want to get image width and height, how can I do that in OpenCV?
For example:
Mat src = imread("path_to_image"); cout << src.width;
Is that right?
This question is related to python c++ opencv
python
c++
opencv
Also for openCV in python you can do:
img = cv2.imread('myImage.jpg') height, width, channels = img.shape
Source: Stackoverflow.com