Resource map method, device, electronic device and storage medium

By obtaining target area parameters and generating rules, and automatically binding resources with touch operations, the problem of time-consuming resources in the existing technology is solved, and efficiency is improved.

CN119179427BActive Publication Date: 2025-03-28HANGZHOU HIKVISION SYST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411672063.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-28
Estimated Expiration
2044-11-20

AI Technical Summary

Technical Problem

In the prior art, the resource on the graph takes a long time, especially when the number of target areas is large, repeating the operation on the graph on the graph seriously affects efficiency.

Method used

By obtaining the first area parameters of the target area corresponding to the resource to be shown above, a region graph is generated based on the parameters and the preset generation rules, and the path formed by the touch operation is automatically bound to the resource to be shown above.

Benefits of technology

Automatically generate area graphics and automatic binding are realized, reducing manual operation costs and improving the efficiency of resource graphs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179427B_ABST
    Figure CN119179427B_ABST
Patent Text Reader

Abstract

The disclosed embodiments provide a method, device, electronic device and storage medium for mapping resources, and relate to the field of computer technology. The method comprises: obtaining a first area parameter of a target area corresponding to a resource to be mapped, wherein the first area parameter is used to characterize the shape and size of the target area; generating a plurality of area graphics based on the first area parameter, a preset generation rule and at least one of the following: a second area parameter of the mapped area, a first path formed by a touch operation, wherein the second area parameter is used to characterize the shape and size of the mapped area; associating the area graphics with the resource to be mapped. The method can automatically generate area graphics, and automatically complete the binding of area graphics and the resource to be mapped, thereby reducing the operating cost of manual batch resource mapping and improving the efficiency of resource mapping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for uploading a resource map. Background Art

[0002] In the related technologies of resource mapping, users usually need to select the target areas (such as parking lots, electronic fences, civil air defense areas, etc.) one by one on the base map through custom drawing, and bind them to the resources to be mapped. The properties of the target areas can be set according to the mapping specifications of the resources to be mapped. For example, if the resource to be mapped is a classroom, the color of the corresponding target area can be adjusted to red for visual display.

[0003] In the related art, a target area is usually determined by clicking a line box or a rectangular box, and then the associated resources to be mapped are selected for association. This method of uploading is time-consuming, especially when there are a large number of target areas. Repeated uploading operations greatly affect the efficiency of resource uploading. Summary of the invention

[0004] The purpose of the embodiments of the present disclosure is to provide a method, device, electronic device and storage medium for mapping resources.

[0005] To solve the above technical problems, the embodiments of the present disclosure are implemented through the following aspects.

[0006] According to a first aspect of an embodiment of the present disclosure, a method for mapping resources is provided, the method comprising: obtaining a first area parameter of a target area corresponding to the resource to be mapped, the first area parameter being used to characterize the shape and size of the target area; generating a plurality of area graphics based on the first area parameter, a preset generation rule, and at least one of the following: a second area parameter of the mapping area, a first path formed by a touch operation; wherein the second area parameter is used to characterize the shape and size of the mapping area; and associating the area graphics with the resource to be mapped.

[0007] According to a second aspect of an embodiment of the present disclosure, a device for mapping resources is provided, the device comprising: an acquisition module, used to acquire first area parameters of a target area corresponding to the resource to be mapped, the first area parameters being used to characterize the shape and size of the target area; a generation module, used to generate a plurality of area graphics based on the first area parameters, a preset generation rule, and at least one of the following: a second area parameter of the mapping area, a first path formed by a touch operation; wherein the second area parameter is used to characterize the shape and size of the mapping area; and a mapping module, used to associate the area graphics with the resource to be mapped.

[0008] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is used to execute the steps of the resource mapping method described in the first aspect above.

[0009] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple applications, the electronic device executes the steps of the resource mapping method described in the first aspect.

[0010] One of the above technical solutions has the following advantages or beneficial effects: by obtaining the first area parameter of the target area corresponding to the resource to be mapped, generating several area graphics based on the first area parameter, the preset generation rule, and at least one of the following: the second area parameter of the mapped area, the first path formed by the touch operation, and associating the area graphics with the resource to be mapped. It is possible to automatically generate area graphics and automatically complete the binding of area graphics and the resource to be mapped, reduce the operating cost of batch manual resource mapping, and improve the efficiency of resource mapping.

[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0012] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0014] Figure 1 A schematic diagram showing a flow chart of a method for mapping resources provided by an embodiment of the present disclosure;

[0015] Figure 2 A schematic diagram showing a first area parameter adjustment method in a resource map method provided by an embodiment of the present disclosure is shown;

[0016] Figure 3 Another schematic diagram showing a method for mapping resources provided by an embodiment of the present disclosure;

[0017] Figure 4 Another schematic diagram showing a method for mapping resources provided by an embodiment of the present disclosure;

[0018] Figure 5 A schematic diagram showing a region for uploading a map in a method for uploading a map of resources provided by an embodiment of the present disclosure;

[0019] Figure 6 A schematic diagram showing a circumscribed rectangle of a target area in the resource mapping method provided by an embodiment of the present disclosure;

[0020] Figure 7 A schematic diagram showing a method for generating a regional graph in a resource mapping method provided by an embodiment of the present disclosure;

[0021] Figure 8 Another schematic diagram showing a method for mapping resources provided by an embodiment of the present disclosure;

[0022] Fig. 9 A schematic diagram showing another method for generating a regional graph in a resource graphing method provided by an embodiment of the present disclosure;

[0023] Fig.10 A schematic diagram showing another method of generating a regional graph in the method for mapping resources provided by an embodiment of the present disclosure;

[0024] Fig.11 A schematic diagram showing another method of generating a regional graph in the method for mapping resources provided by an embodiment of the present disclosure;

