Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how I flip the image to mode 4 horizontal? #52

Closed
FPSychotic opened this issue Nov 1, 2020 · 2 comments
Closed

how I flip the image to mode 4 horizontal? #52

FPSychotic opened this issue Nov 1, 2020 · 2 comments

Comments

@FPSychotic
Copy link

FPSychotic commented Nov 1, 2020

I done it on jetson-inference adding --input-flip=horizontal , as I get mirrored image, but I couldn't find how in the ros node. I guess I need compile that flip mode, and I know how do it in the old fashion in gstcamera.cpp file with " if mode 4 2 etc, but now is "if FLIP_MODE== 180 .... and I dont know what correspond to mode 4 or horizontal, FLIP_MODE==90 or 270 maybe ? I dont know codding sorry.

thanks

@dusty-nv
Copy link
Owner

dusty-nv commented Nov 2, 2020

It appears that I forgot the flip-method ROS parameter when making the video_source node, sorry about that.

You can manually set your desired flip-method by adding a line like this beneath here:

video_options.height = video_height;

video_options.flipMethod = videoOptions::FLIP_HORIZONTAL;

@FPSychotic
Copy link
Author

Fixed, thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants