A mobile detection method, device, system and storage medium

By identifying and analyzing the changing trend of the stripe spacing in the image and detecting vibrations using the principle of wedge-shaped film interference, the problem that human movement detection devices in the prior art is difficult to accurately detect the movement direction and state, and a high-sensitivity movement trend judgment is achieved.

CN115035148BActive Publication Date: 2024-12-06GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110199542.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-22
Publication Date
2024-12-06
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

The existing human body movement detection device is difficult to accurately detect the movement direction and state of the human body, especially when the human body moves slowly, the sensitivity is low and easily disturbed by external interference, and the movement direction of the human body cannot be judged.

Method used

By identifying and extracting two adjacent stripes of the same type in the image to be detected, the change trend of the stripe spacing is determined, and the vibration is detected using the principle of wedge-shaped film interference to achieve the judgment of the moving trend of the target moving object.

Benefits of technology

On the basis of ensuring high sensitivity and no additional power consumption, accurately judge the moving state and direction of the target moving object, avoiding the influence of external interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115035148B_ABST
    Figure CN115035148B_ABST
Patent Text Reader

Abstract

The present invention discloses a motion detection method, device, system and storage medium. The method comprises: identifying and extracting two adjacent stripes of the same type in at least two images to be detected; determining the stripe spacing variation trend of the two adjacent stripes of the same type; and determining the motion trend of the target moving object according to the stripe spacing variation trend. The embodiment of the present invention determines the motion trend of the target moving object according to the stripe spacing variation trend of the two adjacent stripes of the same type in the image to be detected, thereby achieving the use of wedge-shaped film interference to avoid detection vibration and accurately judge the motion state and motion direction of the target moving object while ensuring high sensitivity and without increasing additional power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to detection technology, and in particular to a mobile detection method, device, system and storage medium. Background Art

[0002] In the prior art, the human movement detection device includes two types: pyroelectric sensors and infrared tube sensors. The pyroelectric principle is used (when the temperature changes or the infrared radiation changes, the pyroelectric material is polarized, and the planned intensity change is proportional to the temperature difference, and the ratio is the pyroelectric coefficient). However, in order to suppress its own temperature drift, two sensors in opposite directions are added to the circuit to offset the influence of temperature on itself. When someone walks (where walking refers to normal walking, not standing still or moving very slowly (which will cause the signals of the two sensors to cancel each other out)), the signals generated by the pyroelectric sensor are different, and the signal difference is generated after adding, that is, the signal to be detected. In order to enhance the sensitivity, a Fresnel lens is added in front of the module. However, this method has a major disadvantage, that is, when the human body moves slowly, it cannot be accurately detected, and the infrared rays are greatly interfered by the outside world; at the same time, it can only detect whether the human body moves, but cannot detect the direction of the human body's movement.

[0003] The principle of using infrared tube sensors to detect human movement is relatively simple. When a person blocks the infrared rays, the infrared receiving tube cannot receive the signal, and it is determined that someone has passed. This method is simple in principle, but it can only detect whether there is a person, but cannot determine the movement of a person. Therefore, how to accurately detect the movement direction and movement state of a person is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the present invention provides a motion detection method, device, system and storage medium, which can accurately detect the moving direction and moving state of a target moving object.

[0005] In a first aspect, an embodiment of the present invention provides a movement detection method, including:

[0006] Identify and extract two adjacent stripes of the same type from at least two images to be detected;

[0007] Determine a variation trend of the stripe spacing between the two adjacent stripes of the same type;

[0008] The moving trend of the target moving object is determined according to the stripe spacing changing trend.

[0009] In a second aspect, an embodiment of the present invention further provides a movement detection device, including:

[0010] An identification and extraction module, used for identifying and extracting two adjacent stripes of the same type in at least two images to be detected;

[0011] A first determining module is used to determine a trend of a change in the stripe spacing between two adjacent stripes of the same type;

