CN112738527A - Video decoding detection method and device, electronic equipment and storage medium - Google Patents

Video decoding detection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112738527A
CN112738527A CN202011596344.5A CN202011596344A CN112738527A CN 112738527 A CN112738527 A CN 112738527A CN 202011596344 A CN202011596344 A CN 202011596344A CN 112738527 A CN112738527 A CN 112738527A
Authority
CN
China
Prior art keywords
target
video
decoding
detected
characteristic value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011596344.5A
Other languages
Chinese (zh)
Inventor
陈金宣
梁选勤
陈家劭
李航宇
魏世宁
黎富有
朱贝
姚志兴
张杰洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tianshitong Vision Co ltd
Original Assignee
Shenzhen Tianshitong Vision Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tianshitong Vision Co ltd filed Critical Shenzhen Tianshitong Vision Co ltd
Priority to CN202011596344.5A priority Critical patent/CN112738527A/en
Publication of CN112738527A publication Critical patent/CN112738527A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Abstract

The invention discloses a video decoding detection method, a video decoding detection device, electronic equipment and a storage medium, and relates to the technical field of video processing, wherein the video decoding detection method comprises the following steps: acquiring video code stream data, and decoding the video code stream data to obtain video data to be detected; intercepting a target picture according to the video data to be detected; calculating a target characteristic value according to the target picture; and determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value. The video decoding detection method can efficiently and accurately judge whether the video decoding graph is correct or not, and improves the reliability of the video decoding detection result.

Description

