Sensors
Última modificació per dvd48 el 2020/08/26 15:57
Device sensors
loudness | gives the variable the actual acoustic level |
touches finger | checks if a object or background is touched |
acceleration_x | gives a variable the acceleration of the device in the x direction, move the smartphone left and right |
acceleration_y | gives a variable the acceleration of the device in the y direction, move the smartphone backwards and forwards |
acceleration_z | gives a variable the acceleration of the device in the z direction, move the smartphone up and down |
inclination_x | gives the variable the inclination to the left and to the right |
inclination_y | gives the variable the inclination forward and backwards |
compass_direction | gives you the actual compass_direction from your device, easy compass app look here |
latitude | gives you the actual latitude of your device |
longitude | gives you the actual longitude of your device |
location accuracy | gives you the location accuracy of your device, a low number is better than a high one |
altitude | gives you the actual altitude of your device |
Touch detection
stage touch x | checks if the stage is touched on the x level |
stage touch y | checks if the stage is touched on the y level |
stage is touched | checks 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 index | gives you the last stage touched index from the input |
Please check this program to get familiar with the touch detection.
Face detection
is_face_detected | checks if your face is detected |
face_size | gives you the face size |
face_x_postion | checks if the face moves in the x direction |
face_y_position | checks 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
year | gives your variable the actual year |
month | gives your variable the actual month |
day | gives your variable the actual day |
weekday | gives your variable the actual weekday |
hour | gives your variable the actual hour |
minute | gives your variable the actual minute |
second | gives 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