Function triggering method and device based on scene recognition, equipment and storage medium

By collecting information from terminal sensors to identify scenarios and automatically executing binding functions, the problem of complex terminal device function triggering is solved, user experience is simplified and functions are personalized, and diverse usage needs are met.

CN121598093APending Publication Date: 2026-03-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411139475.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Existing terminal devices have complex and inconvenient function triggering paths, making it difficult to meet the diverse usage needs of users.

Method used

By using a scene recognition-based function triggering method, information is collected by terminal sensors, and in response to triggering operations, triggering functions bound to the target triggering scene are automatically executed, including accelerometers, cameras, etc., to identify specific scenes and execute corresponding functions.

Benefits of technology

Simplify operation processes, enhance user experience, personalize and contextualize functions, provide personalized services that fit the current scenario, and improve user convenience and satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121598093A_ABST
    Figure CN121598093A_ABST
Patent Text Reader

Abstract

The invention provides a function triggering method and device based on scene recognition, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: in response to a received trigger operation, acquiring acquisition information acquired by at least one sensor in a terminal; and in response to matching of the acquired information and a target triggering scene, controlling the terminal to execute a triggering function having a binding relationship with the target triggering scene. According to the method, the same triggering operation is not limited to the realization of a single function any more, but different functions can be realized in different scenes, so that the individuation and scenario of function execution are realized, and the use convenience and satisfaction of a user on the whole terminal are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a function triggering method, apparatus, device and storage medium based on scene recognition. Background Technology

[0002] With the rapid development of terminal technology, terminal devices can provide a variety of functions for users. As users become increasingly reliant on terminal devices in more scenarios, these devices need to meet more of their functional needs. Among these, the ease of function triggering is crucial to user experience; however, the triggering paths for some terminal functions are complex and not easily accessible.

[0003] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0004] The purpose of this disclosure is to provide a function triggering method, apparatus, device, and storage medium based on scene recognition.

[0005] According to a first aspect of the present disclosure, a function triggering method based on scene recognition is provided, comprising: in response to receiving a triggering operation, acquiring acquisition information collected by at least one sensor in a terminal; and in response to the acquisition information matching a target triggering scene, controlling the terminal to execute a triggering function that is bound to the target triggering scene.

[0006] In some implementations, the triggering operation is one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture.

[0007] In some implementations, the target triggering scenario is one of the triggering scenarios in a preset set of triggering scenarios, and the preset set of triggering scenarios corresponds to the triggering operation.

[0008] In some implementations, the scene recognition-based function triggering method further includes: in response to receiving a first triggering operation, acquiring first collected information; in response to the first collected information satisfying a first collected information condition, determining that the first collected information matches a first target triggering scene; and controlling the terminal to perform a scanning function; wherein the first collected information condition includes: an accelerometer determining that the terminal is stationary and not flat; a front-facing camera determining that the user is within the field of view; and a rear-facing camera determining that the object to be scanned is within the field of view.

[0009] In some implementations, the scene recognition-based function triggering method further includes: in response to receiving a second trigger operation, acquiring second collection information; in response to the second collection information satisfying a second collection information condition, determining that the second collection information matches a second target trigger scene; and controlling the terminal to perform a recording function; wherein the second collection information condition includes: an accelerometer determining that the terminal is in a stationary state; an accelerometer determining that the terminal is in a screen-down state or determining that the terminal performs a flipping action within a preset time range adjacent to the second trigger operation.

[0010] In some implementations, the function triggering method based on scene recognition further includes: in response to receiving a third triggering operation, acquiring third acquisition information; in response to the third acquisition information satisfying a third acquisition information condition, determining that the third acquisition information matches a third target triggering scene; and controlling the terminal to perform target information playback; wherein the third acquisition information condition includes: an accelerometer determining that the terminal is in motion.

[0011] In some implementations, the function triggering method based on scene recognition further includes: in response to the terminal being connected to a wearable device, obtaining target information from the wearable device.

[0012] In some implementations, the function triggering method based on scene recognition further includes: determining the triggering scene to be configured and the triggering function to be configured; and establishing a binding relationship between the triggering scene to be configured and the triggering function to be configured.

[0013] In some implementations, determining the trigger scenario to be configured includes: acquiring at least one data acquisition configuration item corresponding to the sensor; configuring data acquisition conditions based on the data acquisition configuration item; and establishing a correspondence between the trigger scenario to be configured and the data acquisition conditions corresponding to the at least one sensor.

[0014] In some implementations, establishing the correspondence between the triggering scenario to be configured and the information acquisition conditions corresponding to the at least one sensor includes: configuring the logical relationship between each of the information acquisition conditions; wherein the logical relationship includes at least one of the following: AND relationship, OR relationship, and NOT relationship; and establishing the correspondence between the triggering scenario to be configured and the information acquisition conditions corresponding to the at least one sensor according to the logical relationship.

[0015] In some implementations, determining the trigger scenario to be configured includes: in response to receiving a scenario configuration operation, acquiring fourth acquisition information collected by at least one of the sensors in the terminal; receiving a selection operation on the fourth acquisition information; and establishing a correspondence between the trigger scenario to be configured and the acquisition information conditions corresponding to the selected sensor based on the selection operation; wherein the acquisition information conditions are generated based on the selection of the fourth acquisition information.

[0016] In some implementations, the function triggering method based on scene recognition further includes: in response to receiving a function update operation for a triggering scene to be updated, determining the triggering function to be updated; and replacing the triggering function that is bound to the triggering scene to be updated with the triggering function to be updated.

[0017] According to a second aspect of the present disclosure, a scene recognition-based function triggering device is provided, comprising: an acquisition unit, configured to acquire acquisition information collected by at least one sensor in a terminal in response to receiving a triggering operation; and a function execution unit, configured to control the terminal to execute a triggering function that is bound to the target triggering scene in response to the acquisition information matching a target triggering scene.

[0018] In some implementations, the triggering operation is one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture.

[0019] In some implementations, the target triggering scenario is one of the triggering scenarios in a preset set of triggering scenarios, and the preset set of triggering scenarios corresponds to the triggering operation.

[0020] In some implementations, the acquisition unit is further configured to acquire first collected information in response to receiving a first trigger operation; the matching unit is further configured to determine that the first collected information matches a first target trigger scenario in response to the first collected information satisfying a first collected information condition; the function execution unit is further configured to control the terminal to perform a scanning function; wherein, the first collected information condition includes: an accelerometer determining that the terminal is stationary and not flat; a front-facing camera determining that the user is within the field of view; and a rear-facing camera determining that the object to be scanned is within the field of view.

