Video acquisition method and device, storage medium and electronic equipment

By acquiring and merging facial images collected by cameras of multiple electronic devices, determining the target facial image and sending the video, it solves the problem of video limitations in video calls and improves user experience and video quality.

CN118741027APending Publication Date: 2024-10-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310320435.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The limitation of sending video to the target device in existing video calling methods affects the user experience, resulting in poor video call quality.

Method used

By acquiring facial images collected by cameras of multiple electronic devices, determining the target facial image based on facial status information, and sending the video collected by the target camera to the target device, the fusion and selection of multi-camera videos are realized.

Benefits of technology

It reduces the limitations of sending video to the target device, improves user experience, and ensures video quality and flexibility during video calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741027A_ABST
    Figure CN118741027A_ABST
Patent Text Reader

Abstract

The invention discloses a video acquisition method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring face images acquired by cameras of a plurality of electronic devices to obtain a plurality of face images; determining a target face image from the plurality of face images according to the state information of the face in each face image; determining the camera for collecting the target face image as a target camera; and sending the video acquired by the target camera to the target device. The application can reduce the limitation of the video sent to the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and in particular, relates to a video acquisition method, device, computer-readable storage medium and electronic device. Background Art

[0002] With the development of electronic technology, the functions of electronic devices such as smart phones or tablet computers are becoming more and more abundant. Electronic devices can be equipped with video chat functions, and users can conduct video chats through terminal devices.

[0003] During a video call between a first user and a second user, the first user's mobile phone A can send the video screen shot by the front camera or the rear camera to the second user's mobile phone B, and the second user's mobile phone B can also send the video screen shot by the front camera or the rear camera to the first user's mobile phone A. However, the video screen sent to another device in the above video call method has limitations, which affects the user experience. Summary of the invention

[0004] Embodiments of the present application provide a video acquisition method, apparatus, storage medium, and electronic device, which can reduce the limitations of videos sent to a target device.

[0005] In a first aspect, an embodiment of the present application provides a video acquisition method, comprising:

[0006] Acquire facial images captured by cameras of multiple electronic devices to obtain multiple facial images;

[0007] Determining a target facial image from the plurality of facial images according to the facial status information in each of the facial images;

[0008] Determine a camera that captures the target facial image as a target camera;

[0009] The video captured by the target camera is sent to the target device.

[0010] In a second aspect, an embodiment of the present application provides a video acquisition device, including:

[0011] An image acquisition module, used to acquire facial images collected by cameras of multiple electronic devices to obtain multiple facial images;

[0012] An image determination module, configured to determine a target facial image from the plurality of facial images according to facial status information in each of the facial images;

[0013] A camera determination module, used to determine the camera that captures the target facial image as the target camera;

[0014] The video sending module is used to send the video captured by the target camera to the target device.

[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed on a computer, the computer executes the video acquisition method provided by the embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the video acquisition method provided in the embodiment of the present application by calling a computer program stored in the memory.

[0017] In an embodiment of the present application, multiple facial images are obtained by acquiring facial images captured by cameras of associated devices associated with multiple electronic devices; a target facial image is determined from the multiple facial images based on the state information of the face in each of the facial images; the camera that captures the target facial image is determined as the target camera; and the video captured by the target camera is sent to the target device. This can be achieved in that during a video call between a first user and a second user, the first user's electronic device can send the video captured by the corresponding camera in the cameras of the multiple electronic devices to the target device of the second user based on the state information of the face in the facial images captured by the cameras of the multiple electronic devices, so that the video sent to the target device is not limited to the video captured by the camera of the same electronic device, that is, the limitations of the video sent to the target device can be reduced, and the user experience is better. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0019] Figure 1 This is a first flow chart of the video acquisition method provided in the embodiment of the present application.

[0020] Figure 2 It is a schematic diagram of the camera selection interface provided in an embodiment of the present application.

[0021] Figure 3 It is a scene schematic diagram of the video acquisition method provided in an embodiment of the present application.

[0022] Figure 4 It is a schematic diagram of a preset area provided in an embodiment of the present application.

[0023] Figure 5 This is a second flow chart of the video acquisition method provided in an embodiment of the present application.

[0024] Figure 6It is a structural schematic diagram of a video acquisition device provided in an embodiment of the present application.

[0025] Figure 7 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] It should be noted that the terms "first", "second" and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products or devices.