[0025] Fig.12 Another schematic diagram showing a method for mapping resources provided by an embodiment of the present disclosure;

[0026] Fig.13 A schematic diagram showing an automatic correction area graphic in the resource mapping method provided by an embodiment of the present disclosure;

[0027] Fig.14 A block diagram showing a resource map device provided by an embodiment of the present application;

[0028] Fig.15 A block diagram showing another resource-based device provided in an embodiment of the present application;

[0029] Fig.16 A schematic diagram of the hardware structure of an electronic device for executing the resource method provided in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the technical solutions in the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present disclosure.

[0031] Figure 1 A schematic diagram showing a method for mapping resources provided by an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the method may include the following steps:

[0032] In step S101, a first area parameter of a target area corresponding to a resource to be mapped is obtained.

[0033] The first region parameter is used to characterize the shape and size of the target region.

[0034] The target area is a functional area to be determined in the area in the upper map for representing a specific space type, for example, an area to be determined in the base map for representing a classroom, a meeting room, a parking space, etc.

[0035] The first area parameter is used to characterize the shape and size of the target area.

[0036] In some embodiments, the shape of the target area may be a polygon or a circle, wherein the polygon may be a convex polygon or a non-convex polygon.

[0037] Correspondingly, the first area parameter may be expressed differently according to the shape of the target area. For example, if the shape of the target area is a circle, the first area parameter may include the radius of the circle. If the target area is a rectangle, the first area parameter may include the length and width. For example, the first area parameter (5, 3) indicates that the target area is a rectangle with a length of 5 and a width of 3. The first area parameter of the rectangle may further include a rotation angle. For example, the first area parameter (5, 3, counterclockwise 30°) indicates that it is a rectangle with a length of 5 and a width of 3 rotated counterclockwise by 30 degrees. If the target area is a regular polygon, the first area parameter may include the side length and the number of sides of the polygon. For example, the first area parameter (5, 3) of the regular polygon indicates that it is an equilateral triangle with a side length of 5 and a side number of 3. Of course, the first area parameter of the regular polygon may further include the rotation angle of the regular polygon. If the target area is an irregular polygon, the first area parameter may be represented by the coordinates of each vertex of the irregular polygon.

[0038] In some embodiments, the first region parameter may be adjusted in response to a user adjustment operation. For example, the shape of the target region may be determined in response to a user selection, and the shape and / or size of the target region may be adjusted in response to a user adjustment operation.

[0039] Figure 2 A schematic diagram of adjusting the first area parameters in the resource map method provided by an embodiment of the present disclosure is shown. Figure 2 As shown, taking the target area as a rectangle or a circle as an example, the user can click the preset graphic in the upper right corner to adjust the shape of the target area.

[0040] The shape and / or size of the target area can be adjusted in a variety of ways, such as by adjusting the size of the target area in response to a user's mouse wheel operation, by dragging a preset position of the target area (e.g. Figure 2 You can also adjust the size of the target area by dragging the vertices of the target area or by setting the coordinates of the vertices of the target area. You can also rotate the target area clockwise or counterclockwise by a set angle by dragging the circular adjustment button corresponding to the target area or by setting the rotation angle.

[0041] In step S102, a plurality of area graphics are generated based on the first area parameter, a preset generation rule, and at least one of the following: the second area parameter of the area in the above figure, and the first path formed by the touch operation.

[0042] The second area parameter is used to characterize the shape and size of the area in the above figure.

[0043] The area in the upper map is an area to be divided into at least one target area, for example, an area corresponding to the base map representing at least one target area to be divided, such as a classroom, a conference room, a parking space, etc.

[0044] The shape of the upper area and the shape of the target area can be the same or different, and the size of the upper area is larger than the size of the target area, so that the upper area can accommodate at least one target area. The method of expressing the second area parameter of the upper area is similar to the method of expressing the first area parameter of the target area, and will not be elaborated here.

[0045] Figure 3 Another schematic diagram of the method for mapping resources provided by the embodiment of the present disclosure is shown as follows: Figure 3 As shown, step S102 may include the following steps.

[0046] In step S1021, the size of the external graphic of the target area corresponding to the resource to be uploaded is determined according to the first area parameter.

[0047] Since the target area can be a regular shape such as a rectangle or a circle, or an irregular shape such as a rectangle tilted at a certain angle, or a polygon, in some possible implementations, a circumscribed shape can be constructed for the target area, the number of area shapes can be determined according to the circumscribed shape, and a corresponding number of area shapes can be generated.

[0048] In some possible implementations, the circumscribed figure can be a circumscribed rectangle, a circumscribed circle, or a circumscribed regular polygon, and the present application does not limit the shape of the circumscribed figure. In the present application, a detailed technical solution is described using the circumscribed rectangle as an example. It is understandable that the circumscribed rectangle can be replaced with other shapes, and the corresponding technical problem can be solved by adaptively adjusting the technical solution in combination with the basic knowledge of plane geometry.

[0049] In step S1022, the number of regional graphics is determined according to the size of the circumscribed graphics and at least one of the following: the size of the area in the above figure, and the path length of the first path.

[0050] In step S1023, a corresponding number of regional graphics are generated in the area shown in the above figure.

[0051] The above steps S1022 and S1023 are described below in conjunction with a specific embodiment.

[0052] Embodiment 1

[0053] In this embodiment, the preset generation rule may include an area range generation rule. Figure 4 Another schematic diagram of a method for mapping resources provided by an embodiment of the present disclosure is shown, such as Figure 4 As shown, step S102 may include the following steps.

[0054] In step S1024, the uploading area corresponding to the resource to be uploaded is determined.

[0055] It is understandable that the number of the upper image areas can be one or more, the shapes of different upper image areas can be the same or different, the sizes of different upper image areas can be the same or different. The shape of the upper image area can be polygonal or circular, and this application does not limit this.

