Closed YoungjaeDev closed 9 months ago
I found a solution, but it seems async has become false with the recent dsl update. But could it be a problem in the future whether it works or not depending on async? As far as I know, it is related to sgie, but I am trying to connect sgie separately, and window-sink is also needed.
retval = dsl_sink_async_enabled_set('window-sink', True)
if retval != DSL_RETURN_SUCCESS:
break
Hi @youngjae-avikus, Have you tried to convert RGBA frame to get RGB frame?
try:
frame_meta = pyds.NvDsFrameMeta.cast(l_frame.data)
except StopIteration:
break
n_frame = pyds.get_nvds_buf_surface(gst_buffer, frame_meta.batch_id)
in_surf_height, in_surf_width = n_frame.shape[:2]
frame_copy = np.array(n_frame, copy=True, order='C')
rgb_frame = cv2.cvtColor(frame_copy, cv2.COLOR_RGBA2BGR)
print(n_frame.shape)
I tried it in different ways, but it is failed. If you are success with it, can you pls share it with me?
Code content: Code that receives pgie as tensor-meta and draws bbox on osd (later Add align - sgie process). In order to
get_nvds_buf_surface
in the code, the buffer must be RGBA, so set the source_output_buffer_format like this.problem: In case of file-source, osd-sink is updated, but in case of rtsp-source, only the first frame appears and the buffer is not synchronized thereafter. However, when I recorded the FPS, the current 15 FPS was displayed well. In other words, there is no major problem, but it seems that sync is not working well on the rendering side.