Method and system for non-distortion motion detection

By detecting motion or scene changes between frames, calculating the difference between bounding boxes and feature values, and using thresholds and majority conditions, the problem of difficulty in distinguishing moving objects and camera motion in the existing technology is solved, and the accuracy of motion detection is improved. .

CN113711272BActive Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN201980095490.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-23
Publication Date
2024-08-23
Estimated Expiration
2039-04-23

AI Technical Summary

Technical Problem

Existing motion detection technology has difficulty distinguishing changes caused by moving objects and camera motion, resulting in false motion detection.

Method used

By continuously detecting motion or scene changes between frames, the difference between the bounding box and the feature value is calculated, and predetermined thresholds and multiple conditions are used to determine whether it is continuous motion to avoid false detection.

Benefits of technology

Effectively distinguishes the motion of moving objects and camera motion, reducing the occurrence of false detection and improving the accuracy of motion detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113711272B
    Figure CN113711272B
Patent Text Reader

Abstract

A method includes: performing a checking method a first plurality of times, wherein the checking method includes: obtaining a size difference between a first bounding box and a second bounding box, wherein the first bounding box defines a first detected motion or scene change obtained using a plurality of first frames, and the second bounding box defines a second detected motion or scene change obtained using a plurality of second frames; and updating the plurality of first frames and the plurality of second frames; wherein for each of a second plurality of times in a first plurality of times, the size difference is greater than a predetermined threshold, and the second plurality of times is greater than or equal to a predetermined plurality of times; and based on the size difference of each of the second plurality of times, determining whether the motion or scene change in the plurality of first frames and the plurality of second frames in each of the first plurality of times belongs to continuous motion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of motion detection, and more particularly to a method and system for non-false motion detection. Background Art

[0002] Motion detection is a technique for identifying a moving object in a series of frames. A first series of frames includes pixels that are aligned with each other and change due to a moving object. A second series of frames includes pixels that are aligned with each other and change due to camera motion. The first series of frames may be difficult to distinguish from the second series of frames, resulting in false motion detection. Summary of the invention

[0003] An object of the present disclosure is to provide a method and system for non-distortion motion detection.

[0004] In a first aspect of the present disclosure, a computer-implemented method includes: performing a detection method for a first plurality of times in succession, wherein the detection method includes: obtaining a plurality of first frames arranged in sequence; detecting motion or scene changes in the plurality of first frames to generate a first detected motion or scene change; obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a second bounding box, the second bounding box defining the second detected motion or scene change scene change; obtaining a first size difference between the first bounding box and the second bounding box; and updating the plurality of first frames to the plurality of second frames, and updating the plurality of second frames to the plurality of third frames after the plurality of second frames; wherein for each of a second plurality of times in the first plurality of times, the first size difference is greater than a first predetermined threshold, and the second plurality of times is greater than or equal to a first predetermined plurality of times; and based on the first size difference of each of the second plurality of times, determining the motion or the scene change in the plurality of first frames in each of the first plurality of times and the motion or the scene change in the plurality of second frames as belonging to continuous motion.

[0005] In a second aspect of the present disclosure, a computer-implemented method includes: performing an inspection method continuously for a first plurality of times, wherein the inspection method includes: obtaining a plurality of first frames arranged in sequence; detecting motion or scene changes in the plurality of first frames to generate a first detected motion or scene change; obtaining a first feature value of all pixels affected by the first detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a second feature value of all pixels affected by the second detected motion or scene change; and obtaining a first feature value difference between the first feature value and the second feature value; wherein for each of a second plurality of times in the first plurality of times, the first feature value difference is greater than a first predetermined threshold value, and the second plurality of times is greater than or equal to a first predetermined plurality of times; and based on the first feature value difference of each of the second plurality of times, determining that the motion or scene change in the plurality of first frames and the motion or scene change in the plurality of second frames in each of the first plurality of times belongs to continuous motion.

[0006] In a third aspect of the present disclosure, a system includes at least one memory and at least one processor. The at least one memory is configured to store a plurality of program instructions. The at least one processor is configured to execute the plurality of program instructions, and the plurality of program instructions cause the at least one processor to perform a plurality of steps, including: performing an inspection method continuously for a first plurality of times, wherein the inspection method includes: obtaining a plurality of first frames arranged in sequence; detecting motion or scene changes in the plurality of first frames to generate a first detected motion or scene change; obtaining a first bounding box, wherein the first bounding box defines the first detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a second bounding box, wherein the second ... A frame defines the second detected motion or scene change; obtains a first size difference between the first bounding box and the second bounding box; and updates the plurality of first frames to the plurality of second frames, and updates the plurality of second frames to a plurality of third frames after the plurality of second frames; wherein for each of a second plurality of times in the first plurality of times, the first size difference is greater than a first predetermined threshold, and the second plurality of times is greater than or equal to a first predetermined plurality of times; and based on the first size difference of each of the second plurality of times, determines that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belongs to continuous motion.

[0007] In a fourth aspect of the present disclosure, a system includes at least one memory and at least one processor. The at least one memory is configured to store a plurality of program instructions. The at least one processor is configured to execute the plurality of program instructions, and the plurality of program instructions cause the at least one processor to perform a plurality of steps, including: performing an inspection method continuously for a first plurality of times, wherein the inspection method includes: obtaining a plurality of first frames arranged in sequence; detecting motion or scene changes in the plurality of first frames to generate a first detected motion or scene change; obtaining a first feature value of all pixels affected by the first detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene changes in the plurality of second frames to generate a second detected motion or scene change; obtaining a plurality of first ... motion or scene change; obtaining a second eigenvalue of all pixels affected by the second detected motion or scene change; and obtaining a first eigenvalue difference between the first eigenvalue and the second eigenvalue; wherein for each of a second majority of times in the first majority, the first eigenvalue difference is greater than a first predetermined threshold, and the second majority of times is greater than or equal to a first predetermined majority of times; and based on the first eigenvalue difference of each of the second majority of times, determining that the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames for each of the first majority of times belong to continuous motion. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the embodiments of the present disclosure or related technologies, the following drawings will be described when briefly introducing the embodiments. Obviously, the drawings are only some embodiments of the present disclosure, and ordinary technicians in this field can obtain other drawings based on these drawings without any prior knowledge.

[0009] Figure 1 A block diagram illustrating input, processing, and output hardware modules in a terminal according to an embodiment of the present disclosure is shown.

[0010] Figure 2 The flowchart of a slow motion capture method according to an embodiment of the present disclosure is illustrated.

[0011] Figure 3 The flowchart is a flowchart illustrating a step of performing non-distortion motion detection to automatically trigger slow motion capture in a slow motion capture method according to an embodiment of the present disclosure.

[0012] Figure 4 FIG. 1 is a flow chart illustrating a step of detecting a motion or a scene change in a current frame set according to an embodiment of the present disclosure.

[0013] Figure 5 is a diagram illustrating a number of images in the steps of detecting motion or scene change in a current frame set according to an embodiment of the present disclosure, wherein the steps are applied to a moving object example.

[0014] Figure 6 A diagram of multiple images in the step of detecting motion or scene change in a current frame set in an embodiment of the present disclosure, wherein the step is applied to an example of tremor.

[0015] Figure 7 The flowchart is a flowchart illustrating a step of performing an AND operation using a first pixel difference image and a second pixel difference image according to an embodiment of the present disclosure.

[0016] Figure 8 The flowchart is a flowchart illustrating a step of performing an erosion operation after performing the AND operation according to an embodiment of the present disclosure.

[0017] Fig. 9 is a diagram illustrating an image in the step of performing an erosion operation according to an embodiment of the present disclosure.

[0018] Fig.10 is a flow chart illustrating a step of performing continuous motion checking using a first size difference between a current bounding box and a previous bounding box, wherein the current bounding box defines a currently detected motion or scene change, according to an embodiment of the present disclosure.

[0019] Fig.11 The diagram illustrates a plurality of images in the step of performing continuous motion check using a first size difference between a current bounding box and a previous bounding box according to the embodiment of the present disclosure, wherein the motion or the scene change in the current frame set is determined to belong to continuous motion.

[0020] Figure 12 to Figure 13 The present invention is a plurality of diagrams illustrating the steps of performing continuous motion check using a first size difference between a current bounding box and a previous bounding box according to the embodiment of the present disclosure, wherein the motion or the scene change in the current frame set is determined to be not continuous motion.

[0021] Fig.14 A flow chart illustrating a step of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to another embodiment of the present disclosure, wherein the current eigenvalue represents all pixels affected by a currently detected motion or scene change.

[0022] Fig.15 The present invention is a diagram illustrating a plurality of images in the step of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to another embodiment of the present disclosure, wherein the motion or the scene in the current frame set is determined to belong to continuous motion.

[0023] Figure 16 to Figure 17 The present invention is a plurality of diagrams illustrating the steps of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to another embodiment of the present disclosure, wherein the motion or the scene in the current frame set is determined to be not a continuous motion.

[0024] Fig.18 The flowchart is a flowchart illustrating a step of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to another embodiment of the present disclosure.

[0025] Fig.19 The flowchart is a flowchart illustrating a step of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to another embodiment of the present disclosure.

[0026] Figure 20 to Figure 21 The flowchart is a flowchart illustrating a step of performing continuous motion check using a first size difference between a current bounding box and a previous bounding box and a first feature value difference between a current feature value and a previous feature value according to another embodiment of the present disclosure.

[0027] Fig. 22 The flowchart is a flowchart illustrating a step of further using a current feature value of all pixels affected by the currently detected motion or scene change to perform continuous motion check according to another embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The technical matters, structural features, objectives and effects of the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. Specifically, the various terms in the various embodiments of the present disclosure are only used to illustrate the purpose of a certain embodiment and are not used to limit the present disclosure.

[0029] The same reference numerals in different drawings denote substantially the same elements, and the description of one element is applicable to the other elements.

[0030] As used herein, the term "use or using" refers to a case where an object is directly used to perform a step, or a case where the object is modified through at least one intermediate step and the modified object is directly used to perform the step.

[0031] Some implementation schemes are described herein in conjunction with many threshold values. The term "greater than" (or similar terms) is used herein to describe a relationship between a value and a threshold value, and can be used interchangeably with the term "greater than or equal to" (or similar terms). Similarly, the term "less than" (or similar terms) is used herein to describe a relationship between a value and a threshold value, and can be used interchangeably with the term "less than or equal to" (or similar terms). As used herein, "exceeding" a threshold value (or similar terms) can be used interchangeably with "being greater than a threshold value (being greater than a threshold)", "being greater than or equal to a threshold value (being greater than or equal to a threshold)", "being less than a threshold value (being less than a threshold)", "being less than or equal to a threshold value (being less than or equal to a threshold)" or other similar terms, depending on the context in which the threshold value is used.

[0032] Figure 1 is a block diagram illustrating input, processing and output hardware modules in a terminal 100 according to an embodiment of the present disclosure. Figure 1 The terminal 100 includes a camera module 102, a processor module 104, a memory module 106, a display module 108, a storage module 110, a wired or wireless communication module 112 and a plurality of buses 114. In one embodiment, the terminal 100 may be a plurality of mobile phones, a plurality of smart phones, a plurality of tablet computers, a plurality of laptop computers, a plurality of desktop computers or any electronic device with sufficient computing power for motion detection.

