Control method and device for application software in mobile terminal, equipment and medium
By judging and adjusting the tilt state of the writing track within the handwriting box, the problem of incorrect recognition of user handwriting operations is solved, and accurate recognition and functional normalization of touch screen operations are achieved.
Patent Information
- Application Number
- CN202510843845.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-09-30
AI Technical Summary
In the prior art, the recognition result of the user's handwriting operation is prone to errors or cannot be recognized, resulting in abnormal touch screen operation.
By obtaining the writing track and the number of strokes in the handwriting box, it is determined whether the writing track is tilted. If it is tilted, it is rotated counterclockwise and adjusted before recognition to ensure accurate recognition.
The recognition accuracy of handwriting operations is improved, recognition failures are avoided, and the touch screen operation function is ensured to function normally.
Smart Images

Figure CN120726652A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, equipment, and medium for controlling application software in a mobile terminal. Background Art
[0002] With the advancement of intelligent vehicles, smart cockpits have become a key development direction in automotive technology. Currently, smart cockpit interaction methods mainly include touchscreen operation and voice control. Touchscreen operation refers to users selecting the desired application on the touchscreen, while voice control refers to opening the desired application by recognizing the user's voice.
[0003] In the prior art, a handwriting operation function is added to the touch screen operation, which starts the application software that the user wants to start by recognizing the handwritten content of the user, thereby improving the intelligence of the terminal control.
[0004] However, due to different writing habits of users, when recognizing user handwritten content, the recognition results are often wrong or cannot be recognized, resulting in abnormal handwriting operation functions. Summary of the Invention
[0005] In view of the above problems, the present application is proposed to provide a control method, device, equipment and medium for application software in a mobile terminal that solves the above problems. It can judge whether the writing track is tilted relative to the writing box based on the number of strokes of the writing track in the handwriting box and the writing direction of each stroke. If it is tilted, the writing track is rotated and adjusted before recognition, so that the recognition result is more accurate. At the same time, the recognition failure will not be caused by the tilt of the writing track, so that the handwriting operation function of the touch screen can function normally.
[0006] In a first aspect, the present application provides a method for controlling application software in a mobile terminal, the mobile terminal including a touch screen, the method comprising:
[0007] Acquire a writing track of a user in a handwriting box on the touch screen in an initial direction, and the number of strokes in the writing track; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen;
[0008] If the number of strokes is less than a preset threshold, determining the vertical and horizontal states of the writing trajectory relative to the writing frame in the initial direction, wherein the vertical and horizontal states include a vertical writing state and an oblique writing state;
[0009] If the forward oblique state is the oblique writing state, the writing track is rotated counterclockwise within the handwriting frame by a preset adjustment angle and then recognized to obtain a target character;
[0010] If the target character is a letter in a preset letter set, the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started;
[0011] Among them, the number of strokes of each letter in the letter set is less than the number threshold, and the correct writing direction of each letter is from left to right or from top to bottom, and different letters correspond to different application software.
[0012] Optionally, determining the positive tilt state of the writing trajectory relative to the writing frame in the initial direction includes:
[0013] Obtaining a coordinate set of each stroke; wherein the horizontal axis direction of the coordinate system of the stroke is the left-right direction, and the vertical axis direction is the up-down direction;
[0014] The positive tilt state of the writing track relative to the writing frame in the initial direction is determined according to the coordinate set.
[0015] Optionally, determining, based on the coordinate set, a positive tilt state of the writing trajectory relative to the writing frame in the initial direction includes:
[0016] Extracting the starting point coordinates and the ending point coordinates of each stroke in the coordinate set;
[0017] Normalizing the starting point coordinates and the end point coordinates;
[0018] If the difference between the starting point horizontal coordinate in the starting point coordinates and the ending point horizontal coordinate in the ending point coordinates after a stroke is processed is greater than a preset difference threshold, the positive oblique state of the writing trajectory relative to the writing box in the initial direction is determined to be the oblique writing state.
[0019] Optionally, after determining the positive tilt state of the writing trajectory relative to the writing frame in the initial direction, the method further includes:
[0020] If the forward tilt state is the tilted writing state, the direction of the handwriting frame is rotated clockwise to a preset target angle.
[0021] Optionally, obtaining a writing trajectory of a user in a handwriting box on the touch screen in an initial direction includes:
[0022] Acquire a writing speed of a user in a handwriting box on the touch screen in an initial direction;
[0023] If the writing speed is less than a preset speed threshold, collecting the writing track in the handwriting frame at a first sampling rate to obtain a first writing track;
[0024] If the writing speed is greater than or equal to the speed threshold, sampling the writing track in the handwriting frame at a second sampling rate to obtain a second writing track;
[0025] The first sampling rate is greater than the second sampling rate.
[0026] Optionally, the background of the handwriting box is a grid background.
[0027] Optionally, the similarity between any two letters in the letter set is less than a similarity threshold.
[0028] In a second aspect, the present application provides a device for controlling application software in a mobile terminal, the mobile terminal including a touch screen, the device comprising:
[0029] an acquisition module, configured to acquire a writing track of a user in a handwriting box on the touch screen in an initial direction, and the number of strokes in the writing track; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen;
[0030] a first determining module configured to determine, if the number of strokes is less than a preset threshold, a positive or negative state of the writing trajectory relative to the writing frame in the initial direction, wherein the positive or negative state includes a positive writing state and a negative writing state;
[0031] a recognition module configured to, if the forward oblique state is the oblique writing state, rotate the writing track counterclockwise by a preset adjustment angle within the handwriting frame and then perform recognition to obtain a target character;
[0032] a second determining module configured to, if the target character is a letter in a preset letter set, determine the letter corresponding to the target character as the target letter, and start the application software corresponding to the target letter;
[0033] Among them, the number of strokes of each letter in the letter set is less than the number threshold, and the correct writing direction of each letter is from left to right or from top to bottom, and different letters correspond to different application software.
[0034] In a third aspect, the present application provides an electronic device comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the method described in the first aspect by executing the computer instructions.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0036] The technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0037] The embodiments of the present application provide a method, apparatus, device and medium for controlling application software in a mobile terminal, which can obtain the writing trajectory of a user in a handwriting box on a touch screen in an initial direction, as well as the number of strokes in the writing trajectory; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen, that is, the handwriting box is upright relative to the touch screen; if the number of strokes is less than a preset number threshold, the upright and oblique states of the writing trajectory relative to the writing box in the initial direction are determined, and the upright and oblique states include upright writing states and oblique writing states, that is, it is determined whether the writing trajectory of a letter in a letter set is inclined; if the upright and oblique states are oblique writing states, the writing trajectory is rotated counterclockwise by a preset adjustment angle in the handwriting box and then recognized to obtain a target character. If it is inclined, it is adjusted and then recognized; if the target character is a letter in the preset letter set, the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started, that is, the corresponding application software is opened according to the user's intention. The number of strokes for each letter in the letter set is less than a threshold, and the correct writing direction for each letter is from left to right or from top to bottom. Different letters correspond to different application software. This method can determine whether the writing track within the handwriting box is tilted relative to the writing box based on the number of strokes and the writing direction of each stroke. If tilted, the writing track is rotated and adjusted before recognition, making the recognition result more accurate. At the same time, recognition failures caused by tilted writing tracks are avoided, allowing the handwriting operation function of the touch screen to function normally.
[0038] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0040] Figure 1 This is a flow chart of a method for controlling application software in a mobile terminal provided by an embodiment of the present application;
[0041] Figure 2This is a structural block diagram of a control device for application software in a mobile terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings. It should be understood that the embodiments of the present disclosure and the specific features in the embodiments are detailed descriptions of the technical solutions of the present application, rather than limitations on the technical solutions of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0043] Figure 1 This is a flow chart of a method for controlling application software in a mobile terminal provided by an embodiment of the present application, wherein the mobile terminal includes a touch screen, such as Figure 1 As shown, the method includes:
[0044] Step S110: Acquire the writing track of the user in the handwriting box on the touch screen in the initial direction, and the number of strokes in the writing track.
[0045] In an embodiment of the present application, when a user wants to launch an application software displayed on a vehicle touch screen, they generally need to click on the application software icon. However, clicking on the icon is very inconvenient for the user while driving, and it affects normal driving and poses a safety hazard. Therefore, a handwriting box is added to the desktop plug-in of the touch screen. The user writes some simple letters in the handwriting box, and the corresponding application software is opened according to the written letters. The letters corresponding to each application software are stored in a letter set. To facilitate recognition, the number of strokes of each letter in the letter set is less than a number threshold, and the correct writing direction of each letter is from left to right or from top to bottom. Different letters correspond to different application software.
[0046] The position and size of the handwriting box in the desktop plug-in can be set according to actual conditions, as long as it does not affect the display of other functions and is convenient for users to perform handwriting operations. For example, the position of the handwriting box is fixed at the upper left corner of the desktop, which is in line with the user's muscle memory and spatial habits, and combined with visual distinction, allows users to locate the approximate area without thinking. When the handwriting box is touched, the background color of the writing area will change, the border will become thicker, and it will have a floating effect, so that the user's peripheral vision can also recognize whether the handwriting position is correct.
[0047] For example, writing L activates music software, and writing U activates navigation software. The handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen.
[0048] However, how to identify whether the user's writing is a letter and accurately identify what letter it is can be identified through the steps in the embodiments of the present application.
[0049] Specifically, the writing track of the user in the handwriting box on the touch screen in the initial direction and the number of touches on the touch screen when the user writes are obtained, and the number of strokes of the writing track can be determined according to the number of touches.
[0050] Step S120: If the number of strokes is less than a preset threshold, determine the positive tilt state of the writing trajectory relative to the writing frame in the initial direction.
[0051] In an embodiment of the present application, if the number of strokes is less than a preset threshold, it indicates that the user is writing a relatively simple character, possibly a letter from an alphabetical set. To further determine whether the character is a letter from an alphabetical set, the tilt of the writing trajectory relative to the writing box in the initial direction is determined, i.e., whether the writing trajectory is tilted relative to the initial direction is determined. Since the touch screen is on the right side of the user when the user is sitting in the driver's seat, it is easy for the user to write characters crookedly or even sideways. Directly recognizing such a crooked writing trajectory is prone to errors or even failure to recognize the character. Therefore, it is necessary to first determine whether the writing trajectory is tilted. If it is tilted, it should be corrected before recognition to improve recognition accuracy.
[0052] The "normal and oblique" states include the normal writing state and the oblique writing state. The writing track in the normal writing state is normal relative to the initial direction, while the writing track in the oblique writing state is oblique relative to the initial direction. This can be understood as follows: the center line of the writing track in the normal writing state is parallel to, or has a very small angle with, the left and right borders of the handwriting frame in the initial direction, while the center line of the writing track in the oblique writing state has a large angle with, or is even perpendicular to, the left and right borders of the handwriting frame in the initial direction.
[0053] In this embodiment of the present application, if the number of strokes is greater than or equal to a threshold, the process is exited. This is because the writing track has too many strokes, the character written by the user is not in the alphabet set, or the user has made a mistake. In this case, the process is directly exited and a reminder message can be popped up to remind the user to rewrite. If the user realizes that the writing is wrong or changes their mind, they can temporarily cancel the writing by sliding the handwriting box upward.
[0054] Step S130: If the oblique state is an oblique writing state, the writing track is rotated counterclockwise within the handwriting frame by a preset adjustment angle and then recognized to obtain a target character.
[0055] In an embodiment of the present application, if the upright oblique state is an oblique writing state and the writing track is inclined relative to the initial direction, the writing track is first rotated counterclockwise by a preset adjustment angle in the handwriting box to adjust the writing track to be upright relative to the initial direction, and then the rotated writing track is identified to obtain the target character, that is, the character the user wants to write.
[0056] The feature information of the rotated writing trajectory may be extracted, and the feature information may include a writing direction histogram and curvature. The target character may be determined based on the feature information.
[0057] Step S140: If the target character is a letter in a preset letter set, the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started.
[0058] In an embodiment of the present application, if the target character is a letter in a preset letter set, it means that the user is writing a letter, and it is a letter in the letter set. Then the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started.
[0059] The method in the embodiment of the present application can determine whether the writing track is tilted relative to the writing box based on the number of strokes in the writing track and the writing direction of each stroke in the handwriting box. If it is tilted, the writing track is rotated and adjusted before recognition, so that the recognition result is more accurate. At the same time, the recognition failure will not be caused by the tilt of the writing track, so that the handwriting operation function of the touch screen can function normally.
[0060] Optionally, the similarity between any two letters in the letter set is less than a similarity threshold.
[0061] In the embodiment of the present application, in order to avoid misidentifying one letter in the letter set as another letter, the letters in the letter set should be relatively different and have relatively low similarity.
[0062] Optionally, step S120 includes:
[0063] The first step is to obtain the coordinate set of each stroke; the horizontal axis direction of the stroke coordinate system is the left-right direction, and the vertical axis direction is the up-down direction.
[0064] In the embodiment of the present application, a coordinate system can be established within the handwriting frame. The horizontal axis of the coordinate system is in the left-right direction, i.e., parallel to the upper and lower borders of the touch screen, and the vertical axis of the coordinate system is in the up-down direction, i.e., parallel to the left and right borders of the touch screen. Then, the coordinate set of each stroke in the coordinate system is obtained. Because each stroke is composed of multiple points, the coordinates of all points constitute the coordinate set.
[0065] The second step is to determine the positive and negative tilt states of the writing trajectory relative to the writing frame in the initial direction based on the coordinate set.
[0066] In an embodiment of the present application, the actual position of each point on each stroke can be known based on the coordinate set, and based on each actual position, it can be determined whether the writing track is tilted.
[0067] Optionally, the second step includes:
[0068] Extract the starting coordinates and ending coordinates of each stroke in the coordinate set; normalize the starting coordinates and ending coordinates; if the difference between the starting horizontal coordinate in the starting coordinates after the stroke processing and the ending horizontal coordinate in the ending coordinates is greater than a preset difference threshold, then determine that the writing trajectory is in an oblique writing state relative to the writing box in the initial direction.
[0069] In an embodiment of the present application, the positive tilt state of the writing trajectory relative to the initial direction can be determined based on the starting point coordinates and the ending point coordinates of each stroke. Specifically, the user's writing trajectory may be too large or too small. In order to ensure the accuracy of recognition, the writing trajectories are uniformly standardized so that writing trajectories of different sizes are in the same standard size. For example, the starting point coordinates and the ending point coordinates are normalized so that all coordinates are in the range of [0-1]. Under the unified standard size, the difference between the starting point horizontal coordinate in the starting point coordinates and the ending point horizontal coordinate in the ending point coordinates is calculated, that is, the horizontal offset degree of the starting point of the stroke relative to the ending point is calculated. If the difference is greater than the preset difference threshold, it means that the offset is large.
[0070] This can be understood as follows: when writing upright, the letters in the alphabet are written from left to right, or from top to bottom. Therefore, the horizontal coordinate of the stroke's starting point should be smaller than, or equal to, or only slightly larger than the horizontal coordinate of the stroke's ending point. However, when writing diagonally, the horizontal coordinate of the starting point will be much larger than the horizontal coordinate of the ending point. Therefore, if the difference is large, it is determined that the writing trajectory is in an oblique state relative to the writing frame in the initial direction.
[0071] Optionally, after step S120, the method further includes:
[0072] If the oblique state is an oblique writing state, the direction of the handwriting frame is rotated clockwise to a preset target angle.
[0073] In the embodiment of the present application, if the upright tilt state is the tilted writing state, it means that the user's writing habit is to write at an angle, which may be caused by the touch screen being on the right side. In this case, the direction of the handwriting box is rotated clockwise to a preset target angle so that the handwriting box is tilted relative to the touch screen. When the user writes in the tilted handwriting box, the tilted writing trajectory is upright relative to the tilted handwriting box.
[0074] Next, when the direction of the handwriting box is rotated by the target angle, when the user writes in the handwriting box again, it can be directly recognized whether the written character is a letter in the letter set, without the need to rotate and adjust the writing trajectory before recognition.
[0075] The target angle may be an angle between 45° and 90°.
[0076] In the embodiment of the present application, the direction of the handwriting box can also be manually set. The user can adjust the direction of the handwriting box according to his or her own writing habits to make writing more convenient.
[0077] Optionally, step S110 includes:
[0078] The writing speed of the user in the handwriting box on the touch screen in the initial direction is obtained; if the writing speed is less than a preset speed threshold, the writing trajectory in the handwriting box is collected at a first sampling rate to obtain a first writing trajectory; if the writing speed is greater than or equal to the speed threshold, the writing trajectory in the handwriting box is collected at a second sampling rate to obtain a second writing trajectory.
[0079] The first sampling rate is greater than the second sampling rate. The higher the sampling rate, the more sampling points there are and the slower the sampling speed.
[0080] In an embodiment of the present application, if a user is in a hurry and wants to quickly open an application, their writing speed may be relatively fast. Therefore, when writing quickly, the writing track within the handwriting box can be collected at a lower second sampling rate. This can more quickly obtain the second writing track, thereby improving the recognition speed of the entire process and, in turn, increasing the speed of opening the application, thus meeting the user's needs. Conversely, when writing slowly, indicating that the user is not in a hurry, the writing track within the handwriting box can be collected at a higher first sampling rate. However, since a high sampling rate means more sampling points, the speed of collecting the handwriting track will be slower, and the speed of obtaining the first writing track will be slower, which will lead to a slower recognition speed for the entire process and, in turn, a slower speed of opening the application.
[0081] Optionally, the background of the handwriting box is a grid background.
[0082] In the embodiment of the present application, setting the background of the handwriting box to a grid background can provide the user with an area reference when writing, making the writing trajectory more standard and improving the recognition accuracy of the trajectory.
[0083] Based on the same application concept, an embodiment of the present invention further provides a control device for application software in a mobile terminal. Figure 2 This is a structural block diagram of a control device for application software in a mobile terminal provided by an embodiment of the present application. Figure 2 As shown, the device 200 includes
[0084] The acquisition module 201 is used to acquire the writing track of the user in the handwriting box on the touch screen in the initial direction, as well as the number of strokes in the writing track; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen;
[0085] A first determining module 202 is configured to determine, if the number of strokes is less than a preset threshold, the vertical and horizontal states of the writing trajectory relative to the writing frame in the initial direction, the vertical and horizontal states including the vertical and horizontal states;
[0086] The recognition module 203 is configured to rotate the writing track counterclockwise by a preset adjustment angle within the handwriting frame and then perform recognition to obtain a target character if the oblique state is the oblique writing state;
[0087] The second determining module 204 is configured to determine the letter corresponding to the target character as the target letter if the target character is a letter in the preset letter set, and start the application software corresponding to the target letter;
[0088] Among them, the number of strokes of each letter in the letter set is less than the number threshold, and the correct writing direction of each letter is from left to right or from top to bottom, and different letters correspond to different application software.
[0089] Optionally, the first determining module 202 includes:
[0090] An acquisition unit is used to acquire a coordinate set of each stroke; the horizontal axis direction of the coordinate system of the stroke is the left-right direction, and the vertical axis direction is the up-down direction;
[0091] The determining unit is used to determine the positive and negative tilt states of the writing track relative to the writing frame in the initial direction according to the coordinate set.
[0092] Optionally, the determining unit is further configured to:
[0093] Extract the starting and ending coordinates of each stroke in the coordinate set;
[0094] Normalize the starting point coordinates and the end point coordinates;
[0095] If the difference between the starting point horizontal coordinate in the starting point coordinates and the ending point horizontal coordinate in the ending point coordinates after stroke processing is greater than a preset difference threshold, the positive slant state of the writing track relative to the writing box in the initial direction is determined to be an oblique writing state.
[0096] Optionally, the device 200 further includes a rotation module, configured to:
[0097] If the oblique state is an oblique writing state, the direction of the handwriting frame is rotated clockwise to a preset target angle.
[0098] Optionally, the acquisition module 201 is further configured to:
[0099] Get the writing speed of the user in the handwriting box on the touch screen in the initial direction;
[0100] If the writing speed is less than a preset speed threshold, the writing trajectory in the handwriting frame is collected at a first sampling rate to obtain a first writing trajectory;
[0101] If the writing speed is greater than or equal to the speed threshold, the writing trajectory in the handwriting frame is collected at a second sampling rate to obtain a second writing trajectory;
[0102] The first sampling rate is greater than the second sampling rate.
[0103] Optionally, the background of the handwriting box is a grid background.
[0104] Optionally, the similarity between any two letters in the letter set is less than a similarity threshold.
[0105] It can be understood that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0106] An embodiment of the present invention further provides an electronic device, which may include a processor and a memory, wherein the processor and the memory may be communicatively connected to each other via a bus or other means.
[0107] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application, or may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
[0108] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to the electronic device. In certain embodiments, the memory may be a non-volatile solid-state memory.
[0109] In one embodiment, the memory may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmable ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0110] The processor implements any one of the control methods for application software in the mobile terminal in the above embodiments by reading and executing computer program instructions stored in the memory.
[0111] In one example, the electronic device may further include a communication interface and a bus. The processor, memory, and communication interface are connected via the bus and communicate with each other. The communication interface is primarily used to enable communication between the various modules, devices, units, and / or devices in the embodiments of this application. Where appropriate, the bus may include one or more buses.
[0112] In addition, in conjunction with the method for controlling application software in a mobile terminal in the above-mentioned embodiments, embodiments of the present invention may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the methods for controlling application software in a mobile terminal in the above-mentioned embodiments is implemented.
[0113] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). The storage medium can also include a combination of the above-mentioned types of memory.
[0114] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0115] The embodiments of the present application provide a method, apparatus, device and medium for controlling application software in a mobile terminal, which can obtain the writing trajectory of a user in a handwriting box on a touch screen in an initial direction, as well as the number of strokes in the writing trajectory; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen, that is, the handwriting box is upright relative to the touch screen; if the number of strokes is less than a preset number threshold, the upright and oblique states of the writing trajectory relative to the writing box in the initial direction are determined, and the upright and oblique states include upright writing states and oblique writing states, that is, it is determined whether the writing trajectory of a letter in a letter set is inclined; if the upright and oblique states are oblique writing states, the writing trajectory is rotated counterclockwise by a preset adjustment angle in the handwriting box and then recognized to obtain a target character. If it is inclined, it is adjusted and then recognized; if the target character is a letter in the preset letter set, the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started, that is, the corresponding application software is opened according to the user's intention. The number of strokes for each letter in the letter set is less than a threshold, and the correct writing direction for each letter is from left to right or from top to bottom. Different letters correspond to different application software. This method can determine whether the writing track within the handwriting box is tilted relative to the writing box based on the number of strokes and the writing direction of each stroke. If tilted, the writing track is rotated and adjusted before recognition, making the recognition result more accurate. At the same time, recognition failures caused by tilted writing tracks are avoided, allowing the handwriting operation function of the touch screen to function normally.
[0116] In the description provided herein, numerous specific details are described. However, it is understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0117] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Accordingly, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of the invention.
[0118] It should be noted that the above embodiments illustrate rather than limit the invention, and that a person skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
Claims
1. A method for controlling application software in a mobile terminal, characterized in that: The mobile terminal includes a touch screen, and the method includes: Acquire a writing track of a user in a handwriting box on the touch screen in an initial direction, and the number of strokes in the writing track; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen; If the number of strokes is less than a preset threshold, determining the vertical and horizontal states of the writing trajectory relative to the writing frame in the initial direction, wherein the vertical and horizontal states include a vertical writing state and an oblique writing state; If the forward oblique state is the oblique writing state, the writing track is rotated counterclockwise within the handwriting frame by a preset adjustment angle and then recognized to obtain a target character; If the target character is a letter in a preset letter set, the letter corresponding to the target character is determined as the target letter, and the application software corresponding to the target letter is started; Among them, the number of strokes of each letter in the letter set is less than the number threshold, and the correct writing direction of each letter is from left to right or from top to bottom, and different letters correspond to different application software.
2. The method for controlling application software in a mobile terminal according to claim 1, wherein: Determining the positive tilt state of the writing trajectory relative to the writing frame in the initial direction includes: Obtaining a coordinate set of each stroke; wherein the horizontal axis direction of the coordinate system of the stroke is the left-right direction, and the vertical axis direction is the up-down direction; The positive tilt state of the writing track relative to the writing frame in the initial direction is determined according to the coordinate set.
3. The method for controlling application software in a mobile terminal according to claim 2, wherein: Determining, based on the coordinate set, a positive tilt state of the writing trajectory relative to the writing frame in the initial direction includes: Extracting the starting point coordinates and the ending point coordinates of each stroke in the coordinate set; Normalizing the starting point coordinates and the end point coordinates; If the difference between the starting point horizontal coordinate in the starting point coordinates and the ending point horizontal coordinate in the ending point coordinates after a stroke is processed is greater than a preset difference threshold, the positive oblique state of the writing trajectory relative to the writing box in the initial direction is determined to be the oblique writing state.
4. The method for controlling application software in a mobile terminal according to claim 1, wherein: After determining the positive tilt state of the writing trajectory relative to the writing frame in the initial direction, the method further includes: If the forward tilt state is the tilted writing state, the direction of the handwriting frame is rotated clockwise to a preset target angle.
5. The method for controlling application software in a mobile terminal according to claim 1, wherein: The obtaining of a writing track of a user in the handwriting box on the touch screen in an initial direction includes: Acquire a writing speed of a user in a handwriting box on the touch screen in an initial direction; If the writing speed is less than a preset speed threshold, collecting the writing track in the handwriting frame at a first sampling rate to obtain a first writing track; If the writing speed is greater than or equal to the speed threshold, sampling the writing track in the handwriting frame at a second sampling rate to obtain a second writing track; The first sampling rate is greater than the second sampling rate.
6. The method for controlling application software in a mobile terminal according to claim 1, wherein: The background of the handwriting frame is a grid background.
7. The method for controlling application software in a mobile terminal according to claim 1, wherein: The similarity between any two letters in the letter set is less than a similarity threshold.
8. A device for controlling application software in a mobile terminal, characterized in that: The mobile terminal includes a touch screen, and the device includes: an acquisition module, configured to acquire a writing track of a user in a handwriting box on the touch screen in an initial direction, and the number of strokes in the writing track; the handwriting box is a rectangular box, and in the initial direction, the frame of the rectangular box is parallel or perpendicular to the frame of the touch screen; a first determining module configured to determine, if the number of strokes is less than a preset threshold, a positive or negative state of the writing trajectory relative to the writing frame in the initial direction, wherein the positive or negative state includes a positive writing state and a negative writing state; a recognition module configured to, if the forward oblique state is the oblique writing state, rotate the writing track counterclockwise by a preset adjustment angle within the handwriting frame and then perform recognition to obtain a target character; a second determining module configured to, if the target character is a letter in a preset letter set, determine the letter corresponding to the target character as the target letter, and start the application software corresponding to the target letter; Among them, the number of strokes of each letter in the letter set is less than the number threshold, and the correct writing direction of each letter is from left to right or from top to bottom, and different letters correspond to different application software.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 7.