WO2021103919A1 - 构图推荐方法和电子设备 - Google Patents

构图推荐方法和电子设备 Download PDF

Info

Publication number
WO2021103919A1
WO2021103919A1 PCT/CN2020/124868 CN2020124868W WO2021103919A1 WO 2021103919 A1 WO2021103919 A1 WO 2021103919A1 CN 2020124868 W CN2020124868 W CN 2020124868W WO 2021103919 A1 WO2021103919 A1 WO 2021103919A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
electronic device
user
recommended
composition
Prior art date
Application number
PCT/CN2020/124868
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 WO2021103919A1 publication Critical patent/WO2021103919A1/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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the embodiments of the present application relate to the field of electronic technology, and in particular, to a composition recommendation method and electronic equipment.
  • image composition is one of the important indicators for measuring excellent images.
  • Good composition can sometimes turn corruption into magic and make up for other shortcomings such as insufficient user experience.
  • the "shooting advice” function can guide the user to compose the picture in the camera's preview interface, and the user can operate according to the composition guide, so as to take a better image.
  • the embodiments of the present application provide a composition recommendation method and electronic device, which can display a recommended image for a target image that a user is interested in.
  • the recommended image is obtained based on a recommended composition scheme. After the user selects the target recommended image, an image with better effect can be obtained , Without requiring users to perform precise, continuous and complex operations, and the user experience is better.
  • the technical solution of the present application provides a composition recommendation method, which can be applied to an electronic device.
  • the method includes: the electronic device detects a user's first operation; in response to the first operation, the electronic device displays the first image. Then, the electronic device detects the second operation of the user; in response to the second operation, the electronic device displays at least one first recommended image.
  • the first recommended image may be an image generated according to the first image and based on a recommended composition scheme.
  • the electronic device detects a third operation of the user, and the third operation is used to select at least one first target recommended image from the at least one first recommended image. Finally, the electronic device saves at least one first target recommendation image.
  • the first image may be a target image that the user is interested in.
  • the second operation may be an operation for the user to instruct the composition recommendation mode.
  • the electronic device can generate and display recommended images based on the first image that the user is interested in and based on the recommended composition scheme. After the user selects the target recommended image, the user can obtain a better image without requiring the user to perform accurate, continuous, and Complicated operation, better user experience.
  • this method does not require real-time determination of whether to move to the best photo position during the movement of the mobile phone, which can effectively reduce the hardware requirements of the terminal device.
  • the method only provides the composition recommendation function when opening the target image that the user is interested in in response to the user operation, thereby avoiding the waste of resources caused by the undifferentiated composition.
  • the first image is an image taken by the electronic device; or, the first image is an image received by the electronic device; or, the first image is an image pre-stored in the electronic device.
  • the first image may be an image taken, received, or pre-stored by the electronic device, so that the electronic device can subsequently make composition recommendations based on the first image.
  • the method before the electronic device detects the user's first operation, the method further includes: the electronic device detects the user's operation to turn on the camera; in response to the user's operation to turn on the camera, the electronic device displays a shooting preview interface. Then, the electronic device detects the user's instruction to take pictures; in response to the user's instruction to take pictures, the electronic device takes the first image. After that, the electronic device displays the thumbnail of the first image; wherein, the first operation is an operation of the user on the thumbnail of the first image.
  • the user can instruct to enter the composition recommendation mode after taking a photo, so that the electronic device can subsequently recommend the composition according to the captured image, and present the recommended image to the user.
  • the method before the electronic device detects the user's first operation, the method further includes: the electronic device detects the user's operation to open the gallery; in response to the user's operation to open the gallery, the electronic device displays at least one The thumbnail of the image, and the thumbnail of at least one image includes the thumbnail of the first image; wherein, the first operation is an operation of the user on the thumbnail of the first image.
  • the user can instruct to enter the composition recommendation mode in the gallery, so that the electronic device can subsequently recommend the composition according to the images in the gallery, and present the recommended image to the user.
  • the electronic device in response to the first operation, displays the first image, which specifically includes: in response to the first operation, displays an image display interface; the image display interface includes the first image and composition controls; Among them, the second operation is an operation for the composition control.
  • the image display interface includes a composition control, so that the subsequent electronic device can enter the composition recommendation mode by detecting the user's operation on the composition control of the image display interface.
  • the electronic device in response to the first operation, displays the first image, which specifically includes: in response to the first operation, the electronic device displays an image display interface; the image display interface includes the first image and editing controls.
  • the method further includes: displaying the image editing interface after the electronic device detects the user's operation on the editing control, and the image editing interface includes the composition control.
  • the second operation is the user's operation on the composition control.
  • the image display interface includes editing controls, and the electronic device displays the image editing interface after detecting the user's operation on the editing control, so that the subsequent electronic device can enter the composition recommendation mode by detecting the user's operation on the composition control of the image editing interface .
  • the electronic device in response to the second operation, displays at least one first recommended image, including: in response to the second operation, the electronic device displays at least one first recommended image below the first image.
  • the electronic device can subsequently click to select the target recommended image below the first image.
  • the method further includes: in response to the second operation, the electronic device displays a composition recommendation interface, and the composition recommendation interface includes at least one first recommendation image .
  • the electronic device may display a separate composition recommendation interface, and the electronic device may subsequently click to select the target recommendation image in the composition recommendation interface.
  • the at least one first recommended image is an image that the electronic device preferentially recommends according to the number of times the user has used the composition scheme in the history; and/or, the at least one first recommended image is the electronic device according to the most recent use by the user
  • the composition scheme prioritizes the recommended image.
  • the electronic device preferentially recommends images according to the number of times the user has used the composition scheme in the history and/or the composition scheme recently used by the user, so that the composition recommendation is more in line with the user's habits.
  • the recommended composition scheme is generated according to the composition algorithm; after the electronic device saves the at least one first target recommended image, the method further includes: the electronic device recommends the image according to the at least one first target selected by the user Corresponding composition plan, revised composition algorithm.
  • the electronic device can modify the composition recommendation algorithm according to the composition scheme corresponding to the target recommendation image selected by the user, so that the composition recommendation algorithm can learn the user's aesthetic habits, so that the electronic device can follow the revised composition recommendation algorithm as The user presents recommended images that conform to the user's habits.
  • the method further includes: the electronic device detects the fourth operation of the user; responding; In the fourth operation, the electronic device displays the second image. Then, the electronic device detects the user's fifth operation; in response to the fifth operation, the electronic device displays at least one second recommended image, the second recommended image being generated according to the second image and based on the composition scheme recommended by the revised composition algorithm image. After that, the electronic device detects a sixth operation of the user, and the sixth operation is used to select at least one second target recommended image from the at least one second recommended image. Finally, the electronic device saves at least one second target recommended image.
  • the electronic device can use the revised composition recommendation algorithm to present the user with a recommendation that conforms to the user's habits according to the second image. image.
  • the present technical solution provides a device for composition recommendation, which is included in an electronic device, and the device has the function of realizing the foregoing aspects and the behavior of the electronic device in the possible implementation manners of the foregoing aspects.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a detection module or unit, a display module or unit, a storage module or unit, and so on.
  • the technical solution provides an electronic device including: one or more processors; a memory; multiple application programs; and one or more computer programs.
  • one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
  • the electronic device is caused to execute the composition recommendation method in any possible implementation of any one of the foregoing aspects.
  • the present technical solution provides a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the composition recommendation method in any of the possible implementations of any of the above aspects .
  • the present technical solution provides a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute any one of the above-mentioned possible design composition recommendation methods.
  • FIG. 1A is a schematic diagram of a display interface of a composition recommendation method provided by the prior art
  • FIG. 1B is a schematic diagram of a display interface of a composition recommendation method provided by the prior art
  • FIG. 1C is a schematic diagram of a display interface of a composition recommendation method provided by the prior art
  • FIG. 1D is a schematic diagram of a display interface of a composition recommendation method provided by the prior art
  • FIG. 2 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of the software structure of an electronic device provided by an embodiment of the application.
  • 4A is a schematic diagram of a display interface provided by an embodiment of this application.
  • 4B is a schematic diagram of a display interface provided by an embodiment of the application.
  • 4C is a schematic diagram of a display interface provided by an embodiment of the application.
  • FIG. 5A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 5B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 7A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 7B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 8A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 8B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 8C is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 9A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 9B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 9C is a schematic diagram of another display interface provided by an embodiment of the application.
  • 10A is a schematic diagram of another display interface provided by an embodiment of the application.
  • 10B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 10C is a schematic diagram of another display interface provided by an embodiment of the application.
  • 10D is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 11A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 11B is a schematic diagram of another display interface provided by an embodiment of the application.
  • 11C is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 12A is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 12B is a schematic diagram of an image provided by an embodiment of this application.
  • FIG. 12C is a schematic diagram of another image provided by an embodiment of this application.
  • FIG. 13A is a schematic diagram of another image provided by an embodiment of this application.
  • FIG. 13B is a schematic diagram of another image provided by an embodiment of this application.
  • FIG. 13C is a schematic diagram of another image provided by an embodiment of this application.
  • FIG. 14 is a schematic diagram of another display interface provided by an embodiment of the application.
  • 15A is a schematic diagram of another display interface provided by an embodiment of the application.
  • 15B is a schematic diagram of another display interface provided by an embodiment of the application.
  • FIG. 16 is a flowchart of a composition recommendation method provided by an embodiment of the present application.
  • FIG. 17 is a flowchart of another composition recommendation method provided by an embodiment of the application.
  • FIG. 19 is a flowchart of another composition recommendation method provided by an embodiment of the application.
  • FIG. 21 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • Composition is one of the important reference standards for measuring image quality.
  • Some electronic devices that can provide users with composition recommendations have appeared on the market; for example, mobile phones with a “shooting suggestion” function.
  • the "shooting suggestions” function is mainly based on the photography rules provided by professionals, based on machine learning to analyze the results of many high-quality photos, and provide composition suggestions for the photos taken.
  • the "shooting suggestion” function is specifically: the user starts the camera, and enters the camera setting interface shown in Figure 1B through the camera setting control 10 shown in Figure 1A in the shooting preview interface.
  • the camera setting interface has Shooting suggestion option 20, the user can open the shooting suggestion option 20, and turn on the "shooting suggestion” function. Referring to FIG.
  • a circle 101 when using the "shooting suggestion" function to take a photo, a circle 101 appears.
  • the circle 101 is used to indicate the position of the lens.
  • the user can adjust the position of the circle 101 by moving the mobile phone.
  • a circle 102 appears in the preview interface.
  • the circle 102 is a composition suggestion provided by the mobile phone to the user for the current shooting scene.
  • the circle 102 is used to prompt the user to move the mobile phone lens to the position of the circle 102 to obtain the "best photo”.
  • 1D the user can move the mobile phone according to the prompt of circle 102 to adjust the position of circle 101 to approximately coincide with the position of circle 102.
  • the mobile phone detects that circle 101 and circle 102 are approximately coincident, the picture is automatically taken.
  • the “shooting suggestion” function needs to be adjusted to the position of circle 101 through user operation during the use process. Approximately coincide with each other. Obviously, this process requires the user to perform precise, continuous and complex operations to complete, making the user participate too much, and the effect of adjusting the position of circle 101 to approximately coincide with the position of circle 102 may vary from person to person , So the final composition effect will also be different, resulting in a poor user experience.
  • the "shooting suggestion” function needs to determine whether to move to the best photo position in real time while the mobile phone is moving, which requires high performance of the mobile phone.
  • the mobile phone will make an undifferentiated composition for all shooting scenes when taking pictures, and the user may only expect to provide composition suggestions for some of the target scenes of interest. Such undifferentiated composition will cause the phone to be undifferentiated. Waste of resources.
  • the embodiment of the application provides a composition recommendation method, which can be applied to electronic devices, and can display recommended images for the target image of interest to the user.
  • the recommended image is obtained based on the recommended composition scheme, and the effect can be obtained after the user selects the target recommended image Compared with the composition guidance solution in the camera preview mode in the prior art, a better image does not require the user to perform precise, continuous and complex operations, thereby improving the user experience.
  • the user only needs to select the target recommended image without performing complicated operations. Therefore, the composition effect is consistent with the composition scheme of the recommended image, and there is no operation difference between different users. The situation where the composition effect is quite different.
  • composition recommendation method provided by the embodiment of the present application, there is no need to determine whether to move to the best photo position in real time during the movement of the mobile phone, thereby effectively reducing the hardware requirements of the terminal device. Moreover, this method only provides the composition recommendation function for the target image that the user is interested in, avoiding the waste of resources caused by the indifferent composition.
  • composition recommendation method provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • netbooks netbooks
  • PDA personal digital assistant
  • FIG. 2 shows a schematic structural diagram of the electronic device 100.
  • the electronic device 100 may include a processor 110, a memory 120, an antenna 1, an antenna 2, a mobile communication module 130, a wireless communication module 140, a sensor module 150, a camera 160, a display screen 170, a button 180, an indicator 190, and so on.
  • the sensor module 150 may include a gyroscope sensor 150A, a fingerprint sensor 150B, a touch sensor 150C, a pressure sensor 150D, and so on.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split 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.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the memory 120 is used to store application program codes for executing the solutions of the present application, and is controlled by the processor 110 to execute.
  • the memory 120 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be an electronic device.
  • Erasable programmable read-only memory electrically erasable programmable read-only memory, EEPROM
  • compact disc read-only memory, CD-ROM
  • optical disc storage including compact discs, laser discs, optical discs, Digital universal disc, Blu-ray disc, etc.
  • magnetic disk storage media or other magnetic storage devices, or any other media that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but not limited to this.
  • the memory can exist independently and is connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 130, the wireless communication module 140, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 130 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 130 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 130 may receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
  • the mobile communication module 130 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 130 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 130 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 140 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 140 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 140 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 140 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 130, and the antenna 2 is coupled with the wireless communication module 140, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the gyro sensor 150A may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 150A can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 150A detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyroscope sensor 150A can also be used for navigation and somatosensory game scenes.
  • the fingerprint sensor 150B is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the touch sensor 150C is also called "touch panel”.
  • the touch sensor 150C may be disposed on the display screen 170, and the touch screen is composed of the touch sensor 150C and the display screen 170, which is also called a “touch screen”.
  • the touch sensor 150C is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation may be provided through the display screen 170.
  • the touch sensor 150C may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 170.
  • the pressure sensor 150D is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 150D may be provided on the display screen 170.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 150D, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 150D.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 150D.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 160, a video codec, a GPU, a display screen 170, and an application processor.
  • the ISP is used to process the data fed back by the camera 160. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and transforms it into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 160.
  • the camera 160 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 160, and N is a positive integer greater than one.
  • the electronic device 100 implements a display function through a GPU, a display screen 170, an application processor, and the like.
  • the GPU is a microprocessor for image processing and is connected to the display screen 170 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 170 is used to display images, videos, and the like.
  • the display screen 170 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 170, and N is a positive integer greater than one.
  • the button 180 includes a power-on button, a volume button, and so on.
  • the button 180 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the indicator 190 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the display screen 170 displays the target image that is of interest to the user to be processed, and the processor 110 provides the user with a composition recommendation based on the image, and controls the display screen 170 to present the recommended image corresponding to the provided composition scheme, and then ,
  • the touch sensor 150C detects the user's selection of the recommended image, thereby completing the composition process.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes a layered Android system as an example to illustrate the software structure of the electronic device 100 by way of example.
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the system library may also include a composition processing library.
  • the camera application or the gallery application After the camera application or the gallery application is started, the camera application or the gallery application can obtain the image in the electronic device. Then, the composition processing library can provide a composition recommendation solution based on the image, and control the presentation of the composition recommendation solution through the display driver of the kernel layer.
  • the phone can display the original image.
  • the original image may be a target image that the user is interested in.
  • the original image may be an image taken by the camera of a mobile phone; or, the original image may be an image received by the mobile phone from other electronic devices in real time/pre-received; or, the original image may be an image stored in the mobile phone; or, the original image may be Mobile phone real-time/pre-downloaded images from the Internet, etc. It is understandable that the original image is not limited to the foregoing types, and the embodiment of the present application does not limit the type of the original image.
  • the mobile phone After the mobile phone can display the original image, the user can perform an operation indicating the composition recommendation mode. After the mobile phone detects the user's operation for instructing the composition recommendation mode, the mobile phone enters the composition recommendation mode. In the composition recommendation mode, the mobile phone can present recommended images to the user according to the original image currently displayed. Different recommended images correspond to different composition schemes, so that the user can select a target recommended image that meets the user's aesthetics from the recommended images.
  • composition recommendation mode there may be multiple ways for the user to indicate the composition recommendation mode.
  • FIG. 4A shows a graphical user interface (GUI) of a mobile phone, and the GUI is the desktop 401 of the mobile phone.
  • GUI graphical user interface
  • the mobile phone detects that the user clicks on the icon 402 of the camera application (application, APP) on the desktop 401, the camera application can be started, and another GUI as shown in FIG. 4B is displayed.
  • the GUI may be called the shooting preview interface 403.
  • the shooting preview interface 403 may include a viewing frame 404. In the preview state, the preview image can be displayed in the viewfinder frame 404 in real time.
  • the shooting preview interface 403 may further include a shooting control 405.
  • the mobile phone In the photographing mode, when the mobile phone detects that the user has clicked on the photographing control 405, the mobile phone performs a photographing operation. After that, the mobile phone can display a thumbnail 406 of the captured image below the shooting preview interface 403. When the mobile phone detects the user's operation of clicking the thumbnail 406, another GUI as shown in FIG. 4C is displayed.
  • the GUI may be referred to as an image display interface 407.
  • the image display interface 407 may include the captured image 1. Image 1 can also be referred to as the original image.
  • the image display interface includes a control for indicating the composition recommendation mode, and when the mobile phone detects that the user clicks on the control, the mobile phone enters the composition recommendation mode.
  • the control may be the control 501 shown in FIG. 5A or the control 502 shown in FIG. 5B.
  • the image display interface includes an edit control 408.
  • the mobile phone After the mobile phone detects that the user clicks on the edit control 408, referring to FIG. 6, the mobile phone displays a function list 601.
  • the function list 601 includes a control 602 for indicating a recommended composition mode, a control for indicating a filter, and a control for indicating adjustment Wait. After the mobile phone detects that the user clicks on the control 602, the mobile phone enters the composition recommendation mode.
  • the image display interface includes a magic wand control 701.
  • the mobile phone After the mobile phone detects that the user clicks the magic wand control 701, referring to FIG. 7B, the mobile phone displays a processing mode interface 702. After the mobile phone detects that the user clicks on the control 703 for indicating the composition recommendation mode on the processing mode interface, the mobile phone enters the composition recommendation mode.
  • the mobile phone enters the composition recommendation mode after detecting the user's preset gesture on the image display interface. For example, referring to FIG. 8A, the mobile phone enters the composition recommendation mode after detecting the user's gesture operation of drawing a circle track on the image display interface. For another example, after the mobile phone detects the user's long-press operation on the image of the image display interface, it enters the composition recommendation mode. For another example, after the mobile phone detects the user's pressure pressing operation on the image of the image display interface (the pressing force is greater than or equal to the preset value), it enters the composition recommendation mode.
  • the mobile phone can automatically enter the composition recommendation mode.
  • the mobile phone displays the image display interface, referring to FIG. 8B, if the mobile phone detects the user's voice instruction to enter the composition recommendation mode or use the composition recommendation function, it enters the composition recommendation mode.
  • FIG. 9A shows a GUI of a mobile phone, and the GUI is a desktop 901 of the mobile phone.
  • the gallery application can be started, and another GUI as shown in FIG. 9B is displayed.
  • the GUI may be called a gallery interface, and the gallery interface may include multiple images. Thumbnails.
  • FIG. 9C another GUI shown in FIG. 9C may be displayed, and the GUI may be referred to as an image display interface 904.
  • the image display interface 904 may be the same as the image display interface 407 shown in FIG. 4.
  • the image display interface 904 may include image 2, which is an image corresponding to the enlarged display of the thumbnail 903, and the image 2 may also be referred to as an original image.
  • the user can indicate the composition recommendation mode in the manner shown in FIGS. 5A to 8B, so that the mobile phone enters the composition recommendation mode, which will not be repeated here. It is understandable that, in addition to the manners shown in FIGS. 5A to 8B, the manner in which the user indicates the composition recommendation mode is not limited to this, and the embodiment of the present application does not limit the manner in which the user indicates the composition recommendation mode.
  • the mobile phone After the mobile phone enters the composition recommendation mode for the first time or every time, it can display on the display screen or give the user a voice prompt to inform the user of the function and effect of the composition recommendation mode. For example, the mobile phone can prompt the user by displaying a text message, "After entering this mode, the recommended image will be presented to you for the current image, and you can click to select the desired target recommended image". For another example, referring to FIG. 8C, the mobile phone can prompt the user through a window 801. In the composition recommendation mode, the user is presented with recommended images based on the original image. The user can select the desired target recommended image according to his habits and provide the user with a composition recommendation. Example 802 to facilitate the user to understand the function of the composition recommendation mode.
  • the mobile phone After entering the composition recommendation mode, the mobile phone can perform composition recommendation processing according to the currently displayed original image, and present the recommended image to the user.
  • the recommended image is an image generated based on the original image and based on the recommended composition scheme.
  • the mobile phone There are many ways for the mobile phone to present the recommended image to the user.
  • the mobile phone may present the recommended image below the original image.
  • the mobile phone presents a variety of recommended images below the original image, namely recommended image one 11, recommended image two 12, and recommended image three 13. It is understandable that due to the limitation of the interface size, the mobile phone shown in FIG. 10A can only present a small number of recommended images at the same time, but the recommended images that the mobile phone can present are not limited to the few recommended images.
  • the mobile phone detects that the user is sliding left and right on the recommended image other recommended images may be presented.
  • the user can swipe to the right on the recommended image.
  • recommended image four:14, recommended image five:15, and recommended image six:16 can be presented. .
  • the mobile phone may display the composition recommendation interface 101 shown in FIG. 10D.
  • the composition recommendation interface 101 may include at least one recommended image. For example, it may include recommended image one 11, recommended image two 12, recommended image three 13, recommended image four 14, recommended image five 15, recommended image six 16, and recommended image seven 17. Recommended image eight:18 and recommended image nine:19.
  • the mobile phone detects that the user is sliding left and right on the recommended image, other recommended images can be presented.
  • the user can select the desired target recommended image by clicking on the corresponding recommended image according to his own aesthetic habits.
  • there may be one or more target recommended images and the embodiment of the present application does not limit the number of target recommended images.
  • the composition recommendation method provided by the embodiments of the present application can display recommended images for the target image that the user is interested in.
  • the recommended image is obtained based on the recommended composition scheme. After the user selects the target recommended image, the user can obtain an image with better effect.
  • this method does not require real-time determination of whether to move to the best photo position during the movement of the mobile phone, thereby effectively reducing the hardware requirements of the terminal device.
  • the composition recommendation function is provided only for the target image that the user is interested in, which avoids the waste of resources caused by the undifferentiated composition.
  • the user can also edit the original image by himself to obtain an image with a desired composition.
  • the user can complete the composition of the original image through the cropping control 111 shown in FIG. 11A.
  • the cropping interface 112 shown in FIG. 11B is presented to the user.
  • the user can slide the cropping frame shown by the dashed line in FIG. 11B to realize the composition.
  • the cropping frame may be a rectangular frame, a square frame, a circular frame, an oval frame, or the like.
  • the mobile phone can complete the composition in response to the user's operation of sliding the crop frame to obtain the image 113.
  • the mobile phone can automatically save the image 113.
  • the mobile phone may automatically save the image 113 after not detecting a user operation within a preset time.
  • the mobile phone may automatically save the image 113 after not detecting a user operation within 3 seconds.
  • the mobile phone can save the image 113 in response to a user's preset operation.
  • the image display interface may also include an OK button. After the mobile phone completes the composition in response to the user's operation, the user can click the OK button to save the image 113.
  • the mobile phone may save the image 113 after responding to the user's operation of long pressing the image 113.
  • the user can edit the original image by himself according to his own habits to obtain the desired image, and the image corresponds to a composition scheme that conforms to the aesthetics of the user, thereby enabling the implementation of this application
  • the composition recommendation method provided by the example is more flexible, and fully considers the user's wishes, and the user experience is better.
  • the mobile phone may also perform composition recommendation processing in combination with other images related to the currently displayed original image to present the recommended image to the user.
  • the other image may be an image of a scene corresponding to the original image captured when the original image was taken.
  • the field of view of the image may be larger than the field of view of the original image.
  • Images with a large field of view can include more objects and a larger environmental range.
  • the mobile phone can combine images with a large field of view to present more recommended images to the user, so that the user has more s Choice. For example, for an object whose original image is only partly captured, or an object that is not captured, the mobile phone can combine images with a large field of view to make a reasonable composition and display the complete object, thereby providing users with recommended images with complete objects. Improve the user experience.
  • the mobile phone when the mobile phone shoots the original image, it can simultaneously record the image with a larger field of view captured by the camera.
  • the mobile phone can display an image 1201 on the shooting preview interface. After the mobile phone takes a picture, the original image 1202 corresponding to the image 1201 can be obtained. At the same time, the mobile phone can also record the image captured by the camera with a larger field of view, and the field of view of the original image 1202 It can be included in the field of view of the image.
  • the mobile phone In the shooting scene, the mobile phone can record the original image and the image at the same time.
  • the original image 1202 may be as shown in FIG. 12B; the image 1203 captured by the camera may be as shown in FIG. 12C.
  • the user may zoom the image, so that the field of view of the image presented on the shooting preview interface may be smaller than the field of view of the camera.
  • the mobile phone can save the zoomed image and the image of a larger field of view collected by the camera. In this way, on the basis of using the original image, the mobile phone can combine the image with a larger field of view captured by the camera to make a reasonable composition, and present a richer recommended image to the user, thereby improving the user experience.
  • FIG. 13A shows an original image 1301 shot with a wide-angle lens
  • FIG. 13B shows an image 1302 shot with an ultra-wide-angle lens
  • FIG. 13C shows a recommended image 1303 generated by a mobile phone based on the original image 1301 and the image 1302.
  • the mobile phone after the mobile phone enters the composition recommendation mode, in the shooting scene, the mobile phone can present the recommended image to the user according to the image in the current viewfinder on the shooting preview interface.
  • the mobile phone after the mobile phone enters the composition recommendation mode, when the mobile phone displays the shooting preview interface 403 as shown in FIG. 4B, referring to FIG. 14, the mobile phone can present the user with a recommended image on the shooting preview interface 403 according to the image of the current shooting preview interface. , Recommended image two 12 and recommended image three 13. Then, the user can click to select the target recommended image to capture the image corresponding to the target recommended image.
  • the mobile phone can automatically capture the image corresponding to the target recommended image.
  • the mobile phone can automatically capture the image corresponding to the target recommended image and the image of the current viewfinder frame.
  • the shooting preview interface provides users with recommended images based on the images in the current viewfinder
  • the user only needs to select among the recommended images, without requiring the user to perform precise, continuous and complex operations, and only requires less user involvement.
  • the mobile phone After the mobile phone detects the user's operation for instructing the composition recommendation mode, the mobile phone enters the composition recommendation mode.
  • the composition recommendation mode the mobile phone can use the composition recommendation algorithm to provide users with recommended images based on the original image currently displayed.
  • the composition recommendation algorithm may be an artificial intelligence (AI) algorithm.
  • AI artificial intelligence
  • the composition recommendation algorithm may include, but is not limited to, any of the following algorithms: neural network algorithm, decision tree, linear algorithm, support vector machine (SVM), Q-list, or deep learning algorithm.
  • the composition recommendation mode the mobile phone can use the composition recommendation algorithm to provide users with recommended images based on the original image currently displayed.
  • an aesthetic evaluation module may be included in the composition algorithm, and the aesthetic evaluation module may be used for aesthetic evaluation of the recommended image.
  • the aesthetic evaluation module may be neural image assessment (NIMA), and NIMA may perform aesthetic scores on recommended images.
  • NIMA neural image assessment
  • the embodiment of the present application does not limit the type of the aesthetic evaluation module.
  • the recommended image provided by the composition recommendation algorithm to the user may be an image with a higher aesthetic evaluation.
  • the recommended image provided by the composition recommendation algorithm to the user may be a recommended image with an aesthetic score higher than a certain threshold.
  • the recommended image provided by the composition recommendation algorithm to the user may be the image with the highest aesthetic score among all the images to be recommended.
  • the mobile phone after the mobile phone presents the recommended image to the user according to the currently displayed original image, the user can select a target recommended image that meets the user's aesthetics from the recommended images. After the user selects the target recommended image, the mobile phone can save the target recommended image.
  • the mobile phone can automatically save the target recommended image.
  • the mobile phone can automatically save the target recommendation image after the user operation is not detected within the preset time. For example, after the user selects the target recommendation image, if the mobile phone can not detect the user operation within 3 seconds, the target recommendation image will be automatically saved image.
  • the mobile phone may save the target recommendation image in response to a user's preset operation.
  • the image display interface may also include an OK button. After the mobile phone completes the composition in response to a user operation, the user can click the OK button to save the target recommended image.
  • the mobile phone may save the target recommended image in response to the user's operation of long pressing the target recommended image.
  • the mobile phone can record the target composition scheme corresponding to the target recommended image selected by the user, and modify the composition recommendation algorithm according to the target composition scheme selected by the user, so that the composition recommendation algorithm can Learn the user's aesthetic habits, so that the mobile phone can subsequently present the user with recommended images that conform to the user's habits according to the revised composition recommendation algorithm.
  • the mobile phone in the composition recommendation mode, presents the recommended image 11, the recommended image 2 12, and the recommended image 3 13 to the user according to the original image 1501. After the user clicks to select the recommended image 2 12 from the recommended images, the mobile phone can Record the user's choice, and then modify the composition recommendation algorithm according to the user's choice.
  • the mobile phone can present a recommended image that conforms to the user's aesthetic habits to the user according to the revised composition recommendation algorithm.
  • the mobile phone may arrange the recommended image 212 that conforms to the user's aesthetic habits in front of the recommended image, so that the user can easily select the recommended image that conforms to his habit. Therefore, the mobile phone can adaptively learn the user's aesthetic habits according to the user's choice, thereby enhancing the user experience.
  • the types of images can include multiple types, for example, single-person photos, double-person photos, multi-person photos, landscape photos, still-life photos, and so on.
  • Each type of image can have multiple composition schemes.
  • the composition scheme can be a full-length photo, a half-length photo, a character in the center, a character in the left, or a character in the right, etc.
  • the composition scheme may be a full-length photo of a person on the left, a full-length photo of a person on the right, a full-length photo of two persons on both sides, a half-length photo of a person on the left, or a half-length photo of a person on the right.
  • the mobile phone may preferentially recommend the image corresponding to the composition scheme according to the number of times the user has used the composition scheme in the history. For example, when the image type is a two-person photo, if the mobile phone detects that the user has used the composition plan of the two-side full-body shot the most times in the history, the mobile phone can preferentially recommend the image corresponding to the composition scheme of the two-side full-body shot on both sides.
  • the mobile phone can preferentially recommend the image corresponding to the composition scheme according to the composition scheme recently used by the user. For example, when the image type is a single-person photo, if the mobile phone detects that the user has recently used a composition plan with a centered person, the mobile phone can preferentially recommend an image corresponding to the composition plan with a centered person.
  • the mobile phone may preferentially recommend the image corresponding to the composition scheme according to the number of composition schemes used by the user in the history and the composition scheme recently used by the user. For example, when the image type is a two-person photo, if the phone detects that the user has used the two-sided full-length photo composition the most times in the history, and the most recently used composition scheme is the two-sided full-length photo, the phone can give priority to recommending the two-sided full-length photo. The image corresponding to the composition scheme of the full-length photo.
  • the mobile phone can also modify the composition recommendation algorithm according to the composition scheme corresponding to the target image obtained by editing the original image by the user, so that the mobile phone subsequently recommends the composition recommendation algorithm according to the revised composition recommendation algorithm to match the user.
  • Habitual composition plan so that the recommended composition plan can better meet the aesthetic needs of users.
  • FIG. 16 shows a flowchart of a composition recommendation method provided by an embodiment of the present application.
  • the electronic device can obtain an image through the camera function. Then, the electronic device can perform image editing on the acquired image. Among them, image editing can include composition recommendation.
  • image editing can include composition recommendation.
  • the electronic device if the electronic device detects the user's operation instructing the composition recommendation mode, the electronic device can use the composition recommendation algorithm to process the image and present the user with a recommended image.
  • the recommended image is an image generated based on the recommended composition scheme .
  • the user can select the desired target recommended image, that is, the target composition scheme corresponding to the target recommended image is selected.
  • the electronic device can record the user's selection, and modify the composition recommendation algorithm according to the user's selection, so that the mobile phone can follow
  • the revised composition recommendation algorithm presents users with recommended images that conform to user habits.
  • composition recommendation method which can be implemented in electronic devices (such as mobile phones, tablet computers, etc.) as shown in FIG. 2 and FIG. 3. As shown in Figure 17, the method may include the following steps:
  • the electronic device detects a user's first operation.
  • the first operation is used to instruct the electronic device to display the first image.
  • the electronic device In response to the first operation, the electronic device displays a first image.
  • the electronic device can display the first image after detecting the first operation.
  • the first image may be a target image that the user is interested in.
  • the first image may be an image taken by the electronic device; or, the first image may be an image received by the electronic device; or, the first image may be an image pre-stored in the electronic device.
  • the first image may be an image taken, received, or pre-stored by the electronic device, and the electronic device may subsequently make a composition recommendation based on the first image.
  • the first image may be image 1 in the image display interface 407 shown in FIG. 4C.
  • the first image may be image 2 in the image display interface 904 shown in FIG. 9C.
  • step 1702 may specifically include: in response to the first operation, the electronic device displays an image display interface.
  • the image display interface includes a first image and a composition control; wherein, the second operation is an operation for the composition control.
  • the image display interface may be the interface shown in FIG. 5A, and the composition control may be the control 501 shown in FIG. 5A.
  • the image display interface may be as shown in FIG. 5B, and the composition control may be the control 502 shown in FIG. 5B.
  • step 1702 may specifically include: in response to the first operation, the electronic device displays an image display interface; the image display interface includes the first image and editing controls.
  • the image display interface may be the interface shown in FIG. 4C
  • the edit control may be the edit control 408 shown in FIG. 4C.
  • the electronic device detects the second operation of the user.
  • the second operation may be an operation of the user clicking the control 501 shown in FIG. 5A or the control 502 shown in FIG. 5B.
  • the method may further include: displaying an image editing interface after the electronic device detects the user's operation on the editing control, and the image editing interface includes a composition control. Among them, the second operation is the user's operation on the composition control.
  • the electronic device may display the image editing interface shown in FIG. 6, and the image editing interface includes the composition control 602.
  • the second operation may be an operation of the user clicking the control 602 shown in FIG. 6.
  • the electronic device displays at least one first recommended image.
  • the first recommended image is an image generated according to the first image and based on the recommended composition scheme.
  • step 1704 may specifically include: in response to the second operation, the electronic device displays at least one first recommended image below the first image.
  • the at least one first recommended image may be recommended image one 11, recommended image two 12, and recommended image three 13 shown in FIG. 10A.
  • step 1704 may specifically include: in response to the second operation, the electronic device displays a composition recommendation interface, and the composition recommendation interface includes at least one first recommended image.
  • the composition recommendation interface may be the composition recommendation interface 101 shown in FIG. 10D, and the at least one first recommended image may be the recommended image one 11, the recommended image two 12, the recommended image three 13, and the recommended image four shown in FIG. 10D. 14. Recommended image five: 15, recommended image six: 16, recommended image seven: 17, recommended image eight: 18, and recommended image nine: 19.
  • the at least one first recommended image may be an image that the electronic device preferentially recommends according to the number of times the user has used the composition scheme in the history; and/or, the at least one first recommended image may be an image that the electronic device preferentially recommends according to the composition scheme recently used by the user .
  • the electronic device detects the third operation of the user.
  • the third operation is for selecting at least one first target recommended image from at least one first recommended image.
  • the third operation may be an operation of the user clicking the recommended image 12 shown in FIG. 15A.
  • the electronic device saves at least one first target recommended image.
  • the electronic device may generate and display recommended images based on the recommended composition scheme according to the first image that the user is interested in. After the user selects the target recommended image, an image with better effect can be obtained, and Compared with the composition guidance solution in the camera preview mode in the prior art, the user does not need to perform precise, continuous and complicated operations, and the user experience is better.
  • this method does not require real-time determination of whether to move to the best photo position during the movement of the mobile phone, which can effectively reduce the hardware requirements of the terminal device.
  • the method only provides the composition recommendation function when opening the target image that the user is interested in in response to the user operation, thereby avoiding the waste of resources caused by the undifferentiated composition.
  • the method may further include:
  • the electronic device detects the user's operation to turn on the camera.
  • the operation of the user to open the camera may be an operation of the user clicking the icon 402 of the camera application shown in FIG. 4A.
  • the electronic device displays a shooting preview interface.
  • the electronic device displays the shooting preview interface 403 shown in FIG. 4B.
  • the electronic device detects an operation instructed by the user to take a photo.
  • the operation of the user instructing to take a photo may be an operation of the user clicking the shooting control 405 shown in FIG. 4B.
  • the electronic device takes a first image.
  • the electronic device displays the thumbnail of the first image.
  • the electronic device may display the thumbnail 406 of the first image shown in FIG. 4B.
  • the first operation is an operation of the user clicking the thumbnail of the first image.
  • the first operation may be an operation of the user clicking the thumbnail 406 of the captured image in the shooting preview interface 403 shown in FIG. 4B.
  • the user can instruct to enter the composition recommendation mode after taking a photo, so that the electronic device can subsequently make a composition recommendation based on the captured image, and present the recommended image to the user.
  • the method may further include:
  • the electronic device detects the user's operation to open the gallery.
  • the user's operation of opening the gallery may be an operation of the user clicking on the icon 902 of the gallery application shown in FIG. 9A.
  • the electronic device In response to the user's operation of opening the gallery, the electronic device displays a thumbnail of at least one image.
  • the thumbnail of at least one image may be the thumbnails of multiple images included in the gallery interface shown in FIG. 9B.
  • the thumbnail of at least one image includes the thumbnail of the first image.
  • the first image may be the image 2 shown in FIG. 9C
  • the thumbnails of the multiple images shown in FIG. 9B include the thumbnail 903 of the image 2.
  • the first operation is an operation of the user clicking the thumbnail of the first image.
  • the first operation may be an operation of the user clicking the thumbnail 903 in the gallery interface shown in FIG. 9B.
  • the user can instruct to enter the composition recommendation mode in the gallery, so that the electronic device can subsequently recommend the composition according to the images in the gallery, and present the recommended image to the user.
  • the recommended composition scheme is generated according to a composition algorithm. Referring to FIG. 20, after the above step 1706, the method may further include:
  • the electronic device revises the composition algorithm according to the composition scheme corresponding to the at least one first target recommended image selected by the user.
  • the electronic device can modify the composition recommendation algorithm according to the composition scheme corresponding to the target recommendation image selected by the user, so that the composition recommendation algorithm can learn the user's aesthetic habits, so that the electronic device can follow the revised composition recommendation algorithm as The user presents recommended images that conform to the user's habits.
  • the method may further include:
  • the electronic device detects the user's fourth operation.
  • the electronic device displays the second image.
  • the second image may be an image taken by the electronic device; or, the second image may be an image received by the electronic device; or, the second image may be an image pre-stored in the electronic device.
  • the second image may be the same as the first image.
  • the second image may be different from the first image.
  • the electronic device detects the user's fifth operation.
  • the fifth operation may be an operation of the user clicking the control 501 shown in FIG. 5A or the control 502 shown in FIG. 5B.
  • the fifth operation may be an operation of the user clicking the edit control 408 shown in FIG. 4C and clicking the control 602 shown in FIG. 6.
  • the electronic device displays at least one second recommended image.
  • the second recommended image is an image generated according to the second image and based on the composition scheme recommended by the revised composition algorithm.
  • the at least one second recommended image may be recommended image one 11, recommended image two 12, and recommended image three 13 shown in FIG. 15B.
  • the electronic device detects the sixth operation of the user.
  • the sixth operation is used to select at least one second target recommended image from the at least one second recommended image.
  • the electronic device saves at least one second target recommended image.
  • the electronic device can use the corrected composition recommendation algorithm to present the user with the correct composition based on the second image. Recommended images that users are accustomed to.
  • the electronic device includes hardware and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software-driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
  • the electronic device can be divided into functional modules according to the foregoing method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 21 shows a schematic diagram of a possible composition of the electronic device 2100 involved in the foregoing embodiment.
  • the electronic device 2100 may include: a detection unit 2101, a photographing unit 2102, a display unit 2103, a saving unit 2104, and a correction unit 2105.
  • the detection unit 2101 can be used to support the electronic device 2100 to perform the above step 1701, step 1703, step 1705, step 1801, step 1803, step 1901, step 2002, step 2004, step 2006, etc., and/or be used as described herein Other processes of the technology.
  • the photographing unit 2102 may be used to support the electronic device 2100 to perform the above-mentioned step 1804, etc., and/or other processes used in the technology described herein.
  • the display unit 2103 may be used to support the electronic device 2100 to perform the above step 1702, step 1704, step 1802, step 1805, step 1902, step 2003, step 2005, etc., and/or other processes used in the technology described herein.
  • the saving unit 2104 may be used to support the electronic device 2100 to perform the above-mentioned step 1706, step 2007, etc., and/or other processes used in the technology described herein.
  • the correction unit 2105 may be used to support the electronic device 2100 to perform the above steps 2001 and the like, and/or other processes used in the technology described herein.
  • the electronic device 2100 provided in this embodiment is used to execute the above composition recommendation method, and therefore can achieve the same effect as the above implementation method.
  • the electronic device 2100 may include a processing module, a storage module, and a communication module.
  • the processing module can be used to control and manage the actions of the electronic device 2100. For example, it can be used to support the electronic device 2100 to execute the steps performed by the detection unit 2101, the photographing unit 2102, the display unit 2103, the storage unit 2104, and the correction unit 2105.
  • the storage module can be used to support the electronic device 2100 to store program codes and data.
  • the communication module may be used to support communication between the electronic device 2100 and other devices, for example, communication with a wireless access device.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and other devices that interact with other electronic devices.
  • the embodiments of the present application also provide a computer-readable storage medium that stores computer instructions in the computer-readable storage medium.
  • the computer instructions run on an electronic device, the electronic device executes the above-mentioned related method steps to implement the above-mentioned embodiments. Recommended method of composition in.
  • the embodiments of the present application also provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the composition recommendation method executed by the electronic device in the above-mentioned embodiment.
  • the embodiments of the present application also provide a device.
  • the device may specifically be a chip, component or module.
  • the device may include a processor and a memory connected to each other.
  • the memory is used to store computer execution instructions.
  • the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the composition recommendation method executed by the electronic device in the foregoing method embodiments.
  • the electronic device, computer readable storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the above provided The beneficial effects of the corresponding method will not be repeated here.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another device, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种构图推荐方法和电子设备,涉及电子技术领域,能够针对用户感兴趣的目标图像,显示基于推荐的构图方案得到的推荐图像,用户选择目标推荐图像后即可获得效果较好的图像,无需用户的较多参与,用户体验较好。具体方案为:电子设备检测到用户的第一操作;响应于第一操作,显示第一图像。然后,电子设备检测到用户的第二操作;响应于第二操作,显示至少一个第一推荐图像,第一推荐图像为根据第一图像并基于推荐的构图方案生成的图像。之后,电子设备检测到用户的第三操作,第三操作用于从至少一个第一推荐图像中选择至少一个第一目标推荐图像。最后,电子设备保存至少一个第一目标推荐图像。本申请实施例用于构图推荐的过程。

