Measurement method, electronic device, and computer-readable storage medium

By processing the detection and reflection signals of cascaded sensors, the system can quickly measure the height of users or the dimensions of goods, solving the problem of long measurement time in existing technologies and improving measurement efficiency and flexibility.

CN121452923BActive Publication Date: 2026-08-04SHENZHEN WAYTRONIC ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN WAYTRONIC ELECTRONICS CO LTD
Filing Date
2025-09-23
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing technologies require measurements of users or goods within a pre-defined measurement area, resulting in a long timeframe for obtaining measurement data.

Method used

Multiple sets of detection signals are emitted by cascaded sensors in electronic devices, reflected signals are received, and the presence of an object is determined based on the reflected signals. The size of the object is measured using transmitting modules at different locations.

Benefits of technology

It enables rapid measurement of user height or cargo size as objects pass by, eliminating the need for measurement within a pre-defined area, thus improving measurement efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121452923B_ABST
    Figure CN121452923B_ABST
Patent Text Reader

Abstract

This application provides a measurement method, an electronic device, and a computer-readable storage medium, relating to the field of electronic device technology. The method includes: emitting multiple sets of detection signals via cascaded sensors of the electronic device; receiving multiple sets of reflected signals via the cascaded sensors of the electronic device; determining whether an object is passing in front of the electronic device based on the multiple sets of reflected signals; and if an object is passing in front of the electronic device, measuring the size of the object via transmitting modules located at different positions in the cascaded sensors to obtain size data. The technical solution provided by this application allows for rapid measurement of users passing by or goods transported along a conveyor belt via detection signals during the measurement of the object being measured. This eliminates the need for dedicated measurement of users, goods, or other objects within a pre-defined area, reducing the time spent measuring the size of the object and improving the efficiency and flexibility of the measurement process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, and in particular relates to a measurement method, electronic equipment, and computer-readable storage medium. Background Technology

[0002] In various scenarios such as train stations, airports, and freight transport corridors, it may be necessary to measure the height of users or the size of goods, so that pre-recorded data can be compared with the measured data.

[0003] In related technologies, if it is necessary to measure a user's height, height can be measured by ultrasound, using the time difference after receiving the reflected echo of the ultrasound waves; if it is necessary to measure the size of goods or obstacles, infrared light can be used.

[0004] However, the above measurement method requires measuring users or goods in a pre-set measurement area, which results in a long time for measurement data to be collected. Summary of the Invention

[0005] This application provides a measurement method, electronic device, and computer-readable storage medium, which solves the problem in the prior art that the measurement of users or goods requires a pre-set measurement area, resulting in a long time consumption for measurement data.

[0006] To achieve the above objectives, this application adopts the following technical solution: In a first aspect, embodiments of this application provide a measurement method, the method comprising: Multiple sets of detection signals are emitted through cascaded sensors of the electronic device, and the detection signals are used to detect the state in front of the electronic device; The cascaded sensors of the electronic device receive multiple sets of reflected signals, which are formed after the detection signal is reflected. Based on the multiple sets of reflected signals, determine whether an object has passed in front of the electronic device; If an object passes in front of the electronic device, the size of the object is measured by the transmitting modules located at different positions in the cascaded sensors, and size data is obtained.

[0007] Optionally, the step of measuring the size of the object and obtaining size data through the transmitting modules located at different positions in the cascaded sensors includes: Multiple sets of measurement signals are emitted through the multiple transmitting modules located at different positions in the cascaded sensor; Receive multiple sets of feedback signals, wherein the feedback signals are obtained by reflecting the measurement signal by the object; The size data is calculated based on the multiple sets of feedback signals.

[0008] Optionally, calculating the size data based on multiple sets of feedback signals includes: The posture of the object is determined based on multiple sets of feedback signals, and the posture is used to represent the posture of the object in front of the electronic device; The initial dimensions of the object are calculated based on multiple sets of feedback signals; The initial size is compensated based on the posture to obtain the size data.

[0009] Optionally, after measuring the size of the object and obtaining size data through the transmitting modules located at different positions in the cascaded sensors, the method further includes: Get object information; If the object information in the object information does not match the size data, an error message will be displayed indicating that the object information is abnormal, and the size of the object will be remeasured.

[0010] Optionally, the remeasurement of the object's dimensions includes: Determine the motion state of the object, which indicates whether the object is moving or stationary; Based on the motion state of the object, the dimensions of the object are measured again using a measurement method corresponding to the motion state.

[0011] Optionally, determining the motion state of the object includes: Determine at least one set of horizontally arranged launch modules or at least one set of vertically arranged launch modules among the plurality of launch modules, wherein the at least one set of horizontally arranged launch modules is a plurality of launch modules arranged in a horizontal direction, and the at least one set of vertically arranged launch modules is a plurality of launch modules arranged in a vertical direction; For at least one set of lateral reflection signals corresponding to each group of lateral transmission modules, or at least one set of longitudinal reflection signals corresponding to each group of longitudinal transmission modules, determine the time interval between any two adjacent lateral reflection signals corresponding to lateral transmission modules, or the time interval between any two adjacent longitudinal reflection signals corresponding to longitudinal transmission modules. If the time interval is less than a preset motion time threshold, the motion state of the object is determined to be a moving state.