[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0028] The embodiments of the present application provide a video acquisition method, a video acquisition device, a storage medium, and an electronic device, wherein the video acquisition method can be applied to neural network video acquisition of any field and any structure such as image, sound, natural language, and control. The execution subject of the video acquisition method can be the video acquisition device provided in the embodiments of the present application, or an electronic device integrating the video acquisition device, wherein the video acquisition device can be implemented in hardware or software. The electronic device can be a device such as a smart phone, a tablet computer, a PDA, a laptop computer, etc. that is equipped with a processor and has video acquisition capabilities.

[0029] See also Figure 1 , Figure 1 This is a schematic diagram of a first process of the video acquisition method provided in an embodiment of the present application. The process may include:

[0030] In 101, facial images captured by cameras of multiple electronic devices are acquired to obtain multiple facial images.

[0031] For example, assuming that multiple electronic devices include electronic devices D1, D2 and D3, the cameras of electronic devices D2 and D3 can be connected to electronic device D1 through a peripheral fusion solution under the same local area network, so that when electronic device D1 needs to capture images through the camera, it can not only capture images through its own camera, but also through the cameras of electronic devices D2 and D3.

[0032] For example, during a video call between user U1 and user U2, electronic device D1 can adopt a corresponding strategy to select and send the video captured by any one or more cameras of electronic devices D1, D2 and D3 to the target device of user U2, such as electronic device D4, to realize the video call between user U1 and user U2.

[0033] For another example, during the live broadcast of user U1, electronic device D1 can adopt corresponding strategies to select and send the video captured by any one or more cameras of electronic devices D1, D2 and D3 to the target device, such as a push-pull stream server, and then the push-pull stream server pushes the received video to the live broadcast platform for live broadcast.

[0034] In an optional embodiment, if Figure 2 As shown, the electronic device D1 can display a camera selection interface, which can display all cameras of the electronic devices D1, D2 and D3, and the selection controls corresponding to each camera. The user U1 can select the camera to be used by touching the corresponding selection control. Subsequently, when the electronic device D1 needs to capture images through the camera, it can capture images through the camera selected by the user.

[0035] In this embodiment, each camera of each electronic device in the multiple electronic devices can be controlled to capture images to obtain multiple images; then, images with faces are determined from the multiple images to obtain multiple facial images.

[0036] For example, assuming that multiple electronic devices include electronic devices D1, D2 and D3, electronic device D1 includes cameras C11, C12 and C13, electronic device D2 includes cameras C21 and C22, and electronic device D3 includes camera C31, cameras C11, C12, C13, C21, C22 and C31 can be controlled to perform image capture respectively to obtain image M11 captured by camera C11, image M12 captured by camera C12, image M13 captured by camera C13, image M21 captured by camera C21, image M22 captured by camera C22, and image M31 captured by camera C31. Assuming that there are faces in image M11, image M21 and image M31, the multiple facial images obtained by the electronic devices are image M11, image M21 and image M31 respectively.

[0037] It should be noted that the embodiments of the present application do not limit the type of camera. The camera of each electronic device can be a telephoto camera, a wide-angle camera, and so on.

[0038] It should also be noted that the embodiments of the present application do not limit the setting positions of multiple electronic devices. Users can set them according to their actual needs, or some recommended setting methods can be pre-stored, so that when users need to set the location of the electronic device, they can set it based on the recommended setting method.

[0039] In 102, a target facial image is determined from a plurality of facial images based on the state information of the face in each facial image.

[0040] In this embodiment, after acquiring multiple facial images, the state information of the face in each facial image can be determined, and then the target facial image can be determined from the multiple facial images according to the state information of the face in each facial image. The state information may include position information, posture angle information, etc.

[0041] For example, the face image in which the difference between the face posture angle information and the reference posture angle information in the multiple face images is the smallest can be determined as the target face image. The reference posture angle information is the face posture angle information in the preset face image. The preset face image can be an image captured by the electronic device when the face is facing the screen of the electronic device.

[0042] For example, assuming that the multiple facial images include facial images M11, M21, and M31, and the difference between the facial posture angle information of the facial image M11 and the reference posture angle information is the smallest, the facial image M11 can be determined as the target facial image.

[0043] For another example, the distance between the face and the center in each facial image can be determined based on the position information of the face in each facial image and the position information of the center in each facial image, the corresponding distance of each facial image can be obtained, and then the facial image with the smallest corresponding distance can be determined as the target facial image.