Video decoding detection method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video decoding detection method and apparatus, an electronic device, and a storage medium.
Background
The decoding performance index of the network hard disk video recorder is a key performance index of the network hard disk video recorder product, and relates to specification determination and product stability of the product. At present, the automatic test of the network video recorder decoding function can only verify whether the function can be used or not, and whether the decoding result of the network video recorder is correct or not can not be judged on the premise of not observing by naked eyes, so that the decoding condition of an actual image transmitted by a virtual network video recorder is greatly different from an actual scene, and the decoding test result does not have an actual reference value.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the embodiment of the invention provides a video decoding detection method, which can efficiently and accurately judge whether a video decoding graph is correct or not and improve the reliability of a video decoding detection result.
The embodiment of the invention also provides a video decoding detection device.
The embodiment of the invention also provides the electronic equipment.
The embodiment of the invention also provides a computer readable storage medium.
A video decoding detection method according to an embodiment of the first aspect of the present invention includes:
acquiring video code stream data, and decoding the video code stream data to obtain video data to be detected;
intercepting a target picture according to the video data to be detected;
calculating a target characteristic value according to the target picture;
and determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value.
The video decoding detection according to the embodiment of the first aspect of the present invention has at least the following beneficial effects: firstly, video code stream data is obtained, the video code stream data is decoded to obtain video data to be detected, then a target picture is cut out according to the video data to be detected, a target characteristic value is calculated according to the target picture, and finally the decoding correctness of the video data to be detected is determined according to a preset characteristic value and the target characteristic value, so that whether a video decoding graph is correct or not can be judged efficiently and accurately, and the reliability of a video decoding detection result is improved.
According to some embodiments of the present invention, the determining the decoding correctness of the video data to be detected according to the preset feature value and the target feature value includes: calculating a target cosine similarity according to the preset characteristic value and the target characteristic value; and comparing the magnitude relation between a preset threshold and the target cosine similarity, and determining the decoding correctness of the video data to be detected.
According to some embodiments of the present invention, the comparing the magnitude relationship between the preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected includes: and if the target cosine similarity is larger than the preset threshold, determining that the decoding is normal.
According to some embodiments of the present invention, the comparing the magnitude relationship between the preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected further includes: and if the target cosine similarity is smaller than or equal to the preset threshold, determining that the decoding is abnormal.
According to some embodiments of the invention, the calculating a target feature value from the target picture comprises: acquiring a preset color partition, and acquiring a color component of the target picture; calculating a pixel number table according to the preset color partition and the color component; and extracting the target characteristic value from the pixel number table.
According to some embodiments of the present invention, the capturing a target picture according to the video data to be detected includes: acquiring a target time point; and extracting the target picture corresponding to the target time point of the video data to be detected.
According to some embodiments of the invention, the obtaining the preset feature value includes: acquiring an original picture corresponding to the target time point; and calculating the preset characteristic value according to the original picture.
A video decoding detection apparatus according to a second aspect of the present invention includes:
the acquisition module is used for acquiring video code stream data and decoding the video code stream data to obtain video data to be detected;
the intercepting module is used for intercepting a target picture according to the video data to be detected;
the calculation module is used for calculating a target characteristic value according to the target picture;
and the detection module is used for determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value.
The video decoding detection device according to the embodiment of the second aspect of the present invention has at least the following beneficial effects: by executing the video decoding detection method of the embodiment of the first aspect of the invention, whether the video decoding graph is correct or not can be judged efficiently and accurately, and the reliability of the video decoding detection result is improved.
An electronic device according to an embodiment of the third aspect of the invention includes: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions that are executable by the at least one processor to cause the at least one processor to implement a video decoding detection method according to the first aspect when executing the instructions.
According to the electronic device of the embodiment of the third aspect of the invention, at least the following beneficial effects are achieved: by executing the video decoding detection method of the embodiment of the first aspect of the invention, whether the video decoding graph is correct or not can be judged efficiently and accurately, and the reliability of the video decoding detection result is improved.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a video decoding detection method according to the first aspect.
The computer-readable storage medium according to the fourth aspect of the present invention has at least the following advantages: by executing the video decoding detection method of the embodiment of the first aspect of the invention, whether the video decoding graph is correct or not can be judged efficiently and accurately, and the reliability of the video decoding detection result is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a video decoding detection method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a structure of a pixel count table according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video decoding detection apparatus according to an embodiment of the present invention;
fig. 4 is a functional block diagram of an electronic device according to an embodiment of the invention.
Reference numerals:
the system comprises an acquisition module 300, an interception module 310, a calculation module 320, a detection module 330, a processor 400, a memory 410, a data transmission module 420, a camera 430 and a display screen 440.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
The decoding performance index of the network hard disk video recorder is a key performance index of the network hard disk video recorder product, and relates to specification determination and product stability of the product. At present, the automatic test of the network video recorder decoding function can only verify whether the function can be used or not, and whether the decoding result of the network video recorder is correct or not can not be judged on the premise of not observing by naked eyes, so that the decoding condition of an actual image transmitted by a virtual network video recorder is greatly different from an actual scene, and the decoding test result does not have an actual reference value.
Based on this, the embodiment of the invention provides a video decoding detection method, a video decoding detection device, an electronic device and a storage medium, which can efficiently and accurately judge whether a video decoding graph is correct or not and improve the reliability of a video decoding detection result.
Referring to fig. 1, a video decoding detection method according to an embodiment of the first aspect of the present invention includes:
and S100, acquiring video code stream data, and decoding the video code stream data to obtain video data to be detected.
The video code stream data may be code stream data obtained by acquiring a video by using a virtual network CAMERA (IP CAMERA, IPC for short) and performing compression coding on the video; the video data to be detected can be video data obtained by decoding video code stream data, and the correctness of video decoding can be determined through the video to be detected. Optionally, the video code stream data may be code stream data acquired in real time. Specifically, the IPC may be fixed first, the resolution of the IPC is set to 1920 × 1080, the lens of the IPC is aligned to a Video scene without people stream and without large change, the Video stream data may be collected after the scene is set, and then the stream data is transmitted to a Network Video Recorder (Network Video Recorder, NVR, Network hard disk Recorder, NVR may decode the received Video stream data, and connect the decoded Video data to be detected to a local Video capture card through a VGA or HDMI connection manner, so as to realize the transmission of the Video data to be detected between the NVR and the local Video capture card, and obtain the decoded Video data to be detected.
And step S110, intercepting a target picture according to the video data to be detected.
The target picture may be a video image corresponding to a certain time point in the video data to be detected. Optionally, the target picture may be acquired according to a requirement. For example, assume that an acquisition time t is required0Can then be at t0And intercepting a corresponding video image from the decoded video data to be detected at any moment, thereby obtaining a target picture.
And step S120, calculating a target characteristic value according to the target picture.
The target feature value may be a color feature vector corresponding to the target picture. Optionally, the feature value decomposition may be performed on the target image, a plurality of feature values of the target image may be extracted by using methods such as a color histogram or a gray level histogram, and then a required color feature vector may be extracted from the plurality of feature values according to a requirement. The target picture may be represented by a target feature value.
And step S130, determining the decoding correctness of the video data to be detected according to the preset characteristic value and the target characteristic value.
The preset feature value may be a preset color feature vector of the target image. Optionally, the target image may be analyzed before detection, and the preset feature value obtained by analysis may be stored in the local storage deviceIn the ground, assume the target image is t0The video image corresponding to the moment can be extracted from the local0And extracting the color characteristic vector of the actual image according to the actual image corresponding to the moment, so that a preset characteristic value can be obtained. The preset characteristic value and the target characteristic value can be compared to obtain the similarity between the preset characteristic value and the target characteristic value, whether the calculated target characteristic value is similar to the actual color characteristic vector or not is judged, if the similarity between the calculated target characteristic value and the actual color characteristic vector is higher, the current target image can be judged to be correct, and therefore the decoding test of the video data to be detected can be judged to be passed; if the similarity degree of the target image and the target image is low, the current target image can be judged to be abnormal, so that the decoding test of the video data to be detected can be judged not to pass, the abnormal condition can be stored, and a tester can conveniently check and detect the reason of the abnormal condition.
The video decoding detection method comprises the steps of firstly obtaining video code stream data, decoding the video code stream data to obtain video data to be detected, then intercepting a target picture according to the video data to be detected, then calculating a target characteristic value according to the target picture, and finally determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value, so that whether a video decoding graph is correct or not can be judged efficiently and accurately, and the reliability of a video decoding detection result is improved.
In some embodiments of the present invention, determining the decoding correctness of the video data to be detected according to the preset feature value and the target feature value includes:
and calculating the cosine similarity of the target according to the preset characteristic value and the target characteristic value. The target cosine similarity may be a similarity between two vectors of the preset feature value and the target feature value obtained by calculation. Optionally, whether the two vectors point to the same direction approximately may be determined by calculating a cosine value of an included angle between the preset feature value and the target feature value, so that the similarity between the two vectors may be measured. For example, assume that the preset characteristic value is
Figure BDA0002868296630000061
Assuming a target characteristic value of
Figure BDA0002868296630000062
Assuming that the target cosine similarity is cos θ, the cos θ can be calculated by the following formula:
Figure BDA0002868296630000063
from which preset characteristic values can be derived
Figure BDA0002868296630000064
And a target characteristic value of
Figure BDA0002868296630000065
The target cosine similarity cos θ between.
And comparing the magnitude relation between a preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected. The preset threshold is a preset critical value corresponding to the target cosine similarity. Optionally, the preset threshold may be set according to requirements. The value range of the target cosine similarity cos θ may be set to [ -1, 1], and assuming that the preset threshold y is 0.9, the magnitude relationship between the target cosine similarity cos θ and the preset threshold y may be compared. For example, a magnitude relation of cos θ < y, or a magnitude relation of cos θ ═ y, or a magnitude relation of cos θ > y may be obtained, and the decoding correctness of the video data to be detected may be determined by the magnitude relation between the two. Specifically, if and only if the target cosine similarity cos θ is greater than the preset threshold y, it may be determined that the similarity between the preset feature value and the target feature value is high, and thus it may be determined that the target image is similar to the actual image, so that it may be determined that the decoding test of the video data to be detected passes, or else it may be determined that the decoding test of the video data to be detected does not pass, and the abnormal condition that does not pass may be stored locally. By calculating the target cosine similarity between the preset characteristic value and the target characteristic value and then comparing the magnitude relation between the target cosine similarity and the preset threshold value, the decoding correctness of the video data to be detected is determined, whether the target image obtained by decoding is abnormal or not can be accurately detected, the problem that the automatic test of the network video recorder cannot detect whether the decoded image is correct or not is solved, and the reliability of the detection result is improved.
In some embodiments of the present invention, comparing a size relationship between a preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected includes:
and if the target cosine similarity is larger than a preset threshold value, determining that the decoding is normal. Optionally, assuming that the target cosine similarity is cos θ, assuming that a preset threshold y corresponding to the target cosine similarity is 0.9, if cos θ is greater than 0.9, it may be determined that the degree of similarity between the target characteristic value and the preset characteristic value is higher, and thus it may be determined that the degree of similarity between the target image obtained by decoding and the actual image is higher, and thus it may be determined that the decoding of the video data to be detected is normal. And determining that the decoding of the video data to be detected is normal according to the fact that the similarity of the target cosine is greater than the preset threshold value, so that the reliability of the detection result can be ensured.
In some embodiments of the present invention, comparing the magnitude relationship between the preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected, further includes:
and if the target cosine similarity is smaller than or equal to a preset threshold value, determining that the decoding is abnormal. Optionally, it is assumed that the target cosine similarity is cos θ, and the preset threshold y corresponding to the target cosine similarity is 0.9, and if cos θ is less than 0.9 or cos θ is 0.9, it may be determined that the degree of similarity between the target feature value and the preset feature value is low, so that it may be determined that the degree of similarity between the target image obtained by decoding and the actual image is low, and thus it may be determined that the video data to be detected is abnormal in decoding. In some specific embodiments, the reason for the decoding anomaly may include: the network video recorder for decoding is displayed with a screen or other abnormal reasons of the image, and the abnormal condition of the decoding abnormality and the abnormal reasons can be stored locally, so that a tester can conveniently check and detect the abnormal reasons, and the abnormal condition can be solved in a targeted manner. And determining the decoding abnormality of the video data to be detected according to the fact that the similarity of the target cosine is smaller than or equal to a preset threshold value, so that the reliability of the detection result can be ensured.
In some embodiments of the present invention, calculating the target feature value according to the target picture includes:
and acquiring a preset color partition, and acquiring a color component of the target picture. The preset color partition may be an area obtained by dividing RGB (RGB color mode is a color standard in the industry, and includes three color components of red (R), green (G), and blue (B)) values of the target picture, and the preset color partition may be multiple; the color components may be three colors of red (R), green (G), and blue (B). Optionally, the preset color partition may be set as required. Since the target picture can be composed of three colors of red, green and blue, the color components of the target picture are red (R), green (G) and blue (B), and each color can take 256 values (the color value range is [0, 255]), so that the 256 values can be divided into 4 partitions: 0 to 63 are areas 0, 64 to 127 are areas 1, 128 to 191 are areas 2, and 192 to 255 are areas 3, thereby obtaining 4 predetermined color sections.
And calculating a pixel number table according to the preset color partition and the color component. The pixel number table may be a table indicating the number of pixels of the target picture. Optionally, a corresponding color histogram of the target picture may be generated according to the preset color partition and the color component, that is, the pixel number table is obtained. For example, assume that the preset color partition is: 0-63 is the 0 th area, 64-127 is the 1 st area, 128-191 is the 2 nd area, 192-255 is the 3 rd area, suppose that the color components of the target picture correspond to 4 preset color partitions respectively, i.e. red (R) corresponds to 4 preset color partitions, green (G) corresponds to 4 preset color partitions, and blue (B) corresponds to 4 color partitions, so that 64 color combinations (i.e. 4) can be formed according to 4 preset color partitions and 3 color components364). As shown in fig. 2, fig. 2 shows 4 pixel count tables respectively corresponding to 64 color combinations in the embodiment of the present invention, and the 0 th region, the 1 st region, the 2 nd region, and the 3 rd region correspond to their corresponding pixel count tables one to one. Taking the first color combination (i.e. the first row) of the pixel number table in the 0 th area as an example, the first color combination includes three colors of red, green and blue, wherein the brightness value corresponding to red is 0, the brightness value corresponding to green is 0, and the brightness value corresponding to blue is 0The corresponding luminance value is 0 and the number of pixels of the first color combination is 7414. By analogy, the luminance value of red, the luminance value of green, the luminance value of blue and the number of pixels thereof for each color combination in the 4-pixel vector table shown in fig. 2 can be obtained.
As can be seen from fig. 2, each color combination contains different numbers of pixels, and therefore the number of pixels corresponding to the target picture can be obtained by looking up from the 4-pixel number table.
And extracting a target characteristic value from the pixel number table. Optionally, since the target picture is also composed of three colors, i.e., red, green, and blue, the color combination of the target picture inevitably belongs to one of 64 color combinations in the pixel number table, and therefore, the target feature value of the target picture can be extracted from the pixel number table. Referring to fig. 2, the last column of pixel numbers in the 4-pixel number table may be extracted to form a 64-dimensional vector (7414,230,0,0,8,. 7, 0,0,3415,53929), and the obtained vector is a feature value of the target picture or a fingerprint of the target picture, i.e., a target feature value. The pixel number scale is calculated through the preset color partition and the color component of the target picture, and then the target characteristic value is extracted from the pixel number scale, so that the target picture can be effectively analyzed, the accurate target characteristic value can be extracted, and the actual reference value of the detection result is improved.
In some embodiments of the present invention, capturing a target picture according to video data to be detected includes:
and acquiring a target time point. The target time point may be a certain time point in the duration of the video data to be detected. Optionally, the target time point may be obtained by performing designated selection according to a requirement, or may be obtained by performing random selection. For example, assuming that the duration of the video data to be detected is m seconds, assuming that the target time point is obtained by random selection, assuming that the randomly selected target time point is nth second, it can be obtained that the target time point is nth second.
And extracting a target picture corresponding to the target time point of the video data to be detected. Optionally, it is assumed that video data to be detected obtained by decoding is obtained in units of minutes, and if the target time point is the nth second of the mth minute, an image corresponding to the nth second of the mth minute of the video data to be detected may be extracted, and a picture is captured, so that the target picture may be obtained. Target pictures are extracted from the video data to be detected through the target time points, the target pictures meeting requirements can be quickly cut out, and the detection efficiency is improved.
In some embodiments of the present invention, obtaining the preset feature value includes:
and acquiring an original picture corresponding to the target time point. The original picture may be an actual image of the video code stream data corresponding to the target time point. Before detecting video code stream data, the video code stream data can be transmitted and stored for a period of time through a network video recorder, and then the video code stream data can be stored according to time points and different channels. Therefore, the image of each time point can be acquired in the video code stream data of each minute by taking the minute as a unit, one original picture is intercepted, and the acquired multiple original pictures are stored according to the time sequence, so that the actual image information corresponding to the video code stream data can be locally stored. Optionally, the actual image corresponding to the same time point may be extracted from the actual image information corresponding to the locally stored video code stream data according to the target time point, so as to obtain the original image corresponding to the target time point.
And calculating a preset characteristic value according to the original picture. Alternatively, a preset feature value may be used to represent the original picture. Calculating a preset characteristic value according to the original picture, specifically: the pixel number table corresponding to the original picture can be calculated according to a preset color partition (assuming that the preset color partition includes 0-63 as the 0 th area, 64-127 as the 1 st area, 128-191 as the 2 nd area, and 192-255 as the 3 rd area) and the color component of the original picture, and then the preset characteristic value can be extracted from the pixel number table corresponding to the original picture. The preset characteristic value is calculated according to the original picture corresponding to the target time point, and the actual characteristic vector corresponding to the target time point can be efficiently and accurately extracted, so that the detection process is more convenient.
The following describes the procedure of a video decoding detection method according to an embodiment of the present invention in detail. It is to be understood that the following description is only exemplary, and not a specific limitation of the invention.
A video decoding detection method, comprising:
(1) the method comprises the steps of obtaining real-time video code stream data through an IPC (internet protocol camera), transmitting the video code stream data to an NVR (network video recorder), and decoding the video code stream data through the NVR to obtain video data.
The IPC is fixed, the lens of the IPC is aligned to a scene without people stream and basically without large change, and the resolution of the IPC can be set to 1920 x 1080, so that the environment that the IPC collects video code stream data is unchanged, and stable video code stream data at different time points are obtained. After the scene is set, the video code stream data can be collected, and then the video code stream data is transmitted to the NVR through the switch for decoding. The NVR receives the video code stream data transmitted by the IPC, can decode the video code stream data, is connected with a video acquisition card by utilizing an HDMI or VGA line, and transmits the decoded video data to the local in real time through the acquisition card. To ensure the stability of detection, the number of split screen images of the NVR can be set to remain unchanged when video decoding detection is performed.
(2) And storing the video data.
The acquired video information is the video data of the entire NVR interface, so that the acquired video information is split according to a single channel. Before video decoding detection is carried out, video data of a period of time can be prestored through the NVR, and the video data are stored according to different time points and different channels. Specifically, an image at a time point may be obtained in each minute of video data and a picture may be captured, for example, a picture corresponding to a target time point is captured, and then a color histogram corresponding to the picture is generated, for example: the method comprises the steps of calculating a pixel number table corresponding to a picture by using a preset color partition (assuming that the preset color partition comprises 0-63 areas 0, 64-127 areas 1, 128-191 areas 2 and 192-255 areas 3) and color components of the picture, extracting preset characteristic values of the picture from the pixel number table, and storing the preset characteristic values and corresponding intercepted pictures locally according to a time sequence.
(3) And analyzing the video data newly acquired by the NVR to obtain a target characteristic value corresponding to the target time point.
The latest real-time video data of the NVR are obtained through a video capture card, then a target picture corresponding to the target time point of the latest video data of the NVR is captured, further, a pixel number scale table corresponding to the target picture can be calculated according to a preset color partition and the color component of the target picture, then a target characteristic value corresponding to the target picture is extracted from the pixel number scale table, for example, the last row in each pixel number scale table is extracted to form a 64-dimensional vector (7414,230,0,0,8, 9,0, 3415,53929), and the vector is the target characteristic value.
(4) And comparing the similarity between the target characteristic value and the preset characteristic value, and judging the correctness of the video decoding detection according to the similarity.
The cosine similarity between the target characteristic value and the preset characteristic value can be calculated, if the cosine similarity between the target characteristic value and the preset characteristic value is greater than 90%, the similarity between the target characteristic value and the preset characteristic value can be determined to be higher, so that the video decoding of the time can be judged to be normal, otherwise, the video decoding of the time is judged to be abnormal, and the abnormal reasons comprise: the NVR has a screen splash or other map abnormal condition. The target characteristic value and the target picture can be stored when the decoding is abnormal, so that a tester can conveniently check the abnormal reason.
The video decoding detection method can efficiently and accurately judge whether the video decoding graph is correct or not, and improves the reliability of the video decoding detection result.
Referring to fig. 3, a video decoding detection apparatus according to an embodiment of the second aspect of the present invention includes:
the acquiring module 300 is configured to acquire video code stream data, and decode the video code stream data to obtain video data to be detected;
the intercepting module 310 is configured to intercept a target picture according to the video data to be detected;
a calculating module 320, configured to calculate a target feature value according to the target picture;
the detection module 330 is configured to determine the decoding correctness of the video data to be detected according to the preset characteristic value and the target characteristic value.
By implementing the video decoding detection method according to the embodiment of the first aspect of the present invention, the above-mentioned video decoding detection apparatus can efficiently and accurately determine whether the video decoding graph is correct, and improve the reliability of the video decoding detection result.
Referring to fig. 4, an embodiment of the third aspect of the present invention further provides a functional module diagram of an electronic device, including: at least one processor 400, and a memory 410 communicatively coupled to the at least one processor 400; and the system also comprises a data transmission module 420, a camera 430 and a display screen 440.
The processor 400 is configured to execute a video decoding detection method in the first embodiment by calling a computer program stored in the memory 410.
The memory, as a non-transitory storage medium, may be used to store a non-transitory software program and a non-transitory computer-executable program, such as a video decoding detection method in the embodiment of the first aspect of the present invention. The processor implements a video decoding detection method in the above-described first embodiment by executing a non-transitory software program and instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a video decoding detection method that is performed in the above-described first aspect embodiment. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Non-transitory software programs and instructions required to implement a video decoding detection method in the above first aspect embodiment are stored in a memory, and when executed by one or more processors, perform a video decoding detection method in the above first aspect embodiment.
Embodiments of the fourth aspect of the present invention also provide a computer-readable storage medium storing computer-executable instructions for: a video decoding detection method in an embodiment of the first aspect is performed.
In some embodiments, the storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one of the processors in the electronic device of the third aspect, and may cause the one or more processors to execute a video decoding detection method in the first aspect.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A video decoding detection method, comprising:
acquiring video code stream data, and decoding the video code stream data to obtain video data to be detected;
intercepting a target picture according to the video data to be detected;
calculating a target characteristic value according to the target picture;
and determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value.
2. The method according to claim 1, wherein the determining the decoding correctness of the video data to be detected according to the preset feature value and the target feature value comprises:
calculating a target cosine similarity according to the preset characteristic value and the target characteristic value;
and comparing the magnitude relation between a preset threshold and the target cosine similarity, and determining the decoding correctness of the video data to be detected.
3. The method according to claim 2, wherein the comparing the magnitude relationship between the preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected comprises:
and if the target cosine similarity is larger than the preset threshold, determining that the decoding is normal.
4. The method according to claim 2, wherein the comparing the magnitude relationship between the preset threshold and the target cosine similarity to determine the decoding correctness of the video data to be detected further comprises:
and if the target cosine similarity is smaller than or equal to the preset threshold, determining that the decoding is abnormal.
5. The method according to claim 1, wherein the calculating a target feature value according to the target picture comprises:
acquiring a preset color partition, and acquiring a color component of the target picture;
calculating a pixel number table according to the preset color partition and the color component;
and extracting the target characteristic value from the pixel number table.
6. The method according to claim 1, wherein said capturing a target picture according to the video data to be detected comprises:
acquiring a target time point;
and extracting the target picture corresponding to the target time point of the video data to be detected.
7. The method according to claim 6, wherein the obtaining the preset feature value comprises:
acquiring an original picture corresponding to the target time point;
and calculating the preset characteristic value according to the original picture.
8. A video decoding detection apparatus, comprising:
the acquisition module is used for acquiring video code stream data and decoding the video code stream data to obtain video data to be detected;
the intercepting module is used for intercepting a target picture according to the video data to be detected;
the calculation module is used for calculating a target characteristic value according to the target picture;
and the detection module is used for determining the decoding correctness of the video data to be detected according to a preset characteristic value and the target characteristic value.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement a video decoding detection method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform a video decoding detection method according to any one of claims 1 to 7.
CN202011596344.5A 2020-12-29 2020-12-29 Video decoding detection method and device, electronic equipment and storage medium Pending CN112738527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011596344.5A CN112738527A (en) 2020-12-29 2020-12-29 Video decoding detection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011596344.5A CN112738527A (en) 2020-12-29 2020-12-29 Video decoding detection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112738527A true CN112738527A (en) 2021-04-30