[0012] Optionally, determining the motion state of the object includes: For any one of the horizontal or vertical transmission modules, if the horizontal or vertical transmission module continuously detects the object within a time period corresponding to a preset static time threshold, then the motion state of the object is determined to be static, and the static time threshold is greater than the motion time threshold.

[0013] Optionally, after measuring the dimensions of the object again using a measurement method corresponding to the motion state, the method further includes: If the object is in a moving state, the moving speed of the object is calculated based on at least one set of lateral reflection signals corresponding to at least one set of laterally arranged laterally oriented ...

[0014] Optionally, determining whether an object has passed in front of the electronic device based on multiple sets of reflected signals includes: The type of object in front of the electronic device is determined based on multiple sets of reflected signals; Based on the object type, determine whether the object has passed in front of the electronic device; After determining whether an object has passed in front of the electronic device based on multiple sets of reflected signals, the method further includes: If the object type is a user, then the user's height is measured; If the object type is an obstacle, then the size of the obstacle is measured.

[0015] In a second aspect, embodiments of this application provide an electronic device, including: a memory, a processor, and a plurality of cascaded sensors, wherein the memory is used to store a computer program; the processor is used to, when the computer program is invoked, control at least one of the cascaded sensors to emit a detection signal and receive a reflected signal, and then execute a measurement method as described in any one of the first aspects based on the reflected signal.

[0016] Optionally, the cascaded sensor includes: a connecting strip, a processor, and at least one sensing unit; The processor is located at one end of the connecting strip and is connected to each of the sensing units; Each of the sensing units is arranged sequentially on the connecting strip, and each of the sensing units is connected in series through a detachable interface and an electrical wire or communication bus. For each of the sensing units, the sensing unit includes a storage module for storing the address code of the sensing unit; If any of the sensing units is disconnected from its adjacent sensing unit, the processor reallocates the address code according to the number and position of the remaining sensing units connected to the processor.

[0017] Optionally, the sensing unit includes: a signal transmitter and a signal receiver; The signal transmitter and the signal receiver are connected in series.

[0018] Optionally, both the surface of the signal transmitter and the surface of the signal receiver are covered with wide-angle lenses.

[0019] Optionally, the cascaded sensor further includes: multiple light sources; Each of the sensing units corresponds to at least one of the light sources; Each of the light sources is connected in series with the corresponding sensing unit. When the sensing unit detects a reflected signal, the light source corresponding to the sensing unit emits light. The reflected signal is formed by reflecting the detection signal emitted by the sensing unit.

[0020] Optionally, the sensing unit includes: a signal transmitter and a signal receiver; For each of the light sources, the light source is located between the signal transmitter and the signal receiver, or the light source is located on the side of the signal transmitter away from the signal receiver, or the light source is located on the side of the signal receiver away from the signal transmitter.

[0021] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the measurement method as described in any one of the first aspects.

[0022] This application provides a measurement method that uses cascaded sensors in an electronic device to emit multiple sets of detection signals to detect the state in front of the electronic device. The cascaded sensors also receive reflected signals from these signals. Based on these reflected signals, the method determines whether a user has passed in front of the electronic device. If an object has passed in front of the electronic device, the dimensions of the object are measured using transmitting modules at different heights within the cascaded sensors, obtaining dimensional data. This method allows for rapid measurement of users or goods transported along a conveyor belt while measuring the object being measured, eliminating the need for dedicated measurement of users, goods, or other objects within a pre-defined area. This reduces the time spent measuring object dimensions and improves the efficiency and flexibility of object measurement. Attached Figure Description

[0023] Figure 1This is a schematic diagram of the electronic device involved in a measurement method proposed in an embodiment of this application; Figure 2 This is a schematic diagram of a data processing module proposed in an embodiment of this application; Figure 3 This is a schematic diagram of a cascaded sensor module according to an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a cascaded sensor provided in an embodiment of this application; Figure 5 This is a schematic diagram of another cascaded sensor provided in an embodiment of this application; Figure 6 A schematic flowchart illustrating a measurement method provided in an embodiment of this application; Figure 7 A schematic flowchart illustrating another measurement method provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0024] In the following description, specific details such as particular system architectures and technologies are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known height measurement technologies, height calculation algorithms, and electronic devices are omitted so as not to obscure the description of this application with unnecessary detail.

[0025] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “the,” “the,” and “the” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise.

[0026] See Figure 1 , Figure 1 This is a schematic diagram of the structure of an electronic device involved in a measurement method proposed in an embodiment of this application. The electronic device may include a data processing module 110 and multiple cascaded sensors 120.

