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

Object Detection in OpenCV #91

Open TheHungrySlav opened 1 year ago

TheHungrySlav commented 1 year ago

Hello, I am attempting to use OpenCV to detect objects on a live Lepton feed. The problem is I do not know which Lepton files to import to my Python code. How can I implement this?

OpenCV.zip

marty-sullivan commented 1 year ago

I created the v4l2lepton module (source in this repository) several years back to allow the Lepton 2 to show up as a standard v4l2 webcam that OpenCV can interact with.

https://github.com/groupgets/LeptonModule/tree/master/software/v4l2lepton

I haven't done any maintenance on this for some time but others have made some minor contributions. I don't think it was ever updated for use with Lepton 3 but it may not be too hard.

Otherwise, you would need to use some code that pulls frames from your Lepton and feed them into OpenCV as standard image formats.