Information processing method and device
By managing the release time of candidate identifiers in the radar detection environment and assigning target identifiers to targets, the problem of abnormal target measurement information processing in a multi-target environment is solved, and the uniqueness of target identifiers and the stability of detection information processing are achieved.
Patent Information
- Application Number
- CN202411935288.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-25
AI Technical Summary
In a radar detection environment, when multiple targets exist, abnormalities occur in the processing of the target's measurement information, and a method is needed to solve this problem.
By managing the released candidate identifiers in the identification candidate pool, the target identifier is assigned to the target according to the release time of the candidate identifier. If the release time of the candidate identifier is greater than or equal to the preset time, the candidate identifier is used as the target identifier; if the release time is less than the preset time, a second candidate identifier different from the candidate identifier is calculated as the target identifier.
It effectively avoids the problem that different targets are assigned the same identifier in a short period of time, thereby avoiding abnormal phenomena in target detection information processing.
Smart Images

Figure CN119881803A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of radar detection, and in particular to an information processing method and device. Background Art
[0002] Radar is a commonly used sensor. It is one of the indispensable sensors in the fields of robot navigation and intelligent assisted driving. Radar transmits electromagnetic waves through antennas to sense targets in the surrounding environment, and then obtains measurement information such as radial distance, radial Doppler velocity, azimuth, and altitude of the target. After obtaining the measurement information of the target, the measurement information can be processed.
[0003] At present, when the surrounding environment includes multiple targets, there is a phenomenon of abnormal processing of measurement information of the targets. Therefore, a solution is urgently needed to solve the above problem. Summary of the invention
[0004] In order to solve or at least partially solve the above technical problems, an embodiment of the present application provides an information processing method and device.
[0005] In a first aspect, the present application provides an information processing method, the method comprising:
[0006] In response to detecting a first target in a detection environment, a target identifier is assigned to the first target according to a first candidate identifier that has been released and is included in an identifier candidate pool, the identifier candidate pool including the first candidate identifier and a time when the first candidate identifier has been released, if the time when the first candidate identifier has been released is greater than or equal to a preset time, the target identifier is the first candidate identifier, if the time when the first candidate identifier has been released is less than the preset time, the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier;
[0007] The detection information of the first target is processed based on the target identifier.
[0008] Optionally, the identifier candidate pool includes a plurality of candidate identifier groups, each of the plurality of candidate identifier groups includes N candidate identifiers, and the N candidate identifiers in the plurality of candidate identifier groups correspond one to one;
[0009] The step of allocating a target identifier to the first target according to the first candidate identifier included in the identifier candidate pool includes:
[0010] When the time that the first candidate identifier has been released is less than the preset time, determining a first candidate identifier group to which the first candidate identifier belongs;
[0011] A second candidate identifier in a second candidate identifier group corresponding to the first candidate identifier is determined as the target identifier, and the multiple candidate identifier groups include the first candidate identifier group and the second candidate identifier group.
[0012] Optionally, the identifier candidate pool is a number candidate pool, and determining the first candidate identifier group to which the first candidate identifier belongs includes:
[0013] Obtaining a first value according to a quotient of the first candidate identifier and the N, wherein the first value is used to identify the first candidate identifier group;
[0014] When the time during which the first candidate identifier has been released is less than the preset threshold, determining a second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier as the target identifier includes:
[0015] If the first value is less than the second value, adding the N to the first candidate identifier to obtain the second candidate identifier, and determining the second candidate identifier as the target identifier, the second value being obtained according to the quotient of the maximum number in the candidate number pool and the N;
[0016] Alternatively, if the first value is equal to the second value, the product of N and the second value is subtracted from the first candidate identifier to obtain the second candidate identifier, and the second candidate identifier is determined as the target identifier.
[0017] Optionally, N is the maximum number of targets that the detection device can detect simultaneously.
[0018] Optionally, the method further includes:
[0019] Sort the released candidate identifiers in descending order according to the time when the candidate identifiers have been released;
[0020] The candidate identifier with the highest ranking is determined as the first candidate identifier.
[0021] Optionally, the method further includes:
[0022] The first candidate identifier and the time at which the first candidate identifier has been released are deleted from the identifier candidate pool.
[0023] Optionally, the method further includes:
[0024] In response to the first target exit detection process, the target identifier and the time at which the target identifier has been released are recorded in the identifier candidate pool.
[0025] In a second aspect, the present application provides an information processing device, the device comprising:
[0026] an allocation unit, configured to allocate a target identifier to the first target in response to detecting a first target in a detection environment, according to a first candidate identifier that has been released and is included in an identifier candidate pool, wherein the identifier candidate pool includes the first candidate identifier and a time when the first candidate identifier has been released, if the time when the first candidate identifier has been released is greater than or equal to a preset time, then the target identifier is the first candidate identifier, and if the time when the first candidate identifier has been released is less than the preset time, then the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier;
[0027] A processing unit is used to process the detection information of the first target based on the target identifier.
[0028] Optionally, the identifier candidate pool includes a plurality of candidate identifier groups, each of the plurality of candidate identifier groups includes N candidate identifiers, and the N candidate identifiers in the plurality of candidate identifier groups correspond one to one;
[0029] The allocation unit is used to:
[0030] When the time that the first candidate identifier has been released is less than the preset time, determining a first candidate identifier group to which the first candidate identifier belongs;
[0031] A second candidate identifier in a second candidate identifier group corresponding to the first candidate identifier is determined as the target identifier, and the multiple candidate identifier groups include the first candidate identifier group and the second candidate identifier group.
[0032] Optionally, the identifier candidate pool is a number candidate pool, and determining the first candidate identifier group to which the first candidate identifier belongs includes:
[0033] Obtaining a first value according to a quotient of the first candidate identifier and the N, wherein the first value is used to identify the first candidate identifier group;
[0034] When the time during which the first candidate identifier has been released is less than the preset threshold, determining a second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier as the target identifier includes:
[0035] If the first value is less than the second value, adding the N to the first candidate identifier to obtain the second candidate identifier, and determining the second candidate identifier as the target identifier, the second value being obtained according to the quotient of the maximum number in the candidate number pool and the N;
[0036] Alternatively, if the first value is equal to the second value, the product of N and the second value is subtracted from the first candidate identifier to obtain the second candidate identifier, and the second candidate identifier is determined as the target identifier.
[0037] Optionally, N is the maximum number of targets that the detection device can detect simultaneously.
[0038] Optionally, the device further comprises:
[0039] A sorting unit, used to sort the released candidate identifiers from large to small according to the time when the candidate identifiers have been released;
[0040] A determining unit is used to determine the candidate identifier with the highest ranking as the first candidate identifier.
[0041] Optionally, the device further comprises:
[0042] A deleting unit is used to delete the first candidate identifier and the time when the first candidate identifier has been released from the identifier candidate pool.
[0043] Optionally, the device further comprises:
[0044] A recording unit is used to record the target identifier and the time when the target identifier has been released in the identifier candidate pool in response to the first target exit detection processing.
[0045] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;
[0046] The processor is used to execute instructions stored in the memory so that the electronic device performs the method as described in any one of the first aspects above.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute a method as described in any one of the above first aspects.
[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.
[0049] Compared with the prior art, the embodiments of the present application have the following advantages:
[0050] The embodiment of the present application provides an information processing method, which can be applied to a detection system. The detection system can respond to the detection of a first target in the detection environment, and allocate a target identifier to the first target according to the first candidate identifier that has been released and is included in the identifier candidate pool. Among them, the identifier candidate pool includes the first candidate identifier and the time when the first candidate identifier has been released. If the time when the first candidate identifier has been released is greater than or equal to the preset time, it means that the first candidate identifier is re-assigned to the detected target, and the problem of different targets detected in a short time being assigned the same identifier will not occur. Therefore, in this case, the first candidate identifier can be determined as the target identifier. Correspondingly, if the time when the first candidate identifier has been released is less than the preset time, in order to avoid the problem of different targets detected in a short time being assigned the same identifier, the second candidate identifier calculated according to the first candidate identifier and different from the first candidate identifier can be determined as the target identifier. After determining the target identifier, the detection information of the first target can be processed based on the target identifier. It can be seen that, using this solution, the problem of different targets detected in a short time being assigned the same identifier can be avoided, and accordingly, the abnormality of processing the detection information of the target can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;
[0053] Figure 2 A flowchart of a method for assigning a target identifier to a first target provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] The inventor of the present application has found through research that, when assigning identifications to detected targets, a number can be randomly assigned within a certain number range and used as the identification assigned to the target. When the target exits the tracking process, the number is released and put back into the candidate pool. When a new target appears, a number is randomly selected from the candidate pool and assigned to the new target.
[0057] However, this method may cause the same number to be repeatedly used in a short period of time, that is, the same number may be assigned to different targets in a short period of time, so that the number cannot be used to uniquely locate a target, that is, the function of distinguishing different targets based on the number cannot be realized. Correspondingly, the processing of the target detection information may be abnormal.
[0058] In order to solve the above problems, an embodiment of the present application provides an information processing method and device.
[0059] Exemplary Methods
[0060] See also Figure 1 , which is a flow chart of an information processing method provided in an embodiment of the present application. Figure 1 The method shown can be applied to a detection system including a detection device, wherein the detection device includes but is not limited to a radar.
[0061] Figure 1 The method shown includes the following S101-S102.
[0062] S101: In response to detecting a first target in a detection environment, a target identifier is provided for the first target according to a first candidate identifier that has been released and is included in an identifier candidate pool, wherein the identifier candidate pool includes the first candidate identifier and the time when the first candidate identifier has been released. If the time when the first candidate identifier has been released is greater than or equal to a preset time, the target identifier is the first candidate identifier. If the time when the first candidate identifier has been released is less than the preset time, the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier.
[0063] The detection device, such as a radar, can detect targets in its surrounding environment. The detection environment mentioned here may be the surrounding environment of the detection device. The embodiment of the present application does not specifically limit the first target, and the first target includes but is not limited to a person or an object.
[0064] In the embodiment of the present application, considering that the number of targets that the detection device can detect may be more than one, in order to distinguish different targets, an identifier can be assigned to the target after the target is detected, so as to distinguish different targets by using the identifier of the target, and accordingly, the candidate can also process the detection information of the target based on the identifier assigned to the target. Therefore, if the detection device detects a first target in the detection environment, the detection system can assign a target identifier to the first target in response to detecting the first target in the detection environment.
[0065] The identifiers mentioned in the embodiments of the present application include, but are not limited to, one or more of numbers, letters, and special characters. In a specific example, the identifier of the target may be, for example, the number of the identifier (i.e., corresponding to the aforementioned number). The number of the identifier may be, for example, a positive integer.
[0066] In order to avoid the same identifier being reused in a short period of time, in an embodiment of the present application, an identifier candidate pool may be preset, and the identifier candidate pool may include at least one candidate identifier that has been released and the time when each candidate identifier in the at least one candidate identifier has been released. The at least one candidate identifier includes at least the first candidate identifier.
[0067] The time when the candidate identification has been released mentioned here can be a specific time, for example, ** seconds, or a data refresh cycle of the detection device, for example, * data refresh cycle.
[0068] In the embodiment of the present application, a target identifier may be allocated to the first target according to the first candidate identifier that has been released.
[0069] In one example, if the time that the first candidate identifier has been released is greater than or equal to the preset time, it means that the first candidate identifier has been released for a long time, and accordingly, the first candidate identifier can be assigned to a new target at this time. Therefore, if the time that the first candidate identifier has been released is greater than or equal to the preset time, the target identifier can be the first candidate identifier, that is, the first candidate identifier can be assigned to the first target.
[0070] In another example, if the time that the first candidate identifier has been released is less than the aforementioned preset time, it means that the time that the first candidate identifier has been released is not long enough. If the first candidate identifier is assigned to a new target at this time, it may cause the same identifier (i.e., the first candidate identifier) to be assigned to multiple objects in a short period of time. Therefore, in an embodiment of the present application, if the time that the first candidate identifier has been released is less than the aforementioned preset time, the first candidate identifier can be calculated accordingly to obtain a second candidate identifier different from the first candidate identifier, and the second candidate identifier is determined as the target identifier. In one example, the second candidate identifier is also not the identifier of other targets currently being processed.
[0071] The embodiment of the present application does not specifically limit the preset time, and the preset time can be determined according to actual conditions.
[0072] S102: Process the detection information of the first target based on the target identifier.
[0073] After assigning a target identifier to the first target, the detection information of the first target can be processed based on the target identifier. In one example, the correspondence between the target identifier and the detection information of the first target can be saved. Accordingly, the saved detection information of the first target can be extracted with the target identifier as an index to facilitate subsequent analysis and processing of the detection information of the first target. The embodiment of the present application does not specifically limit the specific implementation method for analyzing and processing the detection information of the first target. The analysis and processing of the detection information of the first target can be related to the application scenario corresponding to the detection system, and will not be described in detail here.
[0074] From the above description, it can be seen that when a target identifier is assigned to a first target using the solution of an embodiment of the present application, a candidate identifier is not randomly selected from the released candidate identifiers as the target identifier, but the target identifier is assigned to the first target based on the time when the released candidate identifiers were released, thereby avoiding the problem of different targets detected in a short period of time being assigned the same identifier. Accordingly, anomalies in processing the target's detection information can be avoided.
[0075] Next, the specific implementation of "assigning a target identifier to the first target according to the first candidate identifier included in the identifier candidate pool" is introduced when the time when the first candidate identifier is released is less than the preset time.
[0076] See also Figure 2 , which is a flow chart of a method for assigning a target identifier to a first target provided in an embodiment of the present application. Figure 2 The method shown includes the following S201-S202.
[0077] S201: Determine a first candidate identifier group to which the first candidate identifier belongs.
[0078] In an embodiment of the present application, the candidate pool of identifiers may include multiple candidate identifier groups, each of the multiple candidate identifier groups includes N candidate identifiers, and the N candidate identifiers in the multiple candidate identifier groups correspond one to one. In other words, for any candidate identifier in a candidate identifier group, each of the other candidate identifier groups has a candidate identifier that uniquely corresponds to the candidate identifier. For example:
[0079] The multiple candidate identification groups include candidate identification group 1 and candidate identification group 2. Candidate identification group 1 includes 80 candidate identifications, which correspond to numbers 1 to 80 respectively. Candidate identification group 2 also includes 80 candidate identifications, which correspond to numbers 81 to 160 respectively. Number 1 corresponds to number 81, number 2 corresponds to number 82, and so on. Candidate identification i in candidate identification group 1 corresponds to candidate identification i+80 in candidate identification group 2.
[0080] In an example, the identifier of the target may be the number of the target. In this case, the aforementioned identifier candidate pool may be a number candidate pool, and the number candidate pool may include N candidate numbers.
[0081] The embodiments of the present application do not specifically limit the value of N, as long as N is greater than the maximum number of targets that the detection device can detect simultaneously. In a specific example, in order to save storage space occupied by storing target identifiers, N can be equal to the maximum number of targets that the detection device can detect simultaneously.
[0082] In an example, the first candidate identifier may be compared with candidate identifiers in a plurality of candidate identifier groups to determine the candidate identifier group to which the first candidate identifier belongs.
[0083] In another example, each candidate identification group may have an identification, for example, each candidate identification group has a number. In this case, S201 may be implemented to determine the number of the first candidate identification group. Specifically, the first value may be determined based on the quotient of the first candidate identification and the aforementioned N. The first value is used to identify the first candidate identification group. In other words, the first value is the identification of the first candidate identification group.
[0084] In one example, the quotient of the first candidate identifier and N may be rounded down to obtain the first value. For example, if the first candidate identifier is 90 and N is 80, the first value is 1, that is, the identifier of the first candidate identifier group is 1. In another example, the quotient of the first candidate identifier and N may be rounded up to obtain the first value. For example, if the first candidate identifier is 90 and N is 80, the first value is 2, that is, the identifier of the first candidate identifier group is 2.
[0085] S202: Determine the second candidate identifier in the second candidate identifier group that corresponds to the first candidate identifier as the target identifier.
[0086] In one example, a candidate identifier group may be randomly selected from other candidate identifier groups except the first candidate identifier group as the second candidate identifier group, and the second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier may be determined as the target identifier.
[0087] In another example, the next candidate identifier group of the first candidate identifier group may be determined as the second candidate identifier group, and the second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier may be determined as the target identifier.
[0088] When the first candidate identification group is not the candidate identification group with the largest number among the multiple candidate identification groups, the next candidate identification group of the first candidate identification group may be a candidate identification group with a number that is 1 greater than that of the first candidate identification group.
[0089] When the first candidate identification group is the candidate identification group with the largest number among the multiple candidate identification groups, the next candidate identification group of the first candidate identification group may be the candidate identification group with the smallest number among the multiple candidate identification groups.
[0090] In one example, whether the first candidate identification group is the candidate identification group with the largest number among the plurality of candidate identification groups can be determined by comparing a first value and a second value. The second value is determined according to the quotient of the largest number in the candidate number pool and N. In one example, the quotient of the largest number and N can be rounded down to obtain the second value. In another example, the quotient of the largest number and N can be rounded up to obtain the second value.
[0091] In a specific example, if the first value is less than the second value, it is determined that the first candidate identifier group is not the candidate identifier group with the largest number among the multiple candidate identifier groups. At this time, the second candidate identifier can be determined from the candidate identifier group with the corresponding number (first value + 1). As mentioned above, a candidate identifier group includes N candidate identifiers. In a specific example, the first candidate identifier can be added to N to obtain the second candidate identifier.
[0092] In another specific example, if the first numerical value is equal to the second numerical value, it is determined that the first candidate identifier group is the candidate identifier group with the largest number among the multiple candidate identifier groups. At this time, the second candidate identifier can be determined from the candidate identifier group corresponding to the number 0. In a specific example, the first candidate identifier can be subtracted from the product of N and the second numerical value to obtain the second candidate identifier.
[0093] For example:
[0094] N is 80, and the maximum number in the candidate number pool is 255, then the second value is 3. The multiple candidate identification groups include candidate identification group 1, candidate identification group 2, and candidate identification group 3. Candidate identification group 1 includes 80 candidate identifications, corresponding to numbers 1 to 80 respectively, candidate identification group 2 also includes 80 candidate identifications, corresponding to numbers 81 to 160 respectively, and candidate identification group 3 includes 80 candidate identifications, corresponding to numbers 161 to 240 respectively. Number 1, number 81, and number 161 correspond to each other, number 2, number 82, and number 162 correspond to each other, and so on. Candidate identification i in candidate identification group 1 corresponds to candidate identification i+80 in candidate identification group 2, and candidate identification i+160 in candidate identification group 3.
[0095] Assuming that the first candidate identifier is 16, the first numerical value is 0, and the first numerical value is smaller than the second numerical value, it can be determined that the second candidate identifier is 16+80=96.
[0096] Assuming that the first candidate identifier is 254, the first numerical value is 3, and the first numerical value is equal to the second numerical value, then it can be determined that the second candidate identifier is: 254-80*3=14.
[0097] The embodiment of the present application does not specifically limit the first candidate identifier, and the first candidate identifier may be any candidate identifier among the candidate identifiers that have been released.
[0098] In one example, in order to use the released candidate identifiers as much as possible, instead of regenerating new candidate identifiers based on the released candidate identifiers, the released candidate identifiers can be sorted from large to small according to the time when the candidate identifiers have been released, and the candidate identifier with the highest sorting is determined as the first candidate identifier. In this scenario, the storage space occupied by storing the identifier of the target can be saved.
[0099] In one example, after determining the target identifier based on the first candidate identifier, the first candidate identifier and the time when the first candidate identifier has been released can be deleted from the identifier candidate pool. In this way, it is possible to avoid continuing to allocate an identifier to the second target based on the first candidate identifier when other targets, such as the second target, appear, and accordingly avoid different targets being allocated the same identifier within a short period of time.
[0100] In one example, if the first target exits the detection process, the target identifier and the time when the target identifier has been released can be recorded in the identifier candidate pool, so that when a new target appears, an identifier can be assigned to the new target based on the target identifier. The first target exits the detection process when the first target disappears from the detection environment or when the first target disappears from the detection environment and the detection information processing of the first target is completed.
[0101] The detection information of the first target mentioned in the embodiments of the present application includes but is not limited to measurement information such as radial distance, radial Doppler velocity, azimuth, and altitude.
[0102] The above introduces the information processing method provided in the embodiment of the present application. Next, taking the target identification as the target number as an example, combined with a specific scenario, the solution provided in the embodiment of the present application is introduced.
[0103] 1. Based on the size of the storage space for storing numbers, set the range of numbers [ID min ,ID max ], assuming ID min =1, ID max = 255. In addition, it is determined that the maximum number of targets that the detection device can detect simultaneously is N = 80.
[0104] ID-based max and N, it can be determined that the second value = 3.
[0105] 2. Determine that the aforementioned multiple candidate identification groups include candidate identification group 1, candidate identification group 2, and candidate identification group 3. Wherein:
[0106] Candidate identification group 1 includes 80 candidate identifications, which are numbered 1 to 80 respectively;
[0107] Candidate identification group 2 also includes 80 candidate identifications, corresponding to numbers 81 to 160;
[0108] Candidate identifier group 3 includes 80 candidate identifiers, corresponding to numbers 161 to 240 respectively.
[0109] Number 1, number 81 and number 161 correspond to each other, and candidate identification i in candidate identification group 1 corresponds to candidate identification i+80 in candidate identification group 2 and candidate identification i+160 in candidate identification group 3.
[0110] 3. Perform statistical management on the time when the released numbers have been released. That is, record the released numbers and the time when the numbers have been released. Also, set the time interval M for re-activation of the same number, where M corresponds to the aforementioned preset time and the value of M is 10.
[0111] The M mentioned here may be the data refresh period of the detection device. Specifically, since the data refresh period of the detection device is 50 milliseconds, in order to achieve the requirement that the activation interval of the same number is not less than 0.5s, the value of M is set to 10.
[0112] 4. Sort the released numbers and the time clocks at which they were released in descending order of clock. The sorting results are shown in Table 1 below:
[0113] Table 1
[0114] serial number clock 16 30 14 9 251 4 …… ……
[0115] In the current detection cycle, three targets are detected (all three targets can correspond to the first target mentioned above), namely target 1, target 2 and target 3. Target identifiers are assigned to target 1, target 2 and target 3 in turn.
[0116] For target 1, since the time when number 16 has been released is greater than 10, number 16 can be assigned to target 1, and number 16 and the time when number 16 has been released are deleted.
[0117] For target 2, since the time when number 14 has been released is less than 10, the first value can be calculated. The calculated first value is equal to 0 (that is, less than the second value 3). At this time, 14+80=94 can be assigned to target 2, and number 14 and the time when number 14 has been released can be deleted.
[0118] For target 3, since the time when number 251 has been released is less than 10, the first value can be calculated. The calculated first value is equal to 3 (that is, equal to the second value 3). At this time, 251-3*80=11 can be assigned to target 2, and number 251 and the time when number 251 has been released can be deleted.
[0119] Exemplary Devices
[0120] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0121] See also Figure 3 , which is a structural schematic diagram of an information processing device provided in an embodiment of the present application. Figure 3 The information processing device 300 shown is used to execute the information processing method provided in the above embodiment. Figure 3 The information processing device 300 shown includes: an allocation unit 301 and a processing unit 302 .
[0122] The allocation unit 301 is used to allocate a target identifier to the first target in response to detecting a first target in a detection environment, according to a first candidate identifier that has been released and is included in an identifier candidate pool, wherein the identifier candidate pool includes the first candidate identifier and the time when the first candidate identifier has been released. If the time when the first candidate identifier has been released is greater than or equal to a preset time, the target identifier is the first candidate identifier; if the time when the first candidate identifier has been released is less than the preset time, the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier.
[0123] The processing unit 302 is configured to process the detection information of the first target based on the target identifier.
[0124] Optionally, the identifier candidate pool includes a plurality of candidate identifier groups, each of the plurality of candidate identifier groups includes N candidate identifiers, and the N candidate identifiers in the plurality of candidate identifier groups correspond one to one;
[0125] The allocation unit is used to:
[0126] When the time that the first candidate identifier has been released is less than the preset time, determining a first candidate identifier group to which the first candidate identifier belongs;
[0127] A second candidate identifier in a second candidate identifier group corresponding to the first candidate identifier is determined as the target identifier, and the multiple candidate identifier groups include the first candidate identifier group and the second candidate identifier group.
[0128] Optionally, the identifier candidate pool is a number candidate pool, and determining the first candidate identifier group to which the first candidate identifier belongs includes:
[0129] Obtaining a first value according to a quotient of the first candidate identifier and the N, wherein the first value is used to identify the first candidate identifier group;
[0130] When the time during which the first candidate identifier has been released is less than the preset threshold, determining a second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier as the target identifier includes:
[0131] If the first value is less than the second value, adding the N to the first candidate identifier to obtain the second candidate identifier, and determining the second candidate identifier as the target identifier, the second value being obtained according to the quotient of the maximum number in the candidate number pool and the N;
[0132] Alternatively, if the first value is equal to the second value, the product of N and the second value is subtracted from the first candidate identifier to obtain the second candidate identifier, and the second candidate identifier is determined as the target identifier.
[0133] Optionally, N is the maximum number of targets that the detection device can detect simultaneously.
[0134] Optionally, the device further comprises:
[0135] A sorting unit, used to sort the released candidate identifiers from large to small according to the time when the candidate identifiers have been released;
[0136] A determining unit is used to determine the candidate identifier with the highest ranking as the first candidate identifier.
[0137] Optionally, the device further comprises:
[0138] A deleting unit is used to delete the first candidate identifier and the time when the first candidate identifier has been released from the identifier candidate pool.
[0139] Optionally, the device further comprises:
[0140] A recording unit is used to record the target identifier and the time when the target identifier has been released in the identifier candidate pool in response to the first target exit detection processing.
[0141] Since the device 300 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 300 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 300, reference can be made to the description part of the above method embodiment, which will not be repeated here.
[0142] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;
[0143] The processor is used to execute the instructions stored in the memory, so that the electronic device executes the information processing method provided by the above method embodiment.
[0144] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the information processing method provided by the above method embodiment.
[0145] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the information processing method provided by the above method embodiment.
[0146] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0147] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0148] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. An information processing method, characterized in that: The method comprises: In response to detecting a first target in a detection environment, a target identifier is assigned to the first target according to a first candidate identifier that has been released and is included in an identifier candidate pool, the identifier candidate pool including the first candidate identifier and a time when the first candidate identifier has been released, if the time when the first candidate identifier has been released is greater than or equal to a preset time, the target identifier is the first candidate identifier, if the time when the first candidate identifier has been released is less than the preset time, the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier; The detection information of the first target is processed based on the target identifier.
2. The method according to claim 1, characterized in that The candidate identifier pool includes a plurality of candidate identifier groups, each of the plurality of candidate identifier groups includes N candidate identifiers, and the N candidate identifiers in the plurality of candidate identifier groups correspond to each other one by one; The allocating a target identifier to the first target according to the first candidate identifier included in the identifier candidate pool includes: When the time during which the first candidate identifier has been released is less than the preset time, determining a first candidate identifier group to which the first candidate identifier belongs; A second candidate identifier in a second candidate identifier group corresponding to the first candidate identifier is determined as the target identifier, and the multiple candidate identifier groups include the first candidate identifier group and the second candidate identifier group.
3. The method according to claim 2, characterized in that The identifier candidate pool is a number candidate pool, and determining the first candidate identifier group to which the first candidate identifier belongs includes: Obtaining a first value according to a quotient of the first candidate identifier and the N, wherein the first value is used to identify the first candidate identifier group; When the time during which the first candidate identifier has been released is less than the preset threshold, determining a second candidate identifier in the second candidate identifier group corresponding to the first candidate identifier as the target identifier includes: If the first value is less than the second value, adding the N to the first candidate identifier to obtain the second candidate identifier, and determining the second candidate identifier as the target identifier, the second value being obtained according to the quotient of the maximum number in the candidate number pool and the N; Alternatively, if the first value is equal to the second value, the product of N and the second value is subtracted from the first candidate identifier to obtain the second candidate identifier, and the second candidate identifier is determined as the target identifier.
4. The method according to claim 2 or 3, characterized in that: N is the maximum number of targets that the detection device can detect simultaneously.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Sort the released candidate identifiers in descending order according to the time when the candidate identifiers have been released; The candidate identifier with the highest ranking is determined as the first candidate identifier.
6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The first candidate identifier and the time at which the first candidate identifier has been released are deleted from the identifier candidate pool.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to the first target exit detection process, the target identifier and the time at which the target identifier has been released are recorded in the identifier candidate pool.
8. An information processing device, characterized in that: The device comprises: an allocation unit, configured to allocate a target identifier to the first target in response to detecting a first target in a detection environment, according to a first candidate identifier that has been released and is included in an identifier candidate pool, wherein the identifier candidate pool includes the first candidate identifier and a time when the first candidate identifier has been released, if the time when the first candidate identifier has been released is greater than or equal to a preset time, then the target identifier is the first candidate identifier, and if the time when the first candidate identifier has been released is less than the preset time, then the target identifier is a second candidate identifier that is calculated based on the first candidate identifier and is different from the first candidate identifier; A processing unit is used to process the detection information of the first target based on the target identifier.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is used to execute instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The method comprises instructions, wherein the instructions instruct a device to execute the method according to any one of claims 1 to 7.