cosmac / lepi Goto Github PK
View Code? Open in Web Editor NEWLePi is a lightweight library for FLIR Lepton (2, 2.5 and 3) and Raspberry pi.
License: MIT License
LePi is a lightweight library for FLIR Lepton (2, 2.5 and 3) and Raspberry pi.
License: MIT License
The build stops with an error:
error: ‘cvWaitKey’ was not declared in this scope
I installed opencv (libopencv-dev) and BCM2838 Library (V1.71).
Same behaviour at a second new upset RPi4.
I need help with this issue.
here the outprint from terminal:
[ 84%] Linking CXX executable ../../../install/bin/PlayerThread
[ 84%] Built target PlayerThread
Scanning dependencies of target LePiServer
[ 88%] Building CXX object app/LePiServer/CMakeFiles/LePiServer.dir/LePiServer.cpp.o
[ 92%] Linking CXX executable ../../../install/bin/LePiServer
[ 92%] Built target LePiServer
Scanning dependencies of target LePiClient
[ 96%] Building CXX object app/LePiClient/CMakeFiles/LePiClient.dir/LePiClient.cpp.o
.../LePi/app/LePiClient/LePiClient.cpp: In function ‘int main()’:
.../LePi/app/LePiClient/LePiClient.cpp:119:19: error: ‘cvWaitKey’ was not declared in this scope
119 | int key = cvWaitKey(5);
| ^~~~~~~~~
make[2]: *** [app/LePiClient/CMakeFiles/LePiClient.dir/build.make:63: app/LePiClient/CMakeFiles/LePiClient.dir/LePiClient.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:424: app/LePiClient/CMakeFiles/LePiClient.dir/all] Fehler 2
make: *** [Makefile:84: all] Fehler 2
Hi,
Has this been tried with a Lepton 3.5 sensor? I have the library working nicely on a Pi 3 Model B with a Lepton 2.5 sensor, but with the 3.5 sensor I just get repeated connect/disconnect messages. The sensor works fine in a PureThermal2 board. This is the quick test code I threw together to illustrate the problem:
LeptonCamera cam;
cam.start();
printf("Dimensions: %dx%d Type: %d\r\n",cam.width(),cam.height(),cam.LeptonVersion());
while(1){
if (cam.hasFrame())
printf("Got frame!!!\r\n");
usleep(1000);
}
This is the output from the Lepton 3.5:
Open SPI port: 0, with address 3
Dimensions: 160x120 Type: 1
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Reboot lepton sensor...
Close SPI port: 0, with address 3
Close I2C port: 1, with address 42
Open I2C port: 1, with address 42
Open SPI port: 0, with address 3
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Close SPI port: 0, with address 3
Open SPI port: 0, with address 3
Reboot lepton sensor...
Close SPI port: 0, with address 3
Close I2C port: 1, with address 42
Any suggestions?
Is there are plan or branch that can use CMakeList and C++ like this but in linux?
hello,
when I run the Player or PlayerThread app, the window display is small, is there any way I can resize it to something bigger?
Hi, I have a problem with reading data on pi 3. It was working fine until last week, but suddenly no data came. I checked the SPI ports using spidev_test and it works. And it works with other codes such as pylepton code, my client code is based on this so it is hectic to change. I checked the packetNumber under LeptonReadSegment() and it is never equal to j hence it keeps resetting.
Is there anyway to run the app without sudo? I would like to use this library to write a ros package and I need to run the code without sudo. I already tried adding "pi" to usergroup "i2c" and "gpio" but doesn't help
Hi, I have a problem with running the program. When "Player" is executed in terminal can be seen that it opens and closes the SPI communication to the infinity. Some frames are visible on the screen (like 1 frame per 5 sec.), rest it is looking like the camera is freezed. What can cause this issue?
I´m using Rpi Zero, Jessie, Lepton v3. The processor indicator is not even windy, shows around 40% used computing capacity.
When I try to run "PlayerThread" the processor is used whole, 100%. Almost no frames can be seen and it makes Rpi unuseable unless hard restart is done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.