Video processing method and apparatus
The method and device enhance video communication by displaying camera images and superimposing additional information in real-time on chat pages, addressing the limitations of conventional video communication methods.
Patent Information
- Application Number
- JP2023507881
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-09
- Filing Date
- 2021-09-24
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-09-24
AI Technical Summary
Conventional video communication methods lack real-time performance and fail to integrate additional information such as chat content and notification during video display.
A method and device that display images collected by a camera in real-time on a chat page, superimpose additional information in a preset area, and transmit these images as video frames to another terminal, allowing simultaneous display of images and additional information on both terminals.
Enhances video communication by providing real-time image display with integrated additional information, improving user interaction and reducing operational complexity.
Smart Images

Figure 0007534532000006 
Figure 0007534532000001 
Figure 0007534532000012
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD Embodiments of the present disclosure relate to the field of computers and network communication technologies, and in particular to video processing methods, apparatuses, electronic devices, computer-readable storage media, computer program products, and computer programs. [Background technology]
[0002] With the rapid development of computer and network communication technology, various social applications have appeared, in which users can communicate with each other through voice, video, text, etc. Since video communication has visibility, the use of video communication in social applications is gradually increasing.
[0003] Conventionally, a video communication method provided by a social application mainly involves: first, on a terminal of user A, receiving a video request initiated by user A in a social application, and then transferring the video request to a terminal where user B is located; then, on the terminal where user B is located, receiving a response confirmation command from user B, sending a response confirmation message to the terminal used by user A; finally, on the terminal used by user A, transmitting the collected video to the terminal where user B is located, so as to display only the video on the terminal where user B is located; and, on the terminal used by user B, transmitting the collected video to the terminal used by user A, so as to display only the video on the terminal where user A is located.
[0004] After reviewing the prior art, the applicants found that the conventional video display method is single and affects the display of remaining information such as chat contents between users A and B, notification information, etc. Summary of the Invention [Problem to be solved by the invention]
[0005] SUMMARY OF THE DISCLOSURE The embodiments of the present disclosure provide a video processing method, an apparatus, an electronic device, a computer-readable storage medium, a computer program product, and a computer program to solve the problem of poor real-time performance of conventional video communication methods. [Means for solving the problem]
[0006] In a first aspect, an embodiment of the present disclosure provides a video processing method applied to a first terminal, the method comprising: detecting an operation command from a first user; The method includes a step of: in response to the operation command, displaying an image collected by a camera of the first terminal on a chat page between the first user and a second user in real time, and overlaying remaining information other than the image in a preset area on the image; and transmitting the image collected by the camera of the first terminal to a second terminal in real time as a video frame, whereby the second terminal displays the image on a chat page between the second user and the first user in real time, and overlaying remaining information other than the image in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0007] In a second aspect, an embodiment of the present disclosure provides a video processing device adapted for a first terminal, the device comprising: an operation command detection module for detecting an operation command of a first user; an operation command response module used to respond to the operation command, for displaying an image collected by a camera of the first terminal on a chat page between the first user and a second user in real time, and overlaying remaining information other than the image in a preset area on the image, and for transmitting the image collected by the camera of the first terminal as a video frame to a second terminal in real time, thereby causing the second terminal to display the image on a chat page between the second user and the first user in real time, and overlaying remaining information other than the image in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising at least one processor and a memory; The memory stores computer executable instructions, By executing computer-executable instructions stored in the memory, the at least one processor performs the first aspect above and various of the video processing methods that may be related to the first aspect.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, perform the first aspect and various of the video processing methods potentially related to the first aspect.
[0010] In a fifth aspect, an embodiment of the present disclosure provides a computer program product including computer-executable instructions, which, when executed by a processor, perform the video processing method according to the first aspect and various possible designs of the first aspect.
[0011] In a sixth aspect, an embodiment of the present disclosure provides a computer program product, which, when executed by a processor, performs the video processing method according to the first aspect and various possible designs of the first aspect.
[0012] The video processing method and apparatus provided in this embodiment are applied to a first terminal, and the method can display an image collected by a camera of the first terminal on a chat page, and display remaining information such as chat content superimposed on the image, and can also transmit the image to a second terminal to be similarly displayed on the second terminal, thereby providing a new video display method for the first and second users during video communication, helping to diversify video display, and not affecting the display of remaining information for the first and second users.
[0013] In order to more clearly describe the embodiments of the present disclosure or the means in the prior art, the following briefly introduces drawings necessary for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings from these drawings without creative labor. [Brief description of the drawings]
[0014] [Figure 1] 1 is a schematic flowchart of a video processing method provided in an embodiment of the present disclosure. [Diagram 2] FIG. 1 is an exemplary diagram of a chat page displayed on a first terminal provided in an embodiment of the present disclosure; [Diagram 3] FIG. 1 is an exemplary diagram of a chat page displayed on a second terminal provided in an embodiment of the present disclosure; [Figure 4] FIG. 2 is an exemplary diagram illustrating a chat page displayed on a first terminal provided in an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a diagram illustrating an example of a user list in the prior art. [Figure 6] FIG. 11 is an illustrative diagram of a user list displayed on a first terminal provided in an embodiment of the present disclosure. [Figure 7] FIG. 13 is an exemplary diagram of displaying a video request on a second terminal provided in an embodiment of the present disclosure. [Figure 8] FIG. 11 is another example diagram of displaying a video request on a second terminal provided in an embodiment of the present disclosure. [Figure 9] FIG. 3 is an example diagram of a chat page displayed on a first terminal provided in an embodiment of the present disclosure; [Figure 10] FIG. 2 is an exemplary diagram showing a chat page displayed on a second terminal provided in an embodiment of the present disclosure; [Figure 11] FIG. 2 is a block diagram of the structure of a video processing device provided in an embodiment of the present disclosure. [Figure 12] FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure, but it is clear that the described embodiments are only a part of the embodiments of the present disclosure, and are not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative labor all belong to the protection scope of the present disclosure.
[0016] Referring to Fig. 1, Fig. 1 is a schematic flowchart 1 of a video processing method provided in an embodiment of the present disclosure. The method in this embodiment is applicable to a first terminal, where the first terminal is a terminal device that transmits video, and the video processing method includes S101 and S102.
[0017] In S101, an operation command from a first user is detected.
[0018] Here, the operation command is a command for transmitting video initiated by a first user on a first terminal, and specifically is generated when the user operates a video control displayed on the first terminal.
[0019] In S102, in response to the operation command, an image collected by a camera of the first terminal is displayed in real time on a chat page between the first user and a second user, and remaining information other than the image is superimposed in a preset area on the image, and the image collected by the camera of the first terminal is transmitted in real time to a second terminal as a video frame, whereby the second terminal displays the image on a chat page between the second user and the first user in real time, and remaining information other than the image is superimposed in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0020] Specifically, the first terminal activates a camera to collect images, and each time an image of a frame is collected, it transmits the image of the frame to the second terminal, and then the first terminal transmits successive images to the second terminal, and these successive images are displayed on the second terminal to form a video, and the image of each frame of the video is called a video frame.
[0021] Here, the chat page on the first terminal includes residual information between the first user and the second user, the residual information includes, but is not limited to, dialogue information and notification information, and the dialogue information may be in the form of voice, text, picture, video clip, etc. As shown in Fig. 2, the first user sends text information to the second user, "I had dinner with our high school classmate, Akira, today," and then the second user replies to the first user, "I won't believe it without a picture," and finally, the first user operates the first video control after sending the information, "I'll show you," to the second user, and then starts the camera of the first terminal, then starts the first camera to collect images, and starts to display the collected images on the chat page in real time, and the image displayed in Fig. 2 may be an image of Akira.
[0022] In addition, notification information is also displayed on the chat page of the first terminal. As shown in FIG. 2, after the first user operates the first video control, notification information stating “Real-time screen sharing is being started” is displayed on the first terminal; after the camera is started, notification information stating “Real-time screen sharing has started” is displayed on the first terminal; and after the second user receives the real-time screen sharing on the second terminal, notification information stating “The other party has viewed the real-time screen sharing” is displayed.
[0023] Corresponding to the chat page shown in Fig. 2, the chat page of the second terminal also displays dialogue information, notification information, and images correspondingly, and as shown in Fig. 3, the chat page displays the dialogue information between the first user and the second user and the image sent by the first terminal. In addition, notification information is further displayed on the chat page of the second terminal, and after the first user operates the first video control on the first terminal, the chat page of the second terminal displays the notification information "The other party is sharing a real-time screen", and after the camera of the first terminal is started, the chat page of the second terminal displays the notification information "The other party has shared a real-time screen", in this case, the image sent by the first terminal begins to be displayed in real time on the chat page of the second terminal.
[0024] It can be seen that in the chat page shown in Figure 2 or Figure 3, the conversation information or notification information is overlaid on the image, that is, the image becomes the background of the chat page, and the conversation information or notification information becomes the content of the chat page. In order to avoid the image being hidden by the conversation information or notification information, the conversation information or notification information overlaid on the image needs to have a certain transparency so that the first user can see the image overlaid on the image through the remaining information overlaid on the image.
[0025] The real-time display of the image may be understood to mean that the camera displays an image of one frame every time the image of the frame is collected, and the images of the frames collected successively form a video on the first terminal. Also, the first user can send chat contents on the chat page displayed on the first terminal without affecting the normal chat of the first user. For example, the first user can send chat contents such as "is that him?" on the chat page shown in FIG. 2 or 3.
[0026] It should be noted that the preset area may be the entire area of the chat page shown in Fig. 2 or 3, or a part of the chat page shown in Fig. 4, where the image in the part of the area is hidden by the remaining information, but the image outside the part of the area is not hidden by the remaining information, and the remaining information of the recent time is displayed in the part of the area. As shown in Fig. 4, the part of the area is located in the lower left corner of the image, DL is dialogue information, and NT is notification information.
[0027] In another embodiment of the present disclosure, the attribute information of the above-mentioned preset region can be adjusted, and the attribute information of the preset region is adjusted in response to a region adjustment command, where the attribute information of the preset region includes but is not limited to size, transparency, color, and position, so that the first user can flexibly adjust the attributes of the preset region to avoid hiding the image as much as possible.
[0028] Corresponding to the chat page on the first terminal shown in FIG. 4, images, conversation information, and notification information can also be displayed on the chat page on the second terminal in a similar manner, and the second user can also adjust the attribute information of the preset area, and detailed description thereof will be omitted in this disclosure.
[0029] The embodiments of the present disclosure can overlay and display interactive information in a preset area on top of an image, which avoids a large area of the image being hidden by the interactive information and helps to improve the display completeness of the image.
[0030] Optionally, according to one or more embodiments of the present disclosure, S101 may include: The method includes detecting an operation command of the first user on a first video control located on at least one of a chat page between a first user and a second user and an information item corresponding to the second user in a user list (S1011).
[0031] Here, the first video control is a control for transmitting video frames in real time, and after the first user operates the first video control, the first terminal activates the camera to collect images.
[0032] The above user list includes, but is not limited to, a user call list and a contact list, where a second user in the user call list is a user who has recently been contacted by the first user, and a second user in the contact list is a user recorded in the first terminal.
[0033] In the user list, the information item is information for displaying the second user, and the information item includes, but is not limited to, the identification information such as the name and image of the second user. The user can also click the information item to enter the detail page. If the user list is a user call list, the detail page is a chat page, and specifically includes, but is not limited to, dialogue information such as voice, text, video, and the corresponding dialogue time. If the user list is a contact list, the detail page includes, but is not limited to, the contact method, user address, birth date, and other information. Sun This may include, but is not limited to, any detailed information.
[0034] In the embodiments of the present disclosure, the first video control can be displayed on the chat page or in the user list, providing various video control display methods; and the present disclosure does not require the second user to perform any operation, and the first user can achieve the purpose of displaying an image on the chat page simply by operating the first video control, thereby reducing the complexity of the second user's operation.
[0035] Optionally, according to one or more embodiments of the present disclosure, the method further includes steps S1012 to S1013 before S1011.
[0036] In S1012, the user state of the second user is detected.
[0037] Here, the second user is a user using a second terminal, which receives and displays the video transmitted by the first terminal so that the second user can view it.
[0038] The user state includes, but is not limited to, an online state, an offline state, a busy state, and an interference-free state. It can be understood that when the user state is an online state, the second user can receive information such as video and text transmitted by the first terminal through the second terminal in real time, and when the user state is an offline state or a busy state, the second user cannot receive information such as video and text transmitted by the first terminal in real time.
[0039] In practical application, the user's status is determined by the user's actions. For example, the login action of the second user can represent that the user status of the second user is online, the logout action of the second user can represent that the user status of the second user is offline, and the chat action of the second user can represent that the user status of the second user is online.
[0040] Based on the above user actions, the first terminal can receive the user status of the second user transmitted by the second terminal. Specifically, after the second user logs in, the second terminal can transmit status notification information including the user identifier of the second user and the user status being online to the first terminal, the second terminal can further transmit status notification information including the user identifier of the second user and the user status after switching to the user status of the second user to the first terminal, and the second terminal can further transmit status notification information including the user identifier of the second user and the user status after switching to the first terminal after the second user logs out.
[0041] In another example of the present disclosure, the first terminal can obtain the user status of the second user by analyzing the user behavior of the second user. For example, if it is detected that the second user has performed a chat behavior at the current time or within a preset period before the current time, that is, the first terminal has received chat information transmitted by the second terminal, it can determine that the user status of the second user is online, and if it is detected that the second user has not received chat information transmitted by the second terminal within a preset period before the current time, it can determine that the user status of the second user is offline.
[0042] In S1013, if the user status of the second user is online, a first video control is displayed on an information item corresponding to the second user.
[0043] FIG. 5 is an example of a user list in the prior art. In the prior art, when a first user needs to send a video, he selects one second user from the user list shown in the left drawing of FIG. 5, enters the chat page of the second user, and a video control K is displayed fixedly as in the chat page shown in the right drawing of FIG. 5, and the first user can operate K to start a video request and send a video to the second user in real time. However, in practical application, when the first user operates the video control K, he may not know whether the second user is online, and therefore may not be able to watch the started video in real time, which results in poor real-time video.
[0044] In the embodiment of the present disclosure, when the second user is online, the first video control can be displayed on the information item. When the second user is online, the second user can immediately see the video frame being transmitted in real time, so that it can be understood that the real-time requirement for watching the video is high in the application scene.
[0045] Optionally, according to one or more embodiments of the present disclosure, based on S1012 and S1013, the method further comprises: When the user status of the second user is non-online, S1014 includes displaying a second video control on an information item corresponding to the second user, and transmitting a video clip generated by an image collected by the camera to the second terminal in response to an operation command on the second video control.
[0046] Here, the second video control is a control for transmitting a video clip, and after the first user operates the second video control, the first terminal activates the camera to collect images, but the difference is that after collecting one frame of image, the image is not transmitted to the second terminal, but the image is temporarily stored, and after the image collection is completed, all the collected images are spliced into a video clip in chronological order, and the video clip is transmitted to the second terminal.
[0047] The non-online state may be understood to include, but is not limited to, an offline state, a busy state, and an interference-free state. In such a state, the second user can watch the video clip at leisure without watching the transmitted video clip immediately, so that the application scene has a low real-time requirement for watching the video clip.
[0048] The present disclosure can display a first video control or a second video control in an information item according to a user state. As shown in Fig. 6, a first video control K1 and a second video control K2 are displayed in an information item, and a user list is a user call list, and Fig. 6 includes five second users, whose names are name 1 to name 5, and the name 1 of the second user corresponds to the information item L1, the name 2 of the second user corresponds to the information item L2, the name 3 of the second user corresponds to the information item L3, the name 4 of the second user corresponds to the information item L4, and the name 5 of the second user corresponds to the information item L5, and each information item of the second user displays the first video control or the second video control, and the information items L1, L2, and L5 all display the first video control K1, and the information items L3 and L4 all display the second video control K2.
[0049] In addition, after the first user operates the first video control in the user list of Fig. 6, the first user can enter the chat page as shown in Fig. 2 and display the collected images on the chat page in real time. When the camera is started and turned on, the first user can also prompt the first user to "turn on the camera soon" after operating K1 or K2 in the user list shown in Fig. 6, and the first user selects "turn on soon" to turn on the camera, and if the first user turns on the camera after that, the first user is no longer prompted.
[0050] An embodiment of the present disclosure can display video controls in a user list according to a user state; on the one hand, a first user can realize video operations with a second user directly in the user list without needing to enter a chat page with the second user, thereby reducing the complexity of the first user's operations and improving the efficiency of video communication; on the other hand, a first user can select one second user from a plurality of second users corresponding to the first video control to perform video communication, thereby improving the flexibility of the first user's selection of a second user; and finally, a user can also select a second user corresponding to the second video control according to actual needs to share video clips with low real-time requirements.
[0051] In a typical application scene of the present disclosure, the first terminal only transmits silent images to the second terminal, without simultaneously transmitting corresponding audio data to the second user, and the second terminal prompts the second user in the manner of in-application notification or out-application notification, rather than notifying the second user in the manner of ringing, vibration, etc. In addition, the first terminal generally does not turn on the front camera, but turns on the camera that captures the remaining direction, for example, the rear camera, in this way, the first user can realize sharing the scene he / she sees with the second user in a silent manner, and the social experience is enriched.
[0052] Optionally, according to one or more embodiments of the present disclosure, the step of transmitting images collected by a camera of the first terminal to a second terminal as video frames in real time in S102 includes S1021 to S1022.
[0053] In S1021, a video notification is sent to the second terminal.
[0054] Here, the video notification may be prompted to the second user by in-application information or by system information. Specifically, when a social application is displayed on the entire screen of the second terminal, a first user of the social application initiates a video request to the second user, the first terminal generates a video notification in response to the video request, and the second terminal displays the video notification in the manner of in-application information, for example, displaying in-application information such as "Mr. Wang is sharing his real-time screen with you" in a preset area of the social application as shown in FIG. 7. When the second terminal is in a lock screen state, a first user of the social application initiates a video request to the second user, the first terminal generates a video notification in response to the video request, and the second terminal displays the video notification in the manner of system information, and displays system information such as "Mr. Wang is sharing his real-time screen with you" in a preset area of the lock screen as shown in FIG. 8.
[0055] At S1022, when the video notification is viewed, images collected by a camera of the first terminal are sent as video frames to the second terminal in real time.
[0056] Specifically, after the second terminal receives the video notification, the second user may click on the video notification, at which time the second terminal enters a chat page and starts to receive video frames captured by the camera of the first terminal at the current time, and displays the video frames on the chat page in real time. The second user can view the video notification by clicking on the video notification.
[0057] In an embodiment of the present disclosure, when the user status of the second user is online, the second user can immediately receive the video frames being transmitted in real time, and at this time, a video request is sent to the second terminal so that the second user can receive it, thereby more accurately ensuring the real-time viewing of the video frames in conjunction with the operation of the second user.
[0058] Optionally, according to one or more embodiments of the present disclosure, after S1021, the method further includes S1023 to S1025.
[0059] In S1023, if the video announcement is not viewed, the video announcement is terminated.
[0060] In practical application, after a video notification is sent, if the second user does not receive the video notification within a preset time, the second terminal can automatically terminate the video notification without the user needing to terminate it manually. Of course, the first user can also actively terminate the video notification on the first terminal within the preset time.
[0061] Here, the preset time can be set according to the actual application scene, and may be set to, for example, 30 seconds.
[0062] In S1024, the video notification transmits to the second terminal a recorded video clip generated from images collected by a camera of the first terminal before the end of the
[0063] In the present disclosure, after a first user operates a first video control on a first terminal, the first terminal can enter a chat page between the first user and a second user, and display images collected by a camera of the first terminal on the chat page in real time, and after the video request is ended, the images collected from the start to the end of the video request can be stitched together into a video clip in chronological order.
[0064] In S1025, after the video clip has been viewed, the video clip is retracted.
[0065] In one example of the present disclosure, a first user can set a threshold number of times a video clip can be viewed on a first terminal, and the number of times the video clip is viewed is counted, and if the number is greater than or equal to the number threshold, the video clip is retracted, and if the number is less than the number threshold, the video clip is not retracted.
[0066] However, during the setting of the number threshold, the following abnormality may occur: the first user sets the number threshold after the second user has watched the video clip, and in such a scene, the restriction on the number of times the number threshold set by the first user can be viewed is not accurate, and in order to avoid the occurrence of such a situation, the present disclosure allows the first user to set the number threshold within a preset time, and cannot set it after the preset time, for example, the first user can set the number threshold within 2 minutes after sending the video clip to the second terminal, but cannot set it after 2 minutes.
[0067] Based on the above retraction method, a typical number threshold may be 1, that is, after the video clip is viewed once, the video clip is retracted. For example, as shown in FIG. 9, on the chat page of the first terminal, the user can click the notification information "can be viewed once" to realize that the video clip can be viewed only once, so that after setting, the prompt information "will be retracted after the other party views" can be displayed on the thumbnail of the shared video clip.
[0068] It can be understood that after the video clip is retracted, the first user can be prompted with notification information on the chat page of the first terminal. For example, as shown in FIG. 9, the chat page further displays notification information of "the other party has seen it", and then displays notification information of "the real-time screen has been retracted". Naturally, as shown in FIG. 10, the second user can be prompted with notification information of "the real-time screen has been retracted" on the chat page of the second terminal. As shown in FIG. 10, the chat page of the second terminal further displays notification information of "the other party has shared their real-time screen". Ta" The notification information can prompt the second user to view the shared video clip, and the user can click "view" to play the video clip.
[0069] The present disclosure allows the second user to retract the video clip after viewing it, thereby preventing the video clip from being downloaded, transferred, etc., and effectively protecting the privacy of the video clip.
[0070] Optionally, according to one or more embodiments of the present disclosure, the method further includes S103 to S104.
[0071] In S103, an image collected by a camera of the second terminal is received.
[0072] In one embodiment of the present disclosure, the second user can further start video communication on the second terminal and send images collected by the camera of the second terminal to the first terminal, and the specific operation steps are the same as the operation steps of the first user on the first terminal, and detailed description is omitted here.
[0073] In S104, the real-time display of images collected by the camera of the first terminal on the chat page between the first user and the second user is stopped, and images collected by the camera of the second terminal are displayed in real time on the chat page between the first user and the second user.
[0074] In an embodiment of the present disclosure, images collected by a camera of a first terminal that initiates video communication can be shared with a second terminal and displayed on the first terminal as a default; after the second user shares a video, the images collected by the camera of the second terminal can be automatically switched to be displayed on both the first terminal and the second terminal. In this way, when the second user wants to initiate video communication with the first user, there is no need to log out of the current video communication between the first user and the second user and then initiate video communication again, thereby reducing the complexity of the second user's operations.
[0075] Optionally, according to one or more embodiments of the present disclosure, the method further includes steps S105 to S106.
[0076] In S105, a switching command from the first user is detected.
[0077] Here, the switching command is a command on the first terminal to switch between images collected by a camera of the first terminal and images collected by a camera of the second terminal, for example, the first user may click a switching control on the first terminal.
[0078] At S106, in response to the switching command, a switched image including either an image collected by the camera of the first terminal or an image collected by the camera of the second terminal is displayed in real time on a chat page between the first user and the second user.
[0079] It is understood that the second terminal can also perform a switching operation similar to S105 to S106, and the present disclosure does not place any restrictions thereon.
[0080] The embodiment of the present disclosure can switch and display images according to a switching command from a first user, which helps to improve the flexibility of video display.
[0081] Optionally, according to one or more embodiments of the present disclosure, after S102 of transmitting images collected by a camera of the first terminal to a second terminal in real time as video frames, The method further includes S107: displaying different notification information marked with distinction on a chat page between the first user and the second user, the notification information being used to prompt the sending status of the video frame.
[0082] In the embodiments of the present disclosure, the notification information can be distinguished in multiple ways, including but not limited to icons, colors, sizes, etc. For example, as shown in Fig. 9 or 10, an icon for notification information for starting to share a real-time screen is different from an icon for notification information that has already been shared, and it is obvious that the icon for notification information for starting to share a real-time screen can be displayed in a first color, and the icon for notification information that has already been shared can be displayed in a second color, where the first color can be green and the second color can be gray.
[0083] An embodiment of the present disclosure distinguishes between different transmission statuses by distinctively marking the notification information, and by distinctively marking the notification information, it becomes easier for the second user to obtain the transmission status more quickly, thereby improving the efficiency with which the second user obtains the transmission status.
[0084] To summarize the above, the video processing method provided in this embodiment can display an image collected by the camera of the first terminal on a chat page, and can also overlay remaining information such as chat content on the image, and can transmit the image to the second terminal to be similarly displayed on the second terminal, thereby providing a new video display method for the first and second users during video communication and helping to enrich the diversity of video display.
[0085] Corresponding to the video processing method of the above embodiment, Fig. 11 is a block diagram of the structure of a video processing device provided in the embodiment of the present disclosure. For convenience of explanation, only the parts related to the embodiment of the present disclosure are shown. Referring to Fig. 11, the device includes an operation command detection module 201 and an operation command response module 202.
[0086] Here, the operation command detection module 201 is used to detect an operation command of a first user.
[0087] The operation command response module 202 is used to respond to the operation command, to display an image collected by the camera of the first terminal on a chat page between the first user and a second user in real time, and to overlay remaining information other than the image in a preset area on the image, and to transmit the image collected by the camera of the first terminal as a video frame to the second terminal in real time, so that the second terminal displays the image on a chat page between the second user and the first user in real time, and to overlay remaining information other than the image in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0088] Optionally, according to one or more embodiments of the present disclosure, the operation command detection module 201 may further include: It is used to detect an operation command of the first user on a first video control located on at least one of a chat page between the first user and a second user and an information item corresponding to the second user in a user list.
[0089] Optionally, according to one or more embodiments of the present disclosure, the device may further include: The system includes a user status detection module for detecting a user status of a second user, and a first video control display module for displaying a first video control on an information item corresponding to the second user when the user status of the second user is online.
[0090] Optionally, according to one or more embodiments of the present disclosure, in addition to the user state detection module and the first video control display module, the device further comprises: and a second video control display module for displaying a second video control on an information item corresponding to the second user when the user status of the second user is non-online, and for transmitting a video clip generated by an image collected by the camera to the second terminal in response to an operation command on the second video control.
[0091] Optionally, according to one or more embodiments of the present disclosure, the operation command response module 202 may further include: Sending a video notification to the second terminal; When the video notification is viewed, it is used to transmit images captured by a camera of the first terminal as video frames to the second terminal in real time.
[0092] Optionally, according to one or more embodiments of the present disclosure, the operation command response module 202 may further include: if the video notification is not viewed, terminating the video notification; Video notificationtransmitting to the second terminal a recorded video clip generated from images collected by a camera of the first terminal before the end of Used to retract the video clip after it has been viewed.
[0093] Optionally, according to one or more embodiments of the present disclosure, the device may further include: an image receiving module for receiving images collected by a camera of the second terminal; The chat page between the first user and the second user includes a switching display module for stopping real-time display of images collected by the camera of the first terminal on the chat page between the first user and the second user, and for displaying real-time images collected by the camera of the second terminal on the chat page between the first user and the second user.
[0094] Optionally, according to one or more embodiments of the present disclosure, the device may further include: a switching instruction detection module for detecting a switching instruction of the first user; and a switching response module for, in response to the switching command, displaying a switched image in real time on a chat page between the first user and the second user, the switched image including either an image collected by the camera of the first terminal or an image collected by the camera of the second terminal.
[0095] Optionally, according to one or more embodiments of the present disclosure, the operation command response module 202 may further include: It is used to display different notification information marked distinctively on the chat page between the first user and the second user, and the notification information is used to prompt the sending status of the video frame.
[0096] The device provided in this embodiment can be used to implement the technical solutions of the above method embodiments, and the realization principles thereof are similar to the technical effects, and detailed descriptions thereof are omitted in this embodiment.
[0097] Referring to FIG. 12, a schematic structural diagram of an electronic device 900 suitable for implementing the embodiment of the present disclosure is shown, and the electronic device 900 may be a terminal device or a server. Here, the terminal device includes, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (abbreviated as PDA), tablet computers (abbreviated as Portable Android Devices (abbreviated as PAD), portable media players (abbreviated as PMP), and in-vehicle terminals (e.g., car navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 12 is merely an example and does not limit the functions and scope of use of the embodiment of the present disclosure.
[0098] 12, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphic processor, etc.) 901, which can perform various appropriate operations and processes according to programs stored in a read only memory (abbreviated as ROM) 902 or programs loaded from a storage device 908 into a random access memory (abbreviated as RAM) 903. The RAM 903 further stores various programs and data necessary for the operation of the electronic device 900. The processing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0099] In general, the I / O interface 905 can be connected to an input device 906 including, for example, a touch screen, a touch panel, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc., an output device 907 including, for example, a liquid crystal display (abbreviated as LCD), a speaker, a vibrator, etc., a storage device 908 including, for example, a magnetic tape, a hard disk, etc., and a communication device 909. The communication device 909 enables data exchange between the electronic device 900 and other devices through wireless or wired communication. Although FIG. 12 illustrates the electronic device 900 having various devices, it should be understood that it is not required to implement or include all of the devices shown. Alternatively, more or fewer devices may be implemented or included.
[0100] In particular, according to an embodiment of the present disclosure, the process described with reference to the above flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a computer-readable medium, the computer program comprising a program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 909, or may be installed from a storage device 908, or may be installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions limited to the method of the embodiment of the present disclosure are performed. An embodiment of the present disclosure further includes a computer program, which, when executed on an electronic device, performs the above-mentioned functions limited to the method of the embodiment of the present disclosure.
[0101] It should be noted that the computer readable medium described in this disclosure may be a computer readable signal medium, a computer readable storage medium, or any combination of the above. The computer readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or any combination thereof. More specific examples of the computer readable storage medium include, but are not limited to, an electrical connection having one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber, a portable compact disk read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this disclosure, the computer readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device. In this disclosure, the computer readable signal medium may be included in a data signal propagated as part of a baseband or carrier wave, and carries a computer readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0102] The computer-readable medium may be included in the electronic device, or may exist independently of the electronic device.
[0103] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiments.
[0104] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and the like, as well as traditional procedural programming languages such as "C" or similar programming languages. The program code may run entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the context of a remote computer, the remote computer may be connected to the user's computer or to an external computer (e.g., connected via the Internet by an Internet Service Provider) via any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN).
[0105] The flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some permutation implementations, the functions noted in the blocks may occur in a different order than the order noted in the drawings. For example, two blocks shown in succession may actually be executed essentially in parallel, and may sometimes be executed in the reverse order, depending on the functionality involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated system based on hardware that performs a certain function or operation, or using a combination of dedicated hardware and computer instructions.
[0106] The units described in the embodiments of the present disclosure may be implemented in a software manner or a hardware manner, where the name of the unit does not limit the unit itself in some circumstances, for example, Operation command detection module teeth" A module for detecting an operation command of a first user " may also be explained as follows.
[0107] The functions described herein may be performed, at least in part, by one or more hardware logic components. For example, example types of hardware logic components that may be used include, but are not limited to, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0108] In the context of this disclosure, a machine-readable medium may be a tangible medium that contains or stores a program executed by or used in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0109] In a first aspect, according to one or more embodiments of the present disclosure, there is provided a video processing method applied in a first terminal, comprising: detecting an operation command from a first user; In response to the operation command, an image collected by a camera of the first terminal is displayed in real time on a chat page between the first user and a second user, and remaining information other than the image is superimposed in a preset area on the image, and the image collected by the camera of the first terminal is transmitted in real time to a second terminal as a video frame, whereby the second terminal displays the image on a chat page between the second user and the first user in real time, and remaining information other than the image is superimposed in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0110] According to one or more embodiments of the present disclosure, the step of detecting an operation command of the first user includes: The method includes detecting an operation command from the first user on a first video control located on at least one of a chat page between the first user and a second user and an information item corresponding to the second user in a user list.
[0111] According to one or more embodiments of the present disclosure, before the step of detecting the operation command of the first user on the first video control, further comprising: The method includes detecting a user status of a second user, and displaying a first video control on an information item corresponding to the second user if the user status of the second user is online.
[0112] According to one or more embodiments of the present disclosure, the method may further include: The method includes a step of displaying a second video control on an information item corresponding to the second user when the user status of the second user is non-online, and transmitting a video clip generated by an image collected by the camera to the second terminal in response to an operation command on the second video control.
[0113] According to one or more embodiments of the present disclosure, the step of transmitting images collected by a camera of the first terminal to a second terminal in real time as video frames includes: sending a video notification to the second terminal; and when the video notification is viewed, transmitting images captured by a camera of the first terminal as video frames to the second terminal in real time.
[0114] According to one or more embodiments of the present disclosure, after the step of sending a video notification to the second terminal, further comprising: if the video notification has not been viewed, terminating the video notification; Video notification transmitting to the second terminal a recorded video clip generated from images collected by a camera of the first terminal before the end of the and retracting the video clip after it has been viewed.
[0115] According to one or more embodiments of the present disclosure, the method may further include: receiving an image collected by a camera of the second terminal; The method includes a step of stopping real-time display of images collected by the camera of the first terminal on a chat page between the first user and the second user, and displaying real-time images collected by the camera of the second terminal on a chat page between the first user and the second user.
[0116] According to one or more embodiments of the present disclosure, the method may further include: detecting a switching command from the first user; In response to the switching command, a step of displaying a switched image, which includes either an image collected by the camera of the first terminal or an image collected by the camera of the second terminal, in real time on a chat page between the first user and the second user.
[0117] According to one or more embodiments of the present disclosure, after transmitting images collected by a camera of the first terminal to a second terminal as video frames in real time, further comprising: The method includes displaying different notification information marked with distinction on a chat page between the first user and the second user, the notification information being used to prompt the transmission status of the video frame.
[0118] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a video processing device adapted for use in a first terminal, the device comprising: an operation command detection module for detecting an operation command of a first user; an operation command response module used to respond to the operation command, for displaying an image collected by a camera of the first terminal on a chat page between the first user and a second user in real time, and overlaying remaining information other than the image in a preset area on the image, and for transmitting the image collected by the camera of the first terminal as a video frame to a second terminal in real time, thereby causing the second terminal to display the image on a chat page between the second user and the first user in real time, and overlaying remaining information other than the image in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user.
[0119] According to one or more embodiments of the present disclosure, the operation command detection module further comprises: It is used to detect an operation command of the first user on a first video control located on at least one of a chat page between the first user and a second user and an information item corresponding to the second user in a user list.
[0120] According to one or more embodiments of the present disclosure, the apparatus further comprises: The system includes a user status detection module for detecting a user status of a second user, and a first video control display module for displaying a first video control on an information item corresponding to the second user when the user status of the second user is online.
[0121] According to one or more embodiments of the present disclosure, in addition to the user state detection module and the first video control display module, the device further comprises: and a second video control display module for displaying a second video control on an information item corresponding to the second user when the user status of the second user is non-online, and for transmitting a video clip generated by an image collected by the camera to the second terminal in response to an operation command on the second video control.
[0122] According to one or more embodiments of the present disclosure, the operation command response module further comprises: Sending a video notification to the second terminal; When the video notification is viewed, it is used to transmit images captured by a camera of the first terminal as video frames to the second terminal in real time.
[0123] According to one or more embodiments of the present disclosure, the operation command response module further comprises: if the video notification is not viewed, terminating the video notification; Video notification transmitting to the second terminal a recorded video clip generated from images collected by a camera of the first terminal before the end of Used to retract the video clip after it has been viewed.
[0124] According to one or more embodiments of the present disclosure, the apparatus further comprises: an image receiving module for receiving images collected by a camera of the second terminal; The chat page between the first user and the second user includes a switching display module for stopping real-time display of images collected by the camera of the first terminal on the chat page between the first user and the second user, and for displaying real-time images collected by the camera of the second terminal on the chat page between the first user and the second user.
[0125] According to one or more embodiments of the present disclosure, the apparatus further comprises: a switching instruction detection module for detecting a switching instruction of the first user; and a switching response module for, in response to the switching command, displaying a switched image in real time on a chat page between the first user and the second user, the switched image including either an image collected by the camera of the first terminal or an image collected by the camera of the second terminal.
[0126] According to one or more embodiments of the present disclosure, the operation command response module further comprises: It is used to display different notification information marked distinctively on the chat page between the first user and the second user, and the notification information is used to prompt the sending status of the video frame.
[0127] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising at least one processor and a memory; The memory stores computer executable instructions, When the at least one processor executes the computer-executable instructions stored in the memory, the at least one processor implements the video processing method according to the first aspect and each possible design of the first aspect.
[0128] In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, which, when executed by a processor, performs a video processing method as described in the first aspect and each possible design of the first aspect.
[0129] The above description is merely an explanation of the preferred embodiments of the present disclosure and the principles of its application technology. Those skilled in the art can understand that the disclosure scope of the present disclosure is not limited to the technical solution of the specific combination of the above technical features, but should also include other technical solutions formed by any combination of the above technical features or equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with technical features having similar functions disclosed in the present disclosure (but not limited to).
[0130] Also, although operations are described in a particular order, this should not be understood as necessarily requiring these operations to be performed in the particular order or sequential order shown. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although the above description includes some specific implementation details, these should not be construed as limiting the scope of the disclosure. Some features described in the text of a single embodiment may be implemented in a single embodiment in combination. Conversely, each feature described in the text of a single embodiment may also be implemented in multiple embodiments alone or in any suitable subcombination manner.
[0131] Although the present subject matter has been described using language specifying structural features and / or methodological operations, it should be understood that the subject matter defined in the appended claims is not limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms of implementing the claims.
[0132] This application claims priority to a Chinese patent application filed on October 9, 2020, bearing application number 202011074833.4 and entitled "Video Processing Method and Apparatus," the contents of which are incorporated herein by reference.
Claims
1. A video processing method applied to a first terminal, comprising: detecting an operation command from a first user; a step of displaying an image collected by a camera of the first terminal on a chat page between the first user and a second user in real time in response to the operation command, and displaying remaining information other than the image in a preset area on the image by overlaying it, and transmitting the image collected by the camera of the first terminal as a video frame to a second terminal in real time, whereby the second terminal displays the image on a chat page between the second user and the first user in real time, and displays remaining information other than the image in a preset area on the image by overlaying it, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user; The step of detecting an operation command of the first user includes: detecting an operation command of a first user on a first video control located in an information item corresponding to a second user in the user list; Before the step of detecting the operation command of the first user on the first video control, Detecting a user state of a second user; and if the user status of the second user is online, displaying a first video control on an information item corresponding to the second user.
13. A video processing method comprising:
2. The first video control is further located on a chat page between the first user and a second user.
2. The video processing method of claim 1.
3. The video processing method further comprises: When the user status of the second user is a non-online status, displaying a second video control on an information item corresponding to the second user, and transmitting a video clip generated by an image collected by the camera to the second terminal in response to an operation command on the second video control.
2. The video processing method of claim 1.
4. The step of transmitting images collected by a camera of the first terminal to a second terminal in real time as video frames includes: sending a video notification to the second terminal; and when the video notification is viewed, transmitting images captured by a camera of the first terminal as video frames to the second terminal in real time. A video processing method according to any one of claims 1 to 3.
5. After the step of sending a video notification to the second terminal, if the video notification has not been viewed, terminating the video notification; transmitting a recorded video clip to the second terminal, the recorded video clip being generated from images collected by a camera of the first terminal before the video notification ends; and retracting the video clip after it has been viewed.
5. A video processing method according to claim 4.
6. The video processing method further comprises: receiving an image collected by a camera of the second terminal; stopping real-time display of images collected by the camera of the first terminal on a chat page between the first user and the second user, and displaying real-time images collected by the camera of the second terminal on a chat page between the first user and the second user, Video processing method according to any one of claims 1 to 5.
7. The video processing method further comprises: detecting a switching command of the first user; and displaying a switched image including either an image collected by a camera of the first terminal or an image collected by a camera of the second terminal in real time on a chat page between the first user and the second user in response to the switching command.
7. A video processing method according to claim 6.
8. transmitting images collected by the camera of the first terminal to a second terminal as video frames in real time; Displaying different notification information marked with a distinctive mark on a chat page between the first user and the second user, the notification information being used to prompt the transmission status of the video frame; Video processing method according to any one of claims 1 to 7.
9. A video processing device applied to a first terminal, comprising: an operation command detection module for detecting an operation command of a first user; an operation command response module used to, in response to the operation command, display an image collected by a camera of the first terminal on a chat page between the first user and a second user in real time, and overlay remaining information other than the image in a preset area on the image, and transmit the image collected by the camera of the first terminal as a video frame to a second terminal in real time, so that the second terminal displays the image on a chat page between the second user and the first user in real time, and overlay remaining information other than the image in a preset area on the image, wherein the first terminal is a terminal corresponding to the first user, and the second terminal is a terminal corresponding to the second user; The operation command detection module further comprises: to detect an operation command of a first user on a first video control located in an information item corresponding to a second user in a user list; The video processing device further comprises: a user state detection module for detecting a user state of a second user; a first video control display module for displaying a first video control on an information item corresponding to the second user when the user status of the second user is online; 13. A video processing device comprising:
10. at least one processor and a memory; The memory stores computer executable instructions, Execution of the computer-executable instructions stored in the memory by the at least one processor causes the at least one processor to perform the video processing method according to any one of claims 1 to 8.
1. An electronic device comprising:
11. A method for processing a video signal according to any one of claims 1 to 8, wherein computer-executable instructions are stored and, when executed by a processor, perform the video processing method according to any one of claims 1 to 8. A computer-readable storage medium comprising:
12. A computer program, which, when executed by a processor, performs the video processing method according to any one of claims 1 to 8. A computer program comprising:
Citation Information
Patent Citations
Method for user function operation based on face recognition and mobile terminal supporting the same
EP2753076A2
Method for sharing function between terminals and terminal thereof
JP2014170524A
Method for providing instant messaging services, recording medium and terminal containing a program for the same.
JP2015531180A
Instant communication message prompt method and instant communication client
JP2020509472A
Video stamp generation method, computer program and computer device
JP2021517696A
