Open wooksong opened 4 years ago
Just like the case in #3, when using cam I should add decodebin
in pipeline
str_pipeline =
g_strdup_printf
("v4l2src name=cam_src ! decodebin ! videoconvert ! videoscale ! "
"video/x-raw,width=%d,height=%d,format=RGB ! tee name=t_raw "
"videomixer name=mix "
"sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0 "
"sink_1::xpos=0 sink_1::ypos=0 sink_1::zorder=1 sink_1::alpha=0.7 ! "
"videoconvert ! ximagesink name=img_mixed "
"t_raw. ! queue ! mix.sink_0 "
"t_raw. ! queue ! tensor_converter ! tensor_decoder mode=direct_video ! videoscale ! video/x-raw,width=%d,height=%d ! mix.sink_1 "
"t_raw. ! queue ! videoconvert ! ximagesink name=img_origin",
width, height, width / 2, height / 2);
Prerequisites
If you've already done some of the following steps in #1 and #2, just skip those steps.
Build
Run
Basic examples
Object detection examples