Drawing component generation method and device, electronic equipment and storage medium

By responding to component icon click operation in the software, determining the component mouse cursor and target area, and generating corresponding components, the problem of inefficient components generated by existing software is solved, and fast and convenient drawing component generation is achieved.

CN119903580APending Publication Date: 2025-04-29HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411986165.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

When generating drawing components, existing software lacks default components for user size requirements, and users need to manually draw and combine lines, resulting in inefficient generation and poor user experience.

Method used

By responding to the clicking operation of the component icon, a mouse cursor of the corresponding component type is determined and displayed, a target area is selected and a corresponding component is generated based on its size and related communication area.

Benefits of technology

It realizes the rapid and convenient generation of drawing components, improves generation efficiency and user experience, and reduces the steps of manual drawing and combination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903580A_ABST
    Figure CN119903580A_ABST
Patent Text Reader

Abstract

The invention provides a drawing component generation method and device, electronic equipment and a storage medium, and relates to the technical field of image processing. According to the specific implementation scheme, in response to a click operation for a first component icon, a corresponding component mouse cursor is determined and displayed based on component type information corresponding to the first component icon; in response to a selection operation of the component mouse cursor on a first region, determining a target region based on an operation type of the selection operation and a related connected region of the first region; and generating and displaying a corresponding first component on the target area based on the size information of the target area and the component type information corresponding to the component mouse cursor. By the adoption of the technical scheme, the drawing component can be quickly and conveniently generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology and specifically to a drawing component generation method, device, electronic device and storage medium. Background Art

[0002] With the development of computer technology, in the field of image processing, some software is used to generate or process structural parts on the base map to generate the final mechanical structure drawings and building drawings.

[0003] However, the default components of these software do not meet the size requirements and need to be drawn in position. Or, the software does not preset the component type required by the user, and the user needs to draw lines manually and combine the lines and perform other processing to generate the components required by the user. Therefore, the current software generation method of components is relatively backward, inefficient, and has a poor user experience. Summary of the invention

[0004] The present disclosure provides a drawing component generation method, device, electronic device and storage medium.

[0005] According to one aspect of the present disclosure, a drawing component generation method is provided, comprising:

[0006] In response to a click operation on a first component icon, determining and displaying a corresponding component mouse cursor based on component type information corresponding to the first component icon;

[0007] In response to a selection operation of the component mouse cursor on a first area, determining a target area based on an operation type of the selection operation and a related connected area of ​​the first area;

[0008] Based on the size information of the target area and the component type information corresponding to the component mouse cursor, a corresponding first component is generated and displayed on the target area.

[0009] According to another aspect of the present disclosure, there is provided a drawing component generating device, comprising:

[0010] A mouse cursor generating module, configured to determine and display a corresponding component mouse cursor in response to a click operation on a first component icon based on component type information corresponding to the first component icon;

[0011] A target region determination module, configured to determine a target region in response to a selection operation of a first region by a mouse cursor of the component, based on an operation type of the selection operation and a related connected region of the first region;

[0012] The component generation module is used to generate and display a corresponding first component on the target area based on the size information of the target area and the component type information corresponding to the component mouse cursor.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any drawing component generation method in the embodiments of the present disclosure.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any drawing component generation method according to the embodiments of the present disclosure.

[0018] According to the technology disclosed in the present invention, when a component icon is clicked, a component mouse cursor of a corresponding color and component type is determined and displayed, and when the cursor selects a certain area, a target area is determined based on the area and its related connected areas, and a component of a corresponding size is generated in the target area. In this way, drawing components can be generated quickly and conveniently.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 is a flow chart of a drawing component generation method according to an embodiment of the present disclosure;

[0022] Figure 2 is an interface diagram of an embodiment of the present disclosure;

[0023] Figure 3 is an interface diagram of an embodiment of the present disclosure;

[0024] Figure 4 is an interface diagram of an embodiment of the present disclosure;

[0025] Figure 5 is a structural block diagram of a drawing component generating device according to an embodiment of the present disclosure;

[0026] Figure 6 is a block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0028] Figure 1 It is a flowchart of a drawing component generation method according to an embodiment of the present disclosure.

[0029] like Figure 1 As shown, the drawing component generation method may include:

[0030] S110, in response to a click operation on a first component icon, determining and displaying a corresponding component mouse cursor based on component type information corresponding to the first component icon;

[0031] S120, in response to a selection operation of a component mouse cursor on a first area, determining a target area based on an operation type of the selection operation and a related connected area of ​​the first area;

[0032] S130, based on the size information of the target area and the component type information corresponding to the component mouse cursor, generate and display a corresponding first component on the target area.

[0033] Illustratively, the drawings may be architectural drawings, mechanical component drawings, hardware equipment drawings, and the like.