[0044] For example, assuming that the plurality of facial images include facial images M11, M21, and M31, and the distance between the face and the center in facial image M11 is the smallest, then facial image M11 may be determined to be the target facial image.

[0045] In 103, the camera that captures the target facial image is determined as the target camera.

[0046] In this embodiment, after the target facial image is determined, the camera that captures the target facial image may be determined as the target camera.

[0047] For example, assuming that the target facial image is the facial image M11, and the camera that captures the facial image M11 is the camera C11 of the electronic device D1, then the target camera is the camera C11 of the electronic device D1.

[0048] In 104, the video captured by the target camera is sent to the target device.

[0049] In this embodiment, after the target camera is determined, the video captured by the target camera can be sent to the target device.

[0050] For example, assuming that the target camera is camera C11 of electronic device D1, the video captured by camera C11 can be sent to electronic device D4.

[0051] It is understandable that during the video call between user U1 and user U2, user U1's electronic device D1 can send the video captured by the corresponding camera of the corresponding electronic device among electronic devices D1, D2 and D3 to the electronic device of user U2 through the above process.

[0052] During the live broadcast of user U1, the electronic device D1 of user U1 can send the video collected by the corresponding camera of the corresponding electronic device among electronic devices D1, D2 and D3 to the push-pull stream server through the above process, and the push-pull stream server pushes it to the live broadcast platform for video live broadcast.

[0053] In an optional embodiment, the sound can also be collected by the microphone of the electronic device including the target camera; the video collected by the target camera and the sound collected by the microphone are then fused into a video with sound, which is then sent to the target device. The sound can also be collected by the microphone of the electronic device closest to the user; the video collected by the target camera and the sound collected by the microphone are then fused into a video with sound, which is then sent to the target device. The sound can also be collected by the microphone of other electronic devices, which is not specifically limited here.

[0054] In this embodiment, multiple facial images are obtained by acquiring facial images captured by cameras of associated devices associated with multiple electronic devices; a target facial image is determined from the multiple facial images based on the face status information in each facial image; the camera that captures the target facial image is determined as the target camera; and the video captured by the target camera is sent to the target device. This can be achieved in that during a video call between a first user and a second user, the first user's electronic device can send the video captured by the corresponding camera in the cameras of the multiple electronic devices to the target device of the second user based on the face status information in the facial images captured by the cameras of the multiple electronic devices, so that the video sent to the target device is not limited to the video captured by the camera of the same electronic device, that is, the obtained video has no limitations and the user experience is better.

[0055] In an optional embodiment, the state information includes position information and posture angle information, and determining a target facial image from a plurality of facial images according to the state information of the face in each facial image includes:

[0056] Scoring each facial image according to the position information of the face in each facial image to obtain a first score for each facial image;

[0057] Scoring the facial images according to the facial posture angle information in each facial image to obtain a second score for each facial image;

[0058] A target facial image is determined from the plurality of facial images based on the first score and the second score of each facial image.

[0059] In this embodiment, the facial image may be scored according to the position information and posture angle information of the face in the facial image, so as to determine the target facial image based on the score.

[0060] For example, assuming that multiple facial images include facial images M11, M21 and M31, facial image M11 can be scored based on the position information of the face in facial image M11 to obtain a first score S11 of facial image M11, and facial image M11 can be scored based on the posture angle information of the face in facial image M11 to obtain a second score S12 of facial image M11; facial image M21 can be scored based on the position information of the face in facial image M21 to obtain a first score S21 of facial image M21, and facial image M21 can be scored based on the posture angle information of the face in facial image M21 to obtain a second score S22 of facial image M21; facial image M31 can be scored based on the position information of the face in facial image M31 to obtain a first score S31 of facial image M31, and facial image M31 can be scored based on the posture angle information of the face in facial image M31 to obtain a second score S32 of facial image M31.

[0061] Subsequently, the sum of the first score S11 and the second score S12 can be calculated to obtain the third score S13 of the facial image M11; the sum of the first score S21 and the second score S22 can be calculated to obtain the third score S23 of the facial image M21; the sum of the first score S31 and the second score S32 can be calculated to obtain the third score S33 of the facial image M31.