Family

ID=75611715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011596344.5A Pending CN112738527A (en) 2020-12-29 2020-12-29 Video decoding detection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112738527A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113343033A (en) * 2021-06-29 2021-09-03 平安普惠企业管理有限公司 Video searching method and device, computer equipment and storage medium
CN113766212A (en) * 2021-08-30 2021-12-07 浪潮电子信息产业股份有限公司 Video decoding function test method, test device and test equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090161768A1 (en) * 2007-12-20 2009-06-25 Young-O Park Method and apparatus for video decoding, in the presence of noise
US20100128792A1 (en) * 2008-11-26 2010-05-27 Hitachi Consumer Electronics Co., Ltd. Video decoding method
US20110182361A1 (en) * 2008-09-25 2011-07-28 Renesas Technology Corp. Image decoding method and image coding method
CN102662949A (en) * 2012-02-27 2012-09-12 安科智慧城市技术(中国)有限公司 Method and system for retrieving specified object based on multi-feature fusion
CN108933935A (en) * 2017-05-22 2018-12-04 中兴通讯股份有限公司 Detection method, device, storage medium and the computer equipment of video communication system
CN109947991A (en) * 2017-10-31 2019-06-28 腾讯科技(深圳)有限公司 A kind of extraction method of key frame, device and storage medium
CN110139104A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Video encoding/decoding method, device, computer equipment and storage medium
CN111355950A (en) * 2020-03-13 2020-06-30 随锐科技集团股份有限公司 Video transmission quality detection method and system in real-time video communication
CN111523400A (en) * 2020-03-31 2020-08-11 易视腾科技股份有限公司 Video representative frame extraction method and device
CN111898416A (en) * 2020-06-17 2020-11-06 绍兴埃瓦科技有限公司 Video stream processing method and device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090161768A1 (en) * 2007-12-20 2009-06-25 Young-O Park Method and apparatus for video decoding, in the presence of noise
US20110182361A1 (en) * 2008-09-25 2011-07-28 Renesas Technology Corp. Image decoding method and image coding method
US20100128792A1 (en) * 2008-11-26 2010-05-27 Hitachi Consumer Electronics Co., Ltd. Video decoding method
CN102662949A (en) * 2012-02-27 2012-09-12 安科智慧城市技术(中国)有限公司 Method and system for retrieving specified object based on multi-feature fusion
CN108933935A (en) * 2017-05-22 2018-12-04 中兴通讯股份有限公司 Detection method, device, storage medium and the computer equipment of video communication system
CN109947991A (en) * 2017-10-31 2019-06-28 腾讯科技(深圳)有限公司 A kind of extraction method of key frame, device and storage medium
CN110139104A (en) * 2018-02-09 2019-08-16 腾讯科技(深圳)有限公司 Video encoding/decoding method, device, computer equipment and storage medium
CN111355950A (en) * 2020-03-13 2020-06-30 随锐科技集团股份有限公司 Video transmission quality detection method and system in real-time video communication
CN111523400A (en) * 2020-03-31 2020-08-11 易视腾科技股份有限公司 Video representative frame extraction method and device
CN111898416A (en) * 2020-06-17 2020-11-06 绍兴埃瓦科技有限公司 Video stream processing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113343033A (en) * 2021-06-29 2021-09-03 平安普惠企业管理有限公司 Video searching method and device, computer equipment and storage medium
CN113766212A (en) * 2021-08-30 2021-12-07 浪潮电子信息产业股份有限公司 Video decoding function test method, test device and test equipment