[0034] For example, taking architectural drawings as an example, components may include categories such as walls, columns, doors, and windows, and each category may also have subcategories. For example, walls may include non-load-bearing walls (ordinary walls), load-bearing walls, and fences. Columns may include Roman columns, round columns, and square columns. Doors may include quadrilateral doors and arches. Windows may include outward-pushing windows, inward-pushing windows, and sliding windows.

[0035] Exemplarily, icons of different component types correspond to different component mouse cursors. For example, the component mouse cursor has a corresponding color and label (identification). For different component icons, the corresponding component mouse cursor may have different colors and labels.

[0036] For example, for component icons of the same category but different subcategories, the corresponding component mouse cursors can be cursors of the same color but with different labels.

[0037] For example, for component icons of different categories, the corresponding component mouse cursors are cursors of different colors and have different labels.

[0038] For example, in Figure 2 The interface displays a component icon menu bar 201, including four component icons of wall, column, door and window. When any icon is clicked, the subdivided sub-component icons can be displayed. When the user selects a sub-component icon of an ordinary wall, the corresponding ordinary wall component mouse cursor is displayed on the interface.

[0039] For example, in Figure 2 A drawing base map 202 is imported into the interface, and the base map includes a plurality of regular or irregular closed curve areas and non-closed curve areas. The curve can be a straight line with a curvature of 0 or a curve with a non-zero curvature.

[0040] Exemplarily, the selection operation may include a click operation and a frame selection operation.

[0041] For example, when Figure 2 In the base map, if the mouse cursor of the ordinary wall component clicks the first area, the first area and its related connected areas form a closed target area, and the corresponding components are generated for the target area. Figure 2 The grey area shown can be considered as a normal wall component.

[0042] For example, for different types of selection operations, different methods may be used to determine the target area.

[0043] For example, the related connected area can be understood as an area connected to the first area. Or, a connected area in the first area. Or, an area connected to a closed area in the first area. Or, a closed area including an unclosed area in the first area, that is, the unclosed area is a part of the closed area.

[0044] Exemplarily, the shape and size of the first component are the same as the shape and size of the target area. The component type of the first component is the same as the component type corresponding to the component mouse cursor.

[0045] Exemplarily, the first member covers the target area, and an outer edge size of the first member is the same as an outer edge size of the target area.

[0046] According to the above implementation, when a component icon is clicked, a component mouse cursor of a corresponding color and component type is determined and displayed, and when the cursor selects a certain area, a target area is determined based on the area and its related connected areas, and a component of a corresponding size is generated in the target area. In this way, drawing components can be generated quickly and conveniently.

[0047] In one embodiment, the above-mentioned determination of the target area based on the operation type of the selection operation and the related connected area of ​​the first area includes: when the selection operation is a click operation and the click operation falls within the first area, the target area is determined based on the first area, a closed area connected to the first area, and a closed area connected to the closed area, wherein the first area is a closed area.

[0048] Exemplarily, for the first area, the closed area connected to the first area, and the closed area connected to the closed area are a plurality of continuous closed areas. The plurality of closed areas may include regular areas or irregular areas. The plurality of continuous closed areas may be limited to a specified area or may not be limited to a specified area.

[0049] Exemplarily, the plurality of continuous closed areas are taken as the target area. Alternatively, one or more continuous closed areas in the plurality of continuous closed areas that fall within the designated area are taken as the target area.

[0050] Exemplarily, the total number of the plurality of continuous closed areas may also be limited. For example, the upper limit of the total number is 4 or 5.

[0051] It can be understood that the above-mentioned closed area can be an area framed by a closed curve, which can be called a closed curve area or a closed frame area.

[0052] According to the above implementation, when the user clicks on a closed area with the component mouse cursor, the closed area and one or more other continuous closed areas connected to it are used as the target area selected by the cursor. In this way, multiple continuous identical components can be generated with one click, without having to generate multiple components by clicking one by one, thereby improving the efficiency of generating components.

[0053] In one embodiment, the above-mentioned determination of the target area based on the first area, the closed area connected to the first area, and the closed area connected to the closed area may include: determining the second area based on the position corresponding to the click operation and a preset area size, wherein the second area at least includes the first area; in the second area, determining the closed area connected to the first area and the closed area connected to the closed area; determining the target area based on the first area and each closed area determined in the second area.

[0054] Exemplarily, the second area can be considered as a smart recognition area. When the user clicks a certain position, a smart recognition area of ​​a preset size is generated with the clicked position as the center.

[0055] Exemplarily, the shape of the intelligent recognition area may be circular, polygonal, or irregular.

