WO2023000802A1 - 拍照方法、装置及电子设备 - Google Patents

拍照方法、装置及电子设备 Download PDF

Info

Publication number
WO2023000802A1
WO2023000802A1 PCT/CN2022/094200 CN2022094200W WO2023000802A1 WO 2023000802 A1 WO2023000802 A1 WO 2023000802A1 CN 2022094200 W CN2022094200 W CN 2022094200W WO 2023000802 A1 WO2023000802 A1 WO 2023000802A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
instruction
trigger operation
mobile phone
further configured
Prior art date
Application number
PCT/CN2022/094200
Other languages
English (en)
French (fr)
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 WO2023000802A1 publication Critical patent/WO2023000802A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present application relates to the technical field of terminals, and in particular to a photographing method, device and electronic equipment.
  • user B usually cannot comprehend user A's intention to take pictures. For example, whether the posture of user A is in place, whether the position of user A's station is reasonable, etc. In this way, the photo taken by user B has a low matching degree with user A's intention of taking pictures, which causes user A to be dissatisfied with the photo taken.
  • This application provides a photographing method, device and electronic equipment, which can enable the photographed person to see the preview screen of the photographed person, and the photographed person can adjust his posture and position according to his personal photographing intention, so as to achieve a satisfactory photographic composition.
  • the captured target image has a high degree of matching with the subject's intention to take pictures.
  • the present application provides a photographing method applied to a photographing system, where the photographing system includes a first electronic device and a second electronic device, and the first electronic device includes a camera.
  • the photographing method provided in this application includes: establishing a communication connection between the first electronic device and the second electronic device.
  • the first electronic device displays a first preview interface, where the first preview interface includes a first preview image captured by the camera.
  • the first electronic device synchronizes the first preview image with the second electronic device.
  • the second electronic device displays the second preview interface.
  • the second preview interface includes the first preview image.
  • the first electronic device obtains the shooting instruction, and obtains the target image by using the camera.
  • the first electronic device sends the target image to the second electronic device through the communication connection.
  • the second electronic device displays the target image on the second preview interface.
  • the confirmation instruction is used to confirm the target image, and sends the confirmation instruction to the first electronic device; the first electronic device saves the target image in response to the confirmation instruction.
  • the cancellation instruction is used to cancel the target image, the second electronic device sends the cancellation instruction to the first electronic device; the first electronic device does not save the target image in response to the cancellation instruction.
  • the first electronic device can synchronize the first preview image with the second electronic device.
  • the person to be photographed can check the composition of the photograph formed by his posture and the scenery at his location.
  • the subject can adjust his posture and position according to his personal intention to take pictures, so as to achieve a satisfactory composition for the subject.
  • the first electronic device can take pictures based on the adjusted photographing composition. In this way, the target image captured by the subject has a high degree of matching with the subject's photographing intention, which improves the subject's satisfaction with the target image.
  • the first preview interface further includes a first control
  • establishing a communication connection between the first electronic device and the second electronic device includes: when the first electronic device receives a trigger operation for the first control, The first electronic device establishes a communication connection with the second electronic device.
  • the photographer only needs to trigger the first control to establish a communication connection between the first electronic device and the second electronic device, which is convenient and quick.
  • establishing a communication connection between the first electronic device and the second electronic device includes: when the first electronic device receives the trigger operation for the first control, The first electronic device activates the short-distance communication function and broadcasts the identifier of the first electronic device.
  • the second electronic device is the first electronic device and displays the identifier of the first electronic device.
  • the photographer only needs to trigger the first control to establish a communication connection between the first electronic device and the second electronic device, which is convenient and quick.
  • the first electronic device when the first electronic device receives the trigger operation for the first control, the first electronic device starts the short-distance communication function and broadcasts the identification of the first electronic device, including: when the first electronic device receives the trigger operation for the first control When the control is triggered, the first electronic device displays a hotspot setting interface.
  • the hotspot setting interface includes a button for turning on the hotspot; when the first electronic device receives a trigger operation for the button for turning on the hotspot, the first electronic device turns on the short-distance communication function and broadcasts the identification of the first electronic device.
  • the first electronic device When the second electronic device receives a trigger operation on the identification of the first electronic device, the first electronic device establishes a communication connection with the second electronic device, including: when the second electronic device receives a trigger operation on the identification of the first electronic device , the second electronic device displays the first input box. When the key of the hotspot is obtained in the first input box, the second electronic device establishes a communication connection with the first electronic device.
  • the second electronic device when it obtains the key of the hotspot, it establishes a communication connection with the first electronic device, which improves the privacy of the photographing process.
  • the second preview interface also includes a second control
  • the second electronic device detects the short-range communication signal of the first electronic device and displays the identification of the first electronic device, including:
  • the control is triggered
  • the second electronic device displays a hotspot search interface.
  • the second electronic device detects the identifier of the first electronic device broadcast by the first electronic device, and displays the identifier of the first electronic device on the hotspot search interface.
  • the subject only needs to trigger the second control to establish a communication connection between the first electronic device and the second electronic device, which is convenient and quick.
  • the second preview interface further includes a second control
  • the first electronic device receives a trigger operation for the first control
  • the first electronic device establishes a communication connection with the second electronic device
  • the method includes: when the first electronic device receives a trigger operation for the first control, the first electronic device displays a hotspot search interface, and the hotspot search interface includes an identifier of the target WiFi.
  • the first electronic device receives a trigger operation directed at the identification of the target WiFi, the first electronic device accesses the target Wi-Fi.
  • the first electronic device sends information indicating that the first electronic device is the main camera device to the server of the target WiFi.
  • the second electronic device When the second electronic device receives the trigger operation for the second control, the second electronic device displays a second hotspot search interface, where the second hotspot search interface includes an identifier of the target WiFi.
  • the second electronic device receives a trigger operation for the identification of the target WiFi, the second electronic device accesses the target WiFi.
  • the second electronic device sends information for indicating that the second electronic device is the captured device to the server of the target WiFi; the first electronic device responds to the connection instruction with the second electronic device from the server of the target WiFi, and communicates with the second electronic device Establish a communication connection.
  • the first electronic device acts as the main camera device
  • the second electronic device acts as the captured device
  • both the first electronic device and the second electronic device are connected to the same target Wi-Fi
  • the first electronic device and the second electronic device The device can establish a communication connection, which is convenient and quick.
  • the acquiring the shooting instruction by the first electronic device includes: the first electronic device generates the shooting instruction in response to triggering a shooting button on the first preview interface. In this way, the photographer can manually trigger the shooting instruction.
  • the second electronic device sends a photographing instruction to the first electronic device in response to the trigger operation of the side button, and the first electronic device receives the photographing instruction. In this way, the subject can manually trigger the shooting instruction.
  • the first electronic device recognizes the voice information for instructing shooting, and generates a shooting instruction. In this way, the photographer's voice can trigger the shooting instruction.
  • the second electronic device recognizes the voice information for instructing shooting, and sends the shooting instruction to the first electronic device, and the first electronic device receives the shooting instruction.
  • the shooting instruction can be triggered by the subject's voice.
  • the first electronic device recognizes a body movement for instructing shooting, and generates a shooting instruction. In this way, the shooting instruction can be triggered by the body of the person being photographed.
  • the photographing method provided by the present application further includes: first The electronic device displays a first preview interface, where the first preview interface includes a second preview image captured by the first electronic device using a camera. The first electronic device synchronizes the second preview image with the second electronic device.
  • the next target image can be continued to be shot.
  • the second preview interface further includes a confirmation control and an abandonment control
  • receiving the confirmation instruction by the second electronic device includes: receiving the confirmation instruction by the second electronic device in response to a trigger operation on the confirmation control.
  • receiving the cancellation instruction by the second electronic device includes: the second electronic device receives a trigger operation on the abandonment control, and receives the cancellation instruction.
  • the first preview interface further includes a switching control
  • the switching control is used to indicate to switch the identity of the camera
  • the method provided by this application further includes: when the first electronic device receives a trigger operation on the switching control , the first electronic device sends a switching instruction to the second electronic device.
  • the second electronic device displays prompt information for prompting the first electronic device to request switching of the photographing identity.
  • the second electronic device receives the trigger operation of agreeing to switch the photo-taking identity
  • the second electronic device switches to the main camera device, and sends an approval instruction to the first electronic device.
  • the first electronic device receives the consent instruction from the second electronic device to switch to the captured device.
  • the second electronic device can be switched from the captured device to the main camera device for image collection and photography, and the first electronic device can be switched from the main camera device to the passive device, and simultaneously display the images captured by the second electronic device.
  • an embodiment of the present application further provides an electronic device, the electronic device includes a camera, and the electronic device further includes: a first communication unit configured to establish a communication connection with a second electronic device.
  • the first display unit is configured to display a first preview interface, where the first preview interface includes a first preview image captured by the camera.
  • the first communication unit is further configured to synchronize the first preview image with the second electronic device through the communication connection.
  • the first processing unit is also used to obtain a shooting instruction, and obtain a target image by using the camera.
  • the first communication unit is further configured to send the target image to the second electronic device.
  • the first communication unit is also used to receive a confirmation instruction from the second electronic device, the confirmation instruction is used to confirm the target image, the first processing unit is also used to respond to the confirmation instruction; the first storage unit is used to save the target image.
  • the first communication unit is further configured to receive a cancel instruction of the target image from the second electronic device, the cancel instruction is used to cancel the target image; the first processing unit is further configured not to save the target image in response to the cancel instruction.
  • the first communication unit is specifically configured to establish a communication connection with the second electronic device when a trigger operation for the first control is received.
  • the first communication unit is specifically configured to enable the short-distance communication function and broadcast the identification of the electronic device when receiving a trigger operation on the first control.
  • a communication connection is established with the second electronic device.
  • the first display unit is further configured to display a hotspot setting interface when a trigger operation on the first control is received, and the hotspot setting interface includes a button for turning on the hotspot.
  • the first communication unit is specifically configured to enable the short-distance communication function and broadcast the identification of the electronic device when receiving a trigger operation on the button for enabling the hotspot.
  • the first display unit is further configured to, when receiving a trigger operation on the first control, display a hotspot search interface, where the hotspot search interface includes an identifier of the target WiFi.
  • the first communication unit is further configured to access the target WiFi when a trigger operation directed at the identifier of the target WiFi is received.
  • the first communication unit is further configured to send information indicating that the electronic device is the main camera device to the server of the target WiFi.
  • the first communication unit is further configured to receive a connection instruction from the server of the target WiFi to the second electronic device.
  • the first communication unit is further configured to establish a communication connection with the second electronic device in response to the connection instruction.
  • the first processing unit is specifically configured to generate a shooting instruction in response to triggering the shooting button in the first preview interface.
  • the first communication unit is configured to receive a photographing instruction from the second electronic device.
  • the first processing unit is specifically configured to recognize voice information for instructing shooting, and generate a shooting instruction.
  • the first processing unit is specifically configured to recognize a body movement for instructing shooting, and generate a shooting instruction.
  • the first display unit is further configured to display a first preview interface, where the first preview interface includes a second preview image captured by the electronic device using a camera.
  • the first communication unit is further configured to synchronize the second preview image with the second electronic device.
  • the first preview interface further includes a switching control, and the switching control is used to instruct switching of the identity for taking pictures.
  • the first communication unit is further configured to send a switching instruction to the second electronic device when a trigger operation on the switching control is received.
  • the first communication unit is further configured to receive a consent instruction from the second electronic device to switch to the captured device.
  • the embodiment of the present application further provides an electronic device, and the electronic device includes: a second communication unit configured to establish a communication connection with the first electronic device.
  • the second communication unit is further configured to receive the first preview image synchronized by the first electronic device through the communication connection.
  • the second display unit is configured to display a second preview interface, wherein the second preview interface includes the first preview image.
  • the second communication unit is further configured to receive the target image captured by the first electronic device.
  • the display unit is also used to display the target image on the second preview interface.
  • the second communication unit is further configured to send the confirmation instruction to the first electronic device upon receiving the confirmation instruction, wherein the confirmation instruction is used to confirm the target image.
  • the second communication unit is further configured to send the cancellation instruction to the first electronic device upon receiving the cancellation instruction, where the cancellation instruction is used to cancel the target image.
  • the second communication unit is specifically configured to display the identifier of the first electronic device when a broadcast by the first electronic device is detected.
  • a trigger operation on the identification of the first electronic device is received, a communication connection is established with the first electronic device.
  • the display unit is further configured to display the first input box when a trigger operation on the identification of the first electronic device is received.
  • the second communication unit is specifically configured to establish a communication connection with the first electronic device when the key of the hotspot is obtained in the first input box.
  • the second preview interface further includes a second control and a display unit, specifically configured to display a hotspot search interface when a trigger operation for the second control is received; the identification of the first electronic device broadcast by the first electronic device is detected In the case of , the identification of the first electronic device is displayed on the hotspot search interface.
  • the second preview interface further includes a second control and a second display unit, and is further configured to display a second hotspot search interface when a trigger operation for the second control is received, and the second hotspot
  • the search interface includes the identification of the target WiFi.
  • the second communication unit is further configured to access the target WiFi when a trigger operation directed at the identifier of the target WiFi is received.
  • the second communication unit is further configured to send information indicating that the electronic device is the captured device to the server of the target WiFi.
  • the second communication unit is further configured to receive a connection instruction from the server of the target WiFi to the first electronic device.
  • the second communication unit is further configured to establish a communication connection with the first electronic device in response to the connection instruction.
  • the second communication unit is further configured to send a shooting instruction to the first electronic device in response to a trigger operation on the side button.
  • the second communication unit is further configured to send a shooting instruction to the first electronic device when the voice information for instructing shooting is recognized.
  • the second communication unit is further configured to receive a second preview image synchronized from the first electronic device.
  • the second preview interface further includes a confirmation control and an abandonment control
  • the electronic device further includes: a second processing unit, specifically configured to receive a confirmation instruction in response to a trigger operation on the confirmation control.
  • a cancel instruction is received in response to a trigger operation on the abandon control.
  • the second communication unit is further configured to receive a switching instruction from the first electronic device.
  • the second display unit is further configured to display prompt information for prompting the first electronic device to request switching of the photographing identity in response to the switch instruction.
  • the electronic device also includes: a second processing unit, configured to switch to the main camera device when receiving a trigger operation of agreeing to switch the identity of the photo; the second communication unit is also configured to send an approval instruction to the first electronic device, wherein the consent The instruction is used to instruct the first electronic device to switch to be the captured device.
  • the present application further provides a method for taking pictures, which is applied to a first electronic device, and the first electronic device includes a camera.
  • the method includes: establishing a communication connection between the first electronic device and the second electronic device.
  • the first electronic device displays a first preview interface, where the first preview interface includes a first preview image captured by the camera.
  • the first electronic device synchronizes the first preview image with the second electronic device through the communication connection.
  • the first electronic device obtains the shooting instruction, and obtains the target image by using the camera.
  • the first electronic device sends the target image to the second electronic device.
  • the first electronic device receives a confirmation instruction from the second electronic device, and the confirmation instruction is used to confirm the target image.
  • the first electronic device saves the target image in response to the confirmation instruction.
  • the first electronic device receives a cancel instruction of the target image from the second electronic device, the cancel instruction is used to cancel the target image; and in response to the cancel instruction, the target image is not saved.
  • the present application further provides a method for taking pictures, which is applied to the second electronic device.
  • the method includes: establishing a communication connection between the second electronic device and the first electronic device.
  • the second electronic device receives the first preview image synchronized by the first electronic device through the communication connection.
  • the second electronic device displays a second preview interface, wherein the second preview interface includes the first preview image.
  • the second electronic device receives the target image captured by the first electronic device.
  • the second electronic device displays the target image on the second preview interface.
  • the second electronic device receives the confirmation instruction and sends the confirmation instruction to the first electronic device, wherein the confirmation instruction is used to confirm the target image.
  • the second electronic device receives the cancellation instruction and sends the cancellation instruction to the first electronic device, where the cancellation instruction is used to cancel the target image.
  • the embodiment of the present application also provides a photographing device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device can perform any of the first aspect or the first aspect.
  • a photographing device including a processor and a memory, the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device can perform any of the first aspect or the first aspect.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the first aspect or any implementation method of the first aspect The method of taking pictures described in .
  • the embodiment of the present application further provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the photographing method described in the first aspect or any implementation manner of the first aspect.
  • the first control can be the trigger area of the "main shot pairing” in the following embodiments
  • the second control can be the trigger area of the "photo pairing” in the following embodiments
  • the button to open the hotspot can be the following The first switch button 207 in the embodiment.
  • FIG. 1 is a schematic diagram of a scene where user A and user B are located according to an embodiment of the present application;
  • Fig. 2 is a schematic interface diagram of a photographing method
  • FIG. 3 is a schematic diagram of a hardware system architecture of an electronic device
  • FIG. 4 is a schematic diagram of a software system architecture of an electronic device
  • FIG. 5 is a schematic diagram of the interface of the mobile phone 100 during the pairing process
  • FIG. 6 is a schematic diagram of the interface of the mobile phone 200 during the pairing process
  • FIG. 7 is a schematic diagram of the interface of the mobile phone 100 and the mobile phone 200 during the photographing process
  • FIG. 8 is a schematic diagram of an interface where user B triggers a button on the mobile phone 200 to trigger a photo
  • FIG. 9 is a schematic diagram of an interface of a photo obtained by user B giving up taking pictures
  • Fig. 10 is a schematic diagram of the interface of user B confirming the photos obtained by taking photos;
  • FIG. 11 is a schematic diagram of an interface for taking pictures of user A when the mobile phone 100 is switched as the captured device and the mobile phone 200 is switched as the main camera device;
  • Fig. 12 is a schematic diagram of the interface of user A confirming the photos obtained by taking photos;
  • Fig. 13 is a flow chart of the photographing method provided by the embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of an electronic device 1400 provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of an electronic device 1500 provided in an embodiment of the present application.
  • FIG. 16 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • the first preview interface 203 includes a shooting button 204 , a display frame 205 and the captured first preview image.
  • the collected first preview image includes the posture of user B and the scenery where user B is located, and the display frame 205 is used to display thumbnails of the photographs taken.
  • the electronic device may respond to the user's trigger operation on the shooting button 204, and shoot the collected first preview image, thereby successfully completing the shooting.
  • thumbnails of photographs taken are displayed in a display frame 205 .
  • the electronic device may display the captured photo on the image display interface 206 in response to user A's trigger operation on the display frame 205 .
  • user A usually cannot comprehend user B's intention to take pictures. For example, whether the posture of user B is in place, whether the position of user B station is reasonable, etc. In this way, the matching degree between the photos taken by user A and user B's intention of taking pictures is low, causing user B to be dissatisfied with the photos taken.
  • the embodiment of the present application provides a photographing method, which can first establish a one-to-one communication connection between the electronic device of user A and the electronic device of user B.
  • user B's electronic device may respond to user B's trigger operation to open the camera application and display an image preview interface.
  • the electronic device of user A may display the collected first preview image according to the steps (a)-(c) in FIG. 2 .
  • the collected first preview image includes user B's posture and the scenery where user B is located.
  • the electronic device of user A is displaying the collected first preview image, it sends the collected first preview image to user B's electronic device.
  • the display image preview interface of user B's electronic device may also display the first preview image collected by user A's electronic device.
  • user B can adjust posture, position, etc. based on the collected first preview image to form a photo composition that meets user B's intention to take a photo.
  • the electronic device of user A may complete the photographing in response to user A's trigger operation or receiving a photographing instruction from user B's electronic device. It can be understood that the photo taken by the user B has a high degree of matching with the user B's intention to take a photo, which improves user B's satisfaction with the photo taken.
  • the above-mentioned electronic device can be a mobile phone (mobile phone), a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, Augmented reality (augmented reality, AR) terminal equipment and so on.
  • VR virtual reality
  • AR Augmented reality
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the electronics.
  • FIG. 3 is a schematic structural diagram of an electronic device applicable to an embodiment of the present application.
  • the electronic device 100 may include: a processor 110, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a microphone 170C, buttons 190, Camera 193, display screen 194.
  • the structure shown in this embodiment does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • 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 processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, display processing unit (display process unit, DPU), and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the electronic device 100 may also include one or more processors 110 .
  • the processor may be the nerve center and command center of the electronic device 100 .
  • the processor can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 and Antenna 2 can transmit Bluetooth signals or WiFi signals.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN), Bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, Solutions for wireless communication such as infrared technology (infrared, IR).
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR technology and the like.
  • the above-mentioned GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (bei dou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system
  • GLONASS global navigation satellite system
  • Beidou satellite navigation system bei dou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • SBAS satellite based augmentation systems
  • the electronic device 100 can realize the display function through the GPU, the display screen 194 , and the application processor.
  • Application processors may include NPUs and DPUs.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute instructions to generate or alter display information.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the DPU is also called the Display Sub-System (DSS).
  • DSS Display Sub-System
  • the DPU is used to adjust the color of the display screen 194.
  • the DPU can adjust the color of the display screen through a three-dimensional lookup table (3D look up table, 3D LUT).
  • DPU can also perform image scaling, noise reduction, contrast enhancement, backlight brightness management, hdr processing, display parameter Gamma adjustment and other processing.
  • the display screen 194 is used to display images, videos and the like.
  • the 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 diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through an ISP, one or more cameras 193 , a video codec, a GPU, one or more display screens 194 , and an application processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the microphone 170C, and the application processor. Such as music playback, voice collection and so on.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and is also used for converting analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn", is used to convert audio electrical signals into sound signals.
  • the microphone 170C can collect voice.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 4 is a software structural block diagram of an electronic device applicable to an embodiment of the present application.
  • the layered architecture divides the software system of the electronic device 100 into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system can be divided into five layers, namely applications, application framework, Android runtime, system library, and hardware abstraction layer. layer, HAL) and the kernel layer (kernel).
  • the application program layer may include a series of application program packages, and the application program layer runs the application program by calling an application program interface (application programming interface, API) provided by the application program framework layer.
  • application program interface application programming interface, API
  • the application package may include applications such as camera, gallery, WLAN, Bluetooth, music, and video.
  • the application framework layer provides API and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 4, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a 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, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Data can include videos, images, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables applications to display notification messages in the status bar.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the hardware abstraction layer can contain multiple library modules, such as camera library modules, image library modules, etc.
  • the Android system can load corresponding library modules for the device hardware, and then realize the purpose of the application framework layer accessing the device hardware.
  • Device hardware may include, for example, display screens and cameras in electronic devices.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer is used to drive the hardware and make the hardware work.
  • the kernel layer includes at least a display driver, a camera driver, etc., which are not limited in this embodiment of the present application.
  • FIGS. 5-6 illustrate schematic diagrams of an interface where the mobile phone 200 and the mobile phone 100 are paired.
  • user A's mobile phone 100 displays a camera application icon 202 on the system desktop 201 .
  • the mobile phone 100 opens the camera application 202 to display the first preview interface, and the mobile phone 100 starts to capture the first preview image.
  • User A may hold the mobile phone 100 so that the camera of the mobile phone 100 is aimed at user B, so that the collected first preview image includes user B.
  • the first preview interface 203 includes the captured first preview image, a shooting button 204, a display frame 205, and the trigger area of "main shot pairing" and "photographed pairing" trigger area.
  • the collected first preview image includes the posture of user B and the scenery where user B is located, and the display frame 205 is used to display a thumbnail of the captured target image.
  • the mobile phone 100 can respond to user A's trigger operation on the trigger area of "main camera pairing" as the main camera device, and jump to display the hotspot setting Interface 206.
  • the mobile phone 100 can also respond to user A's trigger operation on the trigger area of "main camera pairing" as the main camera device, and display a text prompt message "Please turn on the hotspot" on the first preview interface 203 (Fig. 5 not shown). In this way, the user can open the hotspot setting interface 206 by himself after viewing the text prompt message "Please turn on the hotspot".
  • the hotspot setting interface 206 displays a first switch button 207 for turning on or off the WiFi hotspot, wherein the first switch button 207 is in an off state.
  • the mobile phone 100 may turn on the first switch button 207 in response to user A's trigger operation on the first switch button 207 .
  • the mobile phone 100 can convert the received mobile communication signal (such as GPRS, 3G, 4G or 5G) into a WiFi signal and broadcast it.
  • the broadcasted WiFi signal carries the identification “HONOR-3C” of the mobile phone 100 .
  • the mobile phone 200 of user B also displays a camera application icon 602 on the system desktop 601 .
  • the mobile phone 200 may respond to user B's trigger operation on the icon 202 of the camera application to open the camera application 602 and display the second preview interface 603 .
  • the second preview interface 603 displays a trigger area of "paired shot” and a trigger area of "paired main shot”.
  • the mobile phone 200 opens the hotspot search interface 604 to search for nearby WiFi signals in response to user B's trigger operation on the trigger area of "photographed pairing" as the photographed device.
  • the mobile phone 200 can also respond to user B's trigger operation on the trigger area of "photographed pairing" as the photographed device, and display a text prompt message "Please open the hotspot search interface", so that the user is viewing After receiving the text prompt message "Please open the hotspot search interface", you can open the hotspot search interface 604 of the mobile phone 200 by yourself, and the mobile phone 200 searches for nearby WiFi signals. Furthermore, as shown in (c) of FIG. 6 , a list of searched hotspot names is displayed on the hotspot search interface 604 , wherein the list of hotspot names includes the identifier “HONOR-3C” of the mobile phone 100 .
  • the mobile phone 200 may display a key input interface 606 in response to user B's trigger operation on the identifier "HONOR-3C".
  • the key input interface 606 includes a first input box 607 and a join button.
  • the mobile phone 200 receives the key for connecting to the WiFi hotspot of the mobile phone 100 input by the user B in the first input box 607 , and then, the mobile phone 200 sends a pairing request to the mobile phone 100 in response to user B's trigger operation on the join button 608 .
  • the pairing request carries the communication address of the mobile phone 200 and the identifier "HONOR50".
  • the mobile phone 100 receives a pairing request from the mobile phone 200 , and displays a first prompt message 208 on the hotspot setting interface 206 .
  • Displayed in the first prompt message 208 is a text message "to be paired with the following devices: "HONOR50", the cancel button, and the confirmation control 209.
  • the mobile phone 100 can respond to user A's trigger operation on the confirmation control 209, according to the communication of the mobile phone 200
  • the address establishes a one-to-one communication connection with the mobile phone 200 to complete the pairing.As shown in (f) in Figure 5, after the pairing was successful, the mobile phone 100 cancels the display of the first prompt message 208, but displays the second prompt message 210 " It has been successfully paired with HONOR50" to remind user A that the pairing is successful.
  • the second prompt message 210 may also be other text messages used to indicate the successful pairing, which is only an example here.
  • the mobile phone 200 displays a third prompt message 609 “successfully paired with HONOR-3C” on the hotspot search interface 604 to remind user B that the pairing is successful.
  • HONOR-3C is the identification of the mobile phone 100.
  • the third prompt information 609 may also be other text information used to indicate successful pairing, which is only an example here.
  • WiFi signal may also be replaced by a Bluetooth signal, etc., which is not limited herein.
  • the mobile phone 100 may jump to the hotspot search interface (not shown in FIG. show).
  • the mobile phone 100 can also respond to user A's trigger operation on the trigger area of "Main Camera Pairing" as the main camera device, and display a text prompt message "Please open the hotspot search interface" on the first preview interface 203 (not shown in Figure 5).
  • the user can open the hotspot setting interface (not shown in FIG. 5 ) of the mobile phone 100 by himself after consulting the text prompt message "Please open the hotspot search interface".
  • the mobile phone 100 searches for nearby WiFi signals, and then displays a searched hotspot name list on the hotspot search interface 604 , wherein the hotspot name list includes the target WiFi name "Wlan1".
  • the mobile phone 100 connects to the target WiFi named "Wlan1" in response to the trigger operation on the name "Wlan1" of the target WiFi.
  • the mobile phone 200 can connect to the target WiFi named “Wlan1” in the same manner as the mobile phone 100 . It can be understood that the mobile phone 100 and the mobile phone 200 can also connect to target WiFi with other names, and this is just an example.
  • the mobile phone 100 sends the camera identity of the mobile phone 100 as the main camera device to the server of "Wlan1".
  • the mobile phone 200 sends the photographing identity, pairing request and communication address of the mobile phone 200 as the captured device to "Wlan1".
  • the server of the target WiFi detects that the mobile phone 100 and the mobile phone 200 are connected to the same target WiFi, and the mobile phone 100 is in the main shooting device and the mobile phone 200 is the main shooting device, then the server of the target WiFi sends a connection command with the mobile phone 200 to the mobile phone 100, and/ Or send an instruction to connect with the mobile phone 100 to the mobile phone 200 .
  • the server of the target WiFi Take the server of the target WiFi to send the connection command with the mobile phone 200 to the mobile phone 100 as an example.
  • the mobile phone 100 receives the pairing request, as shown in (e) in FIG.
  • Displayed in the first prompt message 208 is a text message "to be paired with the following devices: "HONOR50", a cancel button, and a confirmation control 209.
  • the mobile phone 100 may respond to user B's trigger operation on the confirmation control 209, and send a message to the server of the target WiFi Send confirmation instruction.
  • the server of target WiFi receives the confirmation instruction from mobile phone 100, and sends the communication address of mobile phone 200 to mobile phone 100.
  • Mobile phone 100 establishes one-to-one communication connection with mobile phone 200 according to the communication address of mobile phone 200, completes pairing.
  • the mobile phone 200 and the mobile phone 100 After the mobile phone 200 and the mobile phone 100 are paired successfully, they can take pictures. The process of taking pictures of the user B by the mobile phone 100 will be described below with reference to FIGS. 7-10 .
  • the mobile phone 100 sends the collected first preview image to the mobile phone 200 through wireless transmission based on the established communication connection.
  • the foregoing wireless transmission manner may be RTP transmission, TCP transmission, etc., which are not limited herein.
  • the mobile phone 200 receives the first preview image from the mobile phone 100 .
  • the mobile phone 200 displays the first preview image on the second preview interface 603 of the mobile phone 200 .
  • the mobile phone 200 displays the first preview image collected by the mobile phone 100 on the second preview interface 603 , that is, the mobile phone 100 realizes synchronizing the first preview image to the mobile phone 200 for display.
  • user B can check the posture of user B and the scenery at the location of user B on the second preview interface 603 of the mobile phone 200 .
  • the mobile phone 100 may perform a photographing operation in response to user A's trigger operation on the photographing button 204 .
  • the mobile phone 100 stops collecting the first preview image but displays the captured target image on the first preview interface 203 , and sends the captured target image to the mobile phone 200 .
  • the mobile phone 100 also displays a fourth prompt message 211 on the first preview interface 203 "photo sharing is successful, waiting for confirmation from the other party".
  • the fourth prompt information 211 may also be other text information for indicating that the photo is shared successfully, which is only an example here.
  • the mobile phone 200 receives the target image from the mobile phone 100 , as shown in (e) of FIG. 7 , the target image received by the mobile phone 200 is displayed on the second preview interface 603 .
  • the interface content of the second preview interface 603 is different from that of the first preview interface 203 .
  • the first preview interface 203 has a shooting button 203, but the second preview interface 603 does not have the shooting button 203; the second preview interface 603 includes a abandonment control 610 and a confirmation control 611, while the second preview interface 603 does not have the abandonment control 610 and the confirmation control 611.
  • user B can view the target image captured by the mobile phone 100 on the second preview interface 603 of the mobile phone 200 .
  • the way of triggering the mobile phone 100 to take pictures is not limited to the above-mentioned way, and may also include but not limited to the following three ways:
  • the side button 612 the mobile phone 200 sends a photographing instruction to the mobile phone 100 in response to user B's trigger operation on the side button 612 .
  • the mobile phone 100 receives the photographing instruction from the mobile phone 200, and executes the photographing operation. It can be seen that the first way of triggering the mobile phone 100 to take pictures is: the user B triggers a button on the mobile phone 200 to trigger the picture taking.
  • the second type: the above-mentioned "the mobile phone 100 can perform the operation of taking pictures of the adjusted posture in response to user B's trigger operation on the shooting button 204" can also be replaced by: the user B inputs voice information for instructing to take pictures to the mobile phone 200 , for example, the voice information can be "eggplant", "take a photo” and so on.
  • the mobile phone 200 recognizes the voice information input by user B for instructing to take a photo and sends the instruction to the mobile phone 100, or the mobile phone 100 recognizes the voice information input by user B for instructing to take a photo. In this way, the mobile phone 100 executes the operation of taking pictures according to the picture taking instruction.
  • the second way of triggering the mobile phone 100 to take a photo is: the mobile phone 200 or the mobile phone 100 recognizes the voice information of the user B and triggers the photo taking (not shown in the drawing).
  • the third method the above-mentioned "the mobile phone 100 can respond to user B's trigger operation on the shooting button 204, and perform the operation of taking pictures of the adjusted posture" can also be replaced by: user B makes a body for instructing the mobile phone 100 to take pictures Actions, for example, user B makes a "nod gesture” or "hand gesture", and then re-poses for taking pictures.
  • the mobile phone 100 detects user B's body movements for instructing the mobile phone 100 to take pictures through the collected first preview image, waits for a preset time (such as 3s, 5s, etc.), and performs the operation of taking pictures. It can be seen that the first way of triggering the mobile phone 100 to take a photo is: the mobile phone 100 recognizes the action of the user B and triggers the mobile phone 100 to take a photo (not shown in the drawing).
  • the abandon control 610 in the second preview interface 603 can be triggered.
  • the mobile phone 200 receives a cancel instruction in response to user B's trigger operation on the abandon control 610 , and sends the cancel instruction to the mobile phone 100 .
  • the mobile phone 100 receives the cancel instruction from the mobile phone 200, cancels displaying the fourth prompt message 211 and the captured target image, and continues to capture the second preview image without saving the target image.
  • the mobile phone 100 displays the collected second preview image on the first preview interface 203 .
  • the mobile phone 100 sends the collected second preview image to the mobile phone 200 , and the mobile phone 200 receives the second preview image and displays the second preview image on the second preview interface 603 .
  • the confirmation control 611 in the second preview interface 603 can be triggered.
  • the mobile phone 200 receives the confirmation instruction and sends the confirmation instruction to the mobile phone 100 in response to user B's trigger operation on the confirmation control 611 .
  • the mobile phone 100 receives a confirmation instruction from the mobile phone 200 and stores the photographed target image. In this way, the mobile phone 100 stores the target images with high user B satisfaction, so as to facilitate subsequent review of the target images.
  • the mobile phone 100 cancels displaying the fourth prompt information 211 , and displays the thumbnail of the captured target image in the display frame 205 .
  • the mobile phone 100 continues to capture the second preview image, and displays the captured second preview image on the first preview interface 203 .
  • the mobile phone 100 sends the collected second preview image to the mobile phone 200 , and the mobile phone 200 receives the second preview image and displays the second preview image on the second preview interface 603 .
  • the mobile phone 100 may send a switching instruction to the mobile phone 200 in response to user A's trigger operation on the switching control 212 on the first preview interface 203 of the mobile phone 100.
  • the mobile phone 200 receives a switching instruction from the mobile phone 100, and displays fifth prompt information 613 on the second preview interface 603 of the mobile phone 200, wherein the fifth prompt information is used to instruct switching of the photographing identity.
  • the fifth prompt information 613 includes the text information of "the other party requests to switch the identity for taking photos", a cancel button, and a confirmation control 614 .
  • the fifth prompt information 613 includes the text information of "the other party requests to switch the identity for taking photos", a cancel button, and a confirmation control 614 .
  • the mobile phone 200 switches from the captured device to the main camera device in response to user B's trigger operation on the confirmation control 614 .
  • the mobile phone 200 starts to collect the third preview image, and the collected third preview image is displayed on the second preview interface 603 of the mobile phone 200 .
  • the third preview image collected by the mobile phone 200 includes the posture of the user A and the scenery at the location of the user A.
  • the mobile phone 200 sends a consent command to the mobile phone 100, and the mobile phone 100 receives the consent command from the mobile phone 200, and switches from the main camera device to the captured device.
  • the mobile phone 100 receives the third preview image sent from the mobile phone 200 , and displays the received third preview image on the first preview interface 203 of the mobile phone 100 .
  • the user A can check the posture of the user A and the scenery of the location where the user A is located on the first preview interface 203 of the mobile phone 100 .
  • the mobile phone 200 may perform a photographing operation in response to user B's trigger operation on the photographing button 616 . After the mobile phone 200 takes pictures successfully, it stops collecting the third preview image but sends the captured target image to the mobile phone 100. At the same time, the mobile phone 200 also displays the fourth prompt message "photo sharing is successful, waiting for the other party to confirm" on the second preview interface 603. Prompt information (not shown in the accompanying drawings). Wherein, the fourth prompt information may also be other text information for indicating that the photo is shared successfully, which is only an example here.
  • the mobile phone 100 receives the target image from the mobile phone 200. As shown in (a) in FIG. Confirm control 215 . Furthermore, user A can view the target image captured by the mobile phone 200 on the first preview interface 203 of the mobile phone 100 .
  • user A consulted the pose of user A and the composition of the photograph formed by the scenery of the location where user A is located before taking the photograph on the mobile phone 200 . Furthermore, it is possible to adjust one's own posture and position according to the individual's intention of taking pictures, so as to achieve a satisfactory picture composition for user A. Furthermore, user A can also instruct user B's mobile phone 100 to take pictures based on the adjusted photographing composition. In this way, the target image captured by user B's mobile phone 200 has a high degree of matching with user A's photographing intention, which improves user A's understanding of the captured image. Satisfaction with the target image.
  • the way of triggering the mobile phone 200 to take pictures is not limited to the above-mentioned ways, and may also be other ways of triggering the mobile phone 100 to take pictures described above, which will not be repeated here.
  • FIG. 13 is a schematic flowchart of a photographing method provided in an embodiment of the present application. As shown in Figure 13, the photographing method may include the following steps:
  • the mobile phone 100 displays a first preview interface, where the first preview interface includes a first preview image collected by the mobile phone 100 and a first control.
  • the mobile phone 100 opens the camera application and displays the first preview interface in response to user A's trigger operation on the icon of the camera application.
  • the first preview interface may be the above-mentioned first preview interface 203 of the mobile phone 100 in (b) of FIG. 5 .
  • user B can pose at the camera position, and user A can hold the mobile phone 100 so that the camera of the mobile phone 100 is aimed at user B. In this way, the mobile phone 100 can collect an image including the user B.
  • the first control may be the trigger area of "main beat pairing" in (b) in FIG. 5 .
  • the mobile phone 200 displays a second preview interface, where the second preview interface includes a second control.
  • the mobile phone 200 may respond to user B's trigger operation on the icon of the camera application on the system desktop, open the camera application and display the second preview interface.
  • the second preview interface may be the second preview interface 603 of the mobile phone 200 in (b) in FIG. 6; the second control may be the "photographed pairing" in (b) in FIG. trigger area.
  • the mobile phone 100 serves as the main camera device in response to user A's trigger operation on the first control.
  • S1304 The mobile phone 200 responds to user B's trigger operation on the second control, and serves as the device to be photographed.
  • S1305 Establish a one-to-one communication connection between the mobile phone 100 and the mobile phone 200.
  • step 1305 describes the pairing process of the mobile phone 100 and the mobile phone 200 .
  • the specific pairing process of the mobile phone 100 and the mobile phone 200 has multiple possible implementations, two examples are introduced below:
  • the first pairing process the mobile phone 100 turns on the WiFi hotspot function in response to the user A's operation, and converts the received mobile communication signal (such as GPRS, 3G, 4G or 5G) signal into a WiFi signal and broadcasts it.
  • the mobile phone 200 searches for the WiFi signal broadcast by the mobile phone 100, and after receiving the key input by the user B on the mobile phone 200, sends a pairing request to the mobile phone 100, wherein the pairing request carries the communication address of the mobile phone 200.
  • the mobile phone 100 receives the pairing request from the mobile phone 200 , establishes a one-to-one communication connection with the mobile phone 200 according to the communication address of the mobile phone 200 , and then completes the pairing of the mobile phone 100 and the mobile phone 200 .
  • the second pairing process the mobile phone 100 searches for a nearby target WiFi network, and connects to the target WiFi.
  • the mobile phone 100 sends the camera identity of the main camera device of the mobile phone 100 to the server of the target WiFi.
  • the mobile phone 200 searches for nearby target WiFi, and connects to the same target WiFi as the mobile phone 200 .
  • the mobile phone 200 sends the photographing identity of the captured device of the mobile phone 200 and a pairing request to the target WiFi server, wherein the pairing request carries the communication address of the mobile phone 200 .
  • the target WiFi server of the target WiFi detects that the mobile phone 100 and the mobile phone 200 are connected to the same target WiFi, and the mobile phone 100 is in the main camera device and the mobile phone 200 is the main camera device, and then sends a pairing request of the mobile phone 200 to the mobile phone 100 . After receiving the pairing request, the mobile phone 100 establishes a communication connection with the mobile phone 200 according to the communication address of the mobile phone 200 .
  • S1305 and S1304 can also exchange the sequence of steps, and the specific implementation principle can be as follows: the mobile phone 100 responds to user A's trigger operation on the first control, and acts as the main camera device. Furthermore, the mobile phone 100 displays the hotspot setting interface, and automatically turns on the WiFi hotspot function, and converts the received mobile communication signal (such as GPRS, 3G, 4G or 5G) into a WiFi signal and broadcasts it. The mobile phone 200 searches for the WiFi signal broadcast by the mobile phone 100, and after receiving the key input by the user B on the mobile phone 200, sends a pairing request to the mobile phone 100, wherein the pairing request carries the communication address of the mobile phone 200.
  • the mobile phone 100 responds to user A's trigger operation on the first control, and acts as the main camera device. Furthermore, the mobile phone 100 displays the hotspot setting interface, and automatically turns on the WiFi hotspot function, and converts the received mobile communication signal (such as GPRS, 3G, 4G or 5G) into a WiFi signal and broadcast
  • the mobile phone 100 receives the pairing request from the mobile phone 200 , establishes a one-to-one communication connection with the mobile phone 200 according to the communication address of the mobile phone 200 , and then completes the pairing of the mobile phone 100 and the mobile phone 200 . After the pairing is successful, the mobile phone 200 is automatically used as the device to be photographed.
  • S1306 The mobile phone 100 sends the collected first preview image to the mobile phone 200 through the established communication connection, where the collected first preview image includes user B.
  • a schematic diagram of an interface for implementing S1306 may be (a)-(b) in FIG. 7 .
  • the mobile phone 200 receives the image from the mobile phone 100, and displays the received image on the second preview interface.
  • the schematic interface for implementing S1307 may be (a)-(b) in FIG. 7 .
  • S1308 The mobile phone 100 captures the target image, and sends the captured target image to the mobile phone 200 .
  • the mobile phone 100 takes a picture of the image and sends the captured target image to the mobile phone 200 .
  • the ways to trigger the mobile phone 100 to take pictures include but are not limited to the following four ways: the first way: user A triggers the mobile phone 100 to take pictures; the second way: user B triggers the side button of the mobile phone 200 to trigger the picture; The voice information input by B to the mobile phone 200 triggers the photo taking; the fourth type: the user B inputs body movements to the mobile phone 100 to trigger the mobile phone 100 to take pictures.
  • the mobile phone 200 receives the target image from the mobile phone 100, and displays the target image and a confirmation control on the second preview interface.
  • the interface schematic diagram of the second preview interface displaying the target image and the confirmation control can refer to (e) in FIG. 7 .
  • the mobile phone 200 receives a confirmation instruction in response to the trigger operation on the confirmation control, and sends the confirmation instruction to the mobile phone 100, wherein the confirmation instruction is used to confirm the target image.
  • the mobile phone 200 sends a confirmation instruction to the mobile phone 100 in response to the trigger operation on the confirmation control.
  • the mobile phone 100 receives a confirmation instruction from the mobile phone 200, and stores the captured target image.
  • the second preview interface may also display a abandonment control. If the target image captured by the mobile phone 100 does not meet user B's intention to take pictures, user B may trigger the abandonment control. In this way, the mobile phone 200 receives the cancel instruction and sends the cancel instruction to the mobile phone 100 in response to the trigger operation on the abandonment control. Wherein, the cancel instruction is used to indicate not to save the target image.
  • the mobile phone 100 receives the cancellation instruction from the mobile phone 200, does not save the shot target image, and then collects the second preview image. The mobile phone 100 sends the collected second preview image to the mobile phone 200 , and the mobile phone 200 receives the second preview image and displays the second preview image on the second preview interface 603 .
  • the mobile phone 100 can also send a switching instruction to the mobile phone 200, and the mobile phone 200 receives the switching instruction from the mobile phone 100, and displays prompt information for instructing to switch the photo-taking identity on the second preview interface.
  • the mobile phone 200 sends a consent instruction to the mobile phone 100 in response to the input trigger operation, and the mobile phone 200 serves as the main camera device.
  • the mobile phone 100 receives the consent instruction as the captured device. In this way, user B can hold the mobile phone 200 as the photographer and cooperate with the mobile phone 100 to take pictures of user A as the subject.
  • the trigger operation mentioned may include: click operation, long press operation, and gesture trigger operation, etc., which are not limited here.
  • the embodiment of the present application also provides an electronic device 1400, the electronic device 1400 includes a camera, and the electronic device 1400 also includes: a first communication unit 1401, a first display unit 1402, a first processing unit 1403 and a first storage Unit 1404.
  • the first communication unit 1401 is configured to establish a communication connection with the second electronic device 1400 .
  • the first display unit 1402 is configured to display a first preview interface, where the first preview interface includes a first preview image captured by the camera.
  • the first communication unit 1401 is further configured to synchronize the first preview image with the second electronic device 1400 through a communication connection.
  • the first processing unit 1403 is further configured to obtain a shooting instruction, and obtain a target image by shooting with a camera.
  • the first communication unit 1401 is further configured to send the target image to the second electronic device 1400 .
  • the first communication unit 1401 is also used to receive a confirmation instruction from the second electronic device 1400, the confirmation instruction is used to confirm the target image, the first processing unit 1403 is also used to respond to the confirmation instruction; the first storage unit 1404 is used to Save the target image.
  • the first communication unit 1401 is further configured to receive a cancel instruction of the target image from the second electronic device 1400, the cancel instruction is used to cancel the target image; the first processing unit 1403 is further configured to not save the target image in response to the cancel instruction image.
  • the first communication unit 1401 is specifically configured to establish a communication connection with the second electronic device 1400 when a trigger operation for the first control is received.
  • the first communication unit 1401 is specifically configured to enable the short-distance communication function and broadcast the identification of the electronic device 1400 when receiving a trigger operation on the first control.
  • the identification of the electronic device 1400 is triggered, a communication connection is established with the second electronic device 1400 .
  • the first display unit 1402 is further configured to display a hotspot setting interface when a trigger operation on the first control is received, and the hotspot setting interface includes a button for enabling the hotspot.
  • the first communication unit 1401 is specifically configured to enable the short-distance communication function and broadcast the identification of the electronic device 1400 when receiving a trigger operation of the button for enabling the hotspot.
  • the first display unit 1402 is further configured to display a hotspot search interface when a trigger operation on the first control is received, and the hotspot search interface includes an identifier of the target WiFi.
  • the first communication unit 1401 is further configured to access the target WiFi when a trigger operation directed at the identifier of the target WiFi is received.
  • the first communication unit 1401 is further configured to send information indicating that the electronic device 1400 is the main camera device to the server of the target WiFi.
  • the first communication unit 1401 is further configured to receive a connection instruction with the second electronic device 1400 from the server of the target WiFi.
  • the first communication unit 1401 is further configured to establish a communication connection with the second electronic device 1400 in response to the connection instruction.
  • the first processing unit 1403 is specifically configured to generate a shooting instruction in response to triggering a shooting button in the first preview interface.
  • the first communication unit 1401 is configured to receive a shooting instruction from the second electronic device 1400 .
  • the first processing unit 1403 is specifically configured to recognize voice information for instructing shooting, and generate a shooting instruction.
  • the first processing unit 1403 is specifically configured to recognize a body movement for instructing shooting, and generate a shooting instruction.
  • the first display unit 1402 is further configured to display a first preview interface, where the first preview interface includes a second preview image captured by the electronic device 1400 using a camera.
  • the first communication unit 1401 is further configured to synchronize the second preview image with the second electronic device 1400 .
  • the first preview interface further includes a switching control, and the switching control is used to instruct switching of the identity for taking pictures.
  • the first communication unit 1401 is further configured to send a switching instruction to the second electronic device 1400 when a trigger operation on the switching control is received.
  • the first communication unit 1401 is further configured to receive a consent instruction from the second electronic device 1400 to switch to the captured device.
  • the embodiment of the present application further provides an electronic device 1500
  • the electronic device 1500 includes: a second communication unit 1501 configured to establish a communication connection with the first electronic device 1500 .
  • the second communication unit 1501 is further configured to receive the first preview image synchronized by the first electronic device 1500 through the communication connection.
  • the second display unit 1502 is configured to display a second preview interface, wherein the second preview interface includes the first preview image.
  • the second communication unit 1501 is also configured to receive the target image captured by the first electronic device 1500 .
  • the display unit is also used to display the target image on the second preview interface.
  • the second communication unit 1501 is further configured to send the confirmation instruction to the first electronic device 1500 upon receiving the confirmation instruction, wherein the confirmation instruction is used to confirm the target image.
  • the second communication unit 1501 is further configured to send the cancellation instruction to the first electronic device 1500 after receiving the cancellation instruction, where the cancellation instruction is used to cancel the target image.
  • the second communication unit 1501 is specifically configured to display the identifier of the first electronic device 1500 when a broadcast by the first electronic device 1500 is detected.
  • a communication connection is established with the first electronic device 1500 .
  • the display unit is further configured to display the first input box when a trigger operation on the identification of the first electronic device 1500 is received.
  • the second communication unit 1501 is specifically configured to establish a communication connection with the first electronic device 1500 when the key of the hotspot is obtained in the first input box.
  • the second preview interface further includes a second control and a display unit, which is specifically configured to display a hotspot search interface when a trigger operation for the second control is received; the first electronic device 1500 that detects that the first electronic device 1500 broadcasts In the case of the identification of the first electronic device 1500, the identification of the first electronic device 1500 is displayed on the hotspot search interface.
  • the second preview interface further includes a second control
  • the second display unit 1502 is further configured to display a second hotspot search interface when a trigger operation for the second control is received
  • the second The hotspot search interface includes the identification of the target WiFi.
  • the second communication unit 1501 is further configured to access the target WiFi when a trigger operation for the identifier of the target WiFi is received.
  • the second communication unit 1501 is further configured to send information indicating that the electronic device 1500 is the captured device to the server of the target WiFi.
  • the second communication unit 1501 is further configured to receive a connection instruction with the first electronic device 1500 from the server of the target WiFi.
  • the second communication unit 1501 is further configured to establish a communication connection with the first electronic device 1500 in response to the connection instruction.
  • the second communication unit 1501 is further configured to send a shooting instruction to the first electronic device 1500 in response to a trigger operation on the side button.
  • the second communication unit 1501 is further configured to send a shooting instruction to the first electronic device 1500 when the voice information for instructing shooting is recognized.
  • the second communication unit 1501 is further configured to receive a synchronized second preview image from the first electronic device 1500 .
  • the second preview interface further includes a confirmation control and an abandonment control
  • the electronic device 1500 further includes: a second processing unit 1503, specifically configured to receive a confirmation instruction in response to a trigger operation on the confirmation control.
  • a cancel instruction is received in response to a trigger operation on the abandon control.
  • the second communication unit 1501 is further configured to receive a switching instruction from the first electronic device 1500 .
  • the second display unit 1502 is further configured to display prompt information for prompting the first electronic device 1500 to request switching of the photographing identity in response to the switching instruction.
  • the electronic device 1500 also includes: a second processing unit 1503, configured to switch to the main camera device when receiving a trigger operation of agreeing to switch the identity of the photo shoot; a second communication unit 1501, also configured to send an approval instruction to the first electronic device 1500 , wherein the consent instruction is used to instruct the first electronic device 1500 to switch as the captured device.
  • FIG. 16 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device includes a processor 1601, a communication line 1604 and at least one communication interface (the exemplary Take the communication interface 1603 as an example for illustration).
  • the processor 1601 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the execution of the program program of this application integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 1604 may include circuitry that communicates information between the components described above.
  • the communication interface 1603 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • the electronic device may also include a memory 1602 .
  • the memory 1602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to.
  • the memory may exist independently and be connected to the processor through the communication line 1604 . Memory can also be integrated with the processor.
  • the memory 1602 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 1601 .
  • the processor 1601 is configured to execute computer-executed instructions stored in the memory 1602, so as to realize the photographing method provided in the embodiment of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
  • the processor 1601 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 16 .
  • an electronic device may include multiple processors, for example, processor 1601 and processor 1605 in FIG. 16 .
  • processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 170 includes one or more than two (including two) processors 1710 and a communication interface 1730.
  • memory 1740 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
  • the memory 1740 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1710 .
  • a part of the memory 1740 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the memory 1740 , the communication interface 1730 and the memory 1740 are coupled together through the bus system 1720 .
  • the bus system 1720 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are labeled bus system 1720 in FIG. 17 .
  • the methods described in the foregoing embodiments of the present application may be applied to the processor 1710 or implemented by the processor 1710 .
  • the processor 1710 may be an integrated circuit chip with signal processing capability.
  • each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1710 or instructions in the form of software.
  • the above-mentioned processor 1710 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 1710 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention .
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 1740, and the processor 1710 reads the information in the memory 1740, and completes the steps of the above method in combination with its hardware.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. reproduce the data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供一种拍照方法、装置及电子设备,涉及终端技术领域。该拍照方法中,第一电子设备与第二电子设备建立通信连接。第一电子设备向第二电子设备可以同步第一预览图像。这样,被拍摄者在第一电子设备拍照之前,查阅到自己的姿势以及所处位置的风景形成的拍照构图。进而,被拍摄者可以根据个人的拍照意图调整自己的姿势以及位置,以达到被拍摄者满意的拍照构图。进而,第一电子设备可以基于调整后的拍照构图拍照,如此,被拍摄者拍摄出的目标图像与被拍摄者的拍照意图的匹配度高,提高了被拍摄者对目标图像的满意度。

