Sensors

Last modified by dvd48 on 2020/08/26 15:57

Device sensors

loudnessgives the variable the actual acoustic level
touches fingerchecks if a object or background is touched
acceleration_xgives a variable the acceleration of the device in the x direction, move the smartphone left and right
acceleration_ygives a variable the acceleration of the device in the y direction, move the smartphone backwards and forwards
acceleration_zgives a variable the acceleration of the device in the z direction, move the smartphone up and down
inclination_xgives the variable the inclination to the left and to the right
inclination_ygives the variable the inclination forward and backwards
compass_directiongives you the actual compass_direction from your device, easy compass app look here
latitudegives you the actual latitude of your device
longitudegives you the actual longitude of your device
location accuracygives you the location accuracy of your device, a low number is better than a high one
altitudegives you the actual altitude of your device

Touch detection

stage touch xchecks if the stage is touched on the x level
stage touch ychecks if the stage is touched on the y level
stage is touchedchecks if the stage is touched
stage touch x(0)checks if the stage is touched on the x level and combines it with the data given in the bracket
stage touch y(0)checks if the stage is touched on the y level and combines it with the data given in the bracket
stage is touched(0)checks if the stage is touched and combines it with the data given in the bracket
last stage touch indexgives you the last stage touched index from the input

Please check this program to get familiar with the touch detection.


Face detection

is_face_detectedchecks if your face is detected
face_sizegives you the face size
face_x_postionchecks if the face moves in the x direction
face_y_positionchecks if the face moves in the y direction

For more information check the Tutorial for face detection and face recognition.
You can also visit theĀ online course to improve your face skills!


Date and time

yeargives your variable the actual year
monthgives your variable the actual month
daygives your variable the actual day
weekdaygives your variable the actual weekday
hourgives your variable the actual hour
minutegives your variable the actual minute
secondgives your variable the actual second

Simple date and time functions, to check if your smartphone has the correct time and date you can download and check this program