[0027] Each cascaded sensor 120 may include multiple transmitting modules (such as...) Figure 1 (as shown in the circle).

[0028] Furthermore, the data processing module 110 can be connected to each cascade sensor 120, and the data processing module 110 can control each cascade sensor 120 to perform detection, and measure the size of the object based on the feedback signals received and transmitted by each cascade sensor 120.

[0029] The object detected by the electronic device can be a person, an animal, cargo, or an obstacle. This application does not specifically limit the type of object detected by the electronic device. For example, when the object is a user, the electronic device can measure the user's height; when the object is cargo or an obstacle, the electronic device can measure the size of the obstacle.

[0030] Specifically, the data processing module 110 can control multiple cascaded sensors 120 to periodically emit multiple sets of detection signals. When any cascaded sensor 120 detects a reflected signal formed by the reflection of the detection signal, it can feed back the received reflected signal to the data processing module 110.

[0031] Correspondingly, the data processing module 110 can analyze the received reflected signals to determine whether the object in front of the electronic device is a user, goods, or an obstacle, and then transmit multiple sets of measurement signals again. The feedback signal formed by the continuously received measurement signals can measure the user's height or the size of the goods or obstacles.

[0032] Furthermore, if a user passes by an electronic device, the cascaded sensors 120, arranged vertically and extending laterally, can detect whether the user is moving or stationary. Accordingly, the data processing module 110 can determine whether the user is moving or stationary based on the reflected signal, and calculate the user's speed when the user is moving.

[0033] Furthermore, the cascaded sensors 120 arranged horizontally and extending vertically can measure the user's height and transmit corresponding feedback signals to the data processing module 110. The data processing module 110 can then determine the user's size data based on the received feedback signals.

[0034] For example, such as Figure 2 and Figure 3 As shown, Figure 2 This is a schematic diagram of a data processing module proposed in an embodiment of this application. Figure 3 This is a schematic diagram of a cascaded sensor module proposed in an embodiment of this application.

[0035] See Figure 2The data processing module 110 may include multiple pins. Specifically, pin 1 (VCC) is the positive power supply (3.3 volts (V)); pin 2 (GND) is the power supply ground potential; pin 3 (IR_TX) is used to connect to the data pin (Data) of the transmitting module and output a PWM modulation signal; pin 4 (IR_RX) is used to connect to the data output pin (Out) of the receiving module and input the demodulated digital signal; pin 5 (SCL) and / or pin 6 (SDA) are optional serial peripheral interfaces (Inter-Integrated Circuit, I2C) for communication with external controllers; pin 7 (Data_Out) is a serial port output (TX) for transmitting sensing position information to the light strip controller; pin 8 (Data_In) is a serial port input (RX) for receiving configuration commands (such as reassigning IDs after trimming); and pin 9 (CLK) is the cascade interface clock line for synchronizing data transmission between multiple modules.

[0036] See Figure 3 The cascaded sensor 120 may include an IR Transmitter (TR) module and an IR Receiver (RX) module, both of which include multiple pins.

[0037] Specifically, for the transmitting module, pin 1 (VCC) is the positive power supply (typically 3.3V / 5V), used to power the signal transmitter and (such as an infrared emitting diode); pin 2 (GND) is the power supply ground potential, which can form a current loop; pin 3 (Data) is the data input, used to receive the PWM signal from the data processing module 110 in order to control the transmission strength and frequency (such as 38kHz carrier modulation); pin 4 (En) is the enable pin (optional), which can activate transmission when high and put the device into sleep mode when low to reduce power consumption.

[0038] For the receiving module, pin 1 (VCC) is the positive power supply (3.3V / 5V), used to power the signal receiver (such as the receiving chip); pin 2 (GND) is the power supply ground potential; pin 3 (Out) is the data output, which can output the demodulated digital signal (such as the intensity or frequency change of the infrared signal reflected by the human body); pin 4 (INT) is an optional interrupt output, which can trigger the interrupt of the data processing module 110 when a valid signal is detected.

[0039] Furthermore, the cascaded sensor 120 may also include a light source, which can control the light source corresponding to the cascaded sensor 120 that detected the user to emit light when a user is detected approaching. For example, when a user passes by the electronic device, the horizontally arranged cascaded sensors 120 can emit light sequentially.

[0040] It should be noted that in practical applications, multiple cascaded sensors 120 can be arranged vertically, horizontally, or in an array of cascaded sensors 120. This application embodiment does not impose specific limitations on the arrangement of each cascaded sensor 120.

[0041] The cascaded sensors in the above-mentioned electronic devices will be described in detail below.

[0042] Figure 4 This is a schematic diagram of a cascaded sensor provided in an embodiment of this application. See also... Figure 4 The cascaded sensor may include: a connecting strip 410, a processor 420, and at least one sensing unit 430.

[0043] The processor 420 is located at one end of the connecting strip 410 and is connected to each sensing unit 430.

