-
Brief descriptionGreetings, we are trying to do an experiment where we want to create an illusion by having the images from the two cameras rotated around the horizontal axis so the left and right are reversed. Detailed contextWe have a yarp port containing the image coming from the yarpdev camera output that is connected to another input port for a head mounted display. For subjects wearing the HMD, we want to create the illusion that left is right and right is left. I wonder if there is a parameter somewhere that I can change to generate the rotated image. Accompanying material |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Hello. Are these RGB cameras (webcams)? The |
Beta Was this translation helpful? Give feedback.
-
Thanks Peter! In fact, they are the cameras in the iCub eyes. Do you think what you suggest can be done with these cameras? |
Beta Was this translation helpful? Give feedback.
-
I'm afraid I can't help, I have no experience nor have I actually worked with a real iCub. Anyway, it is my guess that iCub eyes host a pair of dragonfly cameras (ref). In the device description, there is no appropriate parameter for frame flipping/mirroring (ref). |
Beta Was this translation helpful? Give feedback.
-
Hi @pfdominey Glad to hear from you! Hope you're doing fine. Assuming that you're dealing with only one stream of right and left images glued together side by side (otherwise you could simply swap the 2 different flows), I don't think there's already an option to achieve what you're looking for. Anyway, I'm not an expert of HMD; perhaps @drdanz and/or @randaz81 plus @S-Dafarra can chime in providing heads-up on this as they're developers/users of the Oculus device. At any rate, flipping the images should be rather easy, boiling down to just one OpenCV call. One could code that in a simple relay module running in between the images source and sink. The same |
Beta Was this translation helpful? Give feedback.
-
Hi Ugo, Good to hear from you! Do you know if there is an .ini file somewhere in the icub yarp world where we can change a parameter to invoke this flip? |
Beta Was this translation helpful? Give feedback.
-
Hi Peter, I don't know how you're generating the aggregate image conveying both the left and the right cameras' output. Probably, you're relying on the following lines somewhere in your startup applications: <module>
<name>yarpdev</name>
<parameters> --from camera/ServerGrabberDualDragon.ini --split false</parameters>
<node>pc104</node>
</module> If this is the case, you may try out the following: <module>
<name>yarpdev</name>
<parameters> --from camera/ServerGrabberDualDragon.ini --split false --left_config camera/dragonfly2_config_right.ini --right_config camera/dragonfly2_config_left.ini</parameters>
<node>pc104</node>
</module> This will tell the |
Beta Was this translation helpful? Give feedback.
-
Hi Ugo, Thanks. But one thing - We dont wnt to swap left and right eye, but to perform a flip around the vertical axis so that within a given image, left is right and right is left. |
Beta Was this translation helpful? Give feedback.
-
Then, I'm afraid we haven't a parameter for that flip, at least to my knowledge. |
Beta Was this translation helpful? Give feedback.
-
For a completely unrelated investigation, I was reading at the OVR headset device code, and I found the optional parameter |
Beta Was this translation helpful? Give feedback.
-
Another possible related thing is |
Beta Was this translation helpful? Give feedback.
-
Just to say that we got it working, using SWOOZ by Guillaume Gibert
Then you need to recompile the code. Guillaume |
Beta Was this translation helpful? Give feedback.
Then, I'm afraid we haven't a parameter for that flip, at least to my knowledge.