[0012] The second determining module is used to determine the moving trend of the target moving object according to the stripe spacing variation trend.

[0013] In a third aspect, an embodiment of the present invention further provides a movement detection device, the device comprising: a memory, and one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the movement detection method as described in any of the above embodiments.

[0016] In a fourth aspect, an embodiment of the present invention further provides a motion detection system, comprising: a wedge-shaped device, a camera, and the motion detection device described in the above embodiment; the wedge-shaped device comprises: an upper plane plate, a lower plane plate, and an ejector pin; the first end of the upper plane plate is connected to the first end of the lower plane plate through a central axis, and a preset angle is formed between the first end of the upper plane plate and the first end of the lower plane plate; the second end of the upper plane plate and the second end of the lower plane plate are both connected to the ejector pin, and the ejector pin is perpendicular to the ground; the distance between the second end of the upper plane plate and the second end of the lower plane plate is used as the maximum thickness of the wedge; the camera is located above the upper plane plate;

[0017] The camera is used to collect the changes of the stripes on the upper plane plate and upload them to the mobile detection device as the image to be detected;

[0018] When the movement of the target moving object is detected, the vibration wave is transmitted to the wedge device through the ground, causing the ejector pin to vibrate up and down, and the upper plane plate to vibrate accordingly, and the maximum thickness of the wedge changes; when the maximum thickness of the wedge changes, the stripe spacing between two adjacent stripes of the same type in the image to be detected changes, so that the mobile detection device determines the movement trend of the target moving object according to the trend of the stripe spacing change.

[0019] In a fifth aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the motion detection method as described in any of the above embodiments.

[0020] The present invention identifies and extracts two adjacent stripes of the same type in at least two images to be detected; determines the trend of the stripe spacing change between the two adjacent stripes of the same type; and determines the movement trend of the target moving object according to the trend of the stripe spacing change. The embodiment of the present invention determines the movement trend of the target moving object according to the trend of the stripe spacing change between the two adjacent stripes of the same type in the image to be detected, thereby achieving the use of wedge-shaped film interference to avoid detection vibration and accurately judge the movement state and movement direction of the target moving object while ensuring high sensitivity and not increasing additional power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of the principle of thin film interference provided by an embodiment of the present invention;

[0022] Figure 2 is a structural diagram of a wedge-shaped air layer interference provided in an embodiment of the present invention;

[0023] Figure 3 is a flow chart of a motion detection method provided by an embodiment of the present invention;

[0024] Figure 4 is a flow chart of another motion detection method provided by an embodiment of the present invention;

[0025] Figure 5 is a structural block diagram of a mobile detection device provided by an embodiment of the present invention;

[0026] Figure 6 is a schematic diagram of the hardware structure of a mobile detection system provided by an embodiment of the present invention;

[0027] Figure 7 is a schematic structural diagram of a wedge-shaped device provided by an embodiment of the present invention;

[0028] Figure 8 It is a schematic diagram of the hardware structure of a mobile detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] It should be noted that this solution uses the thin film interference principle to assist a simple structural component to detect human movement. The detection part also needs to be equipped with a camera function and background software. The specific principles are as follows:

[0031] in, Figure 1FIG. 1 is a schematic diagram of the principle of thin film interference provided by an embodiment of the present invention. Figure 2 As shown, the following model of air, oil, and water is used as an example for explanation. The actual situation does not need to be so complicated. When the incident light enters the grease, reflection will occur on both the upper and lower surfaces of the grease; as can be seen from the schematic diagram, there is a path length difference between the light reflected at the interface between oil and water (i.e., oil-water) and the light reflected at the interface between air and oil (i.e., air-oil), which is called the optical path difference, that is, the length that the light travels in the medium. The formula is d=n*l, where n refers to the refractive index of the medium and l refers to the relative path length. When the optical path difference satisfies an integer multiple of the wavelength length, constructive interference occurs and bright fringes appear; when the optical path difference satisfies an odd multiple of half the wavelength, destructive interference occurs and dark fringes appear.