[0056] Exemplarily, the intelligent recognition area includes multiple closed areas, some of which are connected to each other, or they may not be connected to each other. Among them, the click position falls on one of the closed areas, that is, the first area mentioned above. Then, in the intelligent recognition area, a closed area connected to the first area and other closed areas connected to the closed area are searched. Thus, one or more: multiple continuous closed areas connected to the first area are found. In this way, the first area and the found area are combined into a target area.

[0057] like Figure 3 As shown, when the user clicks a closed frame 301 with a common wall component mouse cursor, a hidden (non-visible, but visible) frame is generated in the base map 202 with the clicked position as the center. Figure 3 The intelligent recognition area 302 (shown by dotted lines) may have a size of 20 cm*20 cm, and ordinary wall components are generated for the closed frame 301 and two consecutive closed frames 303 and 304 connected to the closed frame 301.

[0058] According to the above implementation, in a click operation, an intelligent recognition area of ​​a preset size is determined with the click position as the center, and other continuous closed areas connected to the closed area where the click operation is located are determined in the area to obtain the target area, thereby realizing one click operation to select multiple continuous closed areas, generate multiple continuous components, and improve the efficiency of generating components.

[0059] In one embodiment, the above-mentioned determination of the target area based on the operation type of the selection operation and the related connected area of ​​the first area may include: when the selection operation is a box selection operation, and the area in the box of the box selection box corresponding to the box selection operation is the first area, determining the target area based on a closed area in the first area, and a closed area including an unclosed area in the first area.

[0060] It can be understood that, in this example, the first area is the area of ​​the selection box in the box of the base image, and the first area includes a closed curve area and a non-closed curve area.

[0061] like Figure 4 As shown, in the base map 202, the first area 401 selected by the box selection is indicated by a dotted line, and the first area includes closed areas 402 and 403, and a non-closed area 404. In this way, a closed area 406 including the non-closed area 404 and the non-closed area 405, and the closed areas 402 and 403 constitute the target area. The same component is generated for each closed area in the target area.

[0062] According to the above embodiment, when the user uses the component mouse cursor to select an area, the closed area in the selected area and the closed area including the unclosed area in the selected area are used as the target area selected by the cursor. In this way, multiple components can be generated through one selection, thereby improving the efficiency of generating components.

[0063] In one embodiment, determining and displaying a corresponding component mouse cursor based on component type information corresponding to the first component icon includes: determining a corresponding first color and a first type identification based on the component type information corresponding to the first component icon; determining and displaying a corresponding component mouse cursor based on the first color and the first type identification.

[0064] Exemplarily, icons of different component types correspond to different component mouse cursors. For example, the component mouse cursor has a corresponding color and label (identification). For different component icons, the corresponding component mouse cursor may have different colors and labels.

[0065] For example, for component icons of the same category but different subcategories, the corresponding component mouse cursors can be cursors of the same color but with different labels.

[0066] For example, for component icons of different categories, the corresponding component mouse cursors are cursors of different colors and have different labels.

[0067] Exemplarily, the component mouse cursor includes a first type of identification, and the first type of identification includes a text identification and / or an icon identification.

[0068] Exemplarily, the color of the component mouse cursor is the first color.

[0069] According to the above implementation, for different component types, the color and logo of the corresponding component mouse cursor are different, so that the component type selected by the user can be clearly displayed, improving the user experience.

[0070] Figure 5 It is a structural block diagram of a drawing component generating device according to an embodiment of the present disclosure.

[0071] like Figure 5 As shown, the drawing component generating device may include:

[0072] A mouse cursor generating module 510 is used to determine and display a corresponding component mouse cursor in response to a click operation on a first component icon based on component type information corresponding to the first component icon;

[0073] A target region determination module 520, configured to determine a target region in response to a selection operation of a first region by a mouse cursor of the component, based on an operation type of the selection operation and a related connected region of the first region;

[0074] The component generation module 530 is used to generate and display a corresponding first component on the target area based on the size information of the target area and the component type information corresponding to the component mouse cursor.

[0075] In one implementation, the target area determination module 520 includes:

[0076] A first area determination unit is used to determine a target area based on the first area, a closed area connected to the first area, and a closed area connected to the closed area, when the selection operation is a click operation and the click operation falls within the first area, wherein the first area is a closed area.

[0077] In one implementation, the first area determination unit is specifically configured to:

[0078] Determine a second area based on the position corresponding to the click operation and a preset area size, wherein the second area at least includes the first area;

[0079] In the second area, determining a closed area connected to the first area and a closed area connected to the closed area;

[0080] A target area is determined based on the first area and each closed area determined in the second area.

[0081] In one implementation, the target area determination module 520 includes:

[0082] A second area determination unit is configured to determine a target area based on a closed area in the first area and a closed area including an unclosed area in the first area when the selection operation is a box selection operation and the area in the box selection box corresponding to the box selection operation is the first area.