Similar Documents

Publication Publication Date Title
US10943357B2 (en) Video based indoor leak detection
CN112738527A (en) Video decoding detection method and device, electronic equipment and storage medium
JPH0795598A (en) Object tracking device
WO2022237591A1 (en) Moving object identification method and apparatus, electronic device, and readable storage medium
CN108933935A (en) Detection method, device, storage medium and the computer equipment of video communication system
CN107517391B (en) Method and equipment for identifying abnormal live broadcast information in video live broadcast
CN111122490A (en) Indoor gas leakage information acquisition method and device
CN109698906B (en) Image-based jitter processing method and device and video monitoring system
CN110557603A (en) Method and device for monitoring moving target and readable storage medium
WO2023056896A1 (en) Definition determination method and apparatus, and device
CA2860014C (en) Video based indoor leak detection
CN115965889A (en) Video quality assessment data processing method, device and equipment
CN115396705A (en) Screen projection operation verification method, platform and system
CN110896475B (en) Display terminal channel switching detection method and device
CN111325731A (en) Installation detection method and device of remote control device
CN110598754A (en) Online monitoring method, device and equipment based on image detection and storage medium
CN107734278B (en) Video playback method and related device
CN110958448B (en) Video quality evaluation method, device, medium and terminal
CN115457530A (en) External damage prevention method, external damage prevention device and external damage prevention system for power transmission line
CN110381308B (en) System for testing live video processing effect
CN110139063B (en) Method, device and equipment for determining number of video streams supported by equipment
CN110100445B (en) Information processing system, information processing apparatus, and computer readable medium
CN114245186B (en) Control method, device and equipment for multi-screen collaborative playing and readable storage medium
CN114549576B (en) Walking capacity detection method, walking capacity detection device, storage medium and physical examination machine
CN112989866B (en) Object recognition method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination