目标是能够使用lbp级联分类器来识别人脸,但面临着这个问题。h264@0x2774710解码MB 6 14时出错,字节流-7
这是针对在rpi3上运行的OpenCVv3.4.4应用程序的。
cap = cv2.VideoCapture(rtsp_url)
while (True):
ret, img = cap.read()
if ret:
# convert to gray scale of each frames
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# Detects faces of different sizes in the input image
faces = face_cascade.detectMultiScale(gray, 1.3, 5)预期结果:灰度帧,然后是面上的矩形。实际结果:出现脸部后的冻结帧。
发布于 2019-04-09 06:29:38
谢谢奥利特。这两个都是问题,但我解决了断言问题。只有在face_cascade.detectMultiScale函数检测到人脸时解码MB 26 28,bytestream -11()时,才会得到此错误h264 @ 0x14c4770错误。
https://stackoverflow.com/questions/55426303
复制相似问题