CN115942032A - Multimedia interface detection method, device, equipment and storage medium - Google Patents

Multimedia interface detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN115942032A
CN115942032A CN202211652329.7A CN202211652329A CN115942032A CN 115942032 A CN115942032 A CN 115942032A CN 202211652329 A CN202211652329 A CN 202211652329A CN 115942032 A CN115942032 A CN 115942032A
Authority
CN
China
Prior art keywords
multimedia interface
output signal
top box
effective value
stable
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
CN202211652329.7A
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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology 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 Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202211652329.7A priority Critical patent/CN115942032A/en
Publication of CN115942032A publication Critical patent/CN115942032A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for detecting a multimedia interface, wherein the method for detecting the multimedia interface comprises the following steps: when the set top box outputs a signal, determining whether the multimedia interface output signal is stable according to a line effective value and a field effective value of the multimedia interface output signal of the set top box; when the output signal of the multimedia interface is determined to be unstable, outputting alarm information; and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box and carrying out target detection on the data to be detected. According to the method and the device, the HDMI signals output by the set top box are detected in real time, the target detection is carried out on the image under the condition that the HDMI signals are stable, the target detection can be carried out on the image to be detected under the condition that the output signals of the multimedia interface are stable, and therefore the user experience is improved.

Description

Multimedia interface detection method, device, equipment and storage medium
Technical Field
The present application relates to the field of set top box technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting a multimedia interface.
Background
With the advent of the era of High-Definition television, in order to adapt to the High bandwidth of High-Definition television, a High-Definition Multimedia Interface (HDMI) has appeared, which can provide very High bandwidth to realize lossless transmission of digital video signals, and a set-top box is also configured with a Multimedia Interface output end in a manner of adapting to the HDMI, and can support multi-frequency multi-resolution output.
However, in the using process of the set-top box, there may be a situation that the output signal of the multimedia interface is unstable, thereby causing distortion of the output image, and the existing set-top box in the market has a single function, and the above problems existing in the current set-top box all cause certain influence on the user experience.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a device and a storage medium for detecting a multimedia interface, and aims to solve the problem that user experience is affected due to unstable output signals and single function of the multimedia interface.
In order to achieve the above object, the present application provides a method for detecting a multimedia interface, where the method for detecting a multimedia interface includes:
determining whether the multimedia interface output signal is stable according to the current line effective value and the current field effective value of the multimedia interface output signal;
when the output signal of the multimedia interface is determined to be unstable, outputting alarm information;
and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box, and carrying out target detection on the data to be detected.
In some possible embodiments, the step of determining whether the multimedia interface output signal of the set top box is stable according to the current line effective value and the current field effective value of the multimedia interface output signal includes:
detecting the current line effective value and the current field effective value of the output signal of the multimedia interface in real time;
calculating a first difference between the current row effective value and the preset row effective value based on fixed frequency in a preset time length, and counting a first time of the first difference being greater than a first threshold;
calculating a second difference value between the current field effective value and the preset field effective value based on the fixed frequency within a preset time length, and counting a second time that the second difference value is greater than a second threshold value;
and judging whether the output signal of the multimedia interface is stable or not according to the first time or the second time.
In some possible embodiments, the step of determining whether the multimedia interface output signal is stable according to the first number or the second number includes:
if the first time or the second time exceeds a third threshold, determining that the output signal of the multimedia interface is unstable;
and if the first time and the second time do not exceed the third threshold, determining that the output signal of the multimedia interface is stable.
In some possible embodiments, the outputting the warning information includes continuously displaying preset warning information through a graphical user interface, and after the outputting the warning information, the method further includes:
and when the output signal of the multimedia interface is stable, stopping displaying the alarm information on the graphical interface.
In some possible embodiments, the step of obtaining data to be detected of the set top box and performing target detection on the data to be detected includes:
and acquiring data to be detected of the set top box, and inputting the data to be detected into a preset target detection model to obtain a detection result output by the target detection model.
In some possible embodiments, the target detection model is yolov5 model with an added detection layer.
In some possible embodiments, the method for detecting a multimedia interface further includes:
acquiring an image set with a specific target, and preprocessing the image set to obtain a training set;
and training the yolov5 model through the training set to obtain the target detection model.
In addition, to achieve the above object, the present application further provides a device for detecting a multimedia interface, where the device for detecting a multimedia interface includes:
the detection module is used for determining whether the output signal of the multimedia interface is stable or not according to the effective value of the current line and the effective value of the current field of the output signal of the multimedia interface;
the alarm module is used for outputting alarm information when the output signal of the multimedia interface is determined to be unstable;
and the target detection module is used for acquiring the data to be detected of the set top box and carrying out target detection on the data to be detected when the output signal of the multimedia interface is determined to be stable.
Wherein, each functional module of the detection device of the multimedia interface can realize the steps of the detection method of the multimedia interface as described in any one of the above when operating.
In addition, to achieve the above object, the present application further provides a set top box device, where the set top box device includes: the detection program of the multimedia interface is stored on the memory and can be operated on the processor, and when being executed by the processor, the detection program of the multimedia interface realizes the steps of the detection method of the multimedia interface.
The application also provides a storage medium, wherein a detection program of the multimedia interface is stored on the storage medium, and the detection program of the multimedia interface realizes the steps of the detection method of the multimedia interface when being executed by a processor.
The application provides a method, a device, equipment and a storage medium for detecting a multimedia interface, wherein the method for detecting the multimedia interface comprises the following steps: determining whether the multimedia interface output signal is stable according to the current line effective value and the current field effective value of the multimedia interface output signal; when the output signal of the multimedia interface is determined to be unstable, outputting alarm information; and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box, and carrying out target detection on the data to be detected.
Compared with the set top box which cannot detect the output state of the multimedia interface and has a single function in the current market, the detection method of the multimedia interface can detect whether the output signal of the multimedia interface of the set top box is stable in real time, and can output an alarm signal to a user when the output signal of the multimedia interface is detected to be unstable, so that the set top box can detect the state of the output signal of the multimedia interface in real time, a user can restart the set top box or check the connection state of the multimedia interface when the output signal of the multimedia interface is unstable, the output image is not distorted finally, and then when the output signal of the multimedia interface is stable, the target detection can be performed on the obtained data to be detected when the user performs target identification on a screenshot at a television end, the interactivity with the user is increased, and the use experience of the user is improved.
Therefore, the set top box output multimedia interface output signal is detected in real time, the image is subjected to target detection under the condition that the multimedia interface output signal is detected to be stable, the target detection can be performed on the image to be detected under the condition that the output image is not distorted, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic device structure diagram of a device hardware operating environment according to an embodiment of a multimedia interface detection method of the present application;
FIG. 2 is a flowchart illustrating a first embodiment of a method for detecting a multimedia interface according to the present application;
FIG. 3 is a schematic diagram illustrating device connections according to an embodiment of a method for detecting a multimedia interface of the present application;
FIG. 4 is a flowchart illustrating a second embodiment of a method for detecting a multimedia interface according to the present application;
FIG. 5 is a flowchart illustrating a method for detecting a multimedia interface according to a third embodiment of the present invention;
fig. 6 is a functional block diagram of an embodiment of the apparatus of the present application.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, as the key device of the current smart television, with the coming of the era of high definition television, in order to adapt to the high bandwidth of the high definition television, a high definition multimedia interface HDMI is provided, which can provide a very high bandwidth to implement lossless transmission of digital video signals, and the set top box is also provided with a multimedia interface output end in a manner of adapting to the HDMI, and can support multi-frequency and multi-resolution output.
The set top box on the market at present only has the function of video playing usually, however, in the use of set top box, the condition that multimedia interface output signal is unstable may exist to lead to image distortion, and, the function of current set top box on the market is comparatively single, does not combine with artificial intelligence, lacks the interactive experience with the user, and the problem that above-mentioned current set top box exists all can cause certain influence to user's experience.
In order to solve the above problem, the present application provides a method, an apparatus, a device and a storage medium for detecting a multimedia interface, where the method for detecting a multimedia interface includes: when the set-top box outputs signals, determining whether the multimedia interface output signals are stable or not according to the current line effective value and the current field effective value of the multimedia interface output signals of the set-top box; when the output signal of the multimedia interface is determined to be unstable, outputting alarm information; and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box and carrying out target detection on the data to be detected.
Compared with the set top box which cannot detect the output state of the multimedia interface and has a single function in the market at present, the detection method of the multimedia interface can detect whether the output signal of the multimedia interface of the set top box is stable in real time, and can output an alarm signal to a user when the output signal of the multimedia interface is not stable, so that the set top box can detect the state of the output signal of the multimedia interface in real time, a user can restart the set top box or check the connection state of the multimedia interface when the output signal of the multimedia interface is not stable, the output image is not distorted finally, then, when the output signal of the multimedia interface is stable, the target detection can be performed on the obtained data to be detected when the user performs target identification on screenshot at the television end, the interactivity with the user is increased, and the use experience of the user is improved.
Therefore, the method and the device have the advantages that the multimedia interface output signal output by the set top box is detected in real time, the target detection is carried out on the image under the condition that the multimedia interface output signal is stable, the target detection can be carried out on the image to be detected under the condition that the multimedia interface output signal is stable, and the user experience is improved.
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a set-top box device in a hardware operating environment according to an embodiment of the present application.
The terminal in the embodiment of the application may be a set top box, or may be a mobile terminal device having an Audio and video playing function, such as a television, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a portable computer, and the like, in which the set top box is disposed inside.
As shown in fig. 1, the set-top box device may include a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Optionally, the set-top box device may further include a rectangular user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so forth. The rectangular user interface may comprise a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional rectangular user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WIFI interface).
Those skilled in the art will appreciate that the set-top box device configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating device, a network communication module, and a detection program of a multimedia interface. The operating means is a program for managing and controlling the hardware and software resources of the set-top box device, a detection program for supporting the multimedia interface, and the operation of other software and/or programs. The network communication module is used to enable communication between the various components within the memory 1005, as well as with other hardware and software in the set-top box device.
In the set-top box device shown in fig. 1, the processor 1001 is configured to execute the detection program of the multimedia interface stored in the memory 1005, and execute the following steps:
determining whether the multimedia interface output signal is stable according to the current line effective value and the current field effective value of the multimedia interface output signal;
when the output signal of the multimedia interface is determined to be unstable, outputting alarm information;
and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box, and carrying out target detection on the data to be detected.
In some possible embodiments, said step of determining whether said multimedia interface output signal is stable according to a current line effective value and a current field effective value of said multimedia interface output signal of said set top box comprises:
detecting the current line effective value and the current field effective value of the output signal of the multimedia interface in real time;
calculating a first difference value between the current row effective value and the preset row effective value based on fixed frequency in a preset time length, and counting a first time of the first difference value being greater than a first threshold value;
calculating a second difference value between the current field effective value and the preset field effective value based on the fixed frequency within a preset time length, and counting a second time that the second difference value is greater than a second threshold value;
and judging whether the output signal of the multimedia interface is stable or not according to the first time or the second time.
In some possible embodiments, the step of determining whether the multimedia interface output signal is stable according to the first number or the second number includes:
if the first time or the second time exceeds a third threshold, determining that the output signal of the multimedia interface is unstable;
and if the first time and the second time do not exceed the third threshold, determining that the output signal of the multimedia interface is stable.
In some possible embodiments, the outputting the warning information includes continuously displaying preset warning information through a graphical user interface, and after the outputting the warning information, the method further includes:
and when the output signal of the multimedia interface is restored to be stable, stopping displaying the alarm information on the graphical interface.
In some possible embodiments, the step of obtaining data to be detected of the set top box and performing target detection on the data to be detected includes:
and acquiring data to be detected of the set top box, and inputting the data to be detected into a preset target detection model to obtain a detection result output by the target detection model.
In some possible embodiments, the target detection model is yolov5 model with an added detection layer.
In some possible embodiments, the method for detecting a multimedia interface further includes:
acquiring an image set with a specific target, and preprocessing the image set to obtain a training set;
and training the yolov5 model through the training set to obtain the target detection model.
Based on the above hardware structure of the set-top box device of the present application, a first embodiment of the method for detecting a multimedia interface of the present application is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for detecting a multimedia interface according to a first embodiment of the present application. It should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
In addition, in this embodiment, the execution subject of the detection method of the multimedia interface of the present application may be the set top box itself. For convenience of illustration and reading and understanding, the first embodiment of the multimedia interface detection method of the present application is described below with a set-top box as an implementation subject.
As shown in fig. 2, in a first embodiment of the method for detecting a multimedia interface of the present application, the method for detecting a multimedia interface of the present application specifically includes the following steps:
step S10, determining whether the output signal of the multimedia interface is stable according to the effective value of the current line and the effective value of the current field of the output signal of the multimedia interface;
it should be noted that, in this embodiment, the multimedia interface is an HDMI interface, please refer to fig. 3, and fig. 3 is a schematic device connection diagram of an embodiment of the detection method for a multimedia interface of the present application, as shown in fig. 3, a set-top box device is connected to a television set supporting multiple HDMI resolution display functions, but the connection mode of the set-top box device is not limited, and the set-top box device may also be connected to other devices supporting HDMI input.
In this embodiment, when the user uses the set-top box, the set-top box device outputs the multimedia interface output signal to the television through the HDMI output terminal, and detects the current line effective value and the current field effective value of the multimedia interface output signal in real time to determine whether the multimedia interface output signal is stable.
Step S20, when the output signal of the multimedia interface is determined to be unstable, alarm information is output;
in this embodiment, when it is determined that the multimedia interface output signal is unstable through the current line effective value and the current field effective value of the multimedia interface output signal, the set-top box device immediately outputs an alarm signal to a user through a currently connected television, that is, the set-top box device continuously displays a preset alarm signal on a graphical user interface output by the television to the user, so that the user finds the abnormality of the multimedia interface output signal in time, and thus, the set-top box device restarts or performs a stability check operation on the HDMI port connection state.
And S30, acquiring data to be detected of the set top box when the output signal of the multimedia interface is determined to be stable, and carrying out target detection on the data to be detected.
In this embodiment, when the set-top box device determines that the multimedia interface output signal is stable through the current line effective value and the current field effective value of the multimedia interface output signal, that is, further, when there is no distortion in the image output to the television for display, the set-top box device takes the image selected by the user as required (the image selected by the user and required to perform target identification) as the data to be detected, so as to obtain the data to be detected for performing target detection operation.
Further, in another possible embodiment, the outputting, by the set-top box device, the warning information to the television set includes: the preset alarm information is continuously displayed through the graphical user interface, and based on this, after the step of "outputting alarm information" in the step S20, the method for detecting a multimedia interface of the present application may further include:
and S40, when the output signal of the multimedia interface is stable, stopping displaying the alarm information on the graphical interface.
In this embodiment, after the set-top box device outputs the warning information to the user through the graphical user interface displayed on the front-end screen of the television, the television continuously displays the warning information. Therefore, if the set-top box device determines that the output signal of the multimedia interface is stable again through the real-time detection, the set-top box device immediately stops continuously displaying the alarm information on the front-end screen of the television.
In this embodiment, compared with a set top box which cannot detect the HDMI output state and has a single function in the current market, the detection method of the multimedia interface of the present application can detect whether the output signal of the multimedia interface of the set top box is stable in real time, and can output an alarm signal to a user when the output signal of the multimedia interface is detected to be unstable, so that the set top box can detect the state of the output signal of the multimedia interface in real time, so that the user can restart the set top box or check the connection state of the multimedia interface when the output signal of the multimedia interface is unstable, and finally, the output image is not distorted.
Therefore, the method and the device carry out real-time detection on the multimedia interface output by the set top box, and carry out target detection on the image under the condition that the output signal of the multimedia interface is stable, so that the target detection can be carried out on the image to be detected under the condition that the output image is not distorted, and the use experience of a user is improved.
Further, based on the above first embodiment of the method for detecting a multimedia interface of the present application, a second embodiment of the method for detecting a multimedia interface of the present application is provided.
In a second embodiment of the method for detecting a multimedia interface of the present application, the step S10 "determining whether a multimedia interface output signal of the set top box is stable according to a current line effective value and a current field effective value of the multimedia interface output signal" may specifically include:
step S11, detecting the current line effective value and the current field effective value of the output signal of the multimedia interface in real time;
it should be noted that, in this embodiment, the current line valid value of the multimedia interface output signal refers to: the value of the horizontal effective pixel point, and the current field effective value of the multimedia interface output signal means: the value of the vertical effective pixel point.
In this embodiment, when the set-top box device outputs the multimedia interface output signal through the output terminal, the set-top box device immediately and synchronously starts to perform real-time detection on the current line effective value and the current field effective value of the multimedia interface output signal based on the fixed frequency.
Step S12, calculating a first difference value between the current row effective value and the preset row effective value based on fixed frequency in a preset time length, and counting a first time that the first difference value is greater than a first threshold value;
step S13, calculating a second difference value between the current field effective value and the preset field effective value based on fixed frequency in a preset time length, and counting a second time that the second difference value is greater than a second threshold value;
note that, in the present embodiment, the preset line effective value and the preset field effective value are set in accordance with the standard HDMI resolution specified in the VESA standard.
In this embodiment, after detecting the current line effective value and the current field effective value of the multimedia interface output signal in real time based on the fixed frequency, the set top box device immediately calculates a difference between the current line effective value and the preset line effective value and processes an absolute difference value to obtain a first difference value, and counts a first number of times that the first difference value is greater than a first threshold value.
And S14, judging whether the output signal of the multimedia interface is stable or not according to the first time or the second time.
In this embodiment, after obtaining the first number of times and the second number of times, the set-top box device determines that the multimedia interface output signal detected in real time is unstable when the first number of times or the second number of times is abnormal by detecting whether the first number of times and the second number of times are abnormal, and determines that the multimedia interface output signal is stable only when neither the first number of times nor the second number of times is abnormal.
Further, in another possible embodiment, in the step S14, the step of determining whether the output signal of the multimedia interface is stable according to the first number or the second number may specifically include:
step S141, if the first number of times or the second number of times exceeds a third threshold, determining that the output signal of the multimedia interface is unstable;
step S142, if neither the first number of times nor the second number of times exceeds the third threshold, determining that the output signal of the multimedia interface is stable.
In this embodiment, after obtaining the first number of times and the second number of times, in a preset time, if the first number of times or the second number of times exceeds a third threshold, it is determined that an output signal of the multimedia interface is unstable, and only when both the first number of times and the second number of times exceed the third threshold, it is determined that the output signal of the multimedia interface is stable.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for detecting a multimedia interface according to a second embodiment of the present application. As shown in fig. 4, when the set top box outputs a signal, every 100ms, the current row effective value (reactive) and the current field effective value (reactive) of the set top box multimedia interface output signal are detected, and at the same time, the absolute value of the difference between the current row effective value and the preset row effective value is obtained to obtain a first difference value, and the absolute value of the difference between the current field effective value and the preset field effective value is obtained to obtain a second difference value, and within 1s, if the number of times that the first difference value is greater than 3, or the number of times that the second difference value is greater than 3, the multimedia interface output signal is considered to be abnormal, that is, the multimedia interface output signal is unstable, at this time, a box is popped on the television set immediately, and the box is continuously displayed, so as to report abnormal information to the user.
In this embodiment, the present application detects the stability of the output signal of the multimedia interface of the set-top box in real time, and outputs an alarm signal to a user when detecting that the output signal of the multimedia interface is unstable, so that the set-top box can detect the state of the output signal of the multimedia interface in real time, and output an alarm message to the user when the signal is unstable.
Compared with the existing set top box in the market, even most of devices using HDMI for video transmission do not have the function of detecting the multimedia output interface, and the instability of the output signal of the multimedia interface cannot be identified, so that the problem of image distortion can be caused.
Further, based on the first embodiment and/or the second embodiment of the method for detecting a multimedia interface of the present application, a third embodiment of the method for detecting a multimedia interface of the present application is provided.
In a third embodiment of the method for detecting a multimedia interface of the present application, the step of "obtaining data to be detected of a set top box and performing target detection on the data to be detected" in the step S30 may specifically include:
and S31, acquiring data to be detected of the set top box, and inputting the data to be detected into a preset target detection model to obtain a detection result output by the target detection model.
In this embodiment, when the output signal of the multimedia interface of the set-top box is stable, the user may capture a screenshot on the television device, so that the set-top box device may identify the captured image to obtain the target in the image. That is, after the user captures the image, the set top box device acquires the image captured by the user as to-be-detected data which needs to be subjected to target identification detection at present, and then further inputs the to-be-detected data into a preset target detection model, so that a detection result of the target detection for the to-be-detected data is output by performing identification detection processing on the to-be-detected image based on the target detection model.
Further, in a possible embodiment, in the detection method of the multimedia interface of the present application, the target detection model is yolov5 model with an added detection layer.
In the present embodiment, the yolov5 model is a conventional algorithm model for recognizing an image.
In this embodiment, the set top box device or a design developer of the set top box device improves on an existing yolov5 model to obtain the above target detection model for target recognition detection of the data to be detected by improving the accuracy of the model in image detection.
Further, in a possible embodiment, the method for detecting a multimedia interface of the present application further includes:
a1, collecting an image set with a specific target, and preprocessing the image set to obtain a training set;
in this embodiment, the set-top box device or a design developer of the set-top box device first acquires an image set having a specific target (e.g., a vehicle, house, dog, etc.) and then preprocesses the image set to obtain a training set for model training.
And A2, training the yolov5 model through the training set to obtain the target detection model.
In this embodiment, the set top box device or a design developer of the set top box device adds a detection layer for detecting a small target in the yolov5 model, so as to improve the accuracy of target detection performed by the model to obtain an improved detection network. The method comprises the steps that a design developer of the set top box equipment or the set top box equipment trains an improved detection network to obtain a trained detection network based on a training set obtained by preprocessing the image set, then the design developer of the set top box equipment or the set top box equipment further combines the trained detection network with an improved loss function, so that the difficulty of image recognition is increased by improving the complexity of a sample, the detection accuracy of the trained detection network for detecting a target is improved to obtain a target detection model, and then the design developer of the set top box equipment or the set top box equipment can carry out subsequent target detection operation by carrying the target detection model on the set top box equipment.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a method for detecting a multimedia interface according to a third embodiment of the present application. As shown in fig. 5, first, an image set with a specific target is collected and preprocessed to construct a training set, then, based on the yolov5 model, a detection layer for detecting a small target is added to the yolov5 model, for example, the minimum detection resolution of the yolov5 model before being improved is 640 x 640, and the minimum detection resolution of the yolov5 model after being improved is 160 x 160, so that the yolov5 model has a significant improvement on the detection accuracy of the small target, after the detection layer is added to the yolov5 model, an improved detection network is obtained, then, the detection network is trained based on the pre-processed training set to obtain a trained detection network, and the trained detection network is combined with an improved loss function, where the loss function is as follows:
Figure BDA0004011187440000131
FL is a simple form of focal loss, namely a loss function for processing sample classification imbalance, pt reflects the degree of proximity to the category y, the classification is more accurate when pt is larger, and gamma is an adjustable factor. The trained detection network is combined with the improved loss function, so that the image detection accuracy of the trained detection network can be improved, a target detection model is finally obtained, the target detection model is carried on set top box equipment, when a user captures a picture through a television, the set top box equipment obtains data to be detected, detects the data to be detected based on the target detection model, and outputs a detection result to the user through the television.
In this embodiment, when the output signal of the multimedia interface is stable, the detection method of the multimedia interface according to the present application improves on the basis of the yolov5 model to obtain a target detection model, and identifies the image captured by the user based on the target detection model.
Compared with the existing set top box with single function in the market, the detection method of the multimedia interface adds the target detection function on the set top box equipment, increases the interactivity with the user, meets the requirements of the user in the aspect of artificial intelligence, and improves the use experience of the user.
In addition, the present application further provides a detection device for a multimedia interface, and it should be noted that the detection device for the multimedia interface is a virtual device.
As shown in fig. 6, the apparatus for detecting a multimedia interface of the present application includes:
a detection module 10, configured to determine whether the multimedia interface output signal is stable according to a current line effective value and a current field effective value of the multimedia interface output signal;
the alarm module 20 is used for outputting alarm information when the output signal of the multimedia interface is determined to be unstable;
and the target detection module 30 is configured to, when it is determined that the multimedia interface output signal is stable, obtain data to be detected of the set top box, and perform target detection on the data to be detected.
Optionally, the detection module 10 comprises:
the detection unit is used for detecting the current line effective value and the current field effective value of the output signal of the multimedia interface in real time;
the calculating unit is used for calculating a first difference value between the current row effective value and the preset row effective value based on fixed frequency in a preset time length and counting a first time of the first difference value being greater than a first threshold value; calculating a second difference value between the current field effective value and the preset field effective value based on the fixed frequency within a preset time length, and counting a second time that the second difference value is greater than a second threshold value;
and the judging unit is used for judging whether the output signal of the multimedia interface is stable or not according to the first time or the second time.
Optionally, the judging unit includes:
the stability judging subunit is configured to determine that the output signal of the multimedia interface is unstable if the first number of times or the second number of times exceeds a third threshold; and if the first time and the second time do not exceed the third threshold, determining that the output signal of the multimedia interface is stable.
Optionally, the apparatus for detecting a multimedia interface of the present application further includes:
and the recovery module is used for stopping displaying the alarm information on the graphical interface when the output signal of the multimedia interface is recovered to be stable.
Optionally, the object detection module comprises:
and the target detection unit is used for acquiring data to be detected of the set top box and inputting the data to be detected into a preset target detection model to obtain a detection result output by the target detection model.
Optionally, the target detection module further comprises:
the image acquisition unit is used for acquiring an image set with a specific target and preprocessing the image set to obtain a training set;
and the training subunit is used for training the yolov5 model through the training set to obtain the target detection model.
The specific implementation of the detection apparatus for a multimedia interface of the present application is substantially the same as the embodiments of the detection method for a multimedia interface, and is not described herein again.
In addition, this application also proposes a set-top box device, which includes: memory, processor and a detection program of a multimedia interface stored on the memory and operable on the processor, the detection program of a multimedia interface of the device implementing the steps of the detection method of a multimedia interface as described in any of the above embodiments when executed by the processor.
The specific embodiment of the device of the present application is substantially the same as the embodiments of the method for detecting a multimedia interface, and will not be described herein again.
In addition, the present application also provides a storage medium, in which a program for detecting a multimedia interface is stored, and the detection program of the multimedia interface realizes the steps of the method for detecting a multimedia interface of the present application when being executed by a processor.
The specific embodiment of the computer storage medium of the present application is substantially the same as the embodiments of the detection method of the multimedia interface, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, a set-top box, or a network device) to execute the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for detecting a multimedia interface, the method comprising:
determining whether the multimedia interface output signal is stable according to the current line effective value and the current field effective value of the multimedia interface output signal;
when the output signal of the multimedia interface is determined to be unstable, outputting alarm information;
and when the output signal of the multimedia interface is determined to be stable, acquiring the data to be detected of the set top box, and carrying out target detection on the data to be detected.
2. The method for detecting a multimedia interface according to claim 1, wherein the step of determining whether the multimedia interface output signal of the set top box is stable according to the current line effective value and the current field effective value comprises:
detecting the current line effective value and the current field effective value of the output signal of the multimedia interface in real time;
calculating a first difference value between the current row effective value and a preset row effective value based on fixed frequency in a preset time length, and counting a first time of the first difference value being greater than a first threshold value;
calculating a second difference value between the current field effective value and a preset field effective value based on fixed frequency in a preset time length, and counting a second time of the second difference value being greater than a second threshold value;
and judging whether the output signal of the multimedia interface is stable or not according to the first time or the second time.
3. The method according to claim 2, wherein the step of determining whether the output signal of the multimedia interface is stable according to the first number or the second number comprises:
if the first time or the second time exceeds a third threshold, determining that the output signal of the multimedia interface is unstable;
and if the first time and the second time do not exceed the third threshold, determining that the output signal of the multimedia interface is stable.
4. The method for detecting the multimedia interface according to claim 1, wherein the alarm information comprises a preset alarm information continuously presented through a graphical user interface;
after the step of outputting the alarm information, the method further comprises:
and when the output signal of the multimedia interface is stable, stopping displaying the alarm information on the graphical interface.
5. The method for detecting the multimedia interface according to claim 1, wherein the step of obtaining the data to be detected of the set top box and performing the target detection on the data to be detected comprises:
and acquiring data to be detected of the set top box, and inputting the data to be detected into a preset target detection model to obtain a detection result output by the target detection model.
6. The method of claim 5, wherein the target detection model is yolov5 model with an added detection layer.
7. The method for detecting a multimedia interface according to claim 6, further comprising:
acquiring an image set with a specific target, and preprocessing the image set to obtain a training set;
and training the yolov5 model through the training set to obtain the target detection model.
8. A device for detecting a multimedia interface, the device comprising:
the detection module is used for determining whether the output signal of the multimedia interface is stable or not according to the current line effective value and the current field effective value of the output signal of the multimedia interface;
the alarm module is used for outputting alarm information when the output signal of the multimedia interface is determined to be unstable;
and the target detection module is used for acquiring the data to be detected of the set top box and carrying out target detection on the data to be detected when the output signal of the multimedia interface is determined to be stable.
9. A set-top box device, comprising: memory, processor and a multimedia interface detection program stored on the memory and executable on the processor, the multimedia interface detection program, when executed by the processor, implementing the steps of the multimedia interface detection method according to any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium stores thereon a detection program of a multimedia interface, which when executed by a processor implements the steps of the detection method of a multimedia interface according to any one of claims 1 to 7.
CN202211652329.7A 2022-12-21 2022-12-21 Multimedia interface detection method, device, equipment and storage medium Pending CN115942032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211652329.7A CN115942032A (en) 2022-12-21 2022-12-21 Multimedia interface detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211652329.7A CN115942032A (en) 2022-12-21 2022-12-21 Multimedia interface detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115942032A true CN115942032A (en) 2023-04-07