[0056] Figure 5 A schematic diagram showing a region of a resource mapping method provided by an embodiment of the present disclosure is shown as follows: Figure 5 As shown, Figure 5 (a) shows a rectangular area in the figure above. Figure 5(b) shows the upper area of ​​the two rectangles.

[0057] In step S1025, the size of the external graphic of the target area corresponding to the resource to be uploaded is determined according to the first area parameter.

[0058] Taking the circumscribed rectangle as an example, the size of the circumscribed rectangle includes the height and width of the circumscribed rectangle. The height of the circumscribed rectangle is the difference between the maximum vertical coordinate and the minimum vertical coordinate of the target area, and the width of the circumscribed rectangle is the difference between the maximum horizontal coordinate and the minimum horizontal coordinate of the target area.

[0059] Figure 6 A schematic diagram showing a circumscribed rectangle of a target area in the resource mapping method provided by an embodiment of the present disclosure is shown. Figure 6 (a) and Figure 6 (b) shows a circumscribed rectangle 1 when the target regions are polygonal and a circumscribed rectangle 2 when the target regions are circular.

[0060] In step S1026, the number of regional graphics is determined according to the size of the circumscribed graphics and the size of the upper image area, and a corresponding number of regional graphics are generated in the upper image area.

[0061] For example, assuming that the length and width of the area in the above figure are X and Y respectively, and the length and width of the bounding rectangle of the target area are x and y respectively, then the following formula can be used to generate A regional graphic.

[0062] (Formula 1)

[0063] Where a1 is the number of regional graphics included in each row of the region in the above figure, b1 is the number of regional graphics included in each column of the region in the above figure, To round down.

[0064] Figure 7 A schematic diagram showing a method for generating a regional graph in a resource graph provided by an embodiment of the present disclosure is shown as follows: Figure 7 As shown, Figure 7 (a) is Figure 5 Schematic diagram of generating circumscribed rectangles of 8 area graphics matching the first area parameters in area 1 of the above figure corresponding to (a). Figure 7 (b) is Figure 5 (a) is a schematic diagram of generating circumscribed rectangles of 8 area graphics matching the first area parameters and corresponding area graphics in area 1 of the above figure.

[0065] It is understandable that if the target area is an unskewed rectangle and the target area overlaps with its circumscribed rectangle, the length and width of the target area can be used as x and y in formula 1 to generate area graphics of a corresponding number of target areas.

[0066] For example, when the target area is a circle and the area in the above figure is a rectangle, assuming that the length and width of the area in the above figure are X and Y respectively, and the radius of the target area is r, then the corresponding circumscribed rectangle of the target area is a square with a side length of 2r, which can be generated by the following formula 2 target area.

[0067] (Formula 2)

[0068] In step S103, the regional graphic is associated with the resource to be uploaded.

[0069] In some embodiments, the resources to be uploaded may include resources to be uploaded of multiple spatial types, and each resource to be uploaded of different spatial types may correspond to different upload specifications, wherein the upload specifications may include attributes and / or operations (also referred to as methods) corresponding to the resources to be uploaded. For example, the resources to be uploaded of multiple spatial types may be conference rooms, classrooms, and parking spaces to be uploaded. Associating the area graphic with the resource to be uploaded is to associate the area graphic with an instance of the resource to be uploaded.

[0070] Taking the example that the color attribute corresponding to the classroom to be mapped is red and the color attribute corresponding to the conference room to be mapped is yellow, when the regional graphic is associated with the resources to be mapped, each associated resource to be mapped will be displayed at the corresponding position of the regional graphic, and the corresponding color will be displayed as the corresponding color. The classroom that has been mapped is displayed in red at the corresponding position of the regional graphic, and the conference room that has been mapped is displayed in yellow at the corresponding position of the regional graphic.

[0071] Taking the operation corresponding to the classroom in the figure to be displayed as configuring classroom equipment and the operation corresponding to the conference room in the figure to be displayed as configuring conference room reservation rules as an example, after associating the area graphic with the resources in the figure to be displayed, you can click the area graphic corresponding to the associated classroom to configure the classroom equipment of the classroom, or you can click the area graphic corresponding to the associated conference room to configure the reservation rules of the conference room.

[0072] By adopting the above technical solution, the regional graphics can be automatically generated, and the regional graphics and the resources to be mapped can be automatically bound, reducing the operation cost of batch manual resource mapping and improving the efficiency of resource mapping. In some embodiments, the mapping area corresponding to the resource to be mapped can be determined by any of the following methods.

[0073] Method 1: Get at least one area in the above picture from the preset configuration file.

[0074] For example, the preset configuration file may be a map file including at least one pre-configured upper map area. The preset configuration file may also be a configuration file including configuration data corresponding to at least one upper map area, wherein the configuration data may define the position, shape and size of the upper map area in a manner such as polygon vertex coordinates, circle center coordinates + radius length, etc.

[0075] Method 2: In response to a drawing operation by a user, obtaining at least one upper image area.

[0076] The at least one upper image area may also be directly drawn using a mouse, a touch screen, or the like.

[0077] After obtaining at least one upper image region by the above-mentioned method 1 or method 2, the position, shape or size of the upper image region may be adjusted in response to an adjustment operation of the user.

[0078] By adopting the above-mentioned technical solution, at least one uploading area can be determined in a flexible manner, so as to automatically generate a regional graphic in the at least one uploading area, and automatically complete the binding of the regional graphic and the resources to be uploaded, thereby reducing the operating cost of batch manual resource uploading and improving the efficiency of resource uploading.

[0079] Embodiment 2 In this embodiment, the preset generation rule may include an area range generation rule. Figure 8 Another schematic diagram of a method for mapping resources provided by an embodiment of the present disclosure is shown, such as Figure 8 As shown, step S102 may include the following steps.

