Replies: 4 comments 5 replies
-
How is the quality if you use VLC? |
Beta Was this translation helpful? Give feedback.
-
I recently made a lot of fixes in the RTSP server. |
Beta Was this translation helpful? Give feedback.
-
Yes, the image quality on these cameras is not great, it's 1080p but the bitrate is quite low. |
Beta Was this translation helpful? Give feedback.
-
What your model suffix? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am currently facing the problem that my rtsp stream gives bad image quality. I set up the camera(YI home 1080p) normaly like on the Website and used a python code(displayed at the end) to read the rtsp stream i use the high Res stream but still i get very bad image Qualtiy. Please give me some tips to enhance the image qualtiy. I use the Python code for face recognition. Python Code:
import cv2
import face_recognition
import pickle
import time
import os
import numpy as np
def load_known_encodings():
try:
with open("known_encodings.pkl", "rb") as file:
return pickle.load(file)
except FileNotFoundError:
return {}
def load_known_people_data():
try:
with open("known_people_data.pkl", "rb") as file:
return pickle.load(file)
except FileNotFoundError:
return {}
def draw_face_info(frame, name, confidence, extra_info, top, right, bottom, left):
outline_color = (0, 255, 0) if name != "Unknown" else (0, 0, 255)
fill_opacity = 0.3 if name == "Unknown" else 0
def recognize_faces(frame, known_encodings, known_people_data,i):
small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25)
face_locations = face_recognition.face_locations(small_frame)
ret, frame1 = i.read()
face_encodings = face_recognition.face_encodings(small_frame, face_locations)
def main():
known_encodings = load_known_encodings()
known_people_data = load_known_people_data()
rtsp_url = 'rtsp://192.168.178.168/ch0_0.h264'
if name == "main":
main()
Beta Was this translation helpful? Give feedback.
All reactions