Family

ID=86652224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211652329.7A Pending CN115942032A (en) 2022-12-21 2022-12-21 Multimedia interface detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115942032A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102944730A (en) * 2012-11-05 2013-02-27 深圳创维-Rgb电子有限公司 Automatic detection device for voltage abnormal state
CN106019172A (en) * 2016-05-24 2016-10-12 深圳创维数字技术有限公司 STB (set top box) performance parameter detection-display system and method
CN107810640A (en) * 2016-11-03 2018-03-16 深圳市柔宇科技有限公司 Multi-media signal abnormality eliminating method and display device
CN112004127A (en) * 2020-08-27 2020-11-27 海信视像科技股份有限公司 Signal state display method and display equipment
CN115457469A (en) * 2022-09-09 2022-12-09 广东工业大学 Mask and safety helmet wearing simultaneous detection method based on improved YOLOv5

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102944730A (en) * 2012-11-05 2013-02-27 深圳创维-Rgb电子有限公司 Automatic detection device for voltage abnormal state
CN106019172A (en) * 2016-05-24 2016-10-12 深圳创维数字技术有限公司 STB (set top box) performance parameter detection-display system and method
CN107810640A (en) * 2016-11-03 2018-03-16 深圳市柔宇科技有限公司 Multi-media signal abnormality eliminating method and display device
CN112004127A (en) * 2020-08-27 2020-11-27 海信视像科技股份有限公司 Signal state display method and display equipment
CN115457469A (en) * 2022-09-09 2022-12-09 广东工业大学 Mask and safety helmet wearing simultaneous detection method based on improved YOLOv5

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CAIFENG ZHANG; AIMIN XIONG; XUSONG LUO; CHAOWEI ZHOU; JINGFENG LIANG: "Electric Bicycle Detection Based on Improved YOLOv5", 《2022 4TH INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTER TECHNOLOGY, INFORMATION SCIENCE AND COMMUNICATIONS (CTISC)》, 15 August 2022 (2022-08-15), pages 1 - 5 *
TSUNG-YI LIN; PRIYA GOYAL; ROSS GIRSHICK; KAIMING HE; PIOTR DOLLÁR: "Focal Loss for Dense Object Detection", 《2017 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV)》, 25 December 2017 (2017-12-25), pages 2999 - 3007 *
博客园网友 AIHGF: "Focal Loss 论文理解及公式推导", Retrieved from the Internet <URL:https://blog.csdn.net/zziahgf/article/details/83589973> *

