Video call detection method and device
By taking a screenshot of the video stream rendering layer of the video call window and performing color value detection, the black screen problem caused by the interruption of the video stream during the video call is solved, enabling quick response and placeholder image display when the video call is interrupted, improving user experience. experience.
Patent Information
- Application Number
- CN202410987673.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
AI Technical Summary
During a video call, the video stream is interrupted, resulting in a black screen, which is difficult to effectively solve with existing technology and affects the user experience.
By obtaining the layer screenshot of the video stream rendering layer of the video call window, the color value of the pixel unit is detected. If the detection is abnormal, determine whether the video screenshot is stored, and display the placeholder image on the placeholder layer to avoid the black screen phenomenon. occurrence.
Effectively predict and prevent users from seeing black screens, reduce black screen time, and improve the reliability and user experience of video calls.
Smart Images

Figure CN118741083A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of communication technology, and in particular to a video call detection method and device. Background Art
[0002] With the continuous development of information technology, especially the popularization of mobile Internet and smart terminal devices, video calls and video conferences have become important means of remote communication for people, enabling users to communicate face-to-face online across geographical boundaries, improving the efficiency and experience of remote communication.
[0003] At present, video calls and video conferences face a series of technical challenges in practical applications. In order to ensure the smoothness of video calls and the clarity of the picture, key frame technology is usually used to independently reconstruct the picture at the receiving end, or by detecting the black screen recovery trigger conditions during the video conference, and requesting key frames when the conditions are met to shorten the black screen duration caused by the loss of key frames. Although the above methods have solved the black screen problem during the video process to a certain extent, there are still some limitations. Users will still encounter black screens during the video process. Therefore, how to further improve the reliability of video calls and reduce the occurrence of black screens and other phenomena has become an urgent problem to be solved in the field of video communication technology. Summary of the invention
[0004] An embodiment of the present specification aims to provide a video call detection method and device to solve the problem of a black screen when the video stream is interrupted during a call.
[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:
[0006] In a first aspect, an embodiment of the present specification provides a video call detection method, including:
[0007] Get a layer screenshot of the video stream rendering layer of the call window for the video call;
[0008] Performing color value detection on pixel units in the layer screenshot;
[0009] If the color value detection is abnormal, detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result;
[0010] A placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
[0011] In a second aspect, another embodiment of the present specification provides a video call detection device, including:
[0012] A screenshot acquisition module is configured to acquire a layer screenshot of a video stream rendering layer of a call window for a video call;
[0013] A color value detection module is configured to perform color value detection on pixel units in the layer screenshot;
[0014] A screenshot detection module is configured to detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored if the color value detection is abnormal, and obtain a detection result;
[0015] The layer display module is configured to determine a placeholder image of the video stream rendering layer according to the detection result, and display the placeholder image on the placeholder layer.
[0016] In the third aspect, another embodiment of the present specification provides a video call detection device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the video call detection method as described in the first aspect above.
[0017] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the video call detection method as described in the first aspect above are implemented.
[0018] In a fifth aspect, another embodiment of the present specification provides a computer program product, wherein the computer program product includes a video call detection program, and the video call detection program is executed by a processor to implement the steps of the video call detection method as described in the first aspect above.
[0019] The video call detection method provided in this embodiment first obtains a layer screenshot of the video stream rendering layer of the call window for conducting the video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it is detected whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result. Finally, a placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer. Video call detection is performed by the above method to solve the problem of a black screen displayed when the video stream is interrupted during a call. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A video call detection process flow chart provided for one embodiment of this specification;
[0022] Figure 2 A schematic diagram of a video window provided for one embodiment of this specification;
[0023] Figure 3 A processing flow chart of a video call detection processing method applied to a first video call scenario provided by one embodiment of the present specification;
[0024] Figure 4 A processing flow chart of a video call detection processing method applied to a second video call scenario provided by one embodiment of the present specification;
[0025] Figure 5 A schematic diagram of a video call detection device provided in one embodiment of this specification;
[0026] Figure 6 A schematic diagram of the structure of a video call detection device provided in accordance with an embodiment of the present specification. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0028] This specification provides a video call detection method embodiment:
[0029] Reference Figure 1 , which shows a processing flow chart of a video call detection method provided in this embodiment. The image processing method provided in this embodiment specifically includes the following steps S102 to S108.
[0030] Step S102, obtaining a layer screenshot of the video stream rendering layer of the call window for the video call.
[0031] In this embodiment, in the scenario of a video call or video conference, when a video call or video conference is established, whether it is the initiator or the receiver of the video call, or any one of the multiple participants in the video conference, after receiving the start signaling of the video call or video conference, a layer screenshot of the video stream rendering layer will be effectively obtained, thereby providing basic data for subsequent detection and processing, and at the same time ensuring that when a black screen problem occurs on any party in the video call or video conference, a quick response and measures can be taken.
[0032] In a specific implementation, in order to solve the problem of a black screen displayed when the video stream is interrupted during a call, after initiating a video call interaction, the video stream is received and rendered. When the video stream rendering layer starts to display the video content, the current display content of the video stream rendering layer is obtained, a static layer screenshot is generated, and the layer screenshot is stored for subsequent color value detection and placeholder layer display. In an optional implementation manner provided by this embodiment, before the layer screenshot operation of obtaining the video stream rendering layer of the call window for the video call is performed, the following steps are included:
[0033] Obtaining a current video code stream of the video call, and comparing the current video code stream with a previous video code stream;
[0034] If the comparison results are consistent, the step of obtaining a layer screenshot of the video stream rendering layer of the call window for the video call is performed;
[0035] If the comparison results are inconsistent, the placeholder layer is hidden, a screenshot of the current video stream is taken, and the obtained video screenshot is stored.
[0036] The video stream rendering layer described in this embodiment refers to a layer used to render and display the received video data in real time during a video call or video conference; the placeholder layer refers to a layer used to display a substitute image when the video stream rendering layer cannot be displayed normally during a video call.
[0037] Specifically, during a video call, the video code stream will be continuously received and processed. In order to ensure the continuity and stability of the video screen, the data value of the video code stream within each preset time will be recorded. When the detection timer is triggered, the data value of the current video code stream will be obtained and compared with the data value of the video code stream at the previous preset time. If the comparison results of the data values of the video code stream are consistent, it means that the video code stream has not been updated and there may be a black screen. At this time, a layer screenshot acquisition operation will be performed to further determine whether a black screen actually occurs; if the comparison results of the data values of the video code stream are inconsistent, it means that the video code stream is being updated and the video screen is normal, then the placeholder layer will be hidden, indicating that the video screen is displayed normally, and a screenshot of the video stream rendering layer under the current video code stream will be taken as an image displayed on the placeholder layer when a black screen may occur later. Through the above process, not only can a prediction be made before a black screen appears on the video screen, and relevant measures can be taken in time, thereby avoiding users from seeing a black screen during a video call and improving user experience, but also by storing the layer screenshots, the placeholder layer can be quickly switched to when a black screen occurs, thereby reducing the time of the black screen.
[0038] In this embodiment, before taking a screenshot of the layer of the video stream rendering layer of the call window for conducting a video call and storing it, it is necessary to obtain the data value of the video code stream detected this time for the video call and the data value of the video code stream detected by the timer last time, and compare the two data values; specifically, in an optional implementation manner provided by this embodiment, a detection timer can be started after establishing a video call, and when the detection timer is started, the process of obtaining a screenshot of the layer of the video stream rendering layer of the call window for conducting the video call is executed, and this cycle is repeated.
[0039] The detection timer described in this embodiment refers to a timer set during a video call, which is used to periodically trigger the layer screenshot acquisition and color value detection operations of the video stream rendering layer. Specifically, at the beginning of a video call, a detection timer is set, and its triggering period is set, for example, once every 2 seconds, so as to ensure regular inspection of the video stream rendering layer, so as to timely discover and deal with possible black screen problems. By setting the detection timer, continuous monitoring of the video stream rendering layer is achieved, and possible black screen problems can be discovered in time and measures can be taken to avoid users seeing a black screen.
[0040] Step S104, performing color value detection on pixel units in the layer screenshot.
[0041] After obtaining the layer screenshot of the video stream rendering layer, the layer screenshot is reduced and the bitmap data of the reduced layer screenshot is read. The color values of each pixel unit are determined according to the bitmap data, and it is detected whether each color value is less than or equal to a preset color value threshold. In this way, it is detected whether a black screen state occurs during the call interaction process.
[0042] In a specific execution process, after obtaining a layer screenshot of a video stream rendering layer, bitmap data of the relevant layer screenshot is obtained, and by reading and detecting each color value of each pixel unit in the bitmap data, it is determined whether a black screen state occurs during a video call. In an optional implementation manner provided by this embodiment, color value detection is performed on pixel units in the layer screenshot, including:
[0043] The layer screenshot is reduced to obtain bitmap data of the reduced screenshot;
[0044] Reading each color value of each pixel unit in the bitmap data, and detecting whether each color value of each pixel unit is less than or equal to a preset color value threshold;
[0045] If so, it is determined that the color value detection is abnormal; if not, it is determined that the color value detection is normal.
[0046] For example, first obtain a real-time layer screenshot of the video stream rendering layer during a video call, then reduce the layer screenshot to 50*50 pixels to reduce the calculation amount of subsequent color value detection, and then obtain the bitmap data of the reduced layer screenshot, and read the RGB color value data of each pixel unit in the bitmap data, and detect whether the RGB (Red-Green-Blue) value of each pixel unit is less than or equal to a preset color value threshold (which can be 1). If so, it is determined that the color value detection is abnormal, that is, the layer screenshot of the current video stream rendering layer is pure black, that is, the current video layer is in a black screen state. At this time, the placeholder layer is notified to display the corresponding placeholder image, thereby avoiding the user from seeing the black screen and enhancing the continuity of the video call; if not, it is determined that the color value detection is normal.
[0047] Furthermore, after determining that the color value detection is normal by comparing each color value of each pixel unit in the layer screenshot with a preset color value threshold, in an optional implementation manner provided by this embodiment, after performing the color value detection operation on the pixel unit in the layer screenshot, the method further includes:
[0048] If the color value detection is normal, the placeholder layer is hidden, a screenshot of the current video stream is taken, and the obtained video screenshot is stored.
[0049] Specifically, based on the layer screenshot of the scaled-down video stream rendering layer, the relevant bitmap data is obtained and the color value data of each pixel unit in the bitmap data is read. If it is detected that the color value data of each pixel unit is greater than the preset color value threshold, it is determined that the color value detection is normal, that is, the layer screenshot is not pure black, indicating that the video stream rendering layer displays the video screen normally. At this time, the placeholder layer will be hidden to ensure that the user sees the normal video screen. At the same time, the video stream rendering layer of the current video code stream will be screenshoted and stored, so that when a black screen state appears subsequently, the most recent normal video screen can be quickly displayed as a placeholder image.
[0050] As described above, after the video call is established, a pre-set detection timer is started. After the timer is started, the video stream rendering layer is detected every preset time, and the current state of the video stream rendering layer is collected. At the same time, a layer screenshot of the current video stream rendering layer is obtained and stored, and color value detection is performed on the pixel units in the layer screenshot, so as to ensure that abnormal video images can be discovered and handled in time during the video call. Specifically, in an optional implementation manner provided by the present embodiment, a detection timer may be started after the video call is established. When the detection timer is started, a layer screenshot of the video stream rendering layer of the call window for the video call is obtained and stored, and color value detection is performed on the pixel units in the layer screenshot, and the cycle is repeated.
[0051] The detection timer described in this embodiment refers to a timer set during a video call, which is used to periodically trigger the layer screenshot acquisition and color value detection operations of the video stream rendering layer. Specifically, at the beginning of a video call, a detection timer is set, and its triggering period is set, for example, once every 2 seconds, so as to ensure regular inspection of the video stream rendering layer, so as to timely discover and deal with possible black screen problems. By setting the detection timer, continuous monitoring of the video stream rendering layer is achieved, and possible black screen problems can be discovered in time and measures can be taken to avoid users seeing a black screen.
[0052] Step S106, if the color value detection is abnormal, detect whether there is a video screenshot of the video code stream displayed in the video stream rendering layer stored to obtain a detection result.
[0053] After obtaining the layer screenshot of the video stream rendering layer of the call window for the video call and performing color value detection on the pixel units in the layer screenshot, in this step, based on the obtained color value detection result, if the color value detection is abnormal, it is further detected whether a video screenshot of the video code stream displayed in the video stream rendering layer is stored, and the detection result is obtained.
[0054] Optionally, the layer screenshots include video screenshots and exception screenshots;
[0055] The video screenshot is obtained by taking a screenshot of the current video code stream while hiding the placeholder layer; and the abnormal screenshot is obtained by taking a screenshot of the video stream rendering layer while displaying the placeholder layer.
[0056] Specifically, during a video call, when the video stream rendering layer is displayed normally, the current video code stream will be captured in real time and stored as a video screenshot. That is, after receiving the signaling notification of starting the video from the remote end, if a change in the video code stream is detected, indicating that the video stream rendering layer screen can be displayed normally, the placeholder layer will be hidden, and a screenshot of the current video stream rendering layer, i.e., the video screenshot, will be obtained and cached. When an abnormality occurs in the video stream rendering layer and there is a stored video screenshot, a screenshot of the video stream rendering layer in the current abnormal state will be obtained, i.e., the abnormal screenshot.
[0057] It should be noted that when the color value of the pixel unit in the layer screenshot is detected to be normal during the color value detection process, the operation of obtaining the video screenshot will also be performed, so that the video screenshot can be used when a black screen may occur later.
[0058] Step S108, determining a placeholder image of the video stream rendering layer according to the detection result, and displaying the placeholder image on the placeholder layer.
[0059] After taking a screenshot of the layer of the video stream rendering layer during the video call, a color value detection is performed on the layer, and when the color value detection is abnormal, it is further detected whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored. After obtaining the detection result, in this step, a placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
[0060] Optionally, in this embodiment, the placeholder layer refers to a layer located above the video stream rendering layer in the video call window, which is used to display a placeholder image when the video stream rendering layer cannot display a normal picture, such as Figure 2 As shown, the placeholder layer 201 is located above the video stream rendering layer 202; the placeholder image refers to an image used to replace the black screen state when the video stream rendering layer cannot display the video screen normally during a video call, which can be a user avatar or a screenshot of a previous normal video screen.
[0061] In the specific implementation, firstly, it is detected whether there is a video screenshot stored, and it is determined whether there is an available video screenshot when the color value detection is abnormal according to the detection result. If there is a video screenshot stored, the stored video screenshot is used as a placeholder image, and the placeholder image is displayed on the placeholder layer;
[0062] Optionally, the placeholder layer is above the video stream rendering layer; based on this, during the display of the placeholder layer, a placeholder image is displayed on the placeholder layer;
[0063] In addition, the placeholder layer and the video stream rendering layer can also be displayed in an alternating manner. In this case, during the display of the placeholder layer, the video stream rendering layer is hidden, and after the video stream rendering layer is hidden, the placeholder layer is displayed, and a placeholder image is displayed in the placeholder layer; and so on, after the placeholder layer is displayed, the placeholder layer is hidden, the video stream rendering layer is redisplayed, and a screenshot of the video stream rendering layer is reacquired and stored as a new video screenshot. During the specific execution process, in order for the user interface to still provide visual feedback and maintain the continuity and integrity of the user interface when the video stream is interrupted or the screen is black, an optional implementation method provided in this embodiment determines the placeholder image displayed on the placeholder layer above the video stream rendering layer based on the detection results, including:
[0064] If the detection result is that the video screenshot is stored, displaying the video screenshot on the placeholder layer;
[0065] If the detection result is that the video screenshot is not stored, a call image logo of the user conducting the video call is displayed on the placeholder layer.
[0066] In this embodiment, the call image identifier refers to a user avatar or other identification image that is used to replace the video screen display when the video call is not started or a black screen appears on the video stream rendering layer.
[0067] In specific implementation, during a video call, when a black screen state is detected in the video stream rendering layer, it will further detect whether there is a screenshot of the previous normal video screen. If there is a video screenshot, the video screenshot will be displayed on the placeholder layer to cover the black screen and maintain the continuity and integrity of the user interface; if there is no video screenshot, the user's call image logo, such as the user's avatar, will be displayed on the placeholder layer to provide visual feedback and inform the user of the status of the current video call.
[0068] For example, in a remote video conference, if the video stream is suddenly interrupted due to network problems, resulting in a black screen, the system will detect whether a screenshot of the previous normal video screen is stored. If it is stored, the video screenshot of the previous meeting will be automatically displayed on the placeholder layer, so that the meeting participants can see the previous meeting screen, thereby reducing the impact of the meeting interruption; if the video screenshot is not stored, the participant's avatar will be displayed to inform other participants that the participant is still online, but the video cannot be displayed temporarily, thereby maintaining the continuity and integrity of the user interface.
[0069] It should be noted that after the video call is established and the placeholder layer is displayed, after the placeholder layer displays the avatars of the users participating in the video call, the timer detection is entered. If it is detected that the timer is started, the video stream rendering layer is detected every preset time, and the current state of the video stream rendering layer is collected. At the same time, a layer screenshot of the current video stream rendering layer is obtained and stored, and color value detection is performed on the pixel units in the layer screenshot, so as to realize the detection of the video code stream of the video call through the cyclic detection of the timer.
[0070] To summarize, the video call detection method provided in this embodiment first obtains a layer screenshot of the video stream rendering layer of the call window for conducting a video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it is detected whether a video screenshot of the video code stream displayed in the video stream rendering layer is stored. If it is stored, the video screenshot is displayed on the placeholder layer; if it is not stored, the call image logo of the user conducting the video call is displayed on the placeholder layer; in addition, if the color value detection is normal, the placeholder layer is hidden, and a video screenshot of the current video code stream is obtained and stored. Through the above process, the problem of displaying a black screen when the video stream is interrupted during a call is solved.
[0071] The following combination Figure 3 , taking the application of the video call detection method provided by this embodiment in the black screen detection scenario as an example, the video call detection method provided by this embodiment is further described. Figure 3 The video call detection method applied to the first video call detection scenario specifically includes steps S302 to S320.
[0072] Step S302: receiving a signaling notification from a remote end to start a video application, establishing a video call, and displaying a call window in the video application.
[0073] Step S304: display a placeholder layer, which displays the user's avatar.
[0074] Step S306: If it is detected that the timer is started, the current video stream of the video call is obtained.
[0075] Step S308, detecting whether the current video code stream is consistent with the previous video code stream, if not, executing step S310; if so, executing step S312.
[0076] Step S310, display the video screen normally, hide the placeholder layer, and obtain and cache the video screenshot of the current video stream.
[0077] Step S312, obtaining a layer screenshot of the video stream rendering layer of the call window for the video call.
[0078] Step S314, detect whether the RGB value of the pixel unit in the layer screenshot is abnormal, that is, detect whether the video stream rendering layer screen is black, if not, execute step S310; if so, execute step S316.
[0079] Step S316, checking whether there is a video screenshot of the stored video stream, if so, executing step S318; if not, executing step S320.
[0080] Step S318, displaying a placeholder layer, the placeholder layer displays the video screenshot.
[0081] Step S320: display a placeholder layer, where the placeholder layer displays the user avatar of the initiator or receiver of the video call.
[0082] It should be noted that after step S310, step S318 or step S320 is executed, the timer detection is entered. If it is detected that the timer is started, the above steps S306 to S320 are repeated, so as to detect the video code stream of the video call through the cyclic detection of the timer.
[0083] The video call detection method provided in this embodiment first obtains a layer screenshot of the video stream rendering layer of the call window for conducting the video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it is detected whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result. Finally, a placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer. Video call detection is performed by the above method to solve the problem of a black screen displayed when the video stream is interrupted during a call.
[0084] In addition, the video call detection method provided in this embodiment can also be implemented in the following manner in the second video call detection scenario: Figure 4 , taking the application of the video call detection method provided by this embodiment in the second video call detection scenario as an example, another video call detection method provided by this embodiment is further described. Figure 4 The video call detection method applied to the second video call detection scenario specifically includes steps S402 to S416.
[0085] Step S402: establishing a call window for the group video call based on the group video call instruction sent by the participating video application.
[0086] Step S404: display a placeholder layer, where the placeholder layer displays avatars of the users participating in the group video call.
[0087] Step S406: If it is detected that the timer is started, a layer screenshot of the video stream rendering layer of the call window for the video call is obtained.
[0088] Step S408, detect whether the RGB value of the pixel unit in the layer screenshot is abnormal, that is, detect whether the video stream rendering layer screen is black, if not, execute step S410; if so, execute step S412.
[0089] Step S410, display the video screen normally, hide the placeholder layer, and obtain and cache the video screenshot of the current video stream.
[0090] Step S412, check whether there is a video screenshot of the video stream rendering layer stored, if so, execute step S414; if not, execute step S416.
[0091] Step S414, displaying a placeholder layer, the placeholder layer displays the video screenshot.
[0092] Step S416: display a placeholder layer, where the placeholder layer displays the avatars of the users participating in the group video call.
[0093] It should be noted that after step S410, step S414 or step S416 is executed, the timer detection is entered. If it is detected that the timer is started, the above steps S406 to S416 are repeated, so as to detect the video code stream of the video call through the cyclic detection of the timer.
[0094] It should be noted that the implementation of the above-mentioned video call detection method can first obtain the video code stream of the video call before detecting the black screen state of the video stream rendering layer, and detect the video rendering state in combination with the video code stream. It is also possible not to obtain the video code stream of the video call and directly detect whether the video stream rendering layer is in a black screen state. The two methods are based on the same inventive concept and the repeated parts will not be repeated here.
[0095] Figure 5 A schematic diagram of a number recognition device provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the device comprises:
[0096] A screenshot acquisition module 502 is configured to acquire a layer screenshot of a video stream rendering layer of a call window for a video call;
[0097] A color value detection module 504 is configured to perform color value detection on pixel units in the layer screenshot;
[0098] The screenshot detection module 506 is configured to detect whether a video screenshot of the video code stream displayed in the video stream rendering layer is stored if the color value detection is abnormal, and obtain a detection result;
[0099] The layer display module 508 is configured to determine a placeholder image of the video stream rendering layer according to the detection result, and display the placeholder image on the placeholder layer.
[0100] The video call detection device provided in this embodiment firstly runs the screenshot acquisition module 502 to obtain the layer screenshot of the video stream rendering layer of the call window for conducting the video call, and then runs the color value detection module 504 to perform color value detection on the pixel units in the layer screenshot, and then runs the screenshot detection module 506. If the color value detection is abnormal, it is detected whether there is a video screenshot of the video code stream displayed on the video stream rendering layer stored to obtain the detection result, and finally runs the layer display module 508 to determine the placeholder layer of the video stream rendering layer according to the detection result, and display the placeholder layer on the placeholder layer. The video call detection is performed by the above method to solve the problem of displaying a black screen when the video stream is interrupted during the call.
[0101] The video call detection device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0102] Furthermore, an embodiment of the present specification also provides a video call detection device, Figure 6 A schematic diagram of a number identification device provided in one embodiment of this specification is shown in FIG. Figure 6 As shown, the device includes: a memory 601, a processor 602, a bus 603 and a communication interface 604. The memory 601, the processor 602 and the communication interface 604 communicate through the bus 603, and the communication interface 604 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.
[0103] Figure 6 In the embodiment, the memory 601 stores computer executable instructions that can be run on the processor 602. When the computer executable instructions are executed by the processor 602, the following process is implemented:
[0104] Get a layer screenshot of the video stream rendering layer of the call window for the video call;
[0105] Performing color value detection on pixel units in the layer screenshot;
[0106] If the color value detection is abnormal, detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result;
[0107] A placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
[0108] The number recognition device provided in this embodiment, through the cooperation of the memory 601, the processor 602, the bus 603 and the communication interface 604, first obtains the layer screenshot of the video stream rendering layer of the call window for the video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it detects whether there is a video screenshot of the video code stream displayed in the video stream rendering layer, obtains the detection result, and finally determines the placeholder image of the video stream rendering layer according to the detection result, and displays the placeholder image in the placeholder layer. The video call detection device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same function and effect, which will not be repeated here.
[0109] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:
[0110] Get a layer screenshot of the video stream rendering layer of the call window for the video call;
[0111] Performing color value detection on pixel units in the layer screenshot;
[0112] If the color value detection is abnormal, detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result;
[0113] A placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
[0114] The computer-readable storage medium provided in this embodiment first obtains a layer screenshot of the video stream rendering layer of the call window for conducting a video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it detects whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result, and finally determines a placeholder image of the video stream rendering layer based on the detection result, and displays the placeholder image on the placeholder layer.
[0115] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0116] The computer-readable storage medium provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0117] Furthermore, another embodiment of the present specification also provides a computer program product, which implements the following process when executed by a processor:
[0118] Get a layer screenshot of the video stream rendering layer of the call window for the video call;
[0119] Performing color value detection on pixel units in the layer screenshot;
[0120] If the color value detection is abnormal, detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result;
[0121] A placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
[0122] The computer program product provided in this embodiment first obtains a layer screenshot of the video stream rendering layer of the call window for conducting a video call, and then performs color value detection on the pixel units in the layer screenshot. If the color value detection is abnormal, it detects whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored, obtains the detection result, and finally determines a placeholder image of the video stream rendering layer based on the detection result, and displays the placeholder image on the placeholder layer.
[0123] The computer program product provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0124] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0129] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0130] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0133] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A video call detection method, It is characterized in that include: Get a layer screenshot of the video stream rendering layer of the call window for the video call; Performing color value detection on pixel units in the layer screenshot; If the color value detection is abnormal, detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored to obtain a detection result; A placeholder image of the video stream rendering layer is determined according to the detection result, and the placeholder image is displayed on the placeholder layer.
2. The video call detection method according to claim 1, It is characterized in that Before the step of obtaining a layer screenshot of the video stream rendering layer of the call window for the video call is performed, the method includes: Obtaining a current video code stream of the video call, and comparing the current video code stream with a previous video code stream; If the comparison results are consistent, the step of obtaining a layer screenshot of the video stream rendering layer of the call window for the video call is performed; If the comparison results are inconsistent, the placeholder layer is hidden, a screenshot of the current video stream is taken, and the obtained video screenshot is stored.
3. The video call detection method according to claim 1, It is characterized in that The color value detection of the pixel units in the layer screenshot includes: The layer screenshot is reduced to obtain bitmap data of the reduced screenshot; Reading each color value of each pixel unit in the bitmap data, and detecting whether each color value of each pixel unit is less than or equal to a preset color value threshold; If so, it is determined that the color value detection is abnormal; if not, it is determined that the color value detection is normal.
4. The video call detection method according to claim 1, It is characterized in that After the step of performing color value detection on the pixel units in the layer screenshot is performed, the method further includes: If the color value detection is normal, the placeholder layer is hidden, a screenshot of the current video stream is taken, and the obtained video screenshot is stored.
5. The video call detection method according to claim 1, It is characterized in that The step of determining, according to the detection result, a placeholder image to be displayed on a placeholder layer located above the video stream rendering layer comprises: If the detection result is that the video screenshot is stored, displaying the video screenshot on the placeholder layer; If the detection result is that the video screenshot is not stored, a call image logo of the user making the video call is displayed on the placeholder layer.
6. The video call detection method according to any one of claims 1 to 5, It is characterized in that The layer screenshots, including video screenshots and exception screenshots; The video screenshot is obtained by taking a screenshot of the current video stream while hiding the placeholder layer; The abnormal screenshot is obtained by taking a screenshot of the video stream rendering layer while displaying the placeholder layer.
7. A video call detection device, It is characterized in that include: A screenshot acquisition module is configured to acquire a layer screenshot of a video stream rendering layer of a call window for a video call; A color value detection module is configured to perform color value detection on pixel units in the layer screenshot; A screenshot detection module is configured to detect whether a video screenshot of the video code stream displayed on the video stream rendering layer is stored if the color value detection is abnormal, and obtain a detection result; The layer display module is configured to determine a placeholder image of the video stream rendering layer according to the detection result, and display the placeholder image on the placeholder layer.
8. A video call detection device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed on the processor, the steps of the method described in any one of claims 1 to 6 can be implemented.
9. A computer-readable storage medium having computer-executable instructions stored therein, It is characterized in that When the computer executable instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 can be implemented.
10. A computer program product, It is characterized in that The computer program product includes a video call detection program, and when the video call detection program is executed by a processor, the steps of the method described in any one of claims 1 to 6 can be implemented.
Citation Information
Cited By
Remote video missing processing method and related device
CN121567923A
A method and related device for processing a remote video loss
CN121567923B