Description

构图推荐方法和电子设备
本申请要求于2019年11月28日提交国家知识产权局、申请号为201911194301.1、申请名称为“构图推荐方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子技术领域,尤其涉及一种构图推荐方法和电子设备。
背景技术
随着技术的发展,手机等电子设备的拍照功能已经取得了很大的进步。其中,图像构图是衡量优秀图像的重要指标之一,好的构图有时能够化腐朽为神奇,弥补用户经验不足等其他缺点。目前市场上已经有“拍摄建议”功能的终端设备,该“拍摄建议”功能可以在相机的预览界面中引导用户进行构图,用户按照构图指导进行操作,从而拍摄出效果较好的图像。
然而,为了拍摄出效果较好的图像,上述“拍摄建议”功能在使用过程中,需要用户按照构图指导进行精准、持续且复杂的操作,使得用户参与太多,从而用户体验较差。
发明内容
本申请实施例提供一种构图推荐方法和电子设备,能够针对用户感兴趣的目标图像显示推荐图像,该推荐图像基于推荐的构图方案得到,用户选择目标推荐图像后即可获取效果较好的图像,而不需要用户进行精准、持续且复杂的操作,用户体验较好。
为达到上述目的,本申请实施例采用如下技术方案:
一方面,本申请技术方案提供了一种构图推荐方法,可以应用于电子设备,该方法包括:电子设备检测到用户的第一操作;响应于第一操作,电子设备显示第一图像。然后,电子设备检测到用户的第二操作;响应于第二操作,电子设备显示至少一个第一推荐图像。第一推荐图像可以为根据第一图像并基于推荐的构图方案生成的图像。之后,电子设备检测到用户的第三操作,第三操作用于从至少一个第一推荐图像中选择至少一个第一目标推荐图像。最后,电子设备保存至少一个第一目标推荐图像。
其中,第一图像可以为用户感兴趣的目标图像。
其中,第二操作可以为用户指示构图推荐模式的操作。
在该方案中,电子设备可以根据用户感兴趣的第一图像并基于推荐的构图方案生成并显示推荐图像,用户选择目标推荐图像后即可获取效果较好的图像,无需用户进行精准、持续且复杂的操作,用户体验较好。另外,该方法无需在手机移动的过程中进行实时判断是否移动至最佳照片位置,从而能够有效降低终端设备硬件要求。并且,该方法在响应于用户操作打开用户感兴趣的目标图像时才提供构图推荐功能,避免了无差别构图造成的资源浪费。
在一种可能的实现方式中,第一图像为电子设备拍摄的图像;或者,第一图像为 电子设备接收的图像;或者,第一图像为电子设备中预先存储的图像。
也就是说,第一图像可以为电子设备拍摄、接收或预先存储的图像,从而使得电子设备后续可以基于该第一图像进行构图推荐。
在另一种可能的实现方式中,在电子设备检测到用户的第一操作之前,该方法还包括:电子设备检测到用户打开相机的操作;响应于用户打开相机的操作,电子设备显示拍摄预览界面。然后,电子设备检测到用户指示拍照的操作;响应于用户指示拍照的操作,电子设备拍摄第一图像。之后,电子设备显示第一图像的缩略图;其中,第一操作为用户针对第一图像的缩略图的操作。
也就是说,用户可以在拍照后指示进入构图推荐模式,使得电子设备后续可以根据拍摄得到的图像进行构图推荐,为用户呈现推荐图像。
在另一种可能的实现方式中,在电子设备检测到用户的第一操作之前,该方法还包括:电子设备检测到用户打开图库的操作;响应于用户打开图库的操作,电子设备显示至少一个图像的缩略图,至少一个图像的缩略图包括第一图像的缩略图;其中,第一操作为用户针对第一图像的缩略图的操作。
也就是说,用户可以在图库中指示进入构图推荐模式,使得电子设备后续可以根据图库中的图像进行构图推荐,为用户呈现推荐图像。
在另一种可能的实现方式中,响应于第一操作,电子设备显示第一图像,具体包括:响应于第一操作,电子设备显示图像展示界面;图像展示界面包括第一图像和构图控件;其中,第二操作为针对构图控件的操作。
也就是说,图像展示界面包括构图控件,从而后续电子设备可以通过检测到用户针对图像展示界面的构图控件的操作,进入构图推荐模式。
在另一种可能的实现方式中,响应于第一操作,电子设备显示第一图像,具体包括:响应于第一操作,电子设备显示图像展示界面;图像展示界面包括第一图像和编辑控件。在电子设备检测到用户的第二操作之前,该方法还包括:电子设备检测到用户针对编辑控件的操作后显示图像编辑界面,图像编辑界面包括构图控件。其中,第二操作为用户针对构图控件的操作。
也就是说,图像展示界面包括编辑控件,电子设备检测到用户针对编辑控件的操作后显示图像编辑界面,从而后续电子设备可以通过检测到用户针对图像编辑界面的构图控件的操作,进入构图推荐模式。
在另一种可能的实现方式中,响应于第二操作,电子设备显示至少一个第一推荐图像,包括:响应于第二操作,电子设备在第一图像的下方显示至少一个第一推荐图像。
这样,电子设备后续可以在第一图像的下方点击选择目标推荐图像。
在另一种可能的实现方式中,在电子设备检测到用户的第二操作之后,该方法还包括:响应于第二操作,电子设备显示构图推荐界面,构图推荐界面包括至少一个第一推荐图像。
也就是说,电子设备可以显示单独的构图推荐界面,电子设备后续可以在构图推荐界面中点击选择目标推荐图像。
在另一种可能的实现方式中,至少一个第一推荐图像为电子设备按照用户历史使 用构图方案的次数优先推荐的图像;和/或,至少一个第一推荐图像为电子设备按照用户最近使用的构图方案优先推荐的图像。
也就是说,电子设备按照用户历史使用构图方案的次数和/或用户最近使用的构图方案来优先推荐图像,使得构图推荐更加符合用户习惯。
在另一种可能的实现方式中,推荐的构图方案根据构图算法生成;在电子设备保存至少一个第一目标推荐图像之后,该方法还包括:电子设备根据用户选择的至少一个第一目标推荐图像对应的构图方案,修正构图算法。
也就是说,电子设备可以根据用户选择的目标推荐图像对应的构图方案,对构图推荐算法进行修正,使得构图推荐算法能够学习用户的审美习惯,以便电子设备后续能够根据修正后的构图推荐算法为用户呈现符合用户习惯的推荐图像。
在另一种可能的实现方式中,在电子设备根据用户选择的至少一个第一目标推荐图像对应的构图方案,修正构图算法之后,该方法还包括:电子设备检测到用户的第四操作;响应于第四操作,电子设备显示第二图像。然后,电子设备检测到用户的第五操作;响应于第五操作,电子设备显示至少一个第二推荐图像,第二推荐图像为根据第二图像并基于修正后的构图算法推荐的构图方案生成的图像。之后,电子设备检测到用户的第六操作,第六操作用于从至少一个第二推荐图像中选择至少一个第二目标推荐图像。最后,电子设备保存至少一个第二目标推荐图像。
也就是说,在电子设备根据用户选择的目标推荐图像对应的构图方案,对构图推荐算法进行修正之后,电子设备可以根据第二图像,利用修正后的构图推荐算法为用户呈现符合用户习惯的推荐图像。
另一方面,本技术方案提供了一种构图推荐的装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,检测模块或单元、显示模块或单元、保存模块或单元等。
另一方面,本技术方案提供了一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述任一方面任一项可能的实现中的构图推荐方法。
另一方面,本技术方案提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现中的构图推荐方法。
另一方面,本技术方案提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的设计中的构图推荐方法。
附图说明
图1A为现有技术提供的一种构图推荐方法的显示界面示意图;
图1B为现有技术提供的一种构图推荐方法的显示界面示意图;
图1C为现有技术提供的一种构图推荐方法的显示界面示意图;
图1D为现有技术提供的一种构图推荐方法的显示界面示意图;
图2为本申请实施例提供的一种电子设备的硬件结构示意图;
图3为本申请实施例提供的一种电子设备的软件结构示意图;
图4A为本申请实施例提供的一种显示界面示意图;
图4B为本申请实施例提供的一种显示界面示意图;
图4C为本申请实施例提供的一种显示界面示意图;
图5A为本申请实施例提供的另一种显示界面示意图;
图5B为本申请实施例提供的另一种显示界面示意图;
图6为本申请实施例提供的另一种显示界面示意图;
图7A为本申请实施例提供的另一种显示界面示意图;
图7B为本申请实施例提供的另一种显示界面示意图;
图8A为本申请实施例提供的另一种显示界面示意图;
图8B为本申请实施例提供的另一种显示界面示意图;
图8C为本申请实施例提供的另一种显示界面示意图;
图9A为本申请实施例提供的另一种显示界面示意图;
图9B为本申请实施例提供的另一种显示界面示意图;
图9C为本申请实施例提供的另一种显示界面示意图;
图10A为本申请实施例提供的另一种显示界面示意图;
图10B为本申请实施例提供的另一种显示界面示意图;
图10C为本申请实施例提供的另一种显示界面示意图;
图10D为本申请实施例提供的另一种显示界面示意图;
图11A为本申请实施例提供的另一种显示界面示意图;
图11B为本申请实施例提供的另一种显示界面示意图;
图11C为本申请实施例提供的另一种显示界面示意图;
图12A为本申请实施例提供的另一种显示界面示意图;
图12B为本申请实施例提供的一种图像示意图;
图12C为本申请实施例提供的另一种图像示意图;
图13A为本申请实施例提供的另一种图像示意图;
图13B为本申请实施例提供的另一种图像示意图;
图13C为本申请实施例提供的另一种图像示意图;
图14为本申请实施例提供的另一种显示界面示意图;
图15A为本申请实施例提供的另一种显示界面示意图;
图15B为本申请实施例提供的另一种显示界面示意图;
图16本申请实施例提供的一种构图推荐方法的流程图;
图17为本申请实施例提供的另一种构图推荐方法的流程图;
图18为本申请实施例提供的另一种构图推荐方法的流程图;
图19为本申请实施例提供的另一种构图推荐方法的流程图;
图20为本申请实施例提供的另一种构图推荐方法的流程图;
图21为本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
构图是衡量图像质量的重要参考标准之一,目前市场上已经出现了一些能够为用户提供构图推荐的电子设备;例如,具有“拍摄建议”功能的手机。该“拍摄建议”功能主要依据专业人士提供的摄影规则,基于机器学习分析很多张高质量照片的成果,为拍摄的照片提供构图建议。参见图1A至图1D,该“拍摄建议”功能具体为:用户启动相机,在拍摄预览界面,通过图1A所示的相机设置控件10进入图1B所示的相机设置界面,相机设置界面中具有拍摄建议选项20,用户可以打开拍摄建议选项20,开启“拍摄建议”功能。参见图1C,在使用“拍摄建议”功能进行拍照时,出现圆圈101,圆圈101用于指示镜头位置,用户可以通过移动手机调整圆圈101的位置。同时,预览界面中还出现圆圈102,圆圈102是手机针对当前拍摄场景为用户提供的构图建议,圆圈102用于提示用户将手机镜头移动至圆圈102所在的位置以获得“最佳照片”。参见图1D,用户可以根据圆圈102的提示移动手机,将圆圈101的位置调整至与圆圈102的位置近似重合,当手机检测到圆圈101与圆圈102近似重合时,自动拍下照片。
可以看出,上述具有“拍摄建议”功能的手机虽然可以在相机预览中引导用户进行构图,但是该“拍摄建议”功能在使用过程中,需要通过用户操作将圆圈101的位置调整至与圆圈102的位置近似重合,显然,该过程需要用户进行精准、持续且复杂的操作才能完成,使得用户参与太多,而且将圆圈101的位置调整至与圆圈102的位置近似重合的效果可能因人而异,因此最终构图效果也会存在差异,从而用户体验较差。同时,“拍摄建议”功能需要在手机移动的过程中进行实时判断是否移动至最佳照片位置,对手机的性能要求较高。而且,用户开启“拍摄建议”功能后,手机在拍照时会对所有拍摄场景进行无差别构图,而用户可能只期望对部分感兴趣的目标场景提供构图建议,这样的无差别构图会造成手机的资源浪费。
本申请实施例提供了一种构图推荐方法,可以应用于电子设备,能够针对用户感兴趣的目标图像显示推荐图像,该推荐图像基于推荐的构图方案得到,用户选择目标推荐图像后即可获取效果较好的图像,与现有技术中在相机预览模式下的构图引导方案相比,无需用户进行精准、持续且复杂的操作,从而提高了用户体验。
此外,在本申请实施例提供的构图推荐方法中,用户选择目标推荐图像即可,而不需要进行复杂的操作,因而构图效果与推荐图像的构图方案一致,不存在不同用户的操作差异而导致构图效果差异较大的情况。
另外,在本申请实施例提供的构图推荐方法中,无需在手机移动的过程中实时判断是否移动至最佳照片位置,从而能够有效降低终端设备硬件要求。并且,该方法针对用户感兴趣的目标图像才提供构图推荐功能,避免了无差别构图造成的资源浪费。
本申请实施例提供的构图推荐方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、 笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图2示出了电子设备100的结构示意图。电子设备100可以包括处理器110,存储器120,天线1,天线2,移动通信模块130,无线通信模块140,传感器模块150,摄像头160,显示屏170,按键180以及指示器190等。其中传感器模块150可以包括陀螺仪传感器150A,指纹传感器150B,触摸传感器150C以及压力传感器150D等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
存储器120用于存储执行本申请方案的应用程序代码,并由处理器110来控制执行。存储器120可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块130,无线通信模块140,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块130可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块130可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块130可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块130还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块130的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块130的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块140可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块140可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块140经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块140还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块130耦合,天线2和无线通信模块140耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
陀螺仪传感器150A可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器150A确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器150A可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器150A检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器150A还可以用于导航,体感游戏场景。
指纹传感器150B用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
触摸传感器150C,也称“触控面板”。触摸传感器150C可以设置于显示屏170,由触摸传感器150C与显示屏170组成触摸屏,也称“触控屏”。触摸传感器150C用 于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏170提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器150C也可以设置于电子设备100的表面,与显示屏170所处的位置不同。
压力传感器150D用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器150D可以设置于显示屏170。压力传感器150D的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器150D,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏170,电子设备100根据压力传感器150D检测所述触摸操作强度。电子设备100也可以根据压力传感器150D的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
电子设备100可以通过ISP,摄像头160,视频编解码器,GPU,显示屏170以及应用处理器等实现拍摄功能。
ISP用于处理摄像头160反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头160中。
摄像头160用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头160,N为大于1的正整数。
电子设备100通过GPU,显示屏170,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏170和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏170用于显示图像,视频等。显示屏170包括显示面板。显示面板可以采用液晶显示屏(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个显示屏170, N为大于1的正整数。
按键180包括开机键,音量键等。按键180可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
指示器190可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
在本申请实施例中,显示屏170显示待处理的用户感兴趣的目标图像,处理器110根据该图像为用户提供构图推荐,并控制显示屏170呈现所提供的构图方案对应的推荐图像,然后,触摸传感器150C检测用户对推荐图像的选择,从而完成构图过程。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图3是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
在本申请实施例中,参见图3,系统库中还可以包括构图处理库。在启动相机应用或图库应用后,相机应用或图库应用可以获取到电子设备中的图像。然后,构图处理库可以根据该图像提供构图推荐方案,并通过内核层的显示驱动来控制构图推荐方案的呈现。
为了便于理解,本申请以下实施例将以具有图2和图3所示结构的手机为例,结合附图对本申请实施例提供的构图推荐方法进行具体阐述。
首先,手机可以显示原始图像。原始图像可以为用户感兴趣的目标图像。例如,原始图像可以为手机的摄像头拍摄的图像;或者,原始图像可以为手机从其他电子设备实时接收/预先接收的图像;或者,原始图像可以为手机中存储的图像;或者,原始图像可以为手机实时/预先从网络下载的图像等。可以理解的是,原始图像不限于上述类型,本申请实施例对原始图像的类型不作限定。
在手机可以显示原始图像后,用户可以执行指示构图推荐模式的操作。在手机检测到用户用于指示构图推荐模式的操作后,手机进入构图推荐模式。在构图推荐模式下,手机可以根据当前显示的原始图像为用户呈现推荐图像,不同的推荐图像与不同的构图方案相对应,使得用户可以从推荐图像中选择符合用户审美的目标推荐图像。
其中,用户指示构图推荐模式的方式可以有多种。
在一实施例中,用户可以在拍照后指示进入构图推荐模式。例如,图4A示出了手机的一种图形用户界面(graphical user interface,GUI),该GUI为手机的桌面401。当手机检测到用户点击桌面401上的相机应用(application,APP)的图标402的操作后,可以启动相机应用,显示如图4B所示的另一GUI,该GUI可以称为拍摄预览界 面403。该拍摄预览界面403上可以包括取景框404。在预览状态下,该取景框404内可以实时显示预览图像。示例性的,参见图4B,拍摄预览界面403上还可以包括拍摄控件405。在拍照模式下,当手机检测到用户点击该拍摄控件405的操作后,手机执行拍照操作。之后,手机可以在拍摄预览界面403的下方显示所拍摄的图像的缩略图406。当手机检测到用户点击该缩略图406的操作后,显示如图4C所示的另一GUI,该GUI可以称为图像展示界面407。该图像展示界面407可以包括所拍摄的图像1。图像1也可以称为原始图像。
在一些实现方式中,图像展示界面上包括用于指示构图推荐模式的控件,当手机检测到用户点击该控件的操作时,手机进入构图推荐模式。示例性的,该控件可以为图5A所示的控件501,或者图5B所示的控件502。
在另一些实现方式中,参见图4C,图像展示界面上包括编辑控件408。在手机检测到用户点击编辑控件408后,参见图6,手机显示功能列表601,该功能列表601包括用于指示构图推荐模式的控件602、用于指示滤镜的控件以及用于指示调整的控件等。在手机检测到用户点击控件602后,手机进入构图推荐模式。
在另一些实现方式中,参见图7A,图像展示界面上包括魔法棒控件701,在手机检测到用户点击魔法棒控件701后,参见图7B,手机显示处理模式界面702。在手机检测到用户点击处理模式界面上用于指示构图推荐模式的控件703后,手机进入构图推荐模式。
在另一些实现方式中,手机在图像展示界面上检测到用户的预设手势后,进入构图推荐模式。例如,参见图8A,手机检测到用户在图像展示界面上划了一个圆圈轨迹的手势操作后,进入构图推荐模式。再例如,手机检测到用户在图像展示界面的图像上的长按操作后,进入构图推荐模式。再例如,手机检测到用户在图像展示界面的图像上的压力按操作(按压的力度大于或者等于预设值)后,进入构图推荐模式。
在另一些实现方式中,在手机拍照后,手机可以自动进入构图推荐模式。
在另一些实现方式中,在手机显示图像展示界面后,参见图8B,若手机检测到用户语音指示进入构图推荐模式或使用构图推荐功能的操作,则进入构图推荐模式。
在另一实施例中,用户可以在图库中指示构图推荐模式。例如,图9A示出了手机的一种GUI,该GUI为手机的桌面901。当手机检测到用户点击桌面901上的图库应用的图标902的操作后,可以启动图库应用,显示如图9B所示的另一GUI,该GUI可以称为图库界面,图库界面可以包括多个图像的缩略图。当手机检测到用户点击缩略图903后,可以显示图9C所示的另一GUI,该GUI可以称为图像展示界面904。其中,图像展示界面904可以与图4所示的图像展示界面407相同。该图像展示界面904可以包括图像2,图像2为缩略图903放大显示后所对应的图像,图像2也可以称为原始图像。
在手机显示图像展示界面904后,用户可以通过上述图5A至图8B所示的方式指示构图推荐模式,从而使得手机进入构图推荐模式,此处不再赘述。可以理解的是,除了图5A至图8B所示的方式以外,用户指示构图推荐模式的方式不限于此,本申请实施例对用户指示构图推荐模式的方式不作限定。
手机在首次或每次进入构图推荐模式后,可以通过在显示屏上显示或通过语音的 方式给用户以提示说明,以告知用户构图推荐模式的功能和作用。例如,手机可以通过显示文字信息提示用户“进入该模式后,针对当前图像为您呈现推荐图像,您可以点击选择想要的目标推荐图像”。再例如,参见图8C,手机可以通过窗口801来提示用户,在构图推荐模式下,基于原始图像为用户呈现推荐图像,用户可以根据习惯选择想要的目标推荐图像,并为用户提供一个构图推荐的示例802,以方便用户了解构图推荐模式的功能。
在进入构图推荐模式后,手机可以根据当前显示的原始图像进行构图推荐处理,为用户呈现推荐图像。其中,推荐图像是根据原始图像并基于推荐的构图方案生成的图像。手机为用户呈现推荐图像的方式可以有多种。
在一些实施例中,在用户通过上述图5A至图8B所示的方式指示构图推荐模式后,手机可以在原始图像的下方呈现推荐图像。例如,参见图10A,手机在原始图像的下方呈现出多种推荐图像,分别为推荐图像一11,推荐图像二12和推荐图像三13。可以理解的是,由于受到界面大小的限制,图10A所示的手机只能同时呈现少量几种推荐图像,但是手机可以呈现的推荐图像不限于该少量几种推荐图像。示例性地,当手机检测到用户在推荐图像上左右滑动时,可以呈现其他推荐图像。例如,参见图10B,用户可以在推荐图像上向右滑动,当手机检测到用户在推荐图像上向右滑动时,参见图10C,可以呈现推荐图像四14,推荐图像五15和推荐图像六16。
在另一些实施例中,在用户通过上述图5A至图8B所示的方式指示构图推荐模式后,手机可以显示图10D所示的构图推荐界面101。构图推荐界面101可以包括至少一个推荐图像,例如,可以包括推荐图像一11,推荐图像二12,推荐图像三13,推荐图像四14,推荐图像五15,推荐图像六16,推荐图像七17,推荐图像八18和推荐图像九19。类似地,当手机检测到用户在推荐图像上左右滑动时,可以呈现其他推荐图像。
在手机呈现图10A至图10D所示的推荐图像后,用户可以根据自己的审美习惯通过点击相应的推荐图像来选择想要的目标推荐图像。其中,目标推荐图像可以有一个或多个,本申请实施例对目标推荐图像的数目不作限定。
可见,本申请实施例提供的构图推荐方法能够针对用户感兴趣的目标图像显示推荐图像,该推荐图像基于推荐的构图方案得到,用户选择目标推荐图像后即可获取效果较好的图像,与现有技术中在相机预览模式下的构图引导方案相比,无需用户进行精准、持续且复杂的操作,从而提高了用户体验。同时,该方法无需在手机移动的过程中进行实时判断是否移动至最佳照片位置,从而能够有效降低终端设备硬件要求。并且,在本申请实施例提供的构图推荐方法中,针对用户感兴趣的目标图像才提供构图推荐功能,避免了无差别构图造成的资源浪费。
在一些实现方式中,用户还可以自行编辑原始图像以得到期望构图的图像。例如,参见图11A,用户可以通过图11A所示的裁剪控件111来完成对原始图像的构图。当手机检测到用户点击裁剪控件111的操作后,向用户呈现图11B所示的裁剪界面112,用户可以通过滑动图11B中的虚线所示的裁剪框来实现构图。示例性地,裁剪框可以为矩形框、方形框、圆形框或椭圆框等。参见图11C,手机可以响应于用户滑动裁剪框的操作来完成构图,得到图像113。
然后,手机可以自动保存该图像113。例如,手机可以在预设时间内未检测到用户操作后自动保存该图像113,比如,手机可以在3秒内未检测到用户操作后,自动保存该图像113。或者,手机可以响应于用户的预设操作保存该图像113。例如,图像展示界面还可以包括确定按钮,当手机响应于用户操作完成构图后,用户可以通过点击确定按钮来保存该图像113。再例如,手机可以响应于用户长按该图像113的操作后,保存该图像113。
可见,在用户自行编辑原始图像以得到期望的图像的方案中,用户可以根据自己的习惯自行编辑原始图像以得到想要的图像,该图像对应于符合用户审美的构图方案,从而使得本申请实施例提供的构图推荐方法更加灵活,并且充分考虑了用户意愿,用户体验较好。
在一些实施例中,在进入构图推荐模式后,除了当前显示的原始图像以外,手机还可以结合与当前显示的原始图像相关的其他图像进行构图推荐处理,为用户呈现推荐图像。
示例性地,其他图像可以为在拍摄原始图像时捕获的原始图像所对应的场景的图像。该图像的视野范围可以大于原始图像的视野范围。大视野范围的图像可以包括更多的对象和更大的环境范围,手机在当前显示的原始图像的基础上,可以结合大视野范围的图像向用户呈现更多的推荐图像,使得用户具有更多的选择。例如,对于原始图像仅拍摄到其一部分的对象,或未拍摄到的对象,手机可以结合大视野范围的图像进行合理的构图,展示完整的对象,从而可以向用户提供具有完整对象的推荐图像,提高了用户体验。
在一些实现方式中,手机在拍摄原始图像时,可以同时记录摄像头捕获的具有较大视野范围的图像。参见图12A,手机在拍摄预览界面可以显示图像1201,手机拍照后可以得到与图像1201对应的原始图像1202,同时手机还可以记录摄像头捕获的具有较大视野范围的图像,原始图像1202的视野范围可以包括在该图像的视野范围内。在拍摄场景下,手机可以同时记录原始图像和该图像。例如,原始图像1202可以如图12B所示;摄像头捕获的图像1203可以如图12C所示。在拍摄图像时,用户可能会缩放图像,使得拍摄预览界面上呈现的图像的视野范围可能小于摄像头的视野范围。在拍摄场景下,手机可以保存缩放后的图像以及摄像头采集到的较大视野范围的图像。这样,手机在使用原始图像的基础上,可以结合摄像头捕获的具有较大视野范围的图像进行合理的构图,向用户呈现更丰富的推荐图像,从而能够提高用户体验。
在另一些实现方式中,手机在拍摄原始图像时,可以同时拍摄另一图像,另一图像的视野范围可以大于原始图像的视野范围。例如,手机可以根据用户的指示进入双图拍摄模式,从而可以利用广角镜头拍摄原始图像,同时利用超广角镜头拍摄具有更大视野范围的另一图像。这样,手机可以利用原始图像以及与原始图像一起拍摄的具有较大视野范围的图像来进行构图推荐,从而可以向用户呈现更丰富的推荐图像,以提高用户体验。示例性地,图13A示出了利用广角镜头拍摄的原始图像1301,图13B示出了利用超广角镜头拍摄的图像1302,图13C示出了手机基于原始图像1301和图像1302生成的推荐图像1303。
在一些实施例中,手机进入构图推荐模式后,在拍摄场景下,手机可以在拍摄预 览界面根据当前取景框的图像为用户呈现推荐图像。例如,手机进入构图推荐模式后,在手机显示如图4B所示的拍摄预览界面403时,参见图14,手机可以根据当前拍摄预览界面的图像在拍摄预览界面403上为用户呈现推荐图像一11,推荐图像二12和推荐图像三13。然后,用户可以通过点击选择目标推荐图像来捕获该目标推荐图像所对应的图像。示例性地,在拍摄场景下,当手机检测到用户点击目标推荐图像的操作之后,手机可以自动拍摄该目标推荐图像所对应的图像。或者,在拍摄场景下,当手机检测到用户点击目标推荐图像的操作之后,手机可以自动拍摄该目标推荐图像所对应的图像以及当前取景框的图像。
在拍摄预览界面根据当前取景框的图像为用户提供推荐图像的方案中,用户只需要在推荐图像中进行选择,无需用户进行精准、持续且复杂的操作,仅需较少的用户参与就可以拍摄获得效果较好的图像,减少了用户在拍摄过程中的操作,用户体验较好。
上文已提到,在手机检测到用户用于指示构图推荐模式的操作后,手机进入构图推荐模式。在构图推荐模式下,手机可以根据当前显示的原始图像,利用构图推荐算法向用户提供推荐图像。其中,构图推荐算法可以有多种。构图推荐算法可以为人工智能(artificial intelligence,AI)算法。例如,构图推荐算法可以包括但不限于下述任一种算法:神经网络算法、决策树、线性算法、支持向量机(support vector machine,SVM)、Q表或深度学习算法等。在构图推荐模式下,手机可以根据当前显示的原始图像,利用该构图推荐算法向用户提供推荐图像。
示例性地,构图算法中可以包括美学评价模块,美学评价模块可以用于对推荐图像进行美学评估。例如,该美学评价模块可以为神经图像评估(neural image assessment,NIMA),NIMA可以对推荐图像进行美学打分。本申请实施例对美学评价模块的类型不作限定。示例性地,构图推荐算法向用户提供的推荐图像可以为美学评价较高的图像。例如,构图推荐算法向用户提供的推荐图像可以为美学打分高于一定阈值的推荐图像。再例如,构图推荐算法向用户提供的推荐图像可以为所有待推荐图像中美学打分排名靠前的图像。
在构图推荐模式下,手机根据当前显示的原始图像向用户呈现推荐图像后,用户可以从推荐图像中选择符合用户审美的目标推荐图像。在用户选择了目标推荐图像后,手机可以保存该目标推荐图像。
示例性地,手机可以自动保存目标推荐图像。例如,手机可以在预设时间内未检测到用户操作后自动保存目标推荐图像,比如,在用户选择了目标推荐图像后,若手机可以在3秒内未检测到用户操作,则自动保存目标推荐图像。
再示例性地,手机可以响应于用户的预设操作保存目标推荐图像。例如,图像展示界面还可以包括确定按钮,当手机响应于用户操作完成构图后,用户可以通过点击确定按钮来保存目标推荐图像。再例如,手机可以响应于用户长按目标推荐图像的操作后,保存该目标推荐图像。
在一些实施例中,在手机保存目标推荐图像后,手机可以记录用户选择的目标推荐图像对应的目标构图方案,并根据用户选择的该目标构图方案对构图推荐算法进行修正,使得构图推荐算法能够学习用户的审美习惯,以便手机后续能够根据修正后的 构图推荐算法为用户呈现符合用户习惯的推荐图像。例如,参见图15A,在构图推荐模式下,手机根据原始图像1501向用户呈现推荐图像一11,推荐图像二12和推荐图像三13后,用户从推荐图像中点击选择推荐图像二12,手机可以记录用户的选择,然后根据用户的选择对构图推荐算法进行修正。后续若有与原始图像1501同样类型的图像,手机可以根据修正后的构图推荐算法向用户呈现符合用户审美习惯的推荐图像。示例性地,参见图15B,手机可以将符合用户审美习惯的推荐图像二12排在推荐图像的前面,使得用户能够容易地选择到符合其习惯的推荐图像。因此,手机可以根据用户的选择来自适应地学习用户的审美习惯,从而提升用户体验。
其中,图像的类型可以包括多种,例如,单人照,双人照,多人照,风景照,静物照等。每种类型的图像可以具有多种构图方案。例如,对于单人照,构图方案可以为全身照、半身照、人物居中、人物居左、或人物居右等。再例如,对于双人照,构图方案可以为左侧一人全身照、右侧一人全身照、两侧双人全身照、左侧一人半身照、或右侧一人半身照等。
在一些实现方式中,手机可以按照用户历史使用构图方案的次数优先推荐该构图方案所对应的图像。例如,在图像类型为双人照时,若手机检测到用户历史使用两侧双人全身照的构图方案次数最多,则手机可以优先推荐两侧双人全身照的构图方案所对应的图像。
在另一些实现方式中,手机可以按照用户最近使用的构图方案优先推荐该构图方案所对应的图像。例如,在图像类型为单人照时,若手机检测到用户最近使用人物居中的构图方案,则手机可以优先推荐人物居中的构图方案所对应的图像。
在另一些实现方式中,手机可以按照用户历史使用的构图方案的次数以及用户最近使用的构图方案优先推荐该构图方案所对应的图像。例如,在图像类型为双人照时,若手机检测到用户历史使用两侧双人全身照的构图方案次数最多,并且用户最近使用的构图方案为两侧双人全身照,则手机可以优先推荐两侧双人全身照的构图方案所对应的图像。可以理解的是,在一些实现方式中,手机还可以根据用户自行编辑原始图像而得到的目标图像对应的构图方案来对构图推荐算法进行修正,以便手机后续根据修正后的构图推荐算法推荐符合用户习惯的构图方案,以使得推荐的构图方案更能符合用户的审美需求。
示例性地,图16示出了本申请实施例提供的一种构图推荐方法的流程图。参见图16,首先,电子设备可以通过拍照功能获取图像。然后,电子设备可以对所获取的图像进行图像编辑。其中,图像编辑可以包括构图推荐。在进行图像编辑时,若电子设备检测到用户指示构图推荐模式的操作,则电子设备可以使用构图推荐算法对该图像进行处理,为用户呈现推荐图像,推荐图像是基于推荐的构图方案生成的图像。之后,用户可以选择想要的目标推荐图像,即选择了与目标推荐图像对应的目标构图方案,电子设备可以记录用户的选择,并根据该用户选择对构图推荐算法进行修正,使得手机后续能够根据修正后的构图推荐算法向用户呈现符合用户习惯的推荐图像。
结合上述实施例及相关附图,本申请实施例提供了一种构图推荐方法,该方法可以在如图2、图3所示的电子设备(例如手机、平板电脑等)中实现。如图17所示,该方法可以包括以下步骤:
1701、电子设备检测到用户的第一操作。
其中,该第一操作用于指示电子设备显示第一图像。
1702、响应于第一操作,电子设备显示第一图像。
电子设备检测到第一操作后可以显示第一图像。第一图像可以为用户感兴趣的目标图像。该第一图像可以为电子设备拍摄的图像;或者,第一图像可以为电子设备接收的图像;或者,第一图像可以为电子设备中预先存储的图像。
也就是说,第一图像可以为电子设备拍摄、接收或预先存储的图像,电子设备后续可以基于该第一图像进行构图推荐。
示例性地,第一图像可以为图4C所示的图像展示界面407中的图像1。再示例性地,第一图像可以为图9C所示的图像展示界面904中的图像2。
在一些实现方式中,步骤1702具体可以包括:响应于第一操作,电子设备显示图像展示界面。图像展示界面包括第一图像和构图控件;其中,第二操作为针对构图控件的操作。
示例性地,图像展示界面可以为如图5A所示的界面,构图控件可以为图5A所示的控件501。再示例性地,图像展示界面可以如图5B所示,构图控件可以为图5B所示的控件502。
在另一些实现方式中,步骤1702具体可以包括:响应于第一操作,电子设备显示图像展示界面;图像展示界面包括第一图像和编辑控件。
示例性地,图像展示界面可以为如图4C所示的界面,编辑控件可以为如图4C所示的编辑控件408。
1703、电子设备检测到用户的第二操作。
示例性地,该第二操作可以是用户点击图5A所示的控件501,或者图5B所示的控件502的操作。
在一些实施例中,在步骤1703之前,该方法还可以包括:电子设备检测到用户针对编辑控件的操作后显示图像编辑界面,图像编辑界面包括构图控件。其中,第二操作为用户针对构图控件的操作。
示例性地,电子设备检测到用户点击图4C所示的编辑控件408的操作后,可以显示图6所示的图像编辑界面,该图像编辑界面包括构图控件602。第二操作可以是用户点击图6所示的控件602的操作。
1704、响应于第二操作,电子设备显示至少一个第一推荐图像。
其中,第一推荐图像为根据第一图像并基于推荐的构图方案生成的图像。
在一些实现方式中,步骤1704具体可以包括:响应于第二操作,电子设备在第一图像的下方显示至少一个第一推荐图像。
示例性地,至少一个第一推荐图像可以为图10A所示的推荐图像一11,推荐图像二12和推荐图像三13。
在另一些实现方式中,步骤1704具体可以包括:响应于第二操作,电子设备显示构图推荐界面,构图推荐界面包括至少一个第一推荐图像。
示例性地,构图推荐界面可以为图10D所示的构图推荐界面101,至少一个第一推荐图像可以为图10D所示的推荐图像一11,推荐图像二12,推荐图像三13,推荐 图像四14,推荐图像五15,推荐图像六16,推荐图像七17,推荐图像八18和推荐图像九19。
其中,至少一个第一推荐图像可以为电子设备按照用户历史使用构图方案的次数优先推荐的图像;和/或,至少一个第一推荐图像可以为电子设备按照用户最近使用的构图方案优先推荐的图像。
1705、电子设备检测到用户的第三操作。
其中,第三操作用于从至少一个第一推荐图像中选择至少一个第一目标推荐图像。示例性地,该第三操作可以为用户点击图15A所示的推荐图像二12的操作。
1706、电子设备保存至少一个第一目标推荐图像。
在步骤1701-步骤1706描述的方案中,电子设备可以根据用户感兴趣的第一图像并基于推荐的构图方案生成并显示推荐图像,用户选择目标推荐图像后即可获取效果较好的图像,与现有技术中在相机预览模式下的构图引导方案相比,无需用户进行精准、持续且复杂的操作,用户体验较好。另外,该方法无需在手机移动的过程中进行实时判断是否移动至最佳照片位置,从而能够有效降低终端设备硬件要求。并且,该方法在响应于用户操作打开用户感兴趣的目标图像时才提供构图推荐功能,避免了无差别构图造成的资源浪费。
在一实施例中,参见图18,在上述步骤1701之前,该方法还可以包括:
1801、电子设备检测到用户打开相机的操作。
示例性地,用户打开相机的操作可以为用户点击图4A所示的相机应用的图标402的操作。
1802、响应于用户打开相机的操作,电子设备显示拍摄预览界面。
示例性地,响应于用户打开相机的操作,电子设备显示图4B所示的拍摄预览界面403。
1803、电子设备检测到用户指示拍照的操作。
示例性地,用户指示拍照的操作可以为用户点击图4B所示的拍摄控件405的操作。
1804、响应于用户指示拍照的操作,电子设备拍摄第一图像。
1805、电子设备显示第一图像的缩略图。
示例性地,在电子设备拍摄第一图像后,电子设备可以显示图4B所示的第一图像的缩略图406。
其中,第一操作为用户点击第一图像的缩略图的操作。示例性地,该第一操作可以是用户点击图4B所示的拍摄预览界面403中的拍摄的图像的缩略图406的操作。
从而,用户可以在拍照后指示进入构图推荐模式,使得电子设备后续可以根据拍摄得到的图像进行构图推荐,为用户呈现推荐图像。
在另一实施例中,参见图19,在上述步骤1701之前,该方法还可以包括:
1901、电子设备检测到用户打开图库的操作。
示例性地,用户打开图库的操作可以为用户点击图9A所示的图库应用的图标902的操作。
1902、响应于用户打开图库的操作,电子设备显示至少一个图像的缩略图。
示例性地,至少一个图像的缩略图可以为图9B所示的图库界面中包括的多个图像的缩略图。
至少一个图像的缩略图包括第一图像的缩略图。示例性地,第一图像可以为图9C所示的图像2,图9B所示的多个图像的缩略图包括图像2的缩略图903。
其中,第一操作为用户点击第一图像的缩略图的操作。示例性地,该第一操作可以是用户点击图9B所示的图库界面中的缩略图903的操作。
从而,用户可以在图库中指示进入构图推荐模式,使得电子设备后续可以根据图库中的图像进行构图推荐,为用户呈现推荐图像。
在另一实施例中,推荐的构图方案根据构图算法生成。参见图20,在上述步骤1706之后,该方法还可以包括:
2001、电子设备根据用户选择的至少一个第一目标推荐图像对应的构图方案,修正构图算法。
也就是说,电子设备可以根据用户选择的目标推荐图像对应的构图方案,对构图推荐算法进行修正,使得构图推荐算法能够学习用户的审美习惯,以便电子设备后续能够根据修正后的构图推荐算法为用户呈现符合用户习惯的推荐图像。
在步骤2001之后,该方法还可以包括:
2002、电子设备检测到用户的第四操作。
2003、响应于第四操作,电子设备显示第二图像。
其中,第二图像可以为电子设备拍摄的图像;或者,第二图像可以为电子设备接收的图像;或者,第二图像可以为电子设备中预先存储的图像。
示例性地,第二图像可以与第一图像相同。或者,第二图像可以与第一图像不同。
2004、电子设备检测到用户的第五操作。
示例性地,该第五操作可以是用户点击图5A所示的控件501,或者图5B所示的控件502的操作。
再示例性地,该第五操作可以是用户点击图4C所示的编辑控件408,以及点击图6所示的控件602的操作。
2005、响应于第五操作,电子设备显示至少一个第二推荐图像。
其中,第二推荐图像为根据第二图像并基于修正后的构图算法推荐的构图方案生成的图像。示例性地,至少一个第二推荐图像可以为图15B所示的推荐图像一11,推荐图像二12和推荐图像三13。
2006、电子设备检测到用户的第六操作。
其中,第六操作用于从至少一个第二推荐图像中选择至少一个第二目标推荐图像。
2007、电子设备保存至少一个第二目标推荐图像。
也就是说,在电子设备根据用户选择的第一图像的目标推荐图像对应的构图方案,对构图推荐算法进行修正之后,电子设备可以根据第二图像,利用修正后的构图推荐算法为用户呈现符合用户习惯的推荐图像。
可以理解的是,为了实现上述功能,电子设备包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动 硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图21示出了上述实施例中涉及的电子设备2100的一种可能的组成示意图,如图21所示,该电子设备2100可以包括:检测单元2101、拍摄单元2102、显示单元2103、保存单元2104和修正单元2105。
其中,检测单元2101可以用于支持电子设备2100执行上述步骤1701、步骤1703、步骤1705、步骤1801、步骤1803、步骤1901、步骤2002、步骤2004、步骤2006等,和/或用于本文所描述的技术的其他过程。
拍摄单元2102可以用于支持电子设备2100执行上述步骤1804等,和/或用于本文所描述的技术的其他过程。
显示单元2103可以用于支持电子设备2100执行上述步骤1702、步骤1704、步骤1802、步骤1805、步骤1902、步骤2003、步骤2005等,和/或用于本文所描述的技术的其他过程。
保存单元2104可以用于支持电子设备2100执行上述步骤1706、步骤2007等,和/或用于本文所描述的技术的其他过程。
修正单元2105可以用于支持电子设备2100执行上述步骤2001等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备2100,用于执行上述构图推荐方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备2100可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备2100的动作进行控制管理,例如,可以用于支持电子设备2100执行上述检测单元2101、拍摄单元2102、显示单元2103、保存单元2104和修正单元2105执行的步骤。存储模块可以用于支持电子设备2100存储程序代码和数据等。通信模块,可以用于支持电子设备2100与其他设备的通信,例如与无线接入设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
本申请的实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方 法步骤实现上述实施例中的构图推荐方法。
本申请的实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中电子设备执行的构图推荐方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中电子设备执行的构图推荐方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保 护范围为准。

Claims (23)

  1. 一种构图推荐方法,其特征在于,包括:
    电子设备检测到用户的第一操作;
    响应于所述第一操作,所述电子设备显示第一图像;
    所述电子设备检测到所述用户的第二操作;
    响应于所述第二操作,所述电子设备显示至少一个第一推荐图像,所述第一推荐图像为根据所述第一图像并基于推荐的构图方案生成的图像;
    所述电子设备检测到所述用户的第三操作,所述第三操作用于从所述至少一个第一推荐图像中选择至少一个第一目标推荐图像;
    所述电子设备保存所述至少一个第一目标推荐图像。
  2. 根据权利要求1所述的方法,其特征在于,所述第一图像为所述电子设备拍摄的图像;或者,所述第一图像为所述电子设备接收的图像;或者,所述第一图像为所述电子设备中预先存储的图像。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备检测到所述用户的所述第一操作之前,所述方法还包括:
    所述电子设备检测到所述用户打开相机的操作;
    响应于所述用户打开相机的操作,所述电子设备显示拍摄预览界面;
    所述电子设备检测到所述用户指示拍照的操作;
    响应于所述用户指示拍照的操作,所述电子设备拍摄所述第一图像;
    所述电子设备显示所述第一图像的缩略图;
    其中,所述第一操作为所述用户针对所述第一图像的缩略图的操作。
  4. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备检测到所述用户的所述第一操作之前,所述方法还包括:
    所述电子设备检测到所述用户打开图库的操作;
    响应于所述用户打开图库的操作,所述电子设备显示至少一个图像的缩略图,所述至少一个图像的缩略图包括所述第一图像的缩略图;
    其中,所述第一操作为所述用户针对所述第一图像的缩略图的操作。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述响应于所述第一操作,所述电子设备显示第一图像,具体包括:
    响应于所述第一操作,所述电子设备显示图像展示界面;所述图像展示界面包括所述第一图像和构图控件;其中,所述第二操作为针对所述构图控件的操作。
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述响应于所述第一操作,所述电子设备显示第一图像,具体包括:
    响应于所述第一操作,所述电子设备显示图像展示界面;所述图像展示界面包括所述第一图像和编辑控件;
    在所述电子设备检测到所述用户的第二操作之前,所述方法还包括:
    所述电子设备检测到用户针对所述编辑控件的操作后显示图像编辑界面,所述图像编辑界面包括构图控件;
    其中,所述第二操作为所述用户针对所述构图控件的操作。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述响应于所述第二操作,所述电子设备显示至少一个第一推荐图像,包括:响应于所述第二操作,所述电子设备在所述第一图像的下方显示至少一个第一推荐图像。
  8. 根据权利要求1-6任一项所述的方法,其特征在于,在所述电子设备检测到所述用户的第二操作之后,所述方法还包括:
    响应于所述第二操作,所述电子设备显示构图推荐界面,所述构图推荐界面包括所述至少一个第一推荐图像。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,
    所述至少一个第一推荐图像为所述电子设备按照所述用户历史使用构图方案的次数优先推荐的图像;和/或
    所述至少一个第一推荐图像为所述电子设备按照所述用户最近使用的构图方案优先推荐的图像。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述推荐的构图方案根据构图算法生成;在所述电子设备保存所述至少一个第一目标推荐图像之后,所述方法还包括:
    所述电子设备根据所述用户选择的所述至少一个第一目标推荐图像对应的构图方案,修正所述构图算法。
  11. 根据权利要求10所述的方法,其特征在于,在所述电子设备根据所述用户选择的所述至少一个第一目标推荐图像对应的构图方案,修正所述构图算法之后,所述方法还包括:
    所述电子设备检测到所述用户的第四操作;
    响应于所述第四操作,所述电子设备显示第二图像;
    所述电子设备检测到所述用户的第五操作;
    响应于所述第五操作,所述电子设备显示至少一个第二推荐图像,所述第二推荐图像为根据所述第二图像并基于修正后的构图算法推荐的构图方案生成的图像;
    所述电子设备检测到所述用户的第六操作,所述第六操作用于从所述至少一个第二推荐图像中选择至少一个第二目标推荐图像;
    所述电子设备保存所述至少一个第二目标推荐图像。
  12. 一种电子设备,其特征在于,包括:
    一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序;其中,所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:
    检测到用户的第一操作;
    响应于所述第一操作,显示第一图像;
    检测到所述用户的第二操作;
    响应于所述第二操作,显示至少一个第一推荐图像,所述第一推荐图像为根据所述第一图像并基于推荐的构图方案生成的图像;
    检测到所述用户的第三操作,所述第三操作用于从所述至少一个第一推荐图像中选择至少一个第一目标推荐图像;
    保存所述至少一个第一目标推荐图像。
  13. 根据权利要求12所述的电子设备,其特征在于,所述第一图像为所述电子设备拍摄的图像;或者,所述第一图像为所述电子设备接收的图像;或者,所述第一图像为所述电子设备中预先存储的图像。
  14. 根据权利要求12或13所述的电子设备,其特征在于,在所述检测到所述用户的所述第一操作之前,所述电子设备还执行以下步骤:
    检测到所述用户打开相机的操作;
    响应于所述用户打开相机的操作,显示拍摄预览界面;
    检测到所述用户指示拍照的操作;
    响应于所述用户指示拍照的操作,拍摄所述第一图像;
    显示所述第一图像的缩略图;
    其中,所述第一操作为所述用户针对所述第一图像的缩略图的操作。
  15. 根据权利要求12或13所述的电子设备,其特征在于,在所述检测到所述用户的所述第一操作之前,所述电子设备还执行以下步骤:
    检测到所述用户打开图库的操作;
    响应于所述用户打开图库的操作,显示至少一个图像的缩略图,所述至少一个图像的缩略图包括所述第一图像的缩略图;
    其中,所述第一操作为所述用户针对所述第一图像的缩略图的操作。
  16. 根据权利要求12-15任一项所述的电子设备,其特征在于,所述响应于所述第一操作,显示第一图像,具体包括:
    响应于所述第一操作,显示图像展示界面;所述图像展示界面包括所述第一图像和构图控件;其中,所述第二操作为针对所述构图控件的操作。
  17. 根据权利要求12-15任一项所述的电子设备,其特征在于,所述响应于所述第一操作,显示第一图像,具体包括:
    响应于所述第一操作,显示图像展示界面;所述图像展示界面包括所述第一图像和编辑控件;
    在所述检测到所述用户的第二操作之前,所述电子设备还执行以下步骤:
    检测到用户针对所述编辑控件的操作后显示图像编辑界面,所述图像编辑界面包括构图控件;
    其中,所述第二操作为所述用户针对所述构图控件的操作。
  18. 根据权利要求12-17任一项所述的电子设备,其特征在于,所述响应于所述第二操作,显示至少一个第一推荐图像,包括:响应于所述第二操作,在所述第一图像的下方显示至少一个第一推荐图像。
  19. 根据权利要求12-17任一项所述的电子设备,其特征在于,在所述检测到所述用户的第二操作之后,所述电子设备还执行以下步骤:
    响应于所述第二操作,显示构图推荐界面,所述构图推荐界面包括所述至少一个第一推荐图像。
  20. 根据权利要求12-19任一项所述的电子设备,其特征在于,
    所述至少一个第一推荐图像为所述电子设备按照所述用户历史使用构图方案的次 数优先推荐的图像;和/或
    所述至少一个第一推荐图像为所述电子设备按照所述用户最近使用的构图方案优先推荐的图像。
  21. 根据权利要求12-20任一项所述的电子设备,其特征在于,所述推荐的构图方案根据构图算法生成;在所述保存所述至少一个第一目标推荐图像之后,所述电子设备还执行以下步骤:
    根据所述用户选择的所述至少一个第一目标推荐图像对应的构图方案,修正所述构图算法。
  22. 根据权利要求21所述的电子设备,其特征在于,在所述根据所述用户选择的所述至少一个第一目标推荐图像对应的构图方案,修正所述构图算法之后,所述电子设备还执行以下步骤:
    检测到所述用户的第四操作;
    响应于所述第四操作,显示第二图像;
    检测到所述用户的第五操作;
    响应于所述第五操作,显示至少一个第二推荐图像,所述第二推荐图像为根据所述第二图像并基于修正后的构图算法推荐的构图方案生成的图像;
    检测到所述用户的第六操作,所述第六操作用于从所述至少一个第二推荐图像中选择至少一个第二目标推荐图像;
    保存所述至少一个第二目标推荐图像。
  23. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-11中任一项所述的构图推荐方法。
PCT/CN2020/124868 2019-11-28 2020-10-29 构图推荐方法和电子设备 WO2021103919A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911194301.1 2019-11-28
CN201911194301.1A CN112866557A (zh) 2019-11-28 2019-11-28 构图推荐方法和电子设备

Publications (1)

Publication Number Publication Date
WO2021103919A1 true WO2021103919A1 (zh) 2021-06-03

Family

ID=75995826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/124868 WO2021103919A1 (zh) 2019-11-28 2020-10-29 构图推荐方法和电子设备

Country Status (2)

Country Link
CN (1) CN112866557A (zh)
WO (1) WO2021103919A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024046162A1 (zh) * 2022-08-30 2024-03-07 华为技术有限公司 一种图片推荐方法及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117177052B (zh) * 2023-11-03 2024-05-14 荣耀终端有限公司 图像获取方法、电子设备及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945113A (zh) * 2013-01-18 2014-07-23 三星电子株式会社 便携式终端的用于拍摄的方法和设备
KR20150134960A (ko) * 2014-05-23 2015-12-02 주식회사 카카오 촬영 구도 추천 방법, 및 장치
CN108111763A (zh) * 2017-12-28 2018-06-01 广东欧珀移动通信有限公司 图像处理方法、装置、存储介质及电子设备
CN110476405A (zh) * 2017-12-01 2019-11-19 三星电子株式会社 用于提供与拍摄有关的推荐信息的方法和系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207904B (zh) * 2013-03-28 2017-03-15 百度在线网络技术(北京)有限公司 搜索结果的提供方法及搜索引擎
US9350924B2 (en) * 2014-08-25 2016-05-24 John G. Posa Portable electronic devices with integrated image/video compositing
CN106034206B (zh) * 2015-03-17 2020-02-21 联想(北京)有限公司 电子设备及图像显示方法
CN106412413A (zh) * 2016-05-09 2017-02-15 捷开通讯科技(上海)有限公司 拍照控制系统及方法
CN107509032A (zh) * 2017-09-08 2017-12-22 维沃移动通信有限公司 一种拍照提示方法及移动终端
CN107835364A (zh) * 2017-10-30 2018-03-23 维沃移动通信有限公司 一种拍照辅助方法及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945113A (zh) * 2013-01-18 2014-07-23 三星电子株式会社 便携式终端的用于拍摄的方法和设备
KR20150134960A (ko) * 2014-05-23 2015-12-02 주식회사 카카오 촬영 구도 추천 방법, 및 장치
CN110476405A (zh) * 2017-12-01 2019-11-19 三星电子株式会社 用于提供与拍摄有关的推荐信息的方法和系统
CN108111763A (zh) * 2017-12-28 2018-06-01 广东欧珀移动通信有限公司 图像处理方法、装置、存储介质及电子设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024046162A1 (zh) * 2022-08-30 2024-03-07 华为技术有限公司 一种图片推荐方法及电子设备

Also Published As

Publication number Publication date
CN112866557A (zh) 2021-05-28

Similar Documents

Publication Publication Date Title
WO2021093793A1 (zh) 一种拍摄方法及电子设备
WO2020233553A1 (zh) 一种拍摄方法及终端
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
WO2021000881A1 (zh) 一种分屏方法及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020077511A1 (zh) 一种拍摄场景下的图像显示方法及电子设备
WO2021027725A1 (zh) 显示页面元素的方法和电子设备
WO2021244455A1 (zh) 一种图像内容的去除方法及相关装置
US20230217098A1 (en) Shooting method, graphical interface, and related apparatus
JP7302038B2 (ja) ユーザプロフィールピクチャ生成方法および電子デバイス
WO2020102978A1 (zh) 图像处理方法及电子设备
WO2020029306A1 (zh) 一种图像拍摄方法及电子设备
CN111566606B (zh) 界面的显示方法及电子设备
WO2021088881A1 (zh) 一种选择图片的方法和电子设备
US20220343648A1 (en) Image selection method and electronic device
WO2021008589A1 (zh) 一种应用的运行方法及电子设备
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
WO2020113534A1 (zh) 一种拍摄长曝光图像的方法和电子设备
CN110830645B (zh) 一种操作方法和电子设备及计算机存储介质
WO2021103919A1 (zh) 构图推荐方法和电子设备
WO2021238370A1 (zh) 显示控制方法、电子设备和计算机可读存储介质
WO2023093169A1 (zh) 拍摄的方法和电子设备
CN115115679A (zh) 一种图像配准方法及相关设备
WO2021254113A1 (zh) 一种三维界面的控制方法和终端
WO2022012418A1 (zh) 拍照方法及电子设备

Legal Events

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

Ref document number: 20892512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20892512

Country of ref document: EP

Kind code of ref document: A1