I modified the cuda-examples.py code from jetson-inference/build/aarch64/bin to include these 4lines of code:
draw 2 vertical lines on left side
jetson.utils.cudaDrawLine(color_img, (0,color_img.height), (0,0), (0,0,0,255), 3) # Black vertical line
jetson.utils.cudaDrawLine(color_img, (10,color_img.height), (10,0), (255,255,153,255), 3) # Yellow vertical line
draw 2 vertical lines on right side
jetson.utils.cudaDrawLine(color_img, (color_img.width,color_img.height), (color_img.width,0), (0,0,0,255), 3) # Black vertical line
jetson.utils.cudaDrawLine(color_img, (color_img.width-10,color_img.height), (color_img.width-10,0), (255,255,153,255), 3) # Yellow vertical line
I commented out the original 3 lines under “draw some shapes”.
The yellow lines seem thicker by ~40%. Don’t know if this expected or a graphics issue. To me they would appear the same. I’m using an MSI display.
Not a high priority with me right now but would be interested if anyone has the same problem. My work around is to lower the yellow lines’ thickness setting to compensate.
An additional question: I looked for a palette guide for RGB8 on the internet and couldn’t find one. What is the 4th code value for in the color codes. I set it to 255 and it seems ok. Any clues?
Thanks all