CN108153470B - Method and device for determining circled area, electronic equipment and storage medium - Google Patents
Method and device for determining circled area, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108153470B CN108153470B CN201711418556.2A CN201711418556A CN108153470B CN 108153470 B CN108153470 B CN 108153470B CN 201711418556 A CN201711418556 A CN 201711418556A CN 108153470 B CN108153470 B CN 108153470B
- Authority
- CN
- China
- Prior art keywords
- click
- area
- determining
- instruction
- boundary
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 230000004913 activation Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 5
- 238000003825 pressing Methods 0.000 description 5
- 238000005520 cutting process Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a method and a device for determining a circled area, electronic equipment and a storage medium. The method comprises the following steps: after receiving a region selection instruction, detecting click operation in a screen region; acquiring a click position corresponding to each click operation and counting the total number of the acquired click positions; and if the total number exceeds the preset number when a circled area determination instruction is received, determining the circled area according to the click position. According to the method provided by the embodiment of the invention, the circled area is determined according to the click position, so that a user does not need to continuously press the screen in the area circled process, the shape of the circled area is not restricted by a fixed shape, and the efficiency and the accuracy of the circled operation are improved.
Description
Technical Field
The embodiment of the invention relates to an electronic device application technology, in particular to a method and a device for determining a selection area, an electronic device and a storage medium.
Background
With the continuous development of scientific technology, the application functions of electronic equipment are more and more abundant. When a user views a document by using electronic equipment, the user often needs to select local characters so as to cut or copy the selected characters.
At present, for electronic equipment with a touch function, a user generally performs long-time pressing operation in a character area needing to be selected to enable the selected area to appear, and a boundary cursor of the selected area is moved to adjust the selected area so as to select different characters. However, the shape of the selected area in the method is fixed, the characters required to be selected by the user cannot be accurately selected, and the user needs to continuously press the screen until the final selected position is reached in the process of moving the boundary cursor, so that the operation of the user is inconvenient; or, the characters in the closed area determined by the sliding track are determined as the selected characters by detecting the sliding track of the user on the screen, but this method also requires the user to continuously press the screen until the sliding track forms the closed area, which causes inconvenience for the user to operate.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining a circled area, electronic equipment and a storage medium, so as to realize fast and accurate region circled and improve the efficiency and accuracy of the circled operation.
In a first aspect, an embodiment of the present invention provides a method for determining a circled area, where the method includes:
after receiving a region selection instruction, detecting click operation in a screen region;
acquiring a click position corresponding to each click operation and counting the total number of the acquired click positions;
and if the total number exceeds the preset number when a circled area determination instruction is received, determining the circled area according to the click position.
In a second aspect, an embodiment of the present invention further provides a device for determining a circled area, where the device includes:
the click operation detection module is used for detecting click operation in a screen area after receiving the area selection instruction;
the click position acquisition module is used for acquiring click positions corresponding to each click operation and counting the total number of the acquired click positions;
and the selection area determining module is used for determining the selection area according to the click position if the total number exceeds the preset number when receiving the selection area determining instruction.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the circled area provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining the circled area provided in any embodiment of the present invention.
In the embodiment, the click operation of the screen area is detected after the area selection instruction is received; acquiring a click position corresponding to each click operation and counting the total number of the acquired click positions; if the total number exceeds the preset number when a circle selection area determining instruction is received, determining a circle selection area according to the click position, solving the problems that the circle selection of the area required by the user cannot be accurately performed due to the fixed shape of the circle selection area and the operation is inconvenient due to the fact that the screen needs to be continuously pressed in the process of performing area circle selection by the user, realizing the determination of the circle selection area according to the click position, further avoiding the need of continuously pressing the screen by the user in the process of performing area circle selection, enabling the shape of the circle selection area not to be restricted by the fixed shape, and improving the efficiency and the accuracy of the circle selection operation.
Drawings
Fig. 1 is a flowchart of a method for determining a circled area according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating a click operation according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a circled area in accordance with one embodiment of the present invention;
fig. 4 is a flowchart of a method for determining a circled area in the second embodiment of the present invention;
FIG. 5 is a diagram illustrating a second embodiment of the present invention, in which three clicks are detected in a screen area;
FIG. 6 is a diagram illustrating a second embodiment of the present invention, in which four clicking operations are detected in a screen area;
FIG. 7 is a diagram illustrating a drag operation performed on a click position according to a second embodiment of the present invention;
FIG. 8 is a diagram illustrating a drag operation performed on a boundary according to a second embodiment of the present invention;
FIG. 9 is a diagram illustrating a drag operation performed on a boundary according to a second embodiment of the present invention;
fig. 10 is a block diagram of a device for determining a circled area according to a third embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for determining a circled area according to an embodiment of the present invention, where the embodiment is applicable to a situation that area circled needs to be performed, and the method may be executed by a device for determining a circled area, where the device may be composed of software and/or hardware, and the device is generally integrated in a terminal. Referring to fig. 1, the method provided in this embodiment specifically includes the following steps:
and 110, detecting the click operation of the screen area after receiving the area selection instruction.
For example, an area selection option may be set in the display interface, and when the user needs to perform area selection, the area selection option may be clicked, and after the user clicks the area selection option, it is determined that the area selection instruction is received. The area selection instruction may also be that a preset touch trajectory is detected at a preset position of the screen area, and it is confirmed that the area selection instruction is received.
And after receiving the area selection instruction, detecting the click operation in the screen area.
And 120, acquiring the click position corresponding to each click operation and counting the total number of the acquired click positions.
Preferably, if it is detected that a click operation occurs in the screen area, a click position corresponding to each click operation is acquired and the total number of the acquired click positions is counted.
Optionally, the obtaining of the click position corresponding to each click operation includes: and acquiring and displaying a click position corresponding to each click operation, and acquiring and displaying a boundary formed by click positions corresponding to two adjacent click operations so as to enable a user to determine whether the click position is accurate in real time.
Optionally, if it is determined that the position to be clicked is not accurately clicked through the click position or the boundary displayed on the screen after the user performs the click operation, the latest click operation may be cancelled by clicking the cancel option.
Preferably, if the area selection command is received again, the click operation occurring in the screen area is detected again.
Fig. 2 is a schematic diagram of a click operation provided in this embodiment. As shown in fig. 2, if two parts of characters in a rectangular area and an elliptical area are displayed in the display interface, when a user needs to circle the elliptical area, the user can perform a click operation around the boundary of the elliptical area after clicking the area to circle the selection, and if the click positions corresponding to each click operation are position a, position B, position C, position D, position E, position F, position G and position H in sequence according to the click sequence, each click position and a straight line boundary formed by the click positions corresponding to two adjacent click operations are displayed.
And step 130, if the total number exceeds the preset number when the circled area determination instruction is received, determining the circled area according to the click position.
Preferably, the user can determine that the click operation is completed by clicking the circled area determination option, and then after the user clicks the circled area determination option, the user confirms that the circled area determination instruction is received.
And after receiving a circle selection area determining instruction, determining whether the total number of the click positions exceeds a preset number, if so, determining a circle selection area according to the click positions, and stopping detecting click operation occurring in the screen area.
Illustratively, determining the circled area according to the click position includes: and acquiring and displaying a boundary formed by the latest click operation and the click position corresponding to the initial click operation, and determining a closed area formed by the boundary and the boundary formed by the click positions corresponding to the two adjacent click operations as a circle selection area.
Illustratively, if it is determined that the number of the click positions does not exceed the preset number, the pop-up dialog box prompts the user that the number of the click positions is insufficient and the circle selection needs to be continued, or the pop-up dialog box inquires whether the user continues the circle selection, if the user confirms that the circle selection continues, the click operation occurring in the screen area continues to be detected, if the user confirms that the circle selection does not continue, the click operation occurring in the screen area stops being detected, the acquired click positions and boundaries are deleted, and the total number of the click positions is initialized to 0.
Illustratively, the preset number may be 3, 4, or 5.
Fig. 3 is a schematic diagram of a circled area provided in this embodiment. As shown in fig. 3, if the preset number is 3, then, on the basis of the click operations shown in fig. 2, if a circle selection area determination instruction is received, a boundary formed by a click position H corresponding to the latest click operation and a click position a corresponding to the initial click operation is acquired and displayed, and a closed area formed by the boundaries is determined as the circle selection area.
Preferably, the user may determine to cancel all the click operations by clicking the circled area negative option, and after the user clicks the circled area negative option, it is determined that a circled area negative instruction is received.
And after receiving a negative instruction of the selection area, stopping detecting the click operation in the screen area, deleting the acquired click positions and boundaries, and initializing the total number of the click positions to be 0.
Preferably, after the circled area is determined according to the click position, if the user clicks the area reverse-selection option, the area reverse-selection instruction is received, and after the area reverse-selection instruction is received, the circled area is updated to an area outside the closed area formed by the boundaries in the display interface.
Therefore, when the user needs to perform the circle selection operation, the user can select the area to be selected by clicking in the screen area without continuously pressing the screen area in the circle selection process, the circle selection operation is simplified, particularly for the terminal with larger screen size, such as an interactive intelligent terminal in a teaching or conference scene, when the area to be selected is large, if the area is selected by sliding operation, the user is very inconvenient to move when the area is selected by sliding operation, in addition, the embodiment determines the circled area according to the click position, so that the shape of the circled area is related to the click position, and the method is not restricted by the fixed shape, so that the user can select the area to be selected at will, and the accuracy of selection operation is greatly improved.
Preferably, after the circled area is determined according to the click position, the characters in the circled area can be highlighted for the user to confirm the characters covered in the circled area.
Preferably, after the selection area is determined according to the click position, the user can modify the selection area by clicking the selection area modification option, and then after the user clicks the selection area modification option, the user confirms that the selection area modification instruction is received, and after the selection area modification instruction is received, on the basis of the detected click operation, the click operation occurring in the screen area is continuously detected to modify the selection area.
Preferably, after the circled area is determined according to the click position, an editing instruction can be received, and the characters in the circled area are edited according to the editing instruction. Wherein, the editing instructions may include dragging, font color changing, font size changing, copying and cutting, and the like. If the initial dragging position of the dragging operation is detected to be located in the circle selection area, receiving a dragging instruction, and dragging the circle selection area and the characters in the circle selection area according to the dragging track of the dragging operation; if the user selects a certain color in the font color list, receiving a font color changing instruction, and changing the font color of the characters in the circled area into the color selected by the user; if the initial dragging position of the dragging operation is detected to be located at the boundary of the circle selection area, a font size changing instruction is received, and the circle selection area and characters in the circle selection area are zoomed according to the dragging track of the dragging operation; and if the user selects a copy or cut option in the editing menu, receiving a copy or cut instruction, and copying or cutting the characters in the circled area.
In the embodiment, the click operation of the screen area is detected after the area selection instruction is received; acquiring a click position corresponding to each click operation and counting the total number of the acquired click positions; if the total number exceeds the preset number when a circle selection area determining instruction is received, determining a circle selection area according to the click position, solving the problems that the circle selection of the area required by the user cannot be accurately performed due to the fixed shape of the circle selection area and the operation is inconvenient due to the fact that the screen needs to be continuously pressed in the process of performing area circle selection by the user, realizing the determination of the circle selection area according to the click position, further avoiding the need of continuously pressing the screen by the user in the process of performing area circle selection, enabling the shape of the circle selection area not to be restricted by the fixed shape, and improving the efficiency and the accuracy of the circle selection operation.
Example two
Fig. 4 is a flowchart of a method for determining a circled area according to a second embodiment of the present invention, which is further optimized based on the second embodiment. In this embodiment, the click position corresponding to each click operation is obtained and the total number of the obtained click positions is counted, and the optimization is as follows: acquiring and displaying a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations; if the total number of the click positions exceeds 2, displaying a boundary formed by the latest click operation and the click position corresponding to the initial click operation; if the total number exceeds the preset number when a circle selection area determining instruction is received, determining a circle selection area according to the click position, and optimizing to be: if the total number exceeds the preset number when receiving a circled area determination instruction, determining a circled area according to a closed area formed by the boundary; optimizing the method to further comprise: if the dragging operation is detected at the clicking position or the boundary, moving the corresponding clicking position or adjusting the radian of the boundary according to the dragging operation; if the total number exceeds the preset number when receiving the circle selection area determination instruction, determining the circle selection area according to the click position, and then optimizing to further include: displaying the display element types in the circle selection area in the list, and highlighting the target element types corresponding to the selection instructions received by the list in the circle selection area; after the display element types in the circled area are displayed in the list and the target element types corresponding to the selection instructions received by the list are highlighted in the circled area, optimizing the display element types to further include: if an editing activation instruction is received, displaying an editing instruction menu corresponding to the type of the target element; and editing the target element type according to the editing instruction confirmed in the editing instruction menu.
Referring to fig. 4, the method provided in this embodiment specifically includes the following steps:
and step 210, detecting the click operation of the screen area after receiving the area selection instruction.
And step 220, acquiring and displaying a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations.
And step 230, if the total number of the click positions exceeds 2, displaying a boundary formed by the latest click operation and the click position corresponding to the initial click operation.
Preferably, if it is detected that a click operation occurs in the screen region, a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations are acquired and displayed, whether the total number of click positions exceeds 2 or not is determined, and if the total number of click positions exceeds 2, a boundary formed by the latest click operation and the click position corresponding to the initial click operation is acquired and displayed, so that a closed region determined by the click position is displayed in real time, and a user can conveniently judge whether the currently selected circling range corresponds to a target range to be selected or not.
Fig. 5 is a schematic diagram illustrating that three click operations are detected in the screen area according to this embodiment. As shown in fig. 5, according to the click sequence, the click positions corresponding to the three click operations are position a, position B, and position C in sequence, and when the third click operation is detected, since the total number of click positions exceeds 2, the position a, the position B, and the position C, and three straight line boundaries formed by the position a and the position B, the position B and the position C, and the position C and the position a are displayed.
Fig. 6 is a schematic diagram illustrating that four click operations are detected in the screen area according to the present embodiment. As shown in fig. 6, if the user performs a click operation at position D in addition to the click operation shown in fig. 5, after the fourth click operation is detected, since the total number of click positions exceeds 2, position a, position B, position C, and position D, and four straight line boundaries consisting of position a and position B, position B and position C, position C and position D, and position D and position a are displayed.
And 240, if the dragging operation is detected at the click position or the boundary, moving the corresponding click position or adjusting the radian of the boundary according to the dragging operation.
Fig. 7 is a schematic diagram of a drag operation performed on a click position according to this embodiment. As shown in fig. 7, on the basis of the click operation shown in fig. 6, if the initial drag position of the drag operation is located at position D, the drag operation is detected at the click position corresponding to the fourth click operation, and the click position corresponding to the fourth click operation is moved according to the drag operation. If the current dragging position M 'of the dragging operation is obtained according to a preset time interval (such as 0.2 second or 0.5 second), the clicking position corresponding to the fourth clicking operation is moved to the current dragging position M', and meanwhile, the boundary formed by the position C, the position D and the position A is respectively updated to the boundary formed by the position C, the position M 'and the position M' in real time until the dragging operation is finished.
Fig. 8 is a schematic diagram of the boundary dragging operation provided in this embodiment. As shown in fig. 8, in addition to the click operation shown in fig. 6, when the initial drag position M of the drag operation is located on the boundary formed by the position B and the position C, and the drag operation is detected on the boundary formed by the position B and the position C, the radian of the boundary formed by the position B and the position C is adjusted according to the drag operation. If the current dragging position M ' of the dragging operation is obtained according to a preset time interval (such as 0.2 second or 0.5 second), a line segment formed by the current dragging position M ' and the position B and a line segment formed by the current dragging position M ' and the position C are obtained, an intersection point of vertical bisectors of the two line segments is used as a circle center, distances between the intersection point and the position B, the position C or the current dragging position M ' are used as radiuses, an arc passing through the position B, the position C and the current dragging position M ' is obtained, and a boundary formed by the position B and the position C is adjusted to be the arc until the dragging operation is finished.
Fig. 9 is a schematic diagram of another operation of dragging a boundary according to this embodiment. As shown in fig. 9, on the basis of the click operation shown in fig. 6, if a drag operation is detected at a boundary formed by a position B and a position C, a current drag position M 'of the drag operation may be obtained according to a preset time interval (e.g., 0.2 second or 0.5 second), a drag distance and a drag direction may be obtained according to an initial drag position M and the current drag position M', a position B 'and a position C' after the position B and the position C move in the drag direction by the drag distance, respectively, a click position corresponding to a second click operation is moved to the position B ', a click position corresponding to a third click operation is moved to the position C', and boundaries formed by the position a and the position B, the position B and the position C, and the position C and the position D are updated in real time to boundaries formed by the position a and the position B ', the position B' and the position C ', and the position C' and the position D, respectively, until the drag operation is finished.
And step 250, if the total number exceeds the preset number when the circled area determining instruction is received, determining the circled area according to the closed area formed by the boundary.
For example, after displaying the boundary formed by the latest click operation and the click position corresponding to the initial click operation, displaying a circle selection area determination option and a circle selection area negative option at the click position corresponding to the latest click operation or other preset positions, if the user clicks the circle selection area determination option, receiving a circle selection area determination instruction, determining a closed area formed by each boundary as the circle selection area, and stopping detecting the click operation occurring in the screen area, if the user clicks the circle selection area negative option, receiving a circle selection area negative instruction, stopping detecting the click operation occurring in the screen area, deleting the acquired click position and boundary, and initializing the total number of the click positions to 0.
And step 260, displaying the display element types in the circle selection area in the list, and highlighting the target element types corresponding to the selection instructions received by the list in the circle selection area.
Preferably, after the circled area is determined, a list with display element types in the circled area is popped up, wherein the display element types at least comprise characters and pictures, and if the user selects any display element type in the list, a target element type corresponding to a selection instruction received by the list is highlighted in the circled area.
If the display element type selected by the user in the list is a character, highlighting the character in the selection area by a preset background color; if the display element type selected by the user in the list is a picture, highlighting the picture in the circled area with another preset background color.
It should be noted that, for an application scene in which the display element type in the circled area is a fixed display element type, if the display element type is fixed as a text or a picture, after the circled area is determined according to the click position, the display element type may be directly highlighted in the circled area without displaying a list.
And 270, if an editing activation instruction is received, displaying an editing instruction menu corresponding to the target element type.
And step 280, editing the target element type according to the editing instruction confirmed in the editing instruction menu.
Preferably, if the user clicks the edit activation option, it is confirmed that the edit activation instruction is received, and after the edit activation instruction is received, the edit instruction menu corresponding to the target element type is displayed, and the target element type is edited according to the edit instruction confirmed in the edit instruction menu. If the type of the target element is a character, displaying a character editing instruction menu, wherein the character editing instruction menu can comprise instructions such as dragging, changing the color of a font, changing the size of the font, copying and cutting, and if a user selects any instruction in the character editing instruction menu, editing the character in the circled area according to the instruction; if the target element type is a picture, displaying a picture editing instruction menu, wherein the picture editing instruction menu can comprise commands of blurring, cutting, rotating, zooming and the like, and if a user selects any command in the picture editing instruction menu, editing the picture in the circled area according to the command.
In the embodiment, a boundary formed by the click position corresponding to each click operation and the click positions corresponding to two adjacent click operations is obtained and displayed; if the total number of the click positions exceeds 2, displaying a boundary formed by the latest click operation and the click position corresponding to the initial click operation, and realizing real-time display of a closed area determined according to the click position; if the dragging operation is detected at the click position or the boundary, the corresponding click position is moved or the radian of the boundary is adjusted according to the dragging operation, so that the click position and the boundary can be conveniently changed by a user, and the circled area is changed; the display element types in the circle selection area are displayed in the list, and the target element types corresponding to the selection instructions received by the list are highlighted in the circle selection area, so that the target element types required to be selected in the circle selection area are selected through the list; if an editing activation instruction is received, displaying an editing instruction menu corresponding to the type of the target element; and editing the target element type according to the editing instruction confirmed in the editing instruction menu, so that the target element type in the circled area is edited through the editing instruction list.
EXAMPLE III
Fig. 10 is a block diagram of a device for determining a circled area according to a third embodiment of the present invention. The device can be composed of software and/or hardware, and the device is generally integrated in the terminal. Referring to fig. 10, the apparatus provided in this embodiment includes: a click operation detection module 310, a click position acquisition module 320, and a circled area determination module 330, wherein,
the click operation detection module 310 is configured to detect a click operation occurring in a screen area after receiving an area selection instruction;
the click position obtaining module 320 is configured to obtain a click position corresponding to each click operation and count the total number of the obtained click positions;
and a circled area determining module 330, configured to determine a circled area according to the click position if the total number exceeds a preset number when the circled area determining instruction is received.
In the embodiment, the click operation detection module detects the click operation in the screen area after receiving the area selection instruction, the click position acquisition module acquires the click position corresponding to each click operation and counts the total number of the acquired click positions, the selection area determination module determines that the total number exceeds the preset number if receiving the selection area determination instruction, the selection area is determined according to the click position, so that the problem that in the process of area selection by a user, the circle selection area can not be accurately selected due to the fixed shape of the circle selection area and the inconvenient operation caused by continuously pressing the screen, the circle selection area can be determined according to the click position, and then the user does not need to continuously press the screen in the process of area selection, the shape of the selection area is not restricted by the fixed shape, and the efficiency and the accuracy of selection operation are improved.
In the foregoing solution, optionally, the click position obtaining module includes:
the first boundary acquisition unit is used for acquiring and displaying a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations;
a second boundary obtaining unit, configured to display a boundary formed by the latest click operation and the click position corresponding to the initial click operation if the total number of the click positions exceeds 2;
the circled area module is specifically configured to:
and if the total number exceeds the preset number when receiving a circled area determination instruction, determining the circled area according to the closed area formed by the boundary.
In the foregoing solution, optionally, the apparatus further includes:
and the adjusting module is used for moving the corresponding click position or adjusting the radian of the boundary according to the dragging operation if the dragging operation is detected at the click position or the boundary.
In the foregoing solution, optionally, the apparatus further includes: and the target element type display module is used for displaying the display element types in the selection area in a list, and highlighting the target element types corresponding to the selection instructions received by the list in the selection area.
In the foregoing solution, optionally, the apparatus further includes: the editing instruction menu display module is used for displaying the display element types in the selection area in a list, and after the target element types corresponding to the selection instructions received by the list are highlighted in the selection area, if an editing activation instruction is received, displaying an editing instruction menu corresponding to the target element types;
and the target element type editing module is used for editing the target element type according to the editing instruction confirmed in the editing instruction menu.
Example four
Fig. 11 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 11, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 11; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 11.
The memory 420 serves as a computer-readable storage medium, and may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the determination method of the circled area in any embodiment of the present invention (for example, the click operation detection module 310, the click position acquisition module 320, and the circled area determination module 330 in the determination device of the circled area). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the operations for the electronic device described above.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 440 may include a display device such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for determining a circled area provided in any embodiment of the present invention is implemented.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method according to any embodiment of the present invention.
It should be noted that, in the embodiment of the module device for determining a circled area, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The device can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (6)
1. A method for determining a circled area, comprising:
after receiving a region selection instruction, detecting click operation in a screen region;
acquiring a click position corresponding to each click operation and counting the total number of the acquired click positions;
if the total number exceeds the preset number when a circled area determining instruction is received, determining a circled area according to the click position;
if the total number does not exceed the preset number, a pop-up dialog box inquires whether the user continues to select, if so, the click operation occurring in the screen area is detected, if not, the click operation occurring in the screen area is stopped being detected, the obtained click position and the boundary formed by the click positions corresponding to the two adjacent click operations are deleted, and the total number of the click positions is initialized to be zero;
displaying the display element types in the selection area in a list, and highlighting the target element types corresponding to the selection instructions received by the list in the selection area, wherein the display element types at least comprise characters and pictures;
if an editing activation instruction is received, displaying an editing instruction menu corresponding to the target element type;
editing the target element type according to the editing instruction confirmed in the editing instruction menu;
and if the dragging operation is detected at the clicking position or the boundary, moving the corresponding clicking position or adjusting the radian of the boundary according to the dragging operation.
2. The method according to claim 1, wherein the step of obtaining the click position corresponding to each click operation and counting the total number of the obtained click positions comprises:
acquiring and displaying a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations;
if the total number of the click positions exceeds 2, displaying a boundary formed by the latest click operation and the click position corresponding to the initial click operation;
if the total number exceeds the preset number when receiving a circled area determination instruction, determining a circled area according to the click position, specifically:
and if the total number exceeds the preset number when receiving a circled area determination instruction, determining the circled area according to the closed area formed by the boundary.
3. An apparatus for determining a circled area, comprising:
the click operation detection module is used for detecting click operation in a screen area after receiving the area selection instruction;
the click position acquisition module is used for acquiring click positions corresponding to each click operation and counting the total number of the acquired click positions;
the selection area determining module is used for determining a selection area according to the click position if the total number exceeds a preset number when receiving a selection area determining instruction;
a target element type display module, configured to display a display element type in the selection area in a list, and highlight a target element type corresponding to a selection instruction received by the list in the selection area, where the display element type at least includes characters and pictures;
the editing instruction menu display module is used for displaying an editing instruction menu corresponding to the target element type;
the target element type editing module is used for editing the target element type according to the editing instruction confirmed in the editing instruction menu;
and the adjusting module is used for moving the corresponding click position or adjusting the radian of the boundary according to the dragging operation if the dragging operation is detected at the click position or the boundary.
4. The apparatus of claim 3, wherein the click location obtaining module comprises:
the first boundary acquisition unit is used for acquiring and displaying a click position corresponding to each click operation and a boundary formed by click positions corresponding to two adjacent click operations;
a second boundary obtaining unit, configured to display a boundary formed by the latest click operation and the click position corresponding to the initial click operation if the total number of the click positions exceeds 2;
the circled area module is specifically configured to:
and if the total number exceeds the preset number when receiving a circled area determination instruction, determining the circled area according to the closed area formed by the boundary.
5. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of determining a circled area as claimed in any one of claims 1-2.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method for determining a circled area according to any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711418556.2A CN108153470B (en) | 2017-12-25 | 2017-12-25 | Method and device for determining circled area, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711418556.2A CN108153470B (en) | 2017-12-25 | 2017-12-25 | Method and device for determining circled area, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108153470A CN108153470A (en) | 2018-06-12 |
CN108153470B true CN108153470B (en) | 2021-05-11 |
Family
ID=62464568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711418556.2A Active CN108153470B (en) | 2017-12-25 | 2017-12-25 | Method and device for determining circled area, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108153470B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516860A (en) * | 2013-09-26 | 2015-04-15 | 国际商业机器公司 | Methods and systems for selecting text within a displayed document |
CN107193901A (en) * | 2017-05-11 | 2017-09-22 | 长威信息科技发展股份有限公司 | A kind of resource visualizes the method and system of fast selecting |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102007056328A1 (en) * | 2007-11-22 | 2009-05-28 | Robert Bosch Gmbh | Method and device for providing information about points of interest with a navigation system |
-
2017
- 2017-12-25 CN CN201711418556.2A patent/CN108153470B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104516860A (en) * | 2013-09-26 | 2015-04-15 | 国际商业机器公司 | Methods and systems for selecting text within a displayed document |
CN107193901A (en) * | 2017-05-11 | 2017-09-22 | 长威信息科技发展股份有限公司 | A kind of resource visualizes the method and system of fast selecting |
Also Published As
Publication number | Publication date |
---|---|
CN108153470A (en) | 2018-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11301200B2 (en) | Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium | |
CN111770272B (en) | User interface for camera effects | |
EP1349053B1 (en) | Method and system for overloading loop selection | |
EP2406707B1 (en) | Method and apparatus for selecting text information | |
US20150248236A1 (en) | Method and device for determining cursor display position | |
US20170147184A1 (en) | Method and electronic device for processing terminal folder | |
KR20160003683A (en) | Automatically manipulating visualized data based on interactivity | |
CN110032700B (en) | Information release control method and device, storage medium and electronic equipment | |
US20160124931A1 (en) | Input of electronic form data | |
CN109753215B (en) | Window split-screen display method, device and equipment | |
CN113721808B (en) | Control method and device | |
CN105912101B (en) | Projection control method and electronic equipment | |
CN105138256A (en) | Cursor positioning method and apparatus and terminal | |
WO2019218622A1 (en) | Element control method, apparatus, and device, and storage medium | |
CN114397989A (en) | Parameter value setting method and device, electronic equipment and storage medium | |
CN104049846A (en) | Information processing method and electronic device | |
CN108153470B (en) | Method and device for determining circled area, electronic equipment and storage medium | |
CN109739422B (en) | Window control method, device and equipment | |
CN111638844A (en) | Screen capturing method and device and electronic equipment | |
CN111199512A (en) | SVG vector graphics adjusting method, SVG vector graphics adjusting device, storage medium and terminal | |
CN115237293A (en) | Picture editing method, device, equipment and storage medium | |
US11157130B2 (en) | Cursor-based resizing for copied image portions | |
CN113434073A (en) | Control method and device of active window, electronic equipment and readable storage medium | |
CN114594889B (en) | Control method and device | |
CN105867817B (en) | File processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |