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 change resolution? #31

Open
Goughhhhhh opened this issue Oct 24, 2024 · 2 comments
Open

How to change resolution? #31

Goughhhhhh opened this issue Oct 24, 2024 · 2 comments

Comments

@Goughhhhhh
Copy link

How to change the default camera resolution of 1280×480? I want to set it to 640×480

@lbristiel-psee
Copy link
Collaborator

Hello,

to change the resolution of your camera, you can use the Region of Interest feature of the sensor.
This feature is explained here: https://docs.prophesee.ai/stable/hw/manuals/pixel_selection/region_of_interest.html

In the case of ROS wrapper, you can call this feature (facility) on the "camera" object simarly to what we do for biases in:
https://github.com/prophesee-ai/prophesee_ros_wrapper/blob/master/prophesee_ros_driver/src/prophesee_ros_publisher.cpp#L80

camera_.get_facility<Metavision::I_LL_Biases>().load_from_file(biases_file_);

In the case of ROI, you would do something like:

Metavision::I_ROI::Window roi_to_set(320,0,640,480);
camera_.get_facility<Metavision::I_ROI>().set_window(roi_to_set);
camera_.get_facility<Metavision::I_ROI>().enable(true);

Hope this helps,
Laurent for Prophesee Support

@Goughhhhhh
Copy link
Author

Hello,

to change the resolution of your camera, you can use the Region of Interest feature of the sensor. This feature is explained here: https://docs.prophesee.ai/stable/hw/manuals/pixel_selection/region_of_interest.html

In the case of ROS wrapper, you can call this feature (facility) on the "camera" object simarly to what we do for biases in: https://github.com/prophesee-ai/prophesee_ros_wrapper/blob/master/prophesee_ros_driver/src/prophesee_ros_publisher.cpp#L80

camera_.get_facility<Metavision::I_LL_Biases>().load_from_file(biases_file_);

In the case of ROI, you would do something like:

Metavision::I_ROI::Window roi_to_set(320,0,640,480);
camera_.get_facility<Metavision::I_ROI>().set_window(roi_to_set);
camera_.get_facility<Metavision::I_ROI>().enable(true);

Hope this helps, Laurent for Prophesee Support

Thank you for your response and for providing the two methods to set the resolution of the event camera. I’m currently trying to implement the ROS wrapper approach. Could you please provide more detailed instructions or examples on how to set it up? Any specific steps or code snippets would be really helpful. Thank you for your assistance!

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