使用 Python 程序调用 C 程序运行时,Thermal Stream 出现混乱

发布于 01-19 07:26 字数 706 浏览 2 评论 0原文

使用Lepton 3系列热传感器,RaspberryPi 4和一个通用的RGB摄像机 - 我有一个C程序来运行热摄像机,并且它可以单独运行视频供稿。

但是,我需要在Python中为这个项目运行所有内容,因此我制作了一个Python程序来调用C程序以运行热摄像机。

python调用热凸轮feed的代码:

    import os 
    import subprocess 
    import dlib_adafruit_picture as camVideo
    filePath = r"/home/pi/LeptonModule-master/software/raspberrypi_video"       
    subprocess.Popen(os.path.join(filePath, "raspberrypi_video"),       shell=True)
    camVideo.main()
    input()

混乱的热图像

好热图像

Using a Lepton 3 series thermal sensor, raspberrypi 4, and a generic RGB camera - I have a C program to run the Thermal camera and it runs a video feed just fine on its own.

However, I need to run everything in Python for this project, so I made a Python program to call the C program to run the Thermal camera.

The code to call thermal cam feed (in C) from python:

    import os 
    import subprocess 
    import dlib_adafruit_picture as camVideo
    filePath = r"/home/pi/LeptonModule-master/software/raspberrypi_video"       
    subprocess.Popen(os.path.join(filePath, "raspberrypi_video"),       shell=True)
    camVideo.main()
    input()

Messed up thermal image

Good thermal image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文