groupgets / LeptonModule

Code for getting started with the FLIR Lepton breakout board
https://groupgets.com/manufacturers/flir/products/flir-lepton
BSD 2-Clause "Simplified" License
317 stars 197 forks source link

V4l2 Lepton #27

Closed raspiuser200 closed 8 years ago

raspiuser200 commented 8 years ago

Hello,

I'm using your Lepton module FLIR, and I'm trying to use the v4l2 program for converting module to a dev / videoX. But the result is not satisfactory

I'm using Raspberry (raspbian). I got the headers for the kernel version 4.4.8-v7 + I have, but when installing it gives error. How did you hit one?

Nevertheless, I tried to compile and run your code, but I get an error v4l2 Sink.

Could you help me? Thank you and congratulations for your work.

marty-sullivan commented 8 years ago

Hi, were you able to install the v4l2loopback kernel module successfully and add it to the kernel with modprobe?

raspiuser200 commented 8 years ago

Hi @marty-sullivan

Yes, I tried to install v4l2loopback, with several different kernels 4.4. and 4.1.XX-v7 , , but I can't successfully run modprobe v4l2loopback.

If you did a raspberry, you could comment me like?

Because I am referring to the github of v4l2loopback, and I couldn't get it.

Sorry for the inconvenience. And thanks in advance. .

marty-sullivan commented 8 years ago

Here are the steps I took to compile the v4l2loopback kernel module on a raspberry pi:

  1. Install kernel headers with rpi-source utility.
  2. Compile v4l2loopback source
  3. If step 2 is successful, you should have v4l2loopback.ko in the source directory
  4. Copy v4l2loopback.ko to /lib/modules (I believe just /lib/modules directory works, but if that doesn't work, put it in /lib/modules/$(uname -r) ).
  5. You might find insmod works too, I just copied the file like step 4 says
  6. At this point, you should be able to modprobe v4l2loopback

Beware that updating kernel means you will have to recompile v4l2loopback by following these steps again.

raspiuser200 commented 8 years ago

Hi @marty-sullivan

THANKS!

Apparently it was a problem with my kernel and headers used to. I had downloaded from another website but by using the tool you have told me has been fixed (RPI-source). Thanks for the reply speed. I was very disappointed because I couldn't find the error, but now finally works.

Cullpepper commented 7 years ago

Hi Marty,

I think I installed everything correctly, but trying to launch v4l2lepton gives me this code: "Waiting for sink" "done reading, rests"

And that's it. Any suggestions?

Cherry97Pepis commented 3 years ago

Hi Cullpepper, I have the same problem. I'm trying to stream thermal video from Lepton 2.5 through Raspberry Pi 4B to my iOS app. It's kind of prototype of drone with thermal vision. When I start the ./v4l2lepton I get "Waiting for sink", sometimes I get sth weird on the screen in VLC, but usually I get nothing :( Have you any idea to fix it? I try most of ways to fix it, but people say "wow, it working" and I can only say "nope, still nothing change" :P

Cullpepper commented 3 years ago

Oh heck, that was 5 years ago, I barely remember now.

Your issue could be totally different but If I recalL, my problem turned out to be the physical housing of the flir in the board- the sensor is only loosely fitted to the contact points and I had to pop it out and re-seat it.

Sent from my iPhone

On Jul 16, 2021, at 10:56 AM, Cherry97Pepis @.***> wrote:

 Hi Cullpepper, I have the same problem. I'm trying to stream thermal video from Lepton 2.5 through Raspberry Pi 4B to my iOS app. It's kind of prototype of drone with thermal vision. When I start the ./v4l2lepton I get "Waiting for sink", sometimes I get sth weird on the screen in VLC, but usually I get nothing :( Have you any idea to fix it? I try most of ways to fix it, but people say "wow, it working" and I can only say "nope, still nothing change" :P

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Cherry97Pepis commented 3 years ago

Oh Thx for reply I’m really broken abt my project That is my master Thesis and i have two weeks to finish it

I will try to check the camera as u say. Maybe that will help Thanks a lot :)

Wiadomość napisana przez Cullpepper @.***> w dniu 16.07.2021, o godz. 17:07:

 Oh heck, that was 5 years ago, I barely remember now.

Your issue could be totally different but If I recalL, my problem turned out to be the physical housing of the flir in the board- the sensor is only loosely fitted to the contact points and I had to pop it out and re-seat it.

Sent from my iPhone

On Jul 16, 2021, at 10:56 AM, Cherry97Pepis @.***> wrote:

 Hi Cullpepper, I have the same problem. I'm trying to stream thermal video from Lepton 2.5 through Raspberry Pi 4B to my iOS app. It's kind of prototype of drone with thermal vision. When I start the ./v4l2lepton I get "Waiting for sink", sometimes I get sth weird on the screen in VLC, but usually I get nothing :( Have you any idea to fix it? I try most of ways to fix it, but people say "wow, it working" and I can only say "nope, still nothing change" :P

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

EdwinNavarro commented 1 year ago

Hi Cherry, Were you able to fix your issue? I wonder if this still works

Cherry97Pepis commented 1 year ago

Hi Edwin, Yes, I fixed my issue, I had to use v4l2loopback kernel module and Motion program. V4l2loopback helped me to create virtual video device and stream image from camera. My RaspberryPi didn't recognise FLIR camera before so I had no other choice and fast way to stream video. When I created virtual device in v4l2loopback i was able to see the image from my camera in VLC player. Motion program was used to send video to my iOS App :) If you have any questions just ask :) It was some time ago, but maybe my master thesis will help :)

EdwinNavarro commented 1 year ago

I want to do something similar to what you did. However I was planning on writing a gui, and thermal feed would be done by using opencv, then stream it using vnc viewer. I haven’t been able to open the thermal stream using opencv. I need to control some gpio pins as digital outputs. An iOS app would be better though