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 to set ROI? #55

Open
ancabilloni opened this issue May 12, 2019 · 2 comments
Open

How to set ROI? #55

ancabilloni opened this issue May 12, 2019 · 2 comments

Comments

@ancabilloni
Copy link

I would like to use ROI to get a smaller focus portion of the image, in hope to has less data to pack and unpack, hence increase performance (lower latency). I see that is an available option on the camera message but how do I set this? And if i use this, would it affect the latency in the negative way since introduce extra process to pylon camera node?

Hope for some input. Thanks!

@argolomb
Copy link

Same issue here

I'm trying with ex. camera.Width.SetValue(xxx) anda a get the message:

genicam.AccessException: Node is not writable. : AccessException thrown in node 'Width' while calling 'Width.SetValue()' (file 'IntegerT.h', line 77)

Works when I use AutoFunctionROIWidth node, but for me isn't seen correct.

@NikolasE
Copy link
Contributor

You can set the ROI with the ~set_roi service:

rosservice call /pylon_camera_node/set_roi "target_roi: {x_offset: 1220, y_offset: 1000, height: 200, width: 400, do_rectify: false}

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

3 participants