[0032] Figure 2 FIG. 1 is a structural diagram of a wedge-shaped air layer interference provided in an embodiment of the present invention. The wedge-shaped air layer interference is a type of thin film interference, and its structure is as follows: Figure 3 As shown. In order to highlight the effect of light and dark stripes, the incident light uses monochromatic light with a wavelength of λ. Since the wedge tip is made of glass, light will experience half-wave loss when it is emitted from it, which is equivalent to traveling an extra λ / 2 distance. Therefore, this part must be added to the optical path difference. As shown above, when the optical path difference meets certain conditions, light and dark stripes appear.

[0033] In one embodiment, Figure 3 is a flow chart of a motion detection method provided by an embodiment of the present invention. This embodiment is applicable to the case of performing motion detection on a target moving object. This embodiment can be executed by a motion detection device. For example, the motion detection device can be a terminal device such as a personal computer, a laptop computer, an iPad, a smart phone, etc. that can be equipped with a high-speed camera. Figure 3 As shown, this embodiment includes the following steps:

[0034] S110, identifying and extracting two adjacent stripes of the same type from at least two images to be detected.

[0035] Wherein, the image to be detected refers to the original image without image processing. In the actual operation process, the image to be detected can be a color image or a black and white image. Of course, in order to accurately analyze the image to be detected, the high-speed camera directly transmits the collected image to be detected to the mobile detection device. It can be understood that the image to be detected is a color image, that is, it is formed by the superposition of the three primary colors R (Red, red), G (Green, green), and B (Blue, blue). In an embodiment, the image to be detected refers to the image generated by collecting the stripe changes on the upper plane plate in the wedge-shaped device through the high-speed camera. In the actual operation process, the stripe changes on the upper plane plate in the wedge-shaped device are photographed by the high-speed camera, and the image obtained by the shooting is uploaded to the mobile detection device as the image to be detected, so that the mobile detection device analyzes and processes the image to be detected. Of course, in order to accurately detect the moving trend of the target moving object, the stripe changes on the upper plane plate can be collected in real time by the high-speed camera, and the image to be detected is generated and transmitted to the mobile detection device. In the actual operation process, a communication connection can be established between the high-speed camera and the mobile detection device by a wired or wireless method. Of course, when establishing a communication connection wirelessly, a wireless communication module is configured in the high-speed camera and the motion detection device. For example, the wireless communication module can be a WiFi module or a Bluetooth module, and there is no limitation on this.

[0036] Among them, two adjacent stripes of the same type refer to two adjacent stripes of the same type. In one implementation, two adjacent stripes of the same type may include one of the following: two adjacent bright stripes; two adjacent dark stripes. It should be noted here that after the incident light is incident on the upper plane plate in the wedge-shaped device, since the medium in the wedge-shaped device is different from the medium outside the wedge-shaped device, when the optical path difference of the incident light satisfies an integer multiple of the wavelength length, a bright stripe appears; when the optical path difference satisfies an odd multiple of half the wavelength, a dark stripe appears. In actual operation, in order to accurately distinguish between bright stripes and dark stripes, different backgrounds can be used to distinguish between bright stripes and dark stripes. Exemplarily, a black background can be used for bright stripes, and a white background can be used for dark stripes.

[0037] In the embodiment, the existing recognition and extraction technology may be used to recognize and extract two adjacent stripes of the same type in each image to be detected, and this is not limited.

[0038] S120, determining a trend of a change in the stripe spacing between two adjacent stripes of the same type.

[0039] The stripe spacing variation trend refers to the variation of the stripe spacing between two adjacent stripes of the same type in the current image to be detected and two adjacent stripes of the same type in the previous image to be detected. In an embodiment, after identifying and extracting two adjacent stripes of the same type in each image to be detected, the stripe spacing between the two adjacent stripes of the same type in the current image to be detected and the stripe spacing between the two adjacent stripes of the same type in the previous image to be detected are compared, and the stripe spacing variation trend of the two adjacent stripes of the same type is determined according to the comparison result.

[0040] S130, determining the moving trend of the target moving object according to the trend of the stripe spacing change.

[0041] In an embodiment, the trend of the stripe spacing change is used to characterize the moving trend of the target moving object. Exemplarily, the trend of the stripe spacing change includes: an increasing trend and a decreasing trend. It can be understood that when the stripe spacing change trend is an increasing trend, it indicates that the target moving object is in a moving away state; when the stripe spacing change trend is a decreasing trend, it indicates that the target moving object is in an approaching state. Of course, the moving trend of the target moving object is relative to the wedge-shaped device, that is, the target moving object is in a moving away state, which means that the target moving object is moving away from the wedge-shaped device; correspondingly, the target moving object is in an approaching state, which means that the target moving object is approaching the wedge-shaped device.

[0042] The technical solution in this embodiment, by identifying and extracting two adjacent stripes of the same type from at least two images to be detected; determining the trend of the change in the stripe spacing between the two adjacent stripes of the same type; and determining the movement trend of the target moving object based on the trend of the stripe spacing change, achieves the use of wedge-shaped film interference to avoid detection vibration and accurately judge the movement state and movement direction of the target moving object while ensuring high sensitivity and not increasing additional power consumption.

[0043] In one embodiment, Figure 4 FIG. 1 is a flow chart of another motion detection method provided by an embodiment of the present invention. This embodiment further illustrates the motion detection method based on the above embodiment. Figure 4 As shown, the movement detection method in this embodiment includes the following steps:

[0044] S210 , performing a binarization operation on each image to be detected to obtain a binarization result.

[0045] In an embodiment, after the mobile detection device acquires the image to be detected, each image to be detected is binarized to obtain a binarized image. It should be noted that performing a binarization operation on the image to be detected can reduce the amount of calculation of the mobile detection device on the one hand, and can facilitate the identification and extraction of two adjacent stripes of the same type in the image to be detected on the other hand.

[0046] S220 , identifying and extracting two adjacent stripes of the same type in at least two images to be detected according to the binarization result.

[0047] In an embodiment, after binarization operation is performed on each image to be detected, the binarization result corresponding to each image to be detected is an image with only black and white colors. It should be noted here that, in order to facilitate the distinction of two adjacent stripes of the same type in the image to be detected, each type of stripe can be distinguished by one color. Exemplarily, a black background is used to characterize the bright stripes, and a color-changing background is used to characterize the dark stripes. In an embodiment, two adjacent stripes of the same type in each image to be detected are identified and extracted according to the binarization result. Exemplarily, assuming that the image to be detected A and the image to be detected B are adjacent images, and there are 5 bright stripes and 5 dark stripes in the image to be detected A, and there are 6 bright stripes and 6 dark stripes in the image to be detected B, then the 2nd bright stripe and the 3rd bright stripe in the image to be detected A can be identified and extracted as two adjacent stripes of the same type, and the 4th bright stripe and the 5th bright stripe in the image to be detected B can be identified and extracted as two adjacent stripes of the same type. It should be noted here that the stripe spacing between two adjacent stripes of the same type in each image to be detected is the same. For example, the stripe spacing between the second bright stripe and the third bright stripe in the image to be detected A is equal to the stripe spacing between the third bright stripe and the fourth bright stripe.

[0048] S230, determining a trend of a change in the stripe spacing between two adjacent stripes of the same type.