[0062] Finally, the facial image corresponding to the largest score among the third scores S13, S23 and S33 can be determined as the target facial image. For example, if the third score S13 is the largest score among the third scores S13, S23 and S33, the facial image M11 can be determined as the target facial image; if the third score S23 is the largest score among the third scores S13, S23 and S33, the facial image M21 can be determined as the target facial image; if the third score S33 is the highest score among the third scores S13, S23 and S33, the facial image M31 can be determined as the target facial image.

[0063] In an optional embodiment, scoring each facial image according to the position information of the face in each facial image to obtain a first score for each facial image includes:

[0064] Determine the distance between the face in each facial image and the center in each facial image according to the position information of the face in each facial image and the position information of the center of each facial image, and obtain the distance corresponding to each facial image;

[0065] Each facial image is scored according to the distance corresponding to each facial image to obtain a first score for each facial image, where the first score is inversely correlated with the distance.

[0066] The position information of the face may be the coordinates of the center of the face in the face image, and the position information of the center of the face image may be the coordinates of the center point of the face image in the face image.

[0067] It should be noted that the above coordinates are all coordinates in an image coordinate system established based on the facial image.

[0068] For example, assuming that the multiple facial images include facial images M11, M21 and M31, the distance R1 corresponding to the facial image M11 can be obtained based on the coordinates of the face in the facial image M11 and the coordinates of the center point of the facial image M11; the distance R2 corresponding to the facial image M21 can be obtained based on the coordinates of the face in the facial image M21 and the coordinates of the center point of the facial image M21; the distance R3 corresponding to the facial image M31 can be obtained based on the coordinates of the face in the facial image M31 and the coordinates of the center point of the facial image M31.

[0069] Subsequently, the first score of the facial image M11 can be obtained according to the distance R1 and the preset mapping relationship between the distance and the score; the first score of the facial image M21 can be obtained according to the distance R2 and the preset mapping relationship between the distance and the score; and the first score of the facial image M31 can be obtained according to the distance R3 and the preset mapping relationship between the distance and the score.

[0070] The preset mapping relationship between the distance and the score can be set by a person skilled in the art, or can be set by the electronic device based on certain rules. In the preset mapping relationship, each distance is inversely correlated with its corresponding score, that is, the larger the distance, the lower the corresponding score, and the smaller the distance, the higher the corresponding score.

[0071] In an optional embodiment, the posture angle information includes first posture angle information and second posture angle information, and the facial images are scored according to the posture angle information of the face in each facial image to obtain a second score for each facial image, including:

[0072] Acquire first reference attitude angle information and second reference attitude angle information;

[0073] Determine the difference between the first posture angle information of the face in each facial image and the first reference posture angle information to obtain a first difference corresponding to each facial image;

[0074] Determine the difference between the second posture angle information of the face in each facial image and the second reference posture angle information to obtain a second difference corresponding to each facial image;

[0075] A second score for each facial image is determined based on the first difference and the second difference corresponding to each facial image, wherein the second score is inversely correlated with the first difference and the second difference.

[0076] Among them, the first posture angle information of the face can be the pitch angle of the face, and the second posture angle information of the face can be the yaw angle of the face. Among them, the pitch angle of the face represents the pitch degree of the head, and the yaw angle of the face represents the degree to which the head turns left or right. The first reference posture angle information is the first posture angle information of the face in the preset facial image, that is, the angle of the reference pitch angle, and the second reference posture angle information is the second posture angle information of the face in the preset facial image, that is, the angle of the reference yaw angle. The preset facial image can be an image captured by the electronic device when the face is facing the screen of the electronic device.

[0077] For example, assuming that the multiple facial images include facial images M11, M21, and M31, the difference between the pitch angle of the face in the facial image M11 and the reference pitch angle can be calculated to obtain the first difference corresponding to the facial image M11, that is, the first angle A11; the difference between the pitch angle of the face in the facial image M21 and the reference pitch angle is calculated to obtain the first difference corresponding to the facial image M21, that is, the first angle A21; the difference between the pitch angle of the face in the facial image M31 and the reference pitch angle is calculated to obtain the first difference corresponding to the facial image M31, that is, the first angle A22. The first difference is calculated, that is, the first angle A31; the difference between the yaw angle of the face in the facial image M11 and the reference yaw angle is calculated to obtain the second difference corresponding to the facial image M11, that is, the second angle A12; the difference between the yaw angle of the face in the facial image M21 and the reference yaw angle is calculated to obtain the second difference corresponding to the facial image M21, that is, the second angle A22; the difference between the yaw angle of the face in the facial image M31 and the reference yaw angle is calculated to obtain the second difference corresponding to the facial image M31, that is, the second angle A32.