[0021] In some embodiments, the acquisition unit is further configured to acquire second acquisition information in response to receiving a second trigger operation; the matching unit is further configured to determine that the second acquisition information matches a second target trigger scenario in response to the second acquisition information satisfying the second acquisition information condition; the function execution unit is further configured to control the terminal to perform a recording function; wherein, the second acquisition information condition includes: the accelerometer determines that the terminal is in a stationary state; the accelerometer determines that the terminal is in a screen-down state or determines that the terminal performs a flipping action within a preset time range adjacent to the second trigger operation.

[0022] In some implementations, the acquisition unit is further configured to acquire third acquisition information in response to receiving a third trigger operation; the matching unit is further configured to determine that the third acquisition information matches a third target trigger scenario in response to the third acquisition information satisfying the third acquisition information condition; the function execution unit is further configured to control the terminal to perform target information playback; wherein, the third acquisition information condition includes: an acceleration sensor determining that the terminal is in motion.

[0023] In some implementations, the acquisition unit is further configured to acquire target information from the wearable device in response to the terminal being connected to the wearable device.

[0024] In some implementations, the scene-based function triggering device further includes: a configuration unit for determining the scene to be configured and the function to be configured; and a binding unit for establishing a binding relationship between the scene to be configured and the function to be configured.

[0025] In some implementations, the configuration unit determines the trigger scenario to be configured, including: acquiring at least one data acquisition configuration item corresponding to the sensor; configuring data acquisition conditions based on the data acquisition configuration item; and establishing a correspondence between the trigger scenario to be configured and the data acquisition conditions corresponding to the at least one sensor.

[0026] In some implementations, the configuration unit establishes a correspondence between the trigger scenario to be configured and the information acquisition conditions corresponding to the at least one sensor, including: configuring a logical relationship between each of the information acquisition conditions; wherein the logical relationship includes at least one of the following: AND relationship, OR relationship, and NOT relationship; and establishing a correspondence between the trigger scenario to be configured and the information acquisition conditions corresponding to the at least one sensor based on the logical relationship.

[0027] In some implementations, the configuration unit determines the trigger scenario to be configured, including: in response to receiving a scenario configuration operation, acquiring fourth acquisition information collected by at least one of the sensors in the terminal; receiving a selection operation on the fourth acquisition information; and establishing a correspondence between the trigger scenario to be configured and the acquisition information conditions corresponding to the selected sensor based on the selection operation; wherein the acquisition information conditions are generated based on the selection of the fourth acquisition information.

[0028] In some embodiments, the scene-based function triggering device further includes: an update unit, configured to, in response to receiving a function update operation for a triggering scene to be updated, determine the triggering function to be updated; and replace the triggering function that is bound to the triggering scene to be updated with the triggering function to be updated.

[0029] According to a third aspect of the present disclosure, an electronic device is provided, characterized in that it includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described scene recognition-based function triggering method.

[0030] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute a scene-based function triggering method, the method comprising: in response to receiving a triggering operation, acquiring acquisition information collected by at least one sensor in the terminal; and in response to the acquisition information matching a target triggering scene, controlling the terminal to execute a triggering function that is bound to the target triggering scene.

[0031] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described scene recognition-based function triggering method.

[0032] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0033] This disclosure can acquire information collected from terminal sensors in response to a trigger operation, and automatically execute a trigger function bound to the target trigger scene when the collected information matches the target trigger scene. Therefore, in this disclosure, on the one hand, a scene recognition process can be initiated through a trigger operation, allowing users to command the terminal to begin subsequent complex scene recognition and function execution processes with a simple trigger operation, thereby greatly simplifying the operation process and improving the user experience.

[0034] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0035] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0036] Figure 1 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0037] Figure 2 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0038] Figure 3 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0039] Figure 4 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0040] Figure 5 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0041] Figure 6 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0042] Figure 7 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0043] Figure 8 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0044] Figure 9 This is a schematic diagram illustrating an application scenario of a scene recognition-based function triggering method according to some embodiments of this disclosure.

[0045] Figure 10 This is a flowchart illustrating the configuration of a scene and function in a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0046] Figure 11 This is a flowchart illustrating the configuration of a scene and function in a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0047] Figure 12This is a flowchart illustrating the configuration of a scene and function in a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0048] Figure 13 This is a block diagram illustrating a scene recognition-based function triggering device according to some embodiments of the present disclosure.

[0049] Figure 14 This is a block diagram illustrating an apparatus for triggering a function based on scene recognition, according to some embodiments of the present disclosure. Detailed Implementation

[0050] Exemplary embodiments of this disclosure will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.

[0051] The embodiments described below, which are examples of some of the embodiments of this disclosure, do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0052] In related technologies, terminal devices can have physical buttons bound to specific functions. When a user operates this physical button at any time, the terminal device will execute the specific function bound to that physical button. This setup only allows for the triggering of a single function, making it difficult to meet the diverse usage needs of users.

[0053] The specific implementation methods of the embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0054] Figure 1 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of this disclosure, such as... Figure 1 As shown, the scene recognition-based function triggering method can be applied to terminal devices and may include the following steps.

[0055] In step S110, in response to receiving a trigger operation, the acquisition information collected by at least one sensor in the terminal is obtained.

[0056] In this embodiment of the disclosure, the triggering operation can be a user-initiated operation on the terminal. The triggering operation can be used to initiate a scene recognition process and determine the timing for scene recognition. The triggering operation is immediate and targeted, enabling users to command the terminal to begin subsequent complex scene recognition and function execution processes through simple triggering operations, thus improving the user experience.

[0057] In this embodiment of the disclosure, the sensors in the terminal may include, but are not limited to, a location sensor (GPS), an ambient light sensor, an accelerometer, a gyroscope, a microphone, and a camera. Depending on the sensor, the collected information may include, but is not limited to, current location, light intensity, device motion status, sound content, and image content. The collected information can be used to accurately identify the current scene.

[0058] In some embodiments of this disclosure, the triggering operation is one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture.

[0059] In this embodiment of the disclosure, the designated button can be a physical button on the terminal device or a virtual button on the software interface. The triggering operation of the designated button can be different methods such as long press, short press, double-click, toss, etc., which can depend on the design of the button itself.

[0060] In this embodiment of the disclosure, the specified voice can be a preset voice command spoken by the user. Using the specified voice as a trigger operation can provide a contactless interaction method.

[0061] In this embodiment of the disclosure, the specified gesture can be a specific hand action performed by the user, such as sliding, pinching, or rotating on a touchscreen, or a gesture performed within the camera's field of view. Using the specified gesture as a trigger operation can provide another optional interaction method.

[0062] In an exemplary embodiment, the triggering operation may be a short press of a physical Action Button on the terminal device. An Action Button is a convenient operation button integrated into a terminal device, originally used to quickly perform specific operations.

[0063] In step S120, in response to the collected information matching the target triggering scenario, the terminal is controlled to execute a triggering function that is bound to the target triggering scenario.

[0064] In an exemplary embodiment, the collected information can be used to match within a pre-defined set of trigger scenarios containing at least one trigger scenario to determine whether the current collected information matches a target trigger scenario in the set of trigger scenarios.

