Ask Your Question
-1

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

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

vivpatel99 gravatar image

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

Hello,

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 https://stackoverflow.com/questions/4...

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
0

answered 2019-02-01 02:45:45 -0600

berak gravatar image

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

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

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

Comments

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 -0600 )edit

I am working with robotic arm tracking

whatever you get from there

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

it is working thank you very much

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

Question Tools

1 follower

Stats

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

Seen: 220 times

Last updated: Feb 01 '19