IP Library › Granted Patent US 11,134,180
Granted Patent B2
US 11,134,180 · App. 17/042,106 · Granted Sep 28, 2021

Detection method for static image of a video and terminal, and computer-readable storage medium

Inventors: Zehua Tao (Shenzhen, CN); Mingbin Hong (Shenzhen, CN)
Assignee: SHENZHEN SKYWORTH-RGB ELECTRONIC CO., LTD.
H04N5/147G06T7/97H04N17/00G06T2207/10016
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,134,180
App. No.
17/042,106
Granted
Sep 28, 2021
Kind
B2
Abstract

Disclosed are a detection method for static image of a video, a detection terminal, and a computer-readable storage medium. The method includes: obtaining a frame image from the video as a reference frame image in a playback order, obtaining an image set comprising n frame images after the reference frame image in the playback order; sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement; determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition; determining whether a stop condition is satisfied according to the reference frame image and the nth frame image in the currently obtained image set; if the above determination results are yes, determining that a video image including the frame images from the reference frame image to the nth frame image in the current image set is a static image.

Claims (57)

1. A detection method for static image of a video, comprising:

obtaining a frame image from the video as a reference frame image in a playback order, and obtaining an image set comprising n frame images after the reference frame image in the playback order;

sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement;

in response to the first (n−1) frame images satisfying the preset static image brightness requirement, determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition;

in response to the nth frame image in the image set satisfying the preset gray histogram judgment condition, determining whether a stop condition is satisfied according to the reference frame image and the nth frame image in the currently obtained image set;

in response to the stop condition failing to be satisfied, continuing to obtain a next image set comprising n frame images after the currently obtained image set, and return to perform the operation of sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement; and

in response to the stop condition being satisfied, determining that a video image comprising all of the frame images between the reference frame image and the nth frame image in the currently obtained image set is a static image.

2. The detection method according to claim 1 , wherein after the operation of sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement, the detection method further comprises:

in response to an ath frame image in the first (n−1) frame images failing to satisfy the preset static image brightness requirement, updating the reference frame image to be an (a+1)th frame image, and return to perform the operation of obtaining an image set comprising n frame images after the reference frame image in the playback order.

3. The detection method according to claim 1 , wherein after the operation of determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition, the detection method further comprises:

in response to the nth frame image in the image set failing to satisfy the preset grayscale histogram judgment condition, updating the reference frame image to be the nth frame image, and return to perform the operation of obtaining an image set comprising n frame images after the reference frame image in the playback order.

4. The detection method according to claim 1 , wherein the operation of sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement comprises:

obtaining an average brightness value of the reference frame image, and sequentially selecting each frame image from the first (n−1) frame images in the playback order;

in response to each frame image being selected, obtaining an average brightness value of a currently selected frame image, and determining whether the currently selected frame image satisfies the preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image; and

in response to the currently selected frame image satisfying the preset static image brightness requirement, continuing to select a next frame image, until the currently selected frame image is a (n−1)th frame image.

5. The detection method according to claim 2 , wherein the operation of sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement comprises:

obtaining an average brightness value of the reference frame image, and sequentially selecting each frame image from the first (n−1) frame images in the playback order;

in response to each frame image being selected, obtaining an average brightness value of a currently selected frame image, and determining whether the currently selected frame image satisfies the preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image; and

in response to the currently selected frame image satisfying the preset static image brightness requirement, continuing to select a next frame image, until the currently selected frame image is a (n−1)th frame image.

6. The detection method according to claim 3 , wherein the operation of sequentially determining whether first (n−1) frame images in the currently obtained image set satisfy a preset static image brightness requirement comprises:

obtaining an average brightness value of the reference frame image, and sequentially selecting each frame image from the first (n−1) frame images in the playback order;

in response to each frame image being selected, obtaining an average brightness value of a currently selected frame image, and determining whether the currently selected frame image satisfies the preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image; and

in response to the currently selected frame image satisfying the preset static image brightness requirement, continuing to select a next frame image, until the currently selected frame image is a (n−1)th frame image.

7. The detection method according to claim 4 , wherein the operation of determining whether the currently selected frame image satisfies a preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image comprises:

determining whether a difference between the average brightness value of the currently selected frame image and the average brightness value of the reference frame image is less than a first preset threshold;

in response to the difference being less than the first preset threshold, determining that the currently selected frame image satisfies the preset static image brightness requirement; and