[0065] In an exemplary embodiment, one or more predefined trigger scenarios can be grouped into a trigger scenario set, where each trigger scenario can represent a specific environment or user behavior pattern. Conditions can be set for each trigger scenario for comparison, and the acquired information is then compared with these conditions to determine whether the current acquired information matches a target trigger scenario in the trigger scenario set.

[0066] In this embodiment, specific functions or applications can be associated with each triggering scenario according to actual needs, serving as triggering functions bound to the triggering scenario. Different triggering scenarios can be bound to different triggering functions. This embodiment can automatically execute the corresponding triggering function based on the matched target triggering scenario, thereby providing personalized services tailored to the current scenario and improving user experience.

[0067] As can be seen from the above steps, the scene recognition-based function triggering method provided in this disclosure can acquire information collected from the terminal sensors in response to a trigger operation, and automatically execute a trigger function bound to the target trigger scene when the collected information matches a pre-set target trigger scene. Therefore, in this embodiment, on the one hand, the scene recognition process can be initiated through a trigger operation, allowing users to command the terminal to begin subsequent complex scene recognition and function execution processes with a simple trigger operation, thereby greatly simplifying the operation process and improving the user experience. On the other hand, this method can flexibly respond to diverse scene requirements. Different collected information can correspond to different trigger scenes, and different trigger scenes can be bound to different trigger functions. This means that the same trigger operation is no longer limited to the implementation of a single function, but can implement different functions in different scenarios, realizing personalized and scenario-based function execution, providing users with personalized services that fit the current scenario, and enabling users to obtain a quick user experience in different scenarios, thereby improving the overall ease of use and satisfaction of the user.

[0068] In some embodiments of this disclosure, the target triggering scenario is a triggering scenario in a preset set of triggering scenarios, and the preset set of triggering scenarios corresponds to the triggering operation.

[0069] Figure 2 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0070] In this embodiment of the disclosure, Figure 2 In the scene recognition-based function triggering method shown, steps S210 and... Figure 1The corresponding step S110 in the scene recognition-based function triggering method shown will not be repeated here.

[0071] In this embodiment of the disclosure, Figure 1 Based on the scene recognition-based function triggering method shown, Figure 2 The scene recognition-based function triggering method shown may also include the following steps.

[0072] In step S220, a set of trigger scenarios corresponding to the trigger operation is determined according to the trigger operation; the set of trigger scenarios includes at least one trigger scenario.

[0073] In step S230, in response to the collected information matching a target triggering scenario in the triggering scenario set, the terminal is controlled to execute a triggering function that is bound to the target triggering scenario.

[0074] In this embodiment of the disclosure, after receiving the trigger operation, the set of trigger scenarios corresponding to the trigger operation can be determined first, and then subsequent scenario recognition can be performed.

[0075] In an exemplary embodiment, there can be multiple preset trigger operations, and a corresponding set of trigger scenarios can be set for each preset trigger operation. Different preset trigger operations can be associated with the same or different sets of trigger scenarios. The trigger operation can be one of these preset trigger operations.

[0076] For example, a short press operation on the first physical button may include a first scenario and a second scenario in the associated first trigger scenario set; a short press operation on the second physical button may include a second scenario and a third scenario in the associated second trigger scenario set.

[0077] This embodiment sets different corresponding trigger scenarios for different triggering operations, allowing these operations to be applied specifically to different scenarios. Setting different sets of trigger scenarios for different triggering operations facilitates the management of the correspondence between them, improving the flexibility and scalability of the method and making the triggering logic clearer and easier to understand.

[0078] In an exemplary embodiment, triggering functions that are bound to triggering scenarios can be stored in a pre-defined set of triggering scenarios. For a triggering operation, the triggering function bound to the matched target triggering scenario can be determined from its associated set of triggering scenarios. Different triggering operations may contain the same triggering scenario in different sets of triggering scenarios, and the triggering functions bound to the same triggering scenario in different sets of triggering scenarios may be different.

[0079] For example, a short press of the first physical button can be associated with a first set of trigger scenarios, which may include a first scenario and a second scenario. The second scenario in the first set of trigger scenarios can be bound to a first function. Similarly, a short press of the second physical button can be associated with a second scenario and a third scenario. The second scenario in the second set of trigger scenarios can be bound to a second function. Therefore, if the information collected when the user short presses the first physical button matches the second scenario in the first set of trigger scenarios, the terminal will be controlled to execute the first function. Conversely, if the information collected when the user short presses the second physical button matches the second scenario in the second set of trigger scenarios, the terminal will be controlled to execute the second function.

[0080] Figure 3 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0081] In this embodiment of the disclosure, Figure 3 In the scene recognition-based function triggering method shown, steps S310 and S330 are respectively related to... Figure 1 The steps S110 and S120 in the scene recognition-based function triggering method shown correspond to each other and will not be repeated here.

[0082] In this embodiment of the disclosure, Figure 1 Based on the scene recognition-based function triggering method shown, Figure 3 The scene recognition-based function triggering method shown may also include the following steps.

[0083] In step S320, in response to the fact that the collected information matches the collected information conditions corresponding to the target triggering scenario, it is determined that the collected information matches the target triggering scenario.

[0084] In this embodiment of the disclosure, each triggering scenario can correspond to at least one information collection condition, and the information collection can be matched with the information collection condition.

[0085] In an exemplary embodiment, the set of trigger scenarios may include a correspondence between the trigger scenarios and at least one information collection condition.

[0086] Among these, the information acquisition conditions can be used to evaluate whether the information acquired by the sensor in real time meets the rules or thresholds required by the corresponding triggering scenario. The information acquisition conditions can be constructed based on various data types and logical operations to adapt to different application scenarios and business needs. At least one information acquisition condition can be defined for each triggering scenario in the triggering scenario set.

[0087] Once the terminal receives a trigger operation and determines the matching set of trigger scenarios based on the collected information, it can compare the current collected information with the collection information conditions defined for each trigger scenario in the set. The terminal can automatically evaluate whether the collected information meets the collection information conditions of a certain trigger scenario based on preset logic and algorithms.

[0088] In an exemplary embodiment, each trigger scenario in the trigger scenario set can correspond to different information collection conditions to ensure that the trigger operation can successfully trigger the execution of at most one trigger function at any given time.

[0089] In an exemplary embodiment, each trigger scenario in the trigger scenario set may correspond to the same data collection condition. If multiple trigger scenarios correspond to the same data collection condition, then, if the data collection condition is met, the multiple trigger functions bound to each of these multiple trigger scenarios can be executed simultaneously.

[0090] In this embodiment of the disclosure, if it is determined that the collected information completely matches the collected information conditions corresponding to a certain triggering scenario (i.e., the target triggering scenario), then it can be determined that the collected information has indeed triggered this specific scenario.

