Detailed Description
The foregoing and other features of embodiments of the present invention will become apparent from the following description, taken in conjunction with the accompanying drawings. These embodiments are merely exemplary, and are not intended to limit the present invention. In order to enable those skilled in the art to easily understand the principle and the implementation manner of the present invention, the embodiment of the present invention is described by taking the example of transmitting the microwave signal, but it is understood that the embodiment of the present invention is not limited to transmitting the microwave signal.
The following describes embodiments of the present invention with reference to the drawings.
Example 1
In this embodiment 1, a data slicing apparatus is provided, which is configured to slice a signal sequence of a first characteristic of a reflected signal of a plurality of (X) articles into X reflected signal sequences respectively corresponding to X articles, where fig. 1 is a schematic configuration diagram of the data slicing apparatus, and as shown in fig. 1, an apparatus 100 includes:
a first determining unit 101, configured to detect segment by segment a signal sequence of the first characteristic of the X article reflected signals, so as to determine a candidate start point set and a candidate end point set of the reflected signal sequence of each article in the signal sequence of the first characteristic of the X article reflected signals;
a selecting unit 102, configured to select a start point of the sequence of the reflected signal for each article from the set of candidate start points, and select an end point of the sequence of the reflected signal for each article from the set of candidate end points;
a second determining unit 103 for determining a signal sequence between the start and end of the sequence of reflection signals for each item as the sequence of reflection signals for each item.
By the device of the embodiment, the start point and the end point of the reflected signal sequence of each article in the plurality of articles are determined according to the reflected signal sequence of the first characteristic of the plurality of articles, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article in the plurality of articles can be positioned one by one and intercepted, further, the article can be detected according to the reflected signal sequence of each article, and the detection precision is improved.
Fig. 2 is a schematic diagram of a signal sequence of the first characteristic of the reflected signal of the X articles, as shown in fig. 2, the abscissa corresponds to the serial number of the signal sequence, the ordinate corresponds to the first characteristic value, and due to the transmission or reflection characteristic of the X articles, the intensity of the signal is reduced after the transmitted signal passes through the transmission or reflection of the X articles, so that, in the signal sequence of the first characteristic (for example, the intensity) of the reflected signal of the X articles, the region where the X articles exist presents a larger recess compared to the region where the articles do not exist, and the extent of recess is different for different articles due to different sizes of the transmission or reflection characteristic, the first determining unit 101 determines a candidate start point set and a candidate end point set of the recess data segment corresponding to each article, the selecting unit 102 selects the start point and the end point of each recess data segment from the candidate start point set and the candidate end point set, and the second determining unit 103 determines the recess data segment between the start point and the end point as the reflected signal sequence of each article, and then determines X reflected signal sequences (recess data segments) of the X articles.
Fig. 3 is a schematic diagram of the first determining unit 101 in the present embodiment, and as shown in fig. 3, the first determining unit includes:
a first determining module 301, configured to detect, one by one, a plurality of signal sequences of a first predetermined length in the signal sequence of the first characteristic of the X article reflected signals to determine the candidate start point set and the candidate end point set, where adjacent signal sequences of the first predetermined length are separated by a predetermined step size, and for each signal sequence of the first predetermined length, when a variation amplitude of the signal sequence of the first predetermined length exceeds a first threshold, a point greater than or equal to a second threshold in signal values of the signal sequence of the first predetermined length is determined as a candidate start point or a candidate end point.
In this embodiment, the first determining module 301 determines, for each signal sequence of a first predetermined length, whether there is a large variation trend (e.g., rising or falling) within the signal sequence of the first predetermined length, and if so, indicates that there is a concave data segment in the signal sequence, and determines, by setting a second threshold, a point where a signal value is greater than or equal to the second threshold in the signal sequence of the first predetermined length where there is a large variation trend as a candidate starting point or a candidate ending point, and constructs the candidate starting point set and the candidate ending point set.
In this embodiment, the first determining module 301 further includes: a second determining module 3011 and a third determining module 3012 to determine a set of candidate starting points, and a set of candidate end points, respectively, wherein,
a second determining module 3011, configured to determine, when a difference between a maximum value and a minimum value in the signal values of the signal sequence with the first predetermined length exceeds the first threshold, the maximum value is before a sequence number of the minimum value in the signal sequence, and the maximum value is greater than or equal to a second threshold, a point corresponding to the maximum value as a candidate starting point;
and a third determining module 3012, configured to determine, when a difference between a maximum value and a minimum value in the signal values of the signal sequence with the first predetermined length exceeds the first threshold, the maximum value is later than a sequence number of the minimum value in the signal sequence, and the maximum value is greater than or equal to the second threshold, a point corresponding to the maximum value as a candidate endpoint.
In this embodiment, the first predetermined length L1, the first threshold T1 and the second threshold T2 may be set as required, for example, the first predetermined length L1, the first threshold T1 and the second threshold T2 may be predeterminedA detection sliding window with a predetermined length of L1, fig. 4 is a schematic diagram of the detection sliding window in this embodiment, as shown in fig. 4, an abscissa corresponds to a serial number of a signal sequence, an ordinate corresponds to a first characteristic value, and the detection sliding window with the length of L1 in the signal sequence of the first characteristic of the X article reflection signals continuously slides with a step length (e.g., a sliding window moving step length in fig. 4) with a second predetermined length of S to detect a signal sequence entering the detection sliding window; fig. 5A and 5B are schematic diagrams illustrating determination of a candidate start point set and a candidate end point set, respectively, as shown in fig. 5A and 5B, where an abscissa corresponds to a sequence number of a signal sequence and an ordinate corresponds to a first characteristic value, and a maximum value a of a signal in a signal value of the signal sequence entering the detection sliding window is calculated 1 With a minimum value A 2 Determining the maximum variation amplitude of the segment of signal sequence, and determining that a large variation trend exists in the segment of signal sequence when the difference Δ a exceeds the first threshold T1; wherein, at a maximum value A 1 Ratio of minimum value A 2 When the serial number is advanced in the signal sequence, the change trend is a descending trend, and the maximum value A is 1 Ratio of minimum value A 2 When the sequence number is later in the signal sequence, the trend is an ascending trend, as shown in fig. 5A, for the signal sequence with the length of L1 and the descending trend, the segment of signal sequence can be determined to be located at the beginning of an article reflected signal sequence, and then a candidate starting point can be determined in the segment of signal sequence, as shown in fig. 5B, for the signal sequence with the length of L1 and the ascending trend, the segment of signal sequence can be determined to be located at the end of an article reflected signal sequence, and then a candidate ending point can be determined in the segment of signal sequence.
When the maximum value of the signal sequence signal values with the length L1 and the ascending trend is greater than or equal to T2, the point corresponding to the maximum value is determined as a candidate starting point and added into a candidate starting point set, and when the maximum value of the signal sequence signal values with the length L1 and the ascending trend is greater than or equal to T2, the point corresponding to the maximum value is determined as a candidate ending point and added into a candidate ending point set.
In this embodiment, when a difference between a maximum value and a minimum value in the signal value of the signal sequence entering the detection sliding window does not exceed a first threshold T1, it is determined that there is no large variation trend in the signal sequence; or when the difference exceeds a first threshold T1, but the maximum value in the signal sequence of the signal sequence entering the detection sliding window is smaller than a second threshold T2, determining that the point corresponding to the maximum value in the signal sequence of the detection sliding window cannot be used as a candidate starting point and an end point, and then sliding the detection sliding window by a step S of a second predetermined length, and repeating the detection on the next signal sequence entering the detection sliding window until the detection sliding window slides to the end of the signal sequence of the first characteristic of the reflection signal of the X articles, and completing the construction of a candidate starting point set and a candidate end point set, wherein fig. 6A and 6B are schematic diagrams of the candidate starting point set and candidate end point set, respectively, and the horizontal coordinates correspond to the sequence numbers of the signal sequences, and the vertical coordinates correspond to the first characteristic values, as shown in fig. 6A, the candidate starting point set is { M.,. N.,. P.,. Q. }, as shown in fig. 6B, and the candidate end point set is { M.,. N.,. P.,. Q.
In this embodiment, the candidate starting point M, · N,. P,. Q,. A, the candidate end point M ',. N ',. P ',. Q ',. May be represented by a sequence number in the signal sequence, for example, when M =10, M ' =100, it indicates that a point with a sequence number of 10 in the signal sequence is a candidate starting point and a point with a sequence number of 100 in the signal sequence is a candidate end point.
In this embodiment, the first determining unit 301 determines that the obtained candidate start point set includes all possible start points of the reflection signal sequences corresponding to each of the X articles, and the obtained candidate end point set includes all possible end points of the reflection signal sequences corresponding to each of the X articles, and the selecting unit 102 needs to distinguish a start point subset and an end point subset of different articles from each other in the candidate start point set and the candidate end point set, and select a start point and an end point of each article reflection signal sequence from the candidate start point subset and the candidate end point subset for pairing.
In this embodiment, fig. 7 is a schematic structural diagram of the selecting unit 102, and as shown in fig. 7, the selecting unit 102 includes:
a first selection module 701 for determining a candidate starting point subset and a candidate ending point subset for each item from the candidate starting point set and the candidate ending point set;
a pairing module 702 for pairing the subset of candidate starting points and the subset of candidate ending points to determine a starting point and an ending point of the sequence of reflected signals for each item.
In this embodiment, the first selecting module 701 includes:
a first calculating module 7011, configured to calculate an interval between every two adjacent candidate starting points in the candidate starting point set, and determine an adjacent candidate starting point corresponding to the interval being smaller than a third threshold T3 as a candidate starting point subset belonging to one item of the X items, so as to determine a candidate starting point subset for each item;
a second calculating module 7012, configured to separately calculate an interval between every two adjacent candidate end points in the candidate end point set, and determine an adjacent candidate end point corresponding to the interval being smaller than the fourth threshold T4 as a candidate end point subset belonging to one article in the X articles, so as to determine a candidate end point subset for each article group.
In this embodiment, the third threshold T3 and the fourth threshold T4 may be determined as needed, where whether the adjacent candidate start point belongs to the same article or different articles is distinguished according to the third threshold T3, and whether the adjacent candidate end point belongs to the same article or different articles is distinguished according to the fourth threshold T4.
When the interval between two adjacent candidate starting points is greater than or equal to a third threshold value, the two candidate starting points in the front and back parts with the two adjacent candidate starting points as boundaries belong to different articles, and when the interval between the two adjacent candidate starting points is less than the third threshold value, the two adjacent candidate starting points belong to the same article; fig. 8A and 8B are schematic diagrams of a candidate starting point subset and a candidate ending point subset, respectively, as shown in fig. 8A and 8B, where the abscissa corresponds to the number of the signal sequence and the ordinate corresponds to the first characteristic value, for example, for the candidate starting point set { M, N, P, Q }, the intervals between M and N, N and P, P and Q are calculated, respectively, and since the interval between M-N, P-Q is smaller than the third threshold T3 and the interval between N-P is larger than the third threshold T3, it is determined that { M, N } is the same item, e.g., the candidate starting point subset of object1, { P, Q } is another item, e.g., the candidate starting point subset of object 2; for the candidate end point set { M ', N', P ', Q' }, the intervals between M 'and N', N 'and P', P 'and Q' are calculated, respectively, and since the interval between M '-N', P '-Q' is smaller than the fourth threshold T4 and the interval between N '-P' is larger than the fourth threshold T4, it is determined that { M ', N' } is a candidate end point subset of the same item and { P ', Q' } is a candidate end point subset of another item.
In this embodiment, the candidate starting point M, · N,. P,. Q,. A., the candidate end point M ',. N',. P ',. Q',. May be represented by a sequence number in the signal sequence, and the interval between two adjacent candidate starting points or candidate end points may be determined by calculating a difference between the sequence numbers, for example, when M =100, N =120, and P =300, the interval between M and N is 20, and the interval between N and P is 180.
In this embodiment, according to the action performed by the first selection module 701, a candidate starting point subset of each item may be distinguished from a candidate starting point set, and a candidate ending point subset of each item may be distinguished from a candidate ending point set, and the pairing unit 702 may determine a final starting point and an ending point of each item from the candidate starting point subset and the candidate ending point subset, and perform pairing to determine that a set of final starting point and final ending point belong to the same item.
In this embodiment, the pairing module 702 includes:
a fourth determining module 7021, configured to determine a point corresponding to the maximum value of the signal in the candidate starting point subset as a final starting point, and determine a point corresponding to the maximum value of the signal in the candidate end point subset as a final end point, so as to obtain X final starting points and X final end points;
a fifth determining module 7022 is configured to calculate an interval between each final start point and each final end point, and determine corresponding final start points and final end points of the sequence of reflected signals of an article, where the interval is greater than or equal to a fifth threshold T5 and less than or equal to a sixth threshold T6, as the start point and the end point of the sequence of reflected signals of each article, so as to determine the start point and the end point of the sequence of reflected signals of each article.
FIGS. 9A and 9B are schematic diagrams illustrating final start point and final end point determination, where as shown in FIG. 9A, the abscissa corresponds to the serial number of the signal sequence, the ordinate corresponds to the first characteristic value, for object1, the subset of candidate start points is { M, N }, the point corresponding to the maximum value of the signal in the subset is M, and M can be determined as the final start point of object 1; for item object2, the subset of candidate starting points is { P, Q }, the point corresponding to the maximum value of the signal in the subset is P, and P can be determined as the final starting point of object 2; as shown in FIG. 9B, for item object1, its subset of candidate end points is { M ', N ' }, the point in the subset corresponding to the maximum value of the signal is M ', which may be determined to be the final end point of object 1; for item object2, its candidate end point subset is { P ', Q ' }, and the point corresponding to the maximum value of the signal in this subset is P ', which can be determined as the final end point of object 2.
In the present embodiment, the maximum value is selected as the final start point or the final end point, but the present embodiment is not limited to this, and for example, a sub-maximum value or a point corresponding to the average value may be selected as the final start point or the final end point.
In this embodiment, the fourth determining module 7021 may obtain a total of X final start points and X final end points, for example, when X =2, the fourth determining module 7021 determines that the final start points are M and P, and the final end points are M ', P', and the fifth determining module 7022 is configured to pair the X final start points and the X final end points, and determine the final start point and the final end point of each article.
The fifth determining module 7022 calculates the interval between each of the X final start points and each of the X final end points one by one, where the fifth threshold T5 and the sixth threshold T6 may be determined as needed, and when the interval is greater than or equal to T5 and less than or equal to T6, the final start point and the final end point corresponding to the interval are determined as belonging to the same article, for example, the final start points are M, P, and the final end points M ', P', M-M ', M-P', P-M ', P-P', and the interval calculating method is as described above, and is not described herein again.
The calculation result is that the interval between M-M 'and P-P' is greater than or equal to T5 and less than or equal to T6, so that M and M 'are respectively the final starting point and the final end point belonging to the same article, and P' are respectively the final starting point and the final end point belonging to another article.
In this embodiment, when there are a plurality of final end points and the intervals between the final end points and the final end points are greater than or equal to T5 and less than or equal to T6 for the same final start point, the fifth determining module 7022 may determine the final start point and the final end point which are closest to each other as the start point and the end point of the sequence of the reflected signals of the same article.
For example, if the calculation results are that M-M ', M-P ' are all equal to or greater than T5 and equal to or less than T6, M ' closest to M, which is the start of the sequence of reflected signals belonging to the same item, may be determined as the end of the sequence of reflected signals of the same item. Or,
in this embodiment, when there are a plurality of final start points and a plurality of final end points, both of which have intervals greater than or equal to T5 and less than or equal to T6, for the same final end point, the fifth determining module 7022 may determine the final start point and the final end point, which have the closest intervals, as the start point and the end point of the sequence of reflection signals of the same article, and the specific implementation manner thereof is similar to that described above, and will not be repeated here.
In the present embodiment, the second determination unit 103 determines the signal sequence between the start point and the end point as the reflected signal sequence. The second determining unit 103 may further intercept the reflected signal sequences of different articles one by one, fig. 10 is a schematic diagram of the intercepted reflected signal sequences of different articles, as shown in fig. 10, the abscissa corresponds to the serial number of the signal sequence, and the ordinate corresponds to the first characteristic value, and the second determining unit 103 may further be configured to compare the intercepted reflected signal sequences of different articles with the sample sequences of different articles in the sample library, so as to implement article identification and detection.
In this embodiment, the values of L1, T2, T3, T4, T5, T6, S, and X are positive numbers.
In this embodiment, the data cutting apparatus 100 may further include:
an acquisition unit (not shown) for acquiring a signal sequence of first characteristics of a plurality (N) of article reflected signals for data slicing.
Fig. 11 and fig. 12 are schematic diagrams of two scenarios for acquiring a signal sequence of a first characteristic of a reflected signal of the above-mentioned article to be detected (X articles), respectively, as shown in fig. 11, where a distance between the transceiver unit 1101 and the article 1102 to be detected is D1, a transmission signal is sent to the X articles, and a reflected signal reflected by the X articles is received; since the transceiver unit 1101 is moved along a predetermined track relative to the X articles, a signal sequence of the first characteristic of the reflected signals of the X articles can be obtained; as shown in fig. 12, the distance between the transceiving unit 1201 and the object to be detected is D1, the distance between the transceiving unit 1201 and the rear reflector is D2, the transceiving unit 1201 sends transmission signals to the X objects and the rear reflector 1202, and receives reflection signals transmitted by the X objects 1203, reflected by the rear reflector, and transmitted by the X objects; because the transceiving unit 1201 and the rear reflector 1202 move relative to the X articles along a predetermined track, and the relative positions of the transceiving unit 1201 and the rear reflector 1202 are kept unchanged, a signal sequence of the first characteristic of the reflected signals of the X articles can be obtained.
In the above, only fig. 11 and fig. 12 are used to exemplarily describe how to obtain the signal sequence of the first characteristic of the reflected signal of the X articles, but the present embodiment is not limited thereto, for example, the X articles may be moved along a predetermined track relative to the transceiver unit, and the predetermined track is not limited to a straight line, and may also be a curve, etc.
The first characteristic may be a reflected signal strength, but the embodiment is not limited thereto, and may also be other characteristics such as a reflected signal phase variation, the reflected signal and the transmitted signal may be mixed to obtain a corresponding baseband signal sequence, and the baseband signal sequence is subjected to Fast Fourier Transform (FFT) processing to obtain signal sequences of the first characteristic of the X article reflected signals. It should be noted that the method for obtaining the first characteristic is not limited in this embodiment, that is, the reflected signal strength can be calculated by using the prior art, for example, if a microwave sensor using the doppler radar technology is used as the transceiver, the echo of the doppler radar includes a large amount of information such as the amplitude, phase, and frequency shift of the received signal, and the echo of the doppler radar is processed to obtain the reflected signal strength sequence at different positions (D1 or D2).
By the device of the embodiment, the start point and the end point of the reflected signal sequence of each article in the plurality of articles are determined according to the reflected signal sequence of the first characteristic of the plurality of articles, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article in the plurality of articles can be positioned one by one and intercepted, further, the article can be detected according to the reflected signal sequence of each article, and the detection precision is improved.
Example 2
Embodiment 2 further provides a data cutting device, fig. 13 is a schematic diagram of a hardware configuration of the data cutting device according to the embodiment of the present invention, and as shown in fig. 13, a device 1300 may include: an interface (not shown), a Central Processing Unit (CPU) 1320, a memory 1310, and a transceiver 1340; memory 1310 is coupled to central processor 1320. Wherein memory 1310 may store various data; also, a program for data cutting is stored, and the program is executed under the control of the central processor 1320, and various thresholds and the like are stored.
In one embodiment, the functionality of the data slicing apparatus may be integrated into the central processor 1320. Wherein the central processor 1320 is configured to cut the signal sequence of the first characteristic of the reflected signal of a plurality (X) of articles into X reflected signal sequences respectively corresponding to X articles, and may be configured to: detecting the signal sequence of the first characteristic of the X article reflected signals segment by segment to determine a candidate start point set and a candidate end point set of the reflected signal sequence for each article in the signal sequence of the first characteristic of the X article reflected signals; selecting a start point of the sequence of the reflected signal for each item from the set of candidate start points, and selecting an end point of the sequence of the reflected signal for each item from the set of candidate end points; determining a signal sequence between the start and end of the sequence of reflected signals for each article as the sequence of reflected signals for each article.
Wherein the central processor 1320 may be further configured to: and detecting a plurality of signal sequences with a first preset length in the signal sequences with the first characteristic of the X article reflected signals one by one to determine the candidate starting point set and the candidate end point set, wherein the adjacent signal sequences with the first preset length are separated by a preset step length, and for each signal sequence with the first preset length, when the variation amplitude of the signal sequence with the first preset length exceeds a first threshold value, a point which is greater than or equal to a second threshold value in the signal values of the signal sequence with the first preset length is determined as a candidate starting point or a candidate end point.
Wherein the central processor 1320 may be further configured to: when the difference between the maximum value and the minimum value in the signal value of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is before the sequence number of the minimum value in the signal sequence, and the maximum value is larger than or equal to a second threshold value, determining the point corresponding to the maximum value as a candidate starting point; and when the difference between the maximum value and the minimum value in the signal values of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is behind the sequence number of the minimum value in the signal sequence, and the maximum value is larger than or equal to the second threshold value, determining the point corresponding to the maximum value as a candidate terminal point.
Wherein the central processor 1320 may be further configured to: determining a candidate starting point subset and a candidate end point subset respectively corresponding to each item from the candidate starting point set and the candidate end point set; the subset of candidate starting points and the subset of candidate ending points are paired to determine a starting point and an ending point for each item reflected signal sequence.
Wherein the central processor 1320 may be further configured to: respectively calculating the interval between every two adjacent candidate starting points in the candidate starting point set, and determining the adjacent candidate starting points corresponding to the interval smaller than a third threshold value as a candidate starting point subset belonging to one article in X articles so as to determine a candidate starting point subset of each article; and respectively calculating the interval between every two adjacent candidate end points in the candidate end point set, and determining the adjacent candidate end points corresponding to the interval smaller than a fourth threshold value as a candidate end point subset belonging to one article in the X articles so as to determine the candidate end point subset of each article.
Wherein the central processor 1320 may be further configured to: determining a point corresponding to the maximum value of the signal in the candidate starting point subset as a final starting point, and determining a point corresponding to the maximum value of the signal in the candidate end point subset as a final end point, so as to obtain X final starting points and X final end points; calculating the interval between each final starting point and each final end point, and determining the corresponding final starting point and final end point of the interval, which is greater than or equal to a fifth threshold value and less than or equal to a sixth threshold value, as the starting point and the end point of the reflected signal sequence of one article so as to determine the starting point and the end point of the reflected signal sequence of each article; when the interval from one final starting point to a fifth threshold value is more than or equal to the fifth threshold value and less than or equal to the sixth threshold value and the final end point is more than or equal to the sixth threshold value, determining the final starting point and the final end point which are closest to the interval as the starting point and the end point of the reflected signal sequence of the article; or when the interval between the last end point and the last start point is more than or equal to the fifth threshold and less than or equal to the sixth threshold, determining the last start point and the last end point which are closest to the interval as the start point and the end point of the reflected signal sequence of the article.
The embodiment of the cpu 1320 can refer to embodiment 1, and will not be repeated here.
In another embodiment, the data slicer may be disposed on a chip (not shown) connected to the central processor 1320, and the function of the data slicer may be realized under the control of the central processor 1320.
It is noted that the apparatus 1300 does not necessarily include all of the components shown in fig. 13; the apparatus 1300 may also include components not shown in fig. 13, which may be referred to in the art.
By the device of the embodiment, the start point and the end point of the reflected signal sequence of each article in the plurality of articles are determined according to the reflected signal sequence of the first characteristic of the plurality of articles, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article in the plurality of articles can be positioned one by one and intercepted, further, the article can be detected according to the reflected signal sequence of each article, and the detection precision is improved.
Example 3
Embodiment 3 of the present invention provides a data slicing method, and since the principle of solving the problem of this method is similar to that of the apparatus of embodiment 1, the specific implementation thereof can refer to the implementation of the apparatus of embodiment 1, and the description thereof is not repeated where the contents are the same.
Fig. 14 is a flowchart of an embodiment of the method for detecting an article in this embodiment, and please refer to fig. 14, the method divides a signal sequence of a first characteristic of a plurality (X) of article reflection signals into X reflection signal sequences respectively corresponding to X articles, which includes:
step 1401, detecting the signal sequence of the first characteristic of the X article reflected signals segment by segment to determine a candidate start point set and a candidate end point set of the reflected signal sequence of each article in the signal sequence of the first characteristic of the X article reflected signals;
step 1402, selecting a start point of the sequence of the reflected signal for each article from the candidate start point set, and selecting an end point of the sequence of the reflected signal for each article from the candidate end point set;
at step 1403, the signal sequence between the start and end of the sequence of reflection signals for each article is determined as the sequence of reflection signals for each article.
In this embodiment, reference may be made to the first determining unit 101, the selecting unit 102, and the second determining unit 103 in embodiment 1 for specific implementation of steps 1401-1403, which are incorporated herein, and repeated descriptions are omitted here.
In step 1401, a plurality of first predetermined length signal sequences in the signal sequences of the first characteristic of the X article reflection signals are detected one by one to determine the candidate starting point set and the candidate end point set, wherein adjacent first predetermined length signal sequences are separated by a predetermined step, and for each first predetermined length signal sequence, when the variation amplitude of the first predetermined length signal sequence exceeds a first threshold, a point greater than or equal to a second threshold in the first predetermined length signal sequence signal value is determined as a candidate starting point or a candidate end point.
For each signal sequence with a first preset length, when the difference between the maximum value and the minimum value in the signal values of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is earlier than the minimum value in the sequence number of the signal sequence, and the maximum value is greater than or equal to a second threshold value, determining the point corresponding to the maximum value as a candidate starting point; and when the difference between the maximum value and the minimum value in the signal values of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is behind the sequence number of the minimum value in the signal sequence, and the maximum value is greater than or equal to the second threshold value, determining the point corresponding to the maximum value as a candidate end point.
In step 1402, determining a candidate starting point subset and a candidate ending point subset for each item from the candidate starting point set and the candidate ending point set; the subset of candidate starting points and the subset of candidate ending points are paired to determine a starting point and an ending point of the sequence of reflected signals for each article.
Respectively calculating the interval between every two adjacent candidate starting points in the candidate starting point set, and determining the adjacent candidate starting points corresponding to the interval smaller than a third threshold value as a candidate starting point subset belonging to one article in the X articles so as to determine a candidate starting point subset of each article; respectively calculating the interval between every two adjacent candidate end points in the candidate end point set, and determining the adjacent candidate end points corresponding to the interval smaller than a fourth threshold value as candidate end point subsets belonging to one article in X articles so as to determine the candidate end point subsets of each article; determining a point corresponding to the maximum value of the signal in the candidate starting point subset as a final starting point, and determining a point corresponding to the maximum value of the signal in the candidate end point subset as a final end point, so as to obtain X final starting points and X final end points; calculating the interval between each final starting point and each final end point, determining the corresponding final starting point and final end point of the interval, which is greater than or equal to a fifth threshold value and less than or equal to a sixth threshold value, as the starting point and the end point of the sequence of the reflected signals of one article, so as to determine the starting point and the end point of the sequence of the reflected signals of each article, or determining the final starting point and the final end point, which are closest to the interval, as the starting point and the end point of the sequence of the reflected signals of one article when a plurality of intervals between the final starting point and the final starting point are greater than or equal to the fifth threshold value and less than or equal to the sixth threshold value; or when the interval between the last end point and the last start point is more than or equal to the fifth threshold and less than or equal to the sixth threshold, determining the last start point and the last end point which are closest to the interval as the start point and the end point of the reflected signal sequence of the article.
Fig. 15 is a flowchart of an embodiment of step 1401, and as shown in fig. 15, step 1401 includes:
step 1501, setting a detection sliding window with a first preset length L1;
step 1502, sliding the detection sliding window according to the step length S;
step 1503, searching a maximum value and a minimum value in the signal values in the sliding window, and calculating the difference between the maximum value and the minimum value;
step 1504, determining whether the difference is greater than or equal to a first threshold T1, if yes, executing step 1505, otherwise returning to step 1502;
step 1505, judge whether the maximum value is before the minimum value in the signal sequence, if the judged result is yes, carry out step 1506, otherwise carry out step 1507;
steps 1506 and 1507, judging whether the maximum value is greater than or equal to a second threshold value T2, if so, executing steps 1508 and 1509, otherwise, returning to step 1502;
step 1508, adding the point corresponding to the maximum value into the candidate starting point set;
step 1509, adding the point corresponding to the maximum value into the candidate end point set;
step 1510, determining whether the sliding window slides to the end of the signal sequence, if yes, ending the operation to obtain a candidate start point set and a candidate end point set, otherwise returning to step 1502.
FIG. 16 is a flowchart of an embodiment of step 1402, and as shown in FIG. 16, step 1402 includes:
step 1601, selecting two adjacent candidate starting points from the candidate starting point set, and calculating the interval between the two adjacent candidate starting points; selecting two adjacent candidate end points from the candidate end point set, and calculating the interval of the two adjacent candidate end points;
step 1602, determining whether the interval between adjacent candidate start points is greater than or equal to a third threshold T3, and whether the interval between adjacent candidate end points is greater than or equal to a fourth threshold T4; if yes, go to step 1603, otherwise go to step 1604;
step 1603, dividing the adjacent candidate starting points into candidate starting point subsets corresponding to different articles, and dividing the adjacent candidate end points into candidate end point subsets corresponding to different articles;
step 1604, dividing the adjacent candidate starting points into candidate starting point subsets corresponding to the same article, dividing the adjacent candidate end points into candidate end point subsets corresponding to the same article, returning to step 1601, and selecting adjacent candidate starting points or adjacent candidate end points which are not repeated before;
step 1605, selecting the maximum value of the signal from each subset of candidate start points and each subset of candidate end points, and determining the point corresponding to the maximum value as the final start point and the final end point.
Step 1606, selecting a final start point and a final end point, and calculating the interval therebetween;
step 1607, determining whether the interval is greater than or equal to the fifth threshold T5 and less than or equal to the sixth threshold T6, if yes, executing step 1608, otherwise returning to step 1606;
step 1608, determining the final start point and the final end point corresponding to the interval as belonging to the same article;
step 1609, judging whether all the final starting points and the final end points are traversed, if so, executing step 1610, otherwise, executing step 1606;
step 1610, judging whether a plurality of final starting points or final end points belong to the same article, if so, executing the step 1610, otherwise, ending the operation;
at step 1611, the most closely spaced final start and end points are determined as the start and end points of the sequence of reflected signals for the same item.
By the method of the embodiment, the start point and the end point of the reflected signal sequence of each article in the plurality of articles are determined according to the reflected signal sequence of the first characteristic of the plurality of articles, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article in the plurality of articles can be positioned one by one and intercepted, further, the article detection can be carried out according to the reflected signal sequence of each article, and the detection precision is improved.
Example 4
An embodiment 4 of the present invention provides an article detection method, fig. 17 is a flowchart of an implementation manner of the article detection method of the embodiment, please refer to fig. 17, and the method includes:
step 1701, a transceiver unit and an object to be detected move relatively along a preset track, the transceiver unit sends a transmitting signal and receives a reflected signal based on the transmitting signal;
step 1702, processing the reflected signal to obtain a test signal sequence of a first characteristic of a plurality (X) of article reflected signals;
step 1703, cutting the test signal sequence;
step 1704, comparing the sample signal sequences with sample signal sequences in signal sequence sample sets corresponding to different articles to determine the articles contained in the article to be detected, wherein each sample in the signal sequence sample set is a sample signal sequence of a first characteristic of an article reflection signal obtained by performing data cutting on a signal sequence obtained in advance.
The specific implementation of how to obtain the test signal sequence in steps 1701-1702 may refer to the obtaining unit in embodiment 1, and repeated details are not repeated.
In this embodiment, the cutting method in step 1703 may refer to the data cutting method in embodiment 3, and repeated details are not repeated.
In step 1704, the reflected signal sequence of each cut article may be compared with each sample signal sequence in the signal sequence sample set, for example, using a support vector machine, calculating variance, correlation degree, and the like, to determine an article corresponding to the sample signal sequence with the largest correlation degree or the smallest variance among the articles to be detected.
The data cutting method in embodiment 3 may also be used for cutting each sample, and details are not repeated here.
In this embodiment, the processing of the test signal sequence and the sample signal sequence further includes normalization, i.e., to make the sequence lengths of the test signal sequence and the sample signal sequence after the cutting the same.
By the method of the embodiment, the reflected signal sequence of the first characteristic of the plurality of articles is obtained by the scanning mode of relative movement of the transceiver unit and the plurality of articles, and the starting point and the end point of the reflected signal sequence of each article in the plurality of articles are determined, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article contained in the plurality of articles is positioned one by one and intercepted, further, the article detection is performed according to the reflected signal sequence of each article, and the detection precision is improved.
Example 5
Embodiment 5 provides an article detection apparatus; fig. 18 is a schematic view of the configuration of the article detection apparatus, and as shown in fig. 18, the apparatus 1800 includes: a transceiving unit 1801, a control unit 1802, a first processing unit 1803; and the data cutting device 100 in embodiment 1; a second processing unit 1804;
the transceiving unit 1801 sends a transmitting signal to an article to be detected; and receiving a reflected signal based on the transmitted signal;
a control unit 1802 for controlling the transceiving unit 1801 and/or the object to be detected to move relatively along a predetermined track;
a first processing unit 1803, configured to process the reflected signal to obtain a test signal sequence of a first characteristic of the reflected signals of the multiple articles;
a data cutting device 100, configured to perform cutting processing on the test signal sequence to obtain a test signal sequence corresponding to each article;
a second processing unit 1804, configured to compare the test signal sequence processed by the data slicing apparatus 100 with sample signal sequences in signal sequence sample sets corresponding to different articles, so as to determine articles contained in the article to be detected;
wherein each sample in the signal sequence sample set is a sample signal sequence of a first characteristic of a reflection signal of an article obtained by data cutting of a signal sequence obtained in advance by the data cutting device 100.
The transceiver 1801, the control unit 1802, and the first processing unit 1803; and the data cutting device 100 in embodiment 1; the detailed implementation of the second processing unit 1804 can refer to steps 1701-1704 in embodiment 4, which is not described herein again.
Fig. 19 is a schematic diagram of a hardware configuration of a data cutting device according to an embodiment of the present invention, and as shown in fig. 19, a device 1900 may include: an interface (not shown), a Central Processing Unit (CPU) 1920, a memory 1910 and a transceiver 1940; memory 1910 is coupled to central processor 1920. Wherein the memory 1910 may store various data; further, a program for article detection is stored, and the program is executed under the control of the central processor 1920, and various threshold values and the like are stored.
In one embodiment, the functionality of the item detection device may be integrated into the central processor 1920. The central processing unit 1920 is configured to control the transceiver unit and the object to be detected to move relatively along a predetermined track, where the transceiver unit transmits a transmission signal and receives a reflection signal based on the transmission signal; processing the reflected signal to obtain a test signal sequence of a first characteristic of a plurality (X) of article reflected signals; cutting the test signal sequence; and comparing the sample signal sequences with sample signal sequences in signal sequence sample sets corresponding to different articles to determine the articles contained in the articles to be detected, wherein each sample in the signal sequence sample set is a sample signal sequence of a first characteristic of article reflection signals obtained after data cutting is carried out on a signal sequence obtained in advance.
The specific implementation of the central processor 1920 can refer to example 4, and is not repeated here.
In another embodiment, the functions of the article detection apparatus may be implemented by a chip (not shown) connected to the central processing unit 1920 and controlled by the central processing unit 1920.
It is noted that the device 1900 also does not necessarily include all of the components shown in FIG. 19; in addition, the apparatus 1900 may also include components not shown in fig. 19, which may be referred to in the art.
By the device of the embodiment, the reflected signal sequence of the first characteristic of the plurality of articles is obtained by a scanning mode of relative movement of the transceiving unit and the plurality of articles, and the starting point and the end point of the reflected signal sequence of each article in the plurality of articles are determined, so that the reflected signal sequence of the first characteristic of the plurality of articles can be cut, the reflected signal sequence of each article contained in the plurality of articles can be positioned one by one and intercepted, further, the article detection is carried out according to the reflected signal sequence of each article, and the detection precision is improved.
An embodiment of the present invention also provides a computer-readable program, wherein when the program is executed in a data cutting apparatus, the program causes a computer to execute the data cutting method in the data cutting apparatus as in embodiment 3 above.
An embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the data cutting method in embodiment 3 above in a data cutting device.
An embodiment of the present invention also provides a computer-readable program, where when the program is executed in an article detection apparatus, the program causes a computer to execute the article detection method in the article detection apparatus as in embodiment 4 above.
An embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the article detection method in embodiment 4 above in an article detection apparatus.
The method for data cutting or article detection in a data cutting or article detection apparatus described in connection with the embodiments of the invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in FIGS. 1,3,7,13,18-19 may correspond to individual software modules of a computer program flow or may correspond to individual hardware modules. These software modules may correspond to the various steps shown in fig. 14-16, 17, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module can be stored in the memory of the data cutting or article detecting device, and can also be stored in a memory card which can be inserted into the data cutting or article detecting device.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 1,3,7,13,18-19 may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 1,3,7,13,18-19 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that these descriptions are made only by way of example and not as limitations on the scope of the invention. Various modifications and alterations of this invention will become apparent to those skilled in the art based upon the spirit and principles of this invention, and such modifications and alterations are also within the scope of this invention.
With regard to the embodiments including the above embodiments, the following remarks are also disclosed.
Supplementary note 1, a data slicing apparatus for slicing a signal sequence of a first characteristic of a plurality (X) of article reflected signals into X reflected signal sequences respectively corresponding to X articles, the apparatus comprising:
a first determination unit for detecting segment by segment a signal sequence of X article reflection signal first characteristics to determine a set of candidate start points and a set of candidate end points of the reflection signal sequence for each article in the signal sequence of X article reflection signal first characteristics;
a selection unit for selecting a start point of the sequence of reflected signals for each item from the set of candidate start points, and an end point of the sequence of reflected signals for each item from the set of candidate end points;
a second determination unit for determining a signal sequence between the start and end of the sequence of reflected signals for each item as the sequence of reflected signals for each item.
Supplementary note 2, the apparatus according to supplementary note 1, wherein the first determining unit includes:
the first determination module is used for detecting a plurality of signal sequences with a first preset length in the signal sequences with the first characteristic of the X article reflected signals one by one to determine the candidate starting point set and the candidate end point set, wherein the adjacent signal sequences with the first preset length are separated by a step size with a second preset length, and for each signal sequence with the first preset length, when the variation amplitude of the signal sequence with the first preset length exceeds a first threshold value, a point which is greater than or equal to a second threshold value in the signal values of the signal sequence with the first preset length is determined as a candidate starting point or a candidate end point.
Supplementary note 3, the apparatus according to supplementary note 2, wherein the first determining means includes:
a second determining module, configured to determine, for each signal sequence of a first predetermined length, a point corresponding to a maximum value as a candidate starting point when a difference between the maximum value and a minimum value in signal values of the signal sequence of the first predetermined length exceeds the first threshold, the maximum value is before a sequence number of the minimum value in the signal sequence, and the maximum value is greater than or equal to a second threshold;
and a third determining module, configured to, for each signal sequence of a first predetermined length, determine, as a candidate endpoint, a point corresponding to a maximum value when a difference between the maximum value and a minimum value in signal values of the signal sequence of the first predetermined length exceeds the first threshold, the maximum value is posterior to a sequence number of the minimum value in the signal sequence, and the maximum value is greater than or equal to the second threshold.
Supplementary note 4, the apparatus according to supplementary note 1, wherein the selecting unit includes:
a first selection module to determine a candidate starting point subset and a candidate ending point subset for each item from the candidate starting point set and the candidate ending point set;
a pairing module for pairing the subset of candidate starting points and the subset of candidate ending points to determine a starting point and an ending point of the sequence of reflected signals for each item.
Supplementary note 5, the apparatus according to supplementary note 4, wherein the first selecting means includes:
a first calculating module, configured to calculate an interval between every two adjacent candidate starting points in the candidate starting point set, and determine, as a candidate starting point subset belonging to one item in X items, an adjacent candidate starting point corresponding to the interval being smaller than a third threshold, so as to determine a candidate starting point subset for each item;
and the second calculation module is used for respectively calculating the interval between every two adjacent candidate end points in the candidate end point set, and determining the adjacent candidate end points corresponding to the interval smaller than a fourth threshold value as a candidate end point subset belonging to one article in the X articles so as to determine a candidate end point subset of each article.
Supplementary note 6, the apparatus according to supplementary note 4, wherein the pairing module includes:
a fourth determining module, configured to determine, as a final starting point, a point corresponding to the maximum value of the signal in the candidate starting point subset, and determine, as a final end point, a point corresponding to the maximum value of the signal in the candidate end point subset, so as to obtain X final starting points and X final end points;
a fifth determining module for calculating an interval of each final start point and each final end point, determining corresponding final start points and final end points of the interval of greater than or equal to a fifth threshold value and less than or equal to a sixth threshold value as start points and end points of the sequence of reflected signals for one article to determine start points and end points of the sequence of reflected signals for each article.
Supplementary note 7, the apparatus according to supplementary note 6, wherein when there are a plurality of final end points spaced from a final start point by a fifth threshold value or more and by a sixth threshold value or less, the fifth determination module determines the final start point and the final end point closest to the spacing as the start point and the end point of the sequence of reflected signals of the one article; or when the interval from one final end point is more than or equal to a fifth threshold value and less than or equal to a sixth threshold value, determining the final start point closest to the interval and the final end point as the start point and the end point of the reflected signal sequence of the article.
Supplementary note 8, the device according to supplementary note 1, wherein the reflected signal is a signal of a transmission signal transmitted by the transceiver unit after being reflected by the plurality of articles, or a superimposed signal of the transmission signal after being transmitted by the plurality of articles and reflected by a reflector, wherein the reflector and the transceiver unit are placed on both sides of the plurality of articles, and the transceiver unit and the article to be detected relatively move along a predetermined track, and the relative positions of the reflector and the transceiver unit are kept unchanged.
Note 9 that a data slicing method for slicing a signal sequence of a first characteristic of a plurality (X) of article reflected signals into X reflected signal sequences respectively corresponding to X articles, includes:
detecting segment by segment a signal sequence of X article reflected signal first characteristics to determine a set of candidate start points and a set of candidate end points of the reflected signal sequence for each article in the signal sequence of X article reflected signal first characteristics;
selecting a start point of the sequence of reflected signals for each article from the set of candidate start points, and selecting an end point of the sequence of reflected signals for each article from the set of candidate end points;
determining a signal sequence between the start and end of the sequence of reflected signals for each item as the sequence of reflected signals for each item.
The method of supplementary note 10, according to supplementary note 9, wherein detecting segment by segment a signal sequence of X article reflected signal first characteristics to determine a set of candidate start points and a set of candidate end points of the reflected signal sequence for each article in the signal sequence of X article reflected signal first characteristics comprises:
and detecting a plurality of signal sequences with a first preset length in the signal sequences with the first characteristic of the X article reflected signals one by one to determine the candidate starting point set and the candidate end point set, wherein the adjacent signal sequences with the first preset length are separated by a preset step length, and for each signal sequence with the first preset length, when the variation amplitude of the signal sequence with the first preset length exceeds a first threshold value, a point which is greater than or equal to a second threshold value in the signal values of the signal sequences with the first preset length is determined as a candidate starting point or a candidate end point.
Supplementary note 11, the method according to supplementary note 10, wherein determining as a candidate start point or a candidate end point comprises:
for each signal sequence with a first preset length, when the difference between the maximum value and the minimum value in the signal values of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is before the sequence number of the minimum value in the signal sequence, and the maximum value is larger than or equal to a second threshold value, determining the point corresponding to the maximum value as a candidate starting point;
and for each signal sequence with a first preset length, when the difference between the maximum value and the minimum value in the signal values of the signal sequence with the first preset length exceeds the first threshold value, the maximum value is behind the minimum value in the signal sequence, and the maximum value is larger than or equal to the second threshold value, determining the point corresponding to the maximum value as a candidate terminal point.
Supplementary note 12, the method of supplementary note 9, wherein selecting a start point of the sequence of reflection signals for each item from the set of candidate start points and selecting an end point of the sequence of reflection signals for each item from the set of candidate end points comprises:
determining a candidate starting point subset and a candidate ending point subset for each item from the candidate starting point set and the candidate ending point set;
pairing the subset of candidate starting points and the subset of candidate ending points to determine a starting point and an ending point of the sequence of reflected signals for each article.
Reference 13, the method of reference 12, wherein determining a candidate start point subset and a candidate end point subset for each item comprises:
respectively calculating the interval between every two adjacent candidate starting points in the candidate starting point set, and determining the adjacent candidate starting points corresponding to the interval smaller than a third threshold value as a candidate starting point subset belonging to one article in X articles so as to determine a candidate starting point subset of each article;
and respectively calculating the interval between every two adjacent candidate end points in the candidate end point set, and determining the adjacent candidate end points corresponding to the interval smaller than a fourth threshold value as a candidate end point subset belonging to one article in the X articles so as to determine the candidate end point subset of each article.
Reference 14, the method of reference 12, wherein pairing the candidate starting point subset and the candidate ending point subset comprises:
determining a point corresponding to the maximum value of the signal in the candidate starting point subset as a final starting point, and determining a point corresponding to the maximum value of the signal in the candidate end point subset as a final end point, so as to obtain X final starting points and X final end points;
and calculating the interval of each final starting point and each final end point, and determining the corresponding final starting point and final end point of the interval, which is greater than or equal to a fifth threshold value and less than or equal to a sixth threshold value, as the starting point and the end point of the reflected signal sequence of one article so as to determine the starting point and the end point of the reflected signal sequence of each article.
Supplementary note 15, the method according to supplementary note 14, wherein when there are a plurality of intervals greater than or equal to a fifth threshold value and less than or equal to a sixth threshold value final end point from one final start point, the one final start point and final end point closest to the interval are determined as the start point and end point of the sequence of reflected signals of the one article; or when the interval from one final end point is more than or equal to a fifth threshold value and less than or equal to a sixth threshold value, determining the final start point closest to the interval and the final end point as the start point and the end point of the reflected signal sequence of the article.