使用 Python 程序调用 C 程序运行时,Thermal Stream 出现混乱
使用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()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论