Resource mapping method, device, equipment and storage medium
By automatically determining and displaying the location of resources to be mapped, the problem of low resource mapping efficiency in the existing technology is solved, and the continuous mapping of resources and improvement of query efficiency are achieved.
Patent Information
- Application Number
- CN202210709729.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-21
AI Technical Summary
The existing resource mapping method is inefficient and requires users to manually drag and drop resources to the map location to be mapped, which results in time, effort and low efficiency.
When it is detected that the first resource in the resource list to be mapped has been mapped on the target map, the second resource to be mapped is automatically determined and displayed, and its icon is displayed directly at the target location to avoid repeated manual drag and drop operations by the user. , optimizing the above mapping process by obtaining the resources to be processed and determining the fine-grained map display.
It improves the efficiency of resource mapping, shortens the manual operation process, automatically realizes continuous resource mapping, avoids waste of resources, and improves the efficiency of mapping and querying.
Smart Images

Figure CN114968414B
Abstract
Description
Technical Field
[0001] The present application relates to the field of resource processing technology, and in particular to a resource mapping method, device, equipment and storage medium. Background Art
[0002] The existing method of uploading resources to a map is usually to manually drag the resources in the resource tree or resource list to the corresponding positions on the map to be uploaded one by one, thereby giving the resources map location information and associating the resources with the map to be uploaded. Therefore, when the number of resources to be uploaded is large, the dragging operation is time-consuming and labor-intensive, and inefficient.
[0003] That is, there is a technical problem of low resource uploading efficiency in the prior art. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a resource mapping method, device, equipment and storage medium, aiming to improve the efficiency of resource mapping and solve the technical problem of low efficiency of existing resource mapping.
[0005] The present application provides a method for uploading a resource to a map, the method comprising:
[0006] When it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the second resource in the list of resources to be mapped is automatically determined;
[0007] A target position of the second resource on the target map is determined, and an icon of the second resource is displayed at the target position.
[0008] In a possible implementation of the present application, the method includes:
[0009] When uploading a picture, the icon corresponding to the type of resource to be uploaded is displayed.
[0010] In a possible implementation manner of the present application, before the step of automatically determining the second resource to be mapped in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the method includes:
[0011] Get the resources to be processed;
[0012] Determining the display granularity of the target map;
[0013] According to different resource attributes of the resources to be processed and the fine granularity, resources to be uploaded are selected from the resources to be processed to obtain a list of resources to be uploaded.
[0014] In a possible implementation manner of the present application, after the step of automatically adding the second resource at the target location to complete the above drawing of the second resource, the method includes:
[0015] If a preset image uploading cut-off condition is detected, stopping uploading images to the resources in the list of resources to be uploaded;
[0016] The preset image uploading end condition includes that all resources in the to-be-uploaded resource list have been uploaded or an end instruction for ending the continuous image uploading mode has been detected.
[0017] In a possible implementation manner of the present application, after the step of displaying the icon of the second resource at the target location, the method includes:
[0018] Determine the screen coordinates of the target position in the screen coordinate system;
[0019] Obtaining a conversion relationship between the preset screen coordinate system and the corresponding map coordinate system of the target map;
[0020] Determining the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship;
[0021] A mapping relationship between the map coordinates of the target location and the second resource is determined and saved.
[0022] In a possible implementation manner of the present application, the resource mapping method further includes:
[0023] When an editing instruction for editing an uploaded resource is detected, determining whether the upload mode has been exited;
[0024] If it is determined that the uploading mode has been exited, the uploaded resources are edited according to the editing instruction, and the target positions of the uploaded resources and the list of resources to be uploaded are jointly edited.
[0025] The present application also provides a resource mapping device, the device comprising:
[0026] A first determination module is used to automatically determine a second resource to be mapped in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map;
[0027] The second determination module is used to determine a target position of the second resource on the target map, and display an icon of the second resource at the target position.
[0028] In a possible implementation manner of the present application, the device further includes: a display module, configured to display, when uploading a picture, a type icon corresponding to the type of the resource to be uploaded;
[0029] The device further includes: a first acquisition module for acquiring resources to be processed; a fine-grained determination module for determining the display fine-grainedness of the target map; a selection module for selecting resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the fine-grainedness, and obtaining a list of resources to be mapped;
[0030] The device further comprises: a stop module, configured to stop uploading images to the resources in the list of resources to be uploaded if a preset image uploading cut-off condition is detected; wherein the preset image uploading cut-off condition comprises that all the resources in the list of resources to be uploaded have been uploaded or an end instruction for ending the continuous image uploading mode has been detected;
[0031] The resource mapping device further includes: a third determination module, used to determine the screen coordinates of the target position in the screen coordinate system; a second acquisition module, used to acquire a conversion relationship between the preset screen coordinate system and a corresponding map coordinate system of the target map; a fourth determination module, used to determine the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship; a fifth determination module, used to determine and save the mapping relationship between the map coordinates of the target position and the second resource;
[0032] The device also includes: a sixth determination module, which is used to determine whether the uploading mode has been exited when an editing instruction to edit the uploaded resource is detected; an editing module, which is used to edit the uploaded resource according to the editing instruction if it is determined that the uploading mode has been exited, and to jointly edit the target location of the uploaded resource and the list of resources to be uploaded.
[0033] The present application also provides a resource mapping device, which is a physical node device. The resource mapping device includes: a memory, a processor, and a program of the resource mapping method stored in the memory and executable on the processor. When the program of the resource mapping method is executed by the processor, the steps of the resource mapping method described above can be implemented.
[0034] In order to achieve the above-mentioned purpose, a storage medium is further provided, on which a resource mapping program is stored, and when the resource mapping program is executed by a processor, the steps of any of the above-mentioned resource mapping methods are implemented.
[0035] The present application provides a resource mapping method, device, equipment and storage medium. Compared with the prior art that requires users to manually drag resources to the corresponding position on the map to be mapped when assigning map location information to resources, resulting in low resource mapping efficiency, in the present application, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the second resource to be mapped in the list of resources to be mapped is automatically determined, and after determining the target position of the second resource on the target map, the icon of the second resource is directly displayed at the target position. That is, in the present application, continuous resource mapping is automatically achieved, avoiding the user's repeated manual dragging of resources, shortening the manual operation process, thereby improving the efficiency of resource mapping and solving the technical problem of low resource mapping efficiency in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a schematic diagram of the process of the first embodiment of the resource uploading method of the present application;
[0037] Figure 2 This is a detailed flow chart before step S10 in the first embodiment of the resource method of this application;
[0038] Figure 3 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application;
[0039] Figure 4 This is a schematic diagram of the first scenario involved in the resource management method of this application;
[0040] Figure 5 This is a schematic diagram of the second scenario involved in the resource method of this application;
[0041] Figure 6 This is a schematic diagram of the third scenario involved in the resource method of this application. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The present application embodiment provides a resource mapping method. In one embodiment of the resource mapping method of the present application, the resource mapping method is applied to a resource mapping device. Figure 1 , the method comprising:
[0044] Step S10, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, automatically determining the second resource in the list of resources to be mapped to be mapped;
[0045] Step S20: determine the target position of the second resource on the target map, and display the icon of the second resource at the target position.
[0046] This embodiment aims to: improve the efficiency of resource uploading.
[0047] In the present application, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the second resource to be mapped in the list of resources to be mapped is automatically determined, and after the target position of the second resource on the target map is determined, the icon of the second resource is directly and automatically displayed at the target position. That is, in the present application, the continuous mapping of resources is automatically realized, avoiding the user's repeated manual dragging of resources, shortening the manual operation process, thereby improving the efficiency of resource mapping, and solving the technical problem of low efficiency of resource mapping in the prior art.
[0048] In the present application, when uploading a picture, the type icon corresponding to the type of resource to which the current picture is to be uploaded is also displayed. Since the type icon corresponding to the type of resource to which the current picture is to be uploaded is also displayed, the uploading process of the current type of resource is clear, making it easy for users to understand the uploading progress and status of each type of resource.
[0049] In the present application, when a large number of resources are mapped, the resources to be processed with corresponding resource attributes that can be displayed on the current map are determined according to the different resource attributes of the resources to be processed and the display granularity of the map, and then the resources to be processed with corresponding resource attributes that can be displayed on the current map are added to the list of resources to be mapped, so as to avoid adding resources to be processed that cannot be displayed and causing waste of resources. In addition, in the present embodiment, the resources to be processed that are not mapped are processed in an orderly manner (based on the attributes and fine-grained division), so as to further improve the efficiency of mapping.
[0050] In the present application, when all resources in the to-be-uploaded resource list have completed uploading or an end instruction to end the continuous uploading mode is detected, the continuous uploading is stopped to meet the uploading requirements in different scenarios.
[0051] In the present application, the mapping relationship between the map coordinates of the target location and the second resource can be automatically determined and saved based on the screen coordinates of the target location in the screen coordinate system. Therefore, when the resource after the above picture needs to be displayed again, it can be displayed directly.
[0052] In the present application, the uploaded resources can also be edited, and after editing the uploaded resources, the target location of the uploaded resources and the list of resources to be uploaded can be jointly edited, instead of requiring the user to manually edit the target location of the uploaded resources and the list of resources to be uploaded, thereby saving resources and improving efficiency.
[0053] As an example, the resource mapping method may be applied to a resource mapping apparatus, which belongs to a resource mapping device.
[0054] As an example, the application scenario of the resource mapping method may be: the resource is located at a position that cannot be accurately located by GPS, but the corresponding resource needs to be displayed on the map for subsequent display or supervision.
[0055] As an example, resources located in an underground parking lot (which GPS cannot accurately locate) need to be displayed on the map.
[0056] As an example, resources located indoors (which GPS cannot accurately locate) need to be displayed on a map.
[0057] As an example, the resources may be monitoring equipment, fire fighting equipment, and security equipment, etc., without specific limitation.
[0058] As an example, since the resources such as monitoring equipment, fire-fighting equipment and security equipment are completed in the above figure, the user can directly view the settings of monitoring equipment, fire-fighting equipment and security equipment in the corresponding area through the map, that is, determine whether the settings of monitoring equipment, fire-fighting equipment and security equipment in the corresponding area meet the requirements.
[0059] As an example, after resources such as monitoring equipment, fire fighting equipment, and security equipment are mapped, it is also possible to determine whether the currently mapped resources need to be added or maintained based on the deployment of the resources determined by the map.
[0060] As an example, after resources such as monitoring equipment, fire fighting equipment, and security equipment are completed in the above figure, when a crisis occurs, it is possible to simply and quickly determine the resources that can be called upon.
[0061] As an example, a query icon is also set on the target map, based on which the required resources can be queried on the target map.
[0062] As an example, Figure 4 As shown, the map is a GIS map and supports zooming in and out by scrolling the mouse wheel.
[0063] As an example, a map has its own map coordinate system. When the mouse wheel is used to zoom in or out on the map, the conversion relationship between the map coordinate system and the screen coordinate system changes.
[0064] The specific steps are as follows:
[0065] Step S10, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, automatically determining the second resource in the list of resources to be mapped to be mapped;
[0066] In this embodiment, Figure 4 , Figure 5This is a schematic diagram of the resource uploading configuration page. In these two schematic diagrams, the left side is the list of resources to be uploaded, and the right side is the target map. The target map supports zooming in and out by scrolling the mouse wheel.
[0067] As an example, the resource list shown in the above figure specifically includes at least 2 resources.
[0068] As an example, the list of resources to be uploaded may include multiple sub-lists. When the list of resources to be uploaded includes multiple sub-lists, after the resources in the first sub-list are uploaded, the uploading of resources in the second sub-list is triggered.
[0069] As an example, in order to automatically determine the second resource in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, it is necessary to set a preset program segment in the resource mapping device, and set a processing logic in the preset program segment. The processing logic is used to automatically execute the step of determining the second resource in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map.
[0070] As an example, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the next resource in the list of resources to be mapped is determined to be the second resource according to the list display order.
[0071] Among them, refer to Figure 2 Before the step of automatically determining the second resource to be mapped in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the method comprises:
[0072] Step S01, obtaining resources to be processed;
[0073] Step S02, determining the display granularity of the target map;
[0074] Step S03: selecting resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the fine granularity, and obtaining a list of resources to be mapped.
[0075] In this embodiment, how to obtain a list of resources to be uploaded is described.
[0076] Specifically, the resources to be processed may be resources to be uploaded whose amount of resources is greater than the preset data amount. That is, only the resources to be uploaded whose amount of resources is greater than the preset data amount need to be divided into different lists of resources to be uploaded according to resource attributes and fine-grainedness, and then uploaded in batches. For a small number of resources to be uploaded, they can be uploaded all at once directly in one list of resources to be uploaded.
[0077] In this embodiment, the method of obtaining the resources to be processed may be:
[0078] Method 1: Get the imported resources to be processed;
[0079] Method 2: directly connect to obtain the resources to be processed from the system that is in communication with the resource uploading device.
[0080] After obtaining the resources to be processed, different lists of resources to be uploaded are generated according to different resource attributes of the resources to be processed, including type attributes, name attributes, or scene attributes, etc., which are not specifically limited.
[0081] In an embodiment, when a large number of resources are to be mapped, different lists of resources to be mapped are generated according to different resource attributes of the resources to be processed, and then the resources to be processed that have not been mapped are processed in order to further improve the mapping efficiency.
[0082] In an embodiment, when a large number of resources are mapped, different lists of resources to be mapped are generated according to different resource attributes of the resources to be processed. Therefore, in subsequent queries, visual queries can also be performed based on the resource attributes to improve query efficiency.
[0083] As an example, a resource attribute is a type attribute. If you want to query the deployment status of a certain type of monitoring equipment in a certain area in a visual map, you can directly query based on the corresponding attribute as a keyword.
[0084] In this embodiment, the larger the display granularity, the more precise or accurate the display. Since the display granularity is larger, fewer pending resources can be displayed on a resource map configuration page. Therefore, in this embodiment, the pending resources of the corresponding resource attributes that can be displayed on the current map are determined according to the display granularity of the map. Specifically, for example, the display granularity of the map can be: one pixel of the current map corresponds to an actual display area of 100m 2 , there are 10 pending resources that can be displayed on the resource map configuration page (10 resources with a certain attribute are configured in the pending map resource list, such as 10 fire fighting devices with the same production model), and the actual area displayed for one pixel of the current map is 1000m 2 , there are 100 pending resources that can be displayed on the resource configuration page (100 resources of a certain attribute can be configured in the pending resource list, such as 100 security devices of the same manufacturer).
[0085] In this embodiment, the to-be-processed resources with corresponding resource attributes that can be displayed on the current map are added to the list of resources to be added to the map, so as to avoid adding the to-be-processed resources that cannot be displayed, thereby avoiding the waste of resources.
[0086] The method for determining the display granularity of the target map may be: directly reading from the configuration information.
[0087] In this embodiment, the method includes:
[0088] Step A1, when uploading a picture, display the type icon corresponding to the type of resource to be uploaded.
[0089] In this embodiment, when uploading resources, the type icon corresponding to the type of the resource to be uploaded is displayed, so that the uploading process of each type of resource currently being uploaded is clear, which is convenient for users to understand the uploading progress and status of each type of resource currently being uploaded.
[0090] In the present application, it should be noted that resource types and icons of each type are managed in a unified manner, and each resource type corresponds to an icon.
[0091] Specifically, Figure 5 As shown, the user clicks on resource A (the first resource) with the mouse, and at this time, the button of resource A in the list of resources to be added is selected, and at the same time, the mouse cursor is displayed as icon A (or based on the unique identifier (id) of resource A, the resource type to which it belongs and the icon corresponding to the type are queried, and the mouse cursor is displayed as type icon A). After the mouse cursor is displayed as icon A, if it is detected that the user clicks on a location in the target map, resource A is added at the clicked location. After resource A is added, the list of resources to be added is automatically queried to obtain the next resource B that has not been added to resource A. At the same time, the mouse cursor is displayed as icon B (or based on the unique identifier (id) of resource B, the resource type to which it belongs and the icon corresponding to the type are queried, and the mouse cursor is displayed as type icon B).
[0092] Step S20, determining a target position of the second resource on the target map, and displaying an icon of the second resource at the target position;
[0093] In this embodiment, determining the target position of the second resource on the target map may be:
[0094] If it is detected that a certain location on the target map is clicked and confirmed by the user, then the certain location is the target location.
[0095] In this embodiment, an icon of the second resource is also displayed at the target location.
[0096] In this embodiment, when the icon of the second resource is displayed at the target location, the above figure is completed.
[0097] After the step of automatically adding the second resource at the target location to complete the above drawing of the second resource, the method includes:
[0098] If a preset image uploading cut-off condition is detected, stopping uploading images to the resources in the list of resources to be uploaded;
[0099] The preset image uploading end condition includes that all resources in the to-be-uploaded resource list have been uploaded or an end instruction for ending the continuous image uploading mode has been detected.
[0100] In this embodiment, when all resources in the image uploading resource list are uploaded, the image uploading is automatically completed, and when an end instruction for ending the continuous image uploading mode is received, the continuous image uploading is exited.
[0101] The present application provides a resource mapping method, device, equipment and storage medium. Compared with the prior art that requires users to manually drag resources to the corresponding position on the map to be mapped when assigning map location information to resources, resulting in low resource mapping efficiency, in the present application, when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the second resource to be mapped in the list of resources to be mapped is automatically determined, and after determining the target position of the second resource on the target map, the icon of the second resource is directly displayed at the target position. That is, in the present application, continuous resource mapping is automatically achieved, avoiding the user's repeated manual dragging of resources, shortening the manual operation process, thereby improving the efficiency of resource mapping and solving the technical problem of low resource mapping efficiency in the prior art.
[0102] Further, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, after the step of displaying the icon of the second resource at the target location, the method includes:
[0103] Step B1, determining the screen coordinates of the target position in the screen coordinate system;
[0104] Step B2, obtaining a conversion relationship between the preset screen coordinate system and the corresponding map coordinate system of the target map;
[0105] Step B3, determining the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship;
[0106] Step B4: determine and save the mapping relationship between the map coordinates of the target location and the second resource.
[0107] In this embodiment, the mapping relationship between the map coordinates of the target location and the second resource is specifically determined and saved. Specifically, Figure 6As shown, the screen position coordinates (x', y') of the target position are determined, and the map coordinates (x, y) of the target position are obtained and saved according to the conversion formula between screen coordinates and map coordinates, and resource A is added to the map coordinate position. At this time, the resource A button status in the list changes to disabled status.
[0108] The conversion formulas between screen coordinates and map coordinates are shown in (1) and (2) (specifically, the conversion formula between map coordinates and screen coordinates is obtained by using the similarity ratio between the horizontal and vertical directions):
[0109] W / W'=(X-X0) / X'; (1)
[0110] H / H'=(Y-Y0) / Y'; (2)
[0111] In the present application, the mapping relationship between the map coordinates of the target location and the second resource can be automatically determined and saved based on the screen coordinates of the target location in the screen coordinate system. Therefore, when the resource after the above picture needs to be displayed again, it can be displayed directly.
[0112] Further, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the resource map method further includes:
[0113] Step S40, when an editing instruction for editing the uploaded resource is detected, determining whether the upload mode has been exited;
[0114] Step S50: If it is determined that the uploading mode has been exited, the uploaded resources are edited according to the editing instruction, and the target positions of the uploaded resources and the list of resources to be uploaded are jointly edited.
[0115] In this embodiment, when an editing instruction (adjustment instruction or deletion instruction) to edit the resource that has been uploaded is detected, it is determined whether the uploading mode has been exited. That is, if in the continuous uploading mode, if you want to edit the location of the resource that has been uploaded (such as resource A), you need to exit the uploading mode first. Specifically, if it is detected that the user clicks the right button, the continuous uploading mode is ended.
[0116] If it is determined that the uploading mode has been exited, the uploaded resources are edited according to the editing instruction, and the target positions of the uploaded resources and the list of resources to be uploaded are jointly edited.
[0117] In this embodiment, since the target location of resource A (the resource that has been uploaded) is deleted at the same time, erroneous storage of the uploaded data is avoided, and since the list of resources to be uploaded of the uploaded resource is edited in conjunction, the waste of resources caused by manual updating of the list of resources to be uploaded is saved.
[0118] In the present application, the uploaded resources can also be edited, and after editing the uploaded resources, the target location of the uploaded resources and the list of resources to be uploaded can be jointly edited, instead of requiring the user to manually edit the target location of the uploaded resources and the list of resources to be uploaded, thereby saving resources and improving efficiency.
[0119] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0120] like Figure 3 As shown, the resource map device may include: a processor 1001 , a memory 1005 , and a communication bus 1002 . The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005 .
[0121] Optionally, the resource map device may also include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, etc. The user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. The network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0122] Those skilled in the art will understand that Figure 3 The resource mapping device structure shown in the figure does not constitute a limitation on the resource mapping device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0123] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module and a resource mapping program. The operating system is a program that manages and controls the hardware and software resources of the resource mapping device, and supports the operation of the resource mapping program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the resource mapping system.
[0124] exist Figure 3 In the resource mapping device shown, the processor 1001 is used to execute the resource mapping program stored in the memory 1005 to implement the steps of any of the resource mapping methods described above.
[0125] The specific implementation methods of the resource mapping device of the present application are basically the same as the above-mentioned resource mapping method embodiments, and will not be repeated here.
[0126] The present application also provides a resource mapping device, the device comprising:
[0127] A first determination module is used to automatically determine a second resource to be mapped in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map;
[0128] The second determination module is used to determine a target position of the second resource on the target map, and display an icon of the second resource at the target position.
[0129] In a possible implementation manner of the present application, the device further includes:
[0130] The display module is used to display the type icon corresponding to the type of the resource to be uploaded when uploading the image;
[0131] And / or, the device also includes: a first acquisition module, used to acquire resources to be processed; a fine-grained determination module, used to determine the display fine-grainedness of the target map; a selection module, used to select resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the fine-grainedness, and obtain a list of resources to be mapped.
[0132] And / or the device further comprises: a stop module, configured to stop uploading images to the resources in the list of resources to be uploaded if a preset image uploading cut-off condition is detected; wherein the preset image uploading cut-off condition comprises that all the resources in the list of resources to be uploaded have been uploaded or an end instruction for ending the continuous image uploading mode has been detected;
[0133] And / or, the resource mapping device further includes: a third determination module, used to determine the screen coordinates of the target position in the screen coordinate system; a second acquisition module, used to acquire a conversion relationship between the preset screen coordinate system and a corresponding map coordinate system of the target map; a fourth determination module, used to determine the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship; a fifth determination module, used to determine and save the mapping relationship between the map coordinates of the target position and the second resource;
[0134] And / or, the device also includes: a sixth determination module, which is used to determine whether the uploading mode has been exited when an editing instruction to edit the uploaded resource is detected; an editing module, which is used to edit the uploaded resource according to the editing instruction if it is determined that the uploading mode has been exited, and to jointly edit the target location of the uploaded resource and the list of resources to be uploaded.
[0135] The specific implementation of the resource mapping device of the present application is basically the same as the various embodiments of the resource mapping method described above, and will not be repeated here.
[0136] An embodiment of the present application provides a storage medium, and the storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned resource mapping methods.
[0137] The specific implementation method of the storage medium of the present application is basically the same as the various embodiments of the above-mentioned resource mapping method, and will not be repeated here.
[0138] An embodiment of the present application provides a resource mapping system, the system comprising: a camera, a radar, and the resource mapping device according to any one of the above claims.
[0139] The specific implementation methods of the resource mapping system of the present application are basically the same as the above-mentioned resource mapping method embodiments, and will not be repeated here.
[0140] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned resource mapping method when executed by a processor.
[0141] The specific implementation of the computer program product of the present application is basically the same as the various embodiments of the resource mapping method described above, and will not be repeated here.
[0142] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0143] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus hardware platform, or by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0145] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A resource mapping method, It is characterized in that Applicable to the scenario where the resource is located at a location that cannot be accurately located by GPS, but the corresponding resource needs to be displayed on a map, the method includes: When it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the second resource in the list of resources to be mapped is automatically determined; Determine a target location of the second resource on the target map, and display an icon of the second resource at the target location; Before the step of automatically determining the second resource in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map, the method comprises: Get the resources to be processed; Determine the display granularity of the target map, where the display granularity is used to determine the to-be-processed resources with corresponding resource attributes that can be displayed on the current map; According to different resource attributes of the resources to be processed and the display granularity, resources to be uploaded are selected from the resources to be processed to obtain a list of resources to be uploaded.
2. The resource mapping method according to claim 1, It is characterized in that The method further comprises: When uploading a picture, the icon corresponding to the type of resource to be uploaded is displayed.
3. The resource mapping method according to claim 1, It is characterized in that After the step of automatically determining the second resource to be uploaded in the list of resources to be uploaded, the method comprises: If a preset image uploading cut-off condition is detected, stopping uploading images to the resources in the list of resources to be uploaded; The preset image uploading end condition includes that all resources in the to-be-uploaded resource list have been uploaded or an end instruction for ending the continuous image uploading mode has been detected.
4. The resource mapping method according to claim 1, It is characterized in that After the step of displaying the icon of the second resource at the target location, the method comprises: Determine the screen coordinates of the target position in the screen coordinate system; Obtaining a conversion relationship between the preset screen coordinate system and the corresponding map coordinate system of the target map; Determining the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship; A mapping relationship between the map coordinates of the target location and the second resource is determined and saved.
5. The resource mapping method according to claim 1, It is characterized in that The resource mapping method further includes: When an editing instruction for editing an uploaded resource is detected, determining whether the upload mode has been exited; If it is determined that the uploading mode has been exited, the uploaded resources are edited according to the editing instruction, and the target positions of the uploaded resources and the list of resources to be uploaded are jointly edited.
6. A resource mapping device, It is characterized in that Applicable to the scenario where resources are located at a location that cannot be accurately located by GPS, but the corresponding resources need to be displayed on a map, the device includes: A first determination module is used to automatically determine a second resource to be mapped in the list of resources to be mapped when it is detected that the first resource in the list of resources to be mapped has been mapped on the target map; A second determination module, used to determine a target position of the second resource on the target map, and display an icon of the second resource at the target position; The device also includes: a first acquisition module, used to acquire resources to be processed; a fine-grained determination module, used to determine the display fine-grainedness of the target map, and the display fine-grainedness is used to determine the resources to be processed with corresponding resource attributes that can be displayed on the current map; and a selection module, used to select resources to be mapped from the resources to be processed according to different resource attributes of the resources to be processed and the display fine-grainedness, so as to obtain a list of resources to be mapped.
7. The resource mapping device according to claim 6, It is characterized in that The device also includes: The display module is used to display the type icon corresponding to the type of the resource to be uploaded when uploading the image; The device further comprises: a stop module, configured to stop uploading images to the resources in the list of resources to be uploaded if a preset image uploading cut-off condition is detected; wherein the preset image uploading cut-off condition comprises that all the resources in the list of resources to be uploaded have been uploaded or an end instruction for ending the continuous image uploading mode has been detected; The resource mapping device further includes: a third determination module, used to determine the screen coordinates of the target position in the screen coordinate system; a second acquisition module, used to acquire a conversion relationship between the preset screen coordinate system and a corresponding map coordinate system of the target map; a fourth determination module, used to determine the map coordinates of the target position in the map coordinate system according to the screen coordinates and the conversion relationship; a fifth determination module, used to determine and save the mapping relationship between the map coordinates of the target position and the second resource; The device also includes: a sixth determination module, which is used to determine whether the uploading mode has been exited when an editing instruction to edit the uploaded resource is detected; an editing module, which is used to edit the uploaded resource according to the editing instruction if it is determined that the uploading mode has been exited, and to jointly edit the target location of the uploaded resource and the list of resources to be uploaded.
8. A resource mapping device, It is characterized in that The method comprises a memory, a processor and a resource mapping program stored in the memory and executable on the processor, wherein the processor implements the steps of the resource mapping method described in any one of claims 1 to 5 when executing the resource mapping program.
9. A storage medium, It is characterized in that The storage medium stores a resource mapping program, and when the resource mapping program is executed by a processor, the steps of the resource mapping method according to any one of claims 1 to 5 are implemented.