[0044] Furthermore, each sensing unit 430 is arranged sequentially on the connecting strip 410, and the sensing units 430 are connected in series. Correspondingly, the processor 420 can transmit data with each of the series-connected sensing units 430 through a detachable interface, combined with electrical wires or a communication bus.

[0045] In addition, for each sensing unit 430, the sensing unit 430 may include a storage module, which stores the address code of the sensing unit. The processor 420 can communicate with the corresponding sensing unit 430 according to the address code.

[0046] However, if any sensing unit 430 is disconnected from its adjacent sensing unit 430, the processor 420 can reallocate the address code according to the number and position of the remaining sensing units 430 connected to the processor 420, so that the remaining sensing units 430 connected to the processor 420 can still transmit data with the processor 420, thereby enabling the trimming of cascaded sensors.

[0047] For example, the sensing unit 430 that is furthest from the processor 420 in the cascaded sensors can be cut off. After the sensing unit 430 that is furthest from the processor 420 is cut off, it will no longer be connected to the processor 420. However, the remaining multiple sensing units 430 are still connected to the processor 420 in series and can still transmit data with the processor 420.

[0048] Specifically, during the process of cutting the sensing unit 430, at least one sensing unit 430 can be cut from the end of the connecting strip 410 away from the processor 420 according to the length of the cascaded sensors required for the current scene, based on the detachable interface between each sensing unit 430.

[0049] Accordingly, after at least one sensing unit 430 is cut off, if the processor 420 detects that it is unable to communicate with each sensing unit 430 according to the address code corresponding to each sensing unit 430 that is preset, then the processor 420 can determine that at least one sensing unit 430 has been cut off.

[0050] Therefore, the processor 420 can communicate with the remaining connected sensing units 430 to determine the number of the remaining sensing units 430, and then reallocate address codes for each sensing unit 430 according to the determined number.

[0051] Furthermore, the processor 420 can redetermine the measurable size range of the cascaded sensor based on the number of remaining sensing units 430 and the pre-set distances between them. For example, the starting point can be the location of the processor 420, and the measurement range of the trimmed cascaded sensor can be determined by combining the distance between the sensing unit 430 and the processor 420 with the distance between each sensing unit 430.

[0052] Furthermore, the sensing unit 430 may include a signal transmitter 431 and a signal receiver 432, wherein the signal transmitter 431 and the signal receiver 432 may be connected in series. For example, the sensing unit 430 may be connected to the processor 420 via the signal transmitter 431 and to an adjacent sensing unit 430 via the signal receiver 432; or, the sensing unit 430 may be connected to the processor 420 via the signal receiver 432 and to an adjacent sensing unit 430 via the signal transmitter 431.

[0053] In addition, each sensing unit 430 can be arranged at equal intervals to improve the accuracy of measurements taken by the sensing units. Similarly, the signal transmitters 431 and signal receivers 432 in the sensing units 430 can also be arranged at equal intervals, such that the distance between the signal transmitter 431 and each adjacent signal receiver 432 is equal, and the distance between the signal receiver 432 and each adjacent signal transmitter 431 is also equal.

[0054] Furthermore, the surfaces of the signal transmitter 431 and the signal receiver 432 of each sensing unit 430 are covered with a wide-angle lens, which can increase the angle at which the signal transmitter 431 emits the detection signal and increase the range of the signal receiver 432 receiving the reflected signal, thereby improving the detection range of the electronic device.

[0055] In one alternative embodiment, see Figure 5 , Figure 5 This is a schematic diagram of another cascaded sensor provided in an embodiment of this application. The cascaded sensor may further include: multiple light sources 440.

[0056] Each sensing unit 430 may correspond to at least one light source 440.

[0057] Specifically, each light source 440 can be connected in series with the corresponding sensing unit 430. When the sensing unit 430 detects the reflected signal, the light source 440 corresponding to the sensing unit 430 emits light. The reflected signal is formed by the reflection of the detection signal emitted by the sensing unit 430.

[0058] It should be noted that for each light source 440, the light source 440 may be located between the signal transmitter 431 and the signal receiver 432, or the light source 440 may be located on the side of the signal transmitter 431 away from the signal receiver 432, or the light source 440 may be located on the side of the signal receiver 432 away from the signal transmitter 431. This application embodiment does not specifically limit this.

[0059] For example, see Figure 5 The sensing unit 430 has two light sources 440. One light source 440 is located between the signal transmitter 431 and the signal receiver 432, and the other light source 440 is located on the side of the signal receiver 432 away from the signal transmitter 431.

[0060] Corresponding to the fact that each sensing unit 430 can be arranged at equal intervals, after inserting a light source 440 between each sensing unit 430, the sensing units 430 and the light source 440 can be arranged alternately, and the center distance between any two adjacent sensing units 430 is constant.