[0049] In one embodiment, the movement trend of the target moving object can be directly determined by the variation trend of the stripe spacing between two adjacent stripes of the same type in two adjacent images to be detected. In an embodiment, in the case where the movement trend of the target moving object is determined by the variation trend of the stripe spacing between two adjacent stripes of the same type in two adjacent images to be detected, S230 includes: determining the stripe spacing comparison result between two adjacent stripes of the same type in two adjacent images to be detected; and determining the stripe spacing variation trend between two adjacent stripes of the same type according to the stripe spacing comparison result. In an embodiment, the stripe spacing between two adjacent stripes of the same type in the current image to be detected is compared with the stripe spacing between two adjacent stripes of the same type in the previous image to be detected to determine the comparison result between the two as the stripe spacing comparison result; and determining the stripe spacing variation trend between two adjacent stripes of the same type according to the stripe spacing comparison result. When the stripe spacing between two adjacent stripes of the same type in the current image to be detected is greater than the stripe spacing between two adjacent stripes of the same type in the previous image to be detected, it indicates that the stripe spacing change trend is an increasing trend; correspondingly, when the stripe spacing between two adjacent stripes of the same type in the current image to be detected is less than the stripe spacing between two adjacent stripes of the same type in the previous image to be detected, it indicates that the stripe spacing change trend is a decreasing trend.

[0050] In one embodiment, the moving trend of the target moving object can be determined by the average value of the stripe spacing between two adjacent stripes of the same type in at least two adjacent images to be detected. In an embodiment, when the moving trend of the target moving object is determined by the average value of the stripe spacing between two adjacent stripes of the same type in at least two adjacent images to be detected, S230 includes: determining the stripe spacing average value of two adjacent stripes of the same type in at least two adjacent images to be detected; and determining the stripe spacing change trend of two adjacent stripes of the same type according to the comparison result of the stripe spacing average value. In an embodiment, the stripe spacing between two adjacent stripes of the same type in multiple adjacent images to be detected is determined, and then the average value of the stripe spacing between two adjacent stripes of the same type in multiple adjacent images to be detected is taken as the stripe spacing average value, and the two adjacent stripe spacing average values ​​are compared. If the current stripe spacing average value is greater than the previous stripe spacing average value, it indicates that the stripe spacing change trend of the two adjacent stripes of the same type is an increasing trend; if the current stripe spacing average value is less than the previous stripe spacing average value, it indicates that the stripe spacing change trend of the two adjacent stripes of the same type is a decreasing trend. Exemplarily, it is assumed that the stripe spacing change trend of two adjacent stripes of the same type is determined by the average stripe spacing of two adjacent stripes of the same type in three adjacent images to be detected as an example to illustrate it. Assuming that the images to be detected acquired by the mobile detection device in sequence are image 1, image 2, image 3, image 4, image 5 and image 6, the stripe spacing of two adjacent stripes of the same type in image 1, image 2, image 3, image 4, image 5 and image 6 are determined respectively, and recorded as stripe spacing 1, stripe spacing 2, stripe spacing 3, stripe spacing 4, stripe spacing 5 and stripe spacing 6, and then the average values ​​of stripe spacing 1, stripe spacing 2 and stripe spacing 3 are calculated to obtain the stripe spacing average value 1; and the average values ​​of stripe spacing 2, stripe spacing 3 and stripe spacing 4 are calculated to obtain the stripe spacing average value 2; then the stripe spacing average value 1 and the stripe spacing average value 2 are compared, if the stripe spacing average value 1 is greater than the stripe spacing average value 2, it indicates that the stripe spacing change trend is a decreasing trend; if the stripe spacing average value 1 is less than the stripe spacing average value 2, it indicates that the stripe spacing change trend is an increasing trend.

[0051] Of course, the average values ​​of stripe spacing 1, stripe spacing 2, and stripe spacing 3 can also be calculated to obtain the stripe spacing average value 3; and the average values ​​of stripe spacing 4, stripe spacing 5, and stripe spacing 6 can be calculated to obtain the stripe spacing average value 4; and then the stripe spacing average value 3 and the stripe spacing average value 4 can be compared. If the stripe spacing average value 3 is greater than the stripe spacing average value 4, it indicates that the stripe spacing change trend is a decreasing trend; if the stripe spacing average value 3 is less than the stripe spacing average value 4, it indicates that the stripe spacing change trend is an increasing trend.

