[Interest] QML Camera: resulting image is rotated

Alexander Ivash elderorb at gmail.com
Mon Dec 10 10:53:17 CET 2018


пн, 10 дек. 2018 г. в 12:33, René Hansen <renehh at gmail.com>:

> You can get the Camera orientation like so:
>
> QCamera *cam = qvariant_cast<QCamera
> *>(m_filter->camera()->property("mediaObject"));
> QCameraInfo(*cam).orientation()
>
> Then in case orientation is not % 180, you can rotate the image.
>
>
 Is it the same as QML Camera's 'orientation' ?
http://doc.qt.io/qt-5/qml-qtmultimedia-camera.html#orientation-prop
Or this is actual orientation? Maybe you could share sample which
'unrotate' based on this property?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181210/03aedfba/attachment.html>


More information about the Interest mailing list