edibusl
Posts: 4
Joined: Fri Jul 03, 2020 11:48 am

NOIR camera is "blind" in the dark

Fri Jul 03, 2020 11:56 am

Hello,
I bought an official NOIR camera module and try to show (or stream) video on my Raspberry Pi 4 (Raspberry Pi OS).
When there is light, the video looks fine (a little bit red), but when it's a little bit darker, the video is completely dark.

Am I missing something?
Attached an example of my room shot by the NOIR camera and by my smartphone.

Thanks in advance,
Edi.
Attachments
20200703_144543.jpg
Smartphone
20200703_144543.jpg (54.24 KiB) Viewed 344 times
Workspace 1_999(006).png
NOIR
Workspace 1_999(006).png (147.73 KiB) Viewed 344 times

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: NOIR camera is "blind" in the dark

Fri Jul 03, 2020 2:36 pm

NoIR is NOT an IR camera. It is a camera with no IR filter. If you add IR illumination then it will see it, whereas a normal colour camera won't.

Are those two images with the same lighting conditions? If so then it's possible that the AE algorithm is seeing the window and trying to compensate for that. Add "-mm spot" to the raspivid/still command line to concentrate it on the centre of the image.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

edibusl
Posts: 4
Joined: Fri Jul 03, 2020 11:48 am

Re: NOIR camera is "blind" in the dark

Fri Jul 03, 2020 4:43 pm

Those two images were shot with the same lighting conditions.
I was just wondering if the NoIR camera needs IR LEDs to give good results, while a smartphone camera shows a clear image.
It's not even complete dark, just a little bit darker than a fully bright room.

P.S. - The "-mm spot" didn't help. Also when rotating the camera to a spot without any light, like some wall, it's still gives a black image with barely any objects seen.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: NOIR camera is "blind" in the dark

Fri Jul 03, 2020 7:42 pm

edibusl wrote:
Fri Jul 03, 2020 4:43 pm
Those two images were shot with the same lighting conditions.
I was just wondering if the NoIR camera needs IR LEDs to give good results, while a smartphone camera shows a clear image.
It's not even complete dark, just a little bit darker than a fully bright room.

P.S. - The "-mm spot" didn't help. Also when rotating the camera to a spot without any light, like some wall, it's still gives a black image with barely any objects seen.
That's not right, it should take pictures that a simply look badly colour corrected compared with a normal camera, not darker.

Are you using raspistill? What parameters?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

edibusl
Posts: 4
Joined: Fri Jul 03, 2020 11:48 am

Re: NOIR camera is "blind" in the dark

Sat Jul 04, 2020 2:46 pm

The bad image was from raspivid (a screenshot I did in a vlc stream view)
For a better comparison, I'll attach images again from raspistill and raspivid with the same lighting conditions.
The image from the smartphone looks the same as previously attached, it's just not possible to attach 4 images in a post.

Raspistill:

Code: Select all

raspistill -v -o raspistill.jpg
Raspivid:

Code: Select all

raspivid -o - -t 0 -n -mm spot | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Raspivid with ISO 800 (I tried also to play with brightness, but it doesn't really help to improve the image quality):

Code: Select all

raspivid -o - -t 0 -n -mm spot --ISO 800  | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
Attachments
raspivid-iso-800.png
raspivid-iso-800
raspivid-iso-800.png (180.09 KiB) Viewed 226 times
raspivid.png
raspivid
raspivid.png (101.02 KiB) Viewed 226 times
raspistill.jpg
raspistill
raspistill.jpg (66.71 KiB) Viewed 226 times

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: NOIR camera is "blind" in the dark

Sat Jul 04, 2020 5:31 pm

Raspivid will be running at 30fps, which limits the exposure time. Try dropping the frame rate to get longer exposure times per frame.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

edibusl
Posts: 4
Joined: Fri Jul 03, 2020 11:48 am

Re: NOIR camera is "blind" in the dark

Sat Jul 04, 2020 6:05 pm

It helped a little bit, thanks!
Anyway I think that the best option would be to get an IR LED and also to compare to a regular camera module to verify that my NoIR camera is not damaged.

Thanks for the help!

pidd
Posts: 724
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: NOIR camera is "blind" in the dark

Sat Jul 04, 2020 9:02 pm

edibusl wrote: It helped a little bit, thanks!
Anyway I think that the best option would be to get an IR LED and also to compare to a regular camera module to verify that my NoIR camera is not damaged.

Thanks for the help!
Try using an IR TV remote control if you have one handy, it should be just visible with your phone camera but appear like a torch on the NoIR

Return to “Camera board”