1 Star 0 Fork 2

AMOVLAB/Gimbal-SDK-Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
amov_gimbal_image.py 769 Bytes
一键复制 编辑 原始数据 按行查看 历史
import cv2
pipeline = "rtspsrc location=rtsp://192.168.2.64:/H264?W=1920&H=1080&FPS=30&BR=4900000 latency=100 \
caps='application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=\
(string)H264,width=1920,height=1080,framerate=30/1' !\
rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! \
video/x-raw, width=(int)1280, height=(int)720, format=(string)BGRx ! \
videoconvert ! appsink sync=false"
cap = cv2.VideoCapture(pipeline)
#cap = cv2.VideoCapture("rtsp://192.168.2.64:554/H264?W=2704&H=1520&BR=10000000&FPS=30")
while True:
ret, frame = cap.read()
frame = cv2.flip(frame,1)
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amovlab/gimbal-sdk-python.git
git@gitee.com:amovlab/gimbal-sdk-python.git
amovlab
gimbal-sdk-python
Gimbal-SDK-Python
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385