luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
801 stars 357 forks source link

green result from gen2-color-isp-raw #476

Open re-this opened 1 year ago

re-this commented 1 year ago

I ran the code from gen2-color-isp-raw and found that the color image in "raw" window looks very green. Is it right? Is the raw image originally green and does the isp convert it to normal?

Erol444 commented 1 year ago

Hi @re-this , could you share the image of this?

re-this commented 1 year ago

Hi @Erol444.

Because of my computer issue, I can't upload the images... By the way, it has real green color while isp shows white image. Do I have to use another unpack function?

Actually, I want to get an image with linear gamma curve from oakd camera. And that's the reason why I need raw images. Is there a way I can get an image with linear gamma curve? More specifically, the image that was processed by isp but corrected to have linear gamma curve.

If it is not possible, can I get a gamma value which is used for gamma correction in isp?

Erol444 commented 1 year ago

@alex-luxonis would you know the gamma value used for gamma correction in isp?

re-this commented 1 year ago

@Erol444 @alex-luxonis Can I get an answer, please?

Erol444 commented 1 year ago

(I have no idea on the answer, but that image from your side would still be useful for debugging)

jakaskerl commented 1 month ago

Having the same issue. Here is an image. image

Unpacking was done using https://github.com/luxonis/depthai-experiments/blob/3f1b2b2/gen2-color-isp-raw/main.py#L13-L32 Debayering using cv2.COLOR_BayerBG2BGR.