WO2022143883A1 - Photographing method and system, and electronic device - Google Patents

Photographing method and system, and electronic device Download PDF

Info

Publication number
WO2022143883A1
WO2022143883A1 PCT/CN2021/143005 CN2021143005W WO2022143883A1 WO 2022143883 A1 WO2022143883 A1 WO 2022143883A1 CN 2021143005 W CN2021143005 W CN 2021143005W WO 2022143883 A1 WO2022143883 A1 WO 2022143883A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting
mobile phone
audio signal
window
picture
Prior art date
Application number
PCT/CN2021/143005
Other languages
French (fr)
Chinese (zh)
Inventor
冯可荣
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022143883A1 publication Critical patent/WO2022143883A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working

Abstract

The present application provides a photographing method and system, and an electronic device, relating to the field of photographing. Pictures photographed by different devices can be flexibly and accurately switched to the electronic device for display, and the user experience is improved. The method comprises: a first device may display a first photographed picture in a display interface, wherein the first photographed picture is a picture acquired by means of a camera of the first device; after the first device establishes a network connection with N electronic devices, the first device may instruct the N electronic devices to start acquiring the photographed pictures, wherein N is an integer greater than 1; if the first device obtains a second photographed picture acquired by a second device, the first device may identify whether the second photographed image contains a preset utterance identifier which indicates that a user is speaking; if the second photographed picture contains the preset utterance identifier which indicates that the user using the second device is speaking, the first device may display the second photographed picture in the display interface.

Description