[0033] The camera module 102 is an inputting hardware module and is used to capture multiple frames in series and transmit them to the processor module 104 through the multiple buses 114. The processor module 104 uses the multiple frames to generate a reference Figure 2A preview stream and a video stream are described. In one embodiment, when the camera module 102 performs normal capture, the camera module 102 captures at a normal frame rate, such as 30fps, and when the camera module 102 performs slow motion capture, the camera module 102 captures at a higher frame rate, such as 120fps, 240fps, or 480fps. In one embodiment, the camera module 102 includes an RGB camera, or a grayscale camera. In another embodiment, the plurality of frames can be obtained using another input hardware module, such as the storage module 110, or the wired or wireless communication module 112. The storage module 110 is used to store the plurality of frames transmitted to the processor module 104 via the plurality of buses 114. The wired or wireless communication module 112 is configured to receive the plurality of frames from a network via wired or wireless communication, wherein the plurality of frames will be transmitted to the processor module 104 via the plurality of buses 114.

[0034] The memory module 106 stores a plurality of program instructions, which are executed by the processor module 104 to cause the processor module 104 to perform non-distortion motion detection. In one embodiment, the processor module 104 performs a slow motion capturing method that uses the non-distortion motion detection to automatically trigger slow motion capture. The slow motion capturing method is described in detail in detail in the accompanying drawings. Figure 2 is described. In one embodiment, the memory module 106 may be a transient or non-transient computer-readable medium, the transient or non-transient computer-readable medium comprising at least one memory. In one embodiment, the processor module 104 includes at least one processor, the at least one processor directly or indirectly sends signals to the camera module 102, the memory module 106, the display module 108, the storage module 110 and the wired or wireless communication module 112 via a bus 114 and / or directly or indirectly receives signals from the camera module 102, the memory module 106, the display module 108, the storage module 110 and the wired or wireless communication module 112 via a bus 114. In one embodiment, the at least one processor may be (multiple) central processing units (CPU(s)), (multiple) graphics processing units (GPU(s)) and / or (multiple) digital signal processors (DSP(s)). The (multiple) CPUs may send the multiple frames, some program instructions and other data or instructions to the (multiple) GPUs and / or (multiple) DSPs via the multiple buses 114.

[0035] The display module 108 is an output hardware module for displaying the preview stream and / or the video stream received from the processor module 104 through the multiple buses 114. In another embodiment, the preview stream and / or the video stream can be output using another output hardware module, such as the storage module 110, or the wired or wireless communication module 112. The storage module 110 is used to store the video stream received from the processor module 104 through the multiple buses 114. The wired or wireless communication module 112 is used to transmit the preview stream and / or the video stream to the network through the wired or wireless communication, wherein the preview stream and / or the video stream are received from the processor module 104 through the multiple buses 114.

[0036] The terminal 100 is a computing system, all components of which are integrated together via the plurality of buses 114. Other types of computing systems, such as a computing system having a remote camera module instead of the camera module 102, are also within the contemplated scope of the present disclosure.

[0037] Figure 2 FIG. 2 is a flowchart illustrating a slow motion capture method 200 according to an embodiment of the present disclosure. Figure 1 and Figure 2 The slow motion capture method 200 includes the following steps.

[0038] In a step 202, a plurality of samples are obtained from a gyroscope. The plurality of samples indicate whether the camera module 102 has rotational motion. In a step 204, if the camera module 102 has rotational motion, a step 206 is performed; otherwise, a step 208 is performed. In the step 206, a user is guided to correct a posture. The rotational motion of the camera module 102 may be caused by the hand shakes of the user when the user holds the terminal 100 for the camera module 102 to perform slow motion capture, for example. Because if the camera module 102 has rotational motion when performing slow motion capture, the plurality of frames captured by the camera module 102 may contain blurred content. Therefore, before triggering slow motion capture in the step 208, the user is guided to correct the posture.

[0039] In step 208, a preview stream is used to perform non-distortion motion detection and automatically trigger slow motion capture. Figures 3 to 22 is described.

[0040] In a step 210, the slow motion capture is performed and reflected in a video stream, and a detection result is indicated in the preview stream. After the slow motion capture is triggered in the step 208, the processor module 104 causes the camera module 102 to perform the slow motion capture and reflect a plurality of frames captured by the slow motion capture in the video stream. For example, a portion of the video stream reflecting the slow motion capture may be recorded in the storage module 110. During the slow motion capture, the detection result of a moving object as causing the slow motion capture is indicated in the preview stream. A frame rate of the preview stream continues at a normal frame rate, such as 30fps. The user can view the preview stream to view the detection result in real time by using the display module 108. In a step 212, if the slow motion capture has continued for a predetermined period of time, a step 214 is performed; otherwise, the method 200 loops back to the step 210. The predetermined period of time may be, for example, 10 seconds. In the step 214, the slow motion capture is caused to end.

[0041] Figure 3 is a flow chart of the step 208 of performing non-distortion motion detection to automatically trigger the slow motion capture in the slow motion capture method 200 according to an embodiment of the present disclosure. Figures 1 to 3 , the step 208 includes the following steps.

[0042] In a step 302, a current frame set is obtained. The current frame set includes a plurality of frames arranged in series. The current frame set is obtained using the preview stream.

[0043] In a step 304, a motion or a scene change in the current frame set is detected to generate a currently detected motion or scene change. The current frame set includes a plurality of first pixels, which are matched with each other and are changing. The plurality of first pixels may include the motion of the moving object in the current frame set or a scene change in the current frame set. The scene change may be caused by the movement of the camera module 102. In one embodiment, the step 304 generates the currently detected motion or scene change, and the motion or scene change identifier is set in the current frame by a motion detection method such as a pixel difference method. In another embodiment, the currently detected motion or scene change is generated by a motion vector method. The step 304 does not distinguish between the motion and the scene change. The step 304 will be combined Figures 4 to 9 Further described in reference Figures 4 to 9 In the described embodiment, the current frame set has 3 frames. In another embodiment, the current frame set has 2 frames arranged in sequence.

[0044] In a step 306, continuous motion checking is performed using the currently detected motion or scene change. The step 306 distinguishes between motion and scene change. The step 306 refers to Figures 10 to 22 In step 308, if continuous motion is detected, step 210 is performed; otherwise, step 208 loops back to step 302 to obtain a current frame set for the next iteration. Step 308 is based on Fig.10 In step 1014, Fig.14 A step 1414 or Fig.21 A slow motion capture starting flag in step 2116 determines whether the continuous motion is detected.

[0045] Figure 4The flowchart of step 304 of detecting motion or scene change in the current frame set according to an embodiment of the present disclosure is illustrated. Step 304 is performed using the pixel difference method. Step 304 includes the following steps. In a step 402, a first pixel difference image between a pre-previous frame and a current frame in the current frame set is obtained. In a step 404, a second pixel difference image between a previous frame and a current frame in the current frame set is obtained. In a step 406, an AND operation is performed using the first pixel difference image and the second pixel difference image to obtain a first image, the first image including the motion or scene change currently being detected.

[0046] Figure 5 is a diagram illustrating a plurality of images 502 to 512 in step 304 of detecting a motion or scene change in a current frame set according to an embodiment of the present disclosure, wherein step 304 is applied to a moving object example. Figure 4 and Figure 5 , a current frame set includes a pre-previous frame 502, a previous frame 504, and a current frame 506 arranged in sequence. The pre-previous frame 502 includes a plurality of pixels 514 of a moving object at a first position in motion. The pre-previous frame 504 includes a plurality of pixels 516 of the moving object at a second position in motion. The current frame 506 includes a plurality of pixels 518 of the moving object at a third position in motion. The plurality of pixels 514 and a plurality of pixels collocated with the plurality of pixels 514 in the pre-previous frame 504 and the current frame 506, the plurality of pixels 516 and a plurality of pixels collocated with the plurality of pixels 516 in the pre-previous frame 502 and the current frame 506, and the plurality of pixels 518 and a plurality of pixels collocated with the plurality of pixels 518 in the pre-previous frame 502 and the pre-previous frame 504 are changing and include motion of the moving object in the current frame set.

[0047] In the step 402, a first pixel difference image 508 between the previous frame 502 and the current frame 506 in the current frame set is obtained. The first pixel difference image 508 includes a plurality of pixels, each pixel having a pixel value, the pixel value being equal to an absolute value of a difference between a pixel value of a corresponding pixel in the previous frame 502 and a pixel value of a pixel in the current frame 506 that is paired with the corresponding pixel. In one embodiment, all pixel values ​​throughout the present disclosure are brightness values ​​(e.g., luma or luminance). In another embodiment, all pixel values ​​throughout the present disclosure are color values. Therefore, a plurality of pixels 520 in the first pixel difference image 508 display a plurality of pixel differences caused by the motion of the moving object in the previous frame 502 and the current frame 506.

[0048] In the step 404, a second pixel difference image 510 between the previous frame 504 and the current frame 506 in the current frame set is obtained. The second pixel difference image 510 includes a plurality of pixels, each pixel having a pixel value, and the pixel value is equal to an absolute value of a difference between a pixel value of a corresponding pixel in the previous frame 504 and a pixel value of a pixel in the current frame 506 that is paired with the corresponding pixel. Therefore, a plurality of pixels 522 in the second pixel difference image 510 show a plurality of pixel differences caused by the motion of the moving object in the previous frame 504 and the current frame 506.

[0049] In the step 406, an AND operation is performed using the first pixel difference image 508 and the second pixel difference image 510 to obtain a first image 512, wherein the first image 512 includes the currently detected motion or scene change. The AND operation finds an intersection 524 of the plurality of pixels 520 in the first pixel difference image 508 and the plurality of pixels 522 in the second pixel difference image 510 showing pixel differences. The intersection 524 of the plurality of pixels 520 in the first pixel difference image 508 and the plurality of pixels 522 in the second pixel difference image 510 includes the currently detected motion or scene change 524.

[0050] Figure 6 is a diagram illustrating images 602 to 612 in step 304 of detecting motion or scene change in a current frame set according to an embodiment of the present disclosure, wherein step 304 is applied to a tremor example. Figure 4 and Figure 6, a current frame set includes an earlier frame 602, a previous frame 604, and a current frame 606 arranged in sequence. The earlier frame 602 includes a plurality of pixels of a static scene under an illumination under a first light intensity condition. The previous frame 604 includes a plurality of pixels of the static scene under the illumination under a second light intensity condition. The current frame 606 includes a plurality of pixels of the static scene under the illumination under the first light intensity condition. Due to flickering, the first light intensity condition is different from the second light intensity condition.

[0051] In the step 402, a first pixel difference image 608 between the previous frame 602 and a current frame 606 in the current frame set is obtained. The first pixel difference image 608 includes a plurality of pixels, each pixel having a pixel value, the pixel value being equal to an absolute value of a difference between a pixel value of a corresponding pixel in the previous frame 602 and a pixel value of a pixel in the current frame 606 that is paired with the corresponding pixel. Since the plurality of scenes in the previous frame 602 and the current frame 606 are stationary and under the same light intensity conditions, no pixel in the first pixel difference image 608 shows a pixel difference caused by motion or scene change in the previous frame 604 and the current frame 606.

[0052] In the step 404, a second pixel difference image 610 between the previous frame 604 and the current frame 606 in the current frame set is obtained. The second pixel difference image 610 includes a plurality of pixels, each pixel having a pixel value, the pixel value being equal to an absolute value of a difference between a pixel value of a corresponding pixel in the previous frame 604 and a pixel value of a pixel in the current frame 606 that is paired with the corresponding pixel. Since the plurality of scenes in the previous frame 602 and the current frame 606 are stationary and under different light intensity conditions, all pixels in the second pixel difference image 610 show a plurality of pixel differences caused by motion or scene changes in the previous frame 604 and the current frame 606.

[0053] In the step 406, an AND operation is performed using the first pixel difference image 608 and the second pixel difference image 610 to obtain a first image 612, the first image 612 including the currently detected motion or scene change. The AND operation finds the intersection of the plurality of pixels in the first pixel difference image 608 and the plurality of pixels showing a plurality of pixel differences in the second pixel difference image 610. Since no pixel in the first pixel difference image 608 shows a pixel difference, the intersection is empty. Therefore, the plurality of pixels showing the plurality of pixel differences due to tremor in the second pixel difference image 610 will not falsely trigger slow motion capture.