Description

拍照方法、装置及电子设备
本申请要求于2021年07月23日提交中国国家知识产权局、申请号为202110839839.4、申请名称为“拍照方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种拍照方法、装置及电子设备。
背景技术
在日常生活中,在人们遇到美丽的风景或者美好的生活片段等情况下,通常可以通过拍照来记录美好的瞬间。
通常情况下,当用户A需要拍照时,需要站在拍照位置摆好姿势;然后,站在位置B的用户B手持电子设备对准用户A采集图像。进而,在电子设备的预览画面中,用户A的姿势以及用户A所处位置的风景形成一个拍照构图。然后,用户B基于预览画面中的拍照构图拍照,进而得到一张照片。
然而,用户B通常无法领悟用户A的拍照意图。例如,用户A的姿势是否做到位、用户A站的位置是否合理等。如此,用户B拍摄出的照片与用户A的拍照意图的匹配度低,造成用户A对拍摄出的照片不满意。
发明内容
本申请提供一种拍照方法、装置及电子设备,可以使得被拍摄者可以看到拍摄的预览画面,被拍摄者可以根据个人的拍照意图调整自己的姿势以及位置,以达到满意的拍照构图,如此,拍摄出的目标图像与被拍摄者的拍照意图的匹配度高。
第一方面,本申请提供一种拍照方法,应用于拍照系统,拍照系统包括第一电子设备和第二电子设备,第一电子设备包括摄像头。本申请提供的拍照方法包括:第一电子设备和第二电子设备建立通信连接。第一电子设备显示第一预览界面,第一预览界面包括摄像头采集的第一预览图像。第一电子设备向第二电子设备同步第一预览图像。第二电子设备显示第二预览界面。其中,第二预览界面包括第一预览图像。第一电子设备获取拍摄指令,利用摄像头拍摄得到目标图像。第一电子设备通过通信连接向第二电子设备发送目标图像。第二电子设备在第二预览界面显示目标图像。在第二电子设备接收到确认指令,确认指令用于确认目标图像,向第一电子设备发送确认指令;第一电子设备响应于确认指令,保存目标图像。或者,在第二电子设备接收到取消指令,取消指令用于取消目标图像,第二电子设备向第一电子设备发送取消指令;第一电子设备响应于取消指令,不保存目标图像。
可见,第一电子设备向第二电子设备可以同步第一预览图像。这样,被拍摄者在第一电子设备拍照之前,查阅到自己的姿势以及所处位置的风景形成的拍照构图。进而,被拍摄者可以根据个人的拍照意图调整自己的姿势以及位置,以达到被拍摄者满 意的拍照构图。进而,第一电子设备可以基于调整后的拍照构图拍照,如此,被拍摄者拍摄出的目标图像与被拍摄者的拍照意图的匹配度高,提高了被拍摄者对目标图像的满意度。
在一种可能的实施方式中,第一预览界面还包括第一控件,第一电子设备和第二电子设备建立通信连接,包括:在第一电子设备接收到针对第一控件的触发操作时,第一电子设备与第二电子设备建立通信连接。
这样,拍摄者仅需触发第一控件,即可实现第一电子设备与第二电子设备建立通信连接,方便快捷。
进一步地,在第一电子设备接收到针对第一控件的触发操作时,第一电子设备与第二电子设备建立通信连接,包括:在第一电子设备接收到针对第一控件的触发操作时,第一电子设备开启近距离通信功能以及广播第一电子设备的标识。第二电子设备第一电子设备并显示第一电子设备的标识。第二电子设备接收到对第一电子设备的标识的触发操作时,第一电子设备与第二电子设备建立通信连接。
这样,拍摄者仅需触发第一控件,即可实现第一电子设备与第二电子设备建立通信连接,方便快捷。
更进一步地,在第一电子设备接收到针对第一控件的触发操作时,第一电子设备开启近距离通信功能以及广播第一电子设备的标识,包括:在第一电子设备接收到针对第一控件的触发操作时,第一电子设备显示热点设置界面。热点设置界面包括开启热点的按钮;在第一电子设备接收到针对开启热点的按钮的触发操作,第一电子设备开启近距离通信功能以及广播第一电子设备的标识。第二电子设备接收到对第一电子设备的标识的触发操作时,第一电子设备与第二电子设备建立通信连接,包括:第二电子设备接收到对第一电子设备的标识的触发操作时,第二电子设备显示第一输入框。在第一输入框中得到热点的密钥时,第二电子设备与第一电子设备建立通信连接。
这样,当第二电子设备获得热点的密钥的情况下,才与与第一电子设备建立通信连接,提高了拍照过程的私密性。
更进一步地,第二预览界面还包括第二控件,第二电子设备检测到第一电子设备的近距离通信信号并显示第一电子设备的标识,包括:在第二电子设备接收到针对第二控件的触发操作时,第二电子设备显示热点搜索界面。第二电子设备检测到第一电子设备的广播的第一电子设备的标识,并在热点搜索界面显示第一电子设备的标识。
这样,被拍摄者仅需触发第二控件,即可实现第一电子设备与第二电子设备建立通信连接,方便快捷。
在另一种可选地实施方式中,第二预览界面还包括第二控件,在第一电子设备接收到针对第一控件的触发操作时,第一电子设备与第二电子设备建立通信连接,包括:在第一电子设备接收到针对第一控件的触发操作时,第一电子设备显示热点搜索界面,热点搜索界面中包括目标WiFi的标识。在第一电子设备接收到针对目标WiFi的标识的触发操作时,第一电子设备接入目标Wi-Fi。第一电子设备向目标WiFi的服务器发送用于表示第一电子设备为主拍设备的信息。在第二电子设备接收到针对第二控件的触发操作时,第二电子设备显示第二热点搜索界面,第二热点搜索界面中包括目标WiFi的标识。在第二电子设备接收到针对目标WiFi的标识的触发操作时,第二电子 设备接入目标WiFi。第二电子设备向目标WiFi的服务器发送用于表示第二电子设备为被拍设备的信息;第一电子设备响应于来自目标WiFi的服务器的与第二电子设备的连接指令,与第二电子设备建立通信连接。
这样,当第一电子设备作为主拍设备、第二电子设备作为被拍设备,且第一电子设备和第二电子设备都连接上同一个目标Wi-Fi时,第一电子设备与第二电子设备即可建立通信连接,方便快捷。
在另一种可选地实施方式中,第一电子设备获取拍摄指令,包括:第一电子设备响应于对第一预览界面中的拍摄按钮的触发,生成拍摄指令。如此,可以实现拍摄者手动触发拍摄指令。或者,第二电子设备响应于对侧边按键的触发操作,向第一电子设备发送拍摄指令,则第一电子设备接收到拍摄指令。如此,可以实现被拍摄者手动触发拍摄指令。或者,第一电子设备识别到用于指示拍摄的语音信息,生成拍摄指令。如此,可以实现拍摄者语音触发拍摄指令。或者,第二电子设备识别到用于指示拍摄的语音信息,向第一电子设备发送拍摄指令,则第一电子设备接收到拍摄指令。如此,可以实现被拍摄者语音触发拍摄指令。或者,第一电子设备识别到用于指示拍摄的肢体动作,生成拍摄指令。如此,可以实现被拍摄者肢体触发拍摄指令。
在一种可选地实施方式中,第一电子设备响应于确认指令保存目标图像之后,或者,第一电子设备响应于取消指令不保存目标图像之后,本申请提供的拍照方法还包括:第一电子设备显示第一预览界面,其中,第一预览界面包括第一电子设备利用摄像头采集的第二预览图像。第一电子设备向第二电子设备同步第二预览图像。
这样,在上一张拍摄得到的目标图像处理完毕后,可以继续拍摄下一张目标图像。
在一种可选地实施方式中,第二预览界面还包括确认控件和放弃控件,第二电子设备接收到确认指令包括:第二电子设备响应于对确认控件的触发操作,接收确认指令。或者,第二电子设备接收到取消指令包括:第二电子设备接收到对放弃控件的触发操作,接收取消指令。
在一种可选地实施方式中,第一预览界面中还包括切换控件,切换控件用于指示切换拍照身份,本申请提供的方法还包括:在第一电子设备接收到对切换控件的触发操作时,第一电子设备向第二电子设备发送切换指令。第二电子设备响应于切换指令,显示用于提示第一电子设备请求切换拍照身份的提示信息。在第二电子设备接收到同意切换拍照身份的触发操作时,第二电子设备切换为主拍设备,以及向第一电子设备发送同意指令。第一电子设备接收来自第二电子设备的同意指令切换为被拍设备。
如此,可以实现第二电子设备从被拍设备切换为主拍设备进行图像采集和拍照,而第一电子设备可以从主拍设备切换为被帕设备,同步展示第二电子设备采集的图像。
第二方面,本申请实施例还提供一种电子设备,电子设备包括摄像头,电子设备还包括:第一通信单元,用于和第二电子设备建立通信连接。第一显示单元,用于显示第一预览界面,第一预览界面包括摄像头采集的第一预览图像。第一通信单元,还用于通过通信连接向第二电子设备同步第一预览图像。第一处理单元,还用于获取拍摄指令,利用摄像头拍摄得到目标图像。第一通信单元,还用于向第二电子设备发送目标图像。第一通信单元,还用于接收来自第二电子设备的确认指令,确认指令用于确认目标图像,第一处理单元,还用于响应于确认指令;第一存储单元,用于保存目 标图像。或者,第一通信单元还用于接收来自第二电子设备的对目标图像的取消指令,取消指令用于取消目标图像;第一处理单元,还用于响应于取消指令,不保存目标图像。
在一种可选地实施方式中,第一通信单元,具体用于在接收到针对第一控件的触发操作时,与第二电子设备建立通信连接。
进一步地,第一通信单元,具体用于接收到针对第一控件的触发操作时,开启近距离通信功能以及广播电子设备的标识。在电子设备的标识的被触发操作时,与第二电子设备建立通信连接。
更进一步地,第一显示单元,还用于在接收到针对第一控件的触发操作时,显示热点设置界面,热点设置界面包括开启热点的按钮。第一通信单元,具体用于在接收到针对开启热点的按钮的触发操作时,开启近距离通信功能以及广播电子设备的标识。
在一种可选地实施方式中,第一显示单元,还用于在接收到针对第一控件的触发操作时,显示热点搜索界面,热点搜索界面中包括目标WiFi的标识。第一通信单元,还用于在接收到针对目标WiFi的标识的触发操作时,接入目标WiFi。第一通信单元,还用于向目标WiFi的服务器发送用于表示电子设备为主拍设备的信息。第一通信单元,还用于接收来自目标WiFi的服务器的与第二电子设备的连接指令。第一通信单元,还用于响应于连接指令,与第二电子设备建立通信连接。
在一种可选地实施方式中,第一处理单元,具体用于响应于对第一预览界面中的拍摄按钮的触发,生成拍摄指令。或者,第一通信单元,用于接收来自第二电子设备的拍摄指令。或者,第一处理单元,具体用于识别到用于指示拍摄的语音信息,生成拍摄指令。或者,第一处理单元,具体用于识别到用于指示拍摄的肢体动作,生成拍摄指令。
在一种可选地实施方式中,第一显示单元,还用于显示第一预览界面,其中,第一预览界面包括电子设备利用摄像头采集的第二预览图像。第一通信单元,还用于向第二电子设备同步第二预览图像。
在一种可选地实施方式中,第一预览界面中还包括切换控件,切换控件用于指示切换拍照身份。第一通信单元,还用于在接收到对切换控件的触发操作时,向第二电子设备发送切换指令。第一通信单元,还用于接收来自第二电子设备的同意指令切换为被拍设备。
第三方面,本申请实施例还提供一种电子设备,电子设备包括:第二通信单元,用于和第一电子设备建立通信连接。第二通信单元,还用于通过通信连接接收第一电子设备同步的第一预览图像。第二显示单元,用于显示第二预览界面,其中,第二预览界面包括第一预览图像。第二通信单元,还用于接收来自第一电子设备拍摄得到的目标图像。显示单元,还用于在第二预览界面显示目标图像。第二通信单元,还用于接收到确认指令,向第一电子设备发送确认指令,其中,确认指令用于确认目标图像。或者,第二通信单元,还用于接收到取消指令,向第一电子设备发送取消指令,其中,取消指令用于取消目标图像。
在一种可选地实施方式中,第二通信单元,具体用于检测到第一电子设备广播的情况下,显示第一电子设备的标识。在接收到对第一电子设备的标识的触发操作时, 与第一电子设备建立通信连接。
进一步地,显示单元,还用于接收到对第一电子设备的标识的触发操作时,显示第一输入框。第二通信单元,具体用于在第一输入框中得到热点的密钥时,与第一电子设备建立通信连接。
进一步地,第二预览界面还包括第二控件,显示单元,具体用于在接收到针对第二控件的触发操作时,显示热点搜索界面;检测到第一电子设备广播的第一电子设备的标识的情况下,在热点搜索界面显示第一电子设备的标识。
在一种可选地实施方式中,第二预览界面还包括第二控件,第二显示单元,还用于在接收到针对第二控件的触发操作时,显示第二热点搜索界面,第二热点搜索界面中包括目标WiFi的标识。所述第二通信单元,还用于接收到针对目标WiFi的标识的触发操作时,接入目标WiFi。第二通信单元,还用于向目标WiFi的服务器发送用于表示所述电子设备为被拍设备的信息。第二通信单元,还用于接收来自目标WiFi的服务器的与第一电子设备的连接指令。第二通信单元,还用于响应于连接指令,与第一电子设备建立通信连接。
在一种可选地实施方式中,第二通信单元,还用于响应于对侧边按键的触发操作,向第一电子设备发送拍摄指令。或者,第二通信单元,还用于在识别到用于指示拍摄的语音信息的情况下,向第一电子设备发送拍摄指令。
在一种可选地实施方式中,第二通信单元,还用于接收来自第一电子设备同步的第二预览图像。
在一种可选地实施方式中,第二预览界面还包括确认控件和放弃控件,电子设备还包括:第二处理单元,具体用于响应于对确认控件的触发操作,接收确认指令。或者,响应于对放弃控件的触发操作,接收取消指令。
在一种可选地实施方式中,第二通信单元,还用于接收来自第一电子设备的切换指令。
第二显示单元,还用于响应于切换指令,显示用于提示第一电子设备请求切换拍照身份的提示信息。电子设备还包括:第二处理单元,用于在接收到同意切换拍照身份的触发操作时,切换为主拍设备;第二通信单元,还用于向第一电子设备发送同意指令,其中,同意指令用于指示第一电子设备切换为被拍设备。
第四方面,本申请还提供一种拍照方法,应用于第一电子设备,第一电子设备包括摄像头。该方法包括:第一电子设备和第二电子设备建立通信连接。第一电子设备显示第一预览界面,第一预览界面包括摄像头采集的第一预览图像。第一电子设备通过通信连接向第二电子设备同步第一预览图像。第一电子设备获取拍摄指令,利用摄像头拍摄得到目标图像。第一电子设备向第二电子设备发送目标图像。第一电子设备接收来自第二电子设备的确认指令,确认指令用于确认目标图像。第一电子设备响应于确认指令,保存目标图像。或者,第一电子设备接收来自第二电子设备的对目标图像的取消指令,取消指令用于取消目标图像;并响应于取消指令,不保存目标图像。
第五方面,本申请还提供一种拍照方法,应用于第二电子设备。该方法包括:第二电子设备和第一电子设备建立通信连接。第二电子设备通过通信连接接收第一电子 设备同步的第一预览图像。第二电子设备显示第二预览界面,其中,第二预览界面包括第一预览图像。第二电子设备接收来自第一电子设备拍摄得到的目标图像。第二电子设备在第二预览界面显示目标图像。第二电子设备接收到确认指令,向第一电子设备发送确认指令,其中,确认指令用于确认目标图像。或者,第二电子设备接收到取消指令,向第一电子设备发送取消指令,其中,取消指令用于取消目标图像。
第六方面,本申请实施例还提供一种拍照装置,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得电子设备以执行如第一方面或第一方面的任一种实现方式中描述的拍照方法。
第七方面,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的拍照方法。
第八方面,本申请实施例还提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的拍照方法。
应当理解的是,本申请的第二方面至第八方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
另外,第一控件可以为下述实施例中的“主拍配对”的触发区域,第二控件可以为下述实施例中的“被拍配对”的触发区域,开启热点的按钮可以为下述实施例中的第一开关按钮207。
附图说明
图1为本申请实施例提供的用户A和用户B所处的场景示意图;
图2为一种拍照方法的界面示意图;
图3为电子设备的硬件系统架构示意图;
图4为电子设备的软件系统架构示意图;
图5为手机100在配对过程中的界面示意图;
图6为手机200在配对过程中的界面示意图;
图7为手机100和手机200在拍照过程中的界面示意图;
图8为用户B触发手机200的按键而触发拍照的界面示意图;
图9为用户B放弃拍照得到的照片的界面示意图;
图10为用户B确认拍照得到的照片的界面示意图;
图11为手机100切换作为被拍设备且手机200切换作为主拍设备,对用户A拍照的界面示意图;
图12为用户A确认拍照得到的照片的界面示意图;
图13为本申请实施例提供的拍照方法的流程图;
图14为本申请实施例提供的电子设备1400的结构示意图;
图15为本申请实施例提供的电子设备1500的结构示意图;
图16为本申请实施例提供的一种电子设备的硬件结构示意图;
图17为本申请实施例提供的一种芯片的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
在日常生活中,在人们遇到美丽的风景或者美好的生活片段等情况下,通常可以通过拍照来记录美好的瞬间。如图1所示,当用户B站在拍照位置摆好姿势需要拍照时,可以让用户A拿出电子设备对用户B拍照。如图2中的(a)所示,用户A的电子设备在系统桌面201显示有相机应用的图标202。用户A可以手持电子设备的摄像头对准用户B,电子设备响应于用户A对相机应用的图标202的触发操作,打开相机应用202显示图像预览界面。如图2中的(b)所示,在第一预览界面203中包括拍摄按钮204、显示框205以及采集到的第一预览图像。其中,采集到的第一预览图像包括用户B的姿势以及用户B所处位置的风景,显示框205用于显示拍摄的照片的缩略图。电子设备可以响应于用户对拍摄按钮204的触发操作,拍摄采集到的第一预览图像,从而成功完成拍照。如图2中的(c)所示,拍摄的照片的缩略图显示于显示框205内。如图2中的(d)所示,电子设备可以响应于用户A对显示框205的触发操作,在图像显示界面206显示拍摄的照片。
然而,用户A通常无法领悟用户B的拍照意图。例如,用户B的姿势是否做到位、用户B站的位置是否合理等。如此,用户A拍摄出的照片与用户B的拍照意图的匹配度低,造成用户B对拍摄出的照片不满意。
有鉴于此,本申请实施例提供了一种拍照方法,可以先将用户A的电子设备与用户B的电子设备,建立一对一配对的通信连接。当用户B站在拍照位置中摆好姿势需要拍照时,用户B的电子设备可以响应于用户B的触发操作,打开相机应用并显示图像预览界面。用户A的电子设备可以根据图2中的(a)-(c)的步骤显示采集到的第一预览图像。其中,采集到的第一预览图像包括用户B的姿势以及用户B所处位置的风景。用户A的电子设备在显示采集到的第一预览图像的,向用户B的电子设备发送采集到的第一预览图像。进而,用户B的电子设备的显示图像预览界面也可以展示 用户A的电子设备采集到的第一预览图像。如此,用户B可以基于采集到的第一预览图像调整姿势以及位置等,形成的一个符合用户B拍照意图的拍照构图。进而,用户A的电子设备可以响应于用户A的触发操作或接收来自用户B的电子设备的拍照指令完成拍照。可以理解地,拍照得到的照片与用户B拍照意图的匹配度高,提高了用户B对拍摄得到的照片的满意度。
如图3所示,可以理解的是,上述电子设备可以是手机(mobile phone)、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备等等。本申请的实施例对电子所采用的具体技术和具体设备形态不做限定。
为了能够更好地理解本申请实施例,下面对本申请实施例的电子设备的结构进行介绍。图3为本申请实施例适用的电子设备的一种结构示意图。如图3所示,该电子设备100可以包括:处理器110,内部存储器121,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,麦克风170C,按键190,摄像头193,显示屏194。可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件,或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,显示处理单元(display process unit,DPU),和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。其中,处理器可以是电子设备100的神经中枢和指挥中心。处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如,天线1和天线2可以发射蓝牙信号或WiFi信号。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同 一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN),蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括GSM,GPRS,CDMA,WCDMA,TD-SCDMA,LTE,GNSS,WLAN,NFC,FM,和/或IR技术等。上述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(bei dou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等可以实现显示功能。应用处理器可以包括NPU、DPU。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。DPU也称为显示子系统(Display Sub-System,DSS),DPU用于对显示屏194的色彩进行调整,DPU可以通过三维查找表(3D look up table,3D LUT)对显示屏的色彩进行调整。DPU还可以对画面进行缩放、降噪、对比度增强、背光亮度管理、hdr处理、显示器参数Gamma调整等处理。
显示屏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)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,一个或多个摄像头193,视频编解码器,GPU,一个或多个显示屏194以及应用处理器等实现拍摄功能。
电子设备100可以通过音频模块170,扬声器170A,麦克风170C,以及应用处理器等实现音频功能。例如音乐播放,语音采集等。其中,音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。麦克风170C可以采集语音。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。图4为本申请实施例适用的电子设备的一种软件结构框图。分层架构将电子设备100的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Android runtime)和系统库、硬件抽象层(hardware abstract layer,HAL)以及内核层(kernel)。
应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图3所示,应用程序包可以包括相机,图库,WLAN,蓝牙,音乐,视频等应用程序。
应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。2D图形引擎是2D绘图的绘图引擎。
硬件抽象层,可以包含多个库模块,库模块如可以为摄像头库模块、图像库模块等。Android系统可以为设备硬件加载相应的库模块,进而实现应用程序框架层访问设备硬件的目的。设备硬件可以包括如电子设备中的显示屏、摄像头等。
内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,摄像头驱动等,本申请实施例对此不做限制。
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。
下面,以用户A为拍摄者、用户B为被拍摄者、用户A的电子设备为手机100、以及用户B的电子设备为手机200为例,说明本申请实施例提供的拍照方法。
在拍照之前,用户A的手机100和用户B的手机200需要预先建立一对一的通信连接,以完成手机200和手机100的配对。图5-图6示意出了手机200和手机100完成配对的界面示意图。
示例性地,如图5中的(a)所示,用户A的手机100在系统桌面201显示有相机应用的图标202。手机100响应于用户A对相机应用的图标202的触发操作,打开相机应用202显示第一预览界面,手机100开始采集第一预览图像。用户A可以手持手机100,使得手机100的摄像头对准用户B,以使得采集到的第一预览图像包括用户B。如图5中的(b)所示,在第一预览界面203中包括采集到的第一预览图像、拍摄按钮204、显示框205、以及“主拍配对”的触发区域、“被拍配对”的触发区域。其中,采集到的第一预览图像包括用户B的姿势以及用户B所处位置的风景,显示框205用于显示拍摄的目标图像的缩略图。
一种实施方式中,如图5中的(b)和(c)所示,手机100可以响应于用户A对“主拍配对”的触发区域的触发操作作为主拍设备,跳转显示热点设置界面206。另一种实施方式中,手机100还可以响应于用户A对“主拍配对”的触发区域的触发操作作为主拍设备,在第一预览界面203显示“请开启热点”的文字提示信息(图5中未示出)。如此,用户在查阅到“请开启热点”的文字提示信息后,可以自行打开热点设置界面206。在热点设置界面206显示有用于开启或关闭WiFi热点的第一开关按钮207,其中,第一开关按钮207处于关闭状态。如图5中的(c)和(d)所示,手机100可以响应于用户A对第一开关按钮207的触发操作开启第一开关按钮207。如此,手机100可以将接收的移动通信信号(如GPRS、3G、4G或5G)转化为WiFi信号广播出去。其中,广播出的WiFi信号携带有手机100的标识“HONOR-3C”。
如图6中的(a)所示,用户B的手机200在系统桌面601也显示有相机应用的图标602。手机200可以响应于用户B对相机应用的图标202的触发操作,打开相机应用602而显示第二预览界面603。如图6图中的(b)所示,第二预览界面603中显示有“被拍配对”的触发区域、“主拍配对”的触发区域。一种实施方式中,手机200响应于用户B对“被拍配对”的触发区域的触发操作作为被拍设备,打开热点搜索界面604搜索附近的WiFi信号。另一种实施方式中,手机200还可以响应于用户B对“被拍配对”的触发区域的触发操作作为被拍设备,显示“请打开热点搜索界面”的文字提示信息,如此,用户在查阅到“请打开热点搜索界面”的文字提示信息后,可以自行打开手机200的热点搜索界面604,手机200搜索附近的WiFi信号。进而,如图6中的(c)所示,在热点搜索界面604显示搜索到热点名称列表,其中,热点名称列表中包括手机100的标识“HONOR-3C”。
如图6中的(d)所示,手机200可以响应于用户B对标识“HONOR-3C”的触发操作,显示密钥输入界面606。在密钥输入界面606中包括有第一输入框607和加 入按钮。手机200接收用户B在第一输入框607输入的用于连接手机100的WiFi热点的密钥,然后,手机200响应于用户B对加入按钮608的触发操作,向手机100发送配对请求。其中,配对请求携带有手机200的通信地址和标识“HONOR50”。
如图5中的(e)所示,手机100接收来自手机200的配对请求,在热点设置界面206中显示第一提示信息208。在第一提示信息208内显示有文字信息“要与以下设备配对:“HONOR50”、取消按钮、以及确认控件209。手机100可以响应于用户A对确认控件209的触发操作,根据手机200的通信地址与手机200建立一对一的通信连接,完成配对。如图5中的(f)所示,在配对成功后,手机100取消显示第一提示信息208,而是显示第二提示信息210“已经与HONOR50配对成功”,以提示用户A配对成功。其中,第二提示信息210还可以是其他的用于指示配对成功的文字信息,在此仅仅是举例说明。
如图6中的(e)所示,手机200在配对成功后,在热点搜索界面604显示第三提示信息609“已经与HONOR-3C配对成功”,以提示用户B配对成功。其中,
HONOR-3C即手机100的标识,另外,第三提示信息609还可以是其他的用于指示配对成功的文字信息,在此仅仅是举例说明。
需要说明的是,上述的WiFi信号还可以被替换为蓝牙信号等,在此不作限定。
需要说明的是,上述结合图5-图6介绍的只是手机200和手机100的一种配对方式,手机200和手机100的另一种配对方式还可以为:
示例性地,如图5中的(b)所示,手机100可以响应于用户A对“主拍配对”的触发区域的触发操作作为主拍设备,跳转到热点搜索界面(图5中未示出)。另一种实施方式中,手机100还可以响应于用户A对“主拍配对”的触发区域的触发操作作为主拍设备,在第一预览界面203显示“请打开热点搜索界面”的文字提示信息(图5中未示出)。如此,用户在查阅到“请打开热点搜索界面”的文字提示信息后,可以自行打开手机100的热点设置界面(图5中未示出)。手机100搜索附近的WiFi信号,进而,在热点搜索界面604显示搜索到热点名称列表,其中,热点名称列表中包括目标WiFi的名称“Wlan1”。手机100响应于对目标WiFi的名称“Wlan1”的触发操作,连接名称为“Wlan1”的目标WiFi。另外,手机200可以以与手机100相同的方式连接上名称为“Wlan1”的目标WiFi。可以理解地,手机100和手机200还可以连接其他名称的目标WiFi,在此仅仅是举例说明。
手机100向“Wlan1”的服务器发送手机100作为主拍设备的拍照身份。手机200向“Wlan1”发送手机200作为被拍设备的拍照身份、配对请求以及通信地址。目标WiFi的服务器检测到手机100和手机200连接上同一目标WiFi,且手机100处于主拍设备以及手机200作为主拍设备,则目标WiFi的服务器向手机100发送与手机200的连接指令,和/或向手机200发送与手机100的连接指令。
以目标WiFi的服务器向手机100发送与手机200的连接指令为例,手机100接收配对请求后,如图5中的(e)所示,在热点设置界面206中显示第一提示信息208。在第一提示信息208内显示有文字信息“要与以下设备配对:“HONOR50”、取消按钮、以及确认控件209。手机100可以响应于用户B对确认控件209的触发操作,向目标WiFi的服务器发送确认指令。目标WiFi的服务器接收来自手机100的确认指 令,向手机100下发手机200的通信地址。手机100根据手机200的通信地址与手机200建立一对一的通信连接,完成配对。
手机200和手机100的配对成功后,即可进行拍照。下面结合图7-图10说明,手机100对用户B拍照的过程。
示例性地,如图7中的(a)所示,手机200和手机100的配对成功后,手机100基于已建立的通信连接,通过无线传输的方式向手机200发送采集到的第一预览图像。具体地,上述的无线传输方式可以为RTP传输、TCP传输等,在此不作限定。仍如图7中的(b)所示,手机200接收来自手机100的第一预览图像。进而,手机200将第一预览图像显示于手机200的第二预览界面603。如此,手机200在第二预览界面603显示手机100的采集到的第一预览图像,即手机100实现了将第一预览图像同步到手机200显示。如此,用户B即可在手机200的第二预览界面603中查阅到用户B的姿势以及用户B所处位置的风景。
若用户B对自己的姿势不满意,则可以调整个人姿势,调整后的姿势如图7中的(c)所示。进而,如图7中的(c)所示,手机100可以响应于用户A对拍摄按钮204的触发操作,执行拍照的操作。如图7中的(d)所示,手机100拍照成功后,手机100停止采集第一预览图像而是在第一预览界面203显示拍摄的目标图像,并向手机200发送拍摄的目标图像。如图7中的(d)所示,手机100还在第一预览界面203显示第四提示信息211“照片共享成功,等待对方确认”。其中,第四提示信息211还可以是其他的用于指示照片共享成功的文字信息,在此仅仅是举例说明。手机200接收来自手机100的目标图像,如图7中的(e)所示,手机200接收到的目标图像显示于第二预览界面603。其中,第二预览界面603与第一预览界面203的界面内容不同。例如,第一预览界面203具有拍摄按钮203,而第二预览界面603没有拍摄按钮203;第二预览界面603包括放弃控件610和确认控件611,而第二预览界面603没有放弃控件610和确认控件611。进而,用户B可以在手机200的第二预览界面603查阅到手机100拍摄的目标图像。
可以理解地,在上述的图7中,由于用户B在手机100的拍照之前,查阅到用户B的姿势以及用户B所处位置的风景形成的拍照构图。进而,可以根据个人的拍照意图调整自己的姿势以及位置,以达到用户B满意的拍照构图。进而,用户B可以指示用户A的手机100基于调整后的拍照构图拍照,如此,用户A的手机100拍摄出的目标图像与用户B的拍照意图的匹配度高,提高了用户B对拍摄出的目标图像的满意度。
示例性地,触发手机100拍照的方式并不限于上述的方式,还可以包括但不限于以下三种:
第一种:上述的“手机100可以响应于用户B对拍摄按钮204的触发操作,执行对调整后的姿势拍照的操作”可以替换为:如图8所示,用户B可以触发手机200的侧边按键612,手机200响应于用户B对侧边按键612的触发操作,向手机100发送拍照指令。手机100接收来自手机200的拍照指令,执行拍照的操作。可见,第一种触发手机100拍照方式为:用户B触发手机200的按键而触发拍照。
第二种:上述的“手机100可以响应于用户B对拍摄按钮204的触发操作,执行 对调整后的姿势拍照的操作”还可以替换为:用户B向手机200输入用于指示拍照的语音信息,例如,语音信息可以为“茄子”、“拍照”等等。手机200识别用户B输入的用于指示拍照的语音信息向手机100发送拍照指令,或者,手机100识别用户B输入的用于指示拍照的语音信息。如此,手机100根据拍照指令,执行拍照的操作。可见,第二种触发手机100拍照方式为:手机200或手机100识别用户B的语音信息而触发拍照(附图中未示意出)。
第三种:上述的“手机100可以响应于用户B对拍摄按钮204的触发操作,执行对调整后的姿势拍照的操作”还可以替换为:用户B做出一个用于指示手机100拍摄的肢体动作,例如,用户B做一个“点头动作”或者“伸出手掌的动作”,然后重新摆出用于拍照的姿势。手机100在通过采集到的第一预览图像检测到用户B的用于指示手机100拍摄的肢体动作,等待预设的时间(如3s、5s等),执行拍照的操作。可见,第一种触发手机100拍照方式为:手机100识别用户B的动作而触发手机100拍照(附图中未示意出)。
下面根据图9和图10说明,用户B如何处理拍摄的目标图像。
一方面,当用户B在手机200的第二预览界面603查阅到手机100拍摄的目标图像后,对手机100拍摄的目标图像的满意度还不够高的情况下,如图9中的(a)所示,可以触发第二预览界面603中的放弃控件610。如图9中的(b)所示,手机200响应于用户B对放弃控件610的触发操作,接收取消指令,并向手机100发送取消指令。如图9中的(c)所示,手机100接收来自手机200的取消指令,取消显示第四提示信息211与拍摄的目标图像,且不保存目标图像而是继续采集第二预览图像。手机100在第一预览界面203显示采集到的第二预览图像。手机100向手机200发送采集的第二预览图像,手机200接收第二预览图像,并在第二预览界面603显示第二预览图像。
另一方面,当用户B在手机200的第二预览界面603查阅到手机100拍摄的目标图像后,对手机100拍摄的目标图像的满意度高的情况下,如图10中的(a)所示,可以触发第二预览界面603中的确认控件611。如图10中的(b)所示,手机200响应于用户B对确认控件611的触发操作,接收确认指令,并向手机100发送确认指令。如图10中的(c)所示,手机100接收来自手机200的确认指令,存储拍摄的目标图像。如此,手机100存储了用户B满意度高的目标图像,以方便后续回看目标图像。然后,手机100取消显示第四提示信息211,并将拍摄的目标图像的缩略图显示于显示框205中。手机100继续采集第二预览图像,并将采集到的第二预览图像显示于第一预览界面203。手机100向手机200发送采集的第二预览图像,手机200接收第二预览图像,并在第二预览界面603显示第二预览图像。
可以理解地,上述是以用户A为拍摄者,用户B为被拍摄者举例说明的。另一方面,若用户B被拍照完毕后,用户A想要与用户B更换拍摄身份,即用户A为被拍摄者,用户B为拍摄者的情况下,下面结合图11和图12说明,手机200和手机100如何更换用户A与用户B的拍摄身份,以及更换拍摄身份后手机200如何给用户A拍照。
如图11中的(a)所示,手机100可以响应于用户A对手机100的第一预览界面 203上的切换控件212的触发操作,向手机200发送切换指令。如图11中的(b)所示,手机200接收来自手机100的切换指令,在手机200的第二预览界面603显示第五提示信息613,其中,第五提示信息用于指示切换拍照身份。如,第五提示信息613包括“对方请求切换拍照身份”的文字信息、取消按钮以及确认控件614。如图11中的(b)和(d)所示,若用户B同意切换身份,则手机200响应于用户B对确认控件614的触发操作从被拍设备切换为主拍设备。手机200开始采集第三预览图像,采集到的第三预览图像显示于手机200的第二预览界面603。其中,手机200采集到的第三预览图像包括用户A的姿势以及用户A所处位置的风景。
如图11中的(c)所示,手机200向手机100发送同意指令,手机100接收来自手机200的同意指令,从主拍设备切换为被拍设备。如图11中的(e)所示,手机100接收来自手机200发送的第三预览图像,在手机100的第一预览界面203显示接收到的第三预览图像。如此,用户A即可在手机100的第一预览界面203中查阅到用户A的姿势以及用户A所处位置的风景。
如图11中的(d)所示,手机200可以响应于用户B对拍摄按钮616的触发操作,执行拍照的操作。手机200拍照成功后,停止采集第三预览图像而是向手机100发送拍摄的目标图像,同时手机200还在第二预览界面603显示第四提示信息“照片共享成功,等待对方确认”的第四提示信息(附图中未示出)。其中,第四提示信息还可以是其他的用于指示照片共享成功的文字信息,在此仅仅是举例说明。手机100接收来自手机200的目标图像,如图12中的(a)所示,手机100接收到目标图像后将目标图像显示于第一预览界面203,在第一预览界面203显示放弃控件214和确认控件215。进而,用户A可以在手机100的第一预览界面203查阅到手机200拍摄的目标图像。
可以理解地,在上述的图7中,由于用户A在手机200的拍照之前,查阅到用户A的姿势以及用户A所处位置的风景形成的拍照构图。进而,可以根据个人的拍照意图调整自己的姿势以及位置,以达到用户A满意的拍照构图。进而,用户A也可以指示用户B的手机100基于调整后的拍照构图拍照,如此,用户B的手机200拍摄出的目标图像与用户A的拍照意图的匹配度高,提高了用户A对拍摄出的目标图像的满意度。
示例性地,触发手机200拍照的方式,并不限于上述的方式,还可以是上述介绍的触发手机100拍照的其他几种方式,在此不再赘述。
下面,以用户A为拍摄者、用户B为被拍摄者、用户A的电子设备为手机100、以及用户B的电子设备为手机200为例,说明上述的图5-图12的拍照方法的流程。
图13为本申请实施例提供的一种拍照方法的流程示意图。如图13所示,该拍照方法可以包括如下步骤:
S1301:手机100显示第一预览界面,其中,第一预览界面包括手机100采集到的第一预览图像和第一控件。
示例性地,手机100响应于用户A对相机应用的图标的触发操作,打开相机应用而显示第一预览界面。可以理解地,第一预览界面可以是上述的图5中的(b)中手机100的第一预览界面203。可以理解地,用户B可以在拍照位置摆好姿势,用户A 可以手持手机100使得手机100的摄像头对准用户B。如此,手机100可以采集到包含用户B的图像。其中,第一控件可以为图5中的(b)中的“主拍配对”的触发区域。
S1302:手机200显示第二预览界面,其中,第二预览界面包括第二控件。
示例性地,手机200可以响应于用户B对系统桌面上的相机应用的图标的触发操作,打开相机应用而显示第二预览界面。可以理解地,第二预览界面可以是上述的图6中的(b)中手机200的第二预览界面603;第二控件可以为上述的图6中的(b)中的“被拍配对”的触发区域。
S1303:手机100响应于用户A对第一控件的触发操作,作为主拍设备。
S1304:手机200响应于用户B对第二控件的触发操作,作为被拍设备。
S1305:手机100与手机200之间建立一对一的通信连接。
可以理解地,上述的1305阐述的是手机100和手机200的配对过程。其中,手机100和手机200的具体配对过程具有多种可能的实现方式,下面举例介绍两种:
第一种配对过程:手机100响应于用户A的操作开启WiFi热点功能,将接收的移动通信信号(如GPRS、3G、4G或5G)信号转化为WiFi信号广播出去。手机200搜索到手机100广播的WiFi信号,在接收用户B在手机200输入的密钥后,向手机100发送配对请求,其中,配对请求携带有手机200的通信地址。手机100接收来自手机200的配对请求,根据手机200的通信地址与手机200建立一对一的通信连接,进而完成手机100和手机200的配对。
需要说明的是,第一种配对过程的界面操作和具体实现方式,可以参照图5和图6、以及上述的对图5和图6的阐述,在此不作赘述。
第二种配对过程:手机100搜索附近的目标WiFi网络,并连接上目标WiFi。手机100向目标WiFi的服务器发送手机100的主拍设备的拍照身份。手机200搜索附近的目标WiFi,并连接上与手机200相同的目标WiFi。手机200向目标WiFi的服务器发送手机200的被拍设备的拍照身份、配对请求,其中,配对请求携带有手机200的通信地址。目标WiFi的目标WiFi的服务器检测到手机100和手机200连接上同一目标WiFi,且手机100处于主拍设备以及手机200作为主拍设备,则向手机100发送手机200的配对请求。手机100接收配对请求后,根据手机200的通信地址与手机200建立通信连接。
需要说明的是,第二种配对过程的具体实现方式,可以参照上述实施例中的对手机200和手机100的另一种配对方式的阐述,在此不作赘述。
另外,在上述的S1303-S1305中,S1305还可以与S1304互换步骤顺序,具体实现原理可以为:手机100响应于用户A对第一控件的触发操作,作为主拍设备。进而,手机100显示热点设置界面,并自动开启WiFi热点功能,将接收的移动通信信号(如GPRS、3G、4G或5G)信号转化为WiFi信号广播出去。手机200搜索到手机100广播的WiFi信号,在接收用户B在手机200输入的密钥后,向手机100发送配对请求,其中,配对请求携带有手机200的通信地址。手机100接收来自手机200的配对请求,根据手机200的通信地址与手机200建立一对一的通信连接,进而,完成手机100和手机200的配对。在配对成功后,手机200自动作为被拍设备。
S1306:手机100通过已建立的通信连接向手机200发送采集到的第一预览图像,其中,采集到的第一预览图像中包括用户B。
由于已经手机100和手机200已经建立一对一的通信连接,因此手机100可以向手机200发送采集到的第一预览图像。其中,实现S1306的界面示意图可以为图7中的(a)-(b)。
S1307:手机200接收来自手机100的图像,在第二预览界面显示接收到的图像。
进而,用户B可以在手机200的第二预览界面浏览到采集到的第一预览图像。其中,实现S1307的界面示意图可以为图7中的(a)-(b)。
S1308:手机100拍摄得到目标图像,向手机200发送拍摄的目标图像。
若用户B对自己的姿势不满意,则可以调整个人姿势。在用户B对姿势满意后,手机100对图像拍照,向手机200发送拍摄的目标图像。具体地,触发手机100拍照的方式包括但不限于下述四种:第一种:用户A触发手机100拍照;第二种:用户B触发手机200的侧边按键触发拍照;第三种:用户B向手机200的输入语音信息触发拍照;第四种:用户B向手机100输入肢体动作,触发手机100拍照。
需要说明的是,此处四种触发拍照的具体实现方式可以参照图7中的(c)和(d)、图8以及上述实施例中对四种触发拍照方式的具体阐述,在此不再赘述。
S1309:手机200接收来自手机100的目标图像,在第二预览界面显示目标图像和确认控件。
如此,用户B即可在第二预览界面查阅到手机100拍摄的目标图像。其中,第二预览界面显示目标图像和确认控件的界面示意图可以参考图7中的(e)。
S1310:手机200响应于对确认控件的触发操作,接收确认指令,并向手机100发送确认指令,其中,确认指令用于确认目标图像。
针对S1309-S1310,若手机100拍摄的目标图像符合用户B的拍照意图,则用户B可以触发确认控件。如此,手机200响应于对确认控件的触发操作,向手机100发送确认指令。
S1311:手机100接收来自手机200的确认指令,存储拍摄的目标图像。
具体地,S1310与S1311的具体实现方式和界面示意图可以参照图10以及上述的实施例中,对图10的阐述,在此不作赘述。
另外,请结合参阅图9,第二预览界面中还可以显示有放弃控件,若对手机100拍摄的目标图像不符合用户B的拍照意图,则用户B可以触发放弃控件。如此,手机200响应于对放弃控件的触发操作,接收取消指令,向手机100发送取消指令。其中,取消指令用于指示不保存目标图像。手机100接收来自手机200的取消指令,不保存拍摄的目标图像,进而采集第二预览图像。手机100向手机200发送采集的第二预览图像,手机200接收第二预览图像,并在第二预览界面603显示第二预览图像。
另外,手机100还可以向手机200发送切换指令,手机200接收来自手机100的切换指令,在第二预览界面显示用于指示切换拍照身份的提示信息。手机200响应于输入的触发操作,向手机100发送同意指令,手机200作为主拍设备。手机100接收同意指令作为被拍设备。如此,用户B可以作为拍摄者手持手机200配合手机100对作为被拍摄者的用户A拍照。
需要说明的是,用户B作为拍摄者手持手机200配合手机100对作为被拍摄者的用户A拍照的流程可以参照上述的图11-图12以及对图11-图12的描述,在此不再赘述。
另外,上述的介绍本申请实施例提供的拍照方法中,提到的触发操作可以包括:点击操作、长按操作、以及手势触发操作等,在此不做限定。
请参阅图14,本申请实施例还提供一种电子设备1400,电子设备1400包括摄像头,电子设备1400还包括:第一通信单元1401、第一显示单元1402、第一处理单元1403以及第一存储单元1404。
其中,第一通信单元1401,用于和第二电子设备1400建立通信连接。第一显示单元1402,用于显示第一预览界面,第一预览界面包括摄像头采集的第一预览图像。第一通信单元1401,还用于通过通信连接向第二电子设备1400同步第一预览图像。第一处理单元1403,还用于获取拍摄指令,利用摄像头拍摄得到目标图像。第一通信单元1401,还用于向第二电子设备1400发送目标图像。第一通信单元1401,还用于接收来自第二电子设备1400的确认指令,确认指令用于确认目标图像,第一处理单元1403,还用于响应于确认指令;第一存储单元1404,用于保存目标图像。或者,第一通信单元1401还用于接收来自第二电子设备1400的对目标图像的取消指令,取消指令用于取消目标图像;第一处理单元1403,还用于响应于取消指令,不保存目标图像。
在一种可选地实施方式中,第一通信单元1401,具体用于在接收到针对第一控件的触发操作时,与第二电子设备1400建立通信连接。
进一步地,第一通信单元1401,具体用于接收到针对第一控件的触发操作时,开启近距离通信功能以及广播电子设备1400的标识。在电子设备1400的标识的被触发操作时,与第二电子设备1400建立通信连接。
更进一步地,第一显示单元1402,还用于在接收到针对第一控件的触发操作时,显示热点设置界面,热点设置界面包括开启热点的按钮。第一通信单元1401,具体用于在接收到针对开启热点的按钮的触发操作时,开启近距离通信功能以及广播电子设备1400的标识。
在一种可选地实施方式中,第一显示单元1402,还用于在接收到针对第一控件的触发操作时,显示热点搜索界面,热点搜索界面中包括目标WiFi的标识。第一通信单元1401,还用于在接收到针对目标WiFi的标识的触发操作时,接入目标WiFi。第一通信单元1401,还用于向目标WiFi的服务器发送用于表示电子设备1400为主拍设备的信息。第一通信单元1401,还用于接收来自目标WiFi的服务器的与第二电子设备1400的连接指令。第一通信单元1401,还用于响应于连接指令,与第二电子设备1400建立通信连接。
在一种可选地实施方式中,第一处理单元1403,具体用于响应于对第一预览界面中的拍摄按钮的触发,生成拍摄指令。或者,第一通信单元1401,用于接收来自第二电子设备1400的拍摄指令。或者,第一处理单元1403,具体用于识别到用于指示拍摄的语音信息,生成拍摄指令。或者,第一处理单元1403,具体用于识别到用于指示拍摄的肢体动作,生成拍摄指令。
在一种可选地实施方式中,第一显示单元1402,还用于显示第一预览界面,其中,第一预览界面包括电子设备1400利用摄像头采集的第二预览图像。第一通信单元1401,还用于向第二电子设备1400同步第二预览图像。
在一种可选地实施方式中,第一预览界面中还包括切换控件,切换控件用于指示切换拍照身份。第一通信单元1401,还用于在接收到对切换控件的触发操作时,向第二电子设备1400发送切换指令。第一通信单元1401,还用于接收来自第二电子设备1400的同意指令切换为被拍设备。
请参阅图15,本申请实施例还提供一种电子设备1500,电子设备1500包括:第二通信单元1501,用于和第一电子设备1500建立通信连接。第二通信单元1501,还用于通过通信连接接收第一电子设备1500同步的第一预览图像。第二显示单元1502,用于显示第二预览界面,其中,第二预览界面包括第一预览图像。第二通信单元1501,还用于接收来自第一电子设备1500拍摄得到的目标图像。显示单元,还用于在第二预览界面显示目标图像。第二通信单元1501,还用于接收到确认指令,向第一电子设备1500发送确认指令,其中,确认指令用于确认目标图像。或者,第二通信单元1501,还用于接收到取消指令,向第一电子设备1500发送取消指令,其中,取消指令用于取消目标图像。
在一种可选地实施方式中,第二通信单元1501,具体用于检测到第一电子设备1500广播的情况下,显示第一电子设备1500的标识。在接收到对第一电子设备1500的标识的触发操作时,与第一电子设备1500建立通信连接。
进一步地,显示单元,还用于接收到对第一电子设备1500的标识的触发操作时,显示第一输入框。第二通信单元1501,具体用于在第一输入框中得到热点的密钥时,与第一电子设备1500建立通信连接。
进一步地,第二预览界面还包括第二控件,显示单元,具体用于在接收到针对第二控件的触发操作时,显示热点搜索界面;检测到第一电子设备1500广播的第一电子设备1500的标识的情况下,在热点搜索界面显示第一电子设备1500的标识。
在一种可选地实施方式中,第二预览界面还包括第二控件,第二显示单元1502,还用于在接收到针对第二控件的触发操作时,显示第二热点搜索界面,第二热点搜索界面中包括目标WiFi的标识。第二通信单元1501,还用于接收到针对目标WiFi的标识的触发操作时,接入目标WiFi。第二通信单元1501,还用于向目标WiFi的服务器发送用于表示电子设备1500为被拍设备的信息。第二通信单元1501,还用于接收来自目标WiFi的服务器的与第一电子设备1500的连接指令。第二通信单元1501,还用于响应于连接指令,与第一电子设备1500建立通信连接。
在一种可选地实施方式中,第二通信单元1501,还用于响应于对侧边按键的触发操作,向第一电子设备1500发送拍摄指令。或者,第二通信单元1501,还用于在识别到用于指示拍摄的语音信息的情况下,向第一电子设备1500发送拍摄指令。
在一种可选地实施方式中,第二通信单元1501,还用于接收来自第一电子设备1500同步的第二预览图像。
在一种可选地实施方式中,第二预览界面还包括确认控件和放弃控件,电子设备1500还包括:第二处理单元1503,具体用于响应于对确认控件的触发操作,接收确 认指令。或者,响应于对放弃控件的触发操作,接收取消指令。
在一种可选地实施方式中,第二通信单元1501,还用于接收来自第一电子设备1500的切换指令。
第二显示单元1502,还用于响应于切换指令,显示用于提示第一电子设备1500请求切换拍照身份的提示信息。电子设备1500还包括:第二处理单元1503,用于在接收到同意切换拍照身份的触发操作时,切换为主拍设备;第二通信单元1501,还用于向第一电子设备1500发送同意指令,其中,同意指令用于指示第一电子设备1500切换为被拍设备。
示例性的,图16为本申请实施例提供的一种电子设备的硬件结构示意图,如图16所示,该电子设备包括处理器1601,通信线路1604以及至少一个通信接口(图16中示例性的以通信接口1603为例进行说明)。
处理器1601可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路1604可包括在上述组件之间传送信息的电路。
通信接口1603,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。
可能的,该电子设备还可以包括存储器1602。
存储器1602可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1604与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1602用于存储执行本申请方案的计算机执行指令,并由处理器1601来控制执行。处理器1601用于执行存储器1602中存储的计算机执行指令,从而实现本申请实施例所提供的拍照方法。
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。
在具体实现中,作为一种实施例,处理器1601可以包括一个或多个CPU,例如图16中的CPU0和CPU1。
在具体实现中,作为一种实施例,电子设备可以包括多个处理器,例如图16中的处理器1601和处理器1605。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
示例性的,图17为本申请实施例提供的一种芯片的结构示意图。芯片170包括 一个或两个以上(包括两个)处理器1710和通信接口1730。
在一些实施方式中,存储器1740存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。
本申请实施例中,存储器1740可以包括只读存储器和随机存取存储器,并向处理器1710提供指令和数据。存储器1740的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。
本申请实施例中,存储器1740、通信接口1730以及存储器1740通过总线系统1720耦合在一起。其中,总线系统1720除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图17中将各种总线都标为总线系统1720。
上述本申请实施例描述的方法可以应用于处理器1710中,或者由处理器1710实现。处理器1710可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1710中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1710可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器1710可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器1740,处理器1710读取存储器1740中的信息,结合其硬件完成上述方法的步骤。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以 全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (27)

  1. 一种拍照方法,其特征在于,应用于拍照系统,所述拍照系统包括第一电子设备和第二电子设备,所述第一电子设备包括摄像头,所述方法包括:
    所述第一电子设备和所述第二电子设备建立通信连接;
    所述第一电子设备显示第一预览界面,所述第一预览界面包括所述摄像头采集的第一预览图像;
    所述第一电子设备向所述第二电子设备同步所述第一预览图像;
    所述第二电子设备显示第二预览界面,其中,所述第二预览界面包括所述第一预览图像;
    所述第一电子设备获取拍摄指令,利用所述摄像头拍摄得到目标图像;
    所述第一电子设备通过所述通信连接向所述第二电子设备发送所述目标图像;
    所述第二电子设备在所述第二预览界面显示所述目标图像;
    在所述第二电子设备接收到确认指令,所述确认指令用于确认所述目标图像,向所述第一电子设备发送所述确认指令;所述第一电子设备响应于所述确认指令,保存所述目标图像;
    或者,在所述第二电子设备接收到取消指令,所述取消指令用于取消所述目标图像,所述第二电子设备向所述第一电子设备发送所述取消指令;所述第一电子设备响应于所述取消指令,不保存所述目标图像。
  2. 根据权利要求1所述的拍照方法,其特征在于,所述第一预览界面还包括第一控件,所述第一电子设备和所述第二电子设备建立通信连接,包括:
    在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备与所述第二电子设备建立通信连接。
  3. 根据权利要求2所述的拍照方法,其特征在于,在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备与所述第二电子设备建立通信连接,包括:
    在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备开启近距离通信功能以及广播所述第一电子设备的标识;
    所述第二电子设备所述第一电子设备并显示所述第一电子设备的标识;
    所述第二电子设备接收到对所述第一电子设备的标识的触发操作时,所述第一电子设备与所述第二电子设备建立通信连接。
  4. 根据权利要求3所述的拍照方法,其特征在于,所述在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备开启近距离通信功能以及广播所述第一电子设备的标识,包括:
    在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备显示热点设置界面;所述热点设置界面包括开启热点的按钮;在所述第一电子设备接收到针对所述开启热点的按钮的触发操作,所述第一电子设备开启近距离通信功能以及广播所述第一电子设备的标识;
    所述第二电子设备接收到对所述第一电子设备的标识的触发操作时,所述第一电 子设备与所述第二电子设备建立通信连接,包括:
    所述第二电子设备接收到对所述第一电子设备的标识的触发操作时,所述第二电子设备显示第一输入框;在所述第一输入框中得到所述热点的密钥时,所述第二电子设备与所述第一电子设备建立通信连接。
  5. 根据权利要求3或4所述的拍照方法,其特征在于,所述第二预览界面还包括第二控件,所述第二电子设备检测到所述第一电子设备的近距离通信信号并显示所述第一电子设备的标识,包括:
    在所述第二电子设备接收到针对所述第二控件的触发操作时,所述第二电子设备显示热点搜索界面;
    所述第二电子设备检测到所述第一电子设备的广播的所述第一电子设备的标识,并在所述热点搜索界面显示所述第一电子设备的标识。
  6. 根据权利要求2所述的拍照方法,其特征在于,所述第二预览界面还包括第二控件,所述在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备与所述第二电子设备建立通信连接,包括:
    在所述第一电子设备接收到针对所述第一控件的触发操作时,所述第一电子设备显示热点搜索界面,所述热点搜索界面中包括目标WiFi的标识;
    在所述第一电子设备接收到针对所述目标WiFi的标识的触发操作时,所述第一电子设备接入所述目标WiFi;
    所述第一电子设备向所述目标WiFi的服务器发送用于表示所述第一电子设备为主拍设备的信息;
    在所述第二电子设备接收到针对所述第二控件的触发操作时,所述第二电子设备显示第二热点搜索界面,所述第二热点搜索界面中包括所述目标WiFi的标识;
    在所述第二电子设备接收到针对所述目标WiFi的标识的触发操作时,所述第二电子设备接入所述目标WiFi;
    所述第二电子设备向所述目标WiFi的服务器发送用于表示所述第二电子设备为被拍设备的信息;
    所述第一电子设备响应于来自目标WiFi的服务器的与第二电子设备的连接指令,与所述第二电子设备建立通信连接。
  7. 根据权利要求1所述的拍照方法,其特征在于,所述第一电子设备获取拍摄指令,包括:
    所述第一电子设备响应于对所述第一预览界面中的拍摄按钮的触发,生成拍摄指令;
    或者,所述第二电子设备响应于对侧边按键的触发操作,向所述第一电子设备发送所述拍摄指令,则所述第一电子设备接收到所述拍摄指令;
    或者,所述第一电子设备识别到用于指示拍摄的语音信息,生成拍摄指令;
    或者,所述第二电子设备识别到用于指示拍摄的语音信息,向所述第一电子设备发送拍摄指令,则所述第一电子设备接收到所述拍摄指令;
    或者,所述第一电子设备识别到用于指示拍摄的肢体动作,生成所述拍摄指令。
  8. 根据权利要求1所述的拍照方法,其特征在于,所述第一电子设备响应于所述 确认指令保存所述目标图像之后,或者,所述第一电子设备响应于所述取消指令不保存所述目标图像之后,所述方法还包括:
    所述第一电子设备显示所述第一预览界面,其中,所述第一预览界面包括第一电子设备利用所述摄像头采集的第二预览图像;
    所述第一电子设备向所述第二电子设备同步所述第二预览图像。
  9. 根据权利要求1所述的拍照方法,其特征在于,所述第二预览界面还包括确认控件和放弃控件,
    所述第二电子设备接收到确认指令包括:所述第二电子设备响应于对所述确认控件的触发操作,接收所述确认指令;
    或者,所述第二电子设备接收到取消指令包括:所述第二电子设备接收到对所述放弃控件的触发操作,接收所述取消指令。
  10. 根据权利要求1所述的方法,其特征在于,所述第一预览界面中还包括切换控件,所述切换控件用于指示切换拍照身份,所述方法还包括:
    在所述第一电子设备接收到对所述切换控件的触发操作时,所述第一电子设备向所述第二电子设备发送切换指令;
    所述第二电子设备响应于所述切换指令,显示用于提示所述第一电子设备请求切换拍照身份的提示信息;
    在所述第二电子设备接收到同意切换拍照身份的触发操作时,所述第二电子设备切换为主拍设备,以及向所述第一电子设备发送同意指令;
    所述第一电子设备接收来自所述第二电子设备的同意指令切换为被拍设备。
  11. 一种电子设备,其特征在于,所述电子设备包括摄像头,所述电子设备还包括:
    第一通信单元,用于和第二电子设备建立通信连接;
    第一显示单元,用于显示第一预览界面,所述第一预览界面包括所述摄像头采集的第一预览图像;
    所述第一通信单元,还用于通过所述通信连接向所述第二电子设备同步所述第一预览图像;
    第一处理单元,还用于获取拍摄指令,利用所述摄像头拍摄得到目标图像;
    所述第一通信单元,还用于向所述第二电子设备发送所述目标图像;
    所述第一通信单元,还用于接收来自所述第二电子设备的确认指令,所述确认指令用于确认所述目标图像,所述第一处理单元,还用于响应于确认指令;第一存储单元,用于保存所述目标图像;
    或者,所述第一通信单元还用于接收来自所述第二电子设备的对所述目标图像的取消指令,所述取消指令用于取消所述目标图像;所述第一处理单元,还用于响应于所述取消指令,不保存所述目标图像。
  12. 根据权利要求11所述的电子设备,其特征在于,所述第一预览界面还包括第一控件,所述第一通信单元,具体用于在接收到针对所述第一控件的触发操作时,与所述第二电子设备建立通信连接。
  13. 根据权利要求12所述的电子设备,其特征在于,所述第一通信单元,具体用于接收到针对所述第一控件的触发操作时,开启近距离通信功能以及广播所述电子设 备的标识;在所述电子设备的标识的被触发操作时,与所述第二电子设备建立通信连接。
  14. 根据权利要求13所述的电子设备,其特征在于,所述第一显示单元,还用于在接收到针对所述第一控件的触发操作时,显示热点设置界面,所述热点设置界面包括开启热点的按钮;
    所述第一通信单元,具体用于在接收到针对所述开启热点的按钮的触发操作时,开启近距离通信功能以及广播所述电子设备的标识。
  15. 根据权利要求12所述的电子设备,其特征在于,
    所述第一显示单元,还用于在接收到针对所述第一控件的触发操作时,显示热点搜索界面,所述热点搜索界面中包括目标WiFi的标识;
    所述第一通信单元,还用于在接收到针对所述目标WiFi的标识的触发操作时,接入所述目标WiFi;
    所述第一通信单元,还用于向所述目标WiFi的服务器发送用于表示所述电子设备为主拍设备的信息;
    所述第一通信单元,还用于接收来自目标WiFi的服务器的与第二电子设备的连接指令;
    所述第一通信单元,还用于响应于所述连接指令,与所述第二电子设备建立通信连接。
  16. 根据权利要求11所述的电子设备,其特征在于,所述第一处理单元,具体用于响应于对所述第一预览界面中的拍摄按钮的触发,生成拍摄指令;
    或者,所述第一通信单元,用于接收来自所述第二电子设备的拍摄指令;
    或者,所述第一处理单元,具体用于识别到用于指示拍摄的语音信息,生成拍摄指令;
    或者,所述第一处理单元,具体用于识别到用于指示拍摄的肢体动作,生成所述拍摄指令。
  17. 根据权利要求11所述的电子设备,其特征在于,所述第一显示单元,还用于显示所述第一预览界面,其中,所述第一预览界面包括所述电子设备利用所述摄像头采集的第二预览图像;
    所述第一通信单元,还用于向所述第二电子设备同步所述第二预览图像。
  18. 根据权利要求11所述的电子设备,其特征在于,所述第一预览界面中还包括切换控件,所述切换控件用于指示切换拍照身份,
    所述第一通信单元,还用于在接收到对所述切换控件的触发操作时,向所述第二电子设备发送切换指令;
    所述第一通信单元,还用于接收来自所述第二电子设备的同意指令切换为被拍设备。
  19. 一种电子设备,其特征在于,所述电子设备包括:
    第二通信单元,用于和第一电子设备建立通信连接;
    所述第二通信单元,还用于通过所述通信连接接收所述第一电子设备同步的第一预览图像;
    第二显示单元,用于显示第二预览界面,其中,所述第二预览界面包括所述第一预览图像;
    所述第二通信单元,还用于接收来自所述第一电子设备拍摄得到的目标图像;
    所述显示单元,还用于在第二预览界面显示所述目标图像;
    所述第二通信单元,还用于接收到确认指令,向所述第一电子设备发送所述确认指令,其中,所述确认指令用于确认所述目标图像;
    或者,所述第二通信单元,还用于接收到取消指令,向所述第一电子设备发送取消指令,其中,所述取消指令用于取消所述目标图像。
  20. 根据权利要求19所述的电子设备,其特征在于,所述第二通信单元,具体用于检测到所述第一电子设备广播的情况下,显示所述第一电子设备的标识,在接收到对所述第一电子设备的标识的触发操作时,与所述第一电子设备建立通信连接。
  21. 根据权利要求20所述的电子设备,其特征在于,所述显示单元,还用于接收到对所述第一电子设备的标识的触发操作时,显示第一输入框;
    所述第二通信单元,具体用于在所述第一输入框中得到热点的密钥时,与所述第一电子设备建立通信连接。
  22. 根据权利要求20或21所述的电子设备,其特征在于,所述第二预览界面还包括第二控件,所述显示单元,具体用于在接收到针对所述第二控件的触发操作时,显示热点搜索界面;检测到所述第一电子设备广播的所述第一电子设备的标识的情况下,在所述热点搜索界面显示所述第一电子设备的标识。
  23. 根据权利要求19所述的电子设备,其特征在于,所述第二预览界面还包括第二控件,所述第二显示单元,还用于在接收到针对所述第二控件的触发操作时,显示第二热点搜索界面,所述第二热点搜索界面中包括目标WiFi的标识;
    所述第二通信单元,还用于接收到针对所述目标WiFi的标识的触发操作时,接入所述目标WiFi;
    所述第二通信单元,还用于向所述目标WiFi的服务器发送用于表示所述电子设备为被拍设备的信息;
    所述第二通信单元,还用于接收来自目标WiFi的服务器的与第一电子设备的连接指令;
    所述第二通信单元,还用于响应于所述连接指令,与所述第一电子设备建立通信连接。
  24. 根据权利要求19所述的电子设备,其特征在于,所述第二通信单元,还用于响应于对侧边按键的触发操作,向所述第一电子设备发送拍摄指令;
    或者,所述第二通信单元,还用于在识别到用于指示拍摄的语音信息的情况下,向所述第一电子设备发送拍摄指令。
  25. 根据权利要求19所述的电子设备,其特征在于,所述第二通信单元,还用于接收来自所述第一电子设备同步的第二预览图像。
  26. 根据权利要求19所述的电子设备,其特征在于,所述第二预览界面还包括确认控件和放弃控件,所述电子设备还包括:第二处理单元,具体用于响应于对所述确认控件的触发操作,接收所述确认指令;或者,响应于对所述放弃控件的触发操作, 接收所述取消指令。
  27. 根据权利要求19所述的电子设备,其特征在于,
    所述第二通信单元,还用于接收来自所述第一电子设备的切换指令;
    所述第二显示单元,还用于响应于所述切换指令,显示用于提示所述第一电子设备请求切换拍照身份的提示信息;
    所述电子设备还包括:第二处理单元,用于在接收到同意切换拍照身份的触发操作时,切换为主拍设备;
    所述第二通信单元,还用于向所述第一电子设备发送同意指令,其中,所述同意指令用于指示所述第一电子设备切换为被拍设备。
