Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What are the numbers in the the bracket? Are they rows and columns of the pixel matrix.Also how come the person know the exact position to copy the image of a ball inside of an image as for that you would have to be very accurate down to the pixel.

"Here I am selecting the ball and copying it to another region in the image:

ball = img[280:340, 330:390] img[273:333, 100:160] = ball "

Here is the link of the tutorial:http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basic-ops

Go to Image ROI

Thanks :)

What are the numbers in the the bracket? Are they rows and columns of the pixel matrix.Also how come the person know the exact position to copy the image of a ball inside of an image as for that you would have to be very accurate down to the pixel.

This is in the opencv-python tutorial below is the link. "Here I am selecting the ball and copying it to another region in the image:

ball = img[280:340, 330:390] 330:390]

img[273:333, 100:160] = ball "

Here is the link of the tutorial:http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basic-ops

Go to Image ROI

Thanks :)

click to hide/show revision 3
No.3 Revision

updated 2017-07-13 02:27:09 -0600

berak gravatar image

image ROIs in python

What are the numbers in the the bracket? Are they rows and columns of the pixel matrix.Also how come the person know the exact position to copy the image of a ball inside of an image as for that you would have to be very accurate down to the pixel.

This is in the opencv-python tutorial below is the link. "Here I am selecting the ball and copying it to another region in the image:

ball = img[280:340, 330:390]

img[273:333, 100:160] = ball "

Here is the link of the tutorial:http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html#basic-ops

Go to Image ROI

Thanks :)