[0054] Figure 7 is a flow chart illustrating the step 406 of performing an AND operation using the first pixel difference image and the second pixel difference image according to an embodiment of the present disclosure. Figure 7 In a step 702, the AND operation is performed on the first pixel difference image and the second pixel difference image to obtain an AND image. In the step 704, the AND image is binarized using a shrinkage threshold to obtain a binary image, wherein the binary image is the first image. For each pixel in the AND image, if a pixel value of each pixel is greater than the shrinkage threshold, a corresponding pixel in the binary image has a pixel value of 255, and if a pixel value of each pixel is less than or equal to the shrinkage threshold, the corresponding pixel in the binary image has a pixel value of 0. In another embodiment, the first pixel difference image and the second pixel difference image are first binarized to generate a plurality of binary images, and then the AND operation is performed on the plurality of binary images.

[0055] Figure 8 is a flow chart illustrating a step 802 of performing an erosion operation after the step 406 of performing the AND operation according to an embodiment of the present disclosure. Figure 8 As shown, the step 406 also includes the step 802. In the step 802, an erosion operation is performed on the first image to obtain an eroded image, wherein the eroded image indicates the currently detected motion or scene change.

[0056] Fig. 9 is a diagram illustrating an image 902 in step 802 of performing an erosion operation according to an embodiment of the present disclosure. Figure 5, Figure 8 and Fig. 9 In the step 802, an erosion operation is performed on the first image 512 to obtain an eroded image 902, wherein the eroded image 902 indicates the currently detected motion or scene change 904. In one embodiment, the erosion operation is performed with a cross-structure kernel 906. In one embodiment, the cross-structure kernel 906 has a size of 3x3. In another embodiment, the cross-structure kernel has a size of 5x5, and a central row has a plurality of pixel values ​​of 1. In yet another embodiment, the cross-structure kernel has a size of 5x5, and the central 3 rows have a plurality of pixel values ​​of 1. The cross-structure kernel 906 is used by applying the erosion operation to an area of ​​an image having the same size as the cross-structure kernel 906, wherein in the area, if all pixels corresponding to a plurality of pixels of the cross-structure kernel 906 having a pixel value of 1 have a plurality of pixel values ​​of 255, a pixel corresponding to a pixel 908 of the cross-structure kernel 906 is retained. In the region, if any pixel among the plurality of pixels corresponding to the plurality of pixels having a pixel value of 1 of the cross structure kernel 906 has a pixel value less than 255, a pixel corresponding to the pixel 908 of the cross structure kernel 906 is not retained. A portion of the detected motion or scene change 904 is magnified in a view 910. In the view 910, each thin dashed box is a pixel. A thick dashed line is a portion of a boundary of the intersection 524 in the first image 512. A thick solid line is a portion of a boundary of the detected motion or scene change 902. By applying the erosion operation on each of the plurality of regions of the first image 512 having a corresponding center that moves one by one from a pixel 912 to a pixel 914, a boundary 916 of a portion of the detected motion or scene change 902 moves from the thick dashed line to the thick solid line using the cross structure kernel 906. The erosion operation further finds a plurality of pixels that have changed most significantly in the current frame set.

[0057] Fig.10 is a flow chart illustrating the step 306 of performing continuous motion check using a first size difference between a current bounding box and a previous bounding box, wherein the current bounding box defines the currently detected motion or scene change, according to an embodiment of the present disclosure. Figure 3 and Fig.10, step 306 includes the following steps. In a step 1002, a current bounding box is obtained, the current bounding box bounding the currently detected motion or scene change. In a step 1004, a first size difference between the current bounding box and a previous bounding box is obtained, the previous bounding box bounding the previously detected motion or scene change. In a step 1006, the previous frame set is updated to the current frame set. In a step 1008, if the first size difference is greater than a first predetermined size difference threshold, a step 1010 is performed; otherwise, a step 1012 is performed. In the step 1010, a satisfying time variable is incremented. In step 1012, if the satisfaction times variable is greater than or equal to a first predetermined plurality of times, then step 1014 is performed; otherwise, step 308 is performed. In step 1014, a slow motion capture starting flag is asserted. After step 1014 is performed, step 308 is performed.

[0058] Fig.11 is a diagram illustrating multiple images 1102 and 1104 in step 306 of performing continuous motion check using a first size difference between a current bounding box 1108 and a previously bounding box 1106 according to an embodiment of the present disclosure, wherein the motion or scene change in the current frame set is determined to belong to continuous motion. Fig.11 Follow along with illustrated instructions Figure 5 An example of the mobile object example in FIG. Figure 3 , Figure 5 , Fig. 9 , Fig.10 and Fig.11In step 1002, a current bounding box 1108 is obtained, the current bounding box 1108 defining the currently detected motion or scene change 904. An upper boundary of the current bounding box 1108 is defined by the uppermost pixel of the currently detected motion or scene change 904, a right boundary of the current bounding box 1108 is defined by the rightmost pixel of the currently detected motion or scene change 904, a lower boundary of the current bounding box 1108 is defined by the lowermost pixel of the currently detected motion or scene change 904, and a left boundary of the current bounding box 1108 is defined by the leftmost pixel of the currently detected motion or scene change 904. In one embodiment, the current bounding box 1108 has a format of an upper left coordinate defined by the upper boundary and the left boundary and a lower right coordinate defined by the lower boundary and the right boundary.