[0052] S240: Determine the moving trend of the target moving object according to the trend of the stripe spacing change.

[0053] In the embodiment, when the variation trend of the stripe spacing is a decreasing trend, the target moving object is in an approaching state; and when the variation trend of the stripe spacing is an increasing trend, the target moving object is in a moving away state.

[0054] The technical solution in this implementation example, based on the above-mentioned embodiment, performs binarization processing on the image to be detected, reduces the calculation amount of the mobile detection device, and ensures the accuracy of identifying and extracting two adjacent stripes of the same type in the image to be detected.

[0055] In one embodiment, Figure 5 is a structural block diagram of a motion detection device provided by an embodiment of the present invention. The device is suitable for determining whether a target moving object moves and the direction of movement. The device can be implemented by hardware / software. Figure 5 As shown, the device includes: an identification and extraction module 310 , a first determination module 320 and a second determination module 330 .

[0056] The identification and extraction module 310 is used to identify and extract two adjacent stripes of the same type in at least two images to be detected;

[0057] A first determining module 320 is used to determine a trend of a stripe spacing change between two adjacent stripes of the same type;

[0058] The second determining module 330 is used to determine the moving trend of the target moving object according to the trend of the stripe spacing change.

[0059] The technical solution of this embodiment determines the movement trend of the target moving object based on the trend of the change in the stripe spacing between two adjacent stripes of the same type in the image to be detected, thereby achieving the use of wedge-shaped film interference to avoid detection vibration and accurately judge the movement state and movement direction of the target moving object while ensuring high sensitivity and not increasing additional power consumption.

[0060] Furthermore, the mobile detection device further includes:

[0061] The processing module is used to perform a binarization operation on each image to be detected to obtain a binarization result before identifying and extracting two adjacent stripes of the same type in at least two images to be detected.

[0062] In one embodiment, the identification and extraction module is specifically used to:

[0063] According to the binarization result, two adjacent stripes of the same type in at least two images to be detected are identified and extracted.

[0064] In one embodiment, the first determining module includes:

[0065] A first determination unit is used to determine a stripe spacing comparison result between two adjacent stripes of the same type in two adjacent images to be detected;

[0066] The second determining unit is used to determine the stripe spacing variation trend between two adjacent stripes of the same type according to the stripe spacing comparison result.

[0067] In one embodiment, the first determining module includes:

[0068] A third determining unit is used to determine an average value of stripe spacings between two adjacent stripes of the same type in at least two adjacent images to be detected;

[0069] The fourth determining unit is used to determine the stripe spacing variation trend of two adjacent stripes of the same type according to the comparison result of the stripe spacing average values.

[0070] In one embodiment, the second determining module includes:

[0071] A first judgment unit is used to judge that the target moving object is in an approaching state when the trend of the stripe spacing change is a decreasing trend;

[0072] The second judgment unit is used for judging that the target moving object is in a moving away state when the trend of the stripe spacing change is an increasing trend.

[0073] In one embodiment, two adjacent stripes of the same type include one of the following: two adjacent bright stripes; or two adjacent dark stripes.

[0074] The above-mentioned motion detection device can execute the motion detection method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0075] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a mobile detection system provided by an embodiment of the present invention. Figure 6 As shown, the mobile detection system in this embodiment includes: a wedge device 410, a camera 420 and a mobile detection device 430; the wedge device 410 includes: an upper plane plate 4101, a lower plane plate 4102 and an ejector pin 4103; the first end of the upper plane plate 4101 is connected to the first end of the lower plane plate 4102 through a central axis, and a preset angle is formed between the first end of the upper plane plate 4101 and the first end of the lower plane plate 4102; the second end of the upper plane plate 4101 and the second end of the lower plane plate 4102 are both connected to the ejector pin 4103, and the ejector pin 4103 is perpendicular to the ground; the distance between the second end of the upper plane plate 4101 and the second end of the lower plane plate 4102 is used as the maximum thickness of the wedge; the camera 420 is located above the upper plane plate; the camera 420 establishes a communication connection with the mobile detection device 430;

