Ask Your Question

how to set (0,0) at the bottom left or right side in video frame in opencv?

asked 2019-01-31 10:55:42 -0500

vivpatel99 gravatar image

updated 2019-02-01 02:41:57 -0500


I am working with robotic arm tracking. but because of (0,0) is up-left side of the frame. my robotic arm is moving in the wrong direction. for example when the object is upside of the frame then my arm going down.

I tried flipping the image but my object detection stop working. I also searched on the internet but could not found the solution for it. I found this link

but I do not know how to implement this with opencv. I think there could be a better way to shift (0,0) downside of the frame.

Thank you in advanced

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-02-01 02:45:45 -0500

berak gravatar image

updated 2019-02-01 02:46:11 -0500

no, flipping the image won't work. it's probably as simple as :

y' = img.shape[0] - y;
edit flag offensive delete link more


Thanks for the reply. but I am little new to image manipulation.can you please tell me how did you get 'y'?

vivpatel99 gravatar imagevivpatel99 ( 2019-02-01 03:03:42 -0500 )edit

I am working with robotic arm tracking

whatever you get from there

berak gravatar imageberak ( 2019-02-01 03:14:35 -0500 )edit

it is working thank you very much

vivpatel99 gravatar imagevivpatel99 ( 2019-02-01 03:57:03 -0500 )edit

Question Tools

1 follower


Asked: 2019-01-31 10:55:42 -0500

Seen: 113 times

Last updated: Feb 01 '19