[0059] In step 1004, a first size difference between the current bounding box 1108 and a previous bounding box 1106 is obtained, wherein the previous bounding box 1106 defines a previously detected motion or scene change 1110. The previously detected motion or scene change 1110 is detected in step 208 (in Figure 3 The previous bounding box 1106 is a current bounding box that defines the currently detected motion or scene change in the previous iteration. The current frame set in the current iteration is after the current frame set in the previous iteration. That is, if the multiple frames in the current frame set in the current iteration are at times t-2, t-1, and t, then the multiple frames in the current frame set in the previous iteration are at times t-5, t-4, and t-3. The previous bounding box 1106 is a current bounding box that defines the currently detected motion or scene change in the previous iteration. In one embodiment, step 1004 includes obtaining a first side length difference between a side 1112 of the previous bounding box 1106 and a side 1114 of the current bounding box 1108 that is parallel to the side 1112 of the previous bounding box 1106; and obtaining a second side length difference between a side 1116 of the previous bounding box 1106 and a side 1118 of the current bounding box 1108 that is parallel to the side 1116 of the previous bounding box 1106, wherein the side 1112 is perpendicular to the side 1116. The first size difference includes the first side length difference and the second side length difference.

[0060] In step 1006, the previous frame set is updated to the current frame set. The step 1006 includes updating a previous bounding box to the current bounding box 1108. In this way, the step 1004 can be performed in the next iteration.

[0061] In step 1008, if the first size difference is greater than a first predetermined size difference threshold, then step 1010 is performed; otherwise, step 1010 is performed. Otherwise, step 1012 is performed. In one embodiment, the first predetermined size difference threshold includes a first predetermined side length threshold and a second predetermined side length threshold. In one embodiment, step 1008 includes determining whether the first side length difference is greater than the first predetermined side length threshold and whether the second side length difference is greater than the second predetermined side length threshold. If the first side length difference is greater than the first predetermined side length threshold and the second side length difference is greater than the second predetermined side length threshold, then step 1010 is performed; otherwise, step 1012 is performed. In one embodiment, the first predetermined side length threshold is equal to one tenth of a width of the frame 502 in the current frame set. The second predetermined side length threshold is equal to one tenth of a height of the frame 502 in the current frame set.

[0062] In the above embodiment, the first side length difference and the second side length difference are multiple absolute differences, so the first predetermined side length threshold and the second predetermined side length threshold are in terms of multiple real numbers. In another embodiment, the first side length difference and the second side length difference are multiple relative differences in terms of multiple ratios or multiple percentages. In the above embodiment, there are two predetermined side length thresholds. In another embodiment, the first side length difference and the second side length difference each have only one predetermined side length threshold. In the above embodiment, both the first side length difference and the second side length difference need to be correspondingly greater than the first predetermined side length threshold and the second predetermined side length threshold so that the first size difference is greater than the first predetermined size difference threshold. In another embodiment, at least one of the first side length difference and the second side length difference needs to be correspondingly greater than the first predetermined side length threshold and the second predetermined side length threshold so that the first size difference is greater than the first predetermined size difference threshold. In the above embodiment, the first size difference includes the first side length difference and the second side length difference. In another embodiment, the first size difference includes an area difference between the previous bounding box 1106 and the current bounding box 1108 .

[0063] In step 1008, in one embodiment, the first size difference is an absolute value. In another embodiment, the first size difference is a non-absolute value obtained by subtracting a size of the previous bounding box 1106 from a size of the current bounding box 1108. In yet another embodiment, the first size difference is an absolute value, step 306 further includes subtracting a size of the previous bounding box 1106 from a size of the current bounding box 1108 to obtain a second size difference, and if the second size difference is greater than zero, performing step 1010. The second size difference is a non-absolute value.

[0064] exist Fig.11 In an example, due to the motion of the moving object in the previous frame set and the current frame set, the first size difference is greater than the first predetermined size difference threshold, wherein the first size difference is the absolute value or the non-absolute value. In an embodiment including the first size difference and the second size difference, the second size difference is greater than zero. Therefore, step 1010 is performed. In step 1010, a satisfaction count variable is incremented. The satisfaction count variable tracks each time at least one condition in step 1008 is satisfied.

[0065] In the above embodiment, the satisfaction number variable is traced by incrementing. In another embodiment, the satisfaction number variable is traced by decrementing, multiplying or dividing.

[0066] In step 1012, if the variable of the number of times of satisfying the condition is greater than or equal to a first predetermined number of times, then step 1014 is performed; otherwise, step 308 is performed. In step 1014, the slow motion capture start flag is declared. The reason for the number of the first predetermined number of times in the following embodiments will be combined with Fig.13 for explanation. In one embodiment, step 1010 is performed only when the condition in step 1008 is satisfied. Further, in the embodiment in which the first size difference is the absolute value, the first predetermined plurality of times is at least three times. In a first example, due to the movement of the moving object from a first frame set to a fourth frame set arranged in sequence, when the previous frame set and the current frame set are the first frame set and the second frame set, when the previous frame set and the current frame set are the second frame set and the third frame set, when the previous frame set and the current frame set are the third frame set and the fourth frame set, at least one condition in step 1008 is satisfied. The first example includes Fig.11 In the example of step 1008, each of the other times satisfies at least one condition in step 1008. Fig.11. Thus, each time in a first plurality of times, the motion or scene change in the previous frame set and the motion or scene change in the current frame set are determined to belong to continuous motion. The slow motion capture start flag is asserted. The first plurality of times starts with the satisfaction number variable being equal to zero and ends when the satisfaction number variable is equal to the first predetermined plurality of times. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is three times. In another example, occasionally, the motion of a moving object may, for example, reduce speed, resulting in at least one condition in step 1008 not being satisfied. In this case, the satisfaction number variable remains the same, the first plurality of times is more than three times, and each time in the first plurality of times, the motion or scene change in the previous frame set and the motion or scene change in the current frame set can still be determined to belong to continuous motion.

[0067] In the embodiment where the first size difference is the non-absolute value, the first predetermined majority of times is at least two. Compared with the at least one condition in step 1008 being satisfied three times for the first frame set and the second frame set, the second frame set and the third frame set, and the third frame set and the fourth frame set in the first example, the at least one condition in step 1008 is satisfied twice for a first frame set and a second frame set, the second frame set and a third frame set in a second example. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to belong to continuous motion each time in a first majority of times. In one example, the satisfaction count variable is equal to zero before the first frame set and the second frame set are processed. The first majority of times is two. In another example, occasionally, the motion of a moving object may, for example, reduce speed, resulting in at least one condition in step 1008 not being satisfied. In this case, the satisfaction count variable remains the same, the first majority of times is more than two, and the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set for each of the first majority of times can still be determined to belong to continuous motion.

[0068] In the embodiment including the first size difference as the absolute value and the second size difference as the non-absolute value, the first predetermined plurality of times is at least two. Compared with the at least one condition in step 1008 being satisfied three times for the first frame set and the second frame set, the second frame set and the third frame set, and the third frame set and the fourth frame set in the first example, the at least one condition in step 1008 is satisfied twice for a first frame set and a second frame set, the second frame set and a third frame set in a third example. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to belong to continuous motion each time in a first plurality of times. In one example, the satisfaction count variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is two. In another example, occasionally, the motion of a moving object may, for example, reduce speed, causing at least one condition in step 1008 to be not satisfied. In this case, the satisfaction count variable remains the same, the first majority of times is more than two, and the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set for each of the first majority of times can still be determined to belong to continuous motion.

[0069] Figure 12 to Figure 13 1302, 1304, 1206, 1208, 1310 and 1312 are diagrams illustrating the step 306 of performing a continuous motion check using a first size difference between a current bounding box and a previous bounding box according to an embodiment of the present disclosure, wherein the motion or the scene change in the current frame set is determined to not belong to continuous motion. Fig.13 An example of the camera module 102 transitioning from static to moving, the camera module 102 transitioning from moving to moving, and the camera module 102 transitioning from moving to static is illustrated. Fig.12 Illustrated in Fig.13 The camera module 102 is moving from one movement to another, for Fig.12 The examples in Fig.11 Compare this to the example in Fig.11 Compared to the example in Fig.12 The example of has the following differences. In the step 1002, a current bounding box 1212 is obtained, which defines the current detected motion or scene change 1216. The current detected motion or scene change 1216 occupies almost the entire image 1208, because the camera motion is a global motion that causes a scene change. Fig.11In the example of , the motion of the moving object is a local motion. Because the current bounding box 1212 limits the currently detected motion or scene change 1216, the current bounding box 1212 is close to a boundary of the image 1208. In the step 1004, a first size difference between the current bounding box 1212 and a previous bounding box 1210 is obtained, and the previous bounding box 1210 defines a previously detected motion or scene change 1214. Due to the camera motion, the previously detected motion or scene change 1214 almost occupies the entire image 1206. The previous bounding box 1210 is also close to a boundary of the image 1206. In the step 1008, because the current bounding box 1212 and the previous bounding box 1210 are both close to the corresponding images 1208 and 1206, the first size difference is not greater than the first predetermined size difference threshold. Therefore, in Fig.11 The motion in the previous frame set and the current frame set in the example can be distinguished from the scene change in the previous frame set and the current frame set.

[0070] exist Fig.13 In a first example, the first size difference in step 1008 is the absolute value. Fig.11 Compared to the example in Fig.13The first example in has the following differences. Since the camera module 102 is switched from static to motion, multiple scenes in a first frame set are static, while multiple scenes in a second frame set have a scene change. Since the camera module 102 is switched from motion to motion, multiple scenes in the second frame set have a scene change, and scenes in a third frame set have a scene change. Since the camera module 102 is switched from motion to static, multiple scenes in the third frame set have a scene change, and multiple scenes in the fourth frame set have a scene change. The first frame set to the fourth frame set are arranged in sequence. When the previous frame set and the current frame set are the first frame set and the second frame set, a previous bounding box is empty and a current bounding box 1314 is close to a boundary of the image 1304, resulting in a first size difference greater than a first predetermined size difference threshold. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous bounding box 1210 is close to the boundary of the image 1206, and the current bounding box 1212 is close to the boundary of the image 1208, so that a first size difference is less than or equal to the first predetermined size difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, a previous bounding box 1316 is close to the boundary of the image 1310, and a current bounding box is empty, so that the first size difference is greater than the first predetermined size difference threshold. Therefore, at least one condition in step 1008 is satisfied twice. In order to determine the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set as not belonging to continuous motion each time in a first plurality of times, the first predetermined plurality of times in step 1012 needs to be at least three times. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to be not continuous motion each time in the first majority of times. The step 306 goes to the step 308 without declaring the slow motion capture start flag. In one example, the satisfaction count variable is equal to zero before the first frame set and the second frame set are processed. The first majority of times is three times. In another example, when the camera module 102 has more frames from motion to motion, the satisfaction count variable remains the same. The first majority of times is more than three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first majority of times can still be determined to be not continuous motion.

[0071] exist Fig.13 In a second example, the first size difference is the non-absolute value in step 1008. Fig.13 Compared to the first example in Fig.13 The second example in has the following differences. When the previous frame set and the current frame set are the first frame set and the second frame set, a previous bounding box is empty and the current bounding box 1314 is close to the boundary of the image 1304, resulting in a first size difference greater than a first predetermined size difference threshold. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous bounding box 1210 is close to the boundary of the image 1206, and the current bounding box 1212 is close to the boundary of the image 1208, resulting in a first size difference less than or equal to the first predetermined size difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, the previous bounding box 1316 is close to the boundary of the image 1310 and the current bounding box is empty, resulting in a first size difference less than or equal to the first predetermined size difference threshold. Therefore, at least one condition in step 1008 is satisfied once. In order to determine that the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first predetermined majority of times are not continuous motion, the first predetermined majority of times needs to be at least two times in the step 1012. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first majority of times are determined to be not continuous motion. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first majority of times is three times. In another example, when the camera module 102 has more frames from motion to motion, the satisfaction number variable remains the same. The first majority of times is more than three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first majority of times can still be determined to be not continuous motion.

[0072] exist Fig.13 In a third example, the first size difference and the second size difference in step 1008 are corresponding to the absolute value and the non-absolute value. Fig.13 Compared to the first example in Fig.13The third example in has the following differences. When the previous frame set and the current frame set are the first frame set and the second frame set, the previous bounding box is empty and the current bounding box 1314 is close to the border of the image 1304, so that a first size difference is greater than a first predetermined size difference threshold and a second size difference is greater than zero. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous bounding box 1210 is close to the border of the image 1206, and the current bounding box 1212 is close to the border of the image 1208, so that the first size difference is less than or equal to the first predetermined size difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, the previous bounding box 1316 is close to the border of the image 1310 and the current bounding box is empty, so that the first size difference is greater than the first predetermined size difference threshold and a second size difference is less than or equal to zero. Therefore, at least one condition in step 1008 is satisfied once. In order to determine that the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first predetermined majority of times are not continuous motion, the first predetermined majority of times needs to be at least two times in the step 1012. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first majority of times are determined to be not continuous motion. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first majority of times is three times. In another example, when the camera module 102 has more frames from motion to motion, the satisfaction number variable remains the same. The first majority of times is more than three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first majority of times can still be determined to be not continuous motion.

[0073] Fig.14 is a flow chart illustrating step 306 of performing continuous motion check using a first feature value difference between a current feature value and a previous feature value according to an embodiment of the present disclosure, wherein the current feature value represents all pixels affected by the currently detected motion or scene change. Figure 3 and 14, the step 306 includes the following steps. In step 1402, a current feature value of all pixels affected by the currently detected motion or scene change is obtained. In step 1404, a first feature value difference between the current feature value and a previous feature value of all pixels affected by a previously detected motion or scene change is obtained. In step 1406, the previous frame set is updated to the current frame set. In step 1408, if the first feature value difference is greater than a first predetermined feature value threshold, then step 1410 is performed; otherwise, step 1412 is performed. In step 1410, a satisfaction count variable is incremented. In step 1412, if the satisfaction count variable is greater than or equal to a first predetermined majority of times, then step 1414 is performed; otherwise, step 308 is performed. In step 1414, a slow motion capture start flag is declared. After step 1414 is performed, step 308 is performed.

[0074] Fig.15 3 is a diagram illustrating multiple images 1502 and 1504 in step 306 of performing continuous motion check using a first eigenvalue difference between a current eigenvalue and a previous eigenvalue according to an embodiment of the present disclosure, wherein the motion or the scene change in the current frame set is determined to be continuous motion. Fig.15 Follow along with the illustrated instructions Figure 5 An example of the mobile object example in FIG. Figure 3 , Figure 5 , Fig. 9 , Fig.14 and Fig.15 , in the step 1402, a current feature value of all pixels affected by the currently detected motion or scene change 904 is obtained. In one embodiment, the current feature value is the number of pixels of all pixels affected by the currently detected motion or scene change. In one embodiment, the current feature value is the number of pixels of all pixels 1510 of the currently detected motion or scene change 904. The current feature value is a feature of the currently detected motion or scene change 904, indicating an exact number of pixels of the currently detected motion or scene change 904, and the currently detected motion or scene change 904 is filled with a pattern and the same pixel as in Fig. 9 In another embodiment, the current feature value is a pixel percentage of all pixels 1510 of the currently detected motion or scene change 904 in a total number of pixels of the image 1504 .

[0075] In step 1404, a first feature value difference 1508 is obtained between the current feature value and a previous feature value of all pixels affected by a previously detected motion or scene change. The previously detected motion or scene change 1508 is performed (in Figure 3 The current frame set in the current iteration is after the current frame set in the previous iteration. That is, if the multiple frames in the current frame set in the current iteration are at times t-2, t-1, and t, the multiple frames in the current frame set in the previous iteration are at times t-5, t-4, and t-3. The previous feature value is a current feature value of all pixels affected by the currently detected motion or scene change in the previous iteration.

[0076] In step 1406, the previous frame set is updated to the current frame set. Step 1406 includes updating a previous feature value to the current feature value. In this way, step 1404 can be performed in the next iteration.

[0077] In step 1408, if the first feature value difference is greater than a first predetermined feature value threshold, then proceed to step 1410; otherwise, proceed to step 1412. In one embodiment, the first predetermined feature value threshold is equal to one eighth of a width of the frame 502 of the current frame set multiplied by a height of the frame 502 of the current frame set.

[0078] In the above embodiment, the first eigenvalue difference is an absolute difference, so the first eigenvalue difference is a real number. In another embodiment, the first eigenvalue difference is a relative difference in terms of a ratio or a percentage.

[0079] In step 1408, in one embodiment, the first eigenvalue difference is an absolute value. In another embodiment, the first eigenvalue difference is a non-absolute value obtained by subtracting a previous eigenvalue from a current eigenvalue. In yet another embodiment, the first eigenvalue difference is an absolute value, and step 306 further includes subtracting a previous eigenvalue from a current eigenvalue to obtain a second eigenvalue difference; if the second eigenvalue difference is greater than zero, step 1410 is performed. The second eigenvalue difference is a non-absolute value.

[0080] exist Fig.15In an example, due to the motion of the moving object in the previous frame set and the current frame set, the first eigenvalue difference is greater than the first predetermined eigenvalue difference threshold, wherein the first eigenvalue difference is the absolute value or the non-absolute value. In an embodiment including the first eigenvalue difference and the second eigenvalue difference, the second eigenvalue difference is greater than zero. Therefore, step 1410 is performed. In step 1410, a satisfaction count variable is incremented. The satisfaction count variable tracks each time at least one condition in step 1408 is satisfied.

[0081] In the above embodiment, the satisfaction number variable is traced by incrementing. In another embodiment, the satisfaction number variable is traced by decrementing, multiplying or dividing.

[0082] In step 1412, if the variable of the number of times of satisfying the condition is greater than or equal to a first predetermined number of times, then step 1414 is performed; otherwise, step 308 is performed. In step 1414, the slow motion capture start flag is declared. The reason for the number of the first predetermined number of times in the following embodiments will be combined with Fig.17 for explanation. In one embodiment, step 1410 is performed only based on satisfying the condition in step 1408. Further, in an embodiment where the first feature value difference is the absolute value, the first predetermined plurality of times is at least three times. In a first example, due to the movement of the moving object from a first frame set to a fourth frame set arranged in sequence, when the previous frame set and the current frame set are the first frame set and the second frame set, when the previous frame set and the current frame set are the second frame set and the third frame set, and when the previous frame set and the current frame set are the third frame set and the fourth frame set, at least one condition in step 1408 is satisfied. The first example includes Fig.15 In the example of FIG. 14, each of the other times when at least one condition in step 1408 is satisfied is the same as in Fig.15. Thus, each time in a first plurality of times, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to belong to continuous motion. The slow motion capture start flag is asserted. The first plurality of times starts with the satisfaction number variable being equal to zero and ends when the satisfaction number variable is equal to the first predetermined plurality of times. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is three times. In another example, occasionally, the motion of a moving object may, for example, reduce speed, causing at least one condition in step 1408 to be not satisfied. In this case, the satisfaction number variable remains the same, the first plurality of times is more than three times, and each time in the first plurality of times, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set can still be determined to belong to continuous motion.

[0083] In the embodiment where the first feature value difference is the non-absolute value, the first predetermined majority of times is at least two. Compared with the at least one condition in step 1408 being satisfied three times for the first frame set and the second frame set, the second frame set and the third frame set, and the third frame set and the fourth frame set in the first example, the at least one condition in step 1408 is satisfied twice for a first frame set and a second frame set, the second frame set and a third frame set in a second example. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to belong to continuous motion each time in a first majority of times. In one example, the satisfaction count variable is equal to zero before the first frame set and the second frame set are processed. The first majority of times is two. In another example, occasionally, the motion of a moving object may, for example, reduce speed, causing at least one condition in step 1408 to be unsatisfied. In this case, the satisfaction count variable remains the same, the first majority of times is more than two, and the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set for each of the first majority of times can still be determined to belong to continuous motion.

[0084] In an embodiment including the first feature value difference as the absolute value and the second feature value difference as the non-absolute value, the first predetermined plurality of times is at least two times. Compared with the at least one condition in step 1408 being satisfied three times for the first frame set and the second frame set, the second frame set and the third frame set, and the third frame set and the fourth frame set in the first example, the at least one condition in step 1408 is satisfied twice for a first frame set and a second frame set, the second frame set and a third frame set in a third example. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to belong to continuous motion each time in a first plurality of times. In one example, the satisfaction count variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is two times. In another example, occasionally, the motion of a moving object may, for example, reduce speed, causing at least one condition in step 1408 to be unsatisfied. In this case, the satisfaction count variable remains the same, the first majority of times is greater than two, and the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set in each of the first majority of times can still be determined to belong to continuous motion.

[0085] Figure 16 to Figure 17 The diagrams illustrate multiple images 1702, 1704, 1606, 1608, 1710 and 1712 in step 306 of performing a continuous motion check using a first eigenvalue difference between the current eigenvalue and the previous eigenvalue according to an embodiment of the present disclosure, wherein the motion or the scene change in the current frame set is determined to be not a continuous motion. Fig.17 An example of the camera module 102 transitioning from stationary to moving, the camera module 102 transitioning from moving to moving, and the camera module 102 transitioning from moving to stationary is illustrated. Fig.16 Illustrated in Fig.17 The camera module 102 is moving from one movement to another, for Fig.16 The examples in Fig.15 Compare this to the example in Fig.15 Compared to the example in Fig.16 The example of has the following differences. In the step 1402, a current feature value of all pixels affected by a currently detected motion or scene change 1616 is obtained. The currently detected motion or scene change 1616 occupies almost the entire image 1608, because the camera motion is a global motion that causes a scene change. Fig.15The motion of the moving object in the example in is a local motion. Because the current eigenvalue is the number of pixels of all pixels 1612 affected by the currently detected motion or scene change 1616, the current eigenvalue is close to the total number of pixels of the image 1608. In the step 1404, a first eigenvalue difference between the current eigenvalue and the previous eigenvalue of all pixels 1610 affected by a previously detected motion or scene change 1614 is obtained. Due to the camera motion, the previously detected motion or scene change 1614 almost occupies the entire image 1606. The previous eigenvalue is also close to the total number of pixels of the image 1606. In the step 1408, since the current eigenvalue and the previous eigenvalue are both close to the total number of pixels of the corresponding images 1608 and 1606, the first eigenvalue difference is not greater than the first predetermined eigenvalue difference threshold. Therefore, in Fig.15 The motion in the previous frame set and the current frame set in the example can be distinguished from the scene changes in the previous frame set and the current frame set.

[0086] exist Fig.17 In a first example, the first eigenvalue difference in step 1408 is the absolute value. Fig.15 Compared to the example in Fig.17The first example in has the following differences. Since the camera module 102 is switched from still to moving, a plurality of scenes in a first frame set are still, and a plurality of scenes in the second frame set have a scene change. Since the camera module 102 is switched from moving to moving, a plurality of scenes in the second frame set have a scene change, and a plurality of scenes in the third frame set have a scene change. Since the camera module 102 is switched from moving to still, a plurality of scenes in the third frame set have a scene change, and a plurality of scenes in the fourth frame set have a scene change. The first frame set to the fourth frame set are arranged in sequence. When the previous frame set and the current frame set are the first frame set and the second frame set, a previous feature value is zero and the current feature value is close to the total number of pixels of the image 1704, resulting in a first feature value difference greater than a first predetermined feature value difference threshold. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous feature value is close to the total number of pixels of the image 1606, and the current feature value is close to the total number of pixels of the image 1608, so that a first feature value difference is less than or equal to the first predetermined feature value difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, a previous feature value is close to the total number of pixels of the image 1710 and a current feature value is zero, so that a first feature value difference is greater than the first predetermined feature value difference threshold. Therefore, at least one condition in step 1408 is satisfied twice. In order to determine the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first plurality of times as not belonging to continuous motion, the first predetermined plurality of times needs to be at least three times in step 1412. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first plurality of times are determined as not belonging to continuous motion. Without declaring the slow motion capture start flag, the step 306 goes to the step 308. In one example, before the first frame set and the second frame set are processed, the satisfaction times variable is equal to zero. The first majority of times is three times. In another example, when the camera module 102 moves from motion to motion, the satisfaction times variable remains the same. The first majority of times is more than three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set can still be determined as not belonging to continuous motion in each of the first majority of times.

[0087] exist Fig.17 In a second example, the first eigenvalue difference in step 1408 is the non-absolute value. Fig.17Compared to the first example in Fig.17 The second example in has the following differences. When the previous frame set and the current frame set are the first frame set and the second frame set, a previous feature value is zero and the current feature value is close to the total number of pixels of the image 1704, resulting in a first feature value difference greater than a first predetermined feature value difference threshold. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous feature value is close to the total number of pixels of the image 1606, and the current feature value is close to the total number of pixels of the image 1608, resulting in a first feature value difference less than or equal to the first predetermined feature value difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, the previous feature value is close to the total number of pixels of the image 1710 and the current feature value is zero, resulting in a first feature value difference less than or equal to the first predetermined feature value difference threshold. Therefore, at least one condition in step 1408 is satisfied once. In order to determine the motion or scene change in the previous frame set and the motion or scene change in the current frame set as not belonging to continuous motion each time in a first plurality of times, the first predetermined plurality of times in step 1412 needs to be at least two. Therefore, the motion or scene change in the previous frame set and the motion or scene change in the current frame set are determined as not belonging to continuous motion each time in the first plurality of times. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is three times. In another example, when the camera module 102 has more frames from motion to motion, the satisfaction number variable remains the same. The first plurality of times is more than three times. The motion or scene change in the previous frame set and the motion or scene change in the current frame set can still be determined as not belonging to continuous motion each time in the first plurality of times.

[0088] exist Fig.17 In a third example, the first eigenvalue difference and the second eigenvalue difference in step 1408 correspond to the absolute value and the non-absolute value. Fig.17 Compared to the first example in Fig.17The third example in has the following differences. When the previous frame set and the current frame set are the first frame set and the second frame set, a previous feature value is zero and the current feature value is close to the total number of pixels of the image 1704, resulting in a first feature value difference greater than a first predetermined feature value difference threshold, and a second feature value difference greater than zero. When the previous frame set and the current frame set are the second frame set and the third frame set, the previous feature value is close to the total number of pixels of the image 1606, and the current feature value is close to the total number of pixels of the image 1608, resulting in a first feature value difference less than or equal to the first predetermined feature value difference threshold. When the previous frame set and the current frame set are the third frame set and the fourth frame set, the previous feature value is close to the total number of pixels of the image 1710 and the current feature value is zero, resulting in a first feature value difference greater than the first predetermined feature value difference threshold and a second feature value difference less than or equal to zero. Therefore, at least one condition in step 1408 is satisfied once. In order to determine that the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first plurality of times are not continuous motion, the first predetermined plurality of times in step 1412 needs to be at least two. Therefore, the motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in a first plurality of times are determined to be not continuous motion. In one example, the satisfaction number variable is equal to zero before the first frame set and the second frame set are processed. The first plurality of times is three times. In another example, when the camera module 102 has more frames from motion to motion, the satisfaction number variable remains the same. The first plurality of times is more than three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set each time in the first plurality of times can still be determined to be not continuous motion.

[0089] Fig.18 is a flow chart illustrating step 306 of performing continuous motion check using a first feature value difference between a current feature value and a previous feature value according to another embodiment of the present disclosure. Fig.14 Compared with the embodiment in Fig.18The embodiment in has several replaced steps 1408, 1410, 1802 and 1804 between the step 1406 and the step 1412. In the step 1408, if the first eigenvalue difference is greater than a first predetermined eigenvalue threshold, the step 1410 is performed; otherwise, the step 1802 is performed. In the step 1802, if the first eigenvalue difference is less than or equal to zero, a step 1804 is performed; otherwise, the step 1412 is performed. In the step 1804, if the satisfaction variable is greater than zero, the satisfaction times variable is decremented.

[0090] exist Fig.18 In an embodiment, the first eigenvalue difference is a non-absolute value. In an embodiment, if at least one second number in a first plurality of times satisfies a condition in step 1408, and if at least one third number in the first plurality of times satisfies a condition in step 1802, then the at least one second number is greater than the at least one third number by at least a first predetermined plurality of times. The first predetermined plurality of times is two. Compared to the reference Fig.15 In the second example described, when a condition in step 1408 is not met, the number of times the condition is met variable remains the same. Fig.18 In one example, based on whether a condition in step 1802 is satisfied, the satisfaction count variable may be decremented or remain the same. Thus, if the at least one third count is one due to the motion of the moving object decreasing in speed, the first plurality of times is four times, and the at least one second count is three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set may still be determined to belong to continuous motion in each of the first plurality of times. Compared to the reference Fig.17 In the second example described, when the condition in step 1408 is not met, the number of times the condition is met variable remains the same. Fig.18In one example, based on whether a condition in step 1802 is satisfied, the satisfaction times variable may be decremented or maintained the same. In this way, if the at least one third number is two due to the camera module 102 switching from motion to stillness and the camera module 102 switching from motion to stillness, the first majority number is three times, and the at least one second number is one time. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to not belong to continuous motion for each of the first majority times. If the camera module 102 has more frames from motion to motion, the at least one third number is three times, the first majority number is four times, and the at least one second number is one time. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set for each of the first majority times can still be determined to not belong to continuous motion.

[0091] Fig.19 is a flow chart illustrating step 306 of performing continuous motion check using a first feature value difference between a current feature value and a previous feature value according to another embodiment of the present disclosure. Figure 5 and Fig.19 In the embodiment, Fig.18 Compared with the embodiment in Fig.19 The embodiment in has a step 1902 replacing the step 1802. In the step 1902, if the first feature value difference is less than or equal to zero and a second feature value difference is greater than or equal to a second predetermined feature value threshold, then the step 1804 is performed; otherwise, the step 1412 is performed. In one embodiment, the second predetermined feature value threshold is equal to one thousand six hundredth of the width of the frame 502 of the current frame set multiplied by the height of the frame 502 of the current frame set.

[0092] exist Fig.19 In an embodiment of the present invention, the first eigenvalue difference is a non-absolute value, and the second eigenvalue difference is an absolute value of the first eigenvalue difference. In an embodiment, if a condition in step 1408 is satisfied at least a second number of a first plurality of times, and if a condition in step 1902 is satisfied at least a third number of the first plurality of times, then the at least one second number is greater than the at least one third number by at least the first predetermined plurality of times. The first predetermined plurality of times is two. Compared to the number of times of satisfaction variable which is decremented due to, for example, a decrease in speed of the motion of the moving object, regardless of Fig.18 What is the reduction in the example in Fig.19In one example, the satisfaction times variable is decremented only when the speed reduction exceeds a certain limit. Fig.18 The camera module 102 in the example is the variable of the number of times of satisfaction which is decreased from movement to movement, compared with Fig.19 In one example, if the camera module 102 is from motion to motion, the variable of the number of times satisfied remains the same. In this way, if the camera module 102 is from motion to stillness, the at least one third number is one, the first majority number is three times, and the at least one second number is one. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to not belong to continuous motion for each of the first majority times. If the camera module 102 has more frame sets that are from motion to stillness, then because the camera module 102 is from motion to stillness, the at least one third number is still one, the first majority number is four times, and the at least one second number is one. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set for each of the first majority times can still be determined to not belong to continuous motion.

[0093] Compared to reference Fig.15 In the second example described, when a condition in step 1408 is not met, the number of times the condition is met variable remains the same. Fig.19 In step 1902, the number of times the condition is satisfied may be decremented or kept the same, based on whether a condition in step 1902 is satisfied. In this way, if the at least one third number is one due to the motion of the moving object decreasing in speed, the first plurality of times is four times, and the at least one second number is three times. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set may still be determined to belong to continuous motion in each of the first plurality of times. Compared to the reference Fig.17 In the second example described, when the condition in step 1408 is not met, the number of times the condition is met variable remains the same. Fig.18In the embodiment of the present invention, based on whether a condition in step 1802 is satisfied, the satisfaction count variable can be decremented or kept the same. In this way, if the camera module 102 changes from motion to motion and the camera module 102 changes from motion to stillness, the at least one third number is two, then the first majority number is three, and the at least one second number is one. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set are determined to not belong to continuous motion in each of the first majority times. If the camera module 102 has more frame sets from motion to motion, the at least one third number is three, then the first majority number is four, and the at least one second number is two. The motion or the scene change in the previous frame set and the motion or the scene change in the current frame set in each of the first majority times can still be determined to not belong to continuous motion.

[0094] Figure 20 to Figure 21 A flowchart of step 306 of performing continuous motion check using a first size difference between a current bounding box and a previous bounding box and a first feature value difference between a current feature value and a previous feature value is illustrated respectively according to another embodiment of the present disclosure. Fig.10 and Fig.14 , Fig.18 or Fig.19 The multiple embodiments described in are combined together. Fig.10 and Fig.14 , Fig.18 or Fig.19 In the embodiments of the present invention, the continuous motion check further ensures non-distorted motion detection, for example, distinguishing the motion of a small moving object from noise. After combination, when all conditions in the embodiments involve only multiple absolute values, the first predetermined majority of times is at least three times, and when at least one condition in the embodiments involves a non-absolute value, the first predetermined majority of times is at least two times. Compared with the embodiment combined in Fig.10 and Fig.19 In the multiple embodiments described in Fig.19 Insert step 1406 and step 1412 directly between step 1406 and step 1412 Fig.10 In a yes branch of step 1008, Figure 20 to Figure 21 The embodiment in the embodiment has the following differences. In the step 1008, if the first size difference is greater than a first predetermined size difference threshold, the step 1408 is performed; otherwise, instead of performing Fig.10 In step 1012, Fig.21In step 2102, if the first eigenvalue difference is greater than a second predetermined eigenvalue threshold, then step 1010 is performed; otherwise, step 2104 is performed. Fig. 20 One step in 2002 is Fig.10 Step 1006 and Fig.14 A combination of step 1406 in. The step 2104 is similar to Fig.19 In step 1902, Fig.21 The third predetermined characteristic value threshold in Fig.19 In one embodiment, the second predetermined feature value threshold in step 2102 is equal to the width of the frame 502 of the current frame set multiplied by one-fourth of the height of the frame 502 of the current frame set. The incorporation of step 2102 allows the motion of a moving object at the same location to be detected and trigger the slow motion capture. Fig. 22 is a flow chart illustrating step 306 of further using a current feature value of all pixels affected by the currently detected motion or scene change to perform continuous motion check according to another embodiment of the present disclosure. Fig. 20 and Fig.21 Compared with step 306 in Fig. 22 Step 306 in the embodiment further includes the following steps between step 2002 and step 1008. In step 2202, if the current feature value is greater than a predetermined feature value threshold, step 1008 is performed; otherwise, step 2204 is performed. In step 2204, the slow motion capture start flag is deasserted and the satisfaction times variable is reset. In one embodiment, the predetermined feature value threshold is equal to the smallest of one tenth of the width of the frame 502 of the current frame set and one tenth of the height of the frame 502 of the current frame set.

[0095] Some embodiments have one or a combination of the following features and / or advantages. In a related art, whether a change in a frame set is a motion is determined based on whether a bounding box defining the changes has a circumference greater than a bounding box threshold. In this way, multiple scene changes due to a camera module moving from motion to motion cannot be distinguished from the motion of a moving object. Compared with the related art, some embodiments of the present disclosure perform continuous motion checks. Therefore, the motion of a moving object can be distinguished from multiple scene changes caused by the camera module switching from static to motion, the camera module switching from motion to motion, and the camera module switching from motion to static. In addition, some embodiments of the present disclosure perform an AND operation on multiple pixel difference images to generate a detected motion or scene change. Therefore, the detected motion or scene change will not be caused by tremor. It can be understood by a person of ordinary skill in the art that each of the multiple units, multiple modules, multiple layers, multiple blocks, multiple algorithms, and multiple steps of the system or computer-implemented method described and disclosed in the embodiments of the present disclosure is implemented using hardware, firmware, software, or a combination thereof. Whether the function is run in hardware, firmware or software depends on the application conditions and the design requirements of a technical solution. A person of ordinary skill in the art may use different methods to implement the function for each specific application, but such implementation should not exceed the scope of the present disclosure. It should be understood that the system and computer-implemented method disclosed in the embodiments of the present disclosure can be implemented in other ways. The many embodiments described above are only exemplary. The division of the multiple modules is based only on logical functions, while other divisions exist in implementation. The multiple modules may or may not be multiple physical modules. It is possible for multiple modules to be combined or integrated into one physical module. It is also possible to divide any module into multiple physical modules. It is also possible to omit or skip certain features. On the other hand, the mutual coupling, direct coupling or communication coupling shown or discussed is operated indirectly or communicatively through some ports, devices or modules in an electrical, mechanical or other form.

[0096] The multiple modules as multiple separate components for illustration may be physically separate or not separate. The multiple modules are located in one place or distributed on multiple network modules. Some or all modules are used according to the purpose of the embodiment. If the software function module is implemented, used and sold as a product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution proposed in the present disclosure can be implemented substantially or partially in the form of a software product. Alternatively, a part of the technical solution that is beneficial to the prior art can be implemented in the form of a software product. The software product is stored in a computer-readable storage medium, including multiple commands for at least one processor of a system to run all or part of the steps disclosed in the multiple embodiments of the present disclosure. The storage medium includes a USB disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a floppy disk or other medium capable of storing program instructions. Although the present disclosure has been described in conjunction with the most practical and preferred embodiments, it should be understood that the present disclosure is not limited to the disclosed embodiments, but is intended to cover various arrangements made without departing from the broadest interpretation scope of the attached claims.

Claims

1. A computer-implemented method, characterized in that: The method comprises: A first plurality of times are performed continuously for an inspection method, wherein the inspection method comprises: Obtain multiple first frames arranged in sequence; detecting motion or scene change in the plurality of first frames to generate a first detected motion or scene change; obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; Obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene change in the plurality of second frames to generate a second detected motion or scene change; obtaining a second bounding box, the second bounding box defining the second detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; and Updating the plurality of first frames to the plurality of second frames, and updating the plurality of second frames to a plurality of third frames after the plurality of second frames; wherein for each of a second plurality of times in the first plurality of times, the first size difference is greater than a first predetermined threshold, and the second plurality of times is greater than or equal to a first predetermined plurality of times; and Based on the first size difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to continuous motion.

2. The computer-implemented method of claim 1, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

3. The computer-implemented method of claim 2, wherein: The first predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

4. The computer-implemented method of claim 3, wherein: The first side length difference is greater than the first predetermined side length threshold, and the second side length difference is greater than the second predetermined side length threshold.

5. The computer-implemented method of claim 3, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

6. The computer-implemented method of claim 1, wherein: The first size difference is an absolute value.

7. The computer-implemented method of claim 6, wherein: The first predetermined plurality of times is at least three times.

8. The computer-implemented method of claim 1, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

9. The computer-implemented method of claim 8, wherein: The first predetermined plurality of times is at least two times.

10. The computer-implemented method of claim 1, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

11. The computer-implemented method of claim 10, wherein: The first predetermined plurality of times is at least two times.

12. The computer-implemented method of claim 1, wherein: The motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames at each of the first plurality of times are determined to belong to the continuous motion based only on the first size difference at each of the second plurality of times.

13. The computer-implemented method of claim 1, wherein: The inspection method further comprises: Obtaining a first characteristic value of all pixels affected by the first detected motion or scene change; Obtaining a second feature value for all pixels affected by the second detected motion or scene change; and Obtaining a first eigenvalue difference between the first eigenvalue and the second eigenvalue; wherein for each of the second plurality of times, the first eigenvalue difference is greater than a second predetermined threshold; and Also based on the first feature value difference in each of the second plurality of times, it is determined that the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times belong to the continuous motion.

14. The computer-implemented method of claim 13, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

15. The computer-implemented method of claim 14, wherein: The second predetermined threshold is equal to one-eighth-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

16. The computer-implemented method of claim 13, wherein: The first eigenvalue difference is an absolute value.

17. The computer-implemented method of claim 16, wherein: The first predetermined plurality of times is at least three times.

18. The computer-implemented method of claim 13, wherein: The first eigenvalue difference is obtained by subtracting the first eigenvalue from the second eigenvalue.

19. The computer-implemented method of claim 18, wherein: The first predetermined plurality of times is at least two times.

20. The computer-implemented method of claim 13, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of the second plurality of times, the second eigenvalue difference is greater than zero; and Also based on the second feature value difference in each of the second plurality of times, the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times are determined to belong to the continuous motion.

21. The computer-implemented method of claim 20, wherein: The first predetermined plurality of times is at least two times.

22. The computer-implemented method of claim 1, wherein: The inspection method further comprises: Obtaining a first feature value for all pixels affected by the second detected motion or scene change, wherein for each of the second plurality of times, the first feature value is greater than a second predetermined threshold; and Also based on the first feature value in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

23. The computer-implemented method of claim 22, wherein: The first feature value is a pixel number of all pixels affected by the second detected motion or scene change.

24. The computer-implemented method of claim 23, wherein: The second predetermined threshold is equal to a minimum of one tenth of a width of one of the plurality of first frames and one tenth of a height of one of the plurality of first frames.

25. The computer-implemented method of claim 1, wherein: The plurality of first frames include a third frame, a fourth frame and a fifth frame which are arranged in sequence.

26. The computer-implemented method of claim 25, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change comprises: Obtaining a first pixel difference image between the third frame and the fifth frame; Obtaining a second pixel difference image between the fourth frame and the fifth frame; and An AND operation is performed using the first pixel difference image and the second pixel difference image to obtain a first image including the first detected motion or scene change.

27. The computer-implemented method of claim 26, wherein: The step of performing the AND operation using the first pixel difference image and the second pixel difference image to obtain the first image including the first detected motion or scene change comprises: Performing the AND operation on the first pixel difference image and the second pixel difference image to obtain a second image; The second image is binarized to obtain the first image.

28. The computer-implemented method of claim 26, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change further comprises: An erosion operation is performed on the first image to obtain a second image, wherein the first detected motion or scene change is indicated in the second image.

29. The computer-implemented method of claim 28, wherein: The erosion operation is performed with a cross-structure kernel.

30. The computer-implemented method of claim 1, wherein: The method further comprises: obtaining a plurality of samples from a gyroscope, wherein the plurality of samples indicate no rotational motion of a camera module; in performing the inspection method based on the plurality of samples; Using the camera module to obtain the plurality of first frames; and The plurality of second frames are acquired using the camera module.

31. The computer-implemented method of claim 1, wherein: The step of determining, based on the first size difference in each of the second plurality of times, that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belongs to continuous motion comprises: triggering a slow motion capture of a camera module based on the first size difference in each of the second plurality of times; in Using the camera module to obtain the plurality of first frames; and The plurality of second frames are acquired using the camera module.

32. A computer-implemented method, characterized in that: The method comprises: A first plurality of times are performed continuously for an inspection method, wherein the inspection method comprises: Obtain multiple first frames arranged in sequence; detecting motion or scene change in the plurality of first frames to generate a first detected motion or scene change; Obtaining a first characteristic value of all pixels affected by the first detected motion or scene change; Obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene change in the plurality of second frames to generate a second detected motion or scene change; Obtaining a second feature value for all pixels affected by the second detected motion or scene change; and Obtaining a first eigenvalue difference between the first eigenvalue and the second eigenvalue; wherein for each of a second majority of times in the first majority of times, the first eigenvalue difference is greater than a first predetermined threshold, and the second majority of times is greater than or equal to a first predetermined majority of times; and Based on the first feature value difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to continuous motion.

33. The computer-implemented method of claim 32, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

34. The computer-implemented method of claim 33, wherein: The first predetermined threshold is equal to one-eighth-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

35. The computer-implemented method of claim 32, wherein: The first eigenvalue difference is an absolute value.

36. The computer-implemented method of claim 35, wherein: The first predetermined plurality of times is at least three times.

37. The computer-implemented method of claim 32, wherein: The first eigenvalue difference is obtained by subtracting the first eigenvalue from the second eigenvalue.

38. The computer-implemented method of claim 37, wherein: The first predetermined plurality of times is at least two times.

39. The computer-implemented method of claim 32, wherein: For each of at least one of the first plurality of times, the first eigenvalue difference is less than or equal to zero; The second plurality of times is greater than the at least one time by at least the first predetermined plurality of times; The first predetermined plurality of times is two times.

40. The computer-implemented method of claim 32, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of the second plurality of times, the second eigenvalue difference is greater than zero; and Also based on the second feature value difference in each of the second plurality of times, the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times are determined to belong to the continuous motion.

41. The computer-implemented method of claim 39, wherein: The first predetermined plurality of times is at least two times.

42. The computer-implemented method of claim 32, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of at least one of the first plurality of times, the first eigenvalue difference is greater than or equal to a second predetermined threshold and the second eigenvalue difference is less than zero; The second plurality of times is greater than the at least one time by at least the first predetermined plurality of times; and The first predetermined plurality of times is two times.

43. The computer-implemented method of claim 42, wherein: For each of a third plurality of the first plurality of times other than the at least one time and the second plurality of times, the first eigenvalue difference is less than the second predetermined threshold and the second eigenvalue difference is less than zero.

44. The computer-implemented method of claim 32, wherein: The motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion based only on the first feature value difference in each of the second plurality of times.

45. The computer-implemented method of claim 32, wherein: The inspection method further comprises: obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; obtaining a second bounding box, the second bounding box defining the first detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; wherein for each of the second plurality of times, the first size difference is greater than a second predetermined threshold; and Also based on the first size difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

46. ​​The computer-implemented method of claim 45, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

47. The computer-implemented method of claim 46, wherein: The second predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

48. The computer-implemented method of claim 47, wherein: The first side length difference is greater than the first predetermined side length threshold, and the second side length difference is greater than the second predetermined side length threshold.

49. The computer-implemented method of claim 47, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

50. The computer-implemented method of claim 45, wherein: The first size difference is an absolute value.

51. The computer-implemented method of claim 50, wherein: The first predetermined plurality of times is at least three times.

52. The computer-implemented method of claim 45, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

53. The computer-implemented method of claim 52, wherein: The first predetermined plurality of times is at least two times.

54. The computer-implemented method of claim 45, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

55. The computer-implemented method of claim 54, wherein: The first predetermined plurality of times is at least two times.

56. The computer-implemented method of claim 32, wherein: The inspection method further comprises: obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; obtaining a second bounding box, the second bounding box defining the first detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; wherein for at least one of the second plurality of times, the first size difference is less than or equal to a second predetermined threshold; and Also based on the first size difference of at least one of the first plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

57. The computer-implemented method of claim 56, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

58. The computer-implemented method of claim 57, wherein: The first predetermined threshold is equal to one-four-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

59. The computer-implemented method of claim 56, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

60. The computer-implemented method of claim 59, wherein: The second predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

61. The computer-implemented method of claim 60, wherein: The first side length difference is less than or equal to the first predetermined side length threshold, and the second side length difference is less than or equal to the second predetermined side length threshold.

62. The computer-implemented method of claim 60, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

63. The computer-implemented method of claim 56, wherein: The first size difference is an absolute value.

64. The computer-implemented method of claim 63, wherein: The first predetermined plurality of times is at least three times.

65. The computer-implemented method of claim 56, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

66. The computer-implemented method of claim 65, wherein: The first predetermined plurality of times is at least two times.

67. The computer-implemented method of claim 56, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

68. The computer-implemented method of claim 67, wherein: The first predetermined plurality of times is at least two times.

69. The computer-implemented method of claim 32, wherein: The inspection method further comprises: Obtaining a first feature value for all pixels affected by the second detected motion or scene change, wherein for each of the second plurality of times, the first feature value is greater than a second predetermined threshold; and Also based on the first feature value in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

70. The computer-implemented method of claim 69, wherein: The first feature value is a pixel number of all pixels affected by the second detected motion or scene change.

71. The computer-implemented method of claim 70, wherein: The second predetermined threshold is equal to a minimum of one tenth of a width of one of the plurality of first frames and one tenth of a height of one of the plurality of first frames.

72. The computer-implemented method of claim 32, wherein: The plurality of first frames include a third frame, a fourth frame and a fifth frame which are arranged in sequence.

73. The computer-implemented method of claim 72, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change comprises: Obtaining a first pixel difference image between the third frame and the fifth frame; Obtaining a second pixel difference image between the fourth frame and the fifth frame; and An AND operation is performed using the first pixel difference image and the second pixel difference image to obtain a first image including the first detected motion or scene change.

74. The computer-implemented method of claim 73, wherein: The step of performing the AND operation using the first pixel difference image and the second pixel difference image to obtain the first image including the first detected motion or scene change comprises: Performing the AND operation on the first pixel difference image and the second pixel difference image to obtain a second image; The second image is binarized to obtain the first image.

75. The computer-implemented method of claim 73, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change further comprises: An erosion operation is performed on the first image to obtain a second image, wherein the first detected motion or scene change is indicated in the second image.

76. The computer-implemented method of claim 75, wherein: The erosion operation is performed with a cross-structure kernel.

77. The computer-implemented method of claim 32, wherein: The method further comprises: obtaining a plurality of samples from a gyroscope, wherein the plurality of samples indicate no rotational motion of a camera module; in performing the inspection method based on the plurality of samples; Using the camera module to obtain the plurality of first frames; and The plurality of second frames are acquired using the camera module.

78. The computer-implemented method of claim 32, wherein: The step of determining, based on the first feature value difference of each of the second plurality of times, that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames each of the first plurality of times belongs to continuous motion comprises: triggering a slow motion capture of a camera module based on the first feature value difference of each of the second plurality of times; in Using the camera module to obtain the plurality of first frames; and The plurality of second frames are acquired using the camera module.

79. A system, characterized in that: The system comprises: at least one memory configured to store a plurality of program instructions; At least one processor is configured to execute the plurality of program instructions, wherein the plurality of program instructions cause the at least one processor to perform a plurality of steps, including: A first plurality of times are performed continuously for an inspection method, wherein the inspection method comprises: Obtain multiple first frames arranged in sequence; detecting motion or scene change in the plurality of first frames to generate a first detected motion or scene change; obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; Obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene change in the plurality of second frames to generate a second detected motion or scene change; obtaining a second bounding box, the second bounding box defining the second detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; and Updating the plurality of first frames to the plurality of second frames, and updating the plurality of second frames to a plurality of third frames after the plurality of second frames; wherein for each of a second plurality of times in the first plurality of times, the first size difference is greater than a first predetermined threshold, and the second plurality of times is greater than or equal to a first predetermined plurality of times; and Based on the first size difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to continuous motion.

80. The system of claim 79, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

81. The system of claim 80, wherein: The first predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

82. The system of claim 81, wherein: The first side length difference is greater than the first predetermined side length threshold, and the second side length difference is greater than the second predetermined side length threshold.

83. The system of claim 81, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

84. The system of claim 79, wherein: The first size difference is an absolute value.

85. The system of claim 84, wherein: The first predetermined plurality of times is at least three times.

86. The system of claim 79, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

87. The system of claim 86, wherein: The first predetermined plurality of times is at least two times.

88. The system of claim 79, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

89. The system of claim 88, wherein: The first predetermined plurality of times is at least two times.

90. The system of claim 79, wherein: The motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames at each of the first plurality of times are determined to belong to the continuous motion based only on the first size difference at each of the second plurality of times.

91. The system of claim 79, wherein: The inspection method further comprises: Obtaining a first characteristic value of all pixels affected by the first detected motion or scene change; Obtaining a second feature value for all pixels affected by the second detected motion or scene change; and Obtaining a first eigenvalue difference between the first eigenvalue and the second eigenvalue; wherein for each of the second plurality of times, the first eigenvalue difference is greater than a second predetermined threshold; and Also based on the first feature value difference in each of the second plurality of times, it is determined that the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times belong to the continuous motion.

92. The system of claim 91, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

93. The system of claim 92, wherein: The second predetermined threshold is equal to one-eighth-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

94. The system of claim 91, wherein: The first eigenvalue difference is an absolute value.

95. The system of claim 94, wherein: The first predetermined plurality of times is at least three times.

96. The system of claim 91, wherein: The first eigenvalue difference is obtained by subtracting the first eigenvalue from the second eigenvalue.

97. The system of claim 96, wherein: The first predetermined plurality of times is at least two times.

98. The system of claim 91, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of the second plurality of times, the second eigenvalue difference is greater than zero; and Also based on the second feature value difference in each of the second plurality of times, the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times are determined to belong to the continuous motion.

99. The system of claim 98, wherein: The first predetermined plurality of times is at least two times.

100. The system of claim 79, wherein: The inspection method further comprises: Obtaining a first feature value for all pixels affected by the second detected motion or scene change, wherein for each of the second plurality of times, the first feature value is greater than a second predetermined threshold; and Also based on the first feature value in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

101. The system of claim 100, wherein: The first feature value is a pixel number of all pixels affected by the second detected motion or scene change.

102. The system of claim 101, wherein: The second predetermined threshold is equal to a minimum of one tenth of a width of one of the plurality of first frames and one tenth of a height of one of the plurality of first frames.

103. The system of claim 79, wherein: The plurality of first frames include a third frame, a fourth frame and a fifth frame which are arranged in sequence.

104. The system of claim 103, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change comprises: Obtaining a first pixel difference image between the third frame and the fifth frame; Obtaining a second pixel difference image between the fourth frame and the fifth frame; and An AND operation is performed using the first pixel difference image and the second pixel difference image to obtain a first image including the first detected motion or scene change.

105. The system of claim 104, wherein: The step of performing the AND operation using the first pixel difference image and the second pixel difference image to obtain the first image including the first detected motion or scene change comprises: Performing the AND operation on the first pixel difference image and the second pixel difference image to obtain a second image; The second image is binarized to obtain the first image.

106. The system of claim 104, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change further comprises: An erosion operation is performed on the first image to obtain a second image, wherein the first detected motion or scene change is indicated in the second image.

107. The system of claim 106, wherein: The erosion operation is performed with a cross-structure kernel.

108. The system of claim 79, wherein: The system further comprises: a gyroscope; and a camera module configured to obtain the plurality of first frames and the plurality of second frames; The steps performed by the at least one processor further include: A plurality of samples are obtained from the gyroscope, wherein the plurality of samples indicate that the camera module has no rotational motion; wherein the inspection method is performed based on the plurality of samples.

109. The system of claim 79, wherein: The system further comprises: a camera module configured to obtain the plurality of first frames and the plurality of second frames; The step of determining, based on the first size difference in each of the second plurality of times, that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times is continuous motion comprises: Based on the first size difference in each of the second plurality of times, slow motion capture of the camera module is triggered.

110. A system, characterized in that: The system comprises: at least one memory configured to store a plurality of program instructions; At least one processor is configured to execute the plurality of program instructions, wherein the plurality of program instructions cause the at least one processor to perform a plurality of steps, including: A first plurality of times are performed continuously for an inspection method, wherein the inspection method comprises: Obtain multiple first frames arranged in sequence; detecting motion or scene change in the plurality of first frames to generate a first detected motion or scene change; Obtaining a first characteristic value of all pixels affected by the first detected motion or scene change; Obtaining a plurality of second frames arranged in sequence, wherein the plurality of second frames are after the plurality of first frames; detecting motion or scene change in the plurality of second frames to generate a second detected motion or scene change; Obtaining a second feature value for all pixels affected by the second detected motion or scene change; and Obtaining a first eigenvalue difference between the first eigenvalue and the second eigenvalue; wherein for each of a second majority of times in the first majority of times, the first eigenvalue difference is greater than a first predetermined threshold, and the second majority of times is greater than or equal to a first predetermined majority of times; and Based on the first feature value difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to continuous motion.

111. The system of claim 110, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

112. The system of claim 111, wherein: The first predetermined threshold is equal to one-eighth-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

113. The system of claim 110, wherein: The first eigenvalue difference is an absolute value.

114. The system of claim 113, wherein: The first predetermined plurality of times is at least three times.

115. The system of claim 110, wherein: The first eigenvalue difference is obtained by subtracting the first eigenvalue from the second eigenvalue.

116. The system of claim 115, wherein: The first predetermined plurality of times is at least two times.

117. The system of claim 110, wherein: For each of at least one of the first plurality of times, the first eigenvalue difference is less than or equal to zero; The second plurality of times is greater than the at least one time by at least the first predetermined plurality of times; The first predetermined plurality of times is two times.

118. The system of claim 110, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of the second plurality of times, the second eigenvalue difference is greater than zero; and Also based on the second feature value difference in each of the second plurality of times, the motion or the scene change in the multiple first frames and the motion or the scene change in the multiple second frames in each of the first plurality of times are determined to belong to the continuous motion.

119. The system of claim 117, wherein: The first predetermined plurality of times is at least two times.

120. The system of claim 110, wherein: The first eigenvalue difference is an absolute value; The inspection method further comprises: subtracting the first eigenvalue from the second eigenvalue to obtain a second eigenvalue difference; wherein for each of at least one of the first plurality of times, the first eigenvalue difference is greater than or equal to a second predetermined threshold and the second eigenvalue difference is less than zero; The second plurality of times is greater than the at least one time by at least the first predetermined plurality of times; and The first predetermined plurality of times is two times.

121. The system of claim 120, wherein: For each of a third plurality of the first plurality of times other than the at least one time and the second plurality of times, the first eigenvalue difference is less than the second predetermined threshold and the second eigenvalue difference is less than zero.

122. The system of claim 110, wherein: The motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion based only on the first feature value difference in each of the second plurality of times.

123. The system of claim 110, wherein: The inspection method further comprises: obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; obtaining a second bounding box, the second bounding box defining the first detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; wherein for each of the second plurality of times, the first size difference is greater than a second predetermined threshold; and Also based on the first size difference in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

124. The system of claim 123, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

125. The system of claim 124, wherein: The second predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

126. The system of claim 125, wherein: The first side length difference is greater than the first predetermined side length threshold, and the second side length difference is greater than the second predetermined side length threshold.

127. The system of claim 125, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

128. The system of claim 125, wherein: The first size difference is an absolute value.

129. The system of claim 128, wherein: The first predetermined plurality of times is at least three times.

130. The system of claim 125, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

131. The system of claim 130, wherein: The first predetermined plurality of times is at least two times.

132. The system of claim 125, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

133. The system of claim 132, wherein: The first predetermined plurality of times is at least two times.

134. The system of claim 110, wherein: The inspection method further comprises: obtaining a first bounding box, the first bounding box defining the first detected motion or scene change; obtaining a second bounding box, the second bounding box defining the first detected motion or scene change; Obtaining a first size difference between the first bounding box and the second bounding box; wherein for at least one of the second plurality of times, the first size difference is less than or equal to a second predetermined threshold; and Also based on the first size difference of at least one of the first plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

135. The system of claim 134, wherein: The first feature value is a pixel number of all pixels affected by the first detected motion or scene change; and The second feature value is a pixel number of all pixels affected by the second detected motion or scene change.

136. The system of claim 135, wherein: The first predetermined threshold is equal to one-four-hundredth of a width of one of the plurality of first frames multiplied by a height of the one of the plurality of first frames.

137. The system of claim 134, wherein: The step of obtaining the first size difference between the first bounding box and the second bounding box comprises: Obtaining a first side length difference between a first side of the first bounding box and a side of the second bounding box parallel to the first side of the first bounding box; and A second side length difference between a second side of the first bounding box and a side of the second bounding box parallel to the second side of the first bounding box is obtained, wherein the second side is perpendicular to the first side; wherein the first size difference includes the first side length difference and the second side length difference.

138. The system of claim 137, wherein: The second predetermined threshold includes a first predetermined side length threshold and a second predetermined side length threshold.

139. The system of claim 138, wherein: The first side length difference is less than or equal to the first predetermined side length threshold, and the second side length difference is less than or equal to the second predetermined side length threshold.

140. The system of claim 138, wherein: The first predetermined side length threshold is equal to one tenth of a width of one of the plurality of first frames, and the second predetermined side length threshold is equal to one tenth of a height of the one of the plurality of first frames.

141. The system of claim 134, wherein: The first size difference is an absolute value.

142. The system of claim 141, wherein: The first predetermined plurality of times is at least three times.

143. The system of claim 138, wherein: The first size difference is obtained by subtracting a size of the first bounding box from a size of the second bounding box.

144. The system of claim 143, wherein: The first predetermined plurality of times is at least two times.

145. The system of claim 134, wherein: The first size difference is an absolute value; The inspection method further comprises: subtracting a size of the first bounding box from a size of the second bounding box to obtain a second size difference; wherein for each of the second plurality of times, the second size difference is greater than zero; and Also based on the second size difference in each of the second plurality of times, the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times are determined to belong to the continuous motion.

146. The system of claim 145, wherein: The first predetermined plurality of times is at least two times.

147. The system of claim 110, wherein: The inspection method further comprises: Obtaining a first feature value for all pixels affected by the second detected motion or scene change, wherein for each of the second plurality of times, the first feature value is greater than a second predetermined threshold; and Also based on the first feature value in each of the second plurality of times, it is determined that the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames in each of the first plurality of times belong to the continuous motion.

148. The system of claim 147, wherein: The first feature value is a pixel number of all pixels affected by the second detected motion or scene change.

149. The system of claim 148, wherein: The second predetermined threshold is equal to a minimum of one tenth of a width of one of the plurality of first frames and one tenth of a height of one of the plurality of first frames.

150. The system of claim 110, wherein: The plurality of first frames include a third frame, a fourth frame and a fifth frame which are arranged in sequence.

151. The system of claim 150, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change comprises: Obtaining a first pixel difference image between the third frame and the fifth frame; Obtaining a second pixel difference image between the fourth frame and the fifth frame; and An AND operation is performed using the first pixel difference image and the second pixel difference image to obtain a first image including the first detected motion or scene change.

152. The system of claim 151, wherein: The step of performing the AND operation using the first pixel difference image and the second pixel difference image to obtain the first image including the first detected motion or scene change comprises: Performing the AND operation on the first pixel difference image and the second pixel difference image to obtain a second image; The second image is binarized to obtain the first image.

153. The system of claim 151, wherein: The step of detecting the motion or the scene change in the plurality of first frames to generate the first detected motion or scene change further comprises: An erosion operation is performed on the first image to obtain a second image, wherein the first detected motion or scene change is indicated in the second image.

154. The system of claim 153, wherein: The erosion operation is performed with a cross-structure kernel.

155. The system of claim 110, wherein: The system further comprises: a gyroscope; and a camera module configured to obtain the plurality of first frames and the plurality of second frames; The steps performed by the at least one processor further include: A plurality of samples are obtained from the gyroscope, wherein the plurality of samples indicate that the camera module has no rotational motion; wherein the inspection method is performed based on the plurality of samples.

156. The system of claim 110, wherein: The system further comprises: a camera module configured to obtain the plurality of first frames and the plurality of second frames; The step of determining the motion or the scene change in the plurality of first frames and the motion or the scene change in the plurality of second frames as continuous motion in each of the first plurality of times based on the first size difference in each of the second plurality of times comprises: Based on the first size difference in each of the second plurality of times, slow motion capture of the camera module is triggered.

Citation Information

Patent Citations

  • Randomly sub-sampled partition voting(RSVP) algorithm for scene change detection

    CN101352029A

  • Mobile detection of object

    CN106878668A

  • Motion Vector Prediction Using Prior Frame Residual

    CN107071440A

  • Scene switching detection method and system based on motion analysis for sliding time window

    CN109361923A

  • Intermediate vector interpolation method and three-dimensional (3d) display apparatus performing the method

    CN1885953A