[0078] Subsequently, the fifth score S15 of the facial image M11 can be obtained according to the second angle A11 and the second preset mapping relationship between angles and scores; the fifth score S25 of the facial image M21 can be obtained according to the second angle A21 and the second preset mapping relationship between angles and scores; the fifth score S35 of the facial image M31 can be obtained according to the second angle A31 and the second preset mapping relationship between angles and scores; the fifth score S15 of the facial image M11 can be obtained according to the second angle A11 and the second preset mapping relationship between angles and scores; the fifth score S25 of the facial image M21 can be obtained according to the second angle A21 and the second preset mapping relationship between angles and scores; the fifth score S35 of the facial image M31 can be obtained according to the second angle A31 and the second preset mapping relationship between angles and scores.

[0079] The weighted sum of the fourth score S14 and the fifth score S15 can be calculated to obtain the second score S12 of the facial image M11; the weighted sum of the fourth score S24 and the fifth score S25 can be calculated to obtain the second score S22 of the facial image M21; the weighted sum of the fourth score S34 and the fifth score S35 can be calculated to obtain the second score S32 of the facial image M31.

[0080] The weights corresponding to the fourth score and the fifth score can be set by those skilled in the art according to actual conditions, and the weights corresponding to the fourth scores and the fifth scores of different facial images are the same. The first preset mapping relationship between the angle and the score and the second preset mapping relationship between the angle and the score can be set by those skilled in the art, or can be set by the electronic device based on certain rules. In the first preset mapping relationship and the second preset mapping relationship, each angle is inversely correlated with its corresponding score, that is, the larger the angle, the lower the corresponding score, and the smaller the angle, the higher the corresponding score.

[0081] In an optional embodiment, determining a target facial image from a plurality of facial images according to the first score and the second score of each facial image includes:

[0082] determining a weighted sum of the first score and the second score for each facial image as a target score for each facial image;

[0083] A facial image having the highest target score among the multiple facial images is determined as a target facial image.

[0084] For example, assuming that the first score S11 and the second score S12 of the facial image M11, the first score S21 and the second score S22 of the facial image M21, and the first score S31 and the second score S32 of the facial image M31 are obtained, the weighted sum of the first score S11 and the second score S12 can be calculated to obtain the target score S1 of the facial image M11; the weighted sum of the first score S21 and the second score S22 can be calculated to obtain the target score S2 of the facial image M21; the weighted sum of the first score S31 and the second score S32 can be calculated to obtain the target score S3 of the facial image M31. Assuming that the target score S1 is the highest score among the target scores S1, S2, and S3, the facial image M11 can be determined as the target facial image.

[0085] In an optional embodiment, assuming that the target score S1 is the same as the target score S2, and the target scores S1 and S2 are both higher than the target score S3, the facial images M11 and M21 can be determined as target facial images. Assuming that the camera that captures the facial image M11 is camera C11, and the camera that captures the facial image M21 is camera C21, the videos captured by camera C11 and camera C21 can be fused to obtain a fused video, and then the fused video is sent to the target device.

[0086] The weights corresponding to the first score and the second score can be set by those skilled in the art according to actual conditions, and the weights corresponding to the first scores and the second scores of different facial images are the same. For example, the weights corresponding to the first scores S11, S21, and S31 can all be 0.4, and the weights corresponding to the second scores S21, S22, and S32 can all be 0.6.

[0087] In an optional embodiment, a facial image with a target score greater than a preset score among multiple facial images can be determined as a target facial image. Then, when there is only one target facial image, the camera that captures the target facial image can be determined as the target camera, and the video captured by the target camera is sent to the target device. When there are multiple target facial images, the camera that captures each target facial image can be determined as the target camera, and the video captured by each target camera is fused to obtain a fused video, and the fused video is sent to the target device.

[0088] The preset score may be set by a person skilled in the art, or may be set by a computer device based on certain rules.

[0089] In an optional embodiment, sending the video captured by the target camera to the target device includes:

[0090] If there is an associated camera associated with the target camera, the video captured by the target camera and the video captured by the associated camera are fused to obtain a fused video;

[0091] Send the fused video to the target device.