[0076] The camera 420 is used to collect the changes of the stripes on the upper plane plate and upload them to the mobile detection device 430 as the image to be detected;

[0077] When the movement of the target moving object is detected, the vibration wave is transmitted to the wedge device 410 through the ground, causing the top pin to vibrate up and down, and the upper plane plate to vibrate accordingly, and the maximum thickness of the wedge changes; when the maximum thickness of the wedge changes, the stripe spacing between two adjacent stripes of the same type in the image to be detected changes, so that the mobile detection device 430 determines the movement trend of the target moving object according to the trend of the stripe spacing change.

[0078] Figure 7 Schematic diagram of a wedge-shaped device provided by an embodiment of the present invention. This embodiment takes the moving target object as a human body as an example to illustrate the motion detection process. Figure 7 As shown, the wedge-shaped device includes: an upper plane plate, a lower plane plate and a pin. According to the thin film interference principle of the above embodiment, when the incident light is coherently destructed on the upper plane plate to form light and dark fringes, the e k+1 and the k The distance between the stripes is d, and the heights are h k+1 and h k , D is the maximum thickness of the wedge, L is the length of the lower surface plate, and θ is the angle of the wedge, where the relationship between them is as follows:

[0079]

[0080]

[0081]

[0082] Among them, L and λ are fixed values, while D is a variable. When D changes, the stripe spacing d changes. The principle of D change is: when the human body moves, the vibration wave is transmitted to the back shell of the machine through the ground, etc., causing the ejector pin to vibrate up and down, and the upper plane plate vibrates together, and D changes.

[0083] The principle of judging the movement of the target moving object is as follows: when approaching this device, the vibration amplitude becomes larger and the frequency becomes faster, the change of D becomes more severe and the amplitude becomes larger, so that the value of d changes faster and decreases as D increases. At this time, the high-speed camera quickly detects this change, and quickly compares the pictures taken several times in a row through the background algorithm to calculate the change trend of d. If d shows a decreasing trend, it can be judged that the human body is approaching at this time; conversely, if d shows an increasing trend, it is in a state of moving away. Of course, in order to avoid errors caused by irrelevant vibrations, the algorithm can be optimized, for example, the average value is calculated once for each multiple images and then compared. This embodiment uses the wedge-shaped thin film interference principle to detect vibrations, and accurately detects the moving state and moving direction of the target moving object on the basis of high sensitivity, small size of the wedge-shaped device, and no additional power consumption except for the high-speed camera.

[0084] Figure 8 1 is a schematic diagram of the hardware structure of a mobile detection device provided in an embodiment of the present invention. The device in the embodiment of the present invention is described by taking a computer device as an example. Figure 8 As shown, the computer device provided by the embodiment of the present invention includes: a processor 510 and a memory 520, an input device 530 and an output device 540. The processor 510 in the computer device can be one or more, Figure 8 Taking a processor 510 as an example, the processor 510, memory 520, input device 530 and output device 540 in the computer device can be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0085] The memory 520 in the computer device is a computer-readable storage medium that can be used to store one or more programs. The program can be a software program, a computer executable program, and a module, such as the program instructions / modules corresponding to the embodiment of the present invention or the provided motion detection method (for example, Figure 6 The modules in the mobile detection device shown include: an identification and extraction module 310, a first determination module 320 and a second determination module 330). The processor 510 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 520, that is, the mobile detection method in the above method embodiment is implemented.

[0086] The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0087] The input device 530 may be used to receive digital or character information input by a user to generate key signal input related to user settings and function control of the terminal device. The output device 540 may include a display device such as a display screen.