[0091] This embodiment enables precise control over the conditions that a triggering operation should meet when matching a triggering scenario by collecting information conditions. It can also determine the matching with different scenarios in response to different conditions. In this way, based on the design that binds scenarios and functions, functions with originally complex triggering paths can be directly triggered, thereby optimizing the user experience.

[0092] Figure 4 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of this disclosure. Figure 4 As shown, in some embodiments of this disclosure, the function triggering method based on scene recognition may include the following steps.

[0093] In step S410, in response to receiving the first trigger operation, the first collection information is acquired.

[0094] In this embodiment of the disclosure, the first triggering operation can be one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture. The first collected information is collected by at least one sensor in the terminal when the first triggering operation occurs.

[0095] In step S420, in response to the first collected information satisfying the first collected information condition, it is determined that the first collected information matches the first target triggering scenario.

[0096] In step S430, the terminal is controlled to perform the scanning function.

[0097] Among them, the QR code scanning function is the triggering function bound to the first target triggering scenario, and the first information collection condition is the information collection condition that corresponds to the first target triggering scenario.

[0098] In this embodiment of the disclosure, the first information collection conditions may include: an accelerometer determining that the terminal is stationary and not lying flat; a front-facing camera determining that the user is within the field of view; and a rear-facing camera determining that the object to be scanned is within the field of view.

[0099] If the condition that "the accelerometer determines that the terminal is stationary and not flat" is met, it can be ensured that the terminal device is stably held in the user's hand or placed on a stable support. And since the terminal device is not flat, it can be ensured that the camera can clearly capture the object to be scanned.

[0100] If the condition that "the front-facing camera determines that the user is within its field of view" is met, it ensures that the user is using the terminal device and that the terminal device is in the correct orientation. For example, if the front-facing camera is determined to be facing the user, it indicates that the user may be viewing a prompt on the screen or preparing to scan a QR code.

[0101] If the condition that "the rear camera determines that the object to be scanned is within the field of view" is met, it can be ensured that the object to be scanned (such as a QR code or barcode) can be clearly captured by the rear camera.

[0102] If all the above conditions are met, it can be determined that the currently acquired first collected information matches the preset first target trigger scenario, and the current device state can be considered suitable for executing the barcode scanning function. Based on this scenario, the control terminal immediately activating the barcode scanning function is a reasonable choice that is both timely and meets user needs.

[0103] This embodiment allows for the acquisition of first collected information in response to a user's first trigger operation. Based on this information, the device status is intelligently assessed to identify the scenario corresponding to the scanning function. The scanning function is then executed to meet the user's needs under the first target trigger scenario. Therefore, this embodiment ensures that the scanning function is activated at the appropriate time and under suitable conditions, effectively improving the user experience of the terminal device and providing users with a more intelligent and convenient service.

[0104] Figure 5 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of this disclosure. Figure 5 As shown, in some embodiments of this disclosure, the function triggering method based on scene recognition may include the following steps.

[0105] In step S510, in response to receiving the second trigger operation, the second acquisition information is obtained.

[0106] In this embodiment of the disclosure, the second triggering operation can be one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture. The second collected information is collected by at least one sensor in the terminal when the second triggering operation occurs.

[0107] In step S520, in response to the second collection information satisfying the second collection information condition, it is determined that the second collection information matches the second target triggering scenario.

[0108] In step S530, the terminal is controlled to perform the recording function.

[0109] Among them, the recording function is the trigger function bound to the second target trigger scenario, and the second information collection condition is the information collection condition that corresponds to the second target trigger scenario.

[0110] In this embodiment of the disclosure, the second information acquisition condition may include: the accelerometer determining that the terminal is in a stationary state; the accelerometer determining that the terminal is in a screen-down state or determining that the terminal performs a flipping action within a preset time range adjacent to the second triggering operation.

[0111] If the condition that "the accelerometer determines that the terminal is stationary" is met, it can be ensured that the device is not currently being moved or is in a very stable state, which helps to reduce background noise during recording.

[0112] If the condition that "the accelerometer determines that the terminal is in a screen-down state" is met, it ensures that the screen is not normally visible, protecting user privacy and preventing the screen content from being viewed during recording. Furthermore, if the condition that "the accelerometer determines that the terminal performs a flipping action within a preset time range adjacent to the second trigger operation" is met, it confirms that the user intentionally performed the recording operation, for example, by flipping the device. This flipping action can serve as an additional verification step for the second trigger operation.

[0113] In an exemplary embodiment, "the accelerometer determines that the terminal performs a flipping action within a preset time range adjacent to the second triggering operation" can be "the accelerometer determines that within a preset time range adjacent to the second triggering operation, the terminal performs a flipping action from the screen-up state to the screen-down state". This can further ensure that the screen is ultimately in the downward state, so as to protect the user's screen content from being viewed.

[0114] If all the above conditions are met, it can be determined that the currently acquired second collection information matches the preset second target trigger scenario, and the current device state can be considered suitable for executing the recording function. Based on this scenario, the control terminal immediately activating the recording function is a reasonable choice that is both timely and meets user needs.

[0115] This embodiment allows for the acquisition of second collected information in response to a second trigger operation performed by the user. Based on this second collected information, the device status is intelligently determined to identify the scenario required for the recording function. Then, the second function is executed to meet the user's recording needs under the second target trigger scenario. Therefore, this embodiment ensures that the recording function is activated at the appropriate time and under appropriate conditions, effectively improving the user interaction experience of the terminal device and providing users with a more intelligent and convenient service.

[0116] Figure 6 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of this disclosure. Figure 6 As shown, in some embodiments of this disclosure, the function triggering method based on scene recognition may include the following steps.

[0117] In step S610, in response to receiving the third trigger operation, the third acquisition information is obtained.

[0118] In this embodiment of the disclosure, the second triggering operation can be one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture. The third information acquisition is collected by at least one sensor in the terminal when the third triggering operation occurs.

[0119] In step S620, in response to the third acquisition information satisfying the third acquisition information condition, it is determined that the third acquisition information matches the third target triggering scenario.

[0120] In step S630, the terminal is controlled to play the target information.

[0121] Among them, target information playback is a trigger function bound to the third target trigger scene, and the third information collection condition is an information collection condition that corresponds to the third target trigger scene.

[0122] In an exemplary embodiment, the target information may be information related to the user's movement process obtained from the terminal, such as the user's body information, movement status, movement type, movement duration, movement distance, etc.

[0123] In this embodiment of the disclosure, the third information acquisition condition may include: an accelerometer determining that the terminal is in motion.

[0124] After the third trigger operation is executed, if the terminal meets the condition that "the accelerometer determines that the terminal is in motion," it can be ensured that the user is carrying the terminal device in motion. The accelerometer can accurately measure the changes in acceleration of the device in various directions, thereby accurately determining whether the device is in motion. This accuracy ensures that the target information is played at the correct time, avoiding accidental triggering of the playback function when the device is stationary.

