0

I have bought BOSON FLIR camera and I tested with Jetson Xavier and it works by streaming with Python & opencv. I have an issue that I am getting grayscale image while I am looking for video with RGB color like Ironbow color. This is the code that I am using with python on nvidia board

import cv2
print(cv2.__version__)
dispW=640
dispH=480
flip=2
cam=cv2.VideoCapture(0)

while True:
    ret, frame = cam.read()
    cv2.imshow('nanoCam',frame)
    if cv2.waitKey(1)==ord('q'):
        break
cam.release()
cv2.destroyAllWindows()

kindly looking for your support for conversion.

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
  • 1
    Do you have an example image? Maybe have a look at colorMap functions. – Micka Jul 04 '22 at 17:57
  • ironbow seems equivalent to opencv's `COLORMAP_PLASMA` -- docs for colormap: https://docs.opencv.org/4.x/d3/d50/group__imgproc__colormap.html -- this has nothing to do with deep learning (tag removed) and you haven't used PIL either (tag removed). if you feel that any of those tags were warranted, feel free to add them again. – Christoph Rackwitz Jul 04 '22 at 20:12

1 Answers1

1
# im_gray is the "WHITE HOT" picture from FLIR's web site
colorized = cv.applyColorMap(im_gray, cv.COLORMAP_PLASMA)

here's the result:

COLORMAP_PLASMA

compare to FLIR's Ironbow:

FLIR Ironbow

I think OpenCV's color map is somewhat comparable but it's not as saturated. If you need to match FLIR's color map, there are ways to replicate that even more faithfully.

Read all about colormaps:

FLIR pictures (white hot + ironbow) pirated from:

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36