[0080] In step S1027, the size of the external graphic of the target area corresponding to the resource to be uploaded is determined according to the first area parameter.

[0081] Taking the circumscribed rectangle as an example, the size of the circumscribed rectangle includes the height and width of the circumscribed rectangle. The height of the circumscribed rectangle is the difference between the maximum vertical coordinate and the minimum vertical coordinate of the target area, and the width of the circumscribed rectangle is the difference between the maximum horizontal coordinate and the minimum horizontal coordinate of the target area.

[0082] In step S1028, in response to the user's drawing operation on the first path, at least one area graphic is generated in the process of drawing the first path according to the size of the circumscribed graphic.

[0083] In some possible implementations, one or more target areas corresponding to each area in the upper image may be determined based on the second area parameter of the area in the upper image, the first area parameter of the target area, and the first path formed by the touch operation.

[0084] The touch operation may be a mouse click or a mouse drag operation, and the first path may be a first path formed based on the mouse click or the mouse drag operation. The touch operation may also be a finger click or drag operation on the touch screen, or an operation based on a preset key (such as the up, down, left, and right keys) on the keyboard. The first path may also be a predefined first path read from a file, and the present application does not limit the method for obtaining the first path.

[0085] Specifically, in response to the user's drawing operation on the first path, at least one area graphic may be generated in the process of drawing the first path according to the size of the circumscribed rectangle through the following steps.

[0086] In step 10, in response to a first operation at a first location, a first area graphic matching a first area parameter is generated.

[0087] Among them, the first operation can be a mouse click operation or a touch screen touch operation at the first position, and the first operation can also be an operation of dragging and dropping a preset icon of the area graphic to the first position, and this application does not impose any restrictions on this.

[0088] Taking the mouse click operation as an example, in response to the user's mouse click operation at the first position, a first area graphic matching the first area parameters can be generated at the first position, that is, in response to the user's mouse click operation, a first area graphic is generated at the first position in the form of a "stamp".

[0089] In step 11, in response to a second operation on a first path starting from a first position, at least one second area graphic matching the first area parameter is generated on the first path.

[0090] Among them, the center points of the regional graphics can all be on the first path, and the distance between the center points of adjacent regional graphics satisfies at least one of the following conditions: the distance in the horizontal direction is greater than or equal to the width of the circumscribed rectangle, and the distance in the vertical direction is greater than or equal to the height of the circumscribed rectangle, that is, there is no overlapping area between adjacent regional graphics.

[0091] It is understandable that, based on the above judgment conditions, the number and corresponding positions of the regional graphics can be determined according to the path length of any first path and the size of the circumscribed graphics, so as to generate a corresponding number of regional graphics at corresponding positions.

[0092] The second operation may be a mouse dragging operation on the first path, a touch screen sliding operation on the first path, or a click operation at multiple second positions on the first path, and this application does not impose any restrictions on this.

[0093] In step 12, a collection of the first area graphic and the second area graphic is used as the area graphic.

[0094] For example, after obtaining the first area graph and at least one second area graph based on the first operation and the second operation respectively, the collection of the first area graph and the second area graph may be used as the area graph. Fig. 9 A schematic diagram showing another method for generating a regional graph in a resource graphing method provided by an embodiment of the present disclosure is shown as follows: Fig. 9 As shown, the first path is a U-shaped path drawn by the user in the area in the upper figure (the U-shaped path is not shown in the figure).

[0095] In response to a first operation, a regional graphic 1 (first regional graphic) matching the first regional parameters can be generated at a first position (the first position is the center position of the regional graphic 1, not shown in the figure), and in response to a second operation on a first path starting from the first position (a U-shaped first path drawn starting from the first position, the first path is not shown in the figure), regional graphics 2-regional graphics 6 (second regional graphics) matching the first regional parameters are respectively generated, and the collection of the first regional graphic and the second regional graphic (i.e., regional graphic 1-regional graphic 6) is used as the final regional graphic.

[0096] In step S1029, at least one regional graphic is generated according to the size of the circumscribed graphic after the first path is drawn.

[0097] In another possible implementation, at least one regional graphic can be generated according to the coordinates of each point on the first path and the size of the circumscribed rectangle based on the first path after drawing. The first regional graphic can be determined starting from either end of the first path, and the center point of the circumscribed rectangle of the regional graphic is on the first path. If the area in the upper figure exists, the circumscribed rectangle of the regional graphic is within the area in the upper figure. Then, the remaining regional graphics are generated in sequence along the first path, and the distance between the center points of adjacent regional graphics satisfies at least one of the following conditions: the distance in the horizontal direction is greater than or equal to the width of the circumscribed rectangle, and the distance in the vertical direction is greater than or equal to the height of the circumscribed rectangle, that is, there is no overlap between adjacent regional graphics.

[0098] In another embodiment, when the second area graphic of the upper image area has not been determined, one or more corresponding area graphics can be determined according to the first area parameters of the target area and the first path formed by the touch operation during or after the first path is drawn (the distance between the center points of adjacent area graphics satisfies at least one of the following conditions: the distance in the horizontal direction is greater than or equal to the width of the circumscribed rectangle, and the distance in the vertical direction is greater than or equal to the height of the circumscribed rectangle), so that after the upper image area is determined, the generated one or more area graphics can be moved as a whole to the upper image area for matching.

[0099] By adopting the above technical solution, the regional graph can be automatically generated, thereby improving the efficiency of resource mapping. Meanwhile, generating the regional graph distributed along the first path can further improve the flexibility of generating the regional graph.

[0100] Embodiment 3

[0101] In this embodiment, instead of using the external graphics of the target area, multiple closely arranged area graphics may be generated by any of the following methods to further improve the utilization rate of the area in the above figure.

