Lepton Maker Community / Forum / Other platforms / Topics / Lepton 2.5 & PureThermal 2 Can't Run MacOS

Lepton 2.5 & PureThermal 2 Can't Run MacOS

Home Lepton and Windows Forums Other platforms Lepton 2.5 & PureThermal 2 Can't Run MacOS

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Gonçalo Gonçalo 2 weeks, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author


  • #18582

    Profile photo of Nitram


    Hi… I’ve only been learning about leptons in the last few days. I use lepton 2.5 with Purethermal 2 and run it on MacOS with the tutorial provided on this link

    But it didn’t work. Any related explanation or troubleshooting about this ? Thanks

    [ERROR:0] VIDEOIO(cvCreateCameraCapture_AVFoundation(index)): raised unknown C++ exception!
    Running, ESC or Ctrl-c to exit...
    Error reading image


    • This topic was modified 1 month ago by Profile photo of Nitram Nitram. Reason: attached screenshot
    • This topic was modified 1 month ago by Profile photo of Nitram Nitram.


    Profile photo of Gonçalo



    I connected Lepton 3.5 to Adafruit ESP32 Feather and I used this code attached in Arduino. So my problem consists of reading the frames of the camera. With this code, I can’t have any results on Serial Monitor, but if I remove the condition “if (flirController.readNextFrame())”, the Serial Monitor is constantly showing me the results of the first frame, instead of showing me the results continuously.

    I have already changed the baudrate and the clock but the results are the same.

    #include “LeptonFLiR.h”
    //#include “digitalWriteFast.h”
    #include <Wire.h>
    const byte flirCSPin = 22;
    LeptonFLiR flirController(Wire, flirCSPin); // Library using Wire1 and chip select pin D22

    // Fast CS enable/disable routines, using the digitalWriteFast library
    static void fastEnableCS(byte pin) { digitalWrite(22, LOW); }
    static void fastDisableCS(byte pin) { digitalWrite(22, HIGH); }

    void setup() {

    Wire.begin(); // Wire1 must be started first
    Wire.setClock(15000); // Supported baud rates are 100kHz, 400kHz, and 1000kHz
    SPI.begin(); // SPI must be started first as well

    // Using default memory allocation mode 80×60 16bpp and default celsius temperature mode

    // Setting use of fast enable/disable methods for chip select
    flirController.setFastCSFuncs(fastEnableCS, fastDisableCS);

    flirController.sys_setTelemetryEnabled(ENABLED); // Ensure telemetry is enabled

    void loop() {
    if (flirController.readNextFrame()) { // Read next frame and store result into internal imageData
    // Find the hottest spot on the frame

    int hotVal = 0, hotX, hotY;

    for (int y = 0; y < flirController.getImageHeight(); ++y) {
    for (int x = 0; x < flirController.getImageWidth(); ++x) {
    int val = flirController.getImageDataRowCol(y, x);

    if (val > hotVal) {
    hotVal = val;
    hotX = x; hotY = y;

    Serial.print(“Hottest point: [“);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.