PCT/CN2022/094200 2021-07-23 2022-05-20 拍照方法、装置及电子设备 WO2023000802A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110839839.4A CN113747056A (zh) 2021-07-23 2021-07-23 拍照方法、装置及电子设备
CN202110839839.4 2021-07-23

Publications (1)

Publication Number Publication Date
WO2023000802A1 true WO2023000802A1 (zh) 2023-01-26

Family

ID=78729155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094200 WO2023000802A1 (zh) 2021-07-23 2022-05-20 拍照方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113747056A (zh)
WO (1) WO2023000802A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747056A (zh) * 2021-07-23 2021-12-03 荣耀终端有限公司 拍照方法、装置及电子设备
CN115052005B (zh) * 2022-06-16 2024-05-10 维沃移动通信有限公司 同步显示方法、同步显示装置、电子设备和存储介质

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070010851A (ko) * 2005-07-20 2007-01-24 엘지전자 주식회사 이동통신 단말기의 블루투스를 이용한 원격 촬영 방법
KR20080015258A (ko) * 2006-08-14 2008-02-19 삼성테크윈 주식회사 블루투스 통신을 이용하여 원격 제어모드를 지원하는디지털 영상 처리 방법
CN103051840A (zh) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 一种预览拍摄的方法及其系统
CN104320586A (zh) * 2014-11-07 2015-01-28 广东欧珀移动通信有限公司 拍照方法、系统及终端
CN104869315A (zh) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 一种拍照控制方法及终端
CN105554752A (zh) * 2015-11-27 2016-05-04 东莞酷派软件技术有限公司 一种热点共享方法及相关设备
CN105611176A (zh) * 2016-03-08 2016-05-25 北京珠穆朗玛移动通信有限公司 一种拍照方法、系统及装置
CN107205108A (zh) * 2016-03-18 2017-09-26 中兴通讯股份有限公司 一种移动终端的拍照方法及装置
CN112181344A (zh) * 2020-10-19 2021-01-05 Oppo广东移动通信有限公司 器件调用方法、装置、交互系统、电子设备以及存储介质
CN113747056A (zh) * 2021-07-23 2021-12-03 荣耀终端有限公司 拍照方法、装置及电子设备

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070010851A (ko) * 2005-07-20 2007-01-24 엘지전자 주식회사 이동통신 단말기의 블루투스를 이용한 원격 촬영 방법
KR20080015258A (ko) * 2006-08-14 2008-02-19 삼성테크윈 주식회사 블루투스 통신을 이용하여 원격 제어모드를 지원하는디지털 영상 처리 방법
CN103051840A (zh) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 一种预览拍摄的方法及其系统
CN104320586A (zh) * 2014-11-07 2015-01-28 广东欧珀移动通信有限公司 拍照方法、系统及终端
CN104869315A (zh) * 2015-05-28 2015-08-26 魅族科技(中国)有限公司 一种拍照控制方法及终端
CN105554752A (zh) * 2015-11-27 2016-05-04 东莞酷派软件技术有限公司 一种热点共享方法及相关设备
CN105611176A (zh) * 2016-03-08 2016-05-25 北京珠穆朗玛移动通信有限公司 一种拍照方法、系统及装置
CN107205108A (zh) * 2016-03-18 2017-09-26 中兴通讯股份有限公司 一种移动终端的拍照方法及装置
CN112181344A (zh) * 2020-10-19 2021-01-05 Oppo广东移动通信有限公司 器件调用方法、装置、交互系统、电子设备以及存储介质
CN113747056A (zh) * 2021-07-23 2021-12-03 荣耀终端有限公司 拍照方法、装置及电子设备

