基于qml创建最简单的android机图像采集程序
import QtQuick.Controls 2. 2
import QtMultimedia 5. 2
ApplicationWindow {
visible : true
width : 640
height : 480
title : qsTr( "Scroll")
Rectangle{
width : 960;
height : 540;
Camera{
id : camera;
captureMode : camera.CaptureStillImage;
}
VideoOutput{
source : camera;
autoOrientation : true;
}
}
}
