sdpreprocess
개요
이미지 추론을 위해 이미지를 전처리하는 element입니다.
전처리한 이미지를 buffer에 custom metadata로 추가하는 것으로 다음 element인 sdinfer로 전달합니다.
반드시 sdpreprocess는 sdinfer 전에 위치해야합니다.
Properties
- model-config : config 파일의 경로를 입력합니다. 필수 입력사항입니다. config 파일에서
input_config
항목을 읽어 전처리를 수행합니다. - n-threads: 이미지 전처리에 사용할 스레드 풀 수를 입력합니다. 최대 16까지 설정할 수 있습니다. 기본 값은 1입니다.
사용 예시
gst-launch-1.0 videotestsrc \
! decodebin \
! videoconvert \
! sdpreprocess model-config=<model-config-path> n-threads=16 \
! sdinfer model-config=<model-config-path> \
! sdpostprocess model-config=<model-config-path> \
! sdtextoverlay \
! videoconvert \
! autovideosink