Control method, control device, electronic device and readable storage medium
By converting user input into target symbol combination and analyzing control instructions, the inefficiency problem caused by complex operations on the electronic device display screen is solved, and a more efficient control process is achieved.
Patent Information
- Application Number
- CN202210585057.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-05-26
AI Technical Summary
When performing complex operations on the display screen of an electronic device, the computing volume of the electronic device is large, resulting in low control efficiency.
By converting user input into target symbol combinations, using preset target symbol sets to parse and execute corresponding control instructions, the operation process is simplified to improve control efficiency.
It effectively improves the control efficiency of electronic devices, reduces the problems of erroneous operations and inefficiency caused by complex inputs, and achieves more intuitive and efficient user interaction.
Smart Images

Figure CN114911405B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a control method, a control device, an electronic device and a readable storage medium. Background Art
[0002] With the development of science and technology, electronic devices are being used more and more widely. Usually, in the process of using electronic devices, users can control the electronic devices through corresponding operations. However, when users perform complex operations on the display screen of electronic devices, such as operating the electronic devices through complex gestures, the amount of calculation of the electronic devices is large, which makes the efficiency of controlling the electronic devices low. Summary of the invention
[0003] The embodiments of the present application provide a control method, a control device, an electronic device and a readable storage medium to solve the problem in the related art that when performing complex operations on the display screen of the electronic device, the electronic device has a large amount of calculation, resulting in low efficiency in controlling the electronic device.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a control method, which is applied to an electronic device. The control method includes:
[0006] In response to a first input, converting the first input into a first target symbol combination, wherein the symbols included in the first target symbol combination are from a target symbol set;
[0007] When the first target symbol combination exists in a symbol combination set, taking a control instruction corresponding to the first target symbol combination as a target instruction, the symbol combination set includes symbols in the symbol combination, and the symbols are from the target symbol set;
[0008] Execute the operation corresponding to the target instruction.
[0009] Optionally, converting the first input into a first target symbol combination comprises:
[0010] According to the inflection points and intersection points in the first input movement trajectory, the movement trajectory is split into a plurality of movement trajectory segments;
[0011] When the moving trajectory segment is a closed trajectory segment, a target symbol corresponding to the closed trajectory segment is selected from the target symbol set, and the target symbols constitute the first target symbol combination;
[0012] When the moving trajectory segment is a non-closed trajectory segment, according to the moving direction of the moving trajectory segment, a target symbol corresponding to the moving direction is selected from the target symbol set;
[0013] According to the connection order of the multiple moving trajectory segments, the target symbols are arranged and combined to obtain the first target symbol combination.
[0014] Optionally, in response to the first input, the step includes:
[0015] In response to a first input within a preset time period.
[0016] Optionally, the target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction;
[0017] The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, and the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the third angle range. The arrow in the fifth direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range;
[0018] The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
[0019] Optionally, the electronic device includes a curling screen, and when the first target symbol combination exists in the symbol combination set, before taking the control instruction corresponding to the first target symbol combination as the target instruction, the control method further includes:
[0020] When the curling screen is in a closed state, acquiring a symbol combination set corresponding to the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction;
[0021] When the curled screen is in an unfolded state, a symbol combination set corresponding to the unfolded state is acquired, and the symbol combination included in the symbol combination set corresponding to the unfolded state corresponds to the closing instruction.
[0022] Optionally, the control method further includes:
[0023] In response to a second input, entering an edit mode;
[0024] In response to a third input of the user for the target instruction, converting the third input into a second target symbol combination;
[0025] A corresponding relationship between the second target symbol combination and the target instruction is established.
[0026] Optionally, before converting the first input into a first target symbol combination in response to the first input, the control method further includes:
[0027] A fourth input is received, and in response to the fourth input, a gesture recognition mode is entered.
[0028] Optionally, the control method further includes:
[0029] When the first target symbol combination does not exist in the symbol combination set, prompt information is displayed, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
[0030] In a second aspect, an embodiment of the present application provides a control device, which is applied to an electronic device, and the control device includes:
[0031] A first conversion module, configured to convert a first input into a target symbol combination in response to a first input, wherein the symbols included in the target symbol combination are from a target symbol set;
[0032] a determination module, configured to, when the target symbol combination exists in the symbol combination set, use the control instruction corresponding to the target symbol combination as the target instruction, and the symbols in the symbol combination included in the symbol combination set are from the target symbol set;
[0033] An execution module is used to execute the operation corresponding to the target instruction.
[0034] Optionally, the first conversion module includes:
[0035] a splitting unit, configured to split the moving trajectory into a plurality of moving trajectory segments according to the inflection points and intersection points in the moving trajectory of the first input;
[0036] A first selection unit is used to select a target symbol corresponding to the closed trajectory segment from the target symbol set when the moving trajectory segment is a closed trajectory segment, and the target symbols constitute the first target symbol combination;
[0037] A second selection unit is used to select a target symbol corresponding to the moving direction from the target symbol set according to the moving direction of the moving trajectory segment when the moving trajectory segment is a non-closed trajectory segment;
[0038] An arranging unit is used to arrange and combine the target symbols according to the connection order of the multiple moving trajectory segments to obtain the first target symbol combination.
[0039] Optionally, the first conversion module is used to:
[0040] In response to a first input within a preset time period.
[0041] Optionally, the target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction;
[0042] The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, and the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the third angle range. The arrow in the fifth direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range;
[0043] The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
[0044] Optionally, the electronic device includes a rollable screen, and the control device further includes:
[0045] A first acquisition module is used to acquire, when the curling screen is in a closed state, a symbol combination set corresponding to the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction;
[0046] The second acquisition module is used to acquire a symbol combination set corresponding to the unfolded state when the curled screen is in the unfolded state, and the symbol combination included in the symbol combination set corresponding to the unfolded state corresponds to the closing instruction.
[0047] Optionally, the control device further includes:
[0048] An editing module, configured to enter an editing mode in response to a second input;
[0049] A second conversion module, configured to convert the third input into a second target symbol combination in response to a third input for a target instruction;
[0050] An establishing module is used to establish a corresponding relationship between the second target symbol combination and the target instruction.
[0051] Optionally, the control device further includes:
[0052] The receiving module is used to receive a fourth input, and enter a gesture recognition mode in response to the fourth input.
[0053] Optionally, the control device further includes:
[0054] The display module is used to display prompt information when the first target symbol combination does not exist in the symbol combination set, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
[0055] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the control method described in the first aspect above are implemented.
[0056] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the control method described in the first aspect above are implemented.
[0057] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0058] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0059] In an embodiment of the present application, in response to a first input, the first input is converted into a first target symbol combination, and the symbols included in the first target symbol combination are from a target symbol set; when the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes the symbols in the symbol combination, and the symbols are from the target symbol set; the operation corresponding to the target instruction is executed. That is, in an embodiment of the present application, the first input is converted into a first target symbol combination, and then when it is determined that the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and finally the operation corresponding to the target instruction is executed, that is, the electronic device is controlled by determining the instruction through a relatively simple symbol, thereby avoiding the problem of low control efficiency of the electronic device when the first input is relatively complex. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A flow chart showing a control method provided by an embodiment of the present application;
[0061] Figure 2 A schematic diagram showing a user touching a display screen provided by an embodiment of the present application;
[0062] Figure 3 A schematic diagram showing a movement track intersection provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram showing a first coordinate axis and a second coordinate axis provided in an embodiment of the present application;
[0064] Figure 5 One of the schematic diagrams showing an unfolded electronic device provided by an embodiment of the present application;
[0065] Figure 6 A second schematic diagram showing a closed electronic device provided by an embodiment of the present application;
[0066] Figure 7 A schematic diagram showing a control device provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram showing an electronic device provided in an embodiment of the present application;
[0068] Fig. 9 A schematic diagram showing the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0070] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0071] The control method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0072] Figure 1 The flowchart of a control method provided by an embodiment of the present application is applied to an electronic device. The electronic device may be a terminal equipped with a touch screen. For example, the terminal may be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, a music player, a notebook computer, a laptop computer, a desktop computer, etc. Figure 1 As shown, the control method includes:
[0073] Step 101: In response to a first input, convert the first input into a first target symbol combination, where symbols included in the first target symbol combination are from a target symbol set.
[0074] In an embodiment of the present application, the entire display interface of the display screen of the electronic device can be used as a touch area, and the user can touch at any position on the display screen, that is, the user makes a first input at any position on the display screen, and the electronic device can respond to the first input. In addition, an operation area is preset on the display interface of the display screen of the electronic device, and the user touches in the operation area, that is, the user makes a first input in the operation area, and the electronic device can respond to the first input. If the user makes the first input outside the operation area, the electronic device will not respond to the first input. Among them, the area of the operation area is smaller than the area of the display interface.
[0075] For example, the electronic device is a mobile phone, and the display interface 900 of the mobile phone has an operation area 901, and the operation area 901 can be a partial area of the display interface 900. When a user makes a first input in the operation area 904, the electronic device can respond to the first input.
[0076] In addition, in the embodiment of the present application, the first input may be an input of the type of click, long press, slide, etc.
[0077] In addition, in an embodiment of the present application, when a user makes a first input on the display interface of the electronic device, the display interface can synchronously display the moving trajectory of the first input in real time. When the entire display interface is used as a touch area, the user makes a first input on the display interface, and the display interface will display the moving trajectory of the first input. When an operation area is preset on the display interface, the user makes a first input in the operation area, and the operation area will display the moving trajectory of the first input. Among them, when the display interface has an operation area, at this time, if the user makes a first input in an area outside the operation area, the area outside the operation area will not display the moving trajectory of the first input.
[0078] For example, when a user performs a sliding input on the display interface of the electronic device and draws a triangle with the user's finger on the display interface, a triangular track is displayed on the display interface. For another example, when a user draws a circle in the operation area of the display interface, a circular track is displayed in the operation area.
[0079] In addition, in an embodiment of the present application, the electronic device can start displaying on the display screen after being unlocked, so that the user can make a first input on the displayed display interface, or make a first input in the operation area of the display interface of the display screen.
[0080] Among them, an unlocking symbol can be pre-stored. When a user unlocks the electronic device, the display screen of the electronic device responds to the user's touch, and can display the user's touch trajectory on the display screen, and convert the touch trajectory into a gesture symbol, and compare the gesture symbol with the unlocking symbol. If the gesture symbol is the same as the unlocking symbol, the electronic device is unlocked; if the gesture symbol is different from the unlocking symbol, the electronic device continues to remain locked.
[0081] It should be noted that the unlock symbol may be a circle, a triangle, an arrow with a direction, etc. When the touch track is converted into a gesture symbol, the touch track may be converted into a circle, a triangle, an arrow with a direction, etc., which may be determined specifically according to the touch track of the user.
[0082] For example, a user performs a sliding touch on the display screen, and the trajectory of the user's sliding touch is a triangle. The trajectory of the user's sliding touch is converted into a gesture symbol of a left-pointing arrow, the pre-stored unlock symbol is an unlock symbol of a left-pointing arrow, and the gesture symbol after the conversion of the trajectory of the user's sliding touch is the same as the unlock symbol, so the electronic device is unlocked.
[0083] In addition, the target symbol set may be pre-stored, or may be acquired in real time, that is, the target symbol set is acquired while responding to the first input. In addition, the target symbol set includes a plurality of symbols, and the plurality of symbols are different from each other.
[0084] For example, the target symbol set includes 5 symbols, and any two symbols are different. For another example, the target symbol set includes 5 symbols, and the 5 symbols are respectively an arrow pointing horizontally to the left, an arrow pointing horizontally to the right, an arrow pointing vertically upward, an arrow pointing vertically downward, and a dot.
[0085] In addition, in an embodiment of the present application, when the user makes a first input on the display screen of the electronic device, the display screen displays the moving trajectory of the first input. At this time, the implementation method of converting the first input into a first target symbol combination can be: converting the moving trajectory of the first input into a first target symbol combination.
[0086] In addition, in some implementations, step 101 may be implemented as follows: according to the turning points and intersections in the first input moving trajectory, the moving trajectory is split into multiple moving trajectory segments; when the moving trajectory segment is a closed trajectory segment, a target symbol corresponding to the closed trajectory segment is selected from a target symbol set, and the target symbols constitute a first target symbol combination; when the moving trajectory segment is a non-closed trajectory segment, according to the moving direction of the moving trajectory segment, a target symbol corresponding to the moving direction is selected from a target symbol set; according to the connection order of the multiple moving trajectory segments, the target symbols are arranged and combined to obtain a first target symbol combination.
[0087] Among them, when the first input is made on the display screen of the electronic device, the display screen will display the moving trajectory of the first input, which is equivalent to determining the moving trajectory of the first input. After determining the moving trajectory of the first input, the intersection point and the inflection point in the moving trajectory can be determined. Among them, the intersection point of the moving trajectory refers to the point where the moving trajectory intersects, and the inflection point of the moving trajectory refers to the point where the concavity and convexity of the moving trajectory changes. That is, when determining the inflection point in the moving trajectory, the point where the concavity and convexity of the moving trajectory changes can be determined, that is, on both sides of this point, the concavity and convexity of the moving trajectory are different, and this point can be used as the inflection point of the moving trajectory.
[0088] In addition, when the moving trajectory is split into multiple moving trajectory segments according to the inflection points and intersection points in the moving trajectory of the first input, if there are only intersection points but no inflection points in the moving trajectory, the moving trajectory is split into multiple moving trajectory segments according to the intersection points; if there are only inflection points but no intersection points in the moving trajectory, the moving trajectory is split into multiple moving trajectory segments according to the inflection points; if there are both inflection points and intersection points in the moving trajectory, the moving trajectory is split into multiple moving trajectory segments according to the inflection points and the intersection points.
[0089] When the moving track is divided into a plurality of moving track segments according to the intersections, one intersection may divide the moving track into at least four moving track segments.
[0090] For example, if the moving trajectory is a "cross" shape, it can be determined that there is an intersection in the moving trajectory, and the moving trajectory can be divided into four moving trajectory segments according to the intersection.
[0091] In addition, when the movement trajectory is divided into a plurality of movement trajectory segments according to the inflection point, one inflection point may divide the movement trajectory into at least two movement trajectory segments.
[0092] For example, there is a point A in the moving trajectory, the moving trajectory on one side of point A is concave, and the moving trajectory on the other side of point A is convex, then point A can be used as an inflection point of the moving trajectory, so that the moving trajectory can be divided into two moving trajectory segments.
[0093] In addition, when the movement trajectory is split into multiple movement trajectory segments according to the inflection points and intersections, the movement trajectory may be split according to the intersections first, and then the movement trajectory segments having inflection points after the splitting may be further split until the movement trajectory is completely split according to the inflection points and intersections.
[0094] For example, Figure 3As shown, the moving trajectory includes trajectory A and trajectory B, and trajectory A intersects trajectory B, that is, the moving trajectory has an intersection A, and there is an inflection point A on trajectory A. When splitting the moving trajectory according to the inflection point and the intersection point, trajectory A and trajectory B can be split according to the intersection point A first, so that trajectory A is split into trajectory A1 and trajectory A2, and trajectory B is split into trajectory B1 and B2. The inflection point A is on trajectory A1, and then trajectory A1 is further split into trajectory A11 and trajectory A12 according to the inflection point, so that the moving trajectories A and B are finally split into trajectory A11, trajectory A12, trajectory A2, trajectory B1 and trajectory B2 according to the inflection point and the intersection point.
[0095] Of course, when the moving track is split into multiple moving track segments according to the inflection points and intersection points, the moving track can also be split according to the inflection points first, and then the moving track segments can be further split according to the intersection points until the moving track is completely split according to the inflection points and intersection points. This embodiment of the application does not limit this.
[0096] In addition, after the moving trajectory is split into multiple moving trajectory segments, the moving trajectory segment may be a closed trajectory segment. At this time, the target symbol corresponding to the closed trajectory segment can be directly selected from the target symbol set. Among them, the target symbol set has a target symbol corresponding to the closed trajectory segment. After the target symbol corresponding to the closed trajectory segment is selected, the target symbol can be used as the first target symbol combination.
[0097] In addition, when the moving track segment is a non-closed track segment, the target symbol corresponding to the moving direction can be selected from the target symbol set according to the moving direction of the moving track segment. The moving directions of the moving tracks are different, and the target symbols corresponding to the moving tracks are also different.
[0098] In addition, the target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction. The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis counterclockwise in the third angle range, the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis clockwise in the fourth angle range, the arrow in the fifth direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis counterclockwise in the seventh angle range, and the arrow in the eighth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis clockwise in the eighth angle range. The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
[0099] The first direction, the second direction, the third direction, the fourth direction, the fifth direction, the sixth direction, the seventh direction and the eighth direction are different from each other. In addition, the first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range can be set according to actual needs, and the embodiments of the present application are not limited thereto.
[0100] In addition, the direction of the first coordinate axis may be parallel to one of the two adjacent sides of the display screen, and the direction of the second coordinate axis may be parallel to the other of the two adjacent sides of the display screen. Figure 4 As shown, the first coordinate axis is parallel to a short side of the display screen, and the second coordinate axis is parallel to a long side of the display screen.
[0101] For example, Figure 4As shown, the symbol corresponding to the closed moving trajectory segment is "0"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "→"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the second coordinate axis and the moving trajectory segment is "↑"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the negative direction of the first coordinate axis and the moving trajectory segment is "←"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the negative direction of the second coordinate axis and the moving trajectory segment is "↓"; the symbol corresponding to the moving trajectory segment in the range of 20 degrees to 70 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "0"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "1"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "2"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "3"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "7"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "8"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "9"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "10"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive direction of the first coordinate axis and the moving trajectory segment is "11"; the symbol corresponding to the moving trajectory segment in the range of ≤20 degrees between the positive The symbol corresponding to the counterclockwise angle between the moving trajectory segment and the positive direction of the second coordinate axis in the range of 20 degrees to 70 degrees is The symbol corresponding to the clockwise angle between the moving trajectory segment and the negative direction of the first coordinate axis in the range of 20 degrees to 70 degrees is The symbol corresponding to the clockwise angle between the moving trajectory segment and the negative direction of the second coordinate axis in the range of 20 degrees to 70 degrees is That is, the first angle range is less than or equal to 20 degrees with the positive direction of the first coordinate axis, the second angle range is less than or equal to 20 degrees with the negative direction of the first coordinate axis, the third angle range is 20 to 70 degrees counterclockwise with the positive direction of the first coordinate axis, the fourth angle range is 20 to 70 degrees clockwise with the negative direction of the first coordinate axis, the fifth angle range is less than or equal to 20 degrees with the positive direction of the second coordinate axis, the sixth angle range is less than or equal to 20 degrees with the negative direction of the second coordinate axis, the seventh angle range is 20 to 70 degrees counterclockwise with the positive direction of the second coordinate axis, and the eighth angle range is 20 to 70 degrees clockwise with the negative direction of the second coordinate axis, so that the first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a 360-degree circle, so that the moving track segment at any angle of the display screen can select the corresponding symbol in the target symbol set.
[0102] In addition, after selecting the target symbol corresponding to the moving direction from the target symbol set, the target symbols can be arranged and combined according to the connection order of the multiple moving trajectory segments to obtain the first target symbol combination. The connection order of the moving trajectories is related to the user's touch order. In addition, when determining the connection order of the moving trajectories, the connection order can also be determined according to the display order of the moving trajectories. For example, the moving trajectory segment A is displayed first, and then the moving trajectory segment B is displayed. The connection order is moving trajectory A, and then moving trajectory B.
[0103] In addition, when arranging and combining the target symbols, the target symbols corresponding to the moving track segments are sorted according to the connection order, so as to obtain the first target symbol combination.
[0104] For example, the target symbol corresponding to the moving direction is selected from the target symbol set: and "←", in the order of connection, "←" is the first, For the second one, If it is the third one, then sort it and get the first target symbol combination as “←”,
[0105] In addition, in some implementations, the implementation method of responding to the first input may be: responding to the first input within a preset time period. That is, all inputs within the preset time period are regarded as the first input, which is equivalent to when the user touches the display screen of the electronic device, all inputs within the preset time period are regarded as the first input.
[0106] For example, within 1 second, the user first draws a horizontal line on the display screen, and then draws another vertical line, and the vertical line intersects the horizontal line. The vertical line and the horizontal line are both movement trajectories of the user's first input on the display screen.
[0107] In addition, in some implementations, before responding to the first input and converting the first input into the first target symbol combination, the control method may further include: receiving a fourth input, and entering a gesture recognition mode in response to the fourth input.
[0108] The fourth input may be a click input. When the electronic device has a control button, the fourth input may be a press input of the control button. The fourth input may be a long press input of the display screen. The specific form of the fourth input is not limited in the present embodiment.
[0109] In addition, the gesture recognition mode is entered only after the fourth input is received, so that the problem of erroneous operation of the electronic device due to the user's accidental touch can be avoided.
[0110] In addition, in some implementations, when the first target symbol combination does not exist in the symbol combination set, prompt information is displayed, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
[0111] When the first target symbol combination does not exist in the symbol combination set, it indicates that there is no control instruction corresponding to the first target symbol combination, thereby indicating that the user's operation on the electronic device is an invalid operation, so a prompt message can be displayed to prompt the user.
[0112] Step 102: When there is a first target symbol combination in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes symbols in the symbol combination, and the symbols come from the target symbol set.
[0113] After the first target symbol combination is determined, the symbol combination identical to the first target combination can be searched in the symbol combination set. If the symbol combination identical to the first target combination is found in the symbol combination set, it is determined that the first target symbol combination exists in the symbol combination set; if the symbol combination identical to the first target combination is not found in the symbol combination set, it is determined that the first target symbol combination does not exist in the symbol combination set. In addition, after the first target symbol combination is determined, the symbol combination can be searched for a symbol combination whose deviation from the first target combination is within a deviation value range. If the symbol combination whose deviation from the first target combination is within the deviation value range is found in the symbol combination set, it is determined that the first target symbol combination exists in the symbol combination set; if the symbol combination whose deviation from the first target combination is within the deviation value range is not found in the symbol combination set, it is determined that the first target symbol combination does not exist in the symbol combination set.
[0114] In addition, all symbol combinations in the symbol combination set correspond to control instructions, that is, there is a one-to-one correspondence between the symbol combination and the control instruction, or one symbol combination corresponds to two or more control instructions. Therefore, when there is a first target symbol combination in the symbol combination set, the control instruction corresponding to the first target symbol combination can be determined and the control instruction can be used as the target instruction.
[0115] In addition, in some implementations, the electronic device may include a curling screen. Before step 102, the control method may further include: when the curling screen is in a closed state, obtaining a symbol combination set corresponding to the closed state, and the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction; when the curling screen is in an expanded state, obtaining a symbol combination set corresponding to the expanded state, and the symbol combination included in the symbol combination set corresponding to the expanded state corresponds to the closing instruction.
[0116] The curling flat state can be determined. The comb teeth of the electronic device are provided with spring pieces and contacts. When the curling screen is closed, the spring pieces and contacts are in contact. When the curling screen is unfolded, the spring pieces and contacts are separated.
[0117] For example, Figure 5 and Figure 6 As shown, the electronic device includes a first shell 10 and a second shell 20, the roll-up screen is arranged on the first shell 10 and the second shell 20, a spring sheet is arranged in the first shell 10, and a contact is arranged in the second shell 20. When the first shell 10 is separated from the second shell 20, the spring sheet is separated from the contact, thereby determining that the roll-up screen is in an unfolded state; when the first shell 10 is in contact with the second shell 20, the spring sheet is in contact with the contact, thereby determining that the roll-up screen is in a closed state.
[0118] In addition, when it is determined that the rolled screen is in a closed state, a symbol combination set corresponding to the closed state can be obtained, and the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction. When it is determined that the rolled screen is in an expanded state, a symbol combination set corresponding to the expanded state can be obtained, and the symbol combination included in the symbol combination set corresponding to the expanded state corresponds to the closing instruction. That is, when it is determined that the rolled screen is in a closed state, the expansion instruction is obtained, and when it is determined that the rolled screen is in an expanded state, the closing instruction is obtained.
[0119] Step 103: Execute the operation corresponding to the target instruction.
[0120] After the target is determined, the operation corresponding to the target instruction can be executed to control the electronic device accordingly.
[0121] Among them, the operations corresponding to the target instructions include but are not limited to opening or closing an application, unlocking or locking an electronic device, setting an application of an electronic device, opening or closing a curled screen, etc.
[0122] It should be noted that, in step 102, when it is determined that the curled screen is in a closed state, a symbol combination set corresponding to the closed state is obtained, and the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction, which is equivalent to obtaining the expansion instruction, so that in step 103, the curled screen of the electronic device can be unfolded according to the expansion instruction; when it is determined that the curled screen is in an expanded state, a symbol set corresponding to the expanded state is obtained, and the symbol combination included in the symbol combination set corresponding to the expanded state corresponds to the closing instruction, which is equivalent to obtaining the closing instruction, so that in step 103, the curled screen of the electronic device can be closed according to the closing instruction.
[0123] In addition, a motor is usually provided in an electronic device. When the motor drives the roll-up screen to expand or close, the motor can be controlled to rotate forward according to the expansion instruction, so that the motor drives the roll-up screen to expand. According to the closing instruction, the motor can be controlled to rotate reversely, so that the motor drives the roll-up screen to close.
[0124] In addition, in some implementations, the control method may also include: entering an editing mode in response to a second input; converting the third input into a second target symbol combination in response to a third input from a user for a target instruction; and establishing a correspondence between the second target symbol combination and the target instruction.
[0125] The user can make a second input on the electronic device to enter the editing mode. After that, the user can make a third input for the target instruction, and the electronic device can convert the third input into a second target symbol combination, and then establish a corresponding relationship between the second target symbol combination and the target instruction, which is equivalent to the user being able to customize the corresponding relationship between the symbol combination and the target instruction.
[0126] In an embodiment of the present application, in response to a first input, the first input is converted into a first target symbol combination, and the symbols included in the first target symbol combination are from a target symbol set; when the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes the symbols in the symbol combination, and the symbols are from the target symbol set; the operation corresponding to the target instruction is executed. That is, in an embodiment of the present application, the first input is converted into a first target symbol combination, and then when it is determined that the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and finally the operation corresponding to the target instruction is executed, that is, the electronic device is controlled by determining the instruction through a relatively simple symbol, thereby avoiding the problem of low control efficiency of the electronic device when the first input is relatively complex.
[0127] In the control method provided in the embodiment of the present application, the execution subject may be a control device. In the embodiment of the present application, the control method executed by the control device is taken as an example to illustrate the control device provided in the embodiment of the present application.
[0128] Figure 7 A schematic diagram of a control device provided in an embodiment of the present application is shown as follows: Figure 7 As shown, the control device 700 includes:
[0129] A first conversion module 701 is used for converting the first input into a target symbol combination in response to the first input, where the symbols included in the target symbol combination are from a target symbol set;
[0130] A determination module 702 is used to use the control instruction corresponding to the target symbol combination as the target instruction when there is a target symbol combination in the symbol combination set, the symbol combination set including the symbol in the symbol combination, the symbol coming from the target symbol set;
[0131] The execution module 703 is used to execute the operation corresponding to the target instruction.
[0132] Optionally, the first conversion module 701 includes:
[0133] A splitting unit, used for splitting the moving trajectory into a plurality of moving trajectory segments according to the inflection points and intersection points in the moving trajectory of the first input;
[0134] A first selection unit is used to select a target symbol corresponding to the closed trajectory segment from the target symbol set when the moving trajectory segment is a closed trajectory segment, and the target symbols constitute a first target symbol combination;
[0135] A second selection unit is used to select a target symbol corresponding to the moving direction from the target symbol set according to the moving direction of the moving trajectory segment when the moving trajectory segment is a non-closed trajectory segment;
[0136] The arrangement unit is used to arrange and combine the target symbols according to the connection order of the multiple moving trajectory segments to obtain a first target symbol combination.
[0137] Optionally, the first conversion module 701 is used to:
[0138] In response to a first input within a preset time period.
[0139] Optionally, the target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction;
[0140] The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the fourth angle range, the arrow in the fifth direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range;
[0141] The third angle range, the fourth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
[0142] Optionally, the electronic device includes a rollable screen, and the control device further includes:
[0143] A first acquisition module is used to acquire a symbol combination set corresponding to the closed state when the curled screen is in the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction;
[0144] The second acquisition module is used to acquire a symbol combination set corresponding to the expanded state when the curled screen is in the expanded state, and the symbol combination included in the symbol combination set corresponding to the expanded state corresponds to the closing instruction.
[0145] Optionally, the control device further comprises:
[0146] An editing module, configured to enter an editing mode in response to a second input;
[0147] A second conversion module, configured to convert the third input into a second target symbol combination in response to a third input for the target instruction;
[0148] An establishing module is used to establish a corresponding relationship between the second target symbol combination and the target instruction.
[0149] Optionally, the control device further comprises:
[0150] The receiving module is used to receive a fourth input, and enter a gesture recognition mode in response to the fourth input.
[0151] Optionally, the control device further comprises:
[0152] The display module is used to display prompt information when the first target symbol combination does not exist in the symbol combination set, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
[0153] In an embodiment of the present application, in response to a first input, the first input is converted into a first target symbol combination, and the symbols included in the first target symbol combination are from a target symbol set; when the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes the symbols in the symbol combination, and the symbols are from the target symbol set; the operation corresponding to the target instruction is executed. That is, in an embodiment of the present application, the first input is converted into a first target symbol combination, and then when it is determined that the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and finally the operation corresponding to the target instruction is executed, that is, the electronic device is controlled by determining the instruction through a relatively simple symbol, thereby avoiding the problem of low control efficiency of the electronic device when the first input is relatively complex.
[0154] The control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0155] The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0156] The control device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0157] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 82 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0158] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0159] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0160] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0161] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0162] The processor 1010 is configured to, in response to a first input, convert the first input into a first target symbol combination, where the symbols included in the first target symbol combination are from a target symbol set;
[0163] When there is a first target symbol combination in the symbol combination set, taking the control instruction corresponding to the first target symbol combination as the target instruction, the symbol combination set includes the symbols in the symbol combination, and the symbols are from the target symbol set;
[0164] Execute the operation corresponding to the target instruction.
[0165] In an embodiment of the present application, in response to a first input, the first input is converted into a first target symbol combination, and the symbols included in the first target symbol combination are from a target symbol set; when the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes the symbols in the symbol combination, and the symbols are from the target symbol set; the operation corresponding to the target instruction is executed. That is, in an embodiment of the present application, the first input is converted into a first target symbol combination, and then when it is determined that the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and finally the operation corresponding to the target instruction is executed, that is, the electronic device is controlled by determining the instruction through a relatively simple symbol, thereby avoiding the problem of low control efficiency of the electronic device when the first input is relatively complex. Optionally, the processor 1010 is also used to:
[0166] According to the inflection points and intersection points in the first input movement trajectory, the movement trajectory is split into a plurality of movement trajectory segments;
[0167] When the moving trajectory segment is a closed trajectory segment, a target symbol corresponding to the closed trajectory segment is selected from the target symbol set, and the target symbols form a first target symbol combination;
[0168] When the moving trajectory segment is a non-closed trajectory segment, according to the moving direction of the moving trajectory segment, a target symbol corresponding to the moving direction is selected from the target symbol set;
[0169] According to the connection order of the multiple moving track segments, the target symbols are arranged and combined to obtain a first target symbol combination.
[0170] Optionally, the processor 1010 is further configured to:
[0171] In response to a first input within a preset time period.
[0172] Optionally, the target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction;
[0173] The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the fourth angle range, the arrow in the fifth direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the symbol of the angle between the moving trajectory segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range;
[0174] The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
[0175] Optionally, the electronic device includes a rollable screen, and the processor 1010 is further configured to:
[0176] When the curled screen is in a closed state, obtaining a symbol combination set corresponding to the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction;
[0177] When the rolled screen is in the expanded state, a symbol combination set corresponding to the expanded state is acquired, and the symbol combination included in the symbol combination set corresponding to the expanded state corresponds to the closing instruction.
[0178] Optionally, the processor 1010 is further configured to:
[0179] In response to a second input, entering an edit mode;
[0180] In response to a third input of the user for the target instruction, converting the third input into a second target symbol combination;
[0181] A correspondence between the second target symbol combination and the target instruction is established.
[0182] Optionally, the processor 1010 is further configured to:
[0183] A fourth input is received, and in response to the fourth input, a gesture recognition mode is entered.
[0184] Optionally, the processor 1010 is further configured to:
[0185] When the first target symbol combination does not exist in the symbol combination set, a prompt message is displayed, where the prompt message is used to indicate that there is no control instruction corresponding to the first target symbol combination.
[0186] In the embodiment of the present application, in response to the first input, the first input is converted into a first target symbol combination, and the symbols included in the first target symbol combination come from the target symbol set; when the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and the symbol combination set includes the symbols in the symbol combination, and the symbols come from the target symbol set; the operation corresponding to the target instruction is executed. That is, in the embodiment of the present application, the first input is converted into the first target symbol combination, and then when it is determined that the first target symbol combination exists in the symbol combination set, the control instruction corresponding to the first target symbol combination is used as the target instruction, and finally the operation corresponding to the target instruction is executed, that is, the electronic device is controlled by a relatively simple symbol determination instruction, thereby avoiding the problem of low control efficiency for the electronic device when the first input is relatively complex. It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0187] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0188] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0189] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0190] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0191] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0193] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0194] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0196] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A control method, characterized in that: Applied to electronic equipment, the control method includes: In response to a first input, converting the first input into a first target symbol combination, wherein the symbols included in the first target symbol combination are from a target symbol set; In the case where the first target symbol combination exists in a symbol combination set, taking a control instruction corresponding to the first target symbol combination as a target instruction, the symbol combination set including a symbol combination obtained by combining symbols from the target symbol set; Execute the operation corresponding to the target instruction; The converting the first input into a first target symbol combination includes: splitting the moving trajectory into multiple moving trajectory segments according to the inflection points and intersections in the moving trajectory of the first input; when the moving trajectory segment is a closed trajectory segment, selecting a target symbol corresponding to the closed trajectory segment from the target symbol set, and the target symbols constitute the first target symbol combination; when the moving trajectory segment is a non-closed trajectory segment, selecting a target symbol corresponding to the moving direction from the target symbol set according to the moving direction of the moving trajectory segment; and arranging and combining the target symbols according to the connection order of the multiple moving trajectory segments to obtain the first target symbol combination.
2. The control method according to claim 1, characterized in that: The step of responding to the first input comprises: In response to a first input within a preset time period.
3. The control method according to claim 1, characterized in that: The target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction; The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, and the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the third angle range. The arrow in the fifth direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the sixth angle range, the arrow in the seventh direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range; The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
4. The control method according to claim 1, characterized in that: The electronic device includes a rolling screen. When the first target symbol combination exists in the symbol combination set, before taking the control instruction corresponding to the first target symbol combination as the target instruction, the control method further includes: When the curling screen is in a closed state, acquiring a symbol combination set corresponding to the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction; When the curled screen is in an unfolded state, a symbol combination set corresponding to the unfolded state is acquired, and the symbol combination included in the symbol combination set corresponding to the unfolded state corresponds to the closing instruction.
5. The control method according to claim 1, characterized in that: The control method further comprises: In response to a second input, entering an edit mode; In response to a third input of the user for the target instruction, converting the third input into a second target symbol combination; A corresponding relationship between the second target symbol combination and the target instruction is established.
6. The control method according to claim 1, characterized in that: Before converting the first input into a first target symbol combination in response to the first input, the control method further includes: A fourth input is received, and in response to the fourth input, a gesture recognition mode is entered.
7. The control method according to claim 1, characterized in that: The control method further comprises: When the first target symbol combination does not exist in the symbol combination set, prompt information is displayed, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
8. A control device, characterized in that: Applied to electronic equipment, the control device comprises: A first conversion module, configured to convert a first input into a first target symbol combination in response to a first input, wherein the symbols included in the first target symbol combination are from a target symbol set; a determination module, configured to use, when the first target symbol combination exists in a symbol combination set, a control instruction corresponding to the first target symbol combination as a target instruction, wherein the symbol combination set includes a symbol combination obtained by combining symbols from the target symbol set; An execution module, used to execute the operation corresponding to the target instruction; The first conversion module includes: a splitting unit, configured to split the moving trajectory into a plurality of moving trajectory segments according to the inflection points and intersection points in the moving trajectory of the first input; A first selection unit is used to select a target symbol corresponding to the closed trajectory segment from the target symbol set when the moving trajectory segment is a closed trajectory segment, and the target symbols constitute the first target symbol combination; A second selection unit is used to select a target symbol corresponding to the moving direction from the target symbol set according to the moving direction of the moving trajectory segment when the moving trajectory segment is a non-closed trajectory segment; An arranging unit is used to arrange and combine the target symbols according to the connection order of the multiple moving trajectory segments to obtain the first target symbol combination.
9. The control device according to claim 8, characterized in that: The first conversion module is used for: In response to a first input within a preset time period.
10. The control device according to claim 8, characterized in that: The target symbol set includes: a circle, an arrow in a first direction, an arrow in a second direction, an arrow in a third direction, an arrow in a fourth direction, an arrow in a fifth direction, an arrow in a sixth direction, an arrow in a seventh direction, and an arrow in an eighth direction; The circle is the symbol corresponding to the moving trajectory segment being a closed trajectory; the arrow in the first direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the first angle range, the arrow in the second direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the second angle range, the arrow in the third direction is the symbol of the angle between the moving trajectory segment and the positive direction of the first coordinate axis in the counterclockwise direction in the third angle range, and the arrow in the fourth direction is the symbol of the angle between the moving trajectory segment and the negative direction of the first coordinate axis in the clockwise direction in the third angle range. The arrow in the fifth direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the fifth angle range, the arrow in the sixth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the sixth angle range, the sign in the seventh direction is the sign of the angle between the moving track segment and the positive direction of the second coordinate axis in the counterclockwise direction in the seventh angle range, and the arrow in the eighth direction is the sign of the angle between the moving track segment and the negative direction of the second coordinate axis in the clockwise direction in the eighth angle range; The first angle range, the second angle range, the third angle range, the fourth angle range, the fifth angle range, the sixth angle range, the seventh angle range and the eighth angle range form a circle of 360 degrees, and the first coordinate axis is perpendicular to the second coordinate axis.
11. The control device according to claim 8, characterized in that: The electronic device includes a roll-up screen, and the control device further includes: A first acquisition module is used to acquire, when the curling screen is in a closed state, a symbol combination set corresponding to the closed state, wherein the symbol combination included in the symbol combination set corresponding to the closed state corresponds to the expansion instruction; The second acquisition module is used to acquire a symbol combination set corresponding to the unfolded state when the curled screen is in the unfolded state, and the symbol combination included in the symbol combination set corresponding to the unfolded state corresponds to the closing instruction.
12. The control device according to claim 8, characterized in that: The control device also includes: An editing module, configured to enter an editing mode in response to a second input; A second conversion module, configured to convert the third input into a second target symbol combination in response to a third input for a target instruction; An establishing module is used to establish a corresponding relationship between the second target symbol combination and the target instruction.
13. The control device according to claim 8, characterized in that: The control device also includes: The receiving module is used to receive a fourth input, and enter a gesture recognition mode in response to the fourth input.
14. The control device according to claim 8, characterized in that: The control device also includes: The display module is used to display prompt information when the first target symbol combination does not exist in the symbol combination set, and the prompt information is used to indicate that there is no control instruction corresponding to the first target symbol combination.
15. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 8 are implemented.
16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 8 are implemented.