Access video capture frames in my qt program

Hello,

I want to display Camera input video frames in my Qt5 program widget.
I use Toradex Analogue Camera Adapter (ACA) to connect Camera to Ixora V1.0A board and I can display the video input frames with gstreamer piplines.

Now, How can I access /dev/video0 in my Qt program and display frames in my widget?
I tested the qt QCamera example but this example display an error.

Is there any driver for this?

Someone has an idea that I can get started the project?

Thanks

hi @prog

Could you provide the software version of your module?

Now, How can I access /dev/video0 in my Qt program and display frames in my widget? I tested the qt QCamera example but this example display an error.

Which Application did you mean?

Is there any driver for this?
Sure, it is intergrated in our regular Bsps.

Someone has an idea that I can get started the project?
Which Project?

Thanks
You are welcome. Best regards, Jaski

Hi @jaski.tx

This is my Linux dmseg log
I want to program a software in Qt to display Live Camera video input frames.
How can access input video frames in my program?
I found this example but in my demo image there is not OpenCV package. I need sth like VideoCapture class that used in this example.

Thanks

Thanks for the dmesg log.
The example is about OpenCV and not Qt.

I tested the qt QCamera example but this example display an error.

Which errors did you have? Could you provide a sample code that you used?

This is the Qt project and the output error is:

(camera:5907): GStreamer-CRITICAL **: gst_pad_get_current_caps: assertion 'GST_IS_PAD (pad)' failed

(camera:5907): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(camera:5907): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
CameraBin error: "Failed to enumerate possible video formats device '/dev/video0' can work with"

Hi @prog

Thanks for this Information.
Could you have a look here and check if this helps you?

Thanks.

Hi @jaski.tx
It’s working but the camera video is not live(frame rate is very low).
How can we have live video?

Thanks

Perfect that it is working. How did you achieve it? What is frame rate for the moment?