Beacon code allocation method, device, storage medium and electronic device
By generating a target beacon code for the UAV that is different from the beacon code within its recognition range, the problem of low UAV beacon code identification accuracy and efficiency is solved, the UAV identification accuracy and efficiency are improved, and Reduces power consumption during delivery.
Patent Information
- Application Number
- CN202010929972.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-07
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-07
AI Technical Summary
The existing UAV beacon code recognition accuracy and efficiency are low, resulting in reduced positioning recognition efficiency and increased power consumption during the delivery process.
By generating a target beacon code for the target object that is different from all beacon codes within its range, the beacon code allocation method is used to determine the identification range centered on the target object, and obtain the beacon code information within the range to generate A target beacon code that is different from all beacon codes is assigned.
It improves the accuracy and efficiency of drone identification of target objects, reduces the reuse of beacon codes, and reduces power consumption during the delivery process.
Smart Images

Figure CN112163803B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of unmanned aerial vehicles, and in particular to a beacon code allocation method, device, storage medium and electronic device. Background Art
[0002] As a new dining method connecting users and merchants, takeaway has developed rapidly in recent years. Generally speaking, corresponding delivery capacity (such as delivery personnel) can be set in corresponding areas to meet the order delivery needs in the area.
[0003] In related scenarios, drones can also be used to deliver takeout orders. For example, drones can locate above merchants or users through navigation systems, and determine the identities of merchants or users through beacon codes, and finally deliver orders. However, based on the beacon code setting method in related technologies, drones still have problems such as low recognition accuracy and low recognition efficiency during object recognition. Summary of the invention
[0004] The purpose of the present disclosure is to provide a beacon code allocation method, device, storage medium and electronic device to solve the above-mentioned related technical problems.
[0005] In order to achieve the above object, a first aspect of an embodiment of the present disclosure provides a beacon code allocation method, including:
[0006] In response to a beacon code allocation request for a target object, extending a target distance outward with the target object as a center to obtain a first distance range;
[0007] Acquire beacon code information within the first distance range, where the beacon code information includes beacon codes of all objects within the first distance range;
[0008] A target beacon code different from all beacon codes in the beacon code information is generated, and the target beacon code is assigned to the target object.
[0009] Optionally, extending the target distance outward with the target object as the center to obtain the first distance range includes: determining a drone beacon code recognition range centered on the target object;
[0010] The drone beacon code recognition range is extended outward by a first distance to obtain the first distance range.
[0011] Optionally, extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes:
[0012] Obtaining a positioning error value of the UAV;
[0013] The drone beacon code recognition range is extended outward by a distance value equal to the positioning error value to obtain the first distance range.
[0014] Optionally, extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes:
[0015] Obtaining the beacon code recognition radius of the drone;
[0016] The drone beacon code recognition range is extended outward by a distance value equal to the beacon code recognition radius to obtain the first distance range.
[0017] Optionally, the method further comprises:
[0018] Determining the number of objects within the first distance range according to the first distance range and regional object density information;
[0019] Determining the number of bits of the beacon code according to the number of the objects;
[0020] The generating a target beacon code that is different from all beacon codes in the beacon code information includes:
[0021] A target beacon code is generated that meets the bit number specification and is different from all beacon codes in the beacon code information.
[0022] Optionally, the method further comprises:
[0023] Get multiple objects of beacon codes to be allocated;
[0024] If the distances between the multiple objects are smaller than a second threshold, the set of the multiple objects is used as the target object for beacon code allocation.
[0025] Optionally, the acquiring beacon code information within the first distance range includes:
[0026] Sending a beacon code reporting request to all objects within the first distance range;
[0027] Receiving a response message from each of the objects within the first distance range to the beacon code reporting request;
[0028] The beacon code information is determined according to each of the response messages.
[0029] Optionally, allocating the target beacon code to the target object comprises:
[0030] Generate a beacon code allocation response message according to the target beacon code and the identity of the target object;
[0031] The beacon code allocation response message is sent to the target object.
[0032] According to a second aspect of an embodiment of the present disclosure, a beacon code allocation device is provided, including:
[0033] A first execution module is used to respond to a beacon code allocation request for a target object, extend a target distance outward with the target object as the center, and obtain a first distance range;
[0034] A first acquisition module, configured to acquire beacon code information within the first distance range, wherein the beacon code information includes beacon codes of all objects within the first distance range;
[0035] The second execution module is used to generate a target beacon code that is different from all beacon codes in the beacon code information, and assign the target beacon code to the target object.
[0036] Optionally, the first execution module includes:
[0037] A first determination submodule is used to determine the drone beacon code recognition range centered on the target object;
[0038] The first execution submodule is used to extend the drone beacon code recognition range outward by a first distance to obtain the first distance range.
[0039] Optionally, the first execution submodule includes:
[0040] A first acquisition subunit, used to acquire a positioning error value of the UAV;
[0041] The first execution subunit is used to extend the drone beacon code recognition range outward by a distance value equal to the positioning error value to obtain the first distance range.
[0042] Optionally, the first execution submodule includes:
[0043] A second acquisition subunit is used to acquire the beacon code recognition radius of the drone;
[0044] The second execution subunit is used to extend the drone beacon code recognition range outward by a distance value equal to the beacon code recognition radius to obtain the first distance range.
[0045] Optionally, the device further comprises:
[0046] A first determining module, configured to determine the number of objects within the first distance range according to the first distance range and regional object density information;
[0047] A second determination module is used to determine the bit specification of the beacon code according to the number of the objects;
[0048] The second execution module includes:
[0049] The second execution submodule is used to generate a target beacon code that meets the bit number specification and is different from all beacon codes in the beacon code information.
[0050] Optionally, the device further comprises:
[0051] A second acquisition module is used to acquire multiple objects to be assigned beacon codes;
[0052] The third execution module is used to allocate beacon codes to the set of the multiple objects as the target object when the distance between the multiple objects is less than a second threshold.
[0053] Optionally, the first acquisition module includes:
[0054] A first sending submodule, configured to send a beacon code reporting request to all objects within the first distance range;
[0055] A receiving submodule, configured to receive a response message from each of the objects within the first distance range to the beacon code reporting request;
[0056] The second determining submodule is used to determine the beacon code information according to each of the response messages.
[0057] Optionally, the second execution module includes:
[0058] A generating submodule, configured to generate a beacon code allocation response message according to the target beacon code and the identity of the target object;
[0059] The second sending submodule is used to send the beacon code allocation response message to the target object.
[0060] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.
[0061] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
[0062] a memory having a computer program stored thereon;
[0063] A processor is used to execute the computer program in the memory to implement the steps of any one of the methods described in the first aspect above.
[0064] When allocating a beacon code to a target object, the above technical solution can extend the target distance outward with the target object as the center, thereby obtaining a first distance range. In addition, the beacon code information within the first distance range can be obtained, thereby generating a target beacon code different from all beacon codes within the first distance range, and assigning the target beacon code to the target object. In this way, the newly generated target beacon code is different from each beacon code within the first distance range, which is helpful for the identification of the drone.
[0065] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0067] Figure 1 It is a schematic diagram of a beacon code shown in an exemplary embodiment of the present disclosure.
[0068] Figure 2 It is a flowchart of a beacon code allocation method shown in an exemplary embodiment of the present disclosure.
[0069] Figure 3 It is a schematic diagram of object distribution shown in an exemplary embodiment of the present disclosure.
[0070] Figure 4 It is a flowchart of a beacon code allocation method shown in an exemplary embodiment of the present disclosure.
[0071] Figure 5 It is a block diagram of a beacon code allocation device shown in an exemplary embodiment of the present disclosure.
[0072] Figure 6 It is a block diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0073] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0074] Before introducing the beacon code allocation method of the present disclosure, the application scenarios of the present disclosure are first introduced. The various embodiments of the present disclosure can be applied to various drone delivery scenarios, such as drone takeaway delivery, drone logistics delivery, etc.
[0075] Take takeaway delivery as an example. In relevant scenarios, drones can be used to deliver takeaway orders. For example, drones can locate above merchants or users through navigation systems, and use beacon codes to determine the identities of merchants and users, and finally deliver orders.
[0076] Specifically, refer to Figure 1 A schematic diagram of a beacon code is shown. In some scenarios, the beacon code can be generated based on the ArUco method. The information included in the beacon code corresponds to the merchant or user, so the drone can identify the merchant or user through the beacon code, thereby determining the location of the merchant or user, and then completing the delivery of the takeaway order.
[0077] The applicant discovered that the number of beacon IDs (Identities) that can be generated by beacon codes is limited, so it is impossible to assign a beacon code with a unique ID to each merchant and user. In other words, beacon codes may be reused, that is, multiple delivery objects may use the same beacon code. It is worth noting that for drones, when there are multiple identical beacon codes in the drone's beacon code recognition field of view, the drone's positioning and recognition may also be affected, thereby reducing the drone's positioning and recognition efficiency and accuracy for merchants and / or users, and also leading to an increase in the drone's delivery power consumption.
[0078] To this end, the present disclosure provides a beacon code allocation method, referring to Figure 2 A flow chart of a beacon code allocation method is shown, the method comprising:
[0079] S21, in response to a beacon code allocation request for a target object, extending a target distance outward with the target object as a center to obtain a first distance range;
[0080] S22, acquiring beacon code information within the first distance range, where the beacon code information includes beacon codes of all objects within the first distance range;
[0081] S23, generating a target beacon code that is different from all beacon codes in the beacon code information, and assigning the target beacon code to the target object.
[0082] Specifically, the method can be applied to a server, for example, which can serve as a management server for beacon codes and perform management operations such as allocation and deletion on beacon codes in a target area.
[0083] Thus, in step S21, the server may receive and respond to a beacon code allocation request for a target object, thereby determining a first distance range centered on the target object. The target object may be a mission target point of a drone, such as a merchant, user, distribution station, etc. When a target object is allocated a corresponding beacon code, the drone may identify the identity of the target object through the beacon code.
[0084] For the first distance range, in a specific implementation, the first distance range can be obtained by extending the target distance outward from the target object. In some embodiments, the first distance range can be equal to the beacon code recognition range of the drone, that is, in this case, the recognition distance of the drone can be used as the target distance. In other embodiments, the first distance range may also be greater than the beacon code recognition range of the drone, that is, in this case, the target distance is greater than the recognition distance of the drone. Of course, the above description is an example, and in a specific implementation, different distances can also be extended based on other demand indicators to obtain the corresponding first distance range, and the present disclosure is not limited to this.
[0085] In step S22, for the extended first distance range, each beacon code information within the first distance range may be obtained, wherein the beacon code information includes the beacon codes of all objects within the first distance range.
[0086] Specifically, in a possible implementation, step S22 can be implemented in the following manner:
[0087] Sending a beacon code reporting request to all objects within the first distance range;
[0088] Receiving a response message from each of the objects within the first distance range to the beacon code reporting request;
[0089] The beacon code information is determined according to each of the response messages.
[0090] Taking the method applied to a beacon code allocation device as an example, after acquiring the first distance range, the beacon code allocation device can, for example, broadcast a beacon code reporting request within the first distance range. Correspondingly, the object that receives the beacon code reporting request can respond to the beacon code reporting request, thereby sending its own beacon code information to the beacon code allocation device. In this way, by receiving the beacon code information sent by each object, the beacon code allocation device can obtain the beacon code information of all objects within the first distance range. Of course, in some embodiments, the beacon code allocation device can also send the beacon code reporting request to each object separately according to the identification information of each object, and the present disclosure does not limit this.
[0091] In addition, in another possible implementation, the beacon code allocation device may be, for example, a server, which may also save the historical object, the historical beacon code, and the location information of the historical object after generating the historical beacon code for the historical object, and establish a corresponding relationship between the historical object, the historical beacon code, and the location information of the historical object. In this way, based on the corresponding relationship, the beacon code allocation device may determine the objects included in the first distance range through the first distance range, and further determine the beacon codes corresponding to all objects within the first distance range.
[0092] In step S23, a target beacon code different from all beacon codes in the beacon code information is generated, and then the target beacon code is assigned to the target object.
[0093] In some implementations, for the target beacon code generation process, based on the beacon code set and the beacon code information, a beacon code that is different from all beacon codes in the beacon code information can be determined from the beacon code set as the target beacon code. The beacon code set can be determined, for example, based on the bit specification of the beacon code, that is, the beacon code set can be a set of beacon codes that can be generated with a corresponding bit specification.
[0094] Continuing with the above example about the beacon code information acquisition process, for the target beacon code allocation process, in some embodiments, the beacon code allocation device can, for example, generate a beacon code allocation response message based on the target beacon code and the identity of the target object, thereby sending the beacon code allocation response message to the target object. Of course, in some embodiments, the beacon code allocation device can also encrypt the target beacon code before sending it to the target object to improve the security of the sending process. For example, the beacon code allocation device can encrypt the target beacon code by the public key of the target object to obtain the beacon code allocation response message. In this way, the target object can decrypt the received beacon code allocation response message by its own private key to obtain the target beacon code.
[0095] When allocating a beacon code to a target object, the above technical solution can extend the target distance outward with the target object as the center, thereby obtaining a first distance range. In addition, the beacon code information within the first distance range can be obtained, thereby generating a target beacon code different from all beacon codes within the first distance range, and assigning the target beacon code to the target object. In this way, the newly generated target beacon code is different from each beacon code within the first distance range, which is helpful for the identification of the drone.
[0096] In a possible implementation manner, extending the target distance outward from the target object as the center to obtain a first distance range includes:
[0097] Determine the drone beacon code recognition range centered on the target object;
[0098] The drone beacon code recognition range is extended outward by a first distance to obtain the first distance range.
[0099] It should be understood that the drone may have a certain recognition range when recognizing the beacon code, that is, the beacon code within the recognition range can be recognized by the drone. Figure 3 A distribution diagram of an object is shown. When the server receives a beacon code allocation request for a target object A, the server can determine a drone beacon code recognition range 10 centered on the target object A.
[0100] Among them, the beacon code recognition range is 10 Figure 3 In the figure, it is presented in the form of a circular range with the target object A as the center and L1 as the radius. Of course, in some implementation scenarios, the drone beacon code recognition range 10 can also be presented in other shapes such as a fan shape, and the present disclosure is not limited to this. In addition, in some embodiments, the beacon code recognition range 10 can also be a range formed by combining the recognition ranges of the drone in different directions, and should not be understood as the recognition range of the drone in a fixed direction. In some scenarios, the recognition range of a drone in a fixed direction may not be as Figure 3 For example, when the recognition range of the drone is fan-shaped, the combination of its recognition ranges in various directions can still be as follows: Figure 3 The circular range shown is not limited to this disclosure.
[0101] Therefore, when determining the first distance range, the drone beacon code recognition range can be extended outward by a first distance to obtain the first distance range. Figure 3 For example, in a specific implementation, the drone beacon code recognition range 10 can be extended outward by L2, thereby obtaining a first distance range 20 with a radius of L3 (L3 = L1 + L2) centered at the location of A. Of course, the first distance can take different values according to needs in a specific implementation, and the present disclosure does not limit this.
[0102] In this way, for the extended first distance range, each beacon code information within the first distance range can be obtained, and a target beacon code different from all beacon codes in the beacon code information is generated, and then the target beacon code is assigned to the target object.
[0103] Continuing with the above example, the server can obtain the beacon codes of objects B, C, and F in the first distance range 20. Thus, a target beacon code different from the objects B, C, and F is generated, and the target beacon code is then assigned to the target object A. In some embodiments, the server can also remove the beacon codes within the first distance range 20 from the beacon code set to obtain a candidate beacon code set, and then randomly determine a target beacon code from the candidate beacon code set and assign it to the target object A.
[0104] In this way, since the first distance range 20 is obtained by extending the beacon code identification range 10, and the target beacon code is different from each beacon code within the first distance range 20. Therefore, the above technical solution can ensure that when the drone delivers to the target object, there are no multiple identical beacon codes within its beacon code identification range, thereby improving the accuracy and efficiency of the drone in identifying the target object.
[0105] In addition, the applicant has found that for drones, there may be a corresponding error distance when the navigation system locates the air above the merchant or user. Figure 3 , when the drone positioning error occurs, the actual location that the drone may reach during the execution of the flight mission with the target object A as the destination is X, and the beacon code recognition range of the drone at position X is 30. In this way, the drone can simultaneously recognize beacon codes A and C within the beacon code recognition range of 30, so when object C and object A have the same beacon code, it may have an adverse effect on the drone's object recognition. In addition, for the first distance range, when the first distance range is set to be large, it may cause a large occupation of the beacon code capacity; when the first distance range is small, then when the drone positioning error occurs, the same beacon code is likely to appear in the drone's beacon code recognition range, thereby reducing the object recognition efficiency and accuracy.
[0106] Therefore, in a possible implementation manner, extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes:
[0107] Obtaining a positioning error value of the UAV;
[0108] The drone beacon code recognition range is extended outward by a distance value equal to the positioning error value to obtain the first distance range.
[0109] The positioning error value of the UAV can be determined, for example, based on the control accuracy of the UAV or based on the historical flight information of the UAV. Figure 3Take an example to illustrate, when it is determined that the positioning error value of the drone is L2, the drone beacon code recognition range can be extended outward by L2, thereby obtaining a first distance range 20. In this way, by determining the beacon code of the target object A according to the first distance range 20, each beacon code within the first distance range can be different. In other words, when there is an error in the flight positioning of the drone, there is no identical beacon code in the beacon code recognition range of the drone, thereby reducing the impact of the positioning error on the object recognition process of the drone. In addition, the method of determining the extended distance of the drone beacon code recognition range according to the positioning error of the drone can also avoid the problem that the extended distance of the beacon code recognition range is too large (increasing the demand for beacon code capacity) or too small (reducing the ability to eliminate the impact of the drone positioning error).
[0110] It is worth noting that, in some embodiments, the positioning error of the UAV can also be a range value. In this case, the upper limit of the range value can be used as the extension distance of the beacon code recognition range, so that when there is an error in the flight positioning of the UAV, the same beacon code does not exist in the beacon code recognition range of the UAV.
[0111] Thus, in another possible implementation, extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes:
[0112] Obtaining the beacon code recognition radius of the drone;
[0113] The drone beacon code recognition range is extended outward by a distance value equal to the beacon code recognition radius to obtain the first distance range.
[0114] Reference Figure 3 , the beacon code recognition range of the drone is a circular area with a radius of L1. Therefore, when extending the beacon code recognition range, the target object A can be taken as the center and extended with a radius of L1, thereby obtaining a first distance range 40. In this way, when determining the beacon code of the target object A, the target beacon code is a beacon code other than beacon codes B, C, D, E, F, and G. That is to say, when the beacon code recognition range of the drone includes the target object A, each beacon code in the beacon code recognition range of the drone is different from the beacon code of the target object A.
[0115] To explain by contradiction, suppose that there are two objects A and B with the same beacon code in the first distance range 40. If a beacon code is assigned to object A first, then when assigning the beacon code to object B, the above scheme should ensure that the distance between A and B is greater than 2L1. In fact, objects A and B are within a circle with a radius of L1, that is, the distance between objects A and B is less than 2L1, so the two are contradictory, that is, the beacon codes in the beacon code recognition range of the drone are different from the beacon code of the target object A.
[0116] By adopting the above technical solution, it can be ensured that there is no identical beacon code in the beacon code recognition range of the drone, thereby avoiding interference of the identical beacon code in the object recognition process of the drone, thereby improving the recognition efficiency and accuracy.
[0117] Figure 4 4 is a schematic diagram of a beacon code allocation method shown in an exemplary embodiment of the present disclosure. Referring to FIG. 4, the method includes:
[0118] S41, in response to a beacon code allocation request for a target object, extending a target distance outward with the target object as a center to obtain a first distance range;
[0119] S42, acquiring beacon code information within the first distance range, where the beacon code information includes beacon codes of all objects within the first distance range;
[0120] S43, determining the number of objects within the first distance range according to the first distance range and regional object density information;
[0121] S44, determining the bit specification of the beacon code according to the number of the objects;
[0122] S45, generating a target beacon code that meets the bit number specification and is different from all beacon codes in the beacon code information, and assigning the target beacon code to the target object.
[0123] For steps S41 and S42, please refer to the above description of steps S21 and S22, which will not be elaborated in detail in the present disclosure.
[0124] In step S43, before determining the number of objects within the first distance range, the beacon code recognition range of the drone can be determined based on the flight data of the drone. For example, when the flight altitude of the drone is H and the downward diagonal field of view angle is Frad (radian angle), the beacon code recognition range area S of the drone can be:
[0125] S=π*(H*tan(F / 2)) 2 .
[0126] For the regional object density information, the regional object density information may be the number of objects per unit area. In this way, the number N of objects within the beacon code recognition range may be determined based on the beacon code recognition range and the regional object density information:
[0127]
[0128] Where P is the regional object density.
[0129] Thus, in step S44, the bit number specification of the beacon code can be determined according to the number of the objects.
[0130] The applicant found that the capacity of the beacon code is approximately exponentially related to the number of bits in the side length of the beacon code. However, for the beacon code, its area size is usually fixed, so when the number of bits in the side length of the beacon code increases, the physical size of the unit bit on the beacon code may also decrease, thereby increasing the difficulty of drone recognition.
[0131] Therefore, in this embodiment, the bit specification of the beacon code can be adjusted while meeting the capacity requirement of the beacon code allocation. For example, in a specific implementation, the capacity C of the beacon code can meet the following conditions:
[0132]
[0133] That is, the beacon code capacity C is greater than or equal to the number of objects within the beacon code recognition range. In this way, if the flight altitude of the drone is 120 meters and the downward diagonal field of view is 60°, the downward radius is about 100 meters and the downward area is about 30,000 square meters. If the distribution density of objects is 0.01 per square meter, the downward field of view of the drone can include 300 beacon codes. Taking the extended distance of 75 meters as an example, the first distance range obtained by extension can include about 1,000 beacon codes. The capacity of a 5*5 beacon code is usually more than 1,000, and the capacity of a 7*7 beacon code is much greater than 1,000. Therefore, in the specific implementation, the bit specification of the beacon code can be set to 5*5.
[0134] Furthermore, in step S45, a target beacon code that meets the bit number specification and is different from all beacon codes in the beacon code information may be generated, and the target beacon code may be assigned to the target object.
[0135] By adopting the above technical solution, the bit size specification of the beacon code can be determined based on the number of objects in the first distance range, so that the target beacon code can be determined from the beacon codes with a smaller bit size while meeting the capacity requirements of the beacon code, thereby making the unit bit of the beacon code have a larger physical size, which helps to improve the recognition efficiency and accuracy of the drone.
[0136] Optionally, the method further comprises:
[0137] Get multiple objects of beacon codes to be allocated;
[0138] If the distances between the multiple objects are smaller than a second threshold, the set of the multiple objects is used as the target object for beacon code allocation.
[0139] For example, in the case of a gathering of multiple objects such as a shopping mall or an apartment, the multiple objects can be aggregated in the specific implementation, and the collection of the multiple objects can be used as the target object for beacon code allocation, thereby reducing the capacity demand of the beacon code and further reducing the probability of beacon code reuse. For example, if object A, object B, and object C are all in an area of 50m*50m, then one beacon code can be allocated to object A, object B, and object C in this case.
[0140] It is also worth noting that the above embodiment is described by applying the method to a server, but those skilled in the art should also know that the above method can also be applied to terminal devices such as computers during specific implementation, and the present disclosure does not limit this.
[0141] Furthermore, for the above method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described. For example, the steps S43 and S44 can be performed before the step S42 or after the step S42 in the specific implementation, and the present disclosure does not limit this.
[0142] The present disclosure also provides a beacon code allocation device, referring to Figure 5 A block diagram of a beacon code allocation device is shown, wherein the device 500 comprises:
[0143] A first execution module 501 is configured to respond to a beacon code allocation request for a target object, extend a target distance outward with the target object as the center, and obtain a first distance range;
[0144] A first acquisition module 502 is used to acquire beacon code information within the first distance range, where the beacon code information includes beacon codes of all objects within the first distance range;
[0145] The second execution module 503 is used to generate a target beacon code that is different from all beacon codes in the beacon code information, and assign the target beacon code to the target object.
[0146] When allocating a beacon code to a target object, the above technical solution can extend the target distance outward with the target object as the center, thereby obtaining a first distance range. In addition, the beacon code information within the first distance range can be obtained, thereby generating a target beacon code different from all beacon codes within the first distance range, and assigning the target beacon code to the target object. In this way, the newly generated target beacon code is different from each beacon code within the first distance range, which is helpful for the identification of the drone.
[0147] Optionally, the first execution module 501 includes:
[0148] A first determination submodule is used to determine the drone beacon code recognition range centered on the target object;
[0149] The first execution submodule is used to extend the drone beacon code recognition range outward by a first distance to obtain the first distance range.
[0150] When allocating a beacon code to a target object, the above technical solution can determine the beacon code recognition range of the drone with the target object as the center, and extend outward according to the beacon code recognition range to obtain a first distance range. In other words, the obtained first distance range is larger than the beacon code recognition range of the drone. In addition, the beacon code information within the first distance range can be obtained to generate a target beacon code that is different from all beacon codes within the first distance range, and the target beacon code is allocated to the target object. In this way, since the first distance range is obtained by extending the beacon code recognition range, and the target beacon code is different from each beacon code within the first distance range. Therefore, the above technical solution can ensure that when the drone is delivering to the target object, there are no multiple identical beacon codes within its beacon code recognition range, thereby improving the accuracy and efficiency of the drone in identifying the target object.
[0151] Optionally, the first execution submodule includes:
[0152] A first acquisition subunit, used to acquire a positioning error value of the UAV;
[0153] The first execution subunit is used to extend the drone beacon code recognition range outward by a distance value equal to the positioning error value to obtain the first distance range.
[0154] In this way, when there is an error in the flight positioning of the drone, the same beacon code does not exist in the beacon code recognition range of the drone, thereby reducing the impact of the positioning error on the object recognition process of the drone. In addition, the method of determining the extension distance of the drone beacon code recognition range according to the positioning error of the drone can also avoid the problem that the extension distance of the beacon code recognition range is too large (increasing the demand for beacon code capacity) or too small (reducing the ability to eliminate the impact of the drone positioning error).
[0155] Optionally, the first execution submodule includes:
[0156] A second acquisition subunit is used to acquire the beacon code recognition radius of the drone;
[0157] The second execution subunit is used to extend the drone beacon code recognition range outward by a distance value equal to the beacon code recognition radius to obtain the first distance range.
[0158] By adopting the above technical solution, it can be ensured that there is no identical beacon code in the beacon code recognition range of the drone, thereby avoiding interference of the identical beacon code in the object recognition process of the drone, thereby improving the recognition efficiency and accuracy.
[0159] Optionally, the device 500 further includes:
[0160] A first determining module, configured to determine the number of objects within the first distance range according to the first distance range and regional object density information;
[0161] A second determination module is used to determine the bit specification of the beacon code according to the number of the objects;
[0162] The second execution module 503 includes:
[0163] The second execution submodule is used to generate a target beacon code that meets the bit number specification and is different from all beacon codes in the beacon code information.
[0164] By adopting the above technical solution, the bit size specification of the beacon code can be determined based on the number of objects in the first distance range, so that the target beacon code can be determined from the beacon codes with a smaller bit size while meeting the capacity requirements of the beacon code, thereby making the unit bit of the beacon code have a larger physical size, which helps to improve the recognition efficiency and accuracy of the drone.
[0165] Optionally, the device 500 further includes:
[0166] A second acquisition module is used to acquire multiple objects to be assigned beacon codes;
[0167] The third execution module is used to allocate beacon codes to the set of the multiple objects as the target object when the distance between the multiple objects is less than a second threshold.
[0168] For example, in the case of a cluster of multiple objects such as a shopping mall or an apartment, the multiple objects can be aggregated during implementation, and the collection of the multiple objects can be used as the target object for beacon code allocation, thereby reducing the capacity requirement of the beacon code and further reducing the probability of beacon code reuse.
[0169] Optionally, the first acquisition module 502 includes:
[0170] A first sending submodule, configured to send a beacon code reporting request to all objects within the first distance range;
[0171] A receiving submodule, configured to receive a response message from each of the objects within the first distance range to the beacon code reporting request;
[0172] The second determining submodule is used to determine the beacon code information according to each of the response messages.
[0173] Optionally, the second execution module 503 includes:
[0174] A generating submodule, configured to generate a beacon code allocation response message according to the target beacon code and the identity of the target object;
[0175] The second sending submodule is used to send the beacon code allocation response message to the target object.
[0176] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. The specific working process of the functional units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0177] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any of the above embodiments.
[0178] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
[0179] a memory having a computer program stored thereon;
[0180] A processor is used to execute the computer program in the memory to implement the steps of the method described in any of the above embodiments.
[0181] Figure 6 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be provided as a server, which may be used as a management server of a beacon code, and may perform management operations such as allocation and deletion on the beacon codes in the target area. Figure 6 The electronic device 600 includes a processor 622, which may be one or more, and a memory 632 for storing a computer program executable by the processor 622. The computer program stored in the memory 632 may include one or more modules each corresponding to a set of instructions. In addition, the processor 622 may be configured to execute the computer program to perform the above-mentioned beacon code allocation method.
[0182] In addition, the electronic device 600 may further include a power supply component 626 and a communication component 650. The power supply component 626 may be configured to perform power management of the electronic device 600, and the communication component 650 may be configured to implement communication of the electronic device 600, for example, wired or wireless communication. In addition, the electronic device 600 may further include an input / output (I / O) interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server 2000. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0183] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned beacon code allocation method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 632 including program instructions, and the above-mentioned program instructions can be executed by the processor 622 of the electronic device 600 to complete the above-mentioned beacon code allocation method.
[0184] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above beacon code allocation method when executed by the programmable device.
[0185] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0186] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0187] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A beacon code allocation method, characterized in that: include: In response to a beacon code allocation request for a target object, extending a target distance outward with the target object as a center to obtain a first distance range; Acquire beacon code information within the first distance range, where the beacon code information includes beacon codes of all objects within the first distance range; generating a target beacon code that is different from all beacon codes in the beacon code information, and assigning the target beacon code to the target object; The step of extending the target distance outward from the target object to obtain a first distance range includes: Determine the drone beacon code recognition range centered on the target object; The drone beacon code recognition range is extended outward by a first distance to obtain the first distance range.
2. The method according to claim 1, characterized in that: The step of extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes: Obtaining a positioning error value of the UAV; The drone beacon code recognition range is extended outward by a distance value equal to the positioning error value to obtain the first distance range.
3. The method according to claim 1, characterized in that The step of extending the drone beacon code recognition range outward by a first distance to obtain a first distance range includes: Obtaining the beacon code recognition radius of the drone; The drone beacon code recognition range is extended outward by a distance value equal to the beacon code recognition radius to obtain the first distance range.
4. The method according to claim 1, characterized in that: The method further comprises: Determining the number of objects within the first distance range according to the first distance range and regional object density information; Determining the number of bits of the beacon code according to the number of the objects; The generating a target beacon code that is different from all beacon codes in the beacon code information includes: A target beacon code is generated that meets the bit number specification and is different from all beacon codes in the beacon code information.
5. The method according to claim 1, characterized in that The method further comprises: Get multiple objects of beacon codes to be allocated; If the distances between the multiple objects are smaller than a second threshold, the set of the multiple objects is used as the target object for beacon code allocation.
6. The method according to claim 1, characterized in that The acquiring beacon code information within the first distance range includes: Sending a beacon code reporting request to all objects within the first distance range; Receiving a response message from each of the objects within the first distance range to the beacon code reporting request; The beacon code information is determined according to each of the response messages.
7. The method according to claim 1, characterized in that The assigning the target beacon code to the target object comprises: Generate a beacon code allocation response message according to the target beacon code and the identity of the target object; The beacon code allocation response message is sent to the target object.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.
