I’m building my own RC car with Jetson Nano and the Raspberry Pi cam. I’m doing some experiments with the Jetbot examples to understand what I’ve to do (many thanks for the examples :-)).
But I’ve the problem, that I’ve to install the Raspberry Pi camera in “the wrong direction” because of the flat cable that I can’t fold, so that the videos and pictures are upside down.
I’m using the code snippet below to display the camera output in the Jupyter Notebook:
import traitlets import ipywidgets.widgets as widgets from IPython.display import display from jetbot import Camera, bgr8_to_jpeg camera = Camera.instance(width=224, height=224) image = widgets.Image(format='jpeg', width=224, height=224) # this width and height doesn't necessarily have to match the camera camera_link = traitlets.dlink((camera, 'value'), (image, 'value'), transform=bgr8_to_jpeg) display(image)
I searched online and in this community, but I can’t find the solution to flip the camera output for that Python code.
I would be very pleased, if someone could help me.