I'm trying to capture video from a source using gstreamer pipeline and opencv. Source has properties as follows:
ioctl:VIDIOC_ENUM_FMT
index : 0
Type : Video capture
Pixel Format : 'YUYV'
Name : YUYV 4:2:2
My receiving pipeline is :
''' pipeAnalog = 'v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,interlace-mode=interleaved ! videoconvert ! video/x-raw, format=(string)BGR ! videoconvert ! appsink
''''
using this pipeline, im reading the image with:
'''self.currentCam = cv2.VideoCapture(self.pipeAnalog, cv2.CAP_GSTREAMER)
'''
After these commands, regardless of how i resize the frame using cv2.resize my frame has a black bar above it as follows :
Output frame
Any idea how can i get rid of this black bar? Any help would be appreciated.
(I'm working on Nvidia Jetson Nano with Gstreamer Core Library version 1.14.5 and OpenCV version 4.3.0)
Thanks,