-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCamera_test.qml
47 lines (41 loc) · 1.07 KB
/
Camera_test.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import QtQuick 2.0
import QtMultimedia 5.9
Item {
Camera
{
id:camera
imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
flash.mode: Camera.FlashRedEyeReduction
exposure{
exposureCompensation: -1.0
exposureMode: Camera.ExposureAuto
}
focus {
focusMode: Camera.FocusContinuous
focusPointMode: Camera.FocusPointCenter
}
}
Rectangle{
id: cam_conteneur
anchors.top: parent.top
height: parent.height //- 50
width: parent.width
color :"black"
VideoOutput{
anchors.fill: parent
source: camera
autoOrientation: true
}
}
Rectangle{
anchors.top: cam_conteneur.bottom
width: parent.width
height: parent.height - cam_conteneur.height
MouseArea{
anchors.fill: parent
onClicked: camera.imageCapture.capture();
onPressed: color = "red"
onReleased: color = "white"
}
}
}