tomasz-lewicki / ai-thermometer

Fever screening with IR & RGB cameras and Deep CNNs
152 stars 40 forks source link

Camera Issue #42

Closed BasilHarun closed 3 years ago

BasilHarun commented 3 years ago

PHOTO-2021-08-16-14-40-30

can you help me with this erroor

tomasz-lewicki commented 3 years ago

Hi there!

This should help :slightly_smiling_face:

echo 'SUBSYSTEM=="usb",  ENV{DEVTYPE}=="usb_device", GROUP="plugdev", MODE="0664"' | sudo tee /etc/udev/rules.d/10-libuvc.rules 
sudo udevadm trigger

You can read more about this in the FAQ

BasilHarun commented 3 years ago

Hi,

Thanks for replying, I’ve tried it out but see everytime it gives different error resize error is due to it doesn't detect pi camera and waiting for ir frames is due to empty pipline of ir thread

4C492EA4-872C-48E7-9F0D-18F8C84C0DE7

The only thing I think I’m using Nano 2Gb could it be because of the memory.

BasilHarun commented 3 years ago

Error 1

27381ED8-F49E-417B-A96F-87D5FD482B6D

Error 2

BE465A93-DAD8-45A9-BC9D-C25259C67CE4

BasilHarun commented 3 years ago

![Uploading 3A799CD2-0BA0-4BD8-8A8D-C5EB8D075842.png…]()

tomasz-lewicki commented 3 years ago

Yeah, so those are two separate issues: 1) with Pi Camera 2) with USB permissions for Lepton 3.

To try addressing 1) I'd start by restarting argus:

sudo systemctl restart nvargus-daemon.service

After restart, try this:

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),  width=(int)1920, height=(int)1080, format=(string)NV12,  framerate=(fraction)30/1' ! nvoverlaysink

Can you see video on the screen?

Regarding 2): are you still seeing uvc_open error -3?

BasilHarun commented 3 years ago

Hi,

I did all the steps accordingly, and can see the video.

Then I ran Python3 Main.py,

on side note (I had a low memory warning on right hand corner.)

this is the result.

3D14822E-10F3-46D2-B973-987943AC3863

59ABA8E1-75A9-45B3-B188-4647E8EC7730

BasilHarun commented 3 years ago

After fixing RGB Error, it gives me the IR error.

3AD2AC08-7B58-453C-88B3-A1A6A5C03C65

BasilHarun commented 3 years ago

Also I’m Using Jetson Nano 2GB not 4GB and when I run main.py it always gives me this error on side.

6595C77B-4F51-4333-90AA-70155764B749

BasilHarun commented 3 years ago

When I run the IR camera individually, I get this empty error.

8C01806F-1714-4F5D-8EDD-F7F93145C070