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

Inconsistency in Image Dimensions Between gsdevice.py and showimages_ros.py Scripts #19

Open
benthebear93 opened this issue Feb 10, 2024 · 0 comments

Comments

@benthebear93
Copy link

In gsdevice.py, the Camera class is initialized with the following image dimensions:

For R1, self.imgw is set to 320, and self.imgh is set to 240.
For R1.5, it is implied that the dimensions should be changed to 240 for width and 320 for height.
However, connection() method of Camera class, the code explicitly sets:

self.imgw to 240,
self.imgh to 320,
effectively overriding the initial dimensions and swapping their values.

Additionally, some methods use the command f0 = resize_crop_mini(f0, self.imgh, self.imgw) to resize the image, resulting in an image size of 320x240x3.

On the other hand, in the showimages_ros.py script, the dimensions are set as:

imgh = 240,
imgw = 320,
indicating the width and height as 320 and 240, respectively, which leads to an image size of 240x320x3.

Upon reviewing both images, the dimensions used in showimages_ros.py appear to be correct. However, there's uncertainty due to the discrepancies between the initial settings in each script. Please verify this inconsistency.

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

1 participant