[0061] For example, the light sources 440 can also be arranged at equal intervals, so that the distance between each light source 440 and its adjacent light source 440 is equal. Furthermore, if the light sources 440 are interspersed among the sensing units 430, the sensing units 430 can also be arranged centrally between two adjacent light sources 440. The embodiments of this application do not specifically limit the arrangement of the light sources 440.

[0062] It should also be noted that the location of the light source 440 does not overlap with the path of the signal transmitter 431 emitting the detection signal and the path of the signal receiver 432 receiving the reflected signal, which can prevent the light source 440 from affecting the detection signal and the reflected signal.

[0063] Figure 6 A schematic flowchart illustrating a measurement method provided in this application embodiment, applicable to, for example... Figure 1 The data processing module of the electronic device shown is illustrative and not limiting; see also [link to relevant documentation]. Figure 6 The method includes: Step 601: Employ multiple sets of detection signals through the cascaded sensors of the electronic device.

[0064] The detection signal is used to detect the state in front of the electronic device. For example, the detection signal can be an infrared signal or an ultrasonic signal; this application does not specifically limit the type of detection signal.

[0065] During operation, the electronic device can control multiple cascaded sensors to emit detection signals through multiple transmitting modules arranged horizontally and / or vertically. The detection signals are used to detect objects (users, goods, or obstacles) in front of the electronic device, so that in subsequent steps, the height of the user can be measured, or the size of the goods or obstacles can be measured.

[0066] Correspondingly, each transmitting module in the electronic device can emit at least one set of detection signals in each cycle, thereby periodically emitting multiple sets of detection signals. Combined with the area where each transmitting module is located, multiple sets of detection signals can be used to cover and detect various areas in front of the electronic device.

[0067] Step 602: Receive multiple sets of reflected signals through the cascaded sensors of the electronic device.

[0068] The reflected signal is formed after the detection signal is reflected.

[0069] Corresponding to step 601, after the electronic device emits multiple sets of detection signals through multiple transmitting modules of cascaded sensors, the area in front of the electronic device can be detected using these signals. If the area in front of the electronic device is open, the detection signals will not be reflected during propagation, nor will they form reflected signals.

[0070] However, if there is a user or obstacle in front of the electronic device, the user or obstacle will reflect the detection signal, thus forming a reflected signal. Correspondingly, the electronic device can also receive multiple sets of reflected signals through multiple receiving modules of a cascaded sensor. For example, the electronic device can receive multiple sets of reflected signals through the infrared receiver of a cascaded sensor.

[0071] Step 603: Based on multiple sets of reflected signals, determine whether there is an object passing in front of the electronic device.

[0072] After receiving the reflected signal, it can be determined that there is an object in front of the electronic device that can reflect the detection signal. Therefore, the object in front of the electronic device can be identified based on the reflected signal, thereby determining whether an object has passed in front of the electronic device.

[0073] Optionally, the electronic device can first determine the type of object in front of it based on multiple sets of reflected signals, and then determine whether an object has passed in front of it based on the object type.

[0074] Specifically, after receiving the reflected signal, the electronic device can analyze the signal attenuation curve corresponding to the reflected signal to determine the trend of the signal attenuation curve. If the trend is obvious, it indicates that the process of the detection signal forming the reflected signal is dynamic, and thus the type of object in front of the electronic device can be determined to be a user, thereby confirming that a user has passed in front of the electronic device.

[0075] However, if the trend is not obvious, it means that the process of the detection signal forming the reflected signal is basically unchanged. In this case, it can be determined that the object in front of the electronic device is cargo or an obstacle, and thus it can be determined that no user is passing in front of the electronic device.

[0076] For example, an electronic device can identify objects in front of it by analyzing the attenuation rate of a signal attenuation curve. Since a user is not completely stationary in front of the electronic device, the attenuation rate corresponding to the user will change; however, an obstacle in front of the electronic device can remain stationary. Therefore, after detecting an obstacle, the attenuation rate of the signal attenuation curve can remain constant. Accordingly, the electronic device can determine whether the object in front of it is a user or an obstacle based on the change in the attenuation rate in the signal attenuation curve.

[0077] Step 604: If an object passes in front of the electronic device, the size of the object is measured by the transmitting modules located at different positions in the cascaded sensors to obtain size data.

[0078] When an object is detected passing in front of the electronic device, the size of the object can be measured through the various transmitting modules of the electronic device. This allows the size data of the object to be verified against the pre-recorded size information, and the measured size data can then be used for review.

[0079] Optionally, the electronic device can first send out multiple sets of measurement signals and receive multiple sets of feedback signals through multiple transmitting modules located at different positions in the cascaded sensor, and then determine the size data based on the multiple sets of feedback signals.

[0080] The measurement signal, similar to the detection signal, can also be an infrared signal, an ultrasonic signal, or other types of signal. This application does not specifically limit the type of measurement signal. Furthermore, the feedback signal is obtained by reflecting the measurement signal back to the user.