[0083] In one implementation, the mouse cursor generating module 510 includes:

[0084] A color and identification determination unit, configured to determine a corresponding first color and a first type identification based on the component type information corresponding to the first component icon;

[0085] The mouse cursor generating unit is used to generate and display a corresponding component mouse cursor based on the first color and the first type identifier.

[0086] In one implementation, the component mouse cursor includes the first type of identification, and the first type of identification includes a text identification and / or an icon identification.

[0087] In one implementation, the color of the component mouse cursor is the first color.

[0088] In one embodiment, the first member covers the target area, and an outer edge size of the first member is the same as an outer edge size of the target area.

[0089] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0090] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0091] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0092] Figure 6 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device includes: a memory 510 and a processor 520, and the memory 510 stores a computer program that can be run on the processor 520. The number of memories 510 and processors 520 can be one or more. The memory 510 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 530, which is used to communicate with external devices and perform data exchange transmission.

[0093] If the memory 510, the processor 520 and the communication interface 530 are implemented independently, the memory 510, the processor 520 and the communication interface 530 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0094] Optionally, in a specific implementation, if the memory 510, the processor 520 and the communication interface 530 are integrated on a chip, the memory 510, the processor 520 and the communication interface 530 can communicate with each other through an internal interface.

[0095] It should be understood that the processor may be a central processing unit (CPU), or 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, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.

[0096] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0098] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0099] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0100] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0101] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0102] The above description is only an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A drawing component generation method, characterized in that: include: In response to a click operation on a first component icon, determining and displaying a corresponding component mouse cursor based on component type information corresponding to the first component icon; In response to a selection operation of the component mouse cursor on a first area, determining a target area based on an operation type of the selection operation and a related connected area of ​​the first area; Based on the size information of the target area and the component type information corresponding to the component mouse cursor, a corresponding first component is generated and displayed on the target area.

2. The method according to claim 1, characterized in that The determining of the target area based on the operation type of the selection operation and the related connected area of ​​the first area includes: When the selection operation is a click operation and the click operation falls within the first area, a target area is determined based on the first area, a closed area connected to the first area, and a closed area connected to the closed area, wherein the first area is a closed area.

3. The method according to claim 1, characterized in that The determining of the target area based on the first area, the closed area connected to the first area, and the closed area connected to the closed area includes: Determine a second area based on the position corresponding to the click operation and a preset area size, wherein the second area at least includes the first area; In the second area, determining a closed area connected to the first area and a closed area connected to the closed area; A target area is determined based on the first area and each closed area determined in the second area.

4. The method according to claim 3, characterized in that The second area is in a circular, polygonal or irregular shape.

5. The method according to claim 1, characterized in that The determining of the target area based on the operation type of the selection operation and the related connected area of ​​the first area includes: When the selection operation is a box selection operation, and the area in the box selection box corresponding to the box selection operation is the first area, the target area is determined based on a closed area in the first area and a closed area including an unclosed area in the first area.

6. The method according to claim 1, characterized in that The determining and displaying a corresponding component mouse cursor based on the component type information corresponding to the first component icon includes: Based on the component type information corresponding to the first component icon, determining a corresponding first color and a first type identifier; Based on the first color and the first type identifier, a corresponding component mouse cursor is determined and displayed.

7. The method according to claim 6, characterized in that The component mouse cursor includes the first type of identification, and the first type of identification includes a text identification and / or an icon identification.

8. The method according to claim 6, characterized in that The color of the component mouse cursor is the first color.

9. The method according to any one of claims 1 to 8, characterized in that The first member covers the target area, and an outer edge size of the first member is the same as an outer edge size of the target area.

10. A drawing component generating device, characterized in that: include: A mouse cursor generating module, configured to determine and display a corresponding component mouse cursor in response to a click operation on a first component icon based on component type information corresponding to the first component icon; A target region determination module, configured to determine a target region in response to a selection operation of a first region by a mouse cursor of the component, based on an operation type of the selection operation and a related connected region of the first region; The component generation module is used to generate and display a corresponding first component on the target area based on the size information of the target area and the component type information corresponding to the component mouse cursor.

11. The device according to claim 10, characterized in that The target area determination module includes: A first area determination unit is used to determine a target area based on the first area, a closed area connected to the first area, and a closed area connected to the closed area, when the selection operation is a click operation and the click operation falls within the first area, wherein the first area is a closed area.

12. The device according to claim 10, characterized in that The first area determination unit is specifically configured to: Determine a second area based on the position corresponding to the click operation and a preset area size, wherein the second area at least includes the first area; In the second area, determining a closed area connected to the first area and a closed area connected to the closed area; A target area is determined based on the first area and each closed area determined in the second area.

13. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-9.