Hi everyone,
I am working on a Qt-based camera preview application using PySide2 with QML on a Raspberry Pi 5. I know that with Qt5, we can use QGlPicamera2 for displaying the camera preview . But if we want to get preview, it opens a separate window with a title bar, which is not what I want.
I want to embed the camera preview directly inside my QML UI as a widget instead of a separate window.
My questions are:
Does PiCamera2 provide a direct frame stream that can be displayed in a QML widget?
If not, what would be the best approach to show a real-time camera preview within a QML component?
Are there any examples or best practices for embedding the PiCamera2 preview inside a PySide2/QML interface?
I appreciate any guidance or example code that could help me achieve this.
I am new so i don't know much if i made any mistake in asking questions let me know.
Thanks in advance!
I am working on a Qt-based camera preview application using PySide2 with QML on a Raspberry Pi 5. I know that with Qt5, we can use QGlPicamera2 for displaying the camera preview . But if we want to get preview, it opens a separate window with a title bar, which is not what I want.
I want to embed the camera preview directly inside my QML UI as a widget instead of a separate window.
My questions are:
Does PiCamera2 provide a direct frame stream that can be displayed in a QML widget?
If not, what would be the best approach to show a real-time camera preview within a QML component?
Are there any examples or best practices for embedding the PiCamera2 preview inside a PySide2/QML interface?
I appreciate any guidance or example code that could help me achieve this.
I am new so i don't know much if i made any mistake in asking questions let me know.
Thanks in advance!
Statistics: Posted by aksharkalathiya — Thu Jan 23, 2025 9:18 am — Replies 0 — Views 29