[0088] Furthermore, when one or more programs included in the above-mentioned computer device are executed by one or more processors 510, the program performs the following operations: identifying and extracting two adjacent stripes of the same type in at least two images to be detected; determining the trend of the change in the stripe spacing between the two adjacent stripes of the same type; and determining the movement trend of the target moving object based on the trend of the change in the stripe spacing.

[0089] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the motion detection method provided by the embodiment of the present invention is implemented. The method includes: identifying and extracting two adjacent stripes of the same type in at least two images to be detected; determining the trend of change in the stripe spacing between the two adjacent stripes of the same type; and determining the movement trend of the target moving object based on the trend of change in the stripe spacing.

[0090] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0091] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0092] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0093] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or combinations thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0094] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A mobile detection method, characterized in that: Utilizes wedge-shaped film interferometry to detect vibrations, including: Identify and extract two adjacent stripes of the same type from at least two images to be detected; Determine a variation trend of the stripe spacing between the two adjacent stripes of the same type; Determining the moving trend of the target moving object according to the fringe spacing changing trend; Determining the moving trend of the target moving object according to the fringe spacing variation trend includes: When the stripe spacing variation trend is a decreasing trend, the target moving object is in a close state; When the stripe spacing variation trend is an increasing trend, the target moving object is in a moving away state.

2. The method according to claim 1, characterized in that Before the step of identifying and extracting two adjacent stripes of the same type from at least two images to be detected, the method further includes: A binarization operation is performed on each image to be detected to obtain a binarization result.

3. The method according to claim 2, characterized in that The identifying and extracting two adjacent stripes of the same type in at least two images to be detected includes: According to the binarization result, two adjacent stripes of the same type in at least two images to be detected are identified and extracted.

4. The method according to claim 1, characterized in that: The determining of the stripe spacing variation trend between the two adjacent stripes of the same type includes: Determine the stripe spacing comparison result of two adjacent stripes of the same type in two adjacent images to be detected; The stripe spacing variation trend of the two adjacent stripes of the same type is determined according to the stripe spacing comparison result.

5. The method according to claim 1, characterized in that The determining of the stripe spacing variation trend between the two adjacent stripes of the same type includes: Determine an average value of the stripe spacing between two adjacent stripes of the same type in at least two adjacent images to be detected; The stripe spacing variation trend of the two adjacent stripes of the same type is determined according to the comparison result of the stripe spacing average values.

6. The method according to any one of claims 1 to 5, characterized in that: The two adjacent stripes of the same type include one of the following: two adjacent bright stripes; two adjacent dark stripes.

7. A mobile detection device, characterized in that: The device includes: a memory, and one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the movement detection method as described in any one of claims 1-6.

8. A mobile detection system, characterized in that: include: A wedge-shaped device, a camera and a movement detection device as claimed in claim 7; The wedge device comprises: an upper plane plate, a lower plane plate and an ejector pin; the first end of the upper plane plate is connected to the first end of the lower plane plate through a central axis, and a preset angle is formed between the first end of the upper plane plate and the first end of the lower plane plate; the second end of the upper plane plate and the second end of the lower plane plate are both connected to the ejector pin, and the ejector pin is perpendicular to the ground; the distance between the second end of the upper plane plate and the second end of the lower plane plate is used as the maximum thickness of the wedge; the camera is located above the upper plane plate; the camera establishes a communication connection with the movement detection device; The camera is used to collect the changes of the stripes on the upper plane plate and upload them to the mobile detection device as the image to be detected; When the movement of the target moving object is detected, the vibration wave is transmitted to the wedge device through the ground, causing the ejector pin to vibrate up and down, and the upper plane plate to vibrate accordingly, and the maximum thickness of the wedge changes; when the maximum thickness of the wedge changes, the stripe spacing between two adjacent stripes of the same type in the image to be detected changes, so that the mobile detection device determines the movement trend of the target moving object according to the trend of the stripe spacing change.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the motion detection method as described in any one of claims 1 to 6 is implemented.