一种拍摄方法、系统及电子设备A shooting method, system and electronic device
本申请要求于2020年12月30日提交国家知识产权局、申请号为202011630348.0、申请名称为“一种拍摄方法、系统及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application number of 202011630348.0 and an application title of "A Shooting Method, System and Electronic Device" submitted to the State Intellectual Property Office on December 30, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及拍摄领域,尤其涉及一种拍摄方法、系统及电子设备。The present application relates to the field of photography, and in particular, to a photography method, system and electronic device.
背景技术Background technique
目前,许多用户在家庭或工作地点中设置有多个具有拍摄功能的电子设备。在一些场景中,用户可能需要观看不同电子设备拍摄的拍摄画面。Currently, many users have multiple electronic devices with photographing functions set up in their home or workplace. In some scenarios, the user may need to watch shooting images shot by different electronic devices.
例如,在会议场景或多人进行视频通话的场景中,每个用户都可以使用一个电子设备(例如手机)进行拍摄。当用户A在会议中使用手机1讲话时,其他用户可能希望使用自身的手机接收到来自手机1的音频数据和拍摄画面。后续,当用户B在会议中使用手机2讲话时,其他用户可能希望使用自身的手机接收到来自手机2的音频数据和拍摄画面。在这种场景下,如何灵活、准确的将不同设备的拍摄画面切换至电子设备中显示成为亟需解决的问题。For example, in a meeting scene or a scene where multiple people are on a video call, each user can use one electronic device (eg, a mobile phone) to shoot. When user A uses the mobile phone 1 to speak during the conference, other users may wish to receive audio data and captured images from the mobile phone 1 by using their own mobile phones. Subsequently, when user B uses the mobile phone 2 to speak during the conference, other users may wish to use their mobile phones to receive audio data and captured images from the mobile phone 2 . In such a scenario, how to flexibly and accurately switch the shooting images of different devices to be displayed in an electronic device has become an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
本申请提供一种拍摄方法、系统及电子设备,电子设备可以灵活、准确的将不同设备的拍摄画面切换至电子设备中显示,提高用户的使用体验。The present application provides a shooting method, system and electronic device, which can flexibly and accurately switch the shooting images of different devices to display in the electronic device, thereby improving the user experience.
为达到上述目的,本申请采用如下技术方案:To achieve the above object, the application adopts the following technical solutions:
第一方面,本申请提供一种拍摄方法,包括:第一设备可在显示界面中显示第一拍摄画面,第一拍摄画面为第一设备使用自身的摄像头采集到的拍摄画面;当第一设备与N个电子设备建立网络连接后,第一设备可指示这N个电子设备开始采集拍摄画面,N为大于1的整数;如果第一设备获取到第二设备(第二设备为上述N个电子设备中的一个)采集的第二拍摄画面,第一设备可识别第二拍摄画面中是否包含预设的发声标识,发声标识用于指示用户正在发声;若第二拍摄画面中包含预设的发声标识,说明使用第二设备的用户正在讲话,则第一设备可在显示界面中显示第二拍摄画面。此时,第一设备可在显示界面中继续显示第一拍摄画面(即第一设备的拍摄画面),也可以不显示第一拍摄画面。In a first aspect, the present application provides a shooting method, comprising: a first device can display a first shooting picture in a display interface, and the first shooting picture is a shooting picture collected by the first device using its own camera; when the first device After establishing a network connection with N electronic devices, the first device can instruct the N electronic devices to start capturing and shooting images, where N is an integer greater than 1; if the first device obtains the second device (the second device is the above N electronic devices) One of the devices) collected the second shooting picture, the first device can identify whether the second shooting picture contains a preset sounding mark, and the sounding mark is used to indicate that the user is making a sound; if the second shooting picture contains a preset sounding mark identification, indicating that the user using the second device is speaking, and the first device can display the second shooting picture in the display interface. At this time, the first device may continue to display the first photographing image (ie, the photographing image of the first device) on the display interface, or may not display the first photographing image.
可以看出,在第一设备与多个电子设备连接的分布式拍摄场景中,当用户向某一电子设备(例如第二设备)输入音频信号时,第二设备可通过在采集到的拍摄画面中添加预设的发声标记的方式,使得第一设备获知有用户向第二设备输入音频信号。进而,第一设备可将携带有发声标记的拍摄画面显示在显示界面中。这样一来,当不同的用户使用各自的设备输入音频信号时,第一设备作为主设备可以灵活、准确的将有用户声音输入的从设备采集到的拍摄画面切换至主设备上显示,使用户可以聚焦有用户声音输入的从设备的拍摄画面,提高用户的使用体验。It can be seen that in a distributed shooting scenario where the first device is connected to multiple electronic devices, when a user inputs an audio signal to an electronic device (for example, a second device), the second device can The way of adding a preset sounding mark in the first device enables the first device to know that a user inputs an audio signal to the second device. Furthermore, the first device may display the shooting picture carrying the sounding mark on the display interface. In this way, when different users use their respective devices to input audio signals, the first device, as the master device, can flexibly and accurately switch the captured image from the slave device with the user's voice input to the master device for display, so that the user can The shooting screen of the slave device with the user's voice input can be focused to improve the user's experience.
在一种可能的实现方式中,上述显示界面中可以设置预设按钮,该预设按钮用于 同步显示多个设备的拍摄画面;例如,该预设按钮的名称可以为双景模式或多景模式等。以双景模式举例,在第一设备获取第二设备采集到的第二拍摄画面之前,还包括:响应于用户选择预设按钮的操作,第一设备可在显示界面中创建第一窗口和第二窗口,其中,第一窗口用于显示第一设备采集的第一拍摄画面,第二窗口用于显示其他设备采集的拍摄画面;此时,第一设备在显示界面中显示第二拍摄画面,具体包括:第一设备在第二窗口中显示第二拍摄画面,并且,在第一窗口中显示第一拍摄画面。这样一来,用户选择预设按钮后,第一设备可同时显示自身采集的第一拍摄画面,以及有用户声音输入的其他设备的拍摄画面。In a possible implementation manner, a preset button may be set in the above-mentioned display interface, and the preset button is used to synchronously display the shooting images of multiple devices; for example, the name of the preset button may be dual-view mode or multi-view mode, etc. Taking the dual-view mode as an example, before the first device acquires the second shot captured by the second device, the method further includes: in response to the user's operation of selecting a preset button, the first device may create a first window and a first window in the display interface. Two windows, wherein the first window is used to display the first shooting image collected by the first device, and the second window is used to display the shooting image collected by other devices; at this time, the first device displays the second shooting image on the display interface, Specifically, it includes: the first device displays the second shooting picture in the second window, and displays the first shooting picture in the first window. In this way, after the user selects the preset button, the first device can simultaneously display the first shooting image captured by itself and the shooting images of other devices that have the user's voice input.
在一种可能的实现方式中,响应于用户选择预设按钮的操作,还包括:第一设备与N个电子设备建立网络连接;若第一设备与第三设备首先建立网络连接,则在第一设备获取第二设备采集到的第二拍摄画面之前,还包括:第一设备获取第三设备采集到的第三拍摄画面,第三设备为N个电子设备中除第二设备外的一个电子设备;第一设备在第二窗口中显示第三拍摄画面,并且,在第一窗口中显示第一拍摄画面。也就是说,用户选择预设按钮后,第一设备可先将第一个连接的设备的拍摄画面显示在第二窗口中,后续,当获取到有用户声音输入的拍摄画面时,可在第二窗口中将已显示的拍摄画面切换为有用户声音输入的拍摄画面(例如第二拍摄画面)。In a possible implementation manner, in response to the operation of the user selecting the preset button, the method further includes: establishing a network connection between the first device and the N electronic devices; Before the first device acquires the second shooting image collected by the second device, the method further includes: the first device acquiring the third shooting image collected by the third device, and the third device is an electronic device other than the second device among the N electronic devices. device; the first device displays the third shooting picture in the second window, and displays the first shooting picture in the first window. That is to say, after the user selects the preset button, the first device can first display the shooting screen of the first connected device in the second window, and then, when the shooting screen with the user's voice input is obtained, the first device can display the shooting screen in the second window. In the second window, the displayed shooting screen is switched to the shooting screen (eg, the second shooting screen) with the user's voice input.
当然,用户选择预设按钮后,第一设备也可先将N个电子设备中其他一个或多个设备的拍摄画面显示在第二窗口中,本申请对此不做任何限制。Of course, after the user selects the preset button, the first device may first display the shooting images of one or more other devices among the N electronic devices in the second window, which is not limited in this application.
在一种可能的实现方式中,若上述第二拍摄画面中包含预设的发声标识,则第一设备在显示界面中显示第二拍摄画面,具体包括:若第二拍摄画面中包含预设的发声标识,则第一设备可判断距离在第二窗口中显示第三拍摄画面的时间是否超过预设时间;若超过预设时间,则第一设备在第二窗口中显示第二拍摄画面。In a possible implementation manner, if the above-mentioned second shooting picture contains a preset sounding mark, the first device displays the second shooting picture on the display interface, which specifically includes: if the second shooting picture contains a preset sounding mark The first device can determine whether the time to display the third shot in the second window exceeds the preset time; if the preset time exceeds, the first device displays the second shot in the second window.
也就是说,如果距离上一次在第二窗口中切换拍摄画面的时间没有超过预设时间,说明第一设备在第二窗口中切换拍摄画面的时间不久,为了避免频繁切换第二窗口中的拍摄画面给用户带来不好的用户体验,第一设备可以继续在第二窗口中显示第三设备的第三拍摄画面。如果距离上一次在第三拍摄画面中切换拍摄画面的时间超过预设时间,则第一设备可以将第三拍摄画面中显示拍摄画面切换为当前接收到的携带有发声标识的拍摄画面。That is to say, if the time since the last time the shooting screen was switched in the second window did not exceed the preset time, it means that the first device switched the shooting screen in the second window soon, in order to avoid frequent switching of shooting in the second window. The picture brings bad user experience to the user, and the first device may continue to display the third shooting picture of the third device in the second window. If the time since the last time the shooting screen was switched in the third shooting screen exceeds the preset time, the first device may switch the shooting screen displayed in the third shooting screen to the currently received shooting screen carrying the sounding logo.
在一种可能的实现方式中,在第一设备在第二窗口中显示第二拍摄画面之后,还包括:第一设备获取第三设备采集到的第三拍摄画面;若第三拍摄画面中不包含发声标识,则第一设备可继续在第二窗口中显示第二拍摄画面,不显示第三拍摄画面。这样,没有用户声音输入的从设备采集到的拍摄画面不会显示在第一设备(即主设备)的显示界面中,主设备可以灵活、准确的将有用户声音输入的从设备采集到的拍摄画面切换至主设备上显示,使用户可以聚焦至有用户声音输入的从设备的拍摄画面。In a possible implementation manner, after the first device displays the second shooting picture in the second window, the method further includes: the first device acquiring the third shooting picture collected by the third device; If the sound-emitting identifier is included, the first device can continue to display the second shooting picture in the second window without displaying the third shooting picture. In this way, the shooting images collected by the slave device without the user's voice input will not be displayed on the display interface of the first device (ie, the master device), and the master device can flexibly and accurately capture the shooting images collected by the slave device with the user's voice input. The screen is switched to be displayed on the master device, so that the user can focus on the shooting screen of the slave device with the user's voice input.
在一种可能的实现方式中,在第一设备获取第三设备采集到的第三拍摄画面之后,还包括:若第三拍摄画面中包含发声标识,则第一设备可以在第二窗口中显示第三拍摄画面,此时,第二窗口不再显示第二设备的第二拍摄画面;或者,若第三拍摄画面中包含发声标识,则第一设备可在显示界面中创建第三窗口,并在第三窗口中显示第三拍摄画面,此时,第二窗口可继续再显示第二设备的第二拍摄画面。In a possible implementation manner, after the first device acquires the third shooting picture collected by the third device, the method further includes: if the third shooting picture contains a sounding logo, the first device can display it in the second window The third shooting screen, at this time, the second screen no longer displays the second shooting screen of the second device; or, if the third shooting screen contains a sounding mark, the first device can create a third window in the display interface, and The third shooting picture is displayed in the third window, and at this time, the second window can continue to display the second shooting picture of the second device.
在一种可能的实现方式中,上述第二窗口中可以包括提示消息,提示消息用于提示第二窗口对应的用户正在发声。In a possible implementation manner, the above-mentioned second window may include a prompt message, where the prompt message is used to prompt that the user corresponding to the second window is making a sound.
在一种可能的实现方式中,若第二拍摄画面中包含预设的发声标识,则第一设备在显示界面中显示第二拍摄画面,包括:若第二拍摄画面中包含预设的发声标识,则第一设备在显示界面中将第一拍摄画面切换为第二拍摄画面,此时,显示界面中不再显示第一设备自身的拍摄画面。In a possible implementation manner, if the second shooting picture contains a preset sounding mark, the first device displays the second shooting picture on the display interface, including: if the second shooting picture contains a preset sounding mark , the first device switches the first shooting picture to the second shooting picture in the display interface, and at this time, the first device's own shooting picture is no longer displayed in the display interface.
在一种可能的实现方式中,在第一设备与N个电子设备建立网络连接之后,还包括:第一设备可以检测是否有用户向第一设备输入音频信号;若有用户向第一设备输入音频信号,则第一设备可向采集到的第一拍摄画面添加发声标识;进而,第一设备可将携带有发声标识的第一拍摄画面发送给连接的N个电子设备,以使得这N个电子设备根据发声标识显示第一拍摄画面。这样,与第一设备连接的从设备也可以将携带有发声标记的拍摄画面显示在显示界面中,使得分布式拍摄场景中的用户均可以聚焦至有用户声音输入的从设备的拍摄画面。In a possible implementation manner, after the first device establishes a network connection with the N electronic devices, the method further includes: the first device can detect whether a user inputs an audio signal to the first device; if a user inputs an audio signal to the first device audio signal, the first device can add a sounding mark to the collected first shooting picture; further, the first device can send the first shooting picture carrying the sounding mark to the connected N electronic devices, so that the N electronic devices The electronic device displays the first shooting picture according to the sounding identification. In this way, the slave device connected to the first device can also display the shooting picture carrying the sounding mark on the display interface, so that users in the distributed shooting scene can focus on the shooting picture of the slave device with the user's voice input.
在一种可能的实现方式中,第一设备检测是否有用户向第一设备输入音频信号,具体包括:第一设备使用摄像头采集第一拍摄画面的时,可像从设备一样使用麦克风检测音频信号;当第一设备检测到音频信号时,可获取与检测到的音频信号对应的M个第一拍摄画面,M为大于1的整数;若M个第一拍摄画面中的口型特征与检测到的音频信号匹配,则第一设备可确定有用户向第一设备输入音频信号。这种检测用户是否向设备输入音频信号的方式不需要预先训练和存储用户的声纹、面部特征等信息,也不需要与服务器交互,可降低实现的复杂度和实现成本。In a possible implementation manner, the first device detects whether a user inputs an audio signal to the first device, which specifically includes: when the first device uses a camera to capture the first shot, the first device can use a microphone to detect the audio signal like a slave device. When the first device detects the audio signal, M first shooting pictures corresponding to the detected audio signal can be obtained, and M is an integer greater than 1; If the audio signal matches, the first device may determine that a user inputs an audio signal to the first device. This method of detecting whether a user inputs an audio signal to the device does not require pre-training and storage of the user's voiceprint, facial features and other information, nor does it require interaction with the server, which can reduce the complexity and cost of implementation.
在一种可能的实现方式中,当第一设备检测到音频信号时,获取与检测到的音频信号对应的M个第一拍摄画面,具体包括:当第一设备检测到音频信号的响度大于预设值时,获取与检测到的音频信号对应的M个第一拍摄画面,从而增加第一设备确定用户向自身输入音频信号的准确度。In a possible implementation manner, when the first device detects an audio signal, acquiring M first shooting pictures corresponding to the detected audio signal, which specifically includes: when the first device detects that the loudness of the audio signal is greater than a predetermined When the value is set, M first shooting pictures corresponding to the detected audio signals are acquired, thereby increasing the accuracy with which the first device determines the audio signal input by the user to itself.
在一种可能的实现方式中,在第一设备检测是否有用户向第一设备输入音频信号之后,还包括:若有用户向第一设备输入音频信号,说明此时讲话的用户为使用第一设备的用户,则第一设备可停止显示第二设备的第二拍摄画面。当然,第一设备也可继续显示第二设备的第二拍摄画面,本申请对此不做任何限制。In a possible implementation manner, after the first device detects whether a user inputs an audio signal to the first device, the method further includes: if a user inputs an audio signal to the first device, indicating that the user speaking at this time is using the first device. the user of the device, the first device may stop displaying the second shooting picture of the second device. Of course, the first device can also continue to display the second shooting picture of the second device, which is not limited in this application.
第二方面,本申请提供一种拍摄方法,包括:第二设备与第一设备建立网络连接后,第二设备可使用摄像头采集拍摄画面,并使用麦克风检测音频信号;当第二设备检测有用户向第二设备输入音频信号时,第二设备可向采集到的拍摄画面中添加预设的发声标识,发声标识用于指示用户正在发声;进而,第二设备可将携带有发声标识的拍摄画面发送至第一设备,使得第一设备可将携带有发声标记的拍摄画面显示在显示界面中。这样一来,当不同的用户使用各自的从设备输入音频信号时,第一设备作为主设备可以灵活、准确的将有用户声音输入的从设备采集到的拍摄画面切换至主设备上显示,使用户可以聚焦有用户声音输入的从设备的拍摄画面,提高用户的使用体验。In a second aspect, the present application provides a shooting method, which includes: after the second device establishes a network connection with the first device, the second device can use a camera to capture a shooting image, and use a microphone to detect an audio signal; when the second device detects that there is a user When the audio signal is input to the second device, the second device can add a preset sounding mark to the captured shooting picture, and the sounding mark is used to indicate that the user is making a sound; further, the second device can carry the shooting picture with the sounding mark. It is sent to the first device, so that the first device can display the shooting picture carrying the sounding mark on the display interface. In this way, when different users use their respective slave devices to input audio signals, the first device, as the master device, can flexibly and accurately switch the captured image captured by the slave device with the user's voice input to the master device for display, so that the The user can focus on the shooting screen of the slave device with the user's voice input, which improves the user's experience.
在一种可能的实现方式中,在第二设备使用摄像头采集拍摄画面,并使用麦克风检测音频信号之后,还包括:当第二设备检测到音频信号时,获取与检测到的音频信 号对应的M个拍摄画面,M为大于1的整数;若M个拍摄画面中的口型特征与检测到的音频信号匹配,则第二设备可确定有用户向第二设备输入音频信号。In a possible implementation manner, after the second device uses the camera to capture the captured image and uses the microphone to detect the audio signal, the method further includes: when the second device detects the audio signal, acquiring an M corresponding to the detected audio signal. M is an integer greater than 1; if the mouth shape features in the M shooting images match the detected audio signal, the second device may determine that a user inputs an audio signal to the second device.
在一种可能的实现方式中,当第二设备检测到音频信号时,获取与检测到的音频信号对应的M个拍摄画面,包括:当第二设备检测到音频信号的响度大于预设值时,获取与检测到的音频信号对应的M个拍摄画面。In a possible implementation manner, when the second device detects an audio signal, acquiring M shooting pictures corresponding to the detected audio signal includes: when the second device detects that the loudness of the audio signal is greater than a preset value , and acquire M shooting pictures corresponding to the detected audio signal.
在一种可能的实现方式中,在第二设备与第一设备建立网络连接之后,还包括:第二设备获取第一设备的拍摄画面;若第一设备的拍摄画面中包含发声标识,则第二设备在显示界面中显示第一设备的拍摄画面。也就是说,第二设备也可以显示携带有发声标识的拍摄画面,使得分布式拍摄场景中的用户均可以聚焦至有用户声音输入的从设备的拍摄画面。In a possible implementation manner, after the second device establishes a network connection with the first device, the method further includes: the second device acquires the shooting picture of the first device; The second device displays the shooting screen of the first device on the display interface. That is to say, the second device can also display a shooting picture carrying a sounding logo, so that users in the distributed shooting scene can focus on the shooting picture of the slave device with the user's voice input.
在一种可能的实现方式中,第二设备的显示界面中也可以包括第一窗口和第二窗口,其中,第二设备在显示界面中显示第一设备的拍摄画面,包括:第二设备可在第一窗口中显示第一设备的拍摄画面,并在第二窗口中显示第二设备的拍摄画面。In a possible implementation manner, the display interface of the second device may also include a first window and a second window, wherein the second device displays the shooting picture of the first device in the display interface, including: the second device may The shooting picture of the first device is displayed in the first window, and the shooting picture of the second device is displayed in the second window.
第三方面,本申请提供一种电子设备(例如上述第一设备),包括:显示屏、通信模块、一个或多个处理器、一个或多个摄像头、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与通信模块、显示屏以及存储器均耦合,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述任一方面中的拍摄方法。In a third aspect, the present application provides an electronic device (such as the above-mentioned first device), comprising: a display screen, a communication module, one or more processors, one or more cameras, one or more memories, and one or more A computer program; wherein the processor is coupled to the communication module, the display screen and the memory, the above-mentioned one or more computer programs are stored in the memory, and when the electronic device is running, the processor executes one or more stored in the memory. A computer program to cause an electronic device to execute the photographing method in any of the above-mentioned aspects.
第四方面,本申请提供一种电子设备(例如上述第二设备),包括:显示屏、通信模块、一个或多个处理器、一个或多个摄像头、一个或多个存储器、以及一个或多个计算机程序;其中,处理器与通信模块、存储器均耦合,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述任一方面中的拍摄方法。In a fourth aspect, the present application provides an electronic device (such as the above-mentioned second device), comprising: a display screen, a communication module, one or more processors, one or more cameras, one or more memories, and one or more A computer program; wherein, the processor is coupled to the communication module and the memory, the above-mentioned one or more computer programs are stored in the memory, and when the electronic device runs, the processor executes the one or more computer programs stored in the memory, So that the electronic device executes the photographing method in any one of the above-mentioned aspects.
第五方面,本申请提供一种分布式拍摄系统,包括上述第三方面中的第一设备以及上述第四方面中的第二设备。其中,第一设备可在显示界面中显示第一拍摄画面,所述第一拍摄画面为所述第一设备采集到的拍摄画面;当所述第一设备与N个电子设备建立网络连接后,所述第一设备指示所述N个电子设备开始采集拍摄画面,N为大于1的整数;所述第二设备在使用摄像头采集拍摄画面时,还可以使用麦克风检测音频信号;当所述第二设备检测有用户向所述第二设备输入音频信号时,所述第二设备向采集到的拍摄画面(例如第二拍摄画面)中添加预设的发声标识,所述发声标识用于指示用户正在发声;所述第二设备将携带有所述发声标识的第二拍摄画面发送至所述第一设备;所述第一设备获取到第二拍摄画面后,若所述第二拍摄画面中包含预设的发声标识,则所述第一设备在所述显示界面中显示所述第二拍摄画面。In a fifth aspect, the present application provides a distributed shooting system, including the first device in the third aspect and the second device in the fourth aspect. Wherein, the first device can display a first photographing picture in the display interface, and the first photographing picture is a photographing picture collected by the first device; after the first device establishes a network connection with the N electronic devices, The first device instructs the N electronic devices to start capturing and shooting images, where N is an integer greater than 1; the second device may also use a microphone to detect audio signals when using a camera to capture a shooting image; When the device detects that a user inputs an audio signal to the second device, the second device adds a preset sounding mark to the captured shooting picture (for example, the second shooting picture), and the sounding mark is used to indicate that the user is sound; the second device sends the second shooting picture carrying the sounding logo to the first device; after the first device obtains the second shooting picture, if the second shooting picture contains a pre- If the sounding mark is set, the first device displays the second shooting picture in the display interface.
第六方面,本申请提供一种计算机可读存储介质,包括计算机指令,当计算机指令在上述第一设备或第二设备上运行时,使得第一设备或第二设备执行上述任一方面中所述的拍摄方法。In a sixth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, when the computer instructions are executed on the above-mentioned first device or the second device, the first device or the second device is made to perform any of the above-mentioned aspects. the shooting method described.
第七方面,本申请提供一种计算机程序产品,当计算机程序产品在上述第一设备或第二设备上运行时,使得第一设备或第二设备执行上述任一方面中所述的拍摄方法。In a seventh aspect, the present application provides a computer program product that, when the computer program product runs on the first device or the second device, enables the first device or the second device to execute the shooting method described in any one of the above aspects.
第八方面提供一种电子设备上的图形用户界面(graphical user interface,GUI), 电子设备具有显示屏、摄像头、存储器以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述第一方面及其第一方面任一项或者第二方面及其第二方面任一项可能设计的技术方案时,显示的图形用户界面。An eighth aspect provides a graphical user interface (graphical user interface, GUI) on an electronic device, the electronic device has a display screen, a camera, a memory, and one or more processors, the one or more processors are used to execute the One or more computer programs in the memory, and the graphical user interface includes a possible design of the electronic device to execute the first aspect and any one of the first aspect or the second aspect and any one of the second aspect and the second aspect. When the technical solution is used, the graphical user interface is displayed.
可以理解地,上述各个方面所提供的电子设备、分布式拍摄系统、计算机可读存储介质以及计算机程序产品均应用于上文所提供的对应方法,因此,其所能达到的有益效果可参考上文所提供的对应方法中的有益效果,此处不再赘述。It can be understood that the electronic equipment, distributed shooting system, computer-readable storage medium and computer program product provided by the above aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to above. The beneficial effects in the corresponding method provided in this article will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种分布式拍摄系统的架构示意图;1 is a schematic diagram of the architecture of a distributed shooting system provided by an embodiment of the present application;
图2为本申请实施例提供的一种拍摄方法的应用场景示意图一;FIG. 2 is a schematic diagram 1 of an application scenario of a shooting method provided by an embodiment of the present application;
图3为本申请实施例提供的一种拍摄方法的应用场景示意图二;FIG. 3 is a second schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图4为本申请实施例提供的一种拍摄方法的应用场景示意图三;4 is a schematic diagram 3 of an application scenario of a shooting method provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构示意图一;FIG. 5 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application;
图6为本申请实施例提供的一种电子设备中操作系统的架构示意图;6 is a schematic structural diagram of an operating system in an electronic device provided by an embodiment of the present application;
图7为本申请实施例提供的一种拍摄方法的应用场景示意图四;FIG. 7 is a fourth schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图8为本申请实施例提供的一种拍摄方法的应用场景示意图五;FIG. 8 is a schematic diagram 5 of an application scenario of a shooting method provided by an embodiment of the present application;
图9为本申请实施例提供的一种拍摄方法的应用场景示意图六;FIG. 9 is a schematic diagram 6 of an application scenario of a shooting method provided by an embodiment of the present application;
图10为本申请实施例提供的一种拍摄方法的应用场景示意图七;FIG. 10 is a seventh schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图11为本申请实施例提供的一种拍摄方法的应用场景示意图八;FIG. 11 is a schematic diagram eight of an application scenario of a shooting method provided by an embodiment of the present application;
图12为本申请实施例提供的一种拍摄方法的应用场景示意图九;12 is a schematic diagram 9 of an application scenario of a shooting method provided by an embodiment of the present application;
图13为本申请实施例提供的一种拍摄方法的应用场景示意图十;FIG. 13 is a schematic diagram ten of an application scenario of a shooting method provided by an embodiment of the present application;
图14为本申请实施例提供的一种拍摄方法的应用场景示意图十一;FIG. 14 is a schematic diagram eleventh of an application scenario of a shooting method provided by an embodiment of the present application;
图15为本申请实施例提供的一种拍摄方法的应用场景示意图十二;FIG. 15 is a schematic diagram twelve of an application scenario of a shooting method provided by an embodiment of the present application;
图16为本申请实施例提供的一种拍摄方法的应用场景示意图十三;FIG. 16 is a schematic diagram thirteen of an application scenario of a shooting method provided by an embodiment of the present application;
图17为本申请实施例提供的一种拍摄方法的应用场景示意图十四;FIG. 17 is a fourteenth schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图18为本申请实施例提供的一种拍摄方法的应用场景示意图十五;18 is a fifteenth schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图19为本申请实施例提供的一种拍摄方法的应用场景示意图十六;FIG. 19 is a sixteenth schematic diagram of an application scenario of a shooting method provided by an embodiment of the present application;
图20为本申请实施例提供的一种电子设备的结构示意图二;FIG. 20 is a second schematic structural diagram of an electronic device according to an embodiment of the present application;
图21为本申请实施例提供的一种电子设备的结构示意图三。FIG. 21 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
本申请实施例提供的一种拍摄方法,可应用于图1所示的分布式拍摄系统200中。如图1所示,该分布式拍摄系统200中可以包括主设备(master)101和N个从设备(slave)102,N为大于0的整数。主设备101与任意一个从设备102之间可通过有线的方式通信,也可以通过无线的方式通信。A shooting method provided by the embodiment of the present application can be applied to the distributed shooting system 200 shown in FIG. 1 . As shown in FIG. 1 , the distributed photographing system 200 may include a master device (master) 101 and N slave devices (slaves) 102 , where N is an integer greater than 0. Communication between the master device 101 and any one of the slave devices 102 may be performed in a wired manner or wirelessly.
示例性的,主设备101与从设备102之间可以使用通用串行总线(universal serial bus,USB)建立有线连接。又例如,主设备101与从设备102之间可以通过全球移动通讯系统(global system for mobile communications,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽 带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE)、蓝牙、无线保真(wireless fidelity,Wi-Fi)、NFC、基于互联网协议的语音通话(voice over Internet protocol,VoIP)、支持网络切片架构的通信协议建立无线连接。Exemplarily, a wired connection may be established between the master device 101 and the slave device 102 using a universal serial bus (USB). For another example, the master device 101 and the slave device 102 can use the global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) multiple access, CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), Bluetooth, wireless fidelity (Wi-Fi), NFC, voice over Internet protocol (VoIP), and communication protocols that support network slicing architecture establish wireless connections.
其中,主设备101和从设备102中均可设置一个或多个摄像头。Wherein, one or more cameras can be set in both the master device 101 and the slave device 102 .
主设备101可使用自身的摄像头采集图像数据(也可称为拍摄画面),从设备102也可以使用自身的摄像头采集图像数据。示例性的,从设备102可以使用自身的摄像头采集图像数据,并且,从设备102可将图像数据发送给主设备101,由主设备101显示来自从设备102的图像数据。或者,主设备101和从设备102可以同时使用自身的摄像头采集图像数据,并且,从设备102可将图像数据发送给主设备101,由主设备101同时显示来自主设备101和从设备102的图像数据,从而实现跨设备的分布式拍摄功能。The master device 101 may use its own camera to collect image data (also referred to as a captured image), and the slave device 102 may also use its own camera to collect image data. Exemplarily, the slave device 102 can use its own camera to collect image data, and the slave device 102 can send the image data to the master device 101 , and the master device 101 displays the image data from the slave device 102 . Alternatively, the master device 101 and the slave device 102 can use their own cameras to capture image data at the same time, and the slave device 102 can send the image data to the master device 101, and the master device 101 simultaneously displays the images from the master device 101 and the slave device 102 data, so as to realize the distributed shooting function across devices.
示例性的,上述主设备101(或从设备102)具体可以为手机、平板电脑、电视(也可称为智能电视、智慧屏或大屏设备)、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备(例如,智能手表,智能眼镜,智能头盔,智能手环)、车载设备、虚拟现实设备等具有拍摄功能的电子设备,本申请实施例对此不做任何限制。Exemplarily, the above-mentioned master device 101 (or slave device 102 ) may specifically be a mobile phone, a tablet computer, a TV (also referred to as a smart TV, a smart screen, or a large-screen device), a notebook computer, and an Ultra-mobile personal computer (Ultra-mobile personal computer). Personal Computer, UMPC), handheld computers, netbooks, Personal Digital Assistant (PDA), wearable electronic devices (eg, smart watches, smart glasses, smart helmets, smart bracelets), in-vehicle devices, virtual reality devices, etc. For an electronic device with a photographing function, this embodiment of the present application does not impose any limitation on this.
以手机为主设备101举例,手机中可以安装具有拍摄功能的应用,例如,相机应用、直播应用或视频通话应用等。如图2所示,以相机应用举例,检测到用户打开相机应用后,手机可打开自身的摄像头开始采集拍摄画面,并将拍摄画面实时显示在预览界面201的预览框202中。仍以相机应用举例,仍如图2所示,手机可以在相机应用的预览界面201中设置预设按钮203,预设按钮203用于触发手机获取从设备拍摄的拍摄画面,并显示从设备的拍摄画面。例如,预设按钮203可触发手机将自身和从设备的拍摄画面均显示在预览界面201中。又例如,预设按钮203可触发手机将预览界面201中自身的拍摄画面切换为从设备的拍摄画面,此时,手机可以不显示自身的拍摄画面。Taking a mobile phone as the main device 101 as an example, an application with a shooting function, such as a camera application, a live broadcast application, or a video call application, can be installed in the mobile phone. As shown in FIG. 2 , taking the camera application as an example, after detecting that the user has opened the camera application, the mobile phone can turn on its own camera to start capturing images, and display the images in the preview frame 202 of the preview interface 201 in real time. Still taking the camera application as an example, still as shown in FIG. 2 , the mobile phone can set a preset button 203 in the preview interface 201 of the camera application, and the preset button 203 is used to trigger the mobile phone to acquire the shooting image captured by the slave device and display the image of the slave device. Take a picture. For example, the preset button 203 can trigger the mobile phone to display both its own and the captured images of the slave device in the preview interface 201 . For another example, the preset button 203 can trigger the mobile phone to switch its own shooting screen in the preview interface 201 to the shooting screen of the slave device. At this time, the mobile phone may not display its own shooting screen.
示例性的,手机检测到用户点击预设按钮203后,手机可搜索当前具有拍摄功能的一个或多个电子设备。例如,服务器中可以记录每个电子设备是否具有拍摄功能。那么,手机可以在服务器中查询与手机登录同一账号(例如华为账号)的具有拍摄功能的电子设备。Exemplarily, after the mobile phone detects that the user clicks the preset button 203, the mobile phone can search for one or more electronic devices that currently have a photographing function. For example, whether each electronic device has a shooting function can be recorded in the server. Then, the mobile phone can query the server for an electronic device with a photographing function that is logged into the same account as the mobile phone (for example, a Huawei account).
或者,手机可以搜索与手机位于同一Wi-Fi网络中的电子设备。进而,手机可向同一Wi-Fi网络中的各个电子设备发送查询请求,触发接收到查询请求的电子设备向手机发送响应消息,响应消息中可以指示自身是否具有拍摄功能。这样,手机可以根据接收到的响应消息确定出当前Wi-Fi网络中具有拍摄功能的电子设备。Alternatively, the phone can search for electronic devices that are on the same Wi-Fi network as the phone. Further, the mobile phone can send a query request to each electronic device in the same Wi-Fi network, triggering the electronic device that receives the query request to send a response message to the mobile phone, and the response message can indicate whether it has a shooting function. In this way, the mobile phone can determine, according to the received response message, an electronic device with a photographing function in the current Wi-Fi network.
以手机搜索到的具有拍摄功能的电子设备包括电视1、手表2以及平板电脑3举例,手机可将这三个电子设备作为从设备,分别与电视1、手表2以及平板电脑3建立网络连接。例如,手机可分别与电视1、手表2以及平板电脑3建立Wi-Fi连接或者Wi-Fi P2P连接,或者,手机可直接与电视1、手表2以及平板电脑3建立移动网络 连接,该移动网络包括但不限于支持2G,3G,4G,5G以及后续标准协议的移动网络。For example, the electronic devices with shooting function searched by the mobile phone include TV 1, watch 2 and tablet computer 3. The mobile phone can use these three electronic devices as slave devices to establish network connections with TV 1, watch 2 and tablet computer 3 respectively. For example, the mobile phone can establish a Wi-Fi connection or a Wi-Fi P2P connection with the TV 1, the watch 2 and the tablet computer 3 respectively, or the mobile phone can directly establish a mobile network connection with the TV 1, the watch 2 and the tablet computer 3. The mobile network Including but not limited to mobile networks supporting 2G, 3G, 4G, 5G and subsequent standard protocols.
当然,手机也可以在用户打开相机应用或者在用户触发相机应用中的某一选项时自动搜索并连接一个或多个电子设备,本申请实施例对此不做任何限制。Of course, the mobile phone can also automatically search for and connect to one or more electronic devices when the user opens the camera application or when the user triggers an option in the camera application, which is not limited in this embodiment of the present application.
作为一种可能的实现方式,手机中可安装用于管理家庭内智能家居设备(例如电视、空调、音箱或冰箱等)的应用。以智能家居应用举例,用户可以在智能家居应用中添加一个或多个智能家居设备,使得用户添加的智能家居设备与手机建立关联。例如,智能家居设备上可以设置包含设备标识等设备信息的二维码,用户使用手机的智能家居应用扫描该二维码后,可将对应的智能家居设备添加至智能家居应用中,从而建立智能家居设备与手机的关联关系。在本申请实施例中,当智能家居应用中添加的一个或多个智能家居设备上线时,例如,当手机检测到已添加智能家居设备发送的Wi-Fi信号时,手机可与该智能家居设备建立网络连接。As a possible implementation manner, an application for managing smart home devices in the home (such as a TV, an air conditioner, a speaker, or a refrigerator, etc.) may be installed in the mobile phone. Taking a smart home application as an example, the user can add one or more smart home devices in the smart home application, so that the smart home device added by the user is associated with the mobile phone. For example, a two-dimensional code containing device information such as device identification can be set on a smart home device. After the user scans the two-dimensional code with the smart home application of the mobile phone, the corresponding smart home device can be added to the smart home application, thereby establishing a smart home application. The relationship between home equipment and mobile phones. In this embodiment of the present application, when one or more smart home devices added in the smart home application go online, for example, when the mobile phone detects a Wi-Fi signal sent by the added smart home device, the mobile phone can communicate with the smart home device. Establish a network connection.
示例性的,如果手机首先与电视1建立了网络连接,则手机可向电视1发送拍摄指令,使得电视1可响应该拍摄指令使用自身的摄像头开始采集拍摄画面。并且,如图3所示,电视1可将实时采集到的拍摄画面301发送至手机。此时,手机可在相机应用的预览界面201中显示来自电视1的拍摄画面301。这样,手机可响应用户点击预设按钮203的操作将某一从设备(例如电视1)的拍摄画面切换至手机(即主设备)中显示。当然,手机与手表2(或平板电脑3)建立网络连接后,手机也可以指示手表2(或平板电脑3)开始采集拍摄画面,并将采集到的拍摄画面发送至手机,但手机可以不显示来自手表2(或平板电脑3)的拍摄画面。Exemplarily, if the mobile phone establishes a network connection with the TV 1 first, the mobile phone can send a shooting instruction to the TV 1, so that the TV 1 can use its own camera to start capturing shooting images in response to the shooting instruction. Moreover, as shown in FIG. 3 , the TV 1 can send the captured image 301 captured in real time to the mobile phone. At this time, the mobile phone can display the shooting screen 301 from the TV 1 in the preview interface 201 of the camera application. In this way, the mobile phone can switch the shooting screen of a certain slave device (eg, TV 1 ) to be displayed in the mobile phone (ie, the master device) in response to the user's operation of clicking the preset button 203 . Of course, after the mobile phone establishes a network connection with watch 2 (or tablet computer 3), the mobile phone can also instruct watch 2 (or tablet computer 3) to start capturing images and send the captured images to the phone, but the phone may not display the images. Shots from watch 2 (or tablet 3).
后续,电视1、手表2以及平板电脑3在使用摄像头采集拍摄画面的同时,可以实时检测是否有用户输入音频信号。例如,电视1、手表2以及平板电脑3可以使用自身的麦克风检测是否有用户输入音频信号。示例性的,如果平板电脑3检测到用户向自身输入音频信号,说明使用平板电脑3的用户正在发声。此时,如图4所示,平板电脑3可在采集到的拍摄画面401中添加预设的发声标记,并将携带有发声标记的拍摄画面401发送至手机(即主设备)。进而,手机接收到平板电脑3发送的拍摄画面401后,如果识别出拍摄画面401中设置有发声标记,说明此时使用平板电脑3的用户正在发声。进而,仍如图4所示,手机可在相机应用的预览界面201中显示来自平板电脑3的拍摄画面401。此时,手机可以在预览界面201中停止显示电视1发来的拍摄画面。Subsequently, the TV 1 , the watch 2 and the tablet computer 3 can detect in real time whether there is an audio signal input by the user while using the camera to capture and photographed images. For example, the TV 1, the watch 2 and the tablet 3 can use their own microphones to detect whether there is an audio signal input by the user. Exemplarily, if the tablet computer 3 detects that the user inputs an audio signal to itself, it means that the user using the tablet computer 3 is making a sound. At this time, as shown in FIG. 4 , the tablet computer 3 can add a preset sounding mark to the captured shooting picture 401 , and send the shooting picture 401 carrying the sounding mark to the mobile phone (ie, the main device). Furthermore, after the mobile phone receives the shooting screen 401 sent by the tablet computer 3, if it recognizes that a voice mark is set in the shooting screen 401, it means that the user using the tablet computer 3 is speaking at this time. Furthermore, as still shown in FIG. 4 , the mobile phone can display the shooting screen 401 from the tablet computer 3 in the preview interface 201 of the camera application. At this time, the mobile phone can stop displaying the shooting picture sent by the TV 1 in the preview interface 201 .
也就是说,在分布式拍摄场景中,与主设备(例如上述手机)相连的多个从设备可以实时检测是否有用户向自身输入音频信号。当用户向某一从设备(例如上述平板电脑3)输入音频信号时,该从设备可主动在采集到的拍摄画面中添加预设的发声标记。这样,当主设备接收到该从设备发来的拍摄画面时,可通过拍摄画面中的发声标记获知有用户向该从设备输入音频信号。进而,主设备可将携带有发声标记的拍摄画面显示在显示界面中。这样一来,当不同的用户使用各自的从设备输入音频信号时,主设备可以灵活、准确的将有用户声音输入的从设备采集到的拍摄画面切换至主设备上显示,使用户可以聚焦有用户声音输入的从设备的拍摄画面,提高用户的使用体验。That is to say, in a distributed shooting scenario, multiple slave devices connected to a master device (eg, the above-mentioned mobile phone) can detect in real time whether a user inputs an audio signal to itself. When a user inputs an audio signal to a certain slave device (for example, the above-mentioned tablet computer 3 ), the slave device can actively add a preset sounding mark to the captured picture. In this way, when the master device receives the shooting picture sent by the slave device, it can know that the user inputs an audio signal to the slave device through the sounding mark in the shooting picture. Furthermore, the master device can display the shooting picture carrying the sounding mark on the display interface. In this way, when different users use their respective slave devices to input audio signals, the master device can flexibly and accurately switch the captured image from the slave device with the user's voice input to the master device for display, so that the user can focus on The shooting screen of the slave device input by the user's voice improves the user's experience.
另外,上述平板电脑3除了可以将携带有发声标记的拍摄画面发送至手机(即主设备)外,还可以将携带有发声标记的拍摄画面发送至其他从设备(例如上述电视1 和/或手表2),这样,其他从设备也可以将携带有发声标记的拍摄画面显示在显示界面中,使得分布式拍摄场景中的用户均可以聚焦至有用户声音输入的从设备的拍摄画面。In addition, the above-mentioned tablet computer 3 can not only send the shooting picture carrying the sound mark to the mobile phone (ie the master device), but also can send the shooting picture carrying the sound mark to other slave devices (for example, the above-mentioned TV 1 and/or watch. 2) In this way, other slave devices can also display the shooting picture carrying the sound mark on the display interface, so that users in the distributed shooting scene can focus on the shooting picture of the slave device with the user's voice input.
在另一些实施例中,主设备(例如上述手机)在与各个从设备建立连接后,也可以继续使用自身的摄像头采集拍摄画面。此时,手机可以在上述预览界面201中设置两个窗口,其中一个窗口用于按照上述方法显示采集到有用户发声的从设备(例如上述平板电脑3)发送的拍摄画面,另一个窗口用户显示手机(即主设备)采集的拍摄画面,本申请实施例对此不做任何限制。In other embodiments, after the master device (for example, the above-mentioned mobile phone) establishes a connection with each slave device, it can also continue to use its own camera to capture and take pictures. At this time, the mobile phone can set two windows in the above-mentioned preview interface 201, one of which is used to display the captured image sent from the device (for example, the above-mentioned tablet computer 3) with the user's voice according to the above method, and the other window is used to display the user's voice. The shooting images collected by the mobile phone (ie, the main device) are not limited in this embodiment of the present application.
示例性的,以手机作为上述分布式拍摄系统200中的主设备201举例,图5示出了手机的结构示意图。Illustratively, taking a mobile phone as the main device 201 in the above-mentioned distributed shooting system 200 as an example, FIG. 5 shows a schematic structural diagram of the mobile phone.
手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180等。The mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, Speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, etc.
可以理解的是,本发明实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone. In other embodiments of the present application, the mobile phone may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR) 等无线通信的解决方案。The wireless communication module 160 can provide applications on the mobile phone including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system ( global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the mobile phone is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the handset may include 1 or N display screens 194, where N is a positive integer greater than 1.
手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the mobile phone may include 1 or N cameras 193 , where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The mobile phone can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the mobile phone receives a call or a voice message, the voice can be received by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机可以设置至少一个麦克风170C。在另一些实施例中,手机可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The mobile phone may be provided with at least one microphone 170C. In other embodiments, the mobile phone may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the mobile phone can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
传感器模块180中可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
当然,手机还可以包括充电管理模块、电源管理模块、电池、按键、指示器以及1个或多个SIM卡接口等,本申请实施例对此不做任何限制。Of course, the mobile phone may also include a charging management module, a power management module, a battery, a button, an indicator, and one or more SIM card interfaces, which are not limited in this embodiment of the present application.
上述手机的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明手机的软件结构。当然,在其他操作系统(例如鸿蒙系统、Linux系统等)中,只要各个功能模块实现的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。The software system of the above mobile phone may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of a mobile phone. Of course, in other operating systems (such as Hongmeng system, Linux system, etc.), as long as the functions implemented by each functional module are similar to the embodiments of the present application, it falls within the scope of the claims of the present application and their equivalent technologies.
图6是本申请实施例提供的手机的软件结构框图。FIG. 6 is a block diagram of a software structure of a mobile phone provided by an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,HAL(hardware abstraction layer,硬件抽象层)层以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the HAL (hardware abstraction layer, hardware abstraction layer) layer and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图6所示,应用程序层中可以安装通话,备忘录,浏览器,联系人,图库,日历,地图,蓝牙,音乐,视频,短信息等应用(application)。As shown in FIG. 6 , applications such as call, memo, browser, contact, gallery, calendar, map, Bluetooth, music, video, and short message can be installed in the application layer.
在本申请实施例中,应用程序层中可以安装具有拍摄功能的应用,例如,相机应用、视频通话应用或直播应用等。当然,其他应用需要使用拍摄功能时,也可以调用相机应用等具有拍摄功能的应用实现拍摄功能。In this embodiment of the present application, an application with a shooting function may be installed in the application layer, for example, a camera application, a video call application, or a live broadcast application. Of course, when other applications need to use the shooting function, an application with a shooting function such as a camera application can also be invoked to realize the shooting function.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图6所示,以相机应用举例,应用程序框架层中设置有相机服务(CameraService)。相机应用可通过调用预设的API启动CameraService。CameraService在运行过程中可以与HAL(hardware abstraction layer,硬件抽象层)中的相机HAL(Camera HAL) 交互。其中,Camera HAL负责与手机中实现拍摄功能的硬件设备(例如摄像头)进行交互,Camera HAL一方面隐藏了相关硬件设备的实现细节(例如具体的图像处理算法),另一方面可向Android系统提供调用相关硬件设备的接口。As shown in FIG. 6 , taking a camera application as an example, a camera service (CameraService) is set in the application framework layer. The camera application can start CameraService by calling the preset API. CameraService can interact with the camera HAL (Camera HAL) in the HAL (hardware abstraction layer, hardware abstraction layer) during the running process. Among them, the Camera HAL is responsible for interacting with the hardware devices (such as cameras) that realize the shooting function in the mobile phone. On the one hand, the Camera HAL hides the implementation details of the relevant hardware devices (such as specific image processing algorithms), and on the other hand can provide the Android system. Call the interface of the relevant hardware device.
示例性的,相机应用可将用户下发的相关控制指令(例如预览、放大、拍照或录像指令)发送至CameraService。一方面,CameraService可将接收到的控制指令发送至Camera HAL,使得Camera HAL可根据接收到的控制指令调用内核层中的相机驱动,驱动摄像头等硬件设备响应该控制指令采集原始图像数据。例如,摄像头可按照一定的帧率,将采集到的每一帧原始图像数据通过相机驱动传递给Camera HAL。其中,控制指令在操作系统内部的传递过程可参见图6中控制流的具体传递过程。Exemplarily, the camera application may send relevant control instructions (such as preview, zoom in, photographing or video recording instructions) issued by the user to the CameraService. On the one hand, CameraService can send received control commands to Camera HAL, so that Camera HAL can call the camera driver in the kernel layer according to the received control commands, and drive hardware devices such as cameras to collect raw image data in response to the control commands. For example, the camera can transmit each frame of raw image data collected to the Camera HAL through the camera driver at a certain frame rate. For the transfer process of the control instruction inside the operating system, reference may be made to the specific transfer process of the control flow in FIG. 6 .
另一方面,CameraService接收到上述控制指令后,可根据接收到的控制指令确定此时的拍摄策略,拍摄策略中设置了需要对采集到的图像数据执行的具体图像处理任务。例如,在预览模式下,CameraService可在拍摄策略中设置图像处理任务1用于实现人脸检测功能。又例如,如果在预览模式下用户开启了美颜功能,则CameraService还可以在拍摄策略中设置图像处理任务2用于实现美颜功能。进而,CameraService可将确定出的拍摄策略发送至Camera HAL。On the other hand, after the CameraService receives the above control instruction, it can determine the shooting strategy at this time according to the received control instruction, and the specific image processing task that needs to be performed on the collected image data is set in the shooting strategy. For example, in preview mode, CameraService can set image processing task 1 in the shooting strategy to implement the face detection function. For another example, if the user enables the beauty function in the preview mode, the CameraService may also set image processing task 2 in the shooting strategy to implement the beauty function. Furthermore, CameraService can send the determined shooting strategy to Camera HAL.
当Camera HAL接收到摄像头采集到的每一帧图像数据后,可根据CameraService下发的拍摄策略对上述图像数据执行相应的图像处理任务,得到图像处理后的每一帧拍摄画面。例如,Camera HAL可根据拍摄策略1对接收到的每一帧图像数据执行图像处理任务1,得到对应的每一帧拍摄画面。当拍摄策略1更新为拍摄策略2后,Camera HAL可根据拍摄策略2对接收到的每一帧图像数据执行图像处理任务2和图像处理任务3,得到对应的每一帧拍摄画面。When the Camera HAL receives each frame of image data collected by the camera, it can perform corresponding image processing tasks on the above image data according to the shooting strategy issued by CameraService, and obtain each frame of image processing after image processing. For example, Camera HAL can perform image processing task 1 for each frame of image data received according to shooting strategy 1, and obtain each corresponding frame of shooting picture. After the shooting strategy 1 is updated to the shooting strategy 2, the Camera HAL can perform image processing task 2 and image processing task 3 for each frame of image data received according to the shooting strategy 2, and obtain the corresponding shooting picture of each frame.
后续,Camera HAL可将经过图像处理后的每一帧拍摄画面通过CameraService上报给相机应用,相机应用可将每一帧拍摄画面显示在显示界面中,或者,相机应用可以照片或视频的形式将每一帧拍摄画面保存在手机内。其中,上述拍摄画面在操作系统内部的传递过程可参见图6中数据流的具体传递过程。Subsequently, Camera HAL can report each frame of captured image after image processing to the camera application through CameraService, and the camera application can display each frame of captured image on the display interface, or the camera application can display each frame of captured image in the form of photos or videos. A frame shot is saved in the phone. For the transfer process of the above-mentioned shooting images inside the operating system, reference may be made to the specific transfer process of the data flow in FIG. 6 .
另外,应用程序框架层还可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等,本申请实施例对此不做任何限制。In addition, the application framework layer may also include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like, which are not limited in this embodiment of the present application.
例如,上述窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。上述内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。上述视图系统可用于构建应用程序的显示界面。每个显示界面可以由一个或多个控件组成。一般而言,控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、微件(Widget)等界面元素。上述资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。上述通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,振动,指示灯 闪烁等。For example, the above-mentioned window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc. The above content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc. The view system described above can be used to build the display interface of an application. Each display interface can consist of one or more controls. Generally speaking, controls may include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other interface elements. The above resource managers provide various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on. The notification manager described above enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications that appear on the screen in the form of dialog windows. For example, prompting text information in the status bar, sounding, vibrating, flashing lights, etc.
如图6所示,Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。As shown in Figure 6, the Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。Among them, the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing. 2D graphics engine is a drawing engine for 2D drawing.
内核层位于HAL之下,是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等,本申请实施例对此不做任何限制。The kernel layer is located under the HAL and is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, and the like, which are not limited in this embodiment of the present application.
基于图6所示的Android系统的软件架构,在本申请实施例中,如图7所示,可在手机的应用程序层中安装用于实现分布式拍摄功能的设备虚拟化(DeviceVirtualization)应用,后续可称为DV应用。DV应用可作为系统应用常驻在手机中运行。或者,也可将DV应用实现的功能以系统服务的形式常驻在手机中运行。Based on the software architecture of the Android system shown in FIG. 6 , in the embodiment of the present application, as shown in FIG. 7 , a device virtualization (DeviceVirtualization) application for realizing a distributed shooting function may be installed in the application layer of the mobile phone, Subsequent can be referred to as DV applications. The DV application can run in the mobile phone as a system application. Alternatively, the functions implemented by the DV application can also be resident and run in the mobile phone in the form of system services.
当手机需要与其他电子设备共同实现分布式拍摄功能时,手机中的DV应用可将一个或多个电子设备作为手机的从设备与手机建立网络连接。仍如图7所示,手机的DV应用与从设备建立网络连接后,DV应用可基于该网络连接获取从设备的拍摄能力参数,该拍摄能力参数用于指示从设备的拍摄能力。例如,该拍摄能力参数中可以包括从设备支持的具体图像处理算法,从设备中摄像头的相关硬件参数等。进而,DV应用可调用HAL的预设接口,向预设接口中输入获取到的拍摄能力参数,从而在HAL中创建与从设备对应的HAL。When the mobile phone needs to realize the distributed shooting function together with other electronic devices, the DV application in the mobile phone can establish a network connection with the mobile phone by using one or more electronic devices as slave devices of the mobile phone. Still as shown in FIG. 7 , after the DV application of the mobile phone establishes a network connection with the slave device, the DV application can obtain the shooting capability parameter of the slave device based on the network connection, and the shooting capability parameter is used to indicate the shooting capability of the slave device. For example, the shooting capability parameter may include specific image processing algorithms supported by the slave device, relevant hardware parameters of the camera in the slave device, and the like. Furthermore, the DV application can call the preset interface of the HAL, and input the acquired shooting capability parameters into the preset interface, so as to create a HAL corresponding to the slave device in the HAL.
本申请实施例中可将DV应用按照从设备的拍摄能力参数创建的HAL称为DMSDP(Distributed Mobile Sensing Development Platform,分布式移动传感开发平台)HAL,也可称为虚拟Camera HAL。与手机中传统的Camera HAL不同的是,DMSDP HAL并不与手机实际的硬件设备相对应,而是与手机当前连接的从设备对应。手机可作为主设备通过DMSDP HAL与从设备进行数据收发,将从设备作为手机的一个虚拟设备,与从设备协同完成分布式拍摄场景中的各项业务。In the embodiment of the present application, the HAL created by the DV application according to the shooting capability parameters of the slave device may be referred to as the DMSDP (Distributed Mobile Sensing Development Platform) HAL, and may also be referred to as the virtual Camera HAL. Different from the traditional Camera HAL in the mobile phone, the DMSDP HAL does not correspond to the actual hardware device of the mobile phone, but corresponds to the slave device currently connected to the mobile phone. The mobile phone can be used as the master device to send and receive data with the slave device through the DMSDP HAL, and the slave device can be used as a virtual device of the mobile phone to cooperate with the slave device to complete various services in the distributed shooting scene.
仍如图7所示,DV应用除了在HAL中为手机的从设备创建对应的DMSDP HAL之外,还可以将从设备的拍摄能力参数发送至CameraService进行保存,也即在CameraService中注册当前从设备的拍摄能力。Still as shown in Figure 7, in addition to creating the corresponding DMSDP HAL for the slave device of the mobile phone in the HAL, the DV application can also send the shooting capability parameters of the slave device to CameraService for saving, that is, register the current slave device in CameraService. shooting ability.
后续,以相机应用举例,当手机运行相机应用时,CameraService能够根据相机应用下发的控制指令(例如预览、放大、录像等指令),结合从设备的拍摄能力实时确 定拍摄过程中的拍摄策略。例如,CameraService可以在根据从设备的拍摄能力参数,在拍摄策略中设置手机需要执行的图像处理任务,以及从设备需要执行的图像处理任务。进而,CameraService可通过DMSDP HAL向从设备发送与拍摄策略对应的拍摄指令,触发从设备执行对应的图像处理任务。Next, taking the camera application as an example, when the mobile phone runs the camera application, CameraService can determine the shooting strategy in the shooting process in real time according to the control instructions (such as preview, zoom, video and other instructions) issued by the camera application, combined with the shooting capability of the slave device. For example, CameraService can set the image processing tasks that the mobile phone needs to perform and the image processing tasks that the slave device needs to perform in the shooting strategy according to the shooting capability parameters of the slave device. Furthermore, CameraService can send a shooting instruction corresponding to the shooting strategy to the slave device through the DMSDP HAL, and trigger the slave device to perform the corresponding image processing task.
这样一来,手机和从设备在实现分布式拍摄功能时,手机和从设备可基于上述拍摄策略,按照自身的拍摄能力对图像数据进行相应的图像处理,使得手机可与从设备更加高效、灵活的协同实现分布式拍摄功能,在分布式拍摄场景中实现较好的拍摄效果。In this way, when the mobile phone and the slave device realize the distributed shooting function, the mobile phone and the slave device can perform corresponding image processing on the image data according to their own shooting capabilities based on the above shooting strategy, so that the mobile phone and the slave device can be more efficient and flexible. The distributed shooting function can be realized by the coordination of the system, and the better shooting effect can be achieved in the distributed shooting scene.
在本申请实施例中,以手机1为主设备举例,手机1和多个从设备可在分布式拍摄场景下进行同步拍摄。In the embodiment of the present application, taking the mobile phone 1 as the master device as an example, the mobile phone 1 and multiple slave devices can perform synchronous shooting in a distributed shooting scene.
例如,如果检测到用户打开手机1的相机应用,则手机1可打开自身的摄像头开始拍摄,并且,如图8所示,手机1可将采集到的拍摄画面显示在相机应用的预览界面801中。在本申请实施例中,预览界面801中可以设置用于与从设备同步拍摄的预设按钮802,预设按钮802可用于触发手机1显示两个或更多个电子设备的拍摄画面。例如,预设按钮802的名称可以为“双景模式”、“三景模式”或“多景模式”等。以“双景模式”举例,手机1检测到用户选择名称为“双景模式”的预设按钮802后,可触发手机1在预览界面801中创建两个窗口,其中一个窗口用于显示手机1的拍摄画面,另一个窗口用于显示其他电子设备的拍摄画面。应理解:如果手机与N个具有摄像头的电子设备建立了无线连接,当用户在预览界面801点击了预设按钮802,则触发手机1在预览界面801创建N+1个窗口,一个窗口用于显示手机1的拍摄画面,另外N个窗口用于显示N个电子设备的拍摄画面。当然也可创建比N+1少的窗口或N+1多的窗口,来显示手机1的拍摄界面和其他N个电子设备的拍摄界面,如果创建的窗口少于N+1,可选择一些电子设备的拍摄界面不显示。如果创建的窗口多于N+1,则多于N+1的窗口可显示其他内容,或者重复显示其中一个或多个电子设备的拍摄界面。For example, if it is detected that the user opens the camera application of the mobile phone 1, the mobile phone 1 can open its own camera to start shooting, and, as shown in FIG. 8, the mobile phone 1 can display the captured shooting image in the preview interface 801 of the camera application . In this embodiment of the present application, the preview interface 801 may be provided with a preset button 802 for synchronizing shooting with the slave device, and the preset button 802 may be used to trigger the mobile phone 1 to display shooting images of two or more electronic devices. For example, the name of the preset button 802 may be "dual-view mode", "three-view mode" or "multi-view mode", and so on. Taking the "dual scene mode" as an example, after the mobile phone 1 detects that the user selects the preset button 802 named "dual scene mode", it can trigger the mobile phone 1 to create two windows in the preview interface 801, one of which is used to display the mobile phone 1 , and another window is used to display the shooting images of other electronic devices. It should be understood that if the mobile phone establishes a wireless connection with N electronic devices with cameras, when the user clicks the preset button 802 on the preview interface 801, the mobile phone 1 is triggered to create N+1 windows on the preview interface 801, and one window is used for The shooting pictures of the mobile phone 1 are displayed, and the other N windows are used to display the shooting pictures of N electronic devices. Of course, it is also possible to create fewer windows than N+1 or more windows than N+1 to display the shooting interface of mobile phone 1 and the shooting interfaces of other N electronic devices. If the number of windows created is less than N+1, some electronic devices can be selected. The camera interface of the device is not displayed. If more than N+1 windows are created, the more than N+1 windows may display other content, or repeatedly display the shooting interface of one or more electronic devices.
当然,手机1也可以将上述用于与从设备同步拍摄的预设按钮802设置在手机1的控制中心、下拉菜单、负一屏菜单或其他应用(例如视频通话应用、直播应用等)中,本申请实施例对此不做任何限制。Of course, the mobile phone 1 can also set the above-mentioned preset button 802 for synchronous shooting with the slave device in the control center, pull-down menu, negative one-screen menu or other applications (such as video calling applications, live broadcasting applications, etc.) of the mobile phone 1, This embodiment of the present application does not impose any limitation on this.
以下实施例中以名称为“双景模式”的预设按钮802举例,当手机1检测到用户点击上述预设按钮802后,手机1的DV应用可以触发手机1搜索附近具有拍摄功能的一个或多个电子设备。当然,手机1也可以在用户打开相机应用后自动搜索附近具有拍摄功能的一个或多个电子设备。以手机1的DV应用检测到电视1和手机2这两个电子设备举例,手机1的DV应用可将电视1和手机2作为手机1的两个从设备分别与手机1建立网络连接。例如,手机1可与电视1建立Wi-Fi P2P连接,并且,手机1可与手机2建立Wi-Fi P2P连接。进而,手机1的DV应用可基于与电视1之间的网络连接获取电视1的拍摄能力参数1。并且,手机1的DV应用可基于与手机2之间的网络连接获取手机2的拍摄能力参数2。In the following embodiments, the preset button 802 named "dual scene mode" is used as an example. When the mobile phone 1 detects that the user clicks the preset button 802, the DV application of the mobile phone 1 can trigger the mobile phone 1 to search for a nearby camera or camera with a shooting function. Multiple electronic devices. Of course, the mobile phone 1 can also automatically search for one or more nearby electronic devices with a shooting function after the user opens the camera application. Taking the DV application of mobile phone 1 detecting two electronic devices, TV 1 and mobile phone 2, for example, the DV application of mobile phone 1 can use TV 1 and mobile phone 2 as two slave devices of mobile phone 1 to establish network connection with mobile phone 1 respectively. For example, mobile phone 1 can establish a Wi-Fi P2P connection with TV 1, and mobile phone 1 can establish a Wi-Fi P2P connection with mobile phone 2. Furthermore, the DV application of the mobile phone 1 can acquire the shooting capability parameter 1 of the TV 1 based on the network connection with the TV 1 . Moreover, the DV application of the mobile phone 1 can acquire the shooting capability parameter 2 of the mobile phone 2 based on the network connection with the mobile phone 2 .
进而,如图9所示,手机1的DV应用可根据获取到的拍摄能力参数1和拍摄能力参数2在HAL中创建对应的DMSDP HAL。例如,手机1的DV应用可根据拍摄能 力参数1创建与电视1对应的虚拟HAL 1,并且,手机1的DV应用可根据拍摄能力参数2创建与手机2对应的虚拟HAL 2。虚拟HAL 1和虚拟HAL 2可作为两个功能模块运行在DMSDP HAL中。后续,手机1可通过虚拟HAL 1与电视1进行数据交互,并且,手机1可通过虚拟HAL 2与手机2进行数据交互。Furthermore, as shown in FIG. 9 , the DV application of the mobile phone 1 can create a corresponding DMSDP HAL in the HAL according to the acquired shooting capability parameter 1 and shooting capability parameter 2. For example, the DV application of the mobile phone 1 can create a virtual HAL 1 corresponding to the TV 1 according to the shooting capability parameter 1, and the DV application of the mobile phone 1 can create a virtual HAL 2 corresponding to the mobile phone 2 according to the shooting capability parameter 2. Virtual HAL 1 and Virtual HAL 2 can run as two functional modules in the DMSDP HAL. Subsequently, the mobile phone 1 can perform data interaction with the TV 1 through the virtual HAL 1, and the mobile phone 1 can perform data interaction with the mobile phone 2 through the virtual HAL 2.
可以理解的是,当手机1检测到新的从设备时,还可以按照上述方法在DMSDP HAL中创建新的虚拟HAL。或者,当手机1检测到与当前的某一从设备断开网络连接时,也可以在DMSDP HAL中删除对应的虚拟HAL。又或者,当手机1检测到某一从设备的拍摄能力参数更新时,手机1的DV应用可以按照更新后的拍摄能力参数更新对应的虚拟HAL,本申请实施例对此不做任何限制。It can be understood that when the mobile phone 1 detects a new slave device, it can also create a new virtual HAL in the DMSDP HAL according to the above method. Alternatively, when the mobile phone 1 detects that the network connection is disconnected from a current slave device, the corresponding virtual HAL can also be deleted in the DMSDP HAL. Alternatively, when the mobile phone 1 detects that the shooting capability parameter of a slave device is updated, the DV application of the mobile phone 1 can update the corresponding virtual HAL according to the updated shooting capability parameter, which is not limited in this embodiment of the present application.
在另一些实施例中,手机1的DV应用获取到电视1和手机2的拍摄能力参数后,也可以在HAL中创建两个DMSDP HAL,其中一个DMSDP HAL与电视1对应,另一个DMSDP HAL与手机2对应,本申请实施例对此不做任何限制。In other embodiments, after the DV application of mobile phone 1 obtains the shooting capability parameters of TV 1 and mobile phone 2, it can also create two DMSDP HALs in the HAL, one of which corresponds to TV 1, and the other DMSDP HAL corresponds to Corresponding to the mobile phone 2, this embodiment of the present application does not impose any limitation on this.
或者,手机1搜索到附近具有拍摄功能的一个或多个电子设备后,可以显示对应的设备列表。这样,用户可以在手机1显示的设备列表中选择本次作为手机1的从设备的一个或多个电子设备。后续,手机1可响应用户的选择操作,按照上述方法与相应的电子设备建立网络连接,并创建对应的DMSDP HAL,本申请实施例对此不做任何限制。Alternatively, after the mobile phone 1 searches for one or more electronic devices with a photographing function nearby, it can display a corresponding device list. In this way, the user can select one or more electronic devices that are the slave devices of the mobile phone 1 this time in the device list displayed by the mobile phone 1 . Subsequently, the mobile phone 1 can respond to the user's selection operation, establish a network connection with the corresponding electronic device according to the above method, and create a corresponding DMSDP HAL, which is not limited in this embodiment of the present application.
仍如图9所示,手机1的HAL中还可以设置与手机的摄像头对应的Camera HAL。当检测到用户打开相机应用后,手机1可打开自身的摄像头采集图像数据。手机1的摄像头可将采集到的图像数据上报给Camera HAL,由Camera HAL将采集到的图像数据处理为对应的每一帧拍摄画面(即拍摄画面1)。进而,Camera HAL可将得到的拍摄画面1上报给CameraService,由CameraService将拍摄画面1上报给相机应用,使得相机应用在手机1的显示界面中显示该拍摄画面1。Still as shown in FIG. 9 , a Camera HAL corresponding to the camera of the mobile phone can also be set in the HAL of the mobile phone 1 . After detecting that the user has opened the camera application, the mobile phone 1 can open its own camera to collect image data. The camera of the mobile phone 1 can report the collected image data to the Camera HAL, and the Camera HAL processes the collected image data into each corresponding frame of shooting picture (ie, the shooting picture 1). Furthermore, the Camera HAL can report the obtained shooting picture 1 to the CameraService, and the CameraService reports the shooting picture 1 to the camera application, so that the camera application displays the shooting picture 1 on the display interface of the mobile phone 1.
在本申请实施例中,手机1的相机应用检测到用户点击上述预设按钮802后,如图10所示,相机应用可在显示界面中创建窗口1201和窗口1202。此时,与图9中手机1的处理过程类似的,手机1的CameraService可以接收到Camera HAL实时上报的来自手机1的拍摄画面1,手机1的CameraService可将手机1的拍摄画面1上报给相机应用。此时,相机应用可将手机1的拍摄画面1显示在窗口1201(或窗口1202)中。In the embodiment of the present application, after the camera application of the mobile phone 1 detects that the user clicks the preset button 802, as shown in FIG. 10, the camera application can create a window 1201 and a window 1202 in the display interface. At this time, similar to the processing process of mobile phone 1 in FIG. 9 , the CameraService of mobile phone 1 can receive the shooting picture 1 from mobile phone 1 reported in real time by the Camera HAL, and the CameraService of mobile phone 1 can report the shooting picture 1 of mobile phone 1 to the camera. application. At this time, the camera application can display the photographed screen 1 of the mobile phone 1 in the window 1201 (or the window 1202 ).
同时,当手机1与当前的从设备建立网络连接后,手机1的相机应用还可以在显示界面的另一个窗口(例如窗口1202)中实时显示来自从设备的拍摄画面。例如,手机1可默认在窗口1202中显示第一个与手机1建立网络连接的从设备的拍摄画面。At the same time, after the mobile phone 1 establishes a network connection with the current slave device, the camera application of the mobile phone 1 can also display the captured image from the slave device in real time in another window (eg, window 1202 ) of the display interface. For example, the mobile phone 1 can display the photographed screen of the first slave device that establishes a network connection with the mobile phone 1 in the window 1202 by default.
仍以手机1的从设备为电视1和手机2举例,当手机1先与电视1建立网络连接,并按照电视1的拍摄能力参数在DMSDP HAL中创建对应的虚拟HAL 1后,手机1可向电视1发送拍摄指令1。仍如图9所示,电视1可响应拍摄指令1使用电视1的摄像头实时获取拍摄画面2。进而,电视1可将拍摄画面2发送至手机1的虚拟HAL 1,虚拟HAL 1接收到来自电视1的拍摄画面2后,可通过手机1的CameraService将拍摄画面2上报给相机应用。继而,如图10所示,相机应用可将来自电视1的拍摄画面2显示在窗口1202中。这样,当用户在手机1中开启“双景模式”的同步拍摄功能时,手机1可将手机自身的拍摄画面以及第一个与手机1连接的从设备的拍摄画面同步显 示在手机1的显示界面中。Still taking the slave devices of mobile phone 1 as TV 1 and mobile phone 2 as an example, when mobile phone 1 first establishes a network connection with TV 1, and creates a corresponding virtual HAL 1 in the DMSDP HAL according to the shooting capability parameters of TV 1, mobile phone 1 can send The television 1 sends a shooting instruction 1 . Still as shown in FIG. 9 , the television 1 can use the camera of the television 1 to acquire the photographed image 2 in real time in response to the photographing instruction 1 . Furthermore, the TV 1 can send the captured image 2 to the virtual HAL 1 of the mobile phone 1. After the virtual HAL 1 receives the captured image 2 from the TV 1, it can report the captured image 2 to the camera application through the CameraService of the mobile phone 1. Then, as shown in FIG. 10 , the camera application can display the shot 2 from the TV 1 in the window 1202 . In this way, when the user enables the synchronous shooting function of "dual scene mode" in the mobile phone 1, the mobile phone 1 can synchronously display the shooting screen of the mobile phone itself and the shooting screen of the first slave device connected to the mobile phone 1 on the display of the mobile phone 1. in the interface.
当然,手机1也可以设置将第二个(或第N个)与手机1连接的从设备的拍摄画面显示在窗口1202中。或者,手机1也可以设置将某一指定从设备的拍摄画面显示在窗口1202中。或者,手机1也可以将与手机1连接的多个从设备的拍摄画面均显示在显示界面中。当然,手机1也可以在窗口1202中不显示任何从设备的拍摄画面,本申请实施例对此不做任何限制。Of course, the mobile phone 1 can also be set to display the captured image of the second (or Nth) slave device connected to the mobile phone 1 in the window 1202 . Alternatively, the mobile phone 1 can also be set to display the shooting screen of a specified slave device in the window 1202 . Alternatively, the mobile phone 1 may also display the shooting images of multiple slave devices connected to the mobile phone 1 on the display interface. Of course, the mobile phone 1 may also not display any captured images of the slave device in the window 1202, which is not limited in this embodiment of the present application.
另一方面,在手机1与电视1建立了网络连接后,当手机1与手机2建立网络连接,并按照手机2的拍摄能力参数在DMSDP HAL中创建对应的虚拟HAL 2后,由于手机2不是与手机1第一个建立网络连接的从设备,即窗口1202中不需要显示手机2的拍摄画面,那么,手机1可以不向手机2发送拍摄指令。这样,手机2也不会响应手机1发送的拍摄指令打开摄像头实时获取对应的拍摄画面,手机1也不会接收到来自手机2的拍摄画面。On the other hand, after mobile phone 1 establishes a network connection with TV 1, when mobile phone 1 establishes a network connection with mobile phone 2, and creates a corresponding virtual HAL 2 in the DMSDP HAL according to the shooting capability parameters of mobile phone 2, because mobile phone 2 is not The first slave device that establishes a network connection with the mobile phone 1 , that is, the window 1202 does not need to display the shooting screen of the mobile phone 2 , so the mobile phone 1 may not send a shooting instruction to the mobile phone 2 . In this way, the mobile phone 2 will not turn on the camera in response to the shooting instruction sent by the mobile phone 1 to obtain the corresponding shooting picture in real time, and the mobile phone 1 will not receive the shooting picture from the mobile phone 2 .
或者,在另一些实施例中,如图11所示,手机1的DMSDP HAL中还可以设置控制模块1,控制模块1可用于确定向CameraService发送来自哪个从设备的拍摄画面。例如,手机1的DV应用在创建与各个从设备对应的虚拟HAL时,可在DMSDP HAL的控制模块1中保存不同从设备与不同虚拟HAL之间的对应关系。如表1所示,电视1和手机2为手机1当前连接的两个从设备。其中,电视1与虚拟HAL 1对应,电视1中设置有一个摄像头A,摄像头A的拍摄能力参数为参数1。手机2与虚拟HAL 2对应,手机2中设置有两个摄像头(即摄像头B和摄像头C),摄像头B的拍摄能力参数为参数2,摄像头C的拍摄能力参数为参数3。Alternatively, in other embodiments, as shown in FIG. 11 , a control module 1 may also be set in the DMSDP HAL of the mobile phone 1, and the control module 1 may be used to determine which slave device to send the captured image from to CameraService. For example, when the DV application of the mobile phone 1 creates a virtual HAL corresponding to each slave device, the corresponding relationship between different slave devices and different virtual HALs can be saved in the control module 1 of the DMSDP HAL. As shown in Table 1, TV 1 and mobile phone 2 are two slave devices currently connected to mobile phone 1. Among them, TV 1 corresponds to virtual HAL 1, TV 1 is provided with a camera A, and the shooting capability parameter of camera A is parameter 1. The mobile phone 2 corresponds to the virtual HAL 2. The mobile phone 2 is provided with two cameras (ie, camera B and camera C). The shooting capability parameter of camera B is parameter 2, and the shooting capability parameter of camera C is parameter 3.
表1Table 1
Figure PCTCN2021143005-appb-000001
Figure PCTCN2021143005-appb-000001
那么,如果手机1首先与电视1建立了网络连接,则上述控制模块1可设置窗口1202与电视1之间的对应关系,即此时窗口1202中需要显示电视1的拍摄画面。进而,手机1可按照上述方法向电视1发送拍摄指令,指示电视1将拍摄画面2发送至手机1的虚拟HAL 1。如图11所示,手机1的虚拟HAL 1接收到来自电视1的拍摄画面2后,可将拍摄画面2发送至上述控制模块1,由于控制模块1已经设置了窗口1202与电视1之间的对应关系,因此,控制模块1识别出拍摄画面2是来自电视1的拍摄画面后,可通过CameraService将拍摄画面2上报给相机应用,由相机应用将来自电视1的拍摄画面2显示在窗口1202中。Then, if the mobile phone 1 establishes a network connection with the TV 1 first, the control module 1 can set the corresponding relationship between the window 1202 and the TV 1, that is, the window 1202 needs to display the shooting image of the TV 1. Further, the mobile phone 1 can send a shooting instruction to the TV 1 according to the above method, instructing the TV 1 to send the shooting picture 2 to the virtual HAL 1 of the mobile phone 1. As shown in FIG. 11 , after receiving the shooting picture 2 from the TV 1, the virtual HAL 1 of the mobile phone 1 can send the shooting picture 2 to the above-mentioned control module 1, because the control module 1 has already set the connection between the window 1202 and the TV 1. Therefore, after the control module 1 recognizes that the shooting picture 2 is from the TV 1, it can report the shooting picture 2 to the camera application through CameraService, and the camera application can display the shooting picture 2 from the TV 1 in the window 1202. .
并且,仍如图11所示,当手机1与手机2建立网络连接,并在DMSDP HAL中创建对应的虚拟HAL 2后,手机1也可向手机2发送拍摄指令(即拍摄指令2)。手机2可响应拍摄指令2使用手机2的摄像头实时获取对应的拍摄画面3。进而,手机2可将拍摄画面3发送至手机1的虚拟HAL 2。虚拟HAL 2接收到来自手机2的拍摄画面3后,可将拍摄画面3发送至上述控制模块1,由于控制模块1已经设置了窗口1202 与电视1之间的对应关系,因此,当控制模块1识别出拍摄画面3不是来自电视1的拍摄画面时,控制模块1不会向CameraService上报拍摄画面3。例如,控制模块1可将手机2发送的拍摄画面3丢弃或删除。这样,相机应用也不会接收到来自手机2的拍摄画面3,也不会将拍摄画面3显示在手机1的显示界面中。And, still as shown in Figure 11, when the mobile phone 1 and the mobile phone 2 establish a network connection, and create a corresponding virtual HAL 2 in the DMSDP HAL, the mobile phone 1 can also send a shooting instruction (that is, the shooting instruction 2) to the mobile phone 2. The mobile phone 2 can use the camera of the mobile phone 2 to acquire the corresponding shooting image 3 in real time in response to the shooting instruction 2 . Furthermore, the mobile phone 2 can send the captured image 3 to the virtual HAL 2 of the mobile phone 1 . After the virtual HAL 2 receives the shooting picture 3 from the mobile phone 2, the shooting picture 3 can be sent to the above-mentioned control module 1, because the control module 1 has set the corresponding relationship between the window 1202 and the TV 1, therefore, when the control module 1 When recognizing that the shooting picture 3 is not the shooting picture from the TV 1, the control module 1 will not report the shooting picture 3 to CameraService. For example, the control module 1 can discard or delete the photographed image 3 sent by the mobile phone 2 . In this way, the camera application will not receive the shooting image 3 from the mobile phone 2 , nor will it display the shooting image 3 on the display interface of the mobile phone 1 .
示例性的,各个从设备(例如上述电视1和手机2)在向主设备(例如上述手机1)发送自身的拍摄画面时,可以将拍摄画面以数据包的形式发送给手机1。Exemplarily, when each slave device (eg, the above-mentioned TV 1 and mobile phone 2 ) sends its own shooting picture to the master device (such as the above-mentioned mobile phone 1 ), the shooting picture can be sent to the mobile phone 1 in the form of a data packet.
如图12所示,上述拍摄画面的数据包一般包括包头(head)和数据(data)部分。其中,数据(data)部分包括拍摄画面中具体的图像数据,例如YUV(Y用于指示明亮度,U和V用于指示色度)数据。包头(head)包括与data部分相关的参数,例如,拍摄画面的名称、拍摄时间、编解码信息等。在本申请实施例中,从设备可将自身的设备标识携带在数据包的包头中。例如,电视1可以将电视1的设备标识携带在与拍摄画面2对应的数据包的包头中,手机2可以将手机2的设备标识携带在与拍摄画面3对应的数据包的包头中。这样,手机1中DMSDP HAL的控制模块1通过解析数据包的包头,可以识别出当前接收到的数据包中的拍摄画面是来自哪个从设备的拍摄画面。As shown in FIG. 12 , the data packet of the above-mentioned captured picture generally includes a header (head) and a data (data) part. Wherein, the data part includes specific image data in the shooting picture, such as YUV (Y is used to indicate brightness, and U and V are used to indicate chromaticity) data. The header (head) includes parameters related to the data part, for example, the name of the captured picture, the capturing time, codec information, and the like. In this embodiment of the present application, the slave device may carry its own device identifier in the header of the data packet. For example, the TV 1 can carry the device ID of the TV 1 in the header of the data packet corresponding to the shooting picture 2 , and the mobile phone 2 can carry the device ID of the mobile phone 2 in the header of the data packet corresponding to the shooting picture 3 . In this way, the control module 1 of the DMSDP HAL in the mobile phone 1 can identify which slave device the captured image in the currently received data packet is from by parsing the packet header of the data packet.
或者,电视1还可以将拍摄拍摄画面2使用的相机的相机标识携带在对应数据包的包头中。这样,手机1中DMSDP HAL的控制模块1通过解析数据包的包头,还可以获知电视1拍摄拍摄画面2时的具体使用的摄像头。Alternatively, the television 1 may also carry the camera identifier of the camera used for shooting the picture 2 in the header of the corresponding data packet. In this way, the control module 1 of the DMSDP HAL in the mobile phone 1 can also know the specific camera used when the TV 1 shoots the picture 2 by parsing the packet header of the data packet.
当然,手机1中DMSDP HAL的控制模块1还可以将从虚拟HAL 1中获取到的拍摄画面确定为电视1的拍摄画面,相应的,可以将从虚拟HAL 2中获取到的拍摄画面确定为手机2的拍摄画面。又或者,由于手机1和电视1之间网络连接1与手机1和手机2之间网络连接2可能不同,因此,手机1中DMSDP HAL的控制模块1可以将从网络连接1获取到的拍摄画面确定为电视1的拍摄画面,将从网络连接2获取到的拍摄画面确定为手机2的拍摄画面。Of course, the control module 1 of the DMSDP HAL in the mobile phone 1 can also determine the shooting picture obtained from the virtual HAL 1 as the shooting picture of the TV 1. Correspondingly, the shooting picture obtained from the virtual HAL 2 can be determined as the mobile phone. 2 of the shooting screen. Alternatively, since the network connection 1 between the mobile phone 1 and the TV 1 may be different from the network connection 2 between the mobile phone 1 and the mobile phone 2, the control module 1 of the DMSDP HAL in the mobile phone 1 can obtain the captured image from the network connection 1. It is determined as the shooting image of the TV 1 , and the shooting image obtained from the network connection 2 is determined as the shooting image of the mobile phone 2 .
在本申请实施例中,仍以手机1的从设备为电视1和手机2举例,电视1和手机2在使用自身的摄像头采集拍摄画面,并将拍摄画面发送至手机1的同时,还可以使用麦克风采集用户输入的音频信号,进而基于采集到的音频信号确定用户是否正在使用从设备发声。In the embodiment of the present application, the TV 1 and the mobile phone 2 are still taken as the slave devices of the mobile phone 1 as an example. When the TV 1 and the mobile phone 2 use their own cameras to capture the captured images and send the captured images to the mobile phone 1, they can also use the The microphone collects the audio signal input by the user, and then determines whether the user is using the slave device to utter based on the collected audio signal.
以手机2举例,如图13所示,手机2中操作系统的架构与手机1中操作系统的架构类似。其中,手机2的应用程序层可以安装代理应用,代理应用用于与其他设备(例如手机1或电视1)进行数据收发。或者,代理应用也可以SDK(Software Development Kit,软件开发工具包)或系统服务的形式运行在手机2中。手机2的应用程序框架层中也可以设置CameraService。手机2的HAL中也可以设置Camera HAL,手机2的Camera HAL与手机2的摄像头对应。Taking mobile phone 2 as an example, as shown in FIG. 13 , the architecture of the operating system in mobile phone 2 is similar to that of the operating system in mobile phone 1 . The application layer of the mobile phone 2 may install a proxy application, and the proxy application is used to send and receive data with other devices (eg, the mobile phone 1 or the TV 1 ). Alternatively, the proxy application may also run in the mobile phone 2 in the form of an SDK (Software Development Kit, software development kit) or a system service. CameraService can also be set in the application framework layer of mobile phone 2. Camera HAL can also be set in the HAL of mobile phone 2. The Camera HAL of mobile phone 2 corresponds to the camera of mobile phone 2.
当手机2与手机1建立网络连接后,手机2的代理应用可以接收手机1发送的拍摄指令。响应于该拍摄指令,手机2的代理应用可以通过自身的CameraService和Camera HAL调用手机2的摄像头采集相应的拍摄画面(例如上述拍摄画面3)。手机2的Camera HAL可实时接收摄像头发送的拍摄画面3,进而,手机2的Camera HAL可将接收到的拍摄画面3通过CameraService发送至上报至代理应用,由代理应用将 手机2的拍摄画面3发送至手机1中与手机2对应的虚拟HAL 2,使得手机1可以实时获取到手机2的拍摄画面。当然,手机2的Camera HAL接收到拍摄画面3后,也可以对拍摄画面3进行相关图像处理(例如美颜、对焦等处理),再将经过图像处理后的拍摄画面发送至代理应用,本申请实施例对此不做任何限制。After the mobile phone 2 establishes a network connection with the mobile phone 1 , the proxy application of the mobile phone 2 can receive the shooting instruction sent by the mobile phone 1 . In response to the shooting instruction, the proxy application of the mobile phone 2 can call the camera of the mobile phone 2 through its own CameraService and Camera HAL to collect the corresponding shooting picture (for example, the above-mentioned shooting picture 3). The Camera HAL of the mobile phone 2 can receive the shooting picture 3 sent by the camera in real time, and then the Camera HAL of the mobile phone 2 can send the received shooting picture 3 to the proxy application through CameraService, and the proxy application sends the shooting picture 3 of the mobile phone 2. To the virtual HAL 2 corresponding to the mobile phone 2 in the mobile phone 1, so that the mobile phone 1 can obtain the shooting picture of the mobile phone 2 in real time. Of course, after the Camera HAL of the mobile phone 2 receives the shooting picture 3, it can also perform related image processing (such as beautifying, focusing, etc.) on the shooting picture 3, and then send the shooting picture after image processing to the agent application. The embodiment does not make any limitation on this.
仍如图13所示,手机2的操作系统中还可以包括用于实现音频功能的相关模块。例如,手机2的应用程序框架层中可以设置录音(AudioRecord)和音频管理器(AudioFlinger),手机2的HAL中可以设置音频HAL(Audio HAL)。该Audio HAL与手机2的麦克风和扬声器等音频输入输出设备对应。例如,手机2的麦克风可将采集到的音频信号上报给AudioFlinger。AudioFlinger用于对采集到的音频信号进行混音、重采样、音效设置等处理。AudioRecord用于从AudioFlinger中获取相应的音频信号进行音频录制。AudioRecord和CameraService可通过统一的接口(例如HwMediaProject接口)与代理应用交互。例如,AudioRecord可将录制的音频信号通过HwMediaProject接口上报给代理应用,CameraService可将拍摄得到的拍摄画面通过HwMediaProject接口上报给代理应用。Still as shown in FIG. 13 , the operating system of the mobile phone 2 may further include related modules for implementing audio functions. For example, a recording (AudioRecord) and an audio manager (AudioFlinger) can be set in the application framework layer of the mobile phone 2, and an audio HAL (Audio HAL) can be set in the HAL of the mobile phone 2. The Audio HAL corresponds to audio input and output devices such as the microphone and speaker of the mobile phone 2 . For example, the microphone of the mobile phone 2 can report the collected audio signal to AudioFlinger. AudioFlinger is used to mix, resample, and set sound effects on the collected audio signals. AudioRecord is used to obtain the corresponding audio signal from AudioFlinger for audio recording. AudioRecord and CameraService can interact with proxy applications through a unified interface (such as the HwMediaProject interface). For example, AudioRecord can report the recorded audio signal to the proxy application through the HwMediaProject interface, and CameraService can report the captured image to the proxy application through the HwMediaProject interface.
在本申请实施例中,在手机2使用摄像头采集拍摄画面,并将拍摄画面发送至手机1的过程中,手机2还可以通过自身的麦克风检测用户是否向手机2输入音频信号。仍如图13所示,当手机2的麦克风检测到音频信号后,可将检测到的音频信号发送给手机2的Audio HAL,手机2的Audio HAL可将接收到的音频信号发送至AudioFlinger。进而,AudioRecord可从AudioFlinger中获取该音频信号,并将音频信号通过HwMediaProject接口上报给代理应用。代理应用接收到麦克风检测到音频信号后,可确定该音频信号是否为用户向手机2输入的声音。In the embodiment of the present application, in the process that the mobile phone 2 uses the camera to capture the captured image and sends the captured image to the mobile phone 1 , the mobile phone 2 can also detect whether the user inputs an audio signal to the mobile phone 2 through its own microphone. Still as shown in Figure 13, when the microphone of the mobile phone 2 detects the audio signal, it can send the detected audio signal to the Audio HAL of the mobile phone 2, and the Audio HAL of the mobile phone 2 can send the received audio signal to AudioFlinger. Furthermore, AudioRecord can obtain the audio signal from AudioFlinger, and report the audio signal to the proxy application through the HwMediaProject interface. After receiving the audio signal detected by the microphone, the proxy application can determine whether the audio signal is the sound input by the user to the mobile phone 2 .
示例性的,手机2中可以存储使用手机2的一个或多个合法用户的声纹特征。当手机2的代理应用获取到当前麦克风检测到的音频信号后,可提取音频信号中的声纹特征。进而,手机2的代理应用可对比提取到的声纹特征是否为合法用户的声纹特征。如果是合法用户的声纹特征,则手机2的代理应用可确定当前检测到的音频信号为用户向手机2输入的声音。否则,手机2的代理应用可确定当前检测到的音频信号不是用户向手机2输入的声音,该音频信号可能是噪音或其他用户向其他设备输入的声音。Exemplarily, the mobile phone 2 may store voiceprint features of one or more legitimate users who use the mobile phone 2 . After the proxy application of the mobile phone 2 obtains the audio signal detected by the current microphone, the voiceprint feature in the audio signal can be extracted. Furthermore, the proxy application of the mobile phone 2 can compare whether the extracted voiceprint feature is the voiceprint feature of a legitimate user. If it is the voiceprint feature of a legitimate user, the proxy application of the mobile phone 2 can determine that the currently detected audio signal is the sound input by the user to the mobile phone 2 . Otherwise, the proxy application of the mobile phone 2 may determine that the currently detected audio signal is not the sound input by the user to the mobile phone 2, and the audio signal may be noise or other sounds input by the user to other devices.
或者,仍如图13所示,手机2的代理应用在接收AudioRecord上报的音频信号的同时,还可以接收CameraService上报的拍摄画面。那么,手机2的代理应用可以结合接收到的拍摄画面和音频信号判断当前接收到的音频信号是否为用户向手机2输入的声音。例如,如图14所示,对于同一时刻接收到的音频信号和拍摄画面,代理应用可以使用人脸识别算法检测对应的拍摄画面中是否包括人脸图像。如果包括人脸图像,则代理应用可进一步提取人脸图像中的口型特征。进而,代理应用通过对比同一时刻的音频信号与口型特征是否匹配,可确定是否有用户向手机2输入声音。例如,如果代理应用检测到连续500ms内的音频信号与对应的口型特征匹配,则代理应用可确定当前检测到的音频信号为用户向手机2输入的声音,即使用手机2的用户正在发声。Or, still as shown in FIG. 13 , the proxy application of the mobile phone 2 can also receive the captured image reported by CameraService while receiving the audio signal reported by AudioRecord. Then, the proxy application of the mobile phone 2 can determine whether the currently received audio signal is the sound input by the user to the mobile phone 2 in combination with the received photographed image and the audio signal. For example, as shown in FIG. 14 , for the audio signal and the captured image received at the same time, the proxy application can use a face recognition algorithm to detect whether the corresponding captured image includes a face image. If a face image is included, the proxy application can further extract lip-shape features in the face image. Furthermore, the proxy application can determine whether a user inputs a sound to the mobile phone 2 by comparing whether the audio signal at the same moment matches the mouth shape feature. For example, if the agent application detects that the audio signal within 500ms matches the corresponding mouth feature, the agent application can determine that the currently detected audio signal is the sound input by the user to the mobile phone 2, that is, the user using the mobile phone 2 is making a sound.
又或者,除了对比同一时刻的音频信号与口型特征是否匹配之外,代理应用还可以检测音频信号的响度是否大于预设值。例如,如果代理应用检测到连续500ms内的音频信号与对应的口型特征匹配,且这500ms内的音频信号的响度大于预设值,则代 理应用可确定当前检测到的音频信号为用户向手机2输入的声音。Alternatively, in addition to comparing whether the audio signal at the same moment matches the mouth shape feature, the proxy application can also detect whether the loudness of the audio signal is greater than a preset value. For example, if the agent application detects that the audio signal within 500ms of continuous time matches the corresponding mouth shape feature, and the loudness of the audio signal within the 500ms is greater than the preset value, the agent application can determine that the currently detected audio signal is the audio signal sent by the user to the mobile phone. 2 Input sounds.
当然,手机2也可以通过其他方法确定当前检测到的音频信号是否为用户向手机2输入的声音。例如,手机2可以请求服务器确定当前检测到的音频信号是否为用户向手机2输入的声音,本申请实施例对此不做任何限制。Of course, the mobile phone 2 can also determine whether the currently detected audio signal is the sound input to the mobile phone 2 by the user through other methods. For example, the mobile phone 2 may request the server to determine whether the currently detected audio signal is the sound input by the user to the mobile phone 2, which is not limited in this embodiment of the present application.
在本申请实施例中,如果手机2的代理应用确定出当前接收到的音频信号为用户向手机2输入的声音,说明在手机1的多个从设备中,有用户正在使用手机2讲话。此时,如图15所示,手机2的代理应用可在CameraService上报的拍摄画面(即拍摄画面3)中添加预设的发声标识,进而将添加有发声标识的拍摄画面3发送至手机1的虚拟HAL 2中。例如,上述发声标识可以是一个特定的标记位,手机2的代理应用可以在实时接收到的拍摄画面3的数据包的包头中添加上述发声标识。后续,当手机2的代理应用确定出没有音频信号输入,或者,当手机2的代理应用确定出当前接收到的音频信号不是用户向手机2输入的声音时,手机2的代理应用可以停止向对应的拍摄画面3的数据包中添加上述发声标识。In the embodiment of the present application, if the proxy application of the mobile phone 2 determines that the currently received audio signal is the sound input by the user to the mobile phone 2, it means that among the multiple slave devices of the mobile phone 1, a user is using the mobile phone 2 to speak. At this time, as shown in FIG. 15 , the proxy application of the mobile phone 2 can add a preset sounding mark to the shooting picture (ie the shooting picture 3 ) reported by CameraService, and then send the shooting picture 3 with the sounding mark added to the mobile phone 1. Virtual HAL 2. For example, the above-mentioned sounding identification may be a specific mark bit, and the proxy application of the mobile phone 2 may add the above-mentioned sounding identification to the packet header of the data packet of the captured image 3 received in real time. Subsequently, when the proxy application of the mobile phone 2 determines that there is no audio signal input, or, when the proxy application of the mobile phone 2 determines that the currently received audio signal is not the sound input by the user to the mobile phone 2, the proxy application of the mobile phone 2 can stop sending the corresponding audio signal to the mobile phone 2. The above-mentioned sounding mark is added to the data packet of the shooting picture 3.
这样一来,仍如图15所示,手机1的虚拟HAL 2接收到来自手机2的拍摄画面3的数据包后,可将拍摄画面3的数据包发送至DMSDP HAL的控制模块1。进而,如果DMSDP HAL的控制模块1解析出数据包的发声标识,说明在拍摄该拍摄画面3时用户正在向手机2输入声音,则控制模块1可以将窗口1202与电视1之间的对应关系修改为窗口1202与手机2之间的对应关系。进而,DMSDP HAL的控制模块1可将手机2的拍摄画面3上报至手机1的CameraService,并停止向CameraService上报电视1的拍摄画面2。也就是说,手机1中DMSDP HAL的控制模块1通过解析拍摄画面中的发声标识可以确定用户正在发声的从设备,进而向CameraService发送用户正在发声的从设备的拍摄画面。In this way, still as shown in Figure 15, after the virtual HAL 2 of the mobile phone 1 receives the data packet of the shooting screen 3 from the mobile phone 2, it can send the data packet of the shooting screen 3 to the control module 1 of the DMSDP HAL. Further, if the control module 1 of the DMSDP HAL parses out the sounding mark of the data packet, it is explained that the user is inputting the sound to the mobile phone 2 when shooting this shooting picture 3, then the control module 1 can modify the corresponding relationship between the window 1202 and the TV 1 is the corresponding relationship between the window 1202 and the mobile phone 2 . Further, the control module 1 of the DMSDP HAL can report the shooting picture 3 of the mobile phone 2 to the CameraService of the mobile phone 1, and stop reporting the shooting picture 2 of the TV 1 to the CameraService. That is to say, the control module 1 of the DMSDP HAL in the mobile phone 1 can determine the slave device that the user is making a sound by analyzing the sound-emitting identifier in the shooting screen, and then send the shooting screen of the slave device that the user is making a sound to the CameraService.
示例性的,以数据包1的包头中包含发声标识举例,DMSDP HAL的控制模块1可以将数据包1的data部分内的图像数据发送给手机1的CameraService。或者,DMSDP HAL的控制模块1也可以将data部分的图像数据以及发声标识均发送给手机1的CameraService。Exemplarily, taking the example that the packet header of the data packet 1 includes the utterance identifier, the control module 1 of the DMSDP HAL can send the image data in the data part of the data packet 1 to the CameraService of the mobile phone 1. Alternatively, the control module 1 of the DMSDP HAL can also send the image data of the data part and the voice identification to the CameraService of the mobile phone 1.
当手机1的CameraService将手机2的拍摄画面上报给相机应用后,如图16所示,相机应用可将接收到的手机2的拍摄画面3显示在窗口1202中,此时,原本在窗口1202中显示的电视1的拍摄画面2被切换为手机2的拍摄画面3。并且,相机应用仍然可以在窗口1201中显示手机1自身拍摄的拍摄画面1。也就是说,手机1作为主设备可以一边显示手机1自身拍摄的拍摄画面,一边显示用户正在发声的从设备的拍摄画面。在一些实施例中,仍如图16所示,如果相机应用接收到的手机2的拍摄画面3中携带有发声标识,则相机应用还可以在窗口1202中显示第一提示消息1601,用于向用户提示与窗口1202对应的使用手机2的用户正在讲话。其中,第一提示消息1601可以是文字、图标、动画或语音等,本申请实施例对此不做任何限制。After the CameraService of the mobile phone 1 reports the shooting screen of the mobile phone 2 to the camera application, as shown in FIG. 16 , the camera application can display the received shooting screen 3 of the mobile phone 2 in the window 1202 . At this time, it was originally in the window 1202 The displayed shooting screen 2 of the television 1 is switched to the shooting screen 3 of the mobile phone 2 . In addition, the camera application can still display the shooting screen 1 shot by the mobile phone 1 itself in the window 1201 . That is to say, as the master device, the mobile phone 1 can display the shooting screen shot by the mobile phone 1 itself, and at the same time display the shooting screen of the slave device that the user is uttering. In some embodiments, still as shown in FIG. 16 , if the captured image 3 of the mobile phone 2 received by the camera application carries a sounding mark, the camera application can also display a first prompt message 1601 in the window 1202 for sending a notification to the camera application. The user prompts that the user using the cell phone 2 corresponding to the window 1202 is speaking. The first prompt message 1601 may be text, icon, animation, or voice, etc., which is not limited in this embodiment of the present application.
另外,手机2在向手机1发送拍摄画面的同时,还可以将检测到的音频信号实时发送给手机1。后续,手机1在窗口1202中显示手机2的拍摄画面的同时,还可以播放手机2接收到的音频。这样,在会议或视频通话等场景中,手机1作为主设备可以自动将发言用户使用的从设备的拍摄画面和音频内容呈现给用户。In addition, the mobile phone 2 can also send the detected audio signal to the mobile phone 1 in real time while sending the photographed image to the mobile phone 1 . Subsequently, while the mobile phone 1 displays the photographed image of the mobile phone 2 in the window 1202 , it can also play the audio received by the mobile phone 2 . In this way, in scenarios such as a conference or a video call, as the master device, the mobile phone 1 can automatically present to the user the captured images and audio content of the slave device used by the speaking user.
在一些实施例中,如果手机2的代理应用确定出当前接收到的音频信号不是用户向手机2输入的声音,或者,如果手机2没有检测到音频信号,则手机2无需在采集到的拍摄画面中添加发声标记。进而,手机1中DMSDP HAL的控制模块1接收到手机2发来的拍摄画面后,不会向手机1的CameraService上报手机2的拍摄画面,相机应用也不会将手机2的拍摄画面显示在显示界面中。In some embodiments, if the proxy application of the mobile phone 2 determines that the currently received audio signal is not the sound input by the user to the mobile phone 2, or, if the mobile phone 2 does not detect an audio signal, the mobile phone 2 does not need to record the captured image. Add sound mark to . Further, after the control module 1 of the DMSDP HAL in the mobile phone 1 receives the shooting picture sent by the mobile phone 2, it will not report the shooting picture of the mobile phone 2 to the CameraService of the mobile phone 1, and the camera application will not display the shooting picture of the mobile phone 2 on the display. in the interface.
在一些实施例中,电视1作为手机1的从设备也可以按照上述方法检测是否有用户向电视1输入音频信号。如果电视1检测到用户向电视1输入音频信号,则电视1也可以按照上述方法向手机1发送添加有发声标识的拍摄画面。如果手机1识别出电视1的拍摄画面中添加有发声标识,而手机2的拍摄画面中没有添加发声标识,则手机1可继续在窗口1202中显示电视1的拍摄画面。In some embodiments, the TV 1, as a slave device of the mobile phone 1, can also detect whether a user inputs an audio signal to the TV 1 according to the above method. If the TV 1 detects that the user inputs an audio signal to the TV 1, the TV 1 can also send the shooting image with the sounding mark added to the mobile phone 1 according to the above method. If the mobile phone 1 recognizes that the sounding mark is added to the shooting picture of the TV 1, but the sounding mark is not added to the shooting picture of the mobile phone 2, the mobile phone 1 can continue to display the shooting picture of the TV 1 in the window 1202.
如果手机1识别出电视1的拍摄画面中添加有发声标识,且手机2的拍摄画面中也添加有发声标识,由于手机1中DMSDP HAL的控制模块1已经记录了电视1与窗口1202的对应关系,因此,DMSDP HAL的控制模块1可继续向手机1的CameraService上报电视1的拍摄画面,而不向手机1的CameraService上报手机2的拍摄画面,使得相机应用可以继续在窗口1202中显示电视1的拍摄画面。If the mobile phone 1 recognizes that the sounding mark is added to the shooting picture of the TV 1, and the sounding mark is also added to the shooting picture of the mobile phone 2, because the control module 1 of the DMSDP HAL in the mobile phone 1 has recorded the corresponding relationship between the TV 1 and the window 1202 , therefore, the control module 1 of the DMSDP HAL can continue to report the shooting picture of the TV 1 to the CameraService of the mobile phone 1, without reporting the shooting picture of the mobile phone 2 to the CameraService of the mobile phone 1, so that the camera application can continue to display the picture of the TV 1 in the window 1202. Take a picture.
或者,如果手机1识别出电视1的拍摄画面中添加有发声标识,且手机2的拍摄画面中也添加有发声标识,则手机1中DMSDP HAL的控制模块1可以将这两个从设备的拍摄画面都上报给CameraService。此时,相机应用接收到电视1的拍摄画面和手机2的拍摄画面后,可以将电视1的拍摄画面显示在窗口1202中。并且,相机应用可以在当前的显示界面中创建新的窗口,将手机2的拍摄画面显示在新创建的窗口中。这样,每个检测到用户发声的从设备的拍摄界面都可以显示在主设备的显示界面中。Or, if the mobile phone 1 recognizes that a sounding mark is added to the shooting picture of the TV 1, and that the sounding mark is also added to the shooting picture of the mobile phone 2, then the control module 1 of the DMSDP HAL in the mobile phone 1 can record these two slave devices. All images are reported to CameraService. At this time, after receiving the shooting image of the TV 1 and the shooting image of the mobile phone 2 , the camera application can display the shooting image of the TV 1 in the window 1202 . Moreover, the camera application can create a new window in the current display interface, and display the shooting image of the mobile phone 2 in the newly created window. In this way, the shooting interface of each slave device that detects the voice of the user can be displayed on the display interface of the master device.
在一些实施例中,仍以手机1将窗口1202中电视1的拍摄画面切换为手机2的拍摄画面举例,手机1中DMSDP HAL的控制模块1将窗口1202与电视1的对应关系更新为窗口1202与手机2的对应关系后,可以将当前的时间记录为窗口1202进行画面切换的时间。后续,如果手机1中DMSDP HAL的控制模块1接收到其他从设备(例如电视1)发来的携带有发声标识的拍摄画面,则DMSDP HAL的控制模块1可以判断距离上一次在窗口1202中切换拍摄画面的时间是否超过预设时间(例如3秒)。如果距离上一次在窗口1202中切换拍摄画面的时间没有超过预设时间,说明手机1在窗口1202中切换拍摄画面的时间不久,为了避免频繁切换窗口1202中的拍摄画面给用户带来不好的用户体验,手机1可以继续在窗口1202中显示手机2的拍摄画面。如果距离上一次在窗口1202中切换拍摄画面的时间超过预设时间,则手机1可以将窗口1202中显示的手机2的拍摄画面切换为当前接收到的携带有发声标识的拍摄画面。In some embodiments, still taking the mobile phone 1 to switch the shooting screen of the TV 1 in the window 1202 to the shooting screen of the mobile phone 2 as an example, the control module 1 of the DMSDP HAL in the mobile phone 1 updates the corresponding relationship between the window 1202 and the TV 1 to the window 1202 After the corresponding relationship with the mobile phone 2, the current time can be recorded as the time when the window 1202 performs screen switching. Subsequently, if the control module 1 of the DMSDP HAL in the mobile phone 1 receives a shooting picture with a sounding mark sent from other devices (for example, TV 1), the control module 1 of the DMSDP HAL can determine the distance from the last switch in the window 1202 Whether the time to capture the picture exceeds the preset time (for example, 3 seconds). If the time since the last time the shooting screen was switched in the window 1202 has not exceeded the preset time, it means that the mobile phone 1 has switched the shooting screen in the window 1202 for a short time. For user experience, the mobile phone 1 can continue to display the shooting screen of the mobile phone 2 in the window 1202 . If the time since the last time the shooting screen was switched in the window 1202 exceeds the preset time, the mobile phone 1 can switch the shooting screen of the mobile phone 2 displayed in the window 1202 to the currently received shooting screen carrying the sounding logo.
可以看出,在上述分布式拍摄场景中,手机1(即主设备)与各个从设备(例如上述电视1和手机2)建立网络连接后,如果某一从设备检测到有用户向自身输入音频信号,则从设备可通过在拍摄画面中添加发声标记的方式通知主设备显示该从设备的拍摄画面。这样一来,当不同的用户使用各自的从设备输入音频信号时,主设备可以灵活、准确的将有用户声音输入的从设备采集到的拍摄画面切换至主设备上显示,使用户可以聚焦至有用户声音输入的从设备的拍摄画面,提高用户的使用体验。It can be seen that in the above distributed shooting scenario, after the mobile phone 1 (ie the master device) establishes a network connection with each slave device (for example, the above-mentioned TV 1 and mobile phone 2), if a slave device detects that there is a user inputting audio to itself. signal, the slave device can notify the master device to display the shooting screen of the slave device by adding a sound mark to the shooting screen. In this way, when different users use their respective slave devices to input audio signals, the master device can flexibly and accurately switch the shooting image captured by the slave device with the user's voice input to the master device for display, so that the user can focus on the The shooting screen of the slave device with the user's voice input improves the user's experience.
当然,当从设备检测到有用户向自身输入音频信号后,从设备也可以通过其他方 式通知主设备显示该从设备的拍摄画面,本申请实施例对此不做任何限制。例如,手机2检测到当前接收到的音频信号为用户向手机2输入的声音后,手机2可以向手机1发送第一指示消息,第一指示消息用于指示使用手机2的用户正在发声。进而,手机1接收到手机2发送的第一指示消息后,可将后续接收到的手机2的拍摄画面显示在显示界面中。后续,当手机2在预设时间内没有接收到音频信号时,手机2可以向手机1发送第二指示消息,第二指示消息用于指示使用手机2的用户停止发声。进而,手机1接收到手机2发送的第二指示消息后,可停止在显示界面中显示手机2的拍摄画面。或者,手机1在显示手机2的拍摄画面时,如果接收到其他从设备发送的第一指示消息,则手机1也可以显示,其他从设备的拍摄画面,停止显示手机2的拍摄画面。Of course, after the slave device detects that a user has input an audio signal to itself, the slave device can also notify the master device to display the shooting picture of the slave device in other ways, which is not limited in this embodiment of the present application. For example, after mobile phone 2 detects that the currently received audio signal is the sound input by the user to mobile phone 2, mobile phone 2 can send a first indication message to mobile phone 1, and the first indication message is used to indicate that the user using mobile phone 2 is making a sound. Furthermore, after receiving the first instruction message sent by the mobile phone 2, the mobile phone 1 can display the subsequently received photographed images of the mobile phone 2 on the display interface. Subsequently, when the mobile phone 2 does not receive an audio signal within a preset time, the mobile phone 2 may send a second instruction message to the mobile phone 1, and the second instruction message is used to instruct the user using the mobile phone 2 to stop speaking. Furthermore, after the mobile phone 1 receives the second instruction message sent by the mobile phone 2, it can stop displaying the shooting screen of the mobile phone 2 on the display interface. Alternatively, if the mobile phone 1 receives the first instruction message sent by other slave devices when displaying the shooting screen of the mobile phone 2, the mobile phone 1 can also display the shooting screen of other slave devices and stop displaying the shooting screen of the mobile phone 2.
在一些实施例中,除了手机1(即主设备)可以在显示界面中显示有用户声音输入的从设备(例如上述手机2)的拍摄画面外,其他从设备(例如电视1)也可以在显示界面中显示有用户声音输入的从设备的拍摄画面。In some embodiments, in addition to the mobile phone 1 (that is, the master device) that can display the shooting screen of the slave device (such as the above-mentioned mobile phone 2 ) with the user's voice input in the display interface, other slave devices (such as the TV 1 ) can also display The interface displays the shooting screen of the slave device input by the user's voice.
仍以手机2检测到有用户向手机2输入音频信号举例,手机2除了可以将携带有发声标记的拍摄画面发送给手机1外,还可以将携带有发声标记的拍摄画面发送给电视1。如图17所示,电视1中操作系统的架构与手机2中操作系统的架构类似。其中,电视1的应用程序层可以安装代理应用,代理应用用于与其他设备(例如手机1或手机2)进行数据收发。电视1的应用程序框架层中也可以设置CameraService。电视1的HAL中也可以设置Camera HAL,电视1的Camera HAL与电视1的摄像头对应。并且,电视1的应用程序框架层中也可以设置AudioRecord和AudioFlinger,电视1的HAL中也可以设置Audio HAL。该Audio HAL与电视1的麦克风和扬声器等音频输入输出设备对应。Still taking the mobile phone 2 detecting a user inputting an audio signal to the mobile phone 2 as an example, the mobile phone 2 can not only send the shooting picture carrying the sounding mark to the mobile phone 1, but also send the shooting picture carrying the sounding mark to the TV 1. As shown in FIG. 17 , the architecture of the operating system in the TV 1 is similar to the architecture of the operating system in the mobile phone 2 . The application layer of the TV 1 may install a proxy application, and the proxy application is used to send and receive data with other devices (eg, the mobile phone 1 or the mobile phone 2 ). CameraService can also be set in the application framework layer of TV 1. The Camera HAL can also be set in the HAL of TV 1. The Camera HAL of TV 1 corresponds to the camera of TV 1. In addition, AudioRecord and AudioFlinger can also be set in the application framework layer of TV 1, and Audio HAL can also be set in the HAL of TV 1. The Audio HAL corresponds to audio input and output devices such as the microphone and speaker of the TV 1 .
其中,电视1作为手机1的从设备向手机1发送拍摄画面的过程与手机2向手机1发送拍摄画面的过程类似,并且,电视1检测是否有用户向电视1输入音频信号的过程与手机2检测是否有用户向手机2输入音频信号的过程类似,故此处不予赘述。Among them, the process of sending a captured image to the mobile phone 1 by the TV 1 as a slave device of the mobile phone 1 is similar to the process of sending the captured image from the mobile phone 2 to the mobile phone 1, and the process of the TV 1 detecting whether a user inputs an audio signal to the TV 1 is similar to the process of the mobile phone 2 The process of detecting whether a user inputs an audio signal to the mobile phone 2 is similar, so it is not repeated here.
不同的是,仍如图17所示,电视1的应用程序层还可以设置相机应用和DV应用。电视1不仅可以与手机1建立网络连接,还可以与手机2建立网络连接。并且,电视1可以获取手机1的拍摄能力参数以及手机2的拍摄能力参数。例如,手机1可以将电视1的拍摄能力参数,以及手机1获取到的手机2的拍摄能力参数发送给电视1的DV应用。进而,电视1的DV应用可在电视1的HAL中创建对应的DMSDP HAL。例如,电视1的DV应用可在DMSDP HAL中创建与手机1对应的虚拟HAL 3以及与手机2对应的虚拟HAL 4。后续,电视1可通过虚拟HAL 3接收手机1发来的数据,也可以通过虚拟HAL 4接收手机2发来的数据。并且,与手机1中DMSDP HAL内的控制模块1类似的,电视1的DMSDP HAL中也可以设置控制模块(后续称为控制模块2),控制模块2用于确定向电视1的CameraService发送来自哪个设备的拍摄画面。The difference is that, as shown in FIG. 17 , the application layer of the TV 1 can also set a camera application and a DV application. The TV 1 can not only establish a network connection with the mobile phone 1, but also establish a network connection with the mobile phone 2. Moreover, the TV 1 can acquire the shooting capability parameters of the mobile phone 1 and the shooting capability parameters of the mobile phone 2 . For example, the mobile phone 1 can send the shooting capability parameters of the TV 1 and the shooting capability parameters of the mobile phone 2 obtained by the mobile phone 1 to the DV application of the TV 1 . Further, the DV application of the TV 1 may create a corresponding DMSDP HAL in the HAL of the TV 1. For example, the DV application of TV 1 can create a virtual HAL 3 corresponding to mobile phone 1 and a virtual HAL 4 corresponding to mobile phone 2 in the DMSDP HAL. Subsequently, the TV 1 can receive the data sent by the mobile phone 1 through the virtual HAL 3, and can also receive the data sent by the mobile phone 2 through the virtual HAL 4. Moreover, similar to the control module 1 in the DMSDP HAL of the mobile phone 1, a control module (hereinafter referred to as the control module 2) can also be set in the DMSDP HAL of the TV 1, and the control module 2 is used to determine which camera service to send to the TV 1 comes from. The shot of the device.
后续,仍如图17所示,如果手机1的另一从设备(例如手机2)检测到有用户向手机2输入音频信号,则手机2还可以将携带有发声标识的拍摄画面(例如上述拍摄画面3)发送至电视1的虚拟HAL 4。进而,虚拟HAL 4可将接收到的拍摄画面3上报至控制模块2。与上述控制模块1的工作原理类似的,控制模块2接收到来自手机2 的拍摄画面3后,如果解析出拍摄画面携带的发声标识,则控制模块2可将手机2的拍摄画面3上报至电视1的CameraService。后续,电视1的CameraService可将手机2的拍摄画面3上报给电视1的相机应用,由电视1的相机应用将手机2的拍摄画面3显示在电视1的显示界面中。这样,电视1作为手机1的从设备也可以向用户呈现有用户声音输入的从设备(例如上述手机2)的拍摄画面。Subsequently, as shown in FIG. 17 , if another slave device (such as mobile phone 2) of mobile phone 1 detects that a user inputs an audio signal to mobile phone 2, mobile phone 2 can also record the shooting picture (such as the above-mentioned shooting Picture 3) is sent to the virtual HAL 4 of the TV 1. Further, the virtual HAL 4 can report the received shooting picture 3 to the control module 2. Similar to the working principle of the above-mentioned control module 1, after the control module 2 receives the shooting picture 3 from the mobile phone 2, if the sounding identification carried by the shooting picture is parsed, the control module 2 can report the shooting picture 3 of the mobile phone 2 to the TV. 1 CameraService. Subsequently, the CameraService of the TV 1 can report the shooting screen 3 of the mobile phone 2 to the camera application of the TV 1 , and the camera application of the TV 1 displays the shooting screen 3 of the mobile phone 2 on the display interface of the TV 1 . In this way, as a slave device of the mobile phone 1 , the television 1 can also present to the user the shooting screen of the slave device (for example, the above-mentioned mobile phone 2 ) to which the user's voice is input.
示例性的,如图18中的(a)所示,电视1的相机应用接收到CameraService上报的手机2的拍摄画面3后,可以在显示界面中仅显示手机2的拍摄画面3。此时,如果电视1的CameraService接收到电视1的Camera HAL上报的电视1的拍摄画面(例如拍摄画面2),电视1的CameraService可以将电视1的拍摄画面2上报给电视1的代理应用,由电视1的代理应用将电视1的拍摄画面2发送给手机1。也就是说,电视1的CameraService不需要将电视1的拍摄画面2上报给电视1的相机应用,电视1的相机应用也不会在显示界面中显示自身的拍摄画面2。Exemplarily, as shown in (a) of FIG. 18 , after receiving the shooting screen 3 of the mobile phone 2 reported by CameraService, the camera application of the TV 1 can display only the shooting screen 3 of the mobile phone 2 in the display interface. At this time, if the CameraService of TV 1 receives the shooting picture of TV 1 (for example, the shooting picture 2) reported by the Camera HAL of TV 1, the CameraService of TV 1 can report the shooting picture 2 of TV 1 to the proxy application of TV 1. The proxy application of the TV 1 sends the captured image 2 of the TV 1 to the mobile phone 1 . That is to say, the CameraService of the TV 1 does not need to report the shooting picture 2 of the TV 1 to the camera application of the TV 1, and the camera application of the TV 1 will not display its own shooting picture 2 on the display interface.
或者,在一些场景下,电视1的CameraService可以接收到电视1的Camera HAL上报的电视1的拍摄画面2,也可以接收到电视1的DMSDP HAL上报的手机2的拍摄画面3。此时,电视1的CameraService可以将这两个设备的拍摄画面均上报给电视1的相机应用。进而,如图18中的(b)所示,电视1的相机应用也可以在其显示界面中创建两个窗口(即窗口1801和窗口1802),此时,电视1的相机应用可以将手机2的拍摄画面3显示在其中一个窗口(例如窗口1801)中,并且,电视1的相机应用可以将电视1自身的拍摄画面2显示在另一个窗口(例如窗口1802)中。这样,电视1也可以一边显示电视1自身拍摄的拍摄画面,一边显示有用户声音输入的从设备的拍摄画面。Or, in some scenarios, the CameraService of the TV 1 can receive the shooting picture 2 of the TV 1 reported by the Camera HAL of the TV 1, and can also receive the shooting picture 3 of the mobile phone 2 reported by the DMSDP HAL of the TV 1. At this time, the CameraService of the TV 1 can report the captured images of the two devices to the camera application of the TV 1 . Furthermore, as shown in (b) of FIG. 18 , the camera application of TV 1 can also create two windows (ie, window 1801 and window 1802 ) in its display interface. At this time, the camera application of TV 1 can convert the phone 2 The shooting screen 3 of the TV 1 is displayed in one of the windows (eg, window 1801 ), and the camera application of the TV 1 can display the shooting screen 2 of the TV 1 itself in another window (eg, the window 1802 ). In this way, the television 1 may display a photographing screen shot by the television 1 itself and a photographing screen of a slave device input by the user's voice.
需要说明的是,在上述实施例中手机1的从设备包括电视1和手机2,当有用户声音输入的手机2时,手机2可以将手机2的拍摄画面发送至手机1和电视1进行显示。可以理解的是,手机2也可以按照上述方法接收并显示其他从设备(例如电视1)的拍摄画面,本申请实施例对此不做任何限制。It should be noted that in the above embodiment, the slave devices of the mobile phone 1 include a TV 1 and a mobile phone 2. When there is a mobile phone 2 input by the user's voice, the mobile phone 2 can send the captured image of the mobile phone 2 to the mobile phone 1 and the TV 1 for display. . It can be understood that the mobile phone 2 can also receive and display the captured images of other slave devices (eg, the TV 1 ) according to the above method, which is not limited in this embodiment of the present application.
在另一些实施例中,手机1作为主设备在使用自身的摄像头采集拍摄画面的同时,也可以使用麦克风采集用户输入的音频信号,进而基于采集到的音频信号确定用户是否正在使用手机1发声。其中,手机1采集音频信号,以及基于采集到的音频信号确定用户是否向手机1输入音频信号的方法,可参见上述实施例中手机2采集音频信号,并基于采集到的音频信号确定用户是否向手机2输入音频信号的方法,故此处不予赘述。In other embodiments, the mobile phone 1, as the main device, uses its own camera to capture images while using a microphone to capture audio signals input by the user, and then determines whether the user is using the mobile phone 1 to make sounds based on the collected audio signals. The method for collecting audio signals by the mobile phone 1 and determining whether the user inputs the audio signals to the mobile phone 1 based on the collected audio signals can be referred to in the above-mentioned embodiment for collecting the audio signals by the mobile phone 2, and determining whether the user wants to input the audio signals based on the collected audio signals. The method for inputting the audio signal by the mobile phone 2 is omitted here.
示例性的,如果手机1确定用户当前正在向手机1输入音频信号,则如图19中的(a)所示,手机1可在原本显示手机1的拍摄画面的窗口1201中继续显示手机1的拍摄画面。此时,手机1可以在窗口1202中不显示任何从设备的拍摄画面。当前,手机1也可以全屏显示手机1的拍摄画面。或者,如图19中的(b)所示,手机1在窗口1201中继续显示手机1的拍摄画面的同时,手机1也可以在窗口1202中显示某一从设备的拍摄画面。例如,手机1可以在窗口1202中继续显示用户向手机1输入音频信号之前电视1的拍摄画面2。Exemplarily, if the mobile phone 1 determines that the user is currently inputting an audio signal to the mobile phone 1, as shown in (a) in FIG. 19 , the mobile phone 1 can continue to display the Take a picture. At this time, the mobile phone 1 may not display any captured images of the slave device in the window 1202 . Currently, the mobile phone 1 can also display the shooting image of the mobile phone 1 in full screen. Alternatively, as shown in (b) of FIG. 19 , while the mobile phone 1 continues to display the shooting screen of the mobile phone 1 in the window 1201 , the mobile phone 1 can also display the shooting screen of a certain slave device in the window 1202 . For example, the mobile phone 1 may continue to display the shooting screen 2 of the television 1 in the window 1202 before the user inputs the audio signal to the mobile phone 1 .
另外,如果手机1确定用户当前正在向手机1输入音频信号,手机1还可以按照 上述方法在手机1的拍摄画面中的添加发声标记。进而,手机1可将携带有发声标记的拍摄画面发送给手机1的从设备,即电视1和手机2。这样,电视1和手机2也可以按照上述方法在自身的显示界面中显示手机1的拍摄画面。也就是说,在分布式拍摄场景中,当用户向主设备和从设备中的任意设备输入音频信号时,该设备可通过在拍摄画面中添加发声标记的方式通知其他设备一同显示自身的拍摄画面,使得使得主设备和从设备的用户均可聚焦有用户声音输入的从设备的拍摄画面,提高用户的使用体验。In addition, if the mobile phone 1 determines that the user is currently inputting an audio signal to the mobile phone 1, the mobile phone 1 can also add a sounding mark to the shooting screen of the mobile phone 1 according to the above method. Furthermore, the mobile phone 1 can send the captured image carrying the sounding mark to the slave devices of the mobile phone 1 , that is, the TV 1 and the mobile phone 2 . In this way, the TV 1 and the mobile phone 2 can also display the shooting screen of the mobile phone 1 on their own display interface according to the above method. That is to say, in a distributed shooting scenario, when a user inputs an audio signal to any of the master device and the slave device, the device can notify other devices to display its own shooting screen by adding a sound mark to the shooting screen. , so that both the users of the master device and the slave device can focus on the shooting screen of the slave device with the user's voice input, thereby improving the user experience.
可以理解的是,上述实施例中是以手机1为分布式拍摄场景中的主设备,电视1和手机2为手机1的从设备举例说明的,可以理解的是,分布式拍摄场景中的主设备和从设备可以是任意具有上述拍摄功能的电子设备,本申请实施例对此不做任何限制。It can be understood that, in the above embodiment, the mobile phone 1 is used as the master device in the distributed shooting scene, and the TV 1 and the mobile phone 2 are the slave devices of the mobile phone 1. It can be understood that the master device in the distributed shooting scene The device and the slave device may be any electronic device having the above-mentioned shooting function, which is not limited in this embodiment of the present application.
需要说明的是,上述实施例中是以Android系统为例阐述的各个功能模块之间实现分布式拍摄功能的具体方法,可以理解的是,也可以在其他操作系统(例如鸿蒙系统等)中设置相应的功能模块实现上述方法。只要各个设备和功能模块实现的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。It should be noted that, in the above-mentioned embodiments, the Android system is used as an example to illustrate the specific method for realizing the distributed shooting function among the various functional modules. It can be understood that it can also be set in other operating systems (such as Hongmeng system, etc.). The corresponding functional modules implement the above method. As long as the functions implemented by various devices and functional modules are similar to the embodiments of the present application, they fall within the scope of the claims of the present application and their technical equivalents.
如图20所示,本申请实施例公开了一种电子设备,该电子设备可以为上述主设备(例如手机)。该电子设备具体可以包括:触摸屏2001,所述触摸屏2001包括触摸传感器2006和显示屏2007;一个或多个处理器2002;存储器2003;通信模块2008;一个或多个摄像头2009;一个或多个应用程序(未示出);以及一个或多个计算机程序2004,上述各器件可以通过一个或多个通信总线2005连接。其中,上述一个或多个计算机程序2004被存储在上述存储器2003中并被配置为被该一个或多个处理器2002执行,该一个或多个计算机程序2004包括指令,该指令可以用于执行上述实施例中主设备(例如手机1)执行的相关步骤。As shown in FIG. 20 , an embodiment of the present application discloses an electronic device, and the electronic device may be the above-mentioned main device (eg, a mobile phone). The electronic device may specifically include: a touch screen 2001, the touch screen 2001 includes a touch sensor 2006 and a display screen 2007; one or more processors 2002; a memory 2003; a communication module 2008; one or more cameras 2009; one or more applications programs (not shown); and one or more computer programs 2004, the various devices may be connected by one or more communication buses 2005. Wherein, the above-mentioned one or more computer programs 2004 are stored in the above-mentioned memory 2003 and configured to be executed by the one or more processors 2002, and the one or more computer programs 2004 include instructions, which can be used to execute the above-mentioned Relevant steps performed by the main device (eg, mobile phone 1 ) in the embodiment.
如图21所示,本申请实施例公开了一种电子设备,该电子设备可以为上述从设备(例如音箱)。该电子设备具体可以包括:触摸屏2101,所述触摸屏2101包括触摸传感器2106和显示屏2107;一个或多个处理器2102;存储器2103;通信模块2108;一个或多个摄像头2109;一个或多个应用程序(未示出);以及一个或多个计算机程序2104,上述各器件可以通过一个或多个通信总线2105连接。其中,上述一个或多个计算机程序2104被存储在上述存储器2103中并被配置为被该一个或多个处理器2102执行,该一个或多个计算机程序2104包括指令,该指令可以用于执行上述实施例中从设备(例如电视1或手机2)执行的相关步骤。As shown in FIG. 21 , an embodiment of the present application discloses an electronic device, and the electronic device may be the above-mentioned slave device (eg, a speaker). The electronic device may specifically include: a touch screen 2101, the touch screen 2101 includes a touch sensor 2106 and a display screen 2107; one or more processors 2102; a memory 2103; a communication module 2108; one or more cameras 2109; one or more applications programs (not shown); and one or more computer programs 2104, the various devices may be connected by one or more communication buses 2105. Wherein, the above-mentioned one or more computer programs 2104 are stored in the above-mentioned memory 2103 and configured to be executed by the one or more processors 2102, and the one or more computer programs 2104 include instructions, which can be used to execute the above-mentioned Relevant steps performed from a device (eg, TV 1 or mobile phone 2 ) in the embodiment.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application shall be covered by this within the protection scope of the application examples. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

Claims (22)

  1. 一种拍摄方法,其特征在于,包括:A method of shooting, comprising:
    第一设备在显示界面中显示第一拍摄画面,所述第一拍摄画面为所述第一设备采集到的拍摄画面;The first device displays a first photographing image on the display interface, where the first photographing image is a photographing image collected by the first device;
    当所述第一设备与N个电子设备建立网络连接后,所述第一设备指示所述N个电子设备开始采集拍摄画面,N为大于1的整数;After the first device establishes a network connection with the N electronic devices, the first device instructs the N electronic devices to start capturing and shooting images, where N is an integer greater than 1;
    所述第一设备获取第二设备采集到的第二拍摄画面,所述第二设备为所述N个电子设备中的一个;obtaining, by the first device, a second photographed image collected by a second device, where the second device is one of the N electronic devices;
    若所述第二拍摄画面中包含预设的发声标识,则所述第一设备在所述显示界面中显示所述第二拍摄画面,所述发声标识用于指示用户正在发声。If the second shooting picture includes a preset sounding mark, the first device displays the second shooting picture in the display interface, and the sounding mark is used to indicate that the user is speaking.
  2. 根据权利要求1所述的方法,其特征在于,所述显示界面中设置有预设按钮,所述预设按钮用于同步显示多个设备的拍摄画面;The method according to claim 1, wherein a preset button is provided in the display interface, and the preset button is used to synchronously display the shooting images of multiple devices;
    在所述第一设备获取第二设备采集到的第二拍摄画面之前,还包括:Before the first device acquires the second shot captured by the second device, the method further includes:
    响应于用户选择所述预设按钮的操作,所述第一设备在所述显示界面中创建第一窗口和第二窗口,所述第一窗口用于显示所述第一设备采集的第一拍摄画面,所述第二窗口用于显示其他设备采集的拍摄画面;In response to an operation of the user selecting the preset button, the first device creates a first window and a second window in the display interface, where the first window is used to display the first shot captured by the first device screen, the second window is used to display the shooting screen collected by other devices;
    其中,所述第一设备在所述显示界面中显示所述第二拍摄画面,包括:Wherein, the first device displays the second shooting picture in the display interface, including:
    所述第一设备在所述第二窗口中显示所述第二拍摄画面,并且,在所述第一窗口中显示所述第一拍摄画面。The first device displays the second shooting picture in the second window, and displays the first shooting picture in the first window.
  3. 根据权利要求2所述的方法,其特征在于,响应于用户选择所述预设按钮的操作,还包括:The method according to claim 2, characterized in that, in response to an operation of the user selecting the preset button, further comprising:
    所述第一设备与所述N个电子设备建立网络连接;establishing a network connection between the first device and the N electronic devices;
    若所述第一设备与第三设备首先建立网络连接,则在所述第一设备获取第二设备采集到的第二拍摄画面之前,还包括:If the first device and the third device first establish a network connection, before the first device acquires the second shot captured by the second device, the method further includes:
    所述第一设备获取所述第三设备采集到的第三拍摄画面,所述第三设备为所述N个电子设备中除所述第二设备外的一个电子设备;acquiring, by the first device, a third photographed image collected by the third device, where the third device is an electronic device other than the second device among the N electronic devices;
    所述第一设备在所述第二窗口中显示所述第三拍摄画面,并且,在所述第一窗口中显示所述第一拍摄画面。The first device displays the third shooting picture in the second window, and displays the first shooting picture in the first window.
  4. 根据权利要求3所述的方法,其特征在于,若所述第二拍摄画面中包含预设的发声标识,则所述第一设备在所述显示界面中显示所述第二拍摄画面,包括:The method according to claim 3, wherein if the second shooting picture includes a preset sounding mark, the first device displays the second shooting picture on the display interface, comprising:
    若所述第二拍摄画面中包含预设的发声标识,则所述第一设备判断距离在所述第二窗口中显示所述第三拍摄画面的时间是否超过预设时间;If the second shooting picture contains a preset sounding mark, the first device determines whether the time until the third shooting picture is displayed in the second window exceeds a preset time;
    若超过预设时间,则所述第一设备在所述第二窗口中显示所述第二拍摄画面。If the preset time is exceeded, the first device displays the second shooting picture in the second window.
  5. 根据权利要求3所述的方法,其特征在于,在所述第一设备在所述第二窗口中显示所述第二拍摄画面之后,还包括:The method according to claim 3, wherein after the first device displays the second shooting picture in the second window, the method further comprises:
    所述第一设备获取所述第三设备采集到的第三拍摄画面;acquiring, by the first device, a third photographed image collected by the third device;
    若所述第三拍摄画面中不包含所述发声标识,则所述第一设备继续在所述第二窗口中显示所述第二拍摄画面,不显示所述第三拍摄画面。If the third shooting picture does not include the sounding identification, the first device continues to display the second shooting picture in the second window, and does not display the third shooting picture.
  6. 根据权利要求5所述的方法,其特征在于,在所述第一设备获取所述第三设备 采集到的第三拍摄画面之后,还包括:The method according to claim 5, characterized in that, after the first device acquires the third shooting picture collected by the third device, further comprising:
    若所述第三拍摄画面中包含所述发声标识,则所述第一设备在所述第二窗口中显示所述第三拍摄画面;或者,If the third shooting picture includes the sounding logo, the first device displays the third shooting picture in the second window; or,
    若所述第三拍摄画面中包含所述发声标识,则所述第一设备在所述显示界面中创建第三窗口,并在所述第三窗口中显示所述第三拍摄画面。If the third shooting picture includes the sounding identification, the first device creates a third window in the display interface, and displays the third shooting picture in the third window.
  7. 根据权利要求2-6中任一项所述的方法,其特征在于,所述第二窗口中包括提示消息,所述提示消息用于提示所述第二窗口对应的用户正在发声。The method according to any one of claims 2-6, wherein the second window includes a prompt message, and the prompt message is used to prompt that a user corresponding to the second window is making a sound.
  8. 根据权利要求1所述的方法,其特征在于,若所述第二拍摄画面中包含预设的发声标识,则所述第一设备在所述显示界面中显示所述第二拍摄画面,包括:The method according to claim 1, wherein if the second shooting picture contains a preset sounding mark, the first device displays the second shooting picture on the display interface, comprising:
    若所述第二拍摄画面中包含预设的发声标识,则所述第一设备在所述显示界面中将所述第一拍摄画面切换为所述第二拍摄画面。If the second shooting picture includes a preset sounding mark, the first device switches the first shooting picture to the second shooting picture in the display interface.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,在所述第一设备与N个电子设备建立网络连接之后,还包括:The method according to any one of claims 1-8, wherein after the first device establishes a network connection with the N electronic devices, the method further comprises:
    所述第一设备检测是否有用户向所述第一设备输入音频信号;The first device detects whether a user inputs an audio signal to the first device;
    若有用户向所述第一设备输入音频信号,则所述第一设备向采集到的第一拍摄画面添加所述发声标识;If a user inputs an audio signal to the first device, the first device adds the sounding identifier to the first captured image;
    所述第一设备将携带有所述发声标识的第一拍摄画面发送给所述N个电子设备,以使得所述N个电子设备根据所述发声标识显示所述第一拍摄画面。The first device sends the first shooting picture carrying the sounding identification to the N electronic devices, so that the N electronic devices display the first shooting picture according to the sounding identification.
  10. 根据权利要求9所述的方法,其特征在于,所述第一设备检测是否有用户向所述第一设备输入音频信号,包括:The method according to claim 9, wherein the detecting, by the first device, whether a user inputs an audio signal to the first device, comprises:
    所述第一设备使用摄像头采集第一拍摄画面时,使用麦克风检测音频信号;When the first device uses the camera to capture the first shot picture, it uses the microphone to detect the audio signal;
    当所述第一设备检测到音频信号时,获取与检测到的音频信号对应的M个第一拍摄画面,M为大于1的整数;When the first device detects the audio signal, acquire M first shooting pictures corresponding to the detected audio signal, where M is an integer greater than 1;
    若所述M个第一拍摄画面中的口型特征与检测到的音频信号匹配,则所述第一设备确定有用户向所述第一设备输入音频信号。If the mouth shape feature in the M first shooting pictures matches the detected audio signal, the first device determines that a user inputs an audio signal to the first device.
  11. 根据权利要求10所述的方法,其特征在于,当所述第一设备检测到音频信号时,获取与检测到的音频信号对应的M个第一拍摄画面,包括:The method according to claim 10, wherein when the first device detects an audio signal, acquiring M first shooting pictures corresponding to the detected audio signal, comprising:
    当所述第一设备检测到音频信号的响度大于预设值时,获取与检测到的音频信号对应的M个第一拍摄画面。When the first device detects that the loudness of the audio signal is greater than the preset value, acquire M first shooting pictures corresponding to the detected audio signal.
  12. 根据权利要求9-11中任一项所述的方法,其特征在于,在所述第一设备检测是否有用户向所述第一设备输入音频信号之后,还包括:The method according to any one of claims 9-11, wherein after the first device detects whether a user inputs an audio signal to the first device, the method further comprises:
    若有用户向所述第一设备输入音频信号,则所述第一设备停止显示所述第二拍摄画面。If a user inputs an audio signal to the first device, the first device stops displaying the second shooting picture.
  13. 一种拍摄方法,其特征在于,包括:A method of shooting, comprising:
    第二设备与第一设备建立网络连接;The second device establishes a network connection with the first device;
    所述第二设备使用摄像头采集拍摄画面,并使用麦克风检测音频信号;The second device uses a camera to capture and capture images, and uses a microphone to detect audio signals;
    当所述第二设备检测有用户向所述第二设备输入音频信号时,所述第二设备向采集到的拍摄画面中添加预设的发声标识,所述发声标识用于指示用户正在发声;When the second device detects that a user inputs an audio signal to the second device, the second device adds a preset sounding mark to the captured image, where the sounding mark is used to indicate that the user is sounding;
    所述第二设备将携带有所述发声标识的拍摄画面发送至所述第一设备。The second device sends the shooting picture carrying the sounding identification to the first device.
  14. 根据权利要求13所述的方法,其特征在于,在所述第二设备使用摄像头采集拍摄画面,并使用麦克风检测音频信号之后,还包括:The method according to claim 13, characterized in that after the second device uses a camera to capture a captured picture and uses a microphone to detect the audio signal, further comprising:
    当所述第二设备检测到音频信号时,获取与检测到的音频信号对应的M个拍摄画面,M为大于1的整数;When the second device detects the audio signal, acquire M shooting pictures corresponding to the detected audio signal, where M is an integer greater than 1;
    若所述M个拍摄画面中的口型特征与检测到的音频信号匹配,则所述第二设备确定有用户向所述第二设备输入音频信号。If the mouth shape feature in the M shooting pictures matches the detected audio signal, the second device determines that a user inputs an audio signal to the second device.
  15. 根据权利要求14所述的方法,其特征在于,当所述第二设备检测到音频信号时,获取与检测到的音频信号对应的M个拍摄画面,包括:The method according to claim 14, wherein when the second device detects an audio signal, acquiring M shooting pictures corresponding to the detected audio signal, comprising:
    当所述第二设备检测到音频信号的响度大于预设值时,获取与检测到的音频信号对应的M个拍摄画面。When the second device detects that the loudness of the audio signal is greater than the preset value, acquire M shooting pictures corresponding to the detected audio signal.
  16. 根据权利要求13-15中任一项所述的方法,其特征在于,在第二设备与第一设备建立网络连接之后,还包括:The method according to any one of claims 13-15, wherein after the second device establishes a network connection with the first device, the method further comprises:
    所述第二设备获取所述第一设备的拍摄画面;acquiring, by the second device, a picture taken by the first device;
    若所述第一设备的拍摄画面中包含所述发声标识,则所述第二设备在显示界面中显示所述第一设备的拍摄画面。If the photographing picture of the first device includes the sounding identifier, the second device displays the photographing picture of the first device on the display interface.
  17. 根据权利要求16所述的方法,其特征在于,所述显示界面包括第一窗口和第二窗口,其中,所述第二设备在所述显示界面中显示第一设备的拍摄画面,包括:The method according to claim 16, wherein the display interface comprises a first window and a second window, wherein the second device displays the shooting picture of the first device in the display interface, comprising:
    所述第二设备在所述第一窗口中显示所述第一设备的拍摄画面,并在所述第二窗口中显示所述第二设备的拍摄画面。The second device displays the shooting picture of the first device in the first window, and displays the shooting picture of the second device in the second window.
  18. 一种电子设备,其特征在于,所述电子设备为第一设备,所述第一设备包括:An electronic device, characterized in that the electronic device is a first device, and the first device includes:
    显示屏;display screen;
    一个或多个摄像头;one or more cameras;
    一个或多个处理器;one or more processors;
    存储器;memory;
    通信模块;communication module;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求1-12中任一项所述第一设备执行的一种拍摄方法。Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions, when the instructions are executed by the electronic device, the electronic device is made to perform the execution of claims 1-12. A shooting method performed by the first device in any one of the above.
  19. 一种电子设备,其特征在于,所述电子设备为第二设备,所述第二设备包括:An electronic device, characterized in that the electronic device is a second device, and the second device comprises:
    显示屏;display screen;
    一个或多个摄像头;one or more cameras;
    一个或多个处理器;one or more processors;
    存储器;memory;
    通信模块;communication module;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求13-17中任一项所述第二设备执行的一种拍摄方法。Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions, when the instructions are executed by the electronic device, the electronic device is made to perform the execution of claims 13-17 A shooting method performed by the second device in any one of the above.
  20. 一种分布式拍摄系统,其特征在于,所述系统包括如权利要求18所述的电子设备,以及如权利要求19所述的电子设备。A distributed shooting system, characterized in that the system comprises the electronic device as claimed in claim 18 and the electronic device as claimed in claim 19 .
  21. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12或13-17中任一项所述的一种拍摄方法。A computer-readable storage medium storing instructions in the computer-readable storage medium, characterized in that, when the instructions are executed on an electronic device, the electronic device is made to execute the method according to claim 1-12 or 13- A photographing method according to any one of 17.
  22. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-12或13-17中任一项所述的一种拍摄方法。A computer program product comprising instructions, characterized in that, when the computer program product is run on an electronic device, the electronic device is caused to perform a process according to any one of claims 1-12 or 13-17. a shooting method.
PCT/CN2021/143005 2020-12-30 2021-12-30 Photographing method and system, and electronic device WO2022143883A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011630348.0 2020-12-30
CN202011630348.0A CN114697732A (en) 2020-12-30 2020-12-30 Shooting method, system and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022143883A1 true WO2022143883A1 (en) 2022-07-07

Family

ID=82134853

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143005 WO2022143883A1 (en) 2020-12-30 2021-12-30 Photographing method and system, and electronic device

Country Status (2)

Country Link
CN (2) CN115550597A (en)
WO (1) WO2022143883A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033259A (en) * 2022-12-20 2023-04-28 浙江力石科技股份有限公司 Method, device, computer equipment and storage medium for generating short video
CN116366957A (en) * 2022-07-21 2023-06-30 荣耀终端有限公司 Virtualized camera enabling method, electronic equipment and cooperative work system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703692A (en) * 2022-12-30 2023-09-05 荣耀终端有限公司 Shooting performance optimization method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581608A (en) * 2012-07-20 2014-02-12 Polycom通讯技术(北京)有限公司 Spokesman detecting system, spokesman detecting method and audio/video conference system
CN104010158A (en) * 2014-03-11 2014-08-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and implementation method of multi-party video call
CN105592286A (en) * 2014-10-22 2016-05-18 阿里巴巴集团控股有限公司 Instant messaging interface information processing method and apparatus
EP3101838A1 (en) * 2015-06-03 2016-12-07 Thomson Licensing Method and apparatus for isolating an active participant in a group of participants
CN107682752A (en) * 2017-10-12 2018-02-09 广州视源电子科技股份有限公司 Method, apparatus, system, terminal device and the storage medium that video pictures are shown

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043144A1 (en) * 2006-08-21 2008-02-21 International Business Machines Corporation Multimodal identification and tracking of speakers in video
KR101955202B1 (en) * 2012-10-31 2019-03-07 삼성에스디에스 주식회사 Device for multipoing video conference and method for displaying multi-party image using the device
CN104301564A (en) * 2014-09-30 2015-01-21 成都英博联宇科技有限公司 Intelligent conference telephone with mouth shape identification
US9704488B2 (en) * 2015-03-20 2017-07-11 Microsoft Technology Licensing, Llc Communicating metadata that identifies a current speaker
CN106791238B (en) * 2016-11-28 2020-02-11 努比亚技术有限公司 Call control method and device of multi-party call conference system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581608A (en) * 2012-07-20 2014-02-12 Polycom通讯技术(北京)有限公司 Spokesman detecting system, spokesman detecting method and audio/video conference system
CN104010158A (en) * 2014-03-11 2014-08-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and implementation method of multi-party video call
CN105592286A (en) * 2014-10-22 2016-05-18 阿里巴巴集团控股有限公司 Instant messaging interface information processing method and apparatus
EP3101838A1 (en) * 2015-06-03 2016-12-07 Thomson Licensing Method and apparatus for isolating an active participant in a group of participants
CN107682752A (en) * 2017-10-12 2018-02-09 广州视源电子科技股份有限公司 Method, apparatus, system, terminal device and the storage medium that video pictures are shown

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116366957A (en) * 2022-07-21 2023-06-30 荣耀终端有限公司 Virtualized camera enabling method, electronic equipment and cooperative work system
CN116366957B (en) * 2022-07-21 2023-11-14 荣耀终端有限公司 Virtualized camera enabling method, electronic equipment and cooperative work system
CN116033259A (en) * 2022-12-20 2023-04-28 浙江力石科技股份有限公司 Method, device, computer equipment and storage medium for generating short video

Also Published As

Publication number Publication date
CN114697732A (en) 2022-07-01
CN115550597A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
US11450322B2 (en) Speech control method and electronic device
JP7326476B2 (en) Screenshot method and electronic device
US20220400305A1 (en) Content continuation method and electronic device
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
WO2022143883A1 (en) Photographing method and system, and electronic device
CN113497909B (en) Equipment interaction method and electronic equipment
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
CN112398855B (en) Method and device for transferring application contents across devices and electronic device
CN116360725B (en) Display interaction system, display method and device
WO2022143077A1 (en) Photographing method, system, and electronic device
US20230308534A1 (en) Function Switching Entry Determining Method and Electronic Device
CN114185503B (en) Multi-screen interaction system, method, device and medium
US20220350564A1 (en) Screen sharing method based on video call and mobile device
WO2022156721A1 (en) Photographing method and electronic device
CN114115770A (en) Display control method and related device
WO2022160985A1 (en) Distributed photographing method, electronic device, and medium
CN113391743A (en) Display method and electronic equipment
CN114827581A (en) Synchronization delay measuring method, content synchronization method, terminal device, and storage medium
WO2022110939A1 (en) Device recommendation method and electronic device
WO2023045597A1 (en) Cross-device transfer control method and apparatus for large-screen service
WO2023020012A1 (en) Data communication method between devices, device, storage medium, and program product
WO2022268009A1 (en) Screen sharing method and related device
WO2022206769A1 (en) Method for combining content, electronic device, and system
CN117850989A (en) Service calling method, system and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21914614

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21914614

Country of ref document: EP

Kind code of ref document: A1