[0102] Method 1: determine the upper image area corresponding to the resource to be uploaded, and generate at least one area graphic matching the first area parameters within the upper image area, wherein the distance between adjacent area graphics is greater than the minimum distance that ensures that there is no overlapping area between adjacent area graphics, and there is no area graphic that exceeds the upper image area.

[0103] Method 2: In response to the user's drawing operation on the first path, the at least one area graphic is generated during the drawing process of the first path; or, the at least one area graphic is generated after the first path is drawn, and the distance between adjacent area graphics is greater than the minimum distance that does not allow overlapping areas to exist between adjacent area graphics.

[0104] In some possible implementations, the distance between adjacent area graphics can be , d is the minimum distance between adjacent area graphics so that there is no overlapping area. The parameters can be adjusted for preset distances greater than 0.

[0105] When the target area is a circle, the minimum distance between adjacent area graphics so that there is no overlapping area is twice the radius of the circle.

[0106] When the target area is a convex polygon, move the convex polygon in any direction to form two convex polygons before and after the movement, and calculate the normal vector of each edge of the convex polygon before and after the movement as a potential separation line. Project all vertices of the two convex polygons onto these separation lines, and record the minimum and maximum values ​​of the projection to form projection line segments. If there are projection line segments on any straight line that do not intersect, then the moving distance is used as the minimum distance d in the moving direction so that there is no overlapping area between adjacent area graphics. It should be noted that for convex polygons, the minimum distance d so that there is no overlapping area between adjacent area graphics may be different depending on the moving direction.

[0107] In some embodiments, the following steps may be used to generate at least one area graphic matching the first area parameter in the area in the above figure through the following technical solution of method 1.

[0108] Step 20: Determine a first distance and a second distance in the horizontal direction and the vertical direction respectively corresponding to the target area so that there is no overlapping area between adjacent area graphics.

[0109] Step 21: Generate at least one area graphic matching the first area parameter according to the size of the area in the above figure, the first distance and the second distance.

[0110] For example, when the target area is a convex polygon and the area in the upper figure is a rectangle, at least one area graphic matching the first area parameter can be generated in the area in the upper figure by the following technical solution of method 1.

[0111] Step 30, first generate a regional graphic matching the first regional parameter in the upper left corner of the region in the upper figure, and the regional graphic satisfies: 1) the minimum value of the horizontal coordinate on the regional graphic is equal to or slightly greater than the minimum value of the horizontal coordinate of the region in the upper figure; 2) the maximum value of the vertical coordinate on the regional graphic is equal to or slightly less than the maximum value of the vertical coordinate of the region in the upper figure. That is, the left side and the upper side of the regional graphic are close to the left side and the upper side of the region in the upper figure.

[0112] Step 31: Move the regional graphic to the right by a first distance to generate another regional graphic in the same row as the regional graphic.

[0113] Step 32, repeat step 31 until the maximum value of the horizontal coordinate on the moved regional graphic is greater than or equal to the maximum value of the horizontal coordinate of the region in the upper figure, and generate a row of regional graphics.

[0114] Step 33: Move the regional graphic generated in step 30 downward by a second distance to generate another regional graphic in the same column as the regional graphic generated in step 20.

[0115] Step 34: Repeat steps 31-32 to generate a new row of area graphics based on the area graphics generated in step 33.

[0116] Step 35, and so on, repeatedly generate multiple rows of regional graphics until the minimum value of the vertical coordinate on the moved regional graphics is less than or equal to the minimum value of the vertical coordinate of the region in the upper figure.

[0117] It should be noted that the above steps 30-35 generate multiple area graphics from left to right and from top to bottom. It is understandable that different generation orders may be used, such as from right to left and from bottom to top, to generate multiple area graphics, and the generation method is similar.

[0118] It is understandable that a rectangle rotated by a certain angle may also adopt the above-mentioned convex polygon method to generate at least one area graphic that matches the first area parameter. Fig.10A schematic diagram showing another method for generating a regional graph in a resource graphing method provided by an embodiment of the present disclosure is shown as follows: Fig.10 As shown, when the target area is a rectangle rotated at a certain angle, the technical solution of the above method 1 can be used to generate the following Fig. 9 Multiple closely spaced area graphics are shown.

[0119] In some embodiments, the target area may also be a non-convex polygon. For a non-convex polygon, the non-convex polygon can be converted into multiple convex polygons by connecting the vertices of the polygon. When the multiple convex polygons included in the area graphic after the move do not overlap with any convex polygon included in the area graphic before the move, it is determined that the area graphic after the move does not overlap with the area graphic before the move, and multiple closely arranged area graphics can be generated through the above steps 30-35.

[0120] Fig.11 A schematic diagram showing another method of generating a regional graph in the resource mapping method provided by an embodiment of the present disclosure is shown. Fig.11 As shown, when the target area is a rectangle rotated at a certain angle, the technical solution of the above method 2 can be used to generate the following Fig.11 The multiple area graphics following the first path shown in the figure. The specific method of determining whether adjacent area graphics overlap and the technical solution of generating multiple area graphics following the first path can be referred to the relevant embodiments, which will not be elaborated here.

[0121] In some embodiments, after generating multiple densely arranged area graphics through the above step S102, the generated area graphics can be clicked and / or boxed (including multiple clicks and / or boxing) to use the selected or unselected area graphics as the final area graphics. Fig.10 In the example, after obtaining the area graphics 1-8, you can also select the area graphics 5-7 and use the selected area graphics 5-7 as the final area graphics, or use the area graphics 1-4, 8 other than the area graphics 5-7 as the final area graphics (i.e., inverse selection by selecting the area graphics).

[0122] Fig.12 Another schematic diagram of a method for mapping resources provided by an embodiment of the present disclosure is shown, such as Fig.12 As shown, step S103 may include the following steps.

[0123] In step S1031, a first quantity is determined according to the number of regional graphics and the number of resources to be uploaded.

[0124] In some possible implementations, the smaller value between the number of regional graphics and the number of resources to be uploaded may be used as the first number.

[0125] For example, assuming that the number of regional graphics is n, and the number of resources to be uploaded is N, the first number can be , where min() is the smaller operation.

[0126] In step S1032, the first number of regional graphics and the resources to be uploaded are respectively associated according to a preset association order.

[0127] For example, the preset association order can be to arrange the serial numbers of the resources to be mapped in descending or ascending order. Taking the resources to be mapped as parking spaces as an example, the regional graphics and the resources to be mapped can be associated in ascending order of the parking space numbers corresponding to the parking spaces.

[0128] The association order can also be determined by the sequence number and type of the resources to be uploaded. For example, if the resources to be uploaded are conference rooms (M1, M2, M3) and classrooms (C1, C2, C3, C4), the association order can be M1, M2, M3, C1, C2, C3, C4. That is, the association of conference rooms is completed in order of type first, and then the association of classrooms is completed in order.

[0129] The association order can also be a pre-defined order. Taking the above figure as an example, the resources are conference rooms (M1, M2, M3) and classrooms (C1, C2, C3, C4). The association order can also be a customized M1, C1, C2, M2, M3, C3, C4.

[0130] In the case of including multiple image areas, the first quantity can be determined according to the number of area graphics corresponding to the first image area and the number of resources to be imaged, and the association between the area graphics corresponding to the first image area and the resources to be imaged is completed. Then, the first quantity is re-determined according to the number of area graphics corresponding to the second image area and the number of resources to be imaged after deleting the associated resources to be imaged, and the association between the area graphics corresponding to the first image area and the resources to be imaged is completed. And so on.

[0131] By adopting the above technical solution, it is possible to automatically generate regional graphics and automatically complete the binding of regional graphics and resources to be uploaded, thereby reducing the operating cost of batch manual resource uploading and improving the efficiency of resource uploading.

[0132] In some embodiments, the method may further include at least one of the following:

[0133] In response to an adjustment operation by a user, adjusting at least one area graphic;

[0134] In response to the user's unbinding operation, the associated regional graphics and the resources to be uploaded are unassociated;

[0135] In response to the user's binding operation, the unassociated regional graphics and the resources to be uploaded are associated;

[0136] In response to a saving operation by the user, saving at least one generated area graphic, or an association relationship between the associated area graphic and the resource to be uploaded;

[0137] In response to the user's application operation, the saved area graphic, or the association relationship between the saved area graphic and the resource to be uploaded, is applied to the new uploaded area.

[0138] The adjustment operation may be to adjust at least one of the shape, size and position of the region graphic. The object of the adjustment operation may be a part of the region graphic in the generated region graphic, or may be all the region graphics, which is not limited in this application.

[0139] In some embodiments, when at least one regional graphic is adjusted in response to the user's adjustment operation, the distance between adjacent regional graphics may be too large or there may be an overlap between adjacent regional graphics. In this embodiment, after at least one regional graphic is adjusted in response to the user's adjustment operation, the distance between the adjusted regional graphics may be automatically corrected so that the distance between adjacent regional graphics is within , and there is no overlap with the boundary of the area in the above figure. For example, if the distance between adjacent area graphics is greater than , then the distance between adjacent regional graphics can be adjusted to For example, if the edges between the adjusted regional graphics produce overlapping areas, the distance between adjacent regional graphics can be adjusted based on SAT until the distance between adjacent regional graphics is within If the adjusted regional graphics and the edge of the area in the upper image overlap, the position of the regional graphics can be adjusted until no overlapping area is generated. If at least one regional graphic exceeds the area in the upper image after automatic adjustment, the regional graphic can be marked and displayed to the user for manual processing.

[0140] Fig.13 A schematic diagram showing an automatic correction area graphic in the resource mapping method provided by an embodiment of the present disclosure is shown as follows: Fig.13 As shown in (a), after the rotation operation of area graphics 1 and area graphics 2, area graphics 1 and area graphics 2 overlap with the edge of the area in the above figure, and area graphics 1 and area graphics 2, and area graphics 2 and area graphics 3 also overlap. At this time, area graphics 1-4 can be automatically rotated as follows Fig.13The automatic adjustment shown in (b) moves the positions of area graphics 1-3 respectively, so that area graphics 1 and area graphics 2 no longer overlap with the edge of the area in the above figure, and the distance between area graphics 1 and area graphics 2, and between area graphics 2 and area graphics 3 is After the automatic adjustment, the region graph 4 will not meet the corresponding conditions and can be marked as an abnormal region graph so that the user can perform manual processing.

[0141] By adopting the above technical solution, the regional graphics can be manually adjusted and automatically corrected according to the result of the manual adjustment, so that the map can be matched more accurately.

[0142] In some embodiments, in response to the user's unbinding operation, the associated regional graphics and the resources to be uploaded can be unassociated. In response to the user's binding operation, the unassociated regional graphics and the resources to be uploaded can be associated.

[0143] By adopting the above technical solution, the binding of regional graphics and resources to be uploaded is automatically completed, the operating cost of batch manual resource uploading is reduced, and the efficiency of resource uploading is improved. The above unbinding and binding operations can be used to adjust the association relationship accordingly, thereby further improving the flexibility of resource uploading.

[0144] In some embodiments, in response to a user's save operation, at least one generated area graphic, or the association relationship between an associated area graphic and a resource to be uploaded can be saved; in response to a user's apply operation, the saved area graphic, or the association relationship between a saved area graphic and a resource to be uploaded can be applied to a new uploaded area.

[0145] It is understandable that when resources are mapped, there may be different areas with similarities. In these different areas, the number and location of the mapped areas are similar. For example, the room layouts on different floors of the same building are similar, and the parking space layouts on the first and second underground floors are similar. At least one area graphic generated in one area, or the association relationship between the associated area graphic and the resource to be mapped can be saved and applied to another similar area.

