Comments (4)
Thank you for the kind words. I understand how the FFC might confuse a motion detection algorithm (and the few seconds after as the Lepton settles back down). It should be possible to do what you want using the python interface. You should download, if you have not already, a copy of the Lepton data sheet (which describes the contents of the telemetry data) and the Interface Description document (IDD - which describes the CCI command interface). You should be able to find these on the Group Gets Lepton pages. Lots of good information about the Lepton and the way it works.
-
There are two ways to read the FFC status. The Status field in the telemetry data returned with each image contains current FFC information in words 3 & 4. See "Table 3 - Status Bit Encoding (Telemetry Row A, words 3 and 4)" in the Lepton datasheet. You can also use the python driver's get_lep_cci method to run a Get SYS FFC Status command (see 4.4.29) in the IDD.
-
You can configure the Lepton's FFC mode using the python driver's set_lep_cci method to run a Set SYS FFC Mode Control command (see 4.4.27) to configure the mode. Then you can use the SYS Run FFC Normalization command to explicitly execute a FFC if you want.
The get/set_lep_cci methods provide direct access to the CCI and are configured in terms of the 16-bit word data fields so you have to map the IDD C-language description into the actual 16-bit data words sent/received from the Lepton. The intent of these methods was to be able to execute commands that there wasn't a more specific python API for. The Desktop application also provides a way to run direct CCI commands and might be useful to poke around and see what the lepton returns, etc. Of course you can do this from python as well. The "cci_demo.py" program shows how to use these methods.
I hope this is helpful. Good luck with your project.
from lepton.
How are you integrating the TCAM into you home monitoring setup?
from lepton.
I haven't. I did write a toy web server that is designed to connect to one or more cameras and store images when certain temperature criteria are met. I played with it last fall looking for large animals on my property with mixed success. What I want to do is exactly what you're doing and add motion detection but it seems a non-trivial problem to solve.
from lepton.
Hello,
at first, thank you very much, danjulio. Sorry for the late answer but I was a bit busy.
Your advice was very helpful so I could solve the problem regarding FFC. The current version of the motion detection script works with OpenCV. When the FFC is triggered the script ignores the changing pixel for a certain amount of time. An alternative would be to trigger FFC manually or to deactivate. However, I try to avoid the latter.
What of course needs to be said is the fact that the area of surveillance is very limited in my use case - it's a balkony. I haven't integrated it fully yet but the test result were ok. One must play with various settings that can be done for such a script, the alarm should not be triggered as soon as there is a human detected (because it could be also something different) but after a certain amount of time. Another approach worth trying out could be a tensor flow trained alarm, eventually.
The plan is to integrate the TCAM into an alarm server system which analyses the stream and triggers an alarm in case.
I can keep you informed as soon as I make progress.
from lepton.
Related Issues (20)
- cJson.h . I must be missing something as I can't find this file in the source tree HOT 2
- Packaging and Licensing HOT 3
- tCam-Mini with Serial Output HOT 2
- transfer stop while ffc HOT 4
- Mobile App HOT 1
- Change palette in streamtest.py HOT 1
- Esp32 HOT 1
- Connect external antenna on tCam-Mini HOT 2
- Building with idf.py fails HOT 11
- Feature Request: RTSP tCam-mini HOT 3
- tCam-Mini maximum Wifi password length should be 64, not 32 HOT 2
- Web app stalled at "Application is ready" HOT 4
- Questions about the wifi mode of tCam-Mini HOT 3
- Change default palette in the Lepton Module HOT 2
- web server on ESP32 show lepton image
- ESP 32 and Flir Lepton 3.5: OEM GPIO VSync Phase Delay HOT 2
- shutter control HOT 5
- shutter control through external pins? HOT 2
- Image Analysis in FLIR TOOLS HOT 3
- Typo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lepton.