[0092] Among them, for the cameras of multiple electronic devices, the user can set the corresponding cameras as mutually associated cameras in advance. When the target camera is determined later, when there is an associated camera associated with the target camera, the video captured by the target camera and the video captured by the associated camera can be fused to obtain a fused video, and then the fused video can be sent to the target device.

[0093] For example, Figure 3 As shown, assuming that the target camera is camera C11, and the user sets cameras C11 and C21 as mutually related cameras in advance, the video V1 captured by camera C11 and the video V1 captured by camera C21 can be fused to obtain a fused video V3, and then the fused video V3 is sent to the target device.

[0094] In an optional embodiment, after obtaining the fused video, the fused video may be post-processed accordingly to obtain a processed video, and then the processed video may be sent to a target device.

[0095] In an optional embodiment, after obtaining multiple facial images, it is also possible to detect whether the face in each facial image is within a preset area of ​​each facial image, and then obtain facial images in which the face is within the preset area, and determine the target facial image from these facial images based on the state information of the faces in these facial images.

[0096] The preset area can be set by a person skilled in the art, or can be set by the electronic device based on certain rules. Figure 4 As shown, the preset area may be a square area centered on the center of the facial image and having a size smaller than the size of the facial image.

[0097] In an optional embodiment, sending the video captured by the target camera to the target device includes:

[0098] Post-process the video to obtain a processed video;

[0099] Send the processed video to the target device.

[0100] Among them, post-processing may include portrait centering processing, anti-shake processing, image cropping processing, data correction processing or smoothing processing, etc.

[0101] Processing such as portrait centering or anti-shake processing can be performed based on user settings. If the user turns on the portrait centering function, the video captured by the target camera can be obtained, and then the video can be processed by portrait centering to obtain the processed video, and then the processed video can be sent to the target device.

[0102] In this embodiment, after the target camera captures the video, the video captured by the target camera can be processed by portrait centering, anti-shake processing, etc. to obtain a processed video, and then the processed video is sent to the target device.

[0103] When the portrait centering process is performed on the video captured by the target camera, the portrait centering process can be performed based on each video frame in the video. When the portrait centering process is performed on each video frame, the portrait motion step length can be calculated based on the position information of the portrait frame of the adjacent video frame; if the motion step length is less than or equal to the anti-shake threshold, the next video frame is directly cropped based on the cropping range of the previous video frame in the adjacent video frame; if the motion step length is greater than the anti-shake threshold, a new cropping range can be calculated, and the next video frame is cropped based on the new cropping range.

[0104] In an optional embodiment, there are multiple / multiple IoT devices with cameras (such as electronic door eyes, video surveillance, etc.) in the user's home or office, which can identify designated people or animals based on the portrait feature tracking algorithm to achieve remote observation and monitoring.

[0105] See also Figure 5 , Figure 5 This is a second flow chart of the video acquisition method provided in an embodiment of the present application, and the flow chart may include:

[0106] In 201, facial images captured by cameras of multiple electronic devices are acquired to obtain multiple facial images.

[0107] In 202, each facial image is scored according to the position information of the face in each facial image to obtain a first score for each facial image.

[0108] In 203, the facial images are scored according to the facial posture angle information in each facial image to obtain a second score for each facial image.

[0109] At 204 , a weighted sum of the first score and the second score for each facial image is determined as a target score for each facial image.

[0110] In 205 , a facial image having the highest target score among the plurality of facial images is determined as a target facial image.

[0111] In 206 , the camera that captures the target facial image is determined as the target camera.

[0112] In 207, the video captured by the target camera is sent to the target device.

[0113] It should be noted that the specific implementation of steps 201 to 207 can refer to the previous embodiments and will not be repeated here.

[0114] See also Figure 6 , Figure 6 The video acquisition device 300 includes: an image acquisition module 301 , an image determination module 302 , a camera determination module 303 and a video sending module 304 .

[0115] The image acquisition module 301 is used to acquire facial images collected by cameras of multiple electronic devices to obtain multiple facial images.

[0116] The image determination module 302 is used to determine a target facial image from the plurality of facial images according to the facial status information in each facial image.

[0117] The camera determination module 303 is used to determine the camera that captures the target facial image as the target camera.

[0118] The video sending module 303 is used to send the video captured by the target camera to the target device.

[0119] In an optional embodiment, the state information includes position information and posture angle information, and the image determination module 302 can be used to: score each facial image according to the position information of the face in each facial image to obtain a first score for each facial image; score the facial image according to the posture angle information of the face in each facial image to obtain a second score for each facial image; and determine a target facial image from multiple facial images according to the first score and the second score of each facial image.