[0146] For example, by saving the area graphics generated on the second floor and applying it to the third floor, the area graphics of the third floor can be directly generated. Alternatively, by establishing the association relationship between the area graphics of the second floor and the resources to be uploaded, the resources to be uploaded on the second floor in the association relationship can be replaced with the resources to be uploaded on the third floor, thereby obtaining the association relationship between the area graphics of the third floor and the resources to be uploaded.

[0147] By adopting the above technical solution, the regional graphics and / or association relationships can be applied to the resource mapping of new similar regions, further improving the efficiency of resource mapping of new regions.

[0148] Fig.14 A block diagram of a resource map device provided by an embodiment of the present application is shown, such as Fig.14 As shown, the device 100 in the resource diagram includes:

[0149] An acquisition module 110 is used to acquire a first area parameter of a target area corresponding to the resource to be mapped, where the first area parameter is used to characterize the shape and size of the target area;

[0150] The generating module 120 is used to generate a plurality of area graphics based on the first area parameter, a preset generating rule and at least one of the following: the second area parameter of the area in the upper figure, and the first path formed by the touch operation; wherein the second area parameter is used to characterize the shape and size of the area in the upper figure;

[0151] The image uploading module 130 is used to associate the regional image with the resource to be uploaded.

[0152] Optionally, the generating module 120 is further configured to:

[0153] Determine the size of the external graphic of the target area corresponding to the resource to be uploaded according to the first area parameter;

[0154] Determine the number of regional graphics according to the size of the circumscribed graphics and at least one of the following: the size of the area in the upper figure, the path length of the first path;

[0155] A corresponding number of regional graphics are generated in the region shown in the upper figure.

[0156] Optionally, the preset generation rule includes an area range generation rule, and the generation module 120 is further used to:

[0157] Determine the image upload area corresponding to the resources to be uploaded;

[0158] Determine the size of the external graphic of the target area corresponding to the resource to be uploaded according to the first area parameter;

[0159] The number of regional graphics is determined according to the size of the circumscribed graphics and the size of the upper image area, and a corresponding number of regional graphics are generated in the upper image area.

[0160] Optionally, the generating module 120 is further configured to:

[0161] Obtaining a second region parameter from a preset configuration file to determine at least one region in the upper image; or,

[0162] In response to a drawing operation by a user, at least one upper image region is acquired.

[0163] Optionally, the preset generation rule includes a path following generation rule, and the generation module 120 is further used to:

[0164] Determine the size of the external graphic of the target area corresponding to the resource to be uploaded according to the first area parameter;

[0165] In response to the user's drawing operation on the first path, generating the at least one regional graphic during the drawing process of the first path according to the size of the circumscribed graphic; or generating the at least one regional graphic after the first path is drawn according to the size of the circumscribed graphic;

[0166] The distance between the center points of adjacent area graphics satisfies at least one of the following conditions: the distance in the horizontal direction is greater than or equal to the width of the circumscribed graphic, and the distance in the vertical direction is greater than or equal to the height of the circumscribed graphic.

[0167] Optionally, the generating module 120 is further configured to:

[0168] In response to a first operation at a first location, generating a first area graph matching the area parameters;

[0169] In response to a second operation on the first path starting from the first position, generating at least one second area graphic matching the area parameters on the first path;

[0170] A combination of the first area graphic and the second area graphic is used as the area graphic.

[0171] Optionally, the generating module 120 is further configured to:

[0172] Determine an upper image region corresponding to the resource to be upper imaged, and generate at least one region graphic matching the first region parameter in the upper image region, wherein the distance between adjacent region graphics is greater than a minimum distance that allows no overlapping regions between adjacent region graphics, and there is no region graphic beyond the upper image region; or,

[0173] In response to the user's drawing operation on the first path, the at least one area graphic is generated during the drawing process of the first path; or, the at least one area graphic is generated after the first path is drawn, and the distance between adjacent area graphics is greater than the minimum distance that does not allow overlapping areas to exist between adjacent area graphics.

[0174] Optionally, the module 130 shown in the above figure is further used for:

[0175] Determine a first quantity according to the number of regional graphics and the number of resources to be uploaded, wherein the first quantity is the number of regional graphics to be bound and the number of resources to be uploaded;

[0176] The first number of regional graphics and the resources to be uploaded are associated with each other according to a preset binding order.

[0177] The device 100 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be described in detail here.

[0178] Fig.15 A block diagram of another resource-based device provided in an embodiment of the present application is shown, such as Fig.15 As shown, the device 100 in the resource diagram further includes:

[0179] The enhancement module 140 is configured to:

[0180] In response to an adjustment operation by a user, adjusting at least one area graphic;

[0181] In response to the user's unbinding operation, unbinding the bound regional graphics and the resources to be uploaded;

[0182] In response to the user's binding operation, the unbound regional graphics and the resource to be uploaded are bound;

[0183] In response to a saving operation by the user, saving at least one generated area graphic, or an association relationship between the associated area graphic and the resource to be uploaded;

[0184] In response to the user's application operation, the saved area graphic, or the association relationship between the saved area graphic and the resource to be uploaded, is applied to the new uploaded area.

[0185] The device 100 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be described in detail here.

[0186] Fig.16 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure is shown. Fig.16 As shown, at the hardware level, the electronic device includes at least one processor, and optionally includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0187] The processor, network interface and memory can be interconnected through an internal bus, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0188] The memory stores the program. Specifically, the program may include a program code, and the program code includes at least one computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0189] At least one processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for locating the target user at the logical level. At least one processor executes the program stored in the memory and specifically performs: the method disclosed in the embodiment shown in the first aspect or the second aspect and realizes the functions and beneficial effects of each method described in the method embodiment above, which will not be repeated here.

[0190] The method disclosed in the embodiment shown in the first aspect or the second aspect of the present disclosure can be applied to at least one processor, or implemented by at least one processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in at least one processor. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0191] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.

[0192] Of course, in addition to software implementation, the electronic device disclosed in the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0193] The embodiments of the present disclosure also propose a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by at least one processor, they implement the method disclosed in the embodiment shown in the first aspect or the second aspect and implement the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.

[0194] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0195] Furthermore, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the following process is implemented: the method disclosed in the embodiment shown in the first aspect or the second aspect and the functions and beneficial effects of each method described in the previous method embodiments are implemented, which will not be repeated here.

[0196] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the various processes of the method disclosed in the embodiment shown in the first aspect or the second aspect, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0197] In short, the above is only a preferred embodiment of the present disclosure and does not limit the protection scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0198] The systems, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0199] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0200] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0201] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for mapping resources, characterized in that: The method comprises: Acquire a first area parameter of a target area corresponding to the resource to be mapped, where the first area parameter is used to characterize the shape and size of the target area; Generate a plurality of area graphics based on the first area parameter, a preset generation rule, and at least one of the following: a second area parameter of the area in the upper image, and a first path formed by the touch operation; wherein the second area parameter is used to characterize the shape and size of the area in the upper image; Associating the regional graphics with the resources to be uploaded; The generating of a plurality of area graphics based on the first area parameter, a preset generation rule, and at least one of the following: the second area parameter of the area in the above figure, and the first path formed by the touch operation, includes: Determine the size of the circumscribed graphic of the target area corresponding to the upper image resource according to the first area parameter; determine the number of area graphics according to the size of the circumscribed graphic and at least one of the following: the size of the upper image area, the path length of the first path; generate a corresponding number of area graphics in the upper image area.

2. The method according to claim 1, characterized in that The preset generation rule includes an area range generation rule, and the generating of a plurality of area graphics includes: Determine the image uploading area corresponding to the image uploading resource; The number of regional graphics is determined according to the size of the circumscribed graphics and the size of the upper image area, and a corresponding number of regional graphics are generated in the upper image area.

3. The method according to claim 2, characterized in that The determining the image uploading area corresponding to the image uploading resource includes: Obtaining a second area parameter from a preset configuration file to determine at least one area in the upper image; or, In response to a drawing operation by a user, at least one of the upper image regions is acquired.

4. The method according to claim 1, characterized in that: The preset generation rule includes a path following generation rule, and the generating of a plurality of area graphics includes: In response to a user's drawing operation on the first path, the plurality of regional graphics are generated according to the size of the circumscribed graphic during the drawing process of the first path; or, according to the size of the circumscribed graphic, the plurality of regional graphics are generated after the first path is drawn; The distance between the center points of adjacent area graphics satisfies at least one of the following conditions: the distance in the horizontal direction is greater than or equal to the width of the circumscribed graphic, and the distance in the vertical direction is greater than or equal to the height of the circumscribed graphic.

5. The method according to claim 4, characterized in that Generating the at least one regional graphic according to the size of the circumscribed graphic during the drawing process of the first path includes: In response to a first operation at a first location, generating a first area graphic matching the area parameters; In response to a second operation on a first path starting from a first position, generating at least one second area graphic matching the area parameter on the first path; A collection of the first area graphics and the second area graphics is used as the plurality of area graphics.

6. The method according to claim 1, characterized in that The generating of a plurality of regional graphics comprises: generating at least one regional graphic matching the first regional parameter in the upper image region, wherein the distance between adjacent regional graphics is greater than the minimum distance that does not allow overlapping regions between adjacent regional graphics, and there is no regional graphic beyond the upper image region; or, In response to a user's drawing operation on a first path, the at least one area graphic is generated during the drawing process of the first path; or, the at least one area graphic is generated after the first path is drawn, wherein a distance between adjacent area graphics is greater than the minimum distance.

7. The method according to claim 1, characterized in that The associating the regional graphic with the resource to be uploaded includes: Determine a first quantity according to the quantity of the regional graphics and the quantity of the resources to be uploaded, the first quantity being the quantity of the regional graphics to be bound and the quantity of the resources to be uploaded; The first number of regional graphics and the resources to be uploaded are respectively associated according to a preset association order.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises at least one of the following: In response to an adjustment operation by a user, adjusting at least one area graphic; In response to the user's unbinding operation, unbinding the bound regional graphics and the resources to be uploaded; In response to the user's binding operation, the unbound regional graphics and the resource to be uploaded are bound; In response to a saving operation by the user, saving at least one generated area graphic, or an association relationship between the associated area graphic and the resource to be uploaded; In response to the user's application operation, the saved area graphic, or the association relationship between the saved area graphic and the resource to be uploaded, is applied to the new uploaded area.

9. A device for mapping resources, characterized in that: The device comprises: An acquisition module, used for acquiring a first area parameter of a target area corresponding to the resource to be mapped, wherein the first area parameter is used for characterizing a shape and a size of the target area; A generating module, configured to generate a plurality of area graphics based on the first area parameter, a preset generating rule, and at least one of the following: a second area parameter of the area in the upper image, and a first path formed by a touch operation; wherein the second area parameter is used to characterize the shape and size of the area in the upper image; A map uploading module, used to associate the regional graphics with the resources to be uploaded; Among them, the generation module is also used to: Determine the size of the circumscribed graphic of the target area corresponding to the upper image resource according to the first area parameter; determine the number of area graphics according to the size of the circumscribed graphic and at least one of the following: the size of the upper image area, the path length of the first path; generate a corresponding number of area graphics in the upper image area.

10. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the resource mapping method as claimed in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for mapping resources according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Multi-terminal screen loading method, device and equipment applied to electronic whiteboard

    CN112711389A

  • Page display method and device, electronic equipment and storage medium

    CN115712788A