[0125] If the third information acquisition condition is met, it can be determined that the currently acquired third information matches the preset third target trigger scenario, and the current device state can be considered suitable for executing the target information playback function. Based on this scenario, the control terminal immediately initiating target information playback is a reasonable choice that is both timely and meets user needs.

[0126] This embodiment allows for the acquisition of third-level information in response to a user-triggered third-level operation. Based on this information, the device status is intelligently assessed to identify the scenario required for the target information playback function. Then, the target information playback is executed to meet the user's needs in the third-level target-triggered scenario. Therefore, this embodiment ensures that the target information playback function is activated at the appropriate time and under suitable conditions, effectively improving the user experience of the terminal device and providing users with a more intelligent and convenient service.

[0127] Figure 7 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0128] In this embodiment of the disclosure, Figure 7 In the scene recognition-based function triggering method shown, steps S710, S720, and S740 are respectively related to... Figure 6 The steps S610, S620, and S630 in the scene recognition-based function triggering method shown correspond to each other and will not be repeated here.

[0129] In this embodiment of the disclosure, Figure 6 Based on the scene recognition-based function triggering method shown, Figure 7 The scene recognition-based function triggering method shown may also include the following steps.

[0130] In step S730, in response to the terminal being connected to a wearable device, target information is obtained from the wearable device.

[0131] In this embodiment of the disclosure, the wearable device may be a smart bracelet, a smartwatch, a heart rate monitoring device, etc. The wearable device may have specific sensors or functions capable of capturing information that a terminal cannot directly obtain. For example, a smartwatch may be equipped with a blood oxygen monitoring sensor, allowing the terminal to acquire target information such as blood oxygen data from the wearable device and display this target information.

[0132] Through this embodiment, the terminal can obtain target information from wearable devices and play it based on data synchronization and interoperability, enabling the terminal to provide users with more comprehensive and personalized services and enhance users' experience of the device's diverse functions.

[0133] In an exemplary embodiment, such as Figure 6 The illustrated embodiment may further include: in response to the terminal being connected to an audio output device, controlling the connected audio output device to play target information via the terminal.

[0134] Audio output devices can include, for example, Bluetooth speakers, Bluetooth headphones, wired headphones, etc.

[0135] In an exemplary embodiment, the first triggering operation, the second triggering operation, and the third triggering operation described above may be the same operation.

[0136] In an exemplary embodiment, the first trigger operation, the second trigger operation, and the third trigger operation described above can all be short press operations performed on the Action Button physical button on the terminal device.

[0137] Figure 8 This is a flowchart illustrating a scene recognition-based function triggering method according to some embodiments of this disclosure, such as... Figure 8 As shown, the function triggering method based on scene recognition may include the following steps.

[0138] In step S801, in response to receiving a trigger operation, the acquisition information collected by at least one sensor in the terminal is obtained.

[0139] The triggering operation can be a short press of the Action Button physical button on the terminal device.

[0140] In step S803, it is determined whether the terminal is in a stationary state based on the collected information. If yes, then step S805 is executed; otherwise, step S807 is executed.

[0141] Among them, the information collected by the accelerometer can be used to identify whether the terminal is stationary or in motion.

[0142] In step S805, the terminal is determined to be in a static state based on the collected information.

[0143] In step S807, the terminal is determined to be in a state of motion based on the collected information.

[0144] In step S809, in response to the collected information satisfying the first collected information condition, it is determined that the collected information matches the first target triggering scenario.

[0145] The first information collection conditions may include: an accelerometer determining that the terminal is not in a flat position; a front-facing camera determining that the user is within the field of view; and a rear-facing camera determining that the object to be scanned is within the field of view.

[0146] In step S811, the terminal is controlled to perform the scanning function.

[0147] In step S813, in response to the collected information satisfying the second collected information condition, it is determined that the collected information matches the second target triggering scenario.

[0148] The second information acquisition condition may include: the accelerometer determines that the terminal is in a screen-down state, or the accelerometer determines that the terminal has performed a flip from a screen-up state to a screen-down state within a preset time range adjacent to the second trigger operation.

[0149] In step S815, the terminal is controlled to perform the recording function.

[0150] In step S817, in response to the terminal being connected to a wearable device, target information is obtained from the wearable device.

[0151] In step S819, the terminal is controlled to play the target information according to the target information.

[0152] Figure 8 Other aspects of the embodiments can be found in the other embodiments described above.

[0153] Figure 9 This is a schematic diagram illustrating an application scenario of a scene recognition-based function triggering method according to some embodiments of this disclosure.

[0154] like Figure 9 As shown, the device includes: a user 900 who is running, a terminal 901 held by the user 900, and a wearable device 902 worn by the user 900 (here, a smart bracelet is used as an example for illustration, but this disclosure is not limited to this). The terminal 901 is equipped with a physical button 903 for triggering the operation, and the terminal 901 is connected to the smart bracelet 902 via Bluetooth.

[0155] In this embodiment, when a user presses the physical button 903 while running on the handheld terminal 901, a trigger operation is generated. In response to this trigger operation, collected information can be obtained from the terminal 901 in motion. This collected information can meet the aforementioned third collected information condition, that is, it can match the aforementioned third target trigger scenario; at the same time, the terminal 901 can also obtain target information from the wearable device 902 connected via Bluetooth, and then control the terminal 901 to execute the trigger function bound to the third target trigger scenario according to the target information, that is, to execute the function of playing the target information (here, it is assumed that the target information is "current heart rate 130, exercise duration has reached 20 minutes" as an example for illustration, but this disclosure is not limited to this).

[0156] Figure 10 This is a flowchart illustrating the configuration of scenes and functions in a scene-based function triggering method according to some embodiments of this disclosure. For example... Figure 10 As shown, in some embodiments of this disclosure, configuring scenarios and functions may include the following steps.

[0157] In step S1010, the trigger scenario to be configured is determined.

[0158] In step S1020, the trigger function to be configured is determined.

[0159] In step S1030, a binding relationship is established between the scenario to be configured and the function to be configured.

[0160] In this embodiment of the disclosure, users can define new triggering scenarios (i.e., triggering scenarios to be configured) according to business needs. For example, they can define the name, description, and specific conditions or parameters used to identify the scenario. Users can also specify the specific functions or operations that the control terminal needs to perform when the newly defined scenario is identified (i.e., triggering functions to be configured).

[0161] After determining the trigger scenario and the trigger function to be configured, a binding relationship can be established between them so that when the terminal recognizes the trigger scenario to be configured, it can quickly find and execute the corresponding trigger function to be configured.

[0162] This embodiment provides users with a way to customize configurations, offering more personalized services and experiences to meet their individual needs.