[0120] In an optional embodiment, the image determination module 302 may be configured to: determine the distance between the face in each facial image and the center in each facial image according to the position information of the face in each facial image and the position information of the center of each facial image, to obtain the distance corresponding to each facial image; and score each facial image according to the distance corresponding to each facial image, to obtain a first score for each facial image, wherein the first score is inversely correlated with the distance.

[0121] In an optional embodiment, the posture angle information includes first posture angle information and second posture angle information, and the image determination module 302 can be used to: obtain first reference posture angle information and second reference posture angle information; determine the difference between the first posture angle information of the face in each of the facial images and the first reference posture angle information, and obtain the first difference corresponding to each of the facial images; determine the difference between the second posture angle information of the face in each of the facial images and the second reference posture angle information, and obtain the second difference corresponding to each of the facial images; determine a second score for each of the facial images based on the first difference and the second difference corresponding to each of the facial images, the second score being inversely correlated with the first difference and the second difference.

[0122] In an optional embodiment, the image determination module 302 may be configured to: determine a weighted sum of the first score and the second score of each of the facial images as a target score for each of the facial images; and determine a facial image with the highest target score among the multiple facial images as a target facial image.

[0123] In an optional embodiment, the video sending module 304 can be used to: if there is an associated camera associated with the target camera, fuse the video captured by the target camera and the video captured by the associated camera to obtain a fused video; and send the fused video to the target device.

[0124] In an optional embodiment, the video sending module 304 can be used to: post-process the video to obtain a processed video; and send the processed video to a target device.

[0125] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the video acquisition method provided in the embodiment.

[0126] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the video acquisition method provided in the present embodiment by calling a computer program stored in the memory.

[0127] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0128] The electronic device 400 may include components such as a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the electronic device 400 may also include a screen.

[0129] The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0130] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 401 executes various functional applications and data processing by running the applications stored in the memory 402.

[0131] In this embodiment, the processor 401 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application program stored in the memory 402, thereby achieving:

[0132] Acquire facial images captured by cameras of multiple electronic devices to obtain multiple facial images;

[0133] Determining a target facial image from the plurality of facial images according to the facial status information in each of the facial images;

[0134] Determine a camera that captures the target facial image as a target camera;

[0135] The video captured by the target camera is sent to the target device.

[0136] In an optional embodiment, the state information includes position information and posture angle information. When the processor 401 executes the step of determining the target facial image from the multiple facial images based on the state information of the face in each facial image, the following steps may be performed: scoring each facial image based on the position information of the face in each facial image to obtain a first score for each facial image; scoring the facial image based on the posture angle information of the face in each facial image to obtain a second score for each facial image; and determining the target facial image from the multiple facial images based on the first score and the second score of each facial image.

[0137] In an optional embodiment, when the processor 401 executes the step of scoring each of the facial images according to the position information of the face in each of the facial images to obtain the first score of each of the facial images, the following steps may be performed: determining the distance between the face in each of the facial images and the center in each of the facial images according to the position information of the face in each of the facial images and the position information of the center of each of the facial images to obtain the distance corresponding to each of the facial images; and scoring each of the facial images according to the distance corresponding to each of the facial images to obtain the first score of each of the facial images, wherein the first score is inversely correlated with the distance.

[0138] In an optional embodiment, the posture angle information includes first posture angle information and second posture angle information. When the processor 401 executes the scoring of the facial images according to the posture angle information of the face in each of the facial images to obtain the second score of each of the facial images, the following may be executed: obtaining first reference posture angle information and second reference posture angle information; determining the difference between the first posture angle information of the face in each of the facial images and the first reference posture angle information to obtain a first difference corresponding to each of the facial images; determining the difference between the second posture angle information of the face in each of the facial images and the second reference posture angle information to obtain a second difference corresponding to each of the facial images; and determining a second score for each of the facial images according to the first difference and the second difference corresponding to each of the facial images, wherein the second score is inversely correlated with the first difference and the second difference.

[0139] In an optional embodiment, when the processor 401 executes the step of determining a target facial image from the multiple facial images according to the first score and the second score of each facial image, the following steps may be performed: determining a weighted sum of the first score and the second score of each facial image as a target score for each facial image; and determining a facial image with the highest target score among the multiple facial images as the target facial image.