[0081] Specifically, the electronic device can control multiple transmitting modules located at different heights and multiple horizontally arranged transmitting modules to emit multiple sets of measurement signals at the same time and receive feedback signals formed after reflection from the object. The size data of the object can be determined by the position of the transmitting module corresponding to each feedback signal.

[0082] For example, if the electronic device is detecting a user, it can measure the user's height. Correspondingly, a cascaded sensor in the electronic device may include 10 vertically arranged sensing units. The sensing unit closest to the processor in the cascaded sensor is the first sensing unit, and the sensing unit furthest from the processor is the tenth sensing unit. The tenth sensing unit is adjacent to the ground.

[0083] Correspondingly, if both the third and tenth sensing units detect a user in front of the electronic device, the electronic device can calculate the distance between the third and tenth sensing units based on the pre-set distance between each sensing unit, and use this distance as the user's height data.

[0084] Furthermore, in practical applications, if the object is a user, the user may be in different body postures when passing by the electronic device, such as bending over, looking down, or standing at attention. Accordingly, the electronic device can determine the object's posture based on multiple sets of feedback signals, calculate the object's initial size based on the multiple sets of feedback signals, and then compensate for the initial size based on the posture to obtain the size data.

[0085] Specifically, after determining that the object is a user based on multiple sets of feedback signals, the electronic device can determine the user's outline based on the position of the transmitting modules corresponding to each set of feedback signals, and identify the user's outline to determine whether the user's head is bent down, waist is bent, or legs are bent or squatting.

[0086] Then, the electronic device can determine compensation data corresponding to each body posture, such as looking down, bending over, bending legs, or squatting. Simultaneously, the electronic device can also calculate the user's initial height based on multiple sets of feedback signals.

[0087] Finally, the electronic device can compensate for the user's initial height based on the calculated compensation data to obtain the user's size data.

[0088] Furthermore, to improve measurement accuracy, after determining the user's body posture, the electronic device can assess the user's uprightness. If the uprightness exceeds a preset threshold, the electronic device can compensate for the initial height based on compensation data. However, if the uprightness is less than or equal to the preset threshold, the electronic device cannot obtain accurate height data through compensation data, can stop measuring the user's height, and prompt the user to adjust their posture to measure their height.

[0089] Among them, body uprightness can be determined based on the user's standing posture and whether the user has postures such as looking down, bending over, or squatting.

[0090] For example, if the pre-set uprightness threshold is 85%, the electronic device can first determine the user's uprightness after determining the user's body posture. If the uprightness is greater than 85%, the electronic device can compensate for the initial height based on the compensation data.

[0091] It should be noted that, corresponding to step 603, the electronic device can first determine the type of the object in front, and based on the determined object type, the electronic device can use different methods to perform the measurement. If the object type is a user, the user's height can be measured; if the object type is an obstacle, the size of the obstacle can be measured.

[0092] The process of measuring a user's height can be referred to above, and will not be repeated here.

[0093] When the object type is an obstacle, the electronic device can analyze multiple sets of reflected signals, and calculate the size of the obstacle by combining the signal attenuation curves corresponding to each set of reflected signals, the position of each transmitting module, and the angle at which each transmitting module emits the detection signal.

[0094] Additionally, it should be noted that in practical applications, if only the user's height needs to be measured, steps 605 to 606 can be ignored after step 604 is completed. However, if the scenario in which the electronic device is used requires providing different services based on different user heights, then steps 605 and 606 can be continued to verify the user's height and measure it again. This application embodiment does not specifically limit whether steps 605 and 606 are executed after step 604.

[0095] Furthermore, in practical applications, electronic devices can filter the reflected or feedback signals before processing them, filtering out the natural light in the current scene to obtain a reflected or feedback signal that has the same properties as the detection or measurement signal.

[0096] See Figure 7 , Figure 7 A schematic flowchart of another measurement method provided in an embodiment of this application, the method may further include: Step 605: Obtain object information.

[0097] After measuring the dimensions, object information can be obtained in various ways so that in subsequent steps, the measured dimensions can be checked against the dimensions in the object information to determine whether the dimensions are accurate.

[0098] Specifically, the electronic device can acquire the object's identification information and request the object's information from a server or system platform connected to the electronic device. Then, it can receive the object information from the server or system platform, extract the dimension information from it, and compare the dimension information with the measured dimension data to determine if the recorded dimension information is accurate.

[0099] For example, if the object is a user, the user's identification information can be the user's facial features, ID card, ticket, or transportation ticket. Correspondingly, the electronic device can acquire the user's facial image and perform facial recognition based on the image to obtain the user's information. Furthermore, the identification information for goods can be a QR code or barcode; this application embodiment does not specifically limit the identification information for each object.

[0100] It should be noted that in practical applications, electronic devices can also obtain object information through other means. This application embodiment does not specifically limit the method of obtaining object information.

[0101] Step 606: If the size information in the object information does not match the size data, a size information error message will be displayed, and the object size will be remeasured.