[0163] Figure 11 This is a flowchart illustrating the configuration of a scene and function in a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0164] In this embodiment of the disclosure, Figure 11In the scene recognition-based function triggering method shown, steps S1140 and S1150 are respectively related to... Figure 10 The steps S1020 and S1030 in the scene recognition-based function triggering method shown correspond to each other and will not be repeated here.

[0165] In this embodiment of the disclosure, Figure 10 Based on the scene recognition-based function triggering method shown, Figure 11 The scene recognition-based function triggering method shown may also include the following steps.

[0166] In step S1110, at least one of the sensor's acquisition information configuration items is obtained.

[0167] In this embodiment of the disclosure, the user can manually input or select the acquisition information configuration items corresponding to the sensor, so that the terminal knows which sensors are active when determining the trigger scenario to be configured, and determines what types of acquisition information configuration items these sensors can provide.

[0168] In an exemplary embodiment, the configuration items for the information collected by the sensor may include, for example, the configuration item for "acceleration threshold" for the accelerometer, the configuration item for "acceleration direction" for the accelerometer, the configuration item for "location range" for the GPS sensor, the configuration item for "speed limit" for the GPS sensor, and so on.

[0169] In step S1120, the data collection conditions are configured based on the data collection configuration items.

[0170] In this embodiment of the disclosure, based on the determined data acquisition configuration items corresponding to the sensor, the user can further configure specific data acquisition conditions. These data acquisition conditions can be used to define how the sensor's data acquisition information is matched with the triggering scenario to be configured. For example, the "lower threshold of acceleration" for the accelerometer can be configured to 0.5g, indicating that a certain motion-related data acquisition condition is only considered met when the accelerometer's data acquisition information meets an acceleration exceeding 0.5g.

[0171] In this embodiment of the disclosure, after the acquisition information conditions are configured based on the acquisition information configuration item corresponding to a sensor, the acquisition information conditions can be considered to have a corresponding relationship with the sensor.

[0172] In step S1130, a correspondence is established between the trigger scenario to be configured and the information acquisition conditions corresponding to the at least one sensor.

[0173] In this embodiment of the disclosure, the data collection conditions defined in the preceding steps can be associated with the triggering scenario to be configured. Therefore, when the data collection information in a scenario meets these data collection conditions, the scenario can be determined to be equivalent to a preset triggering scenario to be configured based on the correspondence between the data collection conditions and the triggering scenario to be configured.

[0174] This embodiment allows users to define corresponding data collection conditions for a trigger scenario through data configuration. Furthermore, there can be a pre-defined correspondence between trigger scenarios and data collection conditions, allowing users to easily adjust and optimize them according to actual needs, adapting to changes and developments in business requirements. In addition, this design offers flexibility and scalability; new trigger scenarios and data collection conditions can be easily added when new business needs arise, providing users with a highly customized solution.

[0175] In some embodiments of this disclosure, establishing the correspondence between the triggering scenario to be configured and the information acquisition conditions corresponding to the at least one sensor may include: configuring a logical relationship between each of the information acquisition conditions; wherein the logical relationship includes at least one of the following: AND relationship, OR relationship, and NOT relationship; and establishing the correspondence between the triggering scenario to be configured and the information acquisition conditions corresponding to the at least one sensor according to the logical relationship.

[0176] In this embodiment of the disclosure, the user can manually input or select the logical relationships between various information collection conditions. These logical relationships determine the specific conditions that trigger scene recognition, enabling the terminal to understand how to combine these conditions to determine whether the collected information matches the scene.

[0177] Specifically, specifying an "AND" relationship for data collection conditions means that these conditions must be met simultaneously during scene matching. For example, in a "night running" scenario, the following two data collection conditions can be configured: the accelerometer determines that the terminal is in motion, and the ambient light sensor detects a low-light environment. By configuring an "AND" relationship between these two conditions, the data collected when a trigger operation occurs must satisfy both conditions to determine if the data collection matches the "night running" scenario.

[0178] For data collection conditions specified with an "OR" relationship, it means that when performing scene matching, only at least one of the conditions needs to be met to be considered as triggering the corresponding scene. For example, in the "emergency alert" scene, the following two data collection conditions can be configured: the accelerometer determines that the acceleration change is higher than the acceleration threshold, and the microphone determines that the noise level is higher than the decibel threshold. If these two data collection conditions are configured with an "OR" relationship, then when a trigger operation occurs, the acquired data only needs to meet at least one of these two conditions to determine that the acquired data matches the "emergency alert" scene.

[0179] The "non-relational" setting can be used to exclude certain conditions. Specifying a "non-relational" condition for data collection means that the condition must not be met during scene matching for the corresponding scene to be considered triggered, or other data collection conditions must be considered to trigger the scene. For example, in the "Quiet Indoor Reading" scene, the following data collection condition can be configured: the ambient light sensor detects a low-light environment, and this condition is configured as "non-relational." Then, when a trigger operation occurs, the acquired data must not meet this condition to determine if the data collection matches the "Emergency Alert" scene.

[0180] In this embodiment of the disclosure, after configuring the logical relationships between various data collection conditions, the combination of logical relationships can be associated with the triggering scenario to be configured. These correspondences can be stored using a preset data structure (such as a database table or configuration file). Whenever new data collection information is received, it can be checked according to these correspondences to determine whether a certain scenario has been triggered, and the corresponding triggering function can be executed accordingly.

[0181] This embodiment provides high flexibility and scalability for configuring information collection conditions. Users can easily add, modify, or delete information collection conditions and logical relationships corresponding to the triggering scenarios to be configured according to business needs. This allows the scene recognition-based function triggering method to respond more intelligently to changes in user behavior and environment, providing users with services that meet their needs.

[0182] Figure 12 This is a flowchart illustrating the configuration of a scene and function in a scene recognition-based function triggering method according to some embodiments of the present disclosure.

[0183] In this embodiment of the disclosure, Figure 12 In the scene recognition-based function triggering method shown, steps S1240 and S1250 are respectively related to... Figure 10 The steps S1020 and S1030 in the scene recognition-based function triggering method shown correspond to each other and will not be repeated here.

[0184] In this embodiment of the disclosure, Figure 10 Based on the scene recognition-based function triggering method shown, Figure 12 The scene recognition-based function triggering method shown may also include the following steps.

[0185] In step S1210, in response to receiving a scene configuration operation, fourth acquisition information collected by at least one of the sensors in the terminal is obtained.

[0186] In this embodiment of the disclosure, when a user wishes to configure a new trigger scenario (i.e., the trigger scenario to be configured) through scene simulation, this function can be activated by performing a scene configuration operation. The scene configuration operation can be performed by the user by clicking a specified button, selecting a menu option, issuing a specific voice command, or performing a specific gesture.

[0187] In this embodiment of the disclosure, in response to a scene configuration operation, information collected in real time by at least one of the sensors in the terminal can be obtained, namely, the fourth collection information. The fourth collection information can serve as a real-time snapshot of the current environment or device state.

[0188] In step S1220, a selection operation for the fourth collected information is received.

[0189] In this embodiment of the disclosure, after collecting the fourth piece of information, the terminal can present the fourth piece of information to the user in some form (such as a chart, list, interactive interface, etc.) so that the user can intuitively view and understand the fourth piece of information. Then, the user can make selections from the fourth piece of information according to their needs. The selections made by the user may include selections based on a specific numerical range, selections based on the occurrence of a specific event, etc.

[0190] In step S1230, according to the selection operation, a correspondence is established between the trigger scene to be configured and the acquisition information conditions corresponding to the selected sensor; the acquisition information conditions are generated based on the selection of the fourth acquisition information.

[0191] In this embodiment of the disclosure, the terminal can parse the user's selection operation and generate corresponding collection information conditions and bind them to the trigger scenario to be configured. These collection information conditions are generated based on the user's selection of the fourth collection information, and may specifically include numerical range, event type, etc.

[0192] This embodiment allows users to determine the corresponding data collection conditions for a configurable trigger scenario through scene simulation. This scene simulation configuration method makes setting trigger scenarios more intuitive and flexible, allowing users to easily customize configurable trigger scenarios that suit their usage habits. Furthermore, since this configuration method is based on real-time sensor data collection, it accurately reflects the user's current environment or device status, thereby improving the accuracy and reliability of scene recognition.

[0193] In some embodiments of this disclosure, the function triggering method based on scene recognition further includes: in response to receiving a function update operation for a triggering scene to be updated, determining a triggering function to be updated; and replacing a triggering function that is bound to the triggering scene to be updated with the triggering function to be updated.

[0194] In this embodiment of the disclosure, when a user needs to update the triggering function associated with a certain triggering scenario (i.e., the triggering scenario to be updated), a function update operation can be triggered. The function update operation can be implemented by the user through a programming interface, clicking a specified button, selecting a menu option, issuing a specific voice command, or performing a specific gesture.

[0195] In this embodiment of the disclosure, after receiving a function update operation, the user can select from the functions provided by the terminal to determine the function to be updated. Alternatively, the user can implement a new function programmatically to serve as the function to be updated.

[0196] This embodiment further expands the function triggering method based on scene recognition, allowing users to update the triggering functions bound to a triggering scene. The update mechanism in this embodiment provides users with high flexibility and customization capabilities, enabling them to adjust the binding relationship between triggering scenes and triggering functions at any time according to their needs or preferences, adapting to different usage scenarios and requirements.

[0197] It should be noted that the above figures are merely illustrative representations of the processes included in methods according to some embodiments of this disclosure, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0198] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein. For details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the method disclosed herein.

[0199] Figure 13This is a block diagram illustrating a scene-recognition-based function triggering device according to some embodiments of the present disclosure. (Refer to...) Figure 13 The device includes an acquisition unit 1301 and a function execution unit 1302.

[0200] Acquisition unit 1301 is used to acquire acquisition information collected by at least one sensor in the terminal in response to receiving a trigger operation; function execution unit 1302 is used to control the terminal to execute a trigger function that is bound to the target trigger scene in response to the acquisition information matching the target trigger scene.

[0201] In some embodiments of this disclosure, the triggering operation is one of the following: a long press operation, a short press operation, a double-click operation, a toggle operation, a specified voice, or a specified gesture.

[0202] In some embodiments of this disclosure, the target triggering scenario is one of the triggering scenarios in a preset set of triggering scenarios, and the preset set of triggering scenarios corresponds to the triggering operation.

[0203] In some embodiments of this disclosure, the scene recognition-based function triggering device further includes a matching unit 1303, configured to determine that the collected information matches the target triggering scene in response to the collected information matching the collected information conditions corresponding to the target triggering scene.

[0204] In some embodiments of this disclosure, the acquisition unit 1301 is further configured to acquire first collection information in response to receiving a first trigger operation; the matching unit 1303 is further configured to determine that the first collection information matches a first target trigger scenario in response to the first collection information satisfying a first collection information condition; the function execution unit 1302 is further configured to control the terminal to perform a scanning function; wherein, the first collection information condition includes: an accelerometer determining that the terminal is stationary and not flat; a front-facing camera determining that the user is within the field of view; and a rear-facing camera determining that the object to be scanned is within the field of view.

[0205] In some embodiments of this disclosure, the acquisition unit 1301 is further configured to acquire second acquisition information in response to receiving a second trigger operation; the matching unit 1303 is further configured to determine that the second acquisition information matches a second target trigger scenario in response to the second acquisition information satisfying the second acquisition information condition; the function execution unit 1302 is further configured to control the terminal to perform a recording function; wherein, the second acquisition information condition includes: the accelerometer determines that the terminal is in a stationary state; the accelerometer determines that the terminal is in a screen-down state or determines that the terminal performs a flipping action within a preset time range adjacent to the second trigger operation.

[0206] In some embodiments of this disclosure, the acquisition unit 1301 is further configured to acquire third acquisition information in response to receiving a third trigger operation; the matching unit 1303 is further configured to determine that the third acquisition information matches a third target trigger scenario in response to the third acquisition information satisfying the third acquisition information condition; the function execution unit 1302 is further configured to control the terminal to perform target information playback; wherein, the third acquisition information condition includes: an acceleration sensor determining that the terminal is in motion.

[0207] In some embodiments of this disclosure, the acquisition unit 1301 is further configured to acquire target information from the wearable device in response to the terminal being connected to the wearable device.

[0208] In some embodiments of this disclosure, the scene-based function triggering device further includes: a configuration unit 1304, used to determine the scene to be configured and the function to be configured; and a binding unit, used to establish a binding relationship between the scene to be configured and the function to be configured.

[0209] In some embodiments of this disclosure, the configuration unit 1304 determines the triggering scenario to be configured, including: acquiring at least one acquisition information configuration item corresponding to the sensor; configuring acquisition information conditions based on the acquisition information configuration item; and establishing a correspondence between the triggering scenario to be configured and the acquisition information conditions corresponding to the at least one sensor.

[0210] In some embodiments of this disclosure, the configuration unit 1304 establishes a correspondence between the trigger scene to be configured and the information acquisition conditions corresponding to the at least one sensor, including: configuring a logical relationship between each of the information acquisition conditions; wherein the logical relationship includes at least one of the following: AND relationship, OR relationship, and NOT relationship; and establishing a correspondence between the trigger scene to be configured and the information acquisition conditions corresponding to the at least one sensor according to the logical relationship.

[0211] In some embodiments of this disclosure, the configuration unit 1304 determines a trigger scenario to be configured, including: in response to receiving a scenario configuration operation, acquiring fourth acquisition information collected by at least one of the sensors in the terminal; receiving a selection operation on the fourth acquisition information; and establishing a correspondence between the trigger scenario to be configured and the acquisition information conditions corresponding to the selected sensor based on the selection operation; wherein the acquisition information conditions are generated based on the selection of the fourth acquisition information.