Similar Documents

Publication Publication Date Title
CN110070063B (en) Target object motion recognition method and device and electronic equipment
CN107566749B (en) Shooting method and mobile terminal
KR20140045897A (en) Device and method for media stream recognition based on visual image matching
US20220248102A1 (en) Subtitle border-crossing processing method and apparatus, and electronic device
CN110796664B (en) Image processing method, device, electronic equipment and computer readable storage medium
WO2021179856A1 (en) Content recognition method and apparatus, electronic device, and storage medium
CN111694978A (en) Image similarity detection method and device, storage medium and electronic equipment
US20230316529A1 (en) Image processing method and apparatus, device and storage medium
CN115396705B (en) Screen operation verification method, platform and system
CN104469178A (en) Image display method and electronic device
CN111753679A (en) Micro-motion monitoring method, device, equipment and computer readable storage medium
CN114332925A (en) Method, system and device for detecting pets in elevator and computer readable storage medium
CN110650309B (en) Video conference video image transmission method, terminal and readable storage medium
CN110222576B (en) Boxing action recognition method and device and electronic equipment
CN107391661B (en) Recommended word display method and device
CN115942032A (en) Multimedia interface detection method, device, equipment and storage medium
CN110751120A (en) Detection method and device and electronic equipment
CN114489549B (en) Screen projection image processing method and device, electronic equipment and storage medium
CN116342940A (en) Image approval method, device, medium and equipment
CN111985423A (en) Living body detection method, living body detection device, living body detection equipment and readable storage medium
CN111353929A (en) Image processing method and device and electronic equipment
CN111343391A (en) Video capture method and electronic device using same
CN114727011B (en) Image pickup optimization method, device, electronic equipment and readable storage medium
CN112995488B (en) High-resolution video image processing method and device and electronic equipment
WO2022267696A1 (en) Content recognition method and apparatus, electronic device, and 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