[0102] Corresponding to step 605, after obtaining the object information, the electronic device can extract the dimension information from the object information and compare the extracted dimension information with the measured dimension data to determine whether the two are consistent. If the dimension information and the dimension data are inconsistent, it indicates that the dimension information may be incorrect, and the object's dimensions can be measured again to determine the actual dimensions of the object.

[0103] Optionally, if the electronic device determines that the dimensional information is inconsistent with the measured dimensional data, it can notify the user that the dimensional measurement needs to be repeated. Simultaneously, the electronic device can also control the channels connected to it to remain closed, preventing objects from passing through the turnstiles or channels.

[0104] The electronic device can then determine the object's motion state, and based on that motion state, use a measurement method corresponding to that motion state to measure the object's dimensions again. This motion state indicates whether the object is moving or stationary.

[0105] In determining the motion state of an object, the electronic device can first determine at least one set of horizontally arranged transmitting modules among multiple transmitting modules, or determine at least one set of vertically arranged transmitting modules.

[0106] Subsequently, for at least one set of lateral reflection signals corresponding to each set of lateral transmission modules, or for at least one set of longitudinal reflection signals corresponding to each set of longitudinal transmission modules, the electronic device can determine the time interval between the lateral reflection signals corresponding to any two adjacent lateral transmission modules, or determine the time interval between the longitudinal reflection signals corresponding to any two adjacent longitudinal transmission modules.

[0107] If the time interval is less than the preset motion time threshold, the object's motion state is determined to be in motion, and the measurement of the object's size is paused until the object is stationary, at which point the object's size is measured again.

[0108] The motion state indicates whether the user is in a moving state or a stationary state. Furthermore, at least one set of horizontally oriented transmitting modules comprises multiple transmitting modules arranged horizontally, and at least one set of vertically oriented transmitting modules comprises multiple transmitting modules arranged vertically.

[0109] Correspondingly, for any horizontal or vertical transmission module among multiple transmission modules, if the electronic device continuously detects the object within the time period corresponding to the preset static time threshold, it indicates that the object has been staying in front of a certain horizontal or vertical transmission module for a long time, and the motion state of the object can be determined to be static.

[0110] The static time threshold is greater than the dynamic time threshold. For example, the static time threshold can be 0.5 seconds, and the dynamic time threshold can be 0.1 seconds.

[0111] It should be noted that if the electronic device determines that the object being detected is a user, it can measure not only the user's height but also their walking speed. If the user is walking, the electronic device can calculate the user's walking speed based on at least one set of lateral reflection signals corresponding to at least one set of laterally arranged transverse transmission modules among multiple transmission modules, using the time difference between each set of lateral reflection signals.

[0112] Furthermore, the electronic device can determine when to measure a user's height based on their walking speed, avoiding inaccurate measurements due to excessive walking speed. Accordingly, the device can compare the user's walking speed with a pre-set speed threshold. If the speed is greater than or equal to the threshold, the measurement can be paused while the user's walking speed is continuously monitored. When the speed is less than the threshold, height measurement can begin.

[0113] In addition, users may have various body postures such as bending over or looking down while walking. To avoid inaccurate height measurements due to users walking too fast or having non-standard body postures, a pre-set speed threshold and uprightness threshold can be used to determine whether the user's height can be accurately measured.

[0114] The process of determining and comparing the user's body uprightness is similar to that described above and will not be repeated here.

[0115] For example, if the preset speed threshold is 0.5 meters per second (m / s) and the uprightness threshold is 85%, the electronic device can determine the user's body posture first, and if the uprightness is less than or equal to 85%, the electronic device can stop measuring the user's height. Alternatively, after calculating the user's walking speed, the electronic device can compare the walking speed with the speed threshold of 0.5 m / s. If the walking speed is greater than 0.5 m / s, the electronic device can also stop measuring the user's height.

[0116] It should also be noted that if the height information matches the measured user height, the electronic device can stop measuring the user's height and prompt the user to pass through as soon as possible so that the electronic device can measure the height of the next user.

[0117] Furthermore, the above mainly describes the process of users entering and exiting turnstiles or passageways. In practical applications, electronic devices can also be used in health check-up scenarios. For example, after verifying user information, the electronic device can calculate the user's health index based on the user's weight information and then display health advice corresponding to the health index to the user.

[0118] Alternatively, electronic devices can measure a user's weight while measuring their height, and then calculate the user's health index (such as body mass index, BMI) based on the height and weight information, providing suggestions such as needing to increase exercise or pay attention to dietary structure.

[0119] Of course, in practical applications, electronic devices can also be used in other scenarios. This application embodiment does not specifically limit the application scenarios of electronic devices.

[0120] In summary, the measurement method proposed in this application involves using cascaded sensors in an electronic device to emit multiple sets of detection signals to detect the state in front of the electronic device. The cascaded sensors also receive reflected signals from these signals, and the method determines whether a user has passed in front of the electronic device based on these reflected signals. If an object passes in front of the electronic device, the dimensions of the object are measured using transmitting modules at different heights within the cascaded sensors, yielding dimensional data. This method allows for rapid measurement of users or goods transported along a conveyor belt while measuring the object being measured, eliminating the need for dedicated measurement of users, goods, or other objects within a pre-defined area. This reduces the time spent measuring object dimensions and improves the efficiency and flexibility of object measurement.

[0121] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0122] Based on the same inventive concept, embodiments of this application also provide an electronic device. Figure 8 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 8 As shown, the electronic device provided in this embodiment includes a memory 81 and a processor 82. The memory 81 is used to store a computer program 83; the processor 82 is used to execute the method described in the above method embodiment when the computer program 83 is invoked.

[0123] Furthermore, electronic devices can also include multiple such Figure 4 or Figure 5 The cascaded sensor shown can control at least one cascaded sensor to emit a detection signal and receive a reflected signal when the processor calls the computer program, and then perform the above measurement method based on the reflected signal.

[0124] The electronic device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so they will not be described again here.

[0125] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the methods described in the above-described method embodiments.

[0126] This application also provides a computer program product that, when run on an electronic device, causes the electronic device to implement the method described in the above-described method embodiments.

[0127] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0128] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0130] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0131] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0132] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0133] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0134] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0135] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A measurement method, characterized in that, The method includes: Multiple sets of detection signals are emitted through cascaded sensors of the electronic device, and the detection signals are used to detect the state in front of the electronic device; The cascaded sensors of the electronic device receive multiple sets of reflected signals, which are formed after the detection signal is reflected. Based on the multiple sets of reflected signals, determine whether an object has passed in front of the electronic device; If an object passes in front of the electronic device, the size of the object is measured by the transmitting modules located at different positions in the cascaded sensors to obtain size data. Obtain object information; if the size information in the object information does not match the size data, an object information abnormality is indicated, and the motion state of the object is determined, which indicates whether the object is moving or stationary; based on the motion state of the object, the size of the object is measured again using a measurement method corresponding to the motion state.

2. The measurement method according to claim 1, characterized in that, The measurement of the object's dimensions using transmitting modules located at different positions within the cascaded sensors to obtain dimension data includes: Multiple sets of measurement signals are emitted through the multiple transmitting modules located at different positions in the cascaded sensor; Receive multiple sets of feedback signals, wherein the feedback signals are obtained by reflecting the measurement signal by the object; The size data is calculated based on the multiple sets of feedback signals.

3. The measurement method according to claim 2, characterized in that, The step of calculating the size data based on multiple sets of feedback signals includes: The posture of the object is determined based on multiple sets of feedback signals, and the posture is used to represent the posture of the object in front of the electronic device; The initial dimensions of the object are calculated based on multiple sets of feedback signals; The initial size is compensated based on the posture to obtain the size data.

4. The measurement method according to claim 1, characterized in that, Determining the motion state of the object includes: Determine at least one set of horizontally arranged launch modules or at least one set of vertically arranged launch modules among the plurality of launch modules, wherein the at least one set of horizontally arranged launch modules is a plurality of launch modules arranged in a horizontal direction, and the at least one set of vertically arranged launch modules is a plurality of launch modules arranged in a vertical direction; For at least one set of lateral reflection signals corresponding to each group of lateral transmission modules, or at least one set of longitudinal reflection signals corresponding to each group of longitudinal transmission modules, determine the time interval between any two adjacent lateral reflection signals corresponding to lateral transmission modules, or the time interval between any two adjacent longitudinal reflection signals corresponding to longitudinal transmission modules. If the time interval is less than a preset motion time threshold, the motion state of the object is determined to be a moving state.

5. The measurement method according to claim 4, characterized in that, Determining the motion state of the object includes: For any one of the horizontal or vertical transmission modules, if the horizontal or vertical transmission module continuously detects the object within a time period corresponding to a preset static time threshold, then the motion state of the object is determined to be static, and the static time threshold is greater than the motion time threshold.

6. An electronic device, characterized in that, include: The system includes a memory, a processor, and multiple cascaded sensors, wherein the memory is used to store computer programs. The processor is configured to, when invoking the computer program, control at least one of the cascaded sensors to emit a detection signal and receive a reflected signal, and then execute the measurement method as described in any one of claims 1 to 5 based on the reflected signal.

7. The electronic device according to claim 6, characterized in that, The cascaded sensor includes: a connecting strip, a processor, and at least one sensing unit; The processor is located at one end of the connecting strip and is connected to each of the sensing units; Each of the sensing units is arranged sequentially on the connecting strip, and each of the sensing units is connected in series through a detachable interface and an electrical wire or communication bus. For each of the sensing units, the sensing unit includes a storage module for storing the address code of the sensing unit; If any of the sensing units is disconnected from its adjacent sensing unit, the processor reallocates the address code based on the number and position of the remaining sensing units connected to the processor.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the measurement method as described in any one of claims 1 to 5.