Skip to content

Comments

Add the parameters *mirror* and *rotate* to the base camera#101

Merged
MarcusZuber merged 1 commit intomasterfrom
add-convert-parameters
Mar 28, 2025
Merged

Add the parameters *mirror* and *rotate* to the base camera#101
MarcusZuber merged 1 commit intomasterfrom
add-convert-parameters

Conversation

@MarcusZuber
Copy link
Member

These parameters tell how the frames should be converted. The conversion is NOT done by libuca. This could be done by this python function:

def convert_image(image, mirror: bool, rotate: int):
if mirror:
image = np.fliplr(image)
if rotate:
image = np.rot90(image, k=rotate)
return image

These parameters tell how the frames should be converted. The conversion is NOT done by libuca. This could be done by this python function:

def convert_image(image, mirror: bool, rotate: int):
   if mirror:
      image = np.fliplr(image)
   if rotate:
      image = np.rot90(image, k=rotate)
   return image
@MarcusZuber MarcusZuber requested a review from tfarago March 27, 2025 09:41
@MarcusZuber MarcusZuber merged commit ae21b1d into master Mar 28, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants