CN-122018683-A - Interaction method, interaction device, electronic equipment and storage medium
Abstract
The application discloses an interaction method and device and electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the steps of obtaining first optical flow information of continuous image frames captured by a camera under the condition that a target object is detected to enter an optical path area of an auxiliary light source through the camera, and executing corresponding operation on a current display interface based on the first optical flow information.
Inventors
- ZHANG MENGTING
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260119
Claims (10)
- 1. An interaction method, comprising: Under the condition that a target object is detected to enter a light path area of an auxiliary light source by a camera, acquiring first optical flow information of continuous image frames captured by the camera; and executing corresponding operation on the current display interface based on the first optical flow information.
- 2. The method of claim 1, wherein the performing a corresponding operation on a current display interface based on the first optical flow information comprises: determining a first shielding state sequence of the target object to the light path area based on the first light flow information; and executing corresponding operation on the current display interface based on the first shielding state sequence.
- 3. The method of claim 2, wherein the performing a corresponding operation on the current display interface based on the first occlusion state sequence comprises: determining a first moving instruction of a focus on the current display interface based on the first shielding state sequence under the condition that the first shielding state sequence is shielding position movement generated by the movement of the target object in the light path area; And responding to the first moving instruction, and moving the focus from the current interface element of the current display interface to the target interface element of the current display interface.
- 4. The method of claim 2, wherein the performing a corresponding operation on the current display interface based on the first occlusion state sequence comprises: Determining an operation instruction for a current interface element of the current display interface based on the first shielding state sequence under the condition that the first shielding state sequence is used for performing shielding and de-shielding state switching on the light path area by the target object; And responding to the operation instruction, and executing corresponding operation on the current interface element.
- 5. The method of claim 4, wherein the determining, based on the first occlusion state sequence, an operation instruction for a current interface element of the current display interface comprises: Acquiring a state when the first shielding state sequence is terminated; When the state when the first shielding state sequence is terminated is a shielding state, determining an operation instruction for the current interface element as a selected instruction; When the state when the first shielding state sequence is terminated is a shielding-free state, determining an operation instruction for the current interface element as a function triggering instruction; The responding to the operation instruction, executing corresponding operation on the current interface element, includes: And responding to the function triggering instruction, and jumping to a target page corresponding to the current interface element or displaying a plurality of parameters corresponding to the current interface element.
- 6. The method of claim 5, wherein in the case of displaying a plurality of parameters corresponding to the current interface element, the method further comprises: acquiring second optical flow information of continuous image frames captured by the camera under the condition that the camera detects that the target object enters the light path area; Determining a second shielding state sequence of the target object to the light path area based on the second light flow information; determining a selection instruction of a plurality of parameters corresponding to the current interface element based on the second shielding state sequence; in response to the selection instruction, a target parameter of the plurality of parameters is determined.
- 7. The method of claim 1, wherein the acquiring first optical flow information of successive image frames captured by the camera in a case where the target object is detected by the camera to enter the optical path region of the auxiliary light source comprises: identifying the object under the condition that the camera detects that the object enters the light path area; Under the condition that the object is identified as the target object, acquiring first optical flow information of continuous image frames captured by the camera, and acquiring a distance between the camera and the target object; the executing, based on the first optical flow information, a corresponding operation on the current display interface includes: And executing corresponding operation on the current display interface based on the first optical flow information under the condition that the distance is within a preset distance.
- 8. The method of claim 7, wherein the performing a corresponding operation on the current display interface based on the first optical flow information if the distance is within a preset distance comprises: determining a third shielding state sequence of the target object to the light path area based on the first light flow information under the condition that the distance is within a preset distance; Determining a second moving instruction of a focus on the current display interface based on the third shielding state sequence under the condition that the third shielding state sequence is the shielding position movement generated by the movement of the target object in the light path area; and responding to the second movement instruction, and updating the display content of the current display interface.
- 9. An interactive apparatus, comprising: The acquisition module is used for acquiring first optical flow information of continuous image frames captured by the camera under the condition that the camera detects that a target object enters an optical path area of the auxiliary light source; and the operation module is used for executing corresponding operation on the current display interface based on the first optical flow information.
- 10. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the interaction method of any of claims 1-8.
Description
Interaction method, interaction device, electronic equipment and storage medium Technical Field The application belongs to the technical field of electronic equipment, and particularly relates to an interaction method and device and electronic equipment. Background Currently, various water sports are popular, such as surfing, diving, underwater photography, and the like. In these scenarios, users often use waterproof protective bags to prevent the electronic device from being damaged by water ingress. Although waterproof bags can protect electronic equipment to some extent, their use remains a significant problem in actual water or underwater environments. Due to the water pressure change and the thickness of the waterproof bag material, the touch operation often fails, and the user experience is seriously affected. Typical problems include: the social contact and communication obstacle is that the user is difficult to smoothly start or switch the video call and send the multimedia content through touch control, so that the interaction flow is interrupted; The shooting function is limited, namely, shooting modes cannot be accurately focused or zoomed in underwater shooting, and imaging quality and creation freedom degree are affected. The above drawbacks limit the ability of users to efficiently and conveniently use electronic devices in complex environments such as aquatic environments. Disclosure of Invention The embodiment of the application aims to provide an interaction method, an interaction device and electronic equipment, which can enable a user to still use the electronic equipment efficiently and conveniently in a complex environment. In a first aspect, an embodiment of the present application provides an interaction method, including: Under the condition that the camera detects that a target object enters a light path area of the auxiliary light source, acquiring first optical flow information of continuous image frames captured by the camera; Based on the first optical flow information, a corresponding operation is performed on the current display interface. In a second aspect, an embodiment of the present application provides an interaction device, including: the acquisition module is used for acquiring first optical flow information of continuous image frames captured by the camera under the condition that the camera detects that a target object enters an optical path area of the auxiliary light source; And the operation module is used for executing corresponding operation on the current display interface based on the first optical flow information. In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect. In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect. In the embodiment of the application, under the condition that the camera detects that the target object enters the light path area of the auxiliary light source, the first light flow information of the continuous image frames captured by the camera is acquired, and based on the first light flow information, corresponding operation is executed on the current display interface. According to the scheme, a user does not need to rely on screen touch, the light path area of the auxiliary light source is converted into a high-sensitivity non-touch interactive interface, and multiple common operations on the current display interface can be completed through specific gestures or operations of the target object on the light path area, so that accurate and reliable operations on the electronic equipment are realized, and the user can still use the electronic equipment in environments such as water body efficiently and conveniently. Drawings FIG. 1 is a flow diagram of an interaction method provided by some embodiments of the application; FIG. 2 is a schematic diagram of a water mode before and after opening provided by some embodiments of the present application; FIG. 3 is a schematic diagram of a display interface for target object sliding provided by some embodiments o