in response to the difference not being less than the first preset threshold, determining that the currently selected frame image fails to satisfy the preset static image brightness requirement.

8. The detection method according to claim 5 , wherein the operation of determining whether the currently selected frame image satisfies a preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image comprises:

determining whether a difference between the average brightness value of the currently selected frame image and the average brightness value of the reference frame image is less than a first preset threshold;

in response to the difference being less than the first preset threshold, determining that the currently selected frame image satisfies the preset static image brightness requirement; and

in response to the difference not being less than the first preset threshold, determining that the currently selected frame image fails to satisfy the preset static image brightness requirement.

9. The detection method according to claim 6 , wherein the operation of determining whether the currently selected frame image satisfies a preset static image brightness requirement according to the average brightness value of the currently selected frame image and the average brightness value of the reference frame image comprises:

determining whether a difference between the average brightness value of the currently selected frame image and the average brightness value of the reference frame image is less than a first preset threshold;

in response to the difference being less than the first preset threshold, determining that the currently selected frame image satisfies the preset static image brightness requirement; and

in response to the difference not being less than the first preset threshold, determining that the currently selected frame image fails to satisfy the preset static image brightness requirement.

10. The detection method according to claim 1 , wherein the operation of determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition comprises:

determining whether a difference between values corresponding to each level in a grayscale histogram of the reference frame image and a grayscale histogram of the nth frame image in the image set is less than a second preset threshold;

in response to the difference being less than the second preset threshold, determining that the nth frame image in the image set satisfies the preset gray histogram judgment condition; and

in response to the difference not being less than the second preset threshold, determining that the nth frame image in the image set fails to satisfy the preset gray histogram judgment condition.

11. The detection method according to claim 2 , wherein the operation of determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition comprises:

determining whether a difference between values corresponding to each level in a grayscale histogram of the reference frame image and a grayscale histogram of the nth frame image in the image set is less than a second preset threshold;

in response to the difference being less than the second preset threshold, determining that the nth frame image in the image set satisfies the preset gray histogram judgment condition; and

in response to the difference not being less than the second preset threshold, determining that the nth frame image in the image set fails to satisfy the preset gray histogram judgment condition.

12. The detection method according to claim 3 , wherein the operation of determining whether a nth frame image in the image set satisfies a preset gray histogram judgment condition comprises:

determining whether a difference between values corresponding to each level in a grayscale histogram of the reference frame image and a grayscale histogram of the nth frame image in the image set is less than a second preset threshold;

in response to the difference being less than the second preset threshold, determining that the nth frame image in the image set satisfies the preset gray histogram judgment condition; and

in response to the difference not being less than the second preset threshold, determining that the nth frame image in the image set fails to satisfy the preset gray histogram judgment condition.

13. The detection method according to claim 1 , wherein the operation of determining whether a stop condition is satisfied according to the reference frame image and the nth frame image in the currently obtained image set comprises:

determining whether a quantity of frame images from the reference frame image to the nth frame image in the currently obtained image set reaches a preset frame number threshold;

in response to the quantity of frame images reaching the preset frame number threshold, determining that the stop condition is satisfied; and

in response to the quantity of frame images failing to reach the preset frame number threshold, determining that the stop condition is not satisfied.

14. The detection method according to claim 1 , wherein the operation of determining whether a stop condition is satisfied according to the reference frame image and the nth frame image in the currently obtained image set comprises:

determining whether a total playback duration from the reference frame image to the nth frame image in the currently obtained image set reaches a preset duration threshold;

in response to the total playback duration reaching the preset duration threshold, determining that the stop condition is satisfied; and

in response to the total playback duration failing to reach the preset duration threshold, determining that the stop condition is not satisfied.

15. A detection terminal, comprising a memory, a processor, and a computer program executable by the processor and stored in the memory, the computer program when being executed by the processor performing the operations of the detection method for static image of a video according to claim 1 .

16. A non-transitory computer-readable storage medium, storing a computer program, the computer program when being executed by a processor performing the operations of the detection method for static image of a video according to claim 1 .

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 26, 2020
From: TAO, ZEHUA; HONG, MINGBIN
To: SHENZHEN SKYWORTH-RGB ELECTRONIC CO., LTD.
Reel/Frame 053894/0376 →
Priority Claims (1)
CN 201910681521.0 · Jul 25, 2019 · national
Continuity (1)
Related Publication 20210029272A1 · Jan 28, 2021