Also Published As

Publication number Publication date
CN113747056A (zh) 2021-12-03

Similar Documents

Publication Publication Date Title
WO2020233553A1 (zh) 一种拍摄方法及终端
WO2021078284A1 (zh) 一种内容接续方法及电子设备
WO2020077511A1 (zh) 一种拍摄场景下的图像显示方法及电子设备
WO2023000802A1 (zh) 拍照方法、装置及电子设备
WO2021104008A1 (zh) 一种折叠屏的显示方法及相关装置
WO2023015981A1 (zh) 图像处理方法及其相关设备
WO2021129198A1 (zh) 一种长焦场景下的拍摄方法及终端
WO2023020006A1 (zh) 基于可折叠屏的拍摄控制方法及电子设备
WO2021047567A1 (zh) 一种回调流的处理方法及设备
WO2020221060A1 (zh) 一种卡片处理方法及设备
WO2023131070A1 (zh) 一种电子设备的管理方法、电子设备及可读存储介质
WO2020113534A1 (zh) 一种拍摄长曝光图像的方法和电子设备
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
WO2021115483A1 (zh) 一种图像处理方法及相关装置
WO2023045712A1 (zh) 投屏异常处理方法及电子设备
CN115604572B (zh) 图像的获取方法、电子设备及计算机可读存储介质
US11895713B2 (en) Data sharing and instruction operation control method and system
WO2024041394A1 (zh) 拍摄方法及相关装置
CN114726950A (zh) 一种摄像头模组的开启方法和装置
CN113630558B (zh) 一种摄像曝光方法及电子设备
CN114866681B (zh) 跨设备的协同拍摄方法、相关装置及系统
WO2021103919A1 (zh) 构图推荐方法和电子设备
WO2023160179A1 (zh) 倍率切换方法和倍率切换装置
WO2022222773A1 (zh) 拍摄方法、相关装置及系统
WO2022152174A9 (zh) 一种投屏的方法和电子设备

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE