언어 설정

Menu
Sites
Language
Are GESTURE_PICK_UP and GESTURE_WRIST_UP the only gestures supported on Gear S3?

gesture_recognition.h has the following definition:

typedef enum {
    GESTURE_DOUBLE_TAP = 1,    /**< The mobile device is tapped twice */
    GESTURE_MOVE_TO_EAR,    /**< The mobile device is moved near to an ear */
    GESTURE_NO_MOVE,        /**< The mobile device is being stopped for a while */
    GESTURE_PICK_UP,        /**< The mobile device is picked up */
    GESTURE_SHAKE,            /**< The mobile device is quickly moved back and forth */
    GESTURE_SNAP,            /**< The mobile device is moved along an axis and back */
    GESTURE_TILT,            /**< The mobile device is tilted */
    GESTURE_TURN_FACE_DOWN,    /**< The mobile device is flipped from face to back */
    GESTURE_WRIST_UP,        /**< The wearable device is moved and faced up */
} gesture_type_e;

When I used gesture_is_supported() to see if each of these gestures is supported, the only two that resulted in supported set to true were GESTURE_PICK_UP and GESTURE_WRIST_UP.

Does it mean that the S3 watch doesn't recognize/support all the rest?

답변 바로가기

Responses

2 댓글
Mark as answer
Armaan-Ul- Islam

Yes, It Seems so. At least In the case when you are using Gesture Recognition API (gesture_recognition.h).

I've ran the code to check gesture_type support in Wearable Emulator, Samsung Gear S2, S3 & Sport. Findings:

 

#include<gesture_recognition.h>

void _check_gesture_support(){
    bool supported = false;
	dlog_print(DLOG_DEBUG,"TAG_X","Test starting..");

	for(int i=GESTURE_DOUBLE_TAP;i<=GESTURE_WRIST_UP;i++){
		gesture_is_supported(i, &supported);
		if (supported) {
			dlog_print(DLOG_DEBUG,"TAG_X"","%d supported",i);
		}
	}
}

_check_gesture_support();

 

Wearable Emulator:

No Gesture Recognition Support

 

Gear S2/Gear S3/Gear Sport:

GESTURE_PICK_UP

GESTURE_WRIST_UP

 

So, You can't recognize other gestures using this API.

If it's a "must have" feature for your app, then you may use raw sensor data to detect specific gesture. For example, Using Accelerometer+Gyro Sensor data and Patten recognition to recognize a gesture.

Dmitri G

Thank you for confirming.