[0212] In some embodiments of this disclosure, the scene-based function triggering device further includes: an update unit 1305, configured to, in response to receiving a function update operation for a triggering scene to be updated, determine the triggering function to be updated; and replace the triggering function that is bound to the triggering scene to be updated with the triggering function to be updated.

[0213] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0214] Figure 14 This is a block diagram illustrating a device 1400 for scene-based function triggering according to some embodiments of the present disclosure. For example, device 1400 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0215] Reference Figure 14 The device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input / output (I / O) interface 1414, a sensor component 1414, and a communication component 1416.

[0216] Processing component 1402 typically controls the overall operation of device 1400, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1402 may include one or more modules to facilitate interaction between processing component 1402 and other components. For example, processing component 1402 may include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402.

[0217] Memory 1404 is configured to store various types of data to support the operation of device 1400. Examples of this data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, etc. Memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0218] Power supply component 1406 provides power to various components of device 1400. Power supply component 1406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 1400.

[0219] Multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1408 includes a front-facing camera and / or a rear-facing camera. When the device 1400 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0220] Audio component 1410 is configured to output and / or input audio signals. For example, audio component 1410 includes a microphone (MIC) configured to receive external audio signals when device 1400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1404 or transmitted via communication component 1416. In some embodiments, audio component 1410 also includes a speaker for outputting audio signals.

[0221] I / O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0222] Sensor assembly 1414 includes one or more sensors for providing status assessments of various aspects of device 1400. For example, sensor assembly 1414 may detect the on / off state of device 1400, the relative positioning of components such as the display and keypad of device 1400, changes in the position of device 1400 or a component of device 1400, the presence or absence of user contact with device 1400, the orientation or acceleration / deceleration of device 1400, and temperature changes of device 1400. Sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1414 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0223] Communication component 1416 is configured to facilitate wired or wireless communication between device 1400 and other devices. Device 1400 can access wireless networks based on communication standards, such as WiFi, 3G, 4G, 5G, other communication standards, or combinations thereof. In some embodiments of this disclosure, communication component 1416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In some embodiments of this disclosure, communication component 1416 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0224] In some embodiments of this disclosure, the apparatus 1400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0225] In some embodiments of this disclosure, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1404 including instructions, which can be executed by a processor 1420 of the device 1400 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0226] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a scene-based function triggering method, the method comprising: in response to receiving a triggering operation, acquiring acquisition information collected by at least one sensor in the terminal; and in response to the acquisition information matching a target triggering scene, controlling the terminal to execute a triggering function that is bound to the target triggering scene.

[0227] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0228] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A function triggering method based on scene recognition, characterized in that, include: In response to receiving a trigger operation, acquire the data collected by at least one sensor in the terminal; In response to the collected information matching the target triggering scenario, the terminal is controlled to execute a triggering function that is bound to the target triggering scenario.

2. The method according to claim 1, characterized in that, The triggering operation is one of the following: long press, short press, double-click, toggle operation of the specified button, specified voice, or specified gesture.

3. The method according to claim 1, characterized in that, The target triggering scenario is one of the triggering scenarios in a preset set of triggering scenarios, and the preset set of triggering scenarios has a corresponding relationship with the triggering operation.

4. The method according to claim 1, characterized in that, The method further includes: In response to receiving the first trigger operation, the first collected information is acquired; In response to the first collected information satisfying the first collected information condition, it is determined that the first collected information matches the first target triggering scenario; Control the terminal to perform the scanning function; The first information collection conditions include: The accelerometer determined that the terminal was stationary and not lying flat. The front-facing camera determines whether the user is within its field of view; The rear camera confirms that the object to be scanned is within the field of view.

5. The method according to claim 1, characterized in that, The method further includes: In response to receiving a second trigger operation, acquire the second collected information; In response to the second collected information satisfying the second collected information condition, it is determined that the second collected information matches the second target triggering scenario; Control the terminal to perform the recording function; The second information collection conditions include: The accelerometer determined that the terminal was stationary; An accelerometer determines that the terminal is in a screen-down state or determines that the terminal performs a flipping action within a preset time range adjacent to the second trigger operation.

6. The method according to claim 1, characterized in that, The method further includes: In response to receiving a third trigger operation, acquire the third collected information; In response to the third collected information satisfying the third collected information condition, it is determined that the third collected information matches the third target triggering scenario; Control the terminal to play the target information; The third information collection condition includes: The accelerometer determines that the terminal is in motion.

7. The method according to claim 6, characterized in that, The method further includes: In response to the terminal being connected to a wearable device, target information is obtained from the wearable device.

8. The method according to claim 1, characterized in that, The method further includes: Determine the trigger scenarios and trigger functions to be configured; Establish the binding relationship between the scenario to be configured and the function to be configured.

9. The method according to claim 8, characterized in that, The determination of the trigger scenario to be configured includes: Obtain at least one of the acquisition information configuration items corresponding to the sensor; Configure the data collection conditions based on the aforementioned data collection configuration items; Establish a correspondence between the trigger scenario to be configured and the information acquisition conditions corresponding to the at least one sensor.

10. The method according to claim 9, characterized in that, Establishing the correspondence between the triggering scenario to be configured and the information acquisition conditions corresponding to the at least one sensor includes: Configure the logical relationships between each of the information collection conditions; wherein the logical relationships include at least one of the following: AND relationship, OR relationship, and NOT relationship; Based on the logical relationship, establish the correspondence between the trigger scenario to be configured and the information collection conditions corresponding to the at least one sensor.

11. The method according to claim 8, characterized in that, The determination of the trigger scenario to be configured includes: In response to receiving a scene configuration operation, the terminal acquires fourth acquisition information collected by at least one of the sensors. Receive the selection operation for the fourth collected information; Based on the selection operation, a correspondence is established between the trigger scenario to be configured and the acquisition information conditions corresponding to the selected sensor; the acquisition information conditions are generated based on the selection of the fourth acquisition information.

12. The method according to claim 1, characterized in that, The method further includes: In response to receiving a function update operation for a scenario to be updated, determine the function to be updated; Replace the triggering function that is bound to the triggering scenario to be updated with the triggering function to be updated.

13. A function triggering device based on scene recognition, characterized in that, include: The acquisition unit is used to acquire acquisition information collected by at least one sensor in the terminal in response to receiving a trigger operation; The function execution unit is used to control the terminal to execute a triggering function that is bound to the target triggering scenario in response to the matching of the collected information with the target triggering scenario.

14. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1-12.

15. A non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute a scene-recognition-based function triggering method, the method comprising: In response to receiving a trigger operation, acquire the data collected by at least one sensor in the terminal; In response to the collected information matching the target triggering scenario, the terminal is controlled to execute a triggering function that is bound to the target triggering scenario.