[0140] In an optional embodiment, when the processor 401 executes the sending of the video captured by the target camera to the target device, it can execute: if there is an associated camera associated with the target camera, fusing the video captured by the target camera and the video captured by the associated camera to obtain a fused video; and sending the fused video to the target device.

[0141] In an optional embodiment, when the processor 401 executes the sending of the video captured by the target camera to the target device, it can execute: post-processing the video to obtain a processed video; and sending the processed video to the target device.

[0142] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the video acquisition method above, and will not be repeated here.

[0143] The video acquisition device provided in the embodiment of the present application belongs to the same concept as the video acquisition method in the above embodiment. Any method provided in the video acquisition method embodiment can be run on the video acquisition device. The specific implementation process is detailed in the video acquisition method embodiment, which will not be repeated here.

[0144] It should be noted that, for the video acquisition method of the embodiment of the present application, a person skilled in the art can understand that all or part of the process of implementing the video acquisition method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the video acquisition method. Among them, the computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0145] It is understandable that in the specific implementation of this application, user information is involved, such as application usage behavior data, logs and other related data. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0146] For the video acquisition device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0147] The above is a detailed introduction to a video acquisition method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A video acquisition method, characterized in that: include: Acquire facial images captured by cameras of multiple electronic devices to obtain multiple facial images; Determining a target facial image from the plurality of facial images according to the facial status information in each of the facial images; Determine a camera that captures the target facial image as a target camera; The video captured by the target camera is sent to the target device.

2. The video acquisition method according to claim 1, characterized in that: The state information includes position information and posture angle information, and the step of determining a target facial image from a plurality of facial images according to the state information of the face in each facial image includes: Scoring each of the facial images according to the position information of the face in each of the facial images to obtain a first score for each of the facial images; Scoring the facial images according to the facial posture angle information in each facial image to obtain a second score for each facial image; A target facial image is determined from the plurality of facial images according to the first score and the second score of each of the facial images.

3. The video acquisition method according to claim 2, characterized in that: Scoring each of the facial images according to the position information of the face in each of the facial images to obtain a first score for each of the facial images includes: Determine the distance between the face in each facial image and the center in each facial image according to the position information of the face in each facial image and the position information of the center of each facial image, and obtain the distance corresponding to each facial image; Each facial image is scored according to the distance corresponding to each facial image to obtain a first score for each facial image, where the first score is inversely correlated with the distance.

4. The video acquisition method according to claim 2, characterized in that: The posture angle information includes first posture angle information and second posture angle information, and scoring the facial images according to the posture angle information of the face in each of the facial images to obtain a second score for each of the facial images includes: Acquire first reference attitude angle information and second reference attitude angle information; Determine the difference between the first posture angle information of the face in each of the facial images and the first reference posture angle information to obtain a first difference corresponding to each of the facial images; Determine the difference between the second posture angle information of the face in each of the facial images and the second reference posture angle information to obtain a second difference corresponding to each of the facial images; A second score for each of the facial images is determined according to the first difference and the second difference corresponding to each of the facial images, wherein the second score is inversely correlated with the first difference and the second difference.

5. The video acquisition method according to claim 2, characterized in that: The step of determining a target facial image from the plurality of facial images according to the first score and the second score of each facial image comprises: determining a weighted sum of the first score and the second score of each of the facial images as a target score for each of the facial images; A facial image with the highest target score among the multiple facial images is determined as a target facial image.

6. The video acquisition method according to any one of claims 1 to 5, characterized in that: The step of sending the video captured by the target camera to the target device includes: If there is an associated camera associated with the target camera, the video captured by the target camera and the video captured by the associated camera are fused to obtain a fused video; The fused video is sent to a target device.

7. The video acquisition method according to any one of claims 1 to 5, characterized in that: The step of sending the video captured by the target camera to the target device includes: Post-processing the video to obtain a processed video; The processed video is sent to a target device.

8. A video acquisition method, characterized in that: include: An image acquisition module, used to acquire facial images collected by cameras of multiple electronic devices to obtain multiple facial images; An image determination module, configured to determine a target facial image from the plurality of facial images according to facial status information in each of the facial images; A camera determination module, used to determine the camera that captures the target facial image as the target camera; The video sending module is used to send the video captured by the target camera to the target device.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the video acquisition method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the video acquisition method according to any one of claims 1 to 7 by calling the computer program stored in the memory.