WO2023142690A1 - 一种复原拍摄的方法及电子设备 - Google Patents

一种复原拍摄的方法及电子设备 Download PDF

Info

Publication number
WO2023142690A1
WO2023142690A1 PCT/CN2022/136943 CN2022136943W WO2023142690A1 WO 2023142690 A1 WO2023142690 A1 WO 2023142690A1 CN 2022136943 W CN2022136943 W CN 2022136943W WO 2023142690 A1 WO2023142690 A1 WO 2023142690A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting
user
restoration
template
photo
Prior art date
Application number
PCT/CN2022/136943
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 WO2023142690A1 publication Critical patent/WO2023142690A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment

Definitions

  • the present application relates to the field of electronic technology, and in particular to a method and electronic equipment for restoring shooting.
  • the user can use electronic devices such as mobile phones and tablets to take pictures of things he likes, or to record interesting things in daily life.
  • electronic devices such as mobile phones and tablets to take pictures of things he likes, or to record interesting things in daily life.
  • users can take interesting videos, photos with sound, and dynamic pictures in graphics interchange format (gif) through electronic devices, and can share and publish the captured content to different media software and social platforms superior.
  • users can like, repost, and save multimedia files such as photos and videos taken by other users on media software and social platforms.
  • the user can use one or more shooting parameters such as professionally adjusted focal length, resolution, beauty level, color index, brightness parameter, etc. to take photos. It is generally difficult to restore the same or similar photos. It is difficult to clarify the shooting details and shooting parameters of the photos. It is even more difficult to restore the photos. It is basically impossible to restore the lost photos.
  • shooting parameters such as professionally adjusted focal length, resolution, beauty level, color index, brightness parameter, etc.
  • the present application provides a method for restoring shooting and electronic equipment.
  • the method enables the user to re-shoot other different objects according to one or more restoration templates saved by the electronic device, and restore the same effect and/or the same viewfinder range.
  • Photos, moving pictures, videos and other multimedia files can quickly restore the shooting process, simplify the shooting operation, and improve the user experience.
  • the first aspect provides a method for restoring shooting, which is applied to an electronic device including a display screen, the electronic device stores one or more restoration templates, the method includes: displaying a shooting preview interface of the electronic device, the The shooting preview interface includes a picture displayed based on one or more shooting parameters of the first parameter set; the first recovery template is determined from the one or more recovery templates, and the first recovery template is associated with the first multimedia Body file, the first multimedia file is any one of photos, moving pictures or video clips; obtain the second parameter set corresponding to the first restoration template, the second parameter set includes shooting the first One or more shooting parameters of a multimedia file; receiving the user's first operation, in response to the first operation, based on the one or more shooting parameters included in the second parameter set, shooting to obtain the second A multimedia file, so that the second multimedia file has the same display effect as the first multimedia file, and the second multimedia file is any one of a photo, a moving picture or a video clip .
  • the "shooting parameters" involved in this embodiment of the application may include focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, level effect, exposure, and sensitivity One or more parameters in .
  • multimedia files such as “first multimedia file” and “second multimedia file” may include any one of photos, animations or video clips, and the multimedia files may be What the user takes through the camera application of the electronic device, etc., may also be downloaded by the user from the network, server, social platform, etc., or received by the user and sent by other devices and stored in the local multimedia file of the electronic device.
  • the electronic device can detect the photo and obtain the shooting parameters corresponding to the photo, such as the brightness level of the photo, filter color etc., and generate a recovery template file for the photo, which can also be used to guide the user to take other multimedia files such as photos, moving pictures, videos, etc., and details will not be repeated here.
  • the "first operation” may include one or more different user operations.
  • the "first operation” may include a shooting operation of clicking a shooting shutter control performed by the user.
  • the "first operation” may include an operation performed by the user to click at least twice to record a video of the shutter control, which is not limited in this embodiment of the present application.
  • the embodiment of the present application provides users with a new type of recovery shooting scheme.
  • multimedia files such as photos, moving pictures, and recorded video clips taken by the user are lost or deleted by mistake
  • the method can be based on electronic equipment.
  • One or more recovery template files can quickly realize recovery shooting.
  • the user can use the restoration template file to restore the shooting process, that is, use one or more shooting parameters included in the restoration template file to re-shoot other different objects, and restore photos, moving pictures, and recorded videos with the same display effect.
  • the user can also select the same viewing range to restore multimedia files such as photos, moving pictures, and recorded video clips with the same effect and the same viewing range.
  • the method can meet different application scenarios, can quickly restore photos, simplifies shooting operations, and improves user experience.
  • the ability to restore shooting in this embodiment of the present application may be a system capability of an electronic device such as an electronic device.
  • the system capability may be invoked by various application programs capable of shooting, such as a camera application.
  • the implementation of the recovery shooting process can be based on the camera application configured when the electronic device leaves the factory, and the user can run the camera application and display the shooting preview interface through the camera application of the electronic device.
  • the realization of the recovery shooting process may also be based on any other applications capable of taking photos, such as a beauty camera, a beauty camera, etc. downloaded and installed by the user.
  • the "recovery shooting function" in the embodiment of the present application may support the user to manually enable or disable it through the setting control, shortcut control, etc. of the camera application.
  • the function of restoring shooting can also be configured as the default function of the electronic device, that is, multiple associated applications such as the camera application and the gallery application of the electronic device can be authorized to call the function of restoring shooting, which is not limited in this embodiment of the present application. .
  • the one or more recovery templates include a preset recovery template; and/or, the one or more recovery templates include the electronic device A restoration template generated according to one or more shooting parameters of an associated multimedia file.
  • several (n, for example, 2, etc.) fixed recovery templates can be set by the developer when the electronic device leaves the factory.
  • the recovery templates correspond to fixed shooting parameters, and the shooting parameters can make the electronic device It has a relatively high-quality shooting effect. Afterwards, no matter whether the user recovers to take photos or record videos, etc., the preset recovery template can be displayed.
  • the user can use the camera application of the electronic device to take photos, animations, record videos, etc.
  • the electronic device can use one or more Parameters, and/or, one or more editing parameters, generate one or more restoration templates, and save them on the electronic device.
  • a "first recovery template" is selected from one or more recovery templates stored in the electronic device.
  • the determining the first restoration template from the one or more restoration templates includes: receiving a second user operation, and responding to the The second operation is to select and determine the first restoration template from the one or more restoration templates; or, according to the shooting environment where the electronic device is located, automatically select the one or more restoration templates with The restoration template with the best shooting effect is determined as the first restoration template; or, according to the picture displayed on the shooting preview interface, the restoration template with the best shooting effect among the one or more restoration templates is automatically determined as the first restoration template.
  • the first recovery template or, according to the frequency of use of the user, automatically determine the recovery template with the highest user frequency among the one or more recovery templates as the first recovery template; or, according to the user's use record, automatically Determining, among the one or more restoration templates, the restoration template that the user has used most recently as the first restoration template.
  • the electronic device can intelligently detect the shooting environment, shooting objects, etc., and intelligently match different shooting templates for the user according to external factors such as the shooting environment and shooting objects. For example, when the electronic device detects that it is currently a dark shooting environment at night, one or more restoration templates displayed in the restoration template selection window may include parameters suitable for shooting at night, and the parameters may be included in the first restoration template .
  • the electronic device may intelligently display to the user one or more recovery templates that are frequently used according to the user's use frequency and shooting habits.
  • the first restoration template has the highest usage frequency, and the first restoration template will be preferentially displayed in the restoration template selection window, which is not limited in this embodiment of the present application.
  • users can manually select the desired restoration template according to their shooting habits and shooting needs, or the electronic device can intelligently recommend matching restoration templates for users according to the shooting environment and shooting objects. This process satisfies different users. Especially for non-professionals who are not good at shooting, it simplifies the shooting operation and can improve the user's shooting experience.
  • the method further includes: displaying the second parameter set One or more shooting parameters of the parameter set; receiving a third user operation, modifying one or more shooting parameters of the second parameter set in response to the third operation, and according to the modified first Updating the first recovery template with a second parameter set; or, generating a second recovery template associated with the first multimedia file according to the modified second parameter set, and saving the second recovery template.
  • modifying one or more parameters in the restoration template file may include the user performing operations such as editing, deleting, adding, and adjusting one or more shooting parameters of the second parameter set.
  • the electronic device may update the first restoration template according to the modified second parameter set, that is, overwrite the original restoration template.
  • Template file replace the original parameters of the first recovery template file with the parameters modified by the user.
  • the electronic device may generate a second restoration template associated with the first multimedia file according to the modified second parameter set, and save the second restoration template.
  • the electronic device may generate a new restoration template file and automatically save the new restoration template file by combining modified parameters and one or more parameters in the original first restoration template file according to user operations, For example, the new second recovery template file continues to add a suffix after the name of the original recovery template file and save it.
  • the method supports the user to view, modify, edit, delete and other operations on one or more parameters in the recovery template, and can According to the user's modification, editing, deletion and other operations, the relevant parameters in the restoration template file are updated, or a new restoration template is generated according to the updated relevant parameters, which meets the shooting needs of users in different scenes.
  • the method when it is detected that the first multimedia file associated with the first restoration template is lost or damaged, the method further includes: In the restoration shooting mode, prompt information is displayed, and the prompt information is used to remind the user to restore the first multimedia file.
  • each multimedia file can correspond to a unique restoration template file. If a certain multimedia file is lost or deleted by mistake, the electronic device can detect the absence of the source file of the multimedia file, and the electronic device can automatically remind the user of the absence of the multimedia file. , and the user chooses whether to restore the photo.
  • the electronic device may display prompt information in the recovery shooting mode, and the prompt information is used to remind the user Recover the first multimedia file.
  • This process can actively remind the user to restore multimedia files, and the user can choose to restore the missing multimedia files, which can ensure the integrity of the restoration template, and the process of restoring photos is easy to operate, and can quickly restore the previous shooting process, which improves the user experience. .
  • the electronic device can automatically detect whether there are multiple recovery template files stored The absence of the corresponding multimedia file.
  • the user can be automatically prompted about the missing multimedia file and the user can choose whether to restore the missing multimedia file, and automatically trigger the restoration and shooting process of the electronic device. This method can ensure the integrity of the restoration template, and improves user experience.
  • the second parameter set further includes framing information of the first multimedia file
  • the method further includes: according to the first The framing information of a multimedia file, determining the framing range of the first multimedia file; receiving the fourth operation of the user, in response to the fourth operation, based on one or more parameters included in the second parameter set
  • a shooting parameter is used to obtain a third multimedia file, and the third multimedia file has the same display effect and viewing range as the first multimedia file.
  • the photo when the photo taken by the user is lost or deleted by mistake, the photo can be taken again based on the recovery template file corresponding to the lost or deleted photo according to the method for recovering the photo provided in the embodiment of the present application, and the photo can be taken again
  • the photo may have the same shooting parameters as the lost or mistakenly deleted photo, and/or may have approximately the same viewing range, so as to restore the same or similar photo to the lost or mistakenly deleted photo for the user,
  • This process does not require the user to manually reset the relevant shooting parameters, etc., to restore the photo shooting process and/or viewfinder range, which can quickly restore the photo, simplifies the shooting operation, and improves the user experience.
  • the second parameter set further includes operation parameters for the user to perform editing processing on the first multimedia file, and the first multimedia file is captured and obtained.
  • the method further includes: performing editing processing on the second multimedia file according to the operating parameters of the editing processing to obtain the processed second multimedia file, wherein, The editing process includes one or more of trimming ratio, adjusting filter color, adjusting beautification parameters, and adjusting brightness level.
  • shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting may be included at the same time.
  • shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting may include the same parameter type.
  • the final parameters corresponding to the display effect presented to the user may prevail.
  • the method further includes: based on the second parameter set One or more shooting parameters are included, and the picture displayed on the shooting preview interface of the electronic device is automatically updated.
  • the relevant shooting parameters on the shooting preview interface can be automatically adjusted to one or more parameters included in the first restoration template, for example, adjusting the magnification displayed on the shooting preview interface. Multiplier, beauty level and other filter colors, etc., so as to update the display effect of the picture on the shooting preview interface.
  • the shooting parameters include focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, One or more parameters in Level Meter Effect, Exposure, and Sensitivity.
  • the method further includes: receiving a fifth operation from the user, and in response to the fifth operation, enabling the electronic device to resume shooting. function; or, receiving a sixth operation of the user, and in response to the sixth operation, causing the electronic device to enter a recovery shooting mode.
  • the method for restoring shooting provided by the embodiment of the present application provides users with a new shooting solution.
  • multimedia files such as photos, moving pictures, and recorded video clips taken by the user are lost or accidentally
  • the method can quickly realize recovery shooting based on one or more recovery template files stored in the electronic device.
  • the user can use the restoration template file to restore the shooting process, that is, use one or more shooting parameters included in the restoration template file to re-shoot other different objects, and restore photos, moving pictures, and recorded videos with the same display effect.
  • the user can also select the same viewing range to restore multimedia files such as photos, moving pictures, and recorded video clips with the same effect and the same viewing range.
  • the method can meet different application scenarios, can quickly restore photos, simplifies shooting operations, and improves user experience.
  • the method supports the user to perform operations such as viewing, modifying, editing, and deleting one or more parameters in the restoration template. Modify, edit, delete and other operations, update the relevant parameters in the restoration template file, or generate and save a new restoration template according to the updated relevant parameters, which meets the shooting needs of users in different scenes.
  • the mobile phone can automatically detect the multiple recovery template files stored Whether there is a missing condition of the corresponding multimedia file.
  • the user can be automatically prompted about the missing multimedia file and the user can choose whether to restore the missing multimedia file, and automatically trigger the restoration and shooting process of the mobile phone. This method can ensure the integrity of the restoration template, and improves user experience.
  • the second aspect provides an electronic device, including: a display screen; one or more processors; one or more memories; a module installed with multiple application programs; the memory stores one or more programs, when the When the one or more programs are executed by the processor, the electronic device executes the following steps: displaying a shooting preview interface, the shooting preview interface including one or more shooting parameters displayed based on the first parameter set Screen; determine a first restoration template from the one or more restoration templates, the first restoration template is associated with a first multimedia file, and the first multimedia file is a photo, an animation, or a video clip Any one; acquiring a second parameter set corresponding to the first restoration template, the second parameter set including one or more shooting parameters for shooting the first multimedia file; receiving the first operation of the user, In response to the first operation, based on one or more shooting parameters included in the second parameter set, the second multimedia file is obtained by shooting, so that the second multimedia file and the first multimedia file The body file has the same display effect, and the second multimedia file is any one of photos, animations or video clips.
  • the one or more restoration templates include preset restoration templates; and/or, the one or more restoration templates include the associated multimedia A restoration template generated by one or more shooting parameters of the file.
  • the electronic device when the one or more programs are executed by the processor, the electronic device is made to perform the following steps: receiving the user's second Operation, in response to the second operation, select and determine the first restoration template from the one or more restoration templates; or, according to the shooting environment, automatically select the one or more restoration templates
  • the restoration template with the best shooting effect is determined as the first restoration template; or, according to the picture displayed on the shooting preview interface, the restoration template with the best shooting effect among the one or more restoration templates is automatically determined as The first recovery template; or, according to the frequency of use of the user, automatically determine the recovery template with the highest user frequency among the one or more recovery templates as the first recovery template; or, according to the user's usage record, Automatically determine the restoration template that the user has used most recently from among the one or more restoration templates as the first restoration template.
  • the electronic device after the acquisition of the second parameter set corresponding to the first restoration template, when the one or more programs are executed by the When the processor is executed, the electronic device is made to perform the following steps:
  • the electronic device when the one or more programs are executed by the processor, the electronic device detects that the first restoration template association When the first multimedia file is lost or damaged, the following steps may be performed: in the recovery shooting mode, a prompt message is displayed, and the prompt message is used to remind the user to restore the first multimedia file.
  • the second parameter set further includes framing information of the first multimedia file, and when the one or more programs are selected
  • the electronic device performs the following steps: according to the framing information of the first multimedia file, determining the framing range of the first multimedia file; receiving the user's fourth operation, responding The fourth operation is to obtain a third multimedia file by shooting based on one or more shooting parameters included in the second parameter set, and the third multimedia file and the first multimedia file have The same display effect and viewfinder range.
  • the second parameter set further includes operation parameters for the user to perform editing processing on the first multimedia file
  • the first multimedia file is obtained by shooting
  • the electronic device is made to perform the following steps: according to the operating parameters of the editing process, edit the second multimedia file Perform editing processing to obtain the processed second multimedia file, wherein the editing processing includes one or more of trimming ratio, adjusting filter color, adjusting beautification parameters, and adjusting brightness level.
  • the electronic device after the acquisition of the second parameter set corresponding to the first restoration template, when the one or more programs are executed by the processor When executed, the electronic device is made to perform the following steps: automatically update the picture displayed on the shooting preview interface of the electronic device based on one or more shooting parameters included in the second parameter set.
  • the shooting parameters include focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, One or more parameters in Level Meter Effect, Exposure, and Sensitivity.
  • the electronic device when the one or more programs are executed by the processor, the electronic device is made to perform the following steps: receiving the user's fifth Operation, responding to the fifth operation, enabling the function of resuming shooting; or receiving a sixth operation from the user, and entering a resuming shooting mode in response to the sixth operation.
  • the third aspect provides a graphical user interface system on an electronic device, the electronic device has a display screen, one or more memories, and one or more processors, and the one or more processors are used to execute the One or more computer programs in the one or more memories, the graphical user interface system includes a graphical user interface displayed when the electronic device executes the method according to any one of the first aspect and the first aspect .
  • a fourth aspect provides an apparatus, which is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in the first aspect and the method described in any one of the first aspect.
  • This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
  • Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a display module or unit, a detection module or unit, a processing module or unit, etc.
  • a fifth aspect provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the computer-readable storage medium described in the first aspect and the first aspect.
  • the sixth aspect provides a computer program product.
  • the computer program product is run on the electronic device, the electronic device is made to execute the first aspect or the method for restoring shooting according to any one of the first aspect.
  • FIG. 1 is a schematic structural diagram of an example of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a graphical user interface of an example of a user setting recovery shooting function provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a graphical user interface of a process of a user taking a photo provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a graphical user interface of an example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • FIG. 11 is a schematic flow chart of an example of a method for recovering shooting provided by an embodiment of the present application.
  • the operation information related to shooting can be recorded through the log or dots of the electronic device, and then professional analysis can be carried out according to the log or operation information related to shooting, and then the multimedia data such as photos and videos taken by the user using the mobile phone can be obtained.
  • Information about one or more shooting parameters such as focal length, resolution, beauty level, color index, and brightness parameters used in the file.
  • the user needs to actively set the electronic device to record the log or record the operation information related to shooting, and when the user recovers and takes the same or similar photos, the user needs to actively obtain and report the log or Operational information related to shooting.
  • related log information or shooting-related operation information recorded by dots can be understood as a kind of "file record information", which must be implemented based on software codes, and may not exactly correspond to the actual operation of the user.
  • the log needs to go through a series of reporting and analysis, and the relevant implementation process requires the participation of developers or professional technicians. Ordinary users cannot directly obtain the required information related to lost multimedia files such as photos and videos through the above implementation methods. operation information.
  • the embodiment of the present application will provide a method for recovering shooting, which can realize common users recovering and shooting similar multimedia files such as photos and videos.
  • the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
  • the method for restoring shooting provided by the embodiment of the present application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, notebook computers, super mobile personal Computers (ultra-mobile personal computer, UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and other electronic devices that have a shooting function, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • FIG. 1 is a schematic structural diagram of an example of an electronic device provided by an embodiment of the present application.
  • the electronic device in the embodiment of the present application may include part or all of the structure of the electronic device 100 shown in FIG. 1 , or may include more other structures not shown, which is not limited in the embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1.
  • Antenna 2 mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • 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 shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • 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
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the processor 110 of the electronic device 100 stores a computer program or instruction corresponding to the method for realizing the recovery shooting.
  • the processor 110 of the electronic device 100 stores a method for realizing recovery shooting, and the method may provide a new shooting solution for the user.
  • the method can enable the electronic device to generate one or more restoration files corresponding to multimedia files such as photos, animations, and video clips according to one or more shooting parameters.
  • Template file when multimedia files such as photos, animations, and video clips taken by the user are lost or deleted by mistake, based on the associated recovery template file, the recovery shooting can be quickly realized.
  • the user can use the associated restoration template file to restore the shooting process, re-shoot other different objects, and restore multimedia files such as photos, animations, and video clips with the same effect; Select the same or similar viewing range to restore multimedia files such as photos, moving pictures, and video clips with the same effect and the same viewing range.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship among the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G/6G applied on the electronic device 100 .
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 cooperates with modules such as the GPU, the display screen 194 and the application processor, and then displays images, application interfaces, controls, icons, window, etc., to realize the display function of the electronic device 100 .
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the electronic device 100 can start the shooting function of the camera by running the camera application, and display a shooting preview interface on the camera application interface.
  • the shooting preview interface can display the pictures captured by the camera, and One or more controls such as the shutter control, the user can tap the shutter control to take photos, record video clips, etc., and save the photos and video clips in the local gallery application, which will not be described here.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on 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 located in the camera 193 .
  • the electronic device 100 can adjust one or more shooting parameters through the ISP, such as one or more parameters in the beautification parameter, filter color, exposure, and sensitivity.
  • the embodiment of the application does not limit this.
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the camera 193 may include a front camera and a rear camera, or one or more types of cameras such as a wide-angle camera, a macro camera, a depth-of-field camera, and a portrait camera.
  • a wide-angle camera such as a wide-angle camera, a macro camera, a depth-of-field camera, and a portrait camera.
  • the number and types of cameras 193 that may be included in the electronic device 100 are not limited.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the touch sensor 180K can detect user operations such as touch and click, generate an operation event, and transmit the operation event to the processor 110, and the processor 110 determines that the operation event includes touching Point coordinates, touch status and other related parameters, and respond according to the operation event.
  • the operation event may include information on the shooting shutter control, user touch operation information, etc., and transmits it to the processor 110, and the processor 110 completes the shooting operation according to the picture collected by the camera, and obtains a photo.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. 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 motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • a layered architecture an event-driven architecture
  • a micro-kernel architecture a micro-kernel architecture
  • a micro-service architecture a cloud architecture.
  • the embodiment of this application uses a layered architecture
  • the system is taken as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
  • the layered architecture of the system can include several layers, each layer has a clear role and division of labor, and the layers communicate through software interfaces.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the The system is divided into four layers, from top to bottom are application layer, application framework layer, Android runtime ( runtime) and system libraries, and the kernel layer.
  • the application layer can consist of a series of application packages.
  • the application program package may include application programs such as camera, music, photo album, and settings.
  • the user can take photos, animations, video clips and other multimedia files through the camera application, and the photos, animations, video clips and other multimedia files taken can be saved in the photo album (gallery) application.
  • the "camera application” in the embodiment of the present application may be a camera application configured in the factory of the electronic device, which may include different shooting modes such as taking pictures, video recording, and dual-view recording, which is not limited in the embodiments of the present application.
  • 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. As shown in Figure 2, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, etc., as well as a camera service (camera service) module involved in the embodiment of the present application.
  • the window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • the display including the icon of the camera application on the mobile phone interface may include a view for displaying text and a view for displaying pictures.
  • 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 can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or 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.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the camera service module of the embodiment of the present application may specifically include sub-modules such as a parameter acquisition module, a restoration template generation module, and a restoration template storage module, so as to realize the function of restoring shooting in the embodiment of the present application.
  • the parameter acquisition module can be used to acquire one or more shooting parameters corresponding to any multimedia file such as photos, animations, and video clips.
  • the parameter acquisition module can obtain focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, level effect, exposure , One or more parameters in Sensitivity. And/or, obtain one or more editing parameters related to the editing process performed by the user, such as trimming ratio, adjusting filter color, adjusting beautification parameters, and adjusting brightness level, which is not limited in this embodiment of the present application.
  • the recovery template generating module can generate one or more associated parameters of each multimedia file such as photos, animations, and video clips according to one or more shooting parameters acquired by the parameter acquisition module, and/or, one or more editing parameters. Restore template files.
  • the restoration template generation module can also automatically determine the names of one or more restoration template files according to preset rules, and automatically save the one or more restoration template files to the restoration template storage module.
  • the recovery template storage module is used to store the one or more recovery template files.
  • Android runtime includes core library and virtual machine. The 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 function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program 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.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the image processing library can provide analysis for various image data and provide a variety of image processing algorithms, such as image cutting, image fusion, image blurring, image sharpening, etc., which will not be repeated here.
  • the application interface when a certain application interface is displayed on the display screen of the electronic device, the application interface can be sequentially processed based on the view system, 2D graphics engine, 3D graphics processing library, image processing library, etc. Image rendering, compositing, layer processing, etc., and finally display the application interface on the display screen, such as the shooting preview interface of the camera application.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the user uses the camera application process or restores the photos, through the cooperation of the multiple software modules and hardware modules introduced above, for example, the user displays the shooting preview interface, and detects the user's Operation, in response to different operations of the user, adjust the display of the interface or perform various operations, which will not be repeated here.
  • the following embodiments of the present application will take the mobile phone with the structure shown in FIG. 1 and FIG. 2 as an example, in combination with the accompanying drawings and application scenarios, to specifically describe the method for restoring shooting provided by the embodiments of the present application.
  • the user may enable the recovery shooting function of the electronic device.
  • Fig. 3 is a schematic diagram of a graphical user interface (GUI) provided by an embodiment of the present application for a user to set and restore a shooting function.
  • GUI graphical user interface
  • the main interface 301 may include a top status bar area and an interface display area, and the top status bar area may display the operator logo, wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network) signal logo, mobile phone power logo and current time and other one or more content, the interface display area A weather clock component and various applications (applications, Apps) installed on the mobile phone are shown.
  • the application programs may include phone, message, gallery, camera, and the like. It should be understood that the main interface 301 may also include other more content or display more application programs, and this embodiment of the present application does not limit the content displayed on the main interface of the mobile phone.
  • the user performs the operation shown in (a) in Figure 3, clicks the icon of the camera application, and in response to the user's operation, the mobile phone can display the image shown in (b) in Figure 3
  • the main interface 302 of the camera application can also be referred to as a "shooting preview interface", and different images and frames can be presented in the shooting preview interface, and the presented images and frames are called "preview images”. Or "Preview Screen”.
  • the shooting preview interface 302 may include a navigation area at the bottom, a display area of a preview image in the middle, and a menu area at the top.
  • the bottom navigation area displays a shooting shutter control 31, a local photo album control 32 and a camera switching control 33, and also shows a night scene , portrait, photo, video, professional and other shooting mode controls;
  • the display area of the preview screen in the middle is used to display the image or screen captured by the current mobile phone camera;
  • the top menu area can display one or more controls, such as the flash automatic control control 34.
  • the embodiment of the present application does not limit the number or types of controls displayed in each area. For simplicity, different functions of each control are not described in detail in this embodiment of the present application.
  • the mobile phone can display the camera setting interface 303 as shown in (c) in FIG. 3 .
  • the camera setting interface 303 displays a variety of setting options related to the shooting process, such as photo ratio options (for example, setting the photo ratio to [4:3]), voice-activated photo options, smiling face capture options, etc.
  • Relevant setting options, as well as video resolution options such as setting the video aspect ratio to [16:9], video resolution to 1080p), video frame rate options and other setting options related to recording video, as well as reference line options, timing shooting Options and other general setting options, which are not limited in this embodiment of the present application.
  • the embodiment of the present application can add a "recovery template” option for the user in the options related to the general settings, and the user can manually enable the function of restoring the shooting provided by the embodiment of the present application through the switch corresponding to the "recovery template” option.
  • the "restore template” option may also be added to other possible options or menus, which is not limited in this embodiment of the present application.
  • the user performs operation 1 as shown in (c) in FIG. 3, clicks the switch corresponding to the "restore template” option, and in response to the user's operation, the switch corresponding to the "restore template” option is switched to on ( ON) state, the mobile phone has opened the function of restoring shooting; then perform operation 2 as shown in (c) in Figure 3, click the "return” control, in response to the user's operation, the mobile phone can return to the shooting preview interface, displaying The interface 304 shown in (d) of FIG. 3 .
  • the area can display the recovery control 37, and the embodiment of the present application does not limit the display style of the recovery control 37.
  • the developer can configure the restoration control 37 to always be displayed in the shooting preview interface, and the shooting preview interface can always be presented as shown in FIG. 3 (d)
  • the user can click the restore control 37 to quickly enable the function of recovering photos on the mobile phone, which simplifies the operation process and makes the operation of enabling the function of restoring photos more convenient.
  • the restoration control 37 may have different display states. For example: a non-working state shown in gray or superimposed with an arrow mark, or a working state shown in black or without an arrow mark.
  • the display mode of the restoration control 37 can refer to the display of existing controls such as the automatic flashlight control control 34 and the AI shooting control 35, and the user can click the restoration control 37 to switch between different display states. Let me repeat.
  • the developer may configure the function of recovering shooting to be enabled by default.
  • the developer can configure the function of recovering shooting as a preset function of the mobile phone system, a preset function of the camera application, or a preset function of the associated gallery application.
  • This embodiment of the present application does not make any limited. This method does not require additional operations by the user to activate the function of recovering the shooting, thereby simplifying the operation of the user.
  • the function of restoring shooting is configured as a preset function of the electronic device, it may have been authorized by the user, that is, multiple associated applications such as authorized camera application and gallery application can call the function of restoring shooting.
  • multiple associated applications such as authorized camera application and gallery application can call the function of restoring shooting.
  • the embodiment does not limit this.
  • the embodiment of the present application can also support the user to turn off the preset function through the setting control of the camera application; or turn off the preset function through a certain menu or control of the gallery application ; Or, turn off the default function through the menu related to the system-level setting application, which is not limited in this embodiment of the present application.
  • the user can take photos, record videos, etc. through the camera application.
  • the following embodiments will take the photo taken by the user as an example to introduce the photo taking process provided by the embodiment of the present application, and how the user recovers the photo after the photo taken by the user is lost or deleted by mistake.
  • the user in the process of taking photos, can manually adjust one or more shooting parameters according to his own shooting needs, for example, the user can perform a function such as adjusting the focal length, switching cameras, and adjusting the beauty level, etc. or multiple operations to adjust the corresponding shooting parameters.
  • Table 1 lists various possible user operations and shooting parameters that may be adjusted by the user operations. As shown in Table 1, the user can perform one or more operations, and each user operation can act on a different object, thereby modifying the actual shooting parameters of the current shooting.
  • the user can set the zoom mode in the process of taking pictures according to the motion state of the subject, etc.
  • the "zoom mode" can include a single auto focus (auto Focus single (AF-S) mode, continuous auto focus (auto focus continue, AF-C) mode, manual focus (manual focus, MF) mode, etc.
  • AF-S mode can be used to shoot static subjects
  • AF-C mode can be used to focus on continuous moving subjects
  • MF mode can be used to shoot unpredictable moving subjects, etc.
  • the user can set different zoom modes according to the current shooting object and shooting requirements, so as to shoot different objects with different focal lengths in different zoom modes, which will not be described in this embodiment of the present application.
  • the user can turn on the beautification processing function of the camera application during the shooting process, and adjust the beautification level according to the shooting needs.
  • the mobile phone can provide users with different beautification levels from 0 to 10. Different beautification levels can correspond to different beautification parameters such as skin color, skin texture, and smoothness. Users can swipe left and right on the shooting preview interface to adjust Beautification parameters will not be repeated here.
  • one or more operations that may be performed by the user are introduced in conjunction with Table 1 above, and any combination of one or more user operations can be called “user's meta-operation", and “user's meta-operation” can be initiated by the user initiated.
  • the "user's meta-operation” may include: adjusting the resolution, adjusting the focal length, switching lenses, adjusting the beauty level, etc., and one or more of various operations involving modification of shooting parameters.
  • the number and types of operations included in the "meta-operation” are not limited.
  • the "user's meta-operation" described above can occur before shooting, for example, before shooting, the user sets the resolution of the photo, the ratio of the photo, the size of the storage space occupied by the photo, etc.
  • the one or more user operations can occur during shooting, for example, when the user is shooting, the beautification function can be turned on to adjust the beautification level of the current shooting.
  • the user may switch multiple cameras such as the front camera and the rear camera during the video recording process, and this embodiment of the present application does not limit the occurrence timing of the "user's meta-operation".
  • the mobile phone as an intelligent electronic device, can automatically adjust one or more shooting parameters involved in the shooting process in combination with the current shooting environment, and/or based on intelligent software algorithms, etc. .
  • the mobile phone can automatically focus on the subject; or, the mobile phone detects the shooting environment, and can automatically adjust the shooting brightness during the night when the shooting environment is dark; or, various AI of the mobile phone Capability items such as recognition can automatically adjust related parameters, and the embodiment of the present application does not limit the types of parameters that can be automatically adjusted by the mobile phone.
  • operation objects all possible “objects that cause changes in the display effect of the photographed photos” are called “operation objects", and the “operation objects” can include those initiated by the user or automatically adjusted by the mobile phone. And each operation object can lead to a change of shooting parameters, which in turn causes a difference in the display effect of the captured photos. In the introduction of subsequent embodiments, it will not be distinguished whether the "operation object" is initiated by the user or caused by the intelligent operation of the electronic device.
  • Table 2 lists a variety of operation objects, the display effect corresponding to each operation object, the applicable shooting mode, and the timing that can be adjusted or modified.
  • each type of operation object that causes a change in the effect of the captured photo may correspond to a different timing for adjustment or modification.
  • the user can be supported to adjust before taking the photo, but not during the shooting process; for the lens, the user can be supported to select before taking the photo, and it can also support switching during the shooting, No more details here.
  • Fig. 4 is a schematic diagram of a graphical user interface of a process of a user taking a photo provided by an embodiment of the present application.
  • the mobile phone may display an interface 402 as shown in (b) of FIG. 4 . Then execute the operation shown in (b) figure in Figure 4, click the control 38 of the beauty function, in response to the user's operation, the mobile phone opens the beauty function related to shooting, and displays (c) in Figure 4 ) shown in the interface 403, in this interface 403, different beauty levels from 1 to 10 are displayed, and the user can manually select the desired beauty level. For example, the corresponding beauty level when the user selects the current photo is 8 grades.
  • the preview image displayed on the current shooting preview interface 404 (including "adult And the child” screen) has the display effect after "1.5 ⁇ " magnification and 8 levels of beauty treatment.
  • the user can also manually set more display effects, such as adding different filters, adding different widgets, icons, etc., which is not limited in this embodiment of the present application.
  • the user performs the operation shown in (d) of Figure 4, clicks the shooting shutter control 31, and responds to the user's shooting operation, the mobile phone obtains the current preview image with "1.5 ⁇ " magnification and 8 levels of beauty treatment, and Save this preview image to your local camera roll as a captured photo.
  • the captured photos may be displayed in the local album control 32 in the form of thumbnails, which will not be repeated here.
  • magnification of "1.0 ⁇ " and "1.5 ⁇ ” can be understood as the display effect of the preview image in the shooting preview interface described from the user's perspective.
  • Different magnifications can correspond to different focal lengths.
  • different display effects can be presented to the user, which will not be repeated in the future.
  • the camera application can record the process of the user taking the photo and determine the shooting parameters involved in taking the photo.
  • the shooting parameters corresponding to each photo may include one or more shooting parameters manually adjusted by the user, one or more shooting parameters automatically adjusted by the mobile phone, etc. Parameters related to effect changes.
  • operation objects such as focal length and beautification
  • users can be supported to adjust before shooting, and users can also be supported to adjust during shooting. Therefore, operation objects such as focal length and beautification can be included in Operation Object" and "Operation Object During Shooting", and can correspond to different actual shooting parameters.
  • operation objects such as resolution and address location
  • users are only allowed to adjust before shooting, and users are not supported to adjust during shooting. Therefore, operation objects such as resolution and address location can only be included in the "operation objects before shooting" , will not be repeated here.
  • the camera application of the mobile phone can generate a corresponding "restoration template file" according to the shooting parameters of each photo.
  • the camera application of the mobile phone can generate a corresponding "restoration template file" according to the image data included in each photo and the shooting parameters of the photo.
  • each photo taken by the user may include different image data and shooting parameters, and each photo corresponds to a unique "restoration template file”.
  • the photo 1 taken in (d) of FIG. 4 corresponds to the unique recovery template file 1 .
  • each photo can be associated or bound with the "restoration template file" in various possible ways.
  • each photo can be associated with the "restoration template file” through the file name; or, by generating a unique hash value for each photo to associate with the "restoration template file”; or, The key value preset for each photo is associated with the "restoration template file", which is not limited in this embodiment of the present application.
  • Table 4 lists the association manners between the multiple photos and the restoration template file.
  • a unique photo name can be automatically generated for the photo, such as IMG-2021-12-R1, which is automatically generated according to the name of the photo and preset rules
  • the name of the recovery template file for this photo For example, add the suffix -11 to the name of the photo to generate the restoration template file IMG-2021-12-R1-11 corresponding to the photo, and save the photo and the associated restoration template file.
  • the user can also edit the photo.
  • the user may perform one or more editing operations such as trimming the ratio of the photo, adjusting the filter color of the photo, and adjusting the beauty level. For example, after the shooting is completed, the user can modify the beauty level of the photo, and/or adjust the brightness of the photo, and/or add a filter color to the photo, etc.
  • the mobile phone can record all editing parameters involved in the photo editing process of the user, and can add the "editing parameters" to the recovery template file 1 corresponding to the photo 1.
  • the recovery template file 1 uniquely corresponding to the photo 1 can be generated and stored. After the shooting is completed, when the user’s editing operation on the photo 1 is detected, the operation object of the user’s editing operation can be recorded. , and add the relevant parameters (related parameters of the editing operation) of the photo effect change caused by the user operation to the restoration template file 1 corresponding to the photo 1 .
  • the mobile phone can record one or The editing parameters of various editing operations, in the restoration template file of the photo 1, add "editing parameters" to the "operated object after shooting" part in Table 3, update and store it in the restoration template file 1 of the photo 1 .
  • each photo taken by the user on the mobile phone can generate a unique corresponding recovery template file after the user takes the photo.
  • the recovery template file corresponding to the lost or accidentally deleted photo has not been deleted, and is still stored in on the phone.
  • the user can restore the photo based on the restoration template file corresponding to the lost or mistakenly deleted photo according to the method for restoring shooting in the embodiment of the present application, and then help the user to retake the same or mistakenly deleted photo as the lost or mistakenly deleted photo. similar photos.
  • the term “restoration” in terms of “restoration of photos”, “method of restoring shooting”, “restoration process” and so on may include the following meanings: based on the lost or mistakenly deleted
  • the restoration template file corresponding to the photo further restores the process of taking the photo, thereby re-shooting the photo with the same shooting parameters; and/or, based on the restoration template file corresponding to the lost or mistakenly deleted photo, select the same viewfinder, Take photos with the same field of view.
  • the obtained "restored photo” can at least include the following possible situations:
  • the "restored photo” can only have the same shooting parameters as the lost or mistakenly deleted photo 1, and have a different viewing range;
  • the "restored photo” may only have the same viewing range as the lost or mistakenly deleted photo 1, and have different shooting parameters;
  • the "restored photo” can have the same shooting parameters and the same viewing range as the lost or mistakenly deleted photo 1.
  • FIG. 5 is a schematic diagram of a graphical user interface of an example of a recovery shooting process provided by an embodiment of the present application.
  • the navigation area at the bottom of the shooting preview interface of the camera application displays various shooting mode controls such as night scene, portrait, photo, video, professional, etc.
  • a new shooting mode control can also be added: a "recovery" mode control as shown in (a) in FIG. 5 .
  • the user can slide left and right in the display area of the shooting mode control in the bottom navigation area to view more shooting modes or switch the current shooting mode, for example, the user switches the current shooting mode It is the recovery mode, and correspondingly, the "small black triangle icon" used to locate the current shooting mode can point to the "recovery" mode control.
  • the user performs an operation as shown in (a) in FIG. 5 , clicks on the "recovery" mode control, and in response to the user's operation, the mobile phone displays an interface 502 as shown in (b) in FIG. 5 , the interface 502 can be understood as an interface for selecting a restoration template.
  • the restoration template selection interface 502 a restoration template selection window may be suspended and displayed, and one or more restoration templates (or one or more restoration template files) may be displayed in the restoration template selection window.
  • thumbnails of one or more photos may be displayed in the restoration template selection window, and the user may select a desired restoration template file corresponding to the photo by clicking on a thumbnail of a photo.
  • the restoration template selection window may display the names of one or more photos in a list form, and the user may select a desired restoration template file by clicking on a restoration template name.
  • the restoration template selection window may display the names of one or more restoration template files in a list form, and the user may select a desired restoration template file by clicking on the name of a restoration template file.
  • the display mode of one or more recovery template files in the recovery template selection window is not limited.
  • one or more restoration templates displayed in the restoration template selection window can be sorted according to preset rules.
  • the interface shown in (b) in FIG. 5 One or more restoration templates displayed in the restoration template selection window displayed at 502 may be the same or different.
  • the one or more recovery templates included in the recovery template selection window include preset recovery templates; and/or, the one or more recovery templates included in the recovery template selection window include: the electronic device according to A recovery template generated by one or more shooting parameters of multimedia files such as associated photos, animations, and video clips.
  • two fixed recovery templates are set by the developer when the mobile phone leaves the factory, and the recovery templates correspond to fixed shooting parameters, which can make the mobile phone have a relatively high-quality shooting effect.
  • the mobile phone can intelligently detect the shooting environment, shooting objects, etc., and intelligently match different shooting templates for the user according to external factors such as the shooting environment and shooting objects.
  • one or more restoration templates displayed in the restoration template selection window may include parameters suitable for nighttime photography.
  • the mobile phone can intelligently display one or more recovery templates with high frequency of use for the user according to the user's frequency of use and shooting habits.
  • the restoration template file corresponding to the photo named "IMG-2021-12-R1" has the highest frequency of use, and will be preferentially displayed in the restoration template selection window, which is not limited in this embodiment of the present application.
  • the recovery template selection window on the interface 502 can display the names of multiple photos that the user has taken that are listed in Table 4, and the user clicks on the name "IMG- 2021-12-R1", in response to the user's operation, the mobile phone confirms that the user has currently selected the restoration template file corresponding to the photo named "IMG-2021-12-R1", and the mobile phone can further display as shown in Figure 5 (c) Interface 503 shown in the figure.
  • the interface 503 may present one or more parameter information in the restoration template file corresponding to the photo named "IMG-2021-12-R1" to the user in the form of a floating window.
  • the one or more types of parameter information may include basic information such as the name of the photo, the thumbnail of the photo, and the storage location of the restoration template file. It should be understood that displaying the thumbnail of the photo 1 can help the user determine the image content of the photo to be restored, help quickly locate the object to be photographed, and improve the efficiency of restoring the photo.
  • the one or more parameter information may also include one or more shooting parameters such as focal length, resolution, beauty level, and AI color before shooting, and/or, focal length and beauty level during shooting One or more shooting parameters, and/or one or more editing parameters related to editing operations such as trimming, filter, and brightness after shooting, which is not limited in this embodiment of the present application.
  • shooting parameters such as focal length, resolution, beauty level, and AI color before shooting, and/or, focal length and beauty level during shooting
  • One or more shooting parameters, and/or one or more editing parameters related to editing operations such as trimming, filter, and brightness after shooting, which is not limited in this embodiment of the present application.
  • the interface 503 can display some of the parameter content listed above, and the user can view more parameter content through sliding operations, page turning operations, pull-down operations, etc., or View more parameter content by clicking the preset control, which is not limited in this embodiment of the present application.
  • the basic information of the photo 1, one or more parameters before shooting listed in Table 3, and shooting One or more parameters in, one or more parameters after shooting.
  • the basic information of the photo 1 may include a thumbnail of the photo 1, a name of the photo 1, a file format, storage location information, and the like.
  • a photo may include shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting listed in Table 3 at the same time.
  • shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting may include the same parameter type.
  • the final parameters corresponding to the display effect presented to the user may prevail.
  • the shooting parameters before shooting, the shooting parameters during shooting, and the editing parameters after shooting all include "beauty level parameters", then the beauty level can be the beauty level before shooting , the beauty level during shooting, and the beauty level after shooting are superimposed and the final beauty level corresponding to the display effect presented to the user shall prevail, and shall be saved in the restoration template file.
  • the filter color parameter can be the filter color level corresponding to the display effect of the photo finally presented to the user as It is stored in the recovery template file, which is not limited in the embodiment of this application.
  • the user can also modify one of the recovery template files. one or more parameters.
  • modifying one or more parameters in the recovery template file may include the user performing operations such as editing, deleting, adding, adjusting, etc. on one or more parameters.
  • the floating window of the interface 503 presents the user with one or more parameter information in the restoration template file corresponding to the photo named "IMG-2021-12-R1" , the user performs the operation shown in (c) in FIG. 5, clicks the brightness adjustment control after shooting, and in response to the user's operation, the mobile phone displays an interface 504 as shown in (d) in FIG. 5 .
  • the interface 504 can display a brightness progress bar with a brightness level ranging from 0 to 10, and the user can slide a finger on the brightness progress bar to adjust the brightness level.
  • the user modified the brightness level of photo 1 to level 3 in the editing operation after shooting listed in Table 3, and during the shooting process of the restored photo in Fig. 5, the In operation 1, modify the brightness level to 7, and then perform operation 2, click the "OK" control, and in response to the user's operation, the mobile phone displays an interface 505 as shown in (e) in FIG. 5 .
  • the mobile phone may pop up a "delete” option in response to the user's operation, and the user may click on the delete option and confirm the execution of the delete operation.
  • the post-shooting brightness adjustment parameters included in the recovery template file of the photo 1 are deleted, and will not be repeated here.
  • the operation shown in (e) in Figure 5 can be performed, and the "OK" control in the floating window can be clicked , in response to the user's operation, the mobile phone displays a shooting preview interface 506 as shown in (f) in FIG. 5 .
  • the relevant shooting parameters can be defaulted to the default shooting parameters of the current camera, for example, it has a magnification of "1.0 ⁇ ", and the beauty level is not enabled and other effects such as filter colors.
  • Relevant shooting parameters can be automatically adjusted to one or more parameters included in the recovery template file, for example, the magnification factor of "1.5 ⁇ " displayed on the shooting preview interface 506, the beautification level (beauty level 6) and others are enabled. Effects such as filter color.
  • the mobile phone in response to the user's operation, can generate a new restoration template file and automatically save the new restoration template file by combining the modified parameters and one or more parameters in the original restoration template file according to the user's operation, For example, the new recovery template file continues to add a suffix after the original recovery template file name and save it.
  • the mobile phone in response to the user's operation, can pop up a window, and the user can choose whether to automatically update or overwrite the original recovery template file, and respond according to the user's choice, which is not limited in the embodiment of the present application.
  • the user modifies the brightness to level 7.
  • the mobile phone can automatically pop up a window to provide the user with the choice of whether to save the parameter to restore Template file, if the user selects Yes, correspondingly, the brightness after shooting in the recovery template file corresponding to the photo named "IMG-2021-12-R1" is changed from the original 3 levels and saved as 7 levels.
  • the mobile phone automatically adjusts the current shooting parameters to one or more parameters included in the restoration template file, and the user takes pictures based on the automatically adjusted one or more parameters. Photos, that is, you can get photos that are the same as or similar to the lost or mistakenly deleted photo 1.
  • the above implementation method supports users to view, modify, edit, delete and other operations on one or more parameters in the restoration template file, and can update relevant parameters in the restoration template file according to the user's modification, editing, deletion and other operations , to meet the shooting needs of users in different scenes.
  • the user can accurately find the approximate viewfinder range based on the basic information of the photo included in the restoration template file, and make the preview screen in the shooting preview interface of the camera application display the same viewfinder, thereby restoring the same viewfinder. or a similar photo.
  • thumbnail, geographic location and other basic information of the lost or accidentally deleted photo 1 are displayed in the floating window of interface 503 or interface 505, and the user can Information such as thumbnails and geographic location locates the same viewfinder, and performs the operation shown in (f) in Figure 5, clicks on the shooting shutter control 31, in response to the user's operation, the mobile phone completes the shooting and stores the taken photos locally photo album.
  • the photo taken by the user when the photo taken by the user is lost or deleted by mistake, the photo can be taken again based on the recovery template file corresponding to the lost or deleted photo according to the method for recovering the photo provided in the embodiment of the present application, and the photo can be taken again
  • the photo can have the same shooting parameters, editing parameters, etc., and/or can have approximately the same viewing range as the lost or accidentally deleted photo, so as to restore the same or similar photos to the lost or accidentally deleted photo for the user
  • This process does not require the user to manually reset the relevant shooting parameters, editing parameters, etc., and the shooting process and/or viewfinder range of the photo can be restored, and the restoration of the photo can be quickly realized, which simplifies the shooting operation and improves the user's convenience. experience.
  • the mobile phone can automatically remind the user that the original photo is missing, and automatically trigger the recovery shooting process of the mobile phone .
  • FIG. 6 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • an interface 602 as shown in (b) of Figure 6 may be automatically displayed.
  • the interface 602 includes a prompt window, and the prompt window includes prompt information, and the prompt information is used to prompt the user: the source files of the following photos are lost or damaged, please confirm whether to repair them?
  • the prompt window also shows the name of one or more photos that are missing or damaged, such as a photo named "IMG-2021-12-R1", a photo named "IMG-2021-11-R3" and a photo titled "IMG-2021-10-R5".
  • the user can perform operation 1 as shown in Figure 6 (b), click the control where the photo name of "IMG-2021-12-R1" is located, and then perform operation 2, click the "Yes” control, and respond to the user's operation , the mobile phone displays an interface 603 as shown in (c) in Figure 6, and this interface 603 can present the recovery template file corresponding to the photo named "IMG-2021-12-R1" to the user in the form of a prompt window
  • this interface 603 can present the recovery template file corresponding to the photo named "IMG-2021-12-R1" to the user in the form of a prompt window
  • the user can perform the operation shown in (c) in Figure 6, click The "OK” control in the prompt window, in response to the user's operation, the mobile phone displays a shooting preview interface 604 as shown in (d) in Figure 6, and the user can accurately find the photo "IMG-2021-12-R1"
  • the approximate viewfinder range so as to click on the shooting shutter control 31 to take the same or similar photos.
  • the re-taken photo may have the same shooting parameters, editing parameters, etc. as the missing photo, and/or Or can have approximately the same viewing area.
  • the mobile phone can automatically save the retaken photo, name the retaken photo "IMG-2021-12-R1", and create the photo "IMG-2021-12-R1" and the recovery template file.
  • the process introduced in Figure 5 can be understood as the process of restoring a photo initiated by the user when a certain photo is lost or deleted by mistake.
  • the process described in Figure 6 can be understood as that when the camera application switches the recovery mode, it can automatically detect whether there are corresponding missing photos in the multiple recovery template files stored in the mobile phone.
  • the user can be automatically prompted about the missing photo and the user can choose whether to restore the missing photo, and automatically trigger the restoration shooting process of the mobile phone to ensure the integrity of the restoration template.
  • the application scenarios of this application are enriched.
  • the user can be provided with a way to actively restore the missing photos, and the user can also be prompted to choose to restore the missing photos, which can ensure the integrity of the restoration template. Integrity, and the process of restoring photos is easy to operate, can quickly restore the previous shooting process, and improves the user experience.
  • the user can directly click the "Yes" control in the prompt window, and the mobile phone selects all photos by default All restoration is performed to improve the efficiency of restoring photos, which is not limited in this embodiment of the present application.
  • the mobile phone when it is detected that a photo corresponding to a restoration template file is missing, the mobile phone can automatically prompt the user for the missing photo and allow the user to choose whether to restore the missing photo, or the user can choose to refuse to restore the missing photo. photo.
  • the missing one or more photos may be deleted by the user on his own initiative and no longer needs to be restored.
  • the user can perform the operation shown in (d) in Figure 7, and click the
  • the mobile phone displays a shooting preview interface 705 as shown in (e) in Figure 7, and the user can accurately find the approximate viewfinder range of the photo "Photo 1-R2", Thereby, click the shooting shutter control 31 to take the same or similar photos.
  • This process can refer to the above-mentioned related descriptions, and for the sake of simplicity, it will not be repeated here.
  • the re-taken photo may have the same shooting parameters, editing parameters, etc., and/or may have approximately the same framing as the photo corresponding to the recovery template file selected by the user scope.
  • FIG. 8 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • the user when the user views the photo and the restored photo taken based on the restored shooting file meets the user's needs for restoring the photo, the user can perform the operation shown in (c) in Figure 8 and click "Save And update the shooting parameters" control, in response to the user's operation, the mobile phone can save the photo to the local album, and update the relevant shooting parameters, editing parameters, etc.
  • One or more parameter information when the user views the photo and the restored photo taken based on the restored shooting file meets the user's needs for restoring the photo, the user can perform the operation shown in (c) in Figure 8 and click "Save And update the shooting parameters" control, in response to the user's operation, the mobile phone can save the photo to the local album, and update the relevant shooting parameters, editing parameters, etc.
  • One or more parameter information one or more parameter information.
  • the mobile phone in response to the user's click operation, can continue to return to the display as shown in (a) in Figure 8
  • the shooting preview interface 801 is opened, and the captured photos are automatically saved, which is not limited in this embodiment of the present application.
  • the user when the user views the photo and the restored photo taken based on the restored shooting file cannot meet the user's needs for restoring the photo, the user can perform the operation shown in (d) in Figure 8, click "Retake” control, in response to the user's operation, the mobile phone can return to display the shooting preview interface 805 as shown in (e) in FIG. 8 .
  • the shooting preview interface 805 the user can click the "recovery” mode control, and in response to the user's operation, the mobile phone displays a recovery template selection interface 806 as shown in (f) in Figure 8, and the user can It is necessary to reselect the desired target restoration template from one or more restoration templates, and then perform restoration and shooting again.
  • the specific content can refer to the relevant description of the foregoing embodiments, and for the sake of brevity, details are not repeated here.
  • the shooting process can be restored to shoot other different objects, and the viewfinder range of the previous photos can be accurately determined to restore the previous photos. And in this process, the user can preview and view the captured photos after completing the shooting, and judge whether the restored photos meet the requirements.
  • the photo is saved, and the corresponding parameters are updated to the recovery template file; when the requirements are not met, the photo can be re-shot, or the recovery template file can be selected again, and the recovery shooting can be performed again.
  • This process can meet different application scenarios, can quickly restore photos, simplifies shooting operations, and improves user experience.
  • some recovery template files may be used infrequently or eliminated by the user. Then, for such recovery template files that are used less frequently, the embodiment of the present application may also support the user to delete, modify, edit, customize, etc. one or more recovery template files.
  • FIG. 9 is a schematic diagram of a graphical user interface of another example of a recovery shooting process provided by an embodiment of the present application.
  • a recovery template selection interface 901 is shown, and multiple recovery templates are displayed in a list form in a floating window on the interface 901 .
  • the user can perform the operation shown in (a) in Figure 9, long press the control corresponding to the photo named "IMG-2021-12-R1", and in response to the user's operation, the mobile phone will automatically pop up the operation window 902- 1, and display an interface 902 as shown in (b) of FIG. 9 .
  • the operation window 902-1 displays viewing related parameter options, delete options, edit options, custom options, and more options. The number of options is not limited.
  • the mobile phone deletes the recovery corresponding to the photo whose name is "IMG-2021-12-R1".
  • Template file correspondingly, the mobile phone will no longer display the deleted photo corresponding to the name "IMG-2021-12-R1" in the floating window of the recovery template selection interface 904 shown in (d) in Figure 9. Restoring the template will not be repeated here.
  • the user can also select to view relevant parameter options, edit options, custom options and more options, etc. in the operation window 902-1 shown in (b) of Figure 9 according to personal needs, and each option can be Implementing different functions, such as editing options, can support the user to modify and replace one or more parameters included in the recovery template, and details will not be repeated this time.
  • the above-mentioned embodiment takes the process of the user taking a photo as an example.
  • the mobile phone can edit the photo according to the photo taken by the user, one or more shooting parameters in the process of taking the photo, and/or the user's editing parameters of the photo after the photo is taken. Edit parameters and other content in the process, and generate the corresponding "restoration template file".
  • the user can restore the photo according to the restoration template file corresponding to the photo, so as to realize the restoration of the photo and retake a photo that is the same as or similar to the lost or mistakenly deleted photo.
  • the ability to restore shooting in this embodiment of the present application may be a system capability of an electronic device such as a mobile phone.
  • this system capability may be invoked by various application programs capable of shooting, such as a camera application.
  • the realization of the recovery shooting process can be based on the camera application configured when the mobile phone leaves the factory, and can also be based on any application that can take photos such as beauty camera and Meipai downloaded and installed by the user, or it can also be applied.
  • Any application that has functions such as photo shooting and video recording, such as an application is not limited in this embodiment of the present application.
  • the restoration process provided by the embodiment of the present application can also be applied to the scene where the user records video, such as recording video in other different shooting modes such as dual-view shooting, multi-view shooting, etc. Scenarios of fragments, this embodiment of the present application does not limit the scenarios available for the restoration process.
  • FIG. 10 is a schematic diagram of a graphical user interface of another example of the recovery shooting process provided by the embodiment of the present application.
  • FIG. 10 shows the shooting preview interface 1001 of the mobile phone, and the user switches the current shooting mode to the dual-view shooting mode.
  • the "black small triangle” used to locate the current shooting mode icon” can point to the "Double View” mode control.
  • two preview windows may be displayed: a preview window 1001-1 and a preview window 1001-2.
  • pictures in different preview windows may come from different mobile phone lenses.
  • the picture in the preview window 1001-1 can come from the rear wide-angle camera of the mobile phone, which is used to shoot distant scenery, and the picture is called the "background flow” picture; the picture in the preview window 1001-2
  • the picture can come from the front camera of the mobile phone and is used to shoot close-ups of people's faces. This picture is called a "foreground stream" picture.
  • the user can set different shooting parameters for the pictures in different preview windows, for example, the pictures in each preview window can be independently based on the different numbers listed in Table 3 and/or or different kinds of parameters to shoot.
  • the mobile phone can collect different images through different cameras. video frame, and record video clips based on the “background flow” frame and the “foreground flow” frame. Similarly, the user can click the shooting shutter control 31 again to end the recording process of the video segment, and save the recorded video segment locally.
  • the mobile phone may, according to the shooting parameters and/or editing parameters corresponding to each part of the image included in the video segment of the dual-view image, One or more recovery template files corresponding to the video segment are generated.
  • the video segment of the double-view picture can be understood as a combination of two parts of the picture
  • the recovery template file corresponding to the video segment of the dual-view picture can include: a first recovery template file, a second recovery template file and a third recovery template file. Restore template files.
  • the first restoration template file corresponds to include one or more parameters corresponding to the "background flow” picture, such as the parameters of different shooting cameras, the focal length set by the user, and shooting parameters such as beauty;
  • the second restoration template file corresponds to include One or more parameters corresponding to the "foreground flow” screen, such as different shooting camera parameters, user-set focal length, beauty and other shooting parameters;
  • the third restoration template file corresponds to the "background flow + foreground flow” screen corresponding all parameters of .
  • first restoration template file and the second restoration template file corresponding to the video clip of the dual-view picture may respectively correspond to different numbers and/or different types of parameters; or, the first restoration template file corresponding to the video clip of the dual-view picture
  • the template file and the second recovery template file include the same number and/or the same type of parameters, which is not limited in this embodiment of the present application.
  • the user can also restore the template file based on the corresponding recovery template file (such as the first recovery template file, the second recovery template file, the second recovery template file) based on the video segment of the dual-view picture. 3. Restoring template files), restoring photos, or restoring video clips, etc.
  • the user switches the current shooting mode to the recovery mode.
  • the mobile phone displays
  • the restoration template selection interface 1003 is shown in (c) of FIG. 10 .
  • One or more restoration templates are displayed in the floating window of the restoration template selection interface 1003 .
  • the one or more restoration templates displayed in the floating window of the restoration template selection interface 1003 may include: restoration templates corresponding to photos, and/or restoration templates corresponding to video clips, and/or animation A recovery template corresponding to a picture, and/or a recovery template corresponding to a different multimedia file such as a photo with sound.
  • the user can perform both the process of restoring photos and the process of restoring videos, and different processes can be determined according to the type of recovery template file selected by the user. For example, the distinction is made according to the suffix name and file name of the recovery template file selected by the user.
  • the restoration template selection window may include restoration templates corresponding to photos, and may also include restoration templates corresponding to video clips, and different restoration templates may be selected through different suffix names.
  • "-R" indicates "restore template”.
  • the suffix name of the restoration template of a photo contains "-P-R", for example, "Photo 1-P1-R", “Photo 2-P2-R” and “Photo 3-P3-R” respectively correspond to Photo 1, Photo 2 and Restoration template for photo 2;
  • the suffix name of the restoration template for video segment contains "-V”, such as "Video 1-2021-12-V1-R”, “Video 2-2021-12-V2-R” and “Video 3 -2021-12-V3-R" respectively correspond to the recovery templates of video clip 1, video clip 2, and video clip 3, which are not limited in this embodiment of the present application.
  • the mobile phone can judge that the user uses the current camera application to restore and take photos according to the suffix name of the restoration template selected by the user, and further proceed to the corresponding shooting mode.
  • the mobile phone can judge the user's current camera application to restore and record the video according to the suffix name of the restoration template selected by the user, and further proceed to the corresponding mode of recording the video.
  • the file names of one or more recovery templates for the user to select may not be distinguished as photo (-P), video (-V), etc. in the form of file type suffixes. type, only exists as a restoration template file in the form of -R.
  • the source file type corresponding to the restoration template file can be used to determine the current restoration of photos, animations, or videos.
  • the user selects one of multiple files named xxxx-R, if the source file type corresponding to the xxxx-R file is a photo, then the current recovery mode can default to the shooting process of the user's recovery photo. The embodiment of the application does not limit this.
  • the user can long press and select any one of one or more restoration templates, and in the pop-up window as shown in (b) in Figure 9 Select the "more” option in the operation window 902-1 to restore and take a photo, or restore and record a video.
  • the "more" option in the operation window 902-1 shown in (b) of FIG. option the user can select and restore different types of multimedia files according to the restoration template.
  • the "change” option is added in the operation window 902-1 shown in (b) of FIG. template, then through the “change (change)” option, you can further select options such as “video clip”, “moving picture”, and “photo with sound” to achieve: use the recovery template corresponding to the photo to restore other types of multimedia files. I won't repeat them here.
  • the user performs the operation shown in (c) in Figure 10, and clicks on the option named "Video 1-2021-12-V1-R".
  • the mobile phone confirms that the user has currently selected the option named "Video 1-2021-12-V1-R", the mobile phone can further display the interface 1004 shown in (d) in Figure 10, which shows the video of the dual scene
  • the user can click on different options to select different types of recovery template files and different parameters to perform recovery shooting.
  • the mobile phone uses the parameters included in the first restoration template file corresponding to the "Background Flow” screen as the parameters required for the current restoration shooting process, and the mobile phone can display as shown in Figure 10
  • the floating window of this interface 1005 further shows the video clip name "Video 1-2021-12-V1 (background flow)", the cover thumbnail of the "background flow” picture
  • the thumbnail the storage location of the first restoration template file (xxxxxx), one or more video recording parameters such as the shooting focal length, resolution, beauty level, and AI color of the "background flow” screen
  • the user clicks the "OK” control Then you can return to the shooting preview interface, and perform restoration shooting according to the first restoration template file corresponding to the "background flow” screen and the one or more video recording parameters.
  • the mobile phone is based on the "background flow" screen corresponding to the recording process of the first restoration template file to restore the video.
  • the video clip currently re-recorded by the mobile phone can be a single-screen video or a dual-screen video.
  • the mobile phone will use one or more video recording parameters included in the second restoration template file corresponding to the "foreground stream” screen as the parameters required for the current restoration shooting process.
  • the implementation process refers to The above implementation process will not be repeated here.
  • the mobile phone When the user clicks the "foreground flow + background flow” option, in response to the user's operation, the mobile phone will use all the parameters included in the "third original template file" corresponding to the dual-view image of "foreground flow + background flow” as the current recovery shooting
  • One or more video recording parameters required by the process the mobile phone can display the cover thumbnail of the "background flow” screen, the storage location of the first restoration template file, and the front view of the "background flow” screen on the interface 1005.
  • One or more video recording parameters such as focal length, resolution, beauty level, AI color, etc., and display the cover thumbnail of the "foreground flow” screen, the storage location of the second restoration template file, and the "background flow” screen.
  • One or more video recording parameters such as focal length, resolution, beauty level, AI color, etc. before shooting, will not be repeated here.
  • the mobile phone can return to the shooting preview interface, and continue to resume shooting according to the dual-view shooting mode similar to that shown in (a) in Figure 10, displaying two preview windows, and one The preview window is adjusted to one or more video recording parameters corresponding to the "foreground flow” screen, and the other preview window is adjusted to one or more video recording parameters corresponding to the "background flow” screen, and the user clicks the shooting shutter Key 31 is used to record video clips, which will not be repeated here.
  • the method provided in the embodiment of the present application can be applied to the dual-view shooting mode, and the video clips recorded in the dual-view shooting mode can also generate a restoration template file for restoring the shooting process.
  • the recovery template file corresponding to the video segment of the dual-view image can restore the common video segment of the single-screen image, the video segment of the dual-view image, and different types of multimedia files such as photos and animations.
  • This implementation method enriches the application scenarios of the present application and improves the utilization efficiency of the restoration template to a certain extent.
  • the restoration shooting process is easy to operate and can quickly restore the shooting process and/or framing content of multimedia files, which improves the user's use experience.
  • the “dual-view shooting” mode can be generated when recording video clips. It should be understood that the “dual-view shooting” mode can also generate more than three restoration template files. document.
  • the user can perform the operation of switching cameras midway, and when different cameras capture video images, different restorations can be generated independently
  • a template file, the recovery template file can be stored independently.
  • the "multi-view shooting” scene includes multiple shooting pictures, and the following different processing methods may be included in this scene:
  • the shooting picture of each scene corresponds to an independent restoration template file, and multiple restoration template files can be related to each other through the file suffix name;
  • Table 5 lists a possible way of associating multiple restoration template files.
  • the name of the video segment shot in multiple scenes is "Video 1-2021-12-V1-R", where the first scene
  • the first restoration template file corresponding to the shooting screen can be named “Video 1-2021-12-V1-R1”
  • the second restoration template file corresponding to the second scene shooting screen can be named "Video 1-2021-12-V1-R1”.
  • R2 the third recovery template file corresponding to the shooting screen of the third scene can be named "Video 1-2021-12-V1-R3".
  • Multi-view shooting mode Restoring Template Files Association method (suffix name) first shot First restore template file Video 1-2021-12-V1-R1 Second scene shooting screen Second recovery template file Video 1-2021-12-V1-R2 The third scene shooting screen The third recovery template file Video 1-2021-12-V1-R3 ... ... ... ...
  • these three restoration template files can be directly linked together as a whole restoration template file, that is, the first restoration template file, the second restoration template file and the third restoration template file can be used to reconstruct Recover multimedia files such as videos and photos in multiple scenes.
  • the 3 restoration template files can be used as independent restoration template files, and the user can choose any one or more of the 3 restoration template files to restore multi-view videos, photos and other multimedia according to individual shooting needs document, which is not limited in this embodiment of the present application.
  • the above-mentioned different implementation methods can make the restoration shooting process more flexible, allowing users to manually select and use one or more restoration template files according to their own shooting needs, providing users with more diverse and convenient restoration shooting methods, and improving User experience.
  • the restoration template file corresponding to the multimedia file can not only be used to restore the same type of multimedia file, but also can be used to restore different types of multimedia files.
  • the restoration template file corresponding to the video can be used to restore photos, videos, and animations to obtain multimedia files with the same or similar display effects.
  • the embodiment of the application does not limit this.
  • the photo or video used as the restoration template may be taken by the user through the mobile phone, downloaded by the user, or sent by other devices, and stored in the local photo album of the mobile phone.
  • the mobile phone can detect the photo and obtain the shooting parameters corresponding to the photo, such as the brightness level of the photo, filter color, etc., and generate a recovery template file for the photo
  • the restoration template file can also be combined with the process of restoring photos described above to guide the user to take other photos based on the restoration shooting file.
  • video may also have a similar implementation process, which will not be repeated here for simplicity.
  • the method for restoring shooting provided by the embodiment of this application provides users with a new shooting solution.
  • multimedia files such as photos, moving pictures, and recorded video clips taken by the user are lost or accidentally
  • the method can quickly realize recovery shooting based on one or more recovery template files stored in the electronic device.
  • the user can use the restoration template file to restore the shooting process, that is, use one or more shooting parameters included in the restoration template file to re-shoot other different objects, and restore photos, moving pictures, and recorded videos with the same display effect.
  • the user can also select the same viewing range to restore multimedia files such as photos, moving pictures, and recorded video clips with the same effect and the same viewing range.
  • the method can meet different application scenarios, can quickly restore photos, simplifies shooting operations, and improves user experience.
  • the method supports the user to perform operations such as viewing, modifying, editing, and deleting one or more parameters in the restoration template. Modify, edit, delete and other operations, update the relevant parameters in the restoration template file, or generate and save a new restoration template according to the updated relevant parameters, which meets the shooting needs of users in different scenes.
  • the mobile phone can automatically detect the multiple recovery template files stored Whether there is a missing condition of the corresponding multimedia file.
  • the user can be automatically prompted about the missing multimedia file and the user can choose whether to restore the missing multimedia file, and automatically trigger the restoration and shooting process of the mobile phone. This method can ensure the integrity of the restoration template, and improves user experience.
  • the above-mentioned embodiment introduces the process of restoring photos from the user interaction level with reference to FIG. 3 to FIG. 10 .
  • the following will introduce the method of restoring photos provided by the embodiment of the present application from the software implementation strategy level with reference to FIG. 11 .
  • this method can be implemented in an electronic device (such as a mobile phone, a tablet, etc.) with a display screen, one or more cameras and the like as shown in FIG. 1 and FIG. 2 .
  • an electronic device such as a mobile phone, a tablet, etc.
  • a display screen one or more cameras and the like as shown in FIG. 1 and FIG. 2 .
  • Fig. 11 is a schematic flowchart of a method for recovering shooting provided in the embodiment of the present application. Taking a mobile phone as an example, as shown in Fig. 11, the method may include the following steps:
  • the ability to restore shooting in this embodiment of the present application may be a system capability of an electronic device such as a mobile phone.
  • this system capability may be invoked by various application programs capable of shooting, such as a camera application.
  • the realization of the recovery shooting process can be based on the camera application configured in the factory of the mobile phone, and the user can run the camera application and display the shooting preview interface through the camera application of the mobile phone.
  • the implementation process of step 1101 may be shown in (a) of FIG. 3 .
  • the realization of the recovery shooting process may also be based on any other applications capable of taking photos, such as a beauty camera, a beauty camera, etc. downloaded and installed by the user.
  • the "shooting parameters" involved in the embodiment of the present application may include the focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, and level effect listed in Table 2. , Exposure, Sensitivity in one or more parameters.
  • the electronic device stores one or more recovery templates, or stores one or more recovery template files.
  • the one or more recovery templates include a preset recovery template.
  • two fixed recovery templates can be set by the developer when the mobile phone leaves the factory.
  • the recovery templates correspond to fixed shooting parameters.
  • the shooting parameters can make the mobile phone have a relatively high-quality shooting effect. Videos, etc., can display the preset restoration template.
  • the one or more recovery templates include a recovery template generated by the electronic device according to one or more shooting parameters of the associated multimedia file.
  • the mobile phone can intelligently detect the shooting environment, shooting objects, etc., and intelligently match different shooting templates for the user according to external factors such as the shooting environment and shooting objects.
  • one or more restoration templates displayed in the restoration template selection window may include parameters suitable for nighttime photography.
  • the mobile phone may intelligently display one or more recovery templates with high frequency of use for the user according to the frequency of use and shooting habits of the user.
  • the restoration template file corresponding to the photo named "IMG-2021-12-R1" has the highest frequency of use, and will be preferentially displayed in the restoration template selection window, which is not limited in this embodiment of the present application.
  • the "recovery shooting function" in the embodiment of the present application may support the user to manually enable or disable it through the setting control, shortcut control, etc. of the camera application.
  • the user can activate the function of recovering shooting of the electronic device through the process introduced in FIG. 3 , which will not be repeated here.
  • the function of restoring shooting can also be configured as the default function of the electronic device, that is, multiple associated applications such as the camera application and the gallery application of the electronic device can be authorized to call the function of restoring shooting, which is not limited in this embodiment of the present application. .
  • the 1102. Determine a first restoration template from the one or more restoration templates, where the first restoration template is associated with a first multimedia file, and the first multimedia file is a photo, animation, or video clip any kind.
  • multimedia files such as “first multimedia file” and “second multimedia file” may include any one of photos, animations or video clips, and the multimedia files may be What the user takes through the camera application of the electronic device, etc., may also be downloaded by the user from the network, server, social platform, etc., or received by the user and sent by other devices and stored in the local multimedia file of the mobile phone.
  • the mobile phone can detect the photo and obtain the shooting parameters corresponding to the photo, such as the brightness level of the photo, filter color, etc., And generate the recovery template file of the photo, the recovery template file can also be used to guide the user to take other multimedia files such as photos, moving pictures, videos, etc., which will not be repeated here.
  • the determining the first restoration template from the one or more restoration templates includes: receiving a user's manual selection operation, selecting and determining the first restoration template from the one or more restoration templates. First recovery template.
  • the user can manually select the recovery template named "IMG-2021-12” from one or more recovery templates displayed in the recovery template selection window.
  • the restoration template corresponding to the photo of "-R1" is the first restoration template.
  • the photo named "IMG-2021-12-R1" is the "first multimedia file”.
  • the electronic device may intelligently and automatically match or recommend a first restoration template for the user from the one or more restoration templates.
  • the restoration template with the best shooting effect among the one or more restoration templates may be automatically determined as the first restoration template; or, according to the shooting The screen displayed on the preview interface automatically determines the restoration template with the best shooting effect among the one or more restoration templates as the first restoration template; or, according to the frequency of use of the user, automatically selects the one or more restoration templates Among the recovery templates, the recovery template with the highest frequency of use by the user is determined as the first recovery template; or, according to the user's usage records, automatically determine the recovery template that the user has used most recently from among the one or more recovery templates as the first recovery template.
  • the first restoration template is described above, which is not limited in this embodiment of the present application.
  • one or more restoration templates displayed in the restoration template selection window can match or recommend a first restoration template for the user, and the first restoration template includes adaptation Shooting parameters for shooting at night.
  • the mobile phone can intelligently determine the restoration template file corresponding to the photo named "IMG-2021-12-R1" with the highest frequency of use according to the user's usage frequency and shooting habits, etc., as the first restoration template.
  • the restoration template selection window it is preferentially displayed or selected by default, and the user can also cancel or replace it, which is not limited in this embodiment of the present application.
  • the second parameter set further includes framing information of the first multimedia file
  • the electronic device may determine the framing information of the first multimedia file according to the framing information of the first multimedia file.
  • the viewing range of the file; and according to the shooting operation of the user, based on one or more shooting parameters included in the second parameter set, the third multimedia file is obtained by shooting, the third multimedia file and the first A multimedia file has the same display effect and viewing range.
  • the second parameter set further includes operation parameters for the user to edit the first multimedia file, and after the second multimedia file is captured, the electronic device can The operating parameters of the process are to edit the second multimedia file to obtain the processed second multimedia file, wherein the editing process includes the trimming ratio and adjustment filter listed in the aforementioned table 3 One or more of color, adjustment of beautification parameters, and adjustment of brightness level.
  • Receive a first user operation and in response to the first operation, obtain a second multimedia file based on one or more shooting parameters included in the second parameter set, so that the second multimedia file
  • the body file has the same display effect as the first multimedia file, and the second multimedia file is any one of photos, animations or video clips.
  • the "first operation” may include a shooting operation performed by the user, as shown in (f) of FIG.
  • the "first operation” may include at least two clicks performed by the user to record a video of the shutter control as shown in (f) in Figure 5. The embodiment of the application does not limit this.
  • the electronic device after the user selects the first restoration template file, after the electronic device obtains the second parameter set corresponding to the first restoration template, it may further set a part of the second parameter set One or more shooting parameters are presented to the user, and the user can also modify one or more parameters in the recovery template file.
  • modifying one or more parameters in the restoration template file may include the user performing operations such as editing, deleting, adding, and adjusting one or more shooting parameters of the second parameter set.
  • the electronic device may update the first restoration template according to the modified second parameter set, that is, overwrite the original restoration template.
  • Template file replace the original parameters of the first recovery template file with the parameters modified by the user.
  • the electronic device may generate a second restoration template associated with the first multimedia file according to the modified second parameter set, and save the second restoration template.
  • the electronic device may generate a new restoration template file and automatically save the new restoration template file by combining modified parameters and one or more parameters in the original first restoration template file according to user operations, For example, the new second recovery template file continues to add a suffix after the name of the original recovery template file and save it.
  • each multimedia file can correspond to a unique recovery template file. If a certain multimedia file is lost or deleted by mistake, the mobile phone can detect that the source file of the multimedia file is missing, and the electronic device can automatically remind the user The multimedia file is missing, and the user chooses whether to restore the photo.
  • the electronic device may display prompt information in the recovery shooting mode, and the prompt information is used to remind the user Recover the first multimedia file.
  • This process can actively remind the user to restore multimedia files, and the user can choose to restore the missing multimedia files, which can ensure the integrity of the restoration template, and the process of restoring photos is easy to operate, and can quickly restore the previous shooting process, which improves the user experience. .
  • the electronic device may also automatically update the set of shooting parameters based on one or more shooting parameters included in the second parameter set.
  • the picture displayed on the shooting preview interface of the electronic device may also automatically update the set of shooting parameters based on one or more shooting parameters included in the second parameter set.
  • the relevant shooting parameters can be defaulted to the default shooting parameters of the current camera, such as having a magnification of "1.0 ⁇ ", not turning on the beauty level and other filter colors and other effects.
  • the user has selected the recovery template file through the process shown in (b) - (c) - (d) in Figure 5, the relevant The shooting parameters can be automatically adjusted to one or more parameters included in the restoration template file, for example, the magnification factor of “1.5 ⁇ ” is displayed on the shooting preview interface 506, the beauty level (beauty level 6) and other filters are turned on. Mirror color and other effects.
  • the user in the process of recovering the shooting of the electronic device, can perform both the process of restoring the photo and the process of restoring the video, and the different processes can be determined according to the type of the recovery template file selected by the user. For example, according to the suffix and file name of the recovery template file selected by the user, the user can select different types of recovery template files and different parameters to perform recovery shooting.
  • the restoration template selection window may include restoration templates corresponding to photos, and may also include restoration templates corresponding to video clips, and different restoration templates may be selected through different suffix names.
  • "-R" indicates "restore template”.
  • the user can select the recovery template file of the photo to restore the shooting of the photo, the shooting of the video clip, or the shooting of the moving picture; the recovery template file of the video clip can also be selected to restore the shooting of the photo, the shooting of the video clip, or the shooting of the moving picture shooting, etc., which are not limited in this embodiment of the present application.
  • the method for recovering shooting in this application provides users with a new shooting solution.
  • multimedia files such as photos, moving pictures, and recorded video clips taken by the user are lost or deleted by mistake
  • the method can be based on a file saved by the electronic device. or multiple recovery template files to quickly achieve recovery shooting.
  • the user can use the restoration template file to restore the shooting process, that is, use one or more shooting parameters included in the restoration template file to re-shoot other different objects, and restore photos, moving pictures, and recorded videos with the same display effect.
  • the user can also select the same viewing range to restore multimedia files such as photos, moving pictures, and recorded video clips with the same effect and the same viewing range.
  • the method can meet different application scenarios, can quickly restore photos, simplifies shooting operations, and improves user experience.
  • the method supports the user to perform operations such as viewing, modifying, editing, and deleting one or more parameters in the restoration template. Modify, edit, delete and other operations, update the relevant parameters in the restoration template file, or generate and save a new restoration template according to the updated relevant parameters, which meets the shooting needs of users in different scenes.
  • the mobile phone can automatically detect the multiple recovery template files stored Whether there is a missing condition of the corresponding multimedia file.
  • the user can be automatically prompted about the missing multimedia file and the user can choose whether to restore the missing multimedia file, and automatically trigger the restoration and shooting process of the mobile phone. This method can ensure the integrity of the restoration template, and improves user experience.
  • first, second, and third in the embodiments of the present application are only for distinction and shall not constitute any limitation to the present application.
  • first restoration template “the second restoration template” and the like in the embodiments of the present application represent different restoration templates including different shooting parameters and/or editing parameters.
  • sequence numbers of the processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • preset "fixed value”, etc. can be realized by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the electronic device.
  • the specific implementation manner is not limited, for example, the "preset recovery template" in the embodiment of the present application.
  • 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 certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the functional modules of the electronic device may be divided according to the above method example.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • the electronic device may include: a display unit, a detection unit and a processing unit.
  • the display unit, the detection unit and the processing unit cooperate with each other, and can be used to support the electronic device to execute the above steps, etc., and/or be used in other processes of the technologies described herein.
  • the electronic device provided in this embodiment is used to execute the above-mentioned method for restoring shooting, so the same effect as the above-mentioned implementation method can be achieved.
  • the electronic device may include a processing module, a memory module and a communication module.
  • the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned display unit, detection unit and processing unit.
  • the memory module can be used to support electronic devices to execute stored program codes and data, and the like.
  • the communication module can be used to support the communication between the electronic device and other devices.
  • the processing module may be a processor or a controller. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (digital signal processing, DSP) and a microprocessor, and the like.
  • the storage module may be a memory.
  • the communication module may be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned relevant method steps to realize the restoration in the above-mentioned embodiment.
  • the method of shooting is also provided.
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to implement the method for restoring shooting in the above-mentioned embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods for restoring shooting in the above method embodiments.
  • the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above-mentioned The beneficial effects of the corresponding method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included 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 in various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本申请提供了一种复原拍摄的方法及电子设备,电子设备可以是手机等,该方法可以在用户拍摄照片或录制视频的过程中,根据一种或多种拍摄参数生成并保存复原模板文件,当用户拍摄的照片或录制的视频丢失或被误删除时,可以基于复原模板文件,快速地实现复原拍摄。具体地,用户可以使用复原模板文件复原拍摄过程,重新拍摄其他不同的物体,复原出具有相同效果的照片或视频;或者,用户还可以选择相同的取景范围,复原出具有相同效果且具有相同取景范围的照片、视频;该方法支持用户对该复原模板文件中的一种或多种参数进行查看、修改、编辑、删除等操作,满足了不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。

Description

一种复原拍摄的方法及电子设备
本申请要求于2022年01月25日提交国家知识产权局、申请号为202210097428.7、申请名称为“一种复原拍摄的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种复原拍摄的方法及电子设备。
背景技术
随着拍照、录制短视频、在线直播领域等多媒体场景的井喷式发展和普及,用户拍摄图片、录制视频等使用电子设备拍摄功能的使用场景也变得越来越多。
示例性的,用户可以使用手机、平板等电子设备拍摄喜欢的事物,或者记录每天的生活趣事。例如,用户可以通过电子设备拍摄充满趣味的视频、有声照片、具有图像互换格式(graphics interchange format,gif)的动态图片等,并可以将拍摄的内容分享、发布到不同的媒体软件、社交平台上。此外,用户还可以在媒体软件、社交平台上点赞、转发、保存其他用户拍摄的照片、视频等多媒体文件。
用户使用手机、平板等电子设备拍摄照片或者录制视频时,最终拍摄的照片、视频等多媒体文件可以保存在手机上,用户可以进行查看。但是,一旦原始的照片、视频等多媒体文件丢失,想要再复原拍摄出相同或相似的照片、视频等多媒体文件,都比较困难。
一种可能的实现方式中,用户可以使用专业调整后的焦距、分辨率、美颜级别、色彩指标、亮度参数等一种或多种拍摄参数拍摄照片,如果该拍摄的照片丢失,或者因为用户的误操作而被删除,那么一般很难再复原出相同或相似的照片,该照片的拍摄细节、拍摄参数等难以再明确,复原该照片就更加困难,基本上无法恢复已经丢失的照片。
当用户拍摄的照片丢失时,如何复原该丢失照片的复原拍摄的方法和拍摄过程,或者为用户复原喜欢的照片,是当前亟需解决的难题。
发明内容
本申请提供一种复原拍摄的方法及电子设备,该方法使得用户可以根据电子设备保存的一个或多个复原模板,既可以重新拍摄其他不同的物体,复原出具有相同效果和/或相同取景范围的照片、动图、视频等多媒体文件,能够快速地复原拍摄过程,简化了拍摄操作,提高了用户的体验。
第一方面提供了一种复原拍摄的方法,应用于包括显示屏的电子设备,所述电子设备存储有一个或多个复原模板,所述方法包括:显示所述电子设备的拍摄预览界面,所述拍摄预览界面中包括基于第一参数集合的一种或多种拍摄参数显示的画面;从所述一个或多个复原模板中确定第一复原模板,所述第一复原模板关联第一多媒体文件,所述第一多媒体文件是照片、动图或视频片段中的任意一种;获取所述第一复原模板对应的第二参数集合,所述第二参数集合包括拍摄所述第一多媒体文件的一种或多种 拍摄参数;接收用户的第一操作,响应于所述第一操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第二多媒体文件,使得所述第二多媒体文件和所述第一多媒体文件具有相同的显示效果,所述第二多媒体文件是照片、动图或视频片段中的任意一种。
可选地,本申请实施例所涉及的“拍摄参数”可以包括焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。
应理解,在本申请实施例中,“第一多媒体文件”、“第二多媒体文件”等多媒体文件可以包括照片、动图或视频片段中的任意一种,该多媒体文件可以是用户通过电子设备的相机应用等拍摄得到的,也可以是用户从网络、服务器、社交平台等下载的,或者接收的由其他设备发送并保存在电子设备的本地的多媒体文件。
示例性的,以照片为例,当用户下载一张照片并保存到电子设备的本地图库时,电子设备可以检测该照片并获取该照片对应的拍摄参数,例如该照片的亮度等级、滤镜色彩等,并生成该照片的复原模板文件,该复原模板文件也可以用于指导用户拍摄其他的照片、动图、视频等多媒体文件,此处不再一一赘述。
还应理解,在本申请实施例中,不同的多媒体文件类型,“第一操作”可以包括不同的一种或多种用户操作。
示例性的,当所述第二多媒体文件是照片时,“第一操作”可以包括用户执行的点击拍摄快门控件的拍摄操作。当所述第二多媒体文件是视频片段时,“第一操作”可以包括用户执行的至少两次点击拍摄快门控件的录制视频的操作,本申请实施例对此不作限定。
通过上述方案,本申请实施例为用户提供的一种新型的复原拍摄方案,当用户拍摄的照片、动图、录制的视频片段等多媒体文件丢失或被误删除时,该方法可以基于电子设备保存的一个或多个复原模板文件,快速地实现复原拍摄。具体地,用户可以使用复原模板文件复原拍摄过程,即使用该复原模板文件包括的一种或多种拍摄参数重新拍摄其他不同的物体,复原出具有相同显示效果的照片、动图、录制的视频片段等多媒体文件;或者,用户还可以选择相同的取景范围,复原出具有相同效果且具有相同取景范围的照片、动图、录制的视频片段等多媒体文件。该方法可以满足不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
可选地,本申请实施例的复原拍摄的能力可以是电子设备等电子设备的系统能力,相应地,该系统能力可以被相机应用等多种具有拍摄能力的应用程序调用。
示例性的,该复原拍摄过程的实现,可以基于电子设备出厂时配置的相机应用,用户可以通过电子设备的相机应用,运行相机应用并显示拍摄预览界面。
或者,该复原拍摄过程的实现,还可以基于用户下载并安装的美颜相机、美拍等其他的能够拍摄照片的任意应用。
又或者,还可以应用于例如
Figure PCTCN2022136943-appb-000001
应用、
Figure PCTCN2022136943-appb-000002
应用等具有照片拍摄、视频录制等功能的任意应用,本申请实施例对此不作限定。
可选地,本申请实施例的“复原拍摄的功能”可以支持用户通过相机应用的设置控件、快捷控件等进行手动开启或关闭。或者,该复原拍摄的功能还可以被配置为电 子设备的默认功能,即可以授权电子设备的相机应用、图库应用等多个关联应用可以调用该复原拍摄的功能,本申请实施例对此不作限定。
结合第一方面,在第一方面的某些实现方式中,所述一个或多个复原模板中包括预设的复原模板;和/或,所述一个或多个复原模板中包括所述电子设备根据关联的多媒体文件的一种或多种拍摄参数生成的复原模板。
一种可能的实现方式中,电子设备出厂时可以由开发人员设置的几个(n个,例如2个等)固定的复原模板,该复原模板对应固定的拍摄参数,该拍摄参数可以使得电子设备具有比较优质的拍摄效果,此后不论用户复原拍摄照片、录制视频等,都可以显示该预设的复原模板。
另一种可能的实现方式中,用户可以使用电子设备的相机应用拍摄照片、动图、录制视频等,在拍摄照片、动图、录制视频的过程中,电子设备可以根据一种或多种拍摄参数,和/或,一种或多种编辑参数,生成一个或多个复原模板,并保存在电子设备上。在复原拍摄过程中,从电子设备保存的一个或多个复原模板中选择“第一复原模板”。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述从所述一个或多个复原模板中确定第一复原模板,包括:接收用户的第二操作,响应于所述第二操作,从所述一个或多个复原模板中选择并确定所述第一复原模板;或者,根据所述电子设备所处的拍摄环境,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据所述拍摄预览界面显示的画面,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据用户的使用频率,自动将所述一个或多个复原模板中用户使用频率最高的复原模板确定为所述第一复原模板;或者,根据用户的使用记录,自动将所述一个或多个复原模板中用户距离当前最近一次使用的复原模板确定为所述第一复原模板。
可选地,电子设备可以智能地检测拍摄环境、拍摄对象等,并根据拍摄环境、拍摄对象等外部因素,智能地为用户匹配不同的拍摄模板。例如,当电子设备检测到当前为夜间较暗的拍摄环境时,该复原模板选择窗口中显示的一个或多个复原模板可以包括适应于夜间拍摄的参数,该参数可以包括的第一复原模板中。
或者,电子设备可以根据用户的使用频率和拍摄习惯等,智能地为用户显示使用频率较高的一个或多个复原模板。示例性的,第一复原模板的使用频率最高,该第一复原模板将在复原模板选择窗口中优先被显示,本申请实施例对此不作限定。
通过上述方案,用户可以根据自己的拍摄习惯和拍摄需求,手动选择期望的复原模板,也可以由电子设备根据拍摄环境、拍摄对象等智能化为用户推荐匹配的复原模板,该过程满足了不同用户的使用需求,特别是对于不擅长拍摄的非专业人士,简化了拍摄操作,能够提升用户的拍摄体验。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述获取所述第一复原模板对应的所述第二参数集合之后,所述方法还包括:显示所述第二参数集合的一种或多种拍摄参数;接收用户的第三操作,响应于所述第三操作,修改所述第二参数集合的一种或多种拍摄参数,并根据修改后的所述第二参数集合更新所述第一复原模板;或者,根据修改后的所述第二参数集合,生成关联所述第一多媒体文件的第 二复原模板,并保存所述第二复原模板。
可选地,“修改该复原模板文件中的一种或多种参数”可以包括用户对所述第二参数集合的一种或多种拍摄参数执行编辑、删除、添加、调整等操作。
可选地,用户修改所述第二参数集合的一种或多种拍摄参数之后,所述电子设备可以根据修改后的所述第二参数集合更新所述第一复原模板,即覆盖原来的复原模板文件,以用户修改之后的参数替换第一复原模板文件的原始参数。
或者,所述电子设备可以根据修改后的所述第二参数集合,生成关联所述第一多媒体文件的第二复原模板,并保存所述第二复原模板。示例性的,电子设备可以根据用户的操作,结合修改之后的参数和原始的第一复原模板文件中的一种或多种参数,生成新的复原模板文件并自动保存该新的复原模板文件,例如新的第二复原模板文件在原始复原模板文件名称后继续添加后缀名并进行保存。
通过上述方案,在用户选择复原模板文件的过程中,用户选中了复原模板之后,该方法支持用户对该复原模板中的一种或多种参数进行查看、修改、编辑、删除等操作,且可以根据用户修改、编辑、删除等操作,更新复原模板文件中的相关参数,或者根据更新后的相关参数生成新的复原模板,满足了用户不同场景的拍摄需求。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当检测到所述第一复原模板关联的所述第一多媒体文件丢失或损坏时,所述方法还包括:在所述复原拍摄模式下,显示提示信息,所述提示信息用于提醒用户复原所述第一多媒体文件。
应理解,每一个多媒体文件可以对应唯一的复原模板文件,如果某一个多媒体文件丢失或者被误删除,电子设备可以检测到该多媒体文件的源文件缺失,电子设备可以自动提醒用户该多媒体文件的缺失,以及由用户选择是否进行该照片的复原。
具体地,当检测到所述第一复原模板关联的所述第一多媒体文件丢失或损坏时,电子设备可以在所述复原拍摄模式下,显示提示信息,所述提示信息用于提醒用户复原所述第一多媒体文件。该过程可以主动提醒用户复原多媒体文件,由用户选择复原缺失的多媒体文件,可以保证复原模板的完整性,且复原照片的过程操作便捷,能够快速地复原以前的拍摄过程,提升了用户的使用体验。
通过上述方案,如果用户拍摄的照片、动图、视频片段等多媒体文件丢失或者被误删除,当用户切换当前的拍摄模式为复原模式时,电子设备可以自动检测存储的多个复原模板文件是否存在对应的多媒体文件的缺失情况。当检测到某复原模板文件对应的多媒体文件缺失时,可以自动提示用户缺失的多媒体文件且供用户选择是否对缺失的多媒体文件进行复原,并自动触发电子设备的复原拍摄过程。该方法可以保证复原模板的完整性,提升了用户的使用体验。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述第二参数集合还包括所述第一多媒体文件的取景信息,所述方法还包括:根据所述第一多媒体文件的取景信息,确定所述第一多媒体文件的取景范围;接收用户的第四操作,响应于所述第四操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第三多媒体文件,所述第三多媒体文件和所述第一多媒体文件具有相同的显示效果和取景范围。
通过上述过程,当用户拍摄的照片丢失或者被误删除时,可以根据本申请实施例 提供的复原拍摄的方法,基于该丢失或者被误删除照片对应的复原模板文件,重新拍摄照片,且重新拍摄的照片可以和该丢失或被误删除的照片具有相同的拍摄参数等,和/或可以具有大致相同的取景范围,从而为用户复原出和该丢失或被误删除的照片相同或相似的照片,该过程不需要用户手动重新设置相关的拍摄参数等,就可以复原照片的拍摄过程和/或取景范围,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述第二参数集合还包括用户对所述第一多媒体文件执行编辑处理的操作参数,拍摄得到所述第二多媒体文件之后,所述方法还包括:根据所述编辑处理的操作参数,对所述第二多媒体文件进行编辑处理,得到处理后的所述第二多媒体文件,其中,所述编辑处理包括修剪比例、调整滤镜色彩、调整美颜参数、调整亮度等级中的一种或多种。
应理解,对于一张照片,可能同时包括拍摄前的拍摄参数、拍摄中的拍摄参数、拍摄后的编辑参数。且该拍摄前的拍摄参数、拍摄中的拍摄参数、拍摄后的编辑参数中可能包括相同的参数类型。
一种可能的实现方式中,当某一张照片对应的参数同时包括同一种类型的参数时,可以以呈现给用户的显示效果对应的最终参数为准。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述获取所述第一复原模板对应的第二参数集合之后,所述方法还包括:基于所述第二参数集合包括的一种或多种拍摄参数,自动更新所述电子设备的所述拍摄预览界面显示的画面。
通过上述过程,只要用户已经选择了第一复原模板,拍摄预览界面上相关的拍摄参数可以自动调整为该第一复原模板包括的一种或多种参数,例如调整该拍摄预览界面上显示的放大倍数、美颜级别和其他滤镜色彩等,从而更新该拍摄预览界面上画面的显示效果。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述拍摄参数包括焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,所述方法还包括:接收用户的第五操作,响应于所述第五操作,开启所述电子设备的复原拍摄的功能;或者,接收用户的第六操作,响应于所述第六操作,使所述电子设备进入复原拍摄模式。
综上所述,通过本申请实施例提供的复原拍摄的方法,为用户提供了一种新型拍摄方案,当用户拍摄的照片、动图、录制的视频片段等多媒体文件丢失或被误删除时,该方法可以基于电子设备保存的一个或多个复原模板文件,快速地实现复原拍摄。
具体地,用户可以使用复原模板文件复原拍摄过程,即使用该复原模板文件包括的一种或多种拍摄参数重新拍摄其他不同的物体,复原出具有相同显示效果的照片、动图、录制的视频片段等多媒体文件;或者,用户还可以选择相同的取景范围,复原出具有相同效果且具有相同取景范围的照片、动图、录制的视频片段等多媒体文件。该方法可以满足不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
此外,在用户选择复原模板文件的过程中,用户选中了复原模板之后,该方法支持用户对该复原模板中的一种或多种参数进行查看、修改、编辑、删除等操作,且可以根据用户修改、编辑、删除等操作,更新复原模板文件中的相关参数,或者根据更新后的相关参数生成并保存新的复原模板,满足了用户不同场景的拍摄需求。
再者,通过上述方案,如果用户拍摄的照片、动图、视频片段等多媒体文件丢失或者被误删除,当用户切换当前的拍摄模式为复原模式时,手机可以自动检测存储的多个复原模板文件是否存在对应的多媒体文件的缺失情况。当检测到某复原模板文件对应的多媒体文件缺失时,可以自动提示用户缺失的多媒体文件且供用户选择是否对缺失的多媒体文件进行复原,并自动触发手机的复原拍摄过程。该方法可以保证复原模板的完整性,提升了用户的使用体验。
第二方面提供了一种电子设备,包括:显示屏;一个或多个处理器;一个或多个存储器;安装有多个应用程序的模块;所述存储器存储有一个或多个程序,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:显示拍摄预览界面,所述拍摄预览界面中包括基于第一参数集合的一种或多种拍摄参数显示的画面;从所述一个或多个复原模板中确定第一复原模板,所述第一复原模板关联第一多媒体文件,所述第一多媒体文件是照片、动图或视频片段中的任意一种;获取所述第一复原模板对应的第二参数集合,所述第二参数集合包括拍摄所述第一多媒体文件的一种或多种拍摄参数;接收用户的第一操作,响应于所述第一操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第二多媒体文件,使得所述第二多媒体文件和所述第一多媒体文件具有相同的显示效果,所述第二多媒体文件是照片、动图或视频片段中的任意一种。
结合第二方面,在第二方面的某些实现方式中,所述一个或多个复原模板中包括预设的复原模板;和/或,所述一个或多个复原模板中包括根据关联的多媒体文件的一种或多种拍摄参数生成的复原模板。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:接收用户的第二操作,响应于所述第二操作,从所述一个或多个复原模板中选择并确定所述第一复原模板;或者,根据所处的拍摄环境,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据所述拍摄预览界面显示的画面,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据用户的使用频率,自动将所述一个或多个复原模板中用户使用频率最高的复原模板确定为所述第一复原模板;或者,根据用户的使用记录,自动将所述一个或多个复原模板中用户距离当前最近一次使用的复原模板确定为所述第一复原模板。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,所述获取所述第一复原模板对应的所述第二参数集合之后,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:
显示所述第二参数集合的一种或多种拍摄参数;接收用户的第三操作,响应于所述第三操作,修改所述第二参数集合的一种或多种拍摄参数,并根据修改后的所述第 二参数集合更新所述第一复原模板;或者,根据修改后的所述第二参数集合,生成关联所述第一多媒体文件的第二复原模板,并保存所述第二复原模板。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备检测到所述第一复原模板关联的所述第一多媒体文件丢失或损坏时,可以执行以下步骤:在所述复原拍摄模式下,显示提示信息,所述提示信息用于提醒用户复原所述第一多媒体文件。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,所述第二参数集合还包括所述第一多媒体文件的取景信息,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:根据所述第一多媒体文件的取景信息,确定所述第一多媒体文件的取景范围;接收用户的第四操作,响应于所述第四操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第三多媒体文件,所述第三多媒体文件和所述第一多媒体文件具有相同的显示效果和取景范围。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,所述第二参数集合还包括用户对所述第一多媒体文件执行编辑处理的操作参数,拍摄得到所述第二多媒体文件之后,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:根据所述编辑处理的操作参数,对所述第二多媒体文件进行编辑处理,得到处理后的所述第二多媒体文件,其中,所述编辑处理包括修剪比例、调整滤镜色彩、调整美颜参数、调整亮度等级中的一种或多种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,所述获取所述第一复原模板对应的第二参数集合之后,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:基于所述第二参数集合包括的一种或多种拍摄参数,自动更新所述电子设备的所述拍摄预览界面显示的画面。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,所述拍摄参数包括焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行以下步骤:接收用户的第五操作,响应于所述第五操作,开启复原拍摄的功能;或者,接收用户的第六操作,响应于所述第六操作,进入复原拍摄模式。
第三方面提供了一种电子设备上的图形用户界面系统,所述电子设备具有显示屏、一个或多个存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述一个或多个存储器中的一个或多个计算机程序,所述图形用户界面系统包括所述电子设备执行如第一方面和第一方面中任一项所述的方法时显示的图形用户界面。
第四方面提供了一种装置,该装置包含在电子设备中,该装置具有实现上述第一方面和第一方面中任一项所述的方法中电子设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,显示模块或单元、检测模块或单元、处理模块或单元等。
第五方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面 和第一方面中任一项所述的方法,以及第二方面和第二方面中任一项所述的复原拍摄的方法。
第六方面提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面或者第一方面的任意一种所述的复原拍摄的方法。
附图说明
图1是本申请实施例提供的一例电子设备的结构示意图。
图2是本申请实施例的一例电子设备的软件结构框图。
图3是本申请实施例提供的一例用户设置复原拍摄功能的图形用户界面示意图。
图4是本申请实施例提供的一例用户拍摄照片过程的图形用户界面示意图。
图5是本申请实施例提供的一例复原拍摄过程的图形用户界面示意图。
图6是本申请实施例提供的另一例复原拍摄过程的图形用户界面示意图。
图7是本申请实施例提供的又一例复原拍摄过程的图形用户界面示意图。
图8是本申请实施例提供的再一例复原拍摄过程的图形用户界面示意图。
图9是本申请实施例提供的又一例复原拍摄过程的图形用户界面示意图。
图10是本申请实施例提供的再一例复原拍摄过程的图形用户界面示意图。
图11是本申请实施例提供的一例复原拍摄的方法的示意性流程图。
具体实施方式
对于当前主流的手机等电子设备,用户使用手机拍摄图片、录制视频的过程中,拍摄过程都是一次性的,完成拍摄之后,手机只为用户呈现拍摄的结果,即保存用户拍摄的照片、录制的视频等多媒体文件到本地相册。当本地相册中拍摄的照片、录制的视频等多媒体文件丢失时,用户想要再复原拍摄出相同或相似的照片、视频等多媒体文件,都比较困难。
一种可能的实现方式中,可以通过电子设备的日志或者打点记录与拍摄相关的操作信息,再根据日志或者与拍摄相关的操作信息进行专业的分析,进而获取用户使用手机拍摄照片、视频等多媒体文件时所采用焦距、分辨率、美颜级别、色彩指标、亮度参数等一种或多种拍摄参数的信息。
首先,在上述实现方式中,需要用户主动设置该电子设备记录日志或者打点记录与拍摄相关的操作信息,以及当用户复原拍摄出相同或相似的照片时,需要用户主动获取并主动上报该日志或者与拍摄相关的操作信息。
其次,相关的日志信息或者打点记录的与拍摄相关的操作信息可以理解为一种“文件记录信息”,必须基于软件代码来实现,可能与用户的实际操作并非完全一一对应。
再者,日志需要经过一系列的上报、分析,相关的实现过程都需要开发人员或专业技术人员的参与,普通用户无法直接通过上述实现方式获得所需要的与丢失的照片、视频等多媒体文件相关的操作信息。
因此,当用户拍摄的原始照片、视频等多媒体文件丢失时,上述实现方式无法帮助普通用户再复原拍摄出相同或者相似的照片、视频等多媒体文件。
针对上述问题,本申请实施例将提供一种复原拍摄的方法,能够实现普通用户复原拍摄出相似的照片、视频等多媒体文件。下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
本申请实施例提供的复原拍摄的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等任意具有拍摄功能的电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
图1本申请实施例提供的一例电子设备的结构示意图。
应理解,本申请实施例的电子设备可以包括图1示出的电子设备100部分结构或全部结构,或者还可以包括更多的其他未示出的结构,本申请实施例对此不作限定。
示例性的,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备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的等待时间,因而提高了系统的效率。
在本申请实施例中,电子设备100的处理器110存储有实现该复原拍摄的方法对应的计算机程序或指令。
示例性的,电子设备100的处理器110存储的实现复原拍摄的方法,该方法可以为用户提供的一种新型拍摄方案。具体地,在用户拍摄照片、制作动图、录制视频等过程中,该方法可以使得电子设备根据一种或多种拍摄参数生成照片、动图、视频片段等多媒体文件对应的一个或多个复原模板文件,当用户拍摄的照片、动图、视频片 段等多媒体文件丢失或被误删除时,可以基于关联的复原模板文件,快速地实现复原拍摄。
具体地,用户可以使用关联的复原模板文件复原拍摄过程,重新拍摄其他不同的物体,复原出具有相同效果的照片、动图、视频片段等多媒体文件;或者,用户还可以根据该复原模板文件中的多媒体文件的取景等基本信息,选择相同或相似的取景范围,复原出具有相同效果且具有相同取景范围的照片、动图、视频片段等多媒体文件。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G/6G等无线通信的解决方案。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。
应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备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)等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
示例性的,在本申请实施例中,电子设备100通过GPU,显示屏194以及应用处理器等模块之间相互协作,进而在电子设备100的显示屏上显示图像、应用界面、控 件、图标、窗口等,实现电子设备100的显示功能。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
示例性的,在本申请实施例中,电子设备100可以通过运行相机应用启动摄像头的拍摄功能,并在相机应用界面上显示拍摄预览界面,所述拍摄预览界面可以显示摄像头采集的画面,以及拍摄快门控件等一个或多个控件,用户可以点击拍摄快门控件拍摄照片、录制视频片段等,并将照片、视频片段保存在本地图库应用中,此处不再赘述。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
示例性的,在本申请实施例中,电子设备100可以通过ISP调节一种或多种拍摄参数,例如美颜参数、滤镜色彩、曝光度、感光度中的一种或多种参数,本申请实施例对此不作限定。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
示例性的,在本申请实施例中,摄像头193可以包括前置摄像头和后置摄像头,或者包括广角摄像头、微距摄像头、景深摄像头、人像摄像头等一种或多种类型的摄像头,本申请实施例对电子设备100可以包括的摄像头193的数量和种类不作限定。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的 各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。
环境光传感器180L用于感知环境光亮度。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
可选地,在本申请实施例中,该触摸传感器180K可以检测用户的触摸、点击等操作,生成操作事件,并将该操作事件传递给处理器110,由处理器110确定该操作事件包括触摸点的坐标、触摸状态等相关参数,根据该操作事件做出响应。例如用户点击拍摄快门控件的拍摄操作等,该操作事件可以包括拍摄快门控件的信息、用户touch操作信息等传递给处理器110,由处理器110根据摄像头采集的画面完成拍摄操作,并得到照片。
骨传导传感器180M可以获取振动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。示例性的,本申请实施例以分层架构的
Figure PCTCN2022136943-appb-000003
系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的一例电子设备的软件结构框图。
可选地,图2所示的
Figure PCTCN2022136943-appb-000004
系统的分层架构可以包括若干个层,每一层都有清晰的角色和分工,且层与层之间通过软件接口通信。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将
Figure PCTCN2022136943-appb-000005
系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(
Figure PCTCN2022136943-appb-000006
runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
示例性的,如图2所示,应用程序包可以包括相机、音乐、相册、设置等应用程序。在本申请实施例中,用户可以通过相机应用拍摄照片、动图、视频片段等多媒体文件,拍摄的照片、动图、视频片段等多媒体文件可以保存到相册(图库)应用中。
可选地,本申请实施例的“相机应用”可以是电子设备出厂配置的相机应用,可以包括拍照、录像、双景录像等不同的拍摄模式,本申请实施例对此不作限定。
应理解,相机应用、相册(图库)应用等都可以关联本申请实施例的复原拍摄功能。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等,以及本申请实施例所涉及的相机服务(camera service)模块。
其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括手机界面上相机应用的图标的显示,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文 件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
本申请实施例的相机服务(camera service)模块可以具体包括参数获取模块、复原模板生成模块、复原模板存储模块等子模块,以实现本申请实施例的复原拍摄的功能。
具体地,参数获取模块可以用于获取照片、动图、视频片段等任意一个多媒体文件对应的一种或多种拍摄参数。示例性的,以照片为例,在用户拍摄照片时,参数获取模块可以获取焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。和/或,获取用户执行的编辑处理相关的修剪比例、调整滤镜色彩、调整美颜参数、调整亮度等级中的一种或多种编辑参数,本申请实施例对此不作限定。
复原模板生成模块可以根据参数获取模块获取的一种或多种拍摄参数,和/或,一种或多种编辑参数,生成照片、动图、视频片段等每一个多媒体文件关联的一个或多个复原模板文件。此外,该复原模板生成模块还可以根据预设规则自动确定一个或多个复原模板文件的名称,并自动保存该一个或多个复原模板文件到复原模板存储模块。
复原模板存储模块用于存储该一个或多个复原模板文件。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维图层和三维图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
二维图形引擎是二维绘图的绘图引擎。图像处理库可以提供针对各种图像数据的分析以及提供多种图像处理算法等,例如可以提供图像切割、图像融合、图像模糊、图像锐化等处理,此处不再赘述。
示例性的,在本申请实施例中,当电子设备的显示屏上显示某一个应用界面时,可以基于视图系统、二维图形引擎、三维图形处理库、图像处理库等,依次进行应用界面的图像渲染、合成、图层处理等,最终在显示屏上显示该应用界面,例如相机应用的拍摄预览界面等。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
示例性的,在本申请实施例中,用户使用相机应用的过程或者复原照片的过程,通过以上介绍的多个软件模块、硬件模块的协同合作,例如为用户显示拍摄预览界面,并检测用户的操作,响应于用户的不同操作,调整界面的显示或者执行各类操作,此处不再赘述。
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的手机为例,结合附图和应用场景,对本申请实施例提供的复原拍摄的方法进行具体阐述。可选地,在进行复原拍摄之前,用户可以开启电子设备的复原拍摄功能。
图3是本申请实施例提供的一例用户设置复原拍摄功能的图形用户界面(graphical user interface,GUI)示意图。
示例性的,图3中的(a)图示出了手机在解锁模式下显示的主界面301,该主界面301可以包括顶端状态栏区域和界面显示区域,该顶端状态栏区域可以显示运营商标识、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)的信号标识、手机的电量标识和当前时间等一种或多种内容,该界面显示区域显示了天气时钟组件以及手机上安装的多款应用程序(application,App)。可选地,应用程序可以包括电话、信息、图库、相机等。应理解,该主界面301还可以包括其他更多的内容或显示更多的应用程序,本申请实施例对手机主界面显示的内容不作限定。
一种可能的方式中,用户执行如图3中的(a)图所示的操作,点击相机应用的图标,响应于用户的操作,手机可以显示如图3中的(b)图所示的相机应用的主界面302。在本申请实施例中,该相机应用的主界面302还可以称为“拍摄预览界面”,该拍摄预览界面中可以呈现不同的图像、画面,并将呈现的图像、画面称为“预览图像”或者“预览画面”。
应理解,如图3中的(b)图所示,拍摄预览界面302可以包括底端导航区域、中间的预览画面的显示区域和顶端菜单区域。示例性的,如图3中的(b)图所示,在该拍摄预览界面302上,底端导航区域显示了拍摄快门控件31、本地相册控件32和摄像头切换控件33,此外还显示了夜景、人像、拍照、录像、专业等多种拍摄模式控件;中间的预览画面的显示区域用于显示当前手机摄像头捕获的图像或画面;顶端菜单区域可以显示一个或多个控件,例如闪光灯自动控制控件34、人工智能(artificial intelligence,AI)拍摄控件35和相机设置控件36等,本申请实施例对每一个区域显示的控件数量或种类不作限定。为了简便,本申请实施例对每一个控件的不同功能不作赘述。
用户执行如图3中的(b)图所示的操作,点击相机设置控件36,响应于用户的操作,手机可以显示如图3中的(c)图所示的相机设置界面303。可选地,该相机设 置界面303显示了多种与拍摄过程相关的设置选项,例如照片比例选项(例如设置照片比例为【4:3】)、声控拍照选项、笑脸抓怕选项等与拍摄照片相关的设置选项,以及视频分辨率选项(例如设置视频画面比例为【16:9】,视频分辨率为1080p)、视频帧率选项等与录制视频相关的设置选项,以及参考线选项、定时拍摄选项等通用设置选项,本申请实施例对此不作限定。
本申请实施例可以在通用设置相关的选项中,为用户增加“复原模板”选项,用户可以通过该“复原模板”选项对应的开关,手动开启本申请实施例提供的复原拍摄的功能。应理解,该“复原模板”选项还可以添加在其他可能的选项或菜单中,本申请实施例对此不作限定。
示例性的,用户执行如图3中的(c)图所示的操作1,点击“复原模板”选项对应的开关,响应于用户的操作,该“复原模板”选项对应的开关切换为开启(ON)状态,手机开启了复原拍摄的功能;再执行如图3中的(c)图所示的操作2,点击“返回”控件,响应于用户的操作,手机可以返回到拍摄预览界面,显示如图3中的(d)图所示的界面304。
相应地,相比于图3中的(b)图所示的拍摄预览界面302,当用户开启复原拍摄的功能之后,图3中的(d)图所示的拍摄预览界面304中的顶端菜单区域可以显示复原控件37,本申请实施例对复原控件37的显示样式不作限定。
另一种可能的方式中,开发人员在开发相机应用的复原照片功能的过程中,可以配置该复原控件37可以一直显示在该拍摄预览界面中,该拍摄预览界面可以一直呈现如图3中的(d)图所示的界面304,用户可以通过点击该复原控件37快捷地开启手机复原拍摄的功能,简化了操作过程,使得开启复原照片功能的操作更加便捷。
可选地,该复原控件37可以具有不同的显示状态。例如:显示为灰色或者叠加箭头标记的非工作状态,或者,显示为黑色或者无箭头标记的工作状态。应理解,该复原控件37的显示方式可以参照闪光灯自动控制控件34、AI拍摄控件35等已有控件的显示,用户可以点击该复原控件37,实现不同的显示状态之间的切换,此处不再赘述。
又一种可能的方式中,开发人员在开发相机应用的拍摄指导功能的过程中,可以配置该复原拍摄的功能默认为开启的状态。
可选地,开发人员可以在开发过程中,将该复原拍摄的功能配置为手机系统的预设功能、相机应用的预设功能或关联的图库应用的预设功能,本申请实施例对此不作限定。该方式不需要用户额外的操作去开启该复原拍摄的功能,从而可以简化用户的操作。
这里需要说明的,当该复原拍摄的功能配置为电子设备的预设功能时,可以已经经过用户的授权,即授权相机应用、图库应用等多个关联应用可以调用该复原拍摄的功能,本申请实施例对此不作限定。
此外,当用户不需要使用该复原拍摄的功能时,本申请实施例还可以支持用户通过相机应用的设置控件关闭该预设功能;或者,通过图库应用的某个菜单或控件关闭该预设功能;又或者,通过系统级的设置应用相关的菜单关闭该预设功能,本申请实施例对此不作限定。
当开启了手机复原拍摄的功能之后,用户可以通过相机应用拍摄照片、录制视频 等。下面实施例将以用户拍摄照片为例,介绍本申请实施例提供的拍摄照片过程,以及当用户拍摄的照片丢失或被误删除之后,用户如何复原该照片的过程。
一种可能的场景中,在拍摄照片的过程中,用户可以根据自己的拍摄需求,手动调整一种或多种的拍摄参数,例如用户可以执行调节焦距、切换摄像头、调节美颜级别等一种或多种操作,从而调整对应的拍摄参数。
示例性的,表1列举了多种可能的用户操作以及用户操作可能调整的拍摄参数。如表1所示,用户可以执行一种或多种操作,每一种用户操作可以作用于不同的对象,从而修改当前拍摄的实际拍摄参数。
表1
Figure PCTCN2022136943-appb-000007
结合表1的内容,以用户执行调节焦距的操作为例,用户可以根据拍摄对象的运动状态等,设置拍摄照片过程的变焦模式,可选地,“变焦模式”可以包括单次自动对焦(auto focus single,AF-S)模式、连续自动对焦(auto focus continue,AF-C)模式、手动调焦(manual focus,MF)模式等。其中,AF-S模式可以用于拍摄静态主体,AF-C模式可以用于持续运动主体的对焦,MF模式可以用于拍摄无法预知的运动主体等。具体地,用户可以结合当前的拍摄对象、拍摄需求,设置不同的变焦模式,从而在不同的变焦模式下使用不同的焦距拍摄不同的对象,本申请实施例对此不作赘述。
或者,以用户调节拍摄照片过程的美颜级别为例,用户在拍摄过程中可以开启相机应用的美颜处理功能,并根据拍摄需求,调整美颜级别。例如手机上可以提供给用户0-10级不同的美颜级别,不同的美颜级别可以对应不同的人物肤色、肤质、光滑度等美颜参数,用户可以在拍摄预览界面上左右滑动以调整美颜参数,此处不再赘述。
应理解,以上结合表1介绍了用户可能执行的一种或多种操作,任意一种或多种用户操作的组合可以称为“用户的元操作”,“用户的元操作”可以由用户主动发起。例如,该“用户的元操作”可以包括:调节分辨率、调节焦距、切换镜头、调节美颜级别等各种涉及修改拍摄参数的操作中的一种或多种,本申请实施例对“用户的元操作”包括的操作数量、种类不作限定。
需要说明的是,以上介绍的“用户的元操作”可以发生在拍摄之前,例如拍摄之前用户设置了拍摄照片的分辨率、照片比例、照片占据的储存空间大小等。
或者,该一种或多种用户操作可以发生在拍摄过程中,例如用户正在拍摄时,可 以开启美颜功能,调整当前拍摄的美颜级别。
又或者,对于录制视频的过程,用户录制视频的过程中可以进行前置摄像头和后置摄像头等多个摄像头的切换,本申请实施例对“用户的元操作”的发生时机不作限定。
另一种可能的场景中,手机作为智能化的电子设备,可以结合当前所处的拍摄环境,和/或,基于智能化的软件算法等,自动调整拍摄过程涉及的一种或多种拍摄参数。
示例性的,在拍摄过程中,手机可以对拍摄对象进行自动追焦;或者,手机检测拍摄环境,并在拍摄环境较暗的夜间时段,可以自动调节拍摄亮度;又或者,手机的各种AI识别等能力项可以自动进行相关参数的调整,本申请实施例对手机可以自动调整的参数种类不作限定。
应理解,以上介绍的“用户调整一种或多种拍摄参数”、“手机自动调整一种或多种拍摄参数”的过程都会引起所拍摄照片的显示效果的变化,换言之,用户拍摄的每一张照片、录制的每一个视频片段等,可能会因为不同的拍摄参数,具有不同的显示效果。
在本申请实施例中,将所有可能“引起所拍摄照片的显示效果变化的对象”称为“操作对象”,该“操作对象”既可以包括用户主动发起的,也可以包括手机自动调整的,且每一种操作对象都可以导致拍摄参数的变化,进而引起所拍摄照片的显示效果的不同。在后续实施例的介绍中,将不再区分该“操作对象”是用户主动发起的,还是电子设备的智能化操作引起的。
示例性的,该“操作对象”可以包括的相关内容列举如下表2。表2中列举了多种操作对象、每一种操作对象对应的显示效果、所适用的拍摄模式、以及可以被调整或修改的时机等内容。
表2
Figure PCTCN2022136943-appb-000008
Figure PCTCN2022136943-appb-000009
可选地,每一种引起所拍摄照片的效果变化的操作对象可以对应不同的调整或修改的时机。
示例性的,对于分辨率,可以支持用户在拍摄照片之前进行调节,而不支持拍摄过程中进行调节;对于镜头,可以支持用户在拍摄照片之前进行选择,也可以支持在拍摄过程中进行切换,此处不再一一赘述。
下面结合表2列举的一种或多种操作对象,以用户某次实际拍摄一张照片的过程为例介绍本申请实施例的实现过程。
图4是本申请实施例提供的一例用户拍摄照片过程的图形用户界面示意图。
示例性的,在相机应用的拍摄预览界面401中,用户执行如图4中的(a)图所示的操作,用户手动点击放大倍数控件39,并调整拍摄的放大倍数由“1×”变化为“1.5×”,手机可以显示如图4中的(b)图所示的界面402。再执行如图4中的(b)图所示的操作,点击美颜功能的控件38,响应于用户的操作,手机开启了与拍摄相关的美颜功能,并显示如图4中的(c)图所示的界面403,在该界面403中,显示了1-10级不同的美颜级别,用户可以手动选择所需要的美颜级别,例如用户选择当前拍摄照片时对应的美颜级别为8级。
用户完成了相关的设置之后,返回到如图4中的(d)图所示的拍摄预览界面404,按照上述用户手动修改的拍摄参数,当前拍摄预览界面404上显示的预览图像(包括“大人和小孩”的画面)具有“1.5×”放大、8级美颜处理之后的显示效果。
可选地,用户还可以手动设置更多的显示效果,例如添加不同的滤镜、添加不同的挂件、图标等,本申请实施例对此不作限定。
用户执行如图4中的(d)图所示的操作,点击拍摄快门控件31,响应于用户的拍摄操作,手机获取当前具有“1.5×”放大、8级美颜处理之后的预览图像,并将该预览图像作为拍摄所得的照片保存到本地相册。可选地,该拍摄的照片可以以缩略图的形式显示在本地相册控件32中,此处不再赘述。
还应理解,在本申请实施例中,“1.0×”的放大倍数、“1.5×”的放大倍数等可以理解为从用户视觉角度描述的拍摄预览界面中预览图像具有的显示效果,具体地,不同的放大倍数可以对应不同的焦距,使用不同的焦距拍摄照片时,可以呈现给用户不同的显示效果,后续对此不再赘述。
一种可能的实现方式中,在本申请实施例中,如果用户已经按照前述图3中介绍 的任意一种方式开启了相机应用的复原拍摄的功能,此后,用户按照图4所示的方法拍摄的每一张照片,相机应用都可以记录用户拍摄照片的过程,并确定拍摄该照片所涉及的拍摄参数。
可选地,在本申请实施例中,每一张照片对应的拍摄参数可以包括用户手动调整的一种或多种拍摄参数、手机自动调整一种或多种拍摄参数等所有会引起照片的显示效果变化的相关参数。
针对图4所列举的拍摄场景,假设用户根据如图4中的(d)图所示的预览图像,拍摄得到了包括“大人和小孩”的照片1,表3相应地列举了用户拍摄该照片1的过程中,手机的相机应用记录得到的该照片1的实际拍摄参数。
应理解,结合表2中每一种操作对象对应的不同的调整时机,表3列举的内容可以被划分为包括“拍摄前的操作对象”和“拍摄中的操作对象”。
示例性的,对于焦距、美颜等操作对象,可以支持用户在拍摄前进行调节,也可以支持用户在拍摄过程中进行调节,因此,焦距、美颜等操作对象可以同时包括于“拍摄前的操作对象”和“拍摄中的操作对象”中,且可以对应不同的实际拍摄参数。
表3
Figure PCTCN2022136943-appb-000010
对于分辨率、地址位置等操作对象,仅支持用户在拍摄前进行调节,不支持用户在拍摄过程中进行调节,因此,分辨率、地址位置等操作对象可以仅包括于“拍摄前的 操作对象”中,此处不再一一赘述。
可选地,手机的相机应用可以根据每一张照片的拍摄参数生成对应的“复原模板文件”。
具体地,手机的相机应用可以根据每一张照片包括的图像数据和该照片的拍摄参数生成对应的“复原模板文件”。应理解,用户拍摄的每一张照片可以包括不同的图像数据和拍摄参数,每一张照片对应唯一的“复原模板文件”。示例性的,图4中的(d)图拍摄得到的照片1对应唯一的复原模板文件1。
可选地,每一张照片可以通过多种可能的方式和“复原模板文件”进行关联或绑定。
一种可能的实现方式中,每一张照片可以通过文件名和“复原模板文件”进行关联;或者,通过为每一张照片生成唯一的哈希值和“复原模板文件”进行关联;又或者,通过为每一张照片预设的关键值和“复原模板文件”进行关联,本申请实施例对此不作限定。
示例性的,表4列举的多张照片和复原模板文件的关联方式。对于每一张照片,当用户拍摄完该照片并自动存储到本地时,可以为该照片自动生成唯一的照片名称,例如IMG-2021-12-R1,根据该照片的名称和预设规则自动生成该照片的复原模板文件的名称。例如在该照片名称后增加后缀-11,生成该照片对应的复原模板文件IMG-2021-12-R1-11,并保存该照片和相关联的复原模板文件。
表4
照片名称 拍摄参数 复原模板文件
IMG-2021-12-R1 …… IMG-2021-12-R1-11
IMG-2021-11-R3 …… IMG-2021-11-R3-11
IMG-2021-10-R5 …… IMG-2021-10-R5-11
照片1-R2 …… 照片1-R2-11
照片2-R4 …… 照片2-R4-11
照片3-R6 …… 照片3-R6-11
…… …… ……
可选地,对于每一张照片,拍摄完成保存到图库应用之后,用户还可以对照片进行编辑。
示例性的,用户可以执行修剪照片比例、调整照片的滤镜色彩、调整美颜级别等一种或多种编辑操作。例如用户在拍摄完成后,可以修改照片的美颜级别,和/或调整照片的亮度,和/或为照片增加了滤镜色彩等。
应理解,用户对照片执行的编辑操作时,所有与照片的显示效果相关的参数,或者说可能改变照片显示效果的参数称为“编辑参数”。对于用户编辑的每一张照片,手机可以记录用户编辑照片的过程涉及的所有编辑参数,并可以将该“编辑参数”添加到该照片1对应的复原模板文件1中。
具体地,当用户拍摄完成时,可以生成并存储该照片1唯一对应的复原模板文件1,拍摄完成后,当后续检测到用户对该照片1的编辑操作时,记录用户执行编辑操作的操作对象,并将用户操作引起的照片效果变化的相关参数(编辑操作的相关参数)添加到该照片1对应的复原模板文件1中。
示例性的,如果用户在拍摄完成后,修改了该照片1的美颜级别,和/或调整了照片亮度,和/或为照片增加了滤镜色彩等,那么手机可以记录用户的一种或多种编辑操作的编辑参数,在该照片1的复原模板文件中,添加“编辑参数”到表3中的“拍摄后的操作对象”部分,更新并存储到该照片1的复原模板文件1中。
通过上述过程,用户在手机上拍摄的每一张照片,都可以在用户拍摄完成之后,生成唯一对应的复原模板文件。
当某一张照片(例如前述实施例拍摄的照片1)丢失,或者,因为用户的误操作而被删除时,该丢失或被误删除的照片对应的复原模板文件并没有被删除,还保存在手机上。用户可以按照本申请实施例的复原拍摄的方法,基于该丢失或被误删除的照片对应的复原模板文件,实现照片的复原,进而帮助用户重新拍摄出与该丢失或被误删除的照片相同或相似的照片。
这里需要说明的是,在本申请实施例中,“照片的复原”、“复原拍摄的方法”、“复原过程”等所说的“复原”可以包含以下含义:基于该丢失或被误删除的照片对应的复原模板文件,进一步复原拍摄照片的过程,从而重新拍摄出具有相同的拍摄参数的照片;和/或,基于该丢失或被误删除的照片对应的复原模板文件,选择相同的取景,拍摄出具有相同取景范围的照片。
换言之,在本申请实施例中,如果按照该丢失或被误删除的照片1进行复原,所得的“复原的照片”至少可以包括以下可能的情况:
1)“复原的照片”可以和该丢失或被误删除的照片1仅仅具有相同的拍摄参数,且具有不同的取景范围;
2)“复原的照片”可以和该丢失或被误删除的照片1仅仅具有相同的取景范围,且具有不同的拍摄参数;
3)“复原的照片”可以和该丢失或被误删除的照片1具有相同的拍摄参数,且具有相同的取景范围。
应理解,上述任意一种可能的情况所说的“复原的照片”都可以称为和该丢失或被误删除的照片1是“相同或相似的照片”,后续实施例对此定义不再赘述。
还应理解,按照本申请实施例提供的方法得到的上述任意一种可能的“复原的照片”,即基于该丢失或被误删除的照片1对应的复原模板文件1,重新拍摄得到的“相同或相似的照片”,都可以落入本申请实施例的保护范围,后续实施例对此不作赘述。
下面结合附图介绍用户可以基于本申请实施例提供的方法得到该“复原的照片”的过程。
图5是本申请实施例提供的一例复原拍摄过程的图形用户界面示意图。
示例性的,以图4中的(d)图中用户拍摄的包括“大人和小孩”的照片1为例,假设该照片1丢失或者被用户误删除,当用户需要复原该照片1时,可以通过手机的相机应用,进入相机应用的拍摄预览界面,并根据本申请实施例提供的方法进行照片的复原。
可选地,在本申请实施例中,当开启手机的复原拍摄的功能之后,相机应用的拍摄预览界面的底端导航区域除了显示夜景、人像、拍照、录像、专业等多种拍摄模式控件之外,还可以增加新的拍摄模式控件:如图5中的(a)图所示的“复原”模式控件。
具体地,在该拍摄预览界面501上,用户可以在底端导航区域拍摄模式控件的显示区域执行左右滑动的操作,查看更多的拍摄模式或切换当前的拍摄模式,例如用户切换当前的拍摄模式为复原模式,相应地,用于定位当前的拍摄模式的“黑色小三角图标”可以指向“复原”模式控件。
示例性的,用户执行如图5中的(a)图所示的操作,点击该“复原”模式控件,响应于用户的操作,手机显示如图5中的(b)图所示的界面502,该界面502可以理解为复原模板的选择界面。在该复原模板的选择界面502上,可以悬浮显示复原模板选择窗口,并在该复原模板选择窗口中可以显示一个或多个复原模板(或一个或多个复原模板文件)。
可选地,该复原模板选择窗口中可以显示一张或多张照片的缩略图,用户可以通过点击选择某照片的缩略图,选择期望的该照片对应的复原模板文件。
或者,该复原模板选择窗口中可以以列表形式显示一张或多张照片的名称,用户可以通过点击某复原模板的名称,从而选择期望的复原模板文件。
又或者,该复原模板选择窗口中可以以列表形式显示一个或多个复原模板文件的名称,用户可以通过点击某一个复原模板文件的名称,从而选择期望的复原模板文件,本申请实施例对该复原模板选择窗口中一个或多个复原模板文件的显示方式不作限定。
一种可能的实现方式中,该复原模板选择窗口中显示的一个或多个复原模板可以按照预设规则进行排序,换言之,不同的拍摄场景下,图5中的(b)图所示的界面502上显示的该复原模板选择窗口中显示的一个或多个复原模板可以相同,也可以不相同。
可选地,该复原模板选择窗口包括的一个或多个复原模板中包括预设的复原模板;和/或,该复原模板选择窗口包括的一个或多个复原模板中包括:所述电子设备根据关联的照片、动图、视频片段等多媒体文件的一种或多种拍摄参数生成的复原模板。
示例性的,手机出厂时由开发人员设置的2个固定的复原模板,该复原模板对应固定的拍摄参数,该拍摄参数可以使得手机具有比较优质的拍摄效果。
或者,手机可以智能地检测拍摄环境、拍摄对象等,并根据拍摄环境、拍摄对象等外部因素,智能地为用户匹配不同的拍摄模板。示例性的,当手机检测到当前为夜间较暗的拍摄环境时,该复原模板选择窗口中显示的一个或多个复原模板可以包括适应于夜间拍摄的参数。
又或者,手机可以根据用户的使用频率和拍摄习惯等,智能地为用户显示使用频率较高的一个或多个复原模板。示例性的,名称为“IMG-2021-12-R1”的照片所对应的复原模板文件的使用频率最高,将在该复原模板选择窗口中优先被显示,本申请实施例对此不作限定。
示例性的,如图5中的(b)图所示,该界面502上的复原模板选择窗口中可以显示表4中列举的用户已经拍摄的多张照片的名称,用户点击名称为“IMG-2021-12-R1”的照片,响应于用户的操作,手机确认用户当前选中了名称为“IMG-2021-12-R1”的照片所对应的复原模板文件,手机可以进一步显示如图5中的(c)图所示的界面503。
可选地,该界面503可以以悬浮窗口的形式为用户呈现名称为“IMG-2021-12-R1”的照片所对应的复原模板文件中的一种或多种参数信息。
可选地,该一种或多种参数信息可以包括照片名称、照片缩略图、该复原模板文件存储位置等基本信息。应理解,显示该照片1的缩略图可以有助于用户确定待复原的照片的图像内容,有助于快速定位被拍摄的对象,提升复原照片的效率。
可选地,该一种或多种参数信息还可以包括拍摄前的焦距、分辨率、美颜级别、AI色彩等一种或多种拍摄参数,和/或,拍摄中的焦距、美颜级别等一种或多种拍摄参数,和/或,拍摄后的修剪、滤镜、亮度等编辑操作相关的一种或多种编辑参数,本申请实施例对此不作限定。
应理解,受限于手机界面的尺寸或悬浮窗口的尺寸,该界面503中可以显示以上列举的部分参数内容,用户可以通过滑动操作、翻页操作、下拉操作等查看更多的参数内容,或者通过点击预设控件查看更多的参数内容,本申请实施例对此不作限定。
示例性的,如图5中的(c)图所示,在界面503上,悬浮窗口中可以分类显示该照片1的基本信息、表3中列举的拍摄前的一种或多种参数、拍摄中的一种或多种参数、拍摄后的一种或多种参数。其中,该照片1的基本信息可以包括该照片1的缩略图、该照片1的名称、文件格式、存储位置信息等。
应理解,对于一张照片,可能同时包括表3中列举拍摄前的拍摄参数、拍摄中的拍摄参数、拍摄后的编辑参数。且该拍摄前的拍摄参数、拍摄中的拍摄参数、拍摄后的编辑参数中可能包括相同的参数类型。
一种可能的实现方式中,当某一张照片对应的参数同时包括同一种类型的参数时,可以以呈现给用户的显示效果对应的最终参数为准。
示例性的,例如表3中列举拍摄前的拍摄参数、拍摄中的拍摄参数、拍摄后的编辑参数中都包括了“美颜级别参数”,那么该美颜级别可以是拍摄前的美颜级别、拍摄中的美颜级别、拍摄后的美颜级别叠加之后呈现给用户的显示效果对应的最终美颜级别为准,并保存在复原模板文件中。
或者,当某一张照片对应的参数同时包括拍摄中的滤镜色彩、拍摄后的滤镜色彩时,那么该滤镜色彩参数可以该照片最终呈现给用户的显示效果对应的滤镜色彩等级为准,保存在复原模板文件中,本申请实施例对此不作限定。
一种可能的实现方式中,在根据该丢失或被误删除的照片1对应的复原模板文件进行照片复原的过程中,用户选中了复原模板文件之后,用户还可以修改该复原模板文件中的一种或多种参数。
可选地,“修改该复原模板文件中的一种或多种参数”可以包括用户对一种或多种参数执行编辑、删除、添加、调整等操作。
示例性的,用户可以点击期望修改的参数对应的控件,触发修改该参数的过程,并手动修改该参数;或者,用户可以长按某个参数对应的控件,触发删除该参数的过程,并手动删除该参数等,本申请实施例对此不作限定。
如图5中的(c)图所示,该界面503的悬浮窗口中为用户呈现名称为“IMG-2021-12-R1”的照片所对应的复原模板文件中的一种或多种参数信息,用户执行如图5中的(c)图所示的操作,点击拍摄后的亮度调节控件,响应于用户的操作,手机显示如图5中的(d)图所示的界面504。该界面504可以显示亮度等级从0级至10级的亮度进度条,用户可以手指在亮度进度条上滑动以调整亮度等级。假设用户在表 3列举的拍摄后的编辑操作中,修改了该照片1的亮度等级为3级,且在图5复原照片的拍摄过程中,执行了如图5中的(d)图所示的操作1,修改亮度等级为7级,再执行操作2,点击“确定”控件,响应于用户的操作,手机显示如图5中的(e)图所示的界面505。
或者,在图5中的(c)图中,如果用户长按拍摄后的亮度调节控件,响应于用户的操作,手机可以弹出“删除”选项,用户可以点击删除选项并确认执行删除操作,可以删除了该照片1的复原模板文件中包括的拍摄后的亮度调节参数,此处不再赘述。
当用户确定不需要再修改该照片1的复原模板文件中包括的一种或多种参数时,可以执行如图5中的(e)图所示的操作,点击悬浮窗口中的“确定”控件,响应于用户的操作,手机显示如图5中的(f)图所示的拍摄预览界面506。
对比图5中的(a)图所示的拍摄预览界面501和图5中的(f)图所示的拍摄预览界面506,在图5中的(a)图所示的拍摄预览界面501上,虽然用户已经切换当前的拍摄模式为复原模式,由于没有选择复原模板文件,相关的拍摄参数可以默认为当前相机的默认的拍摄参数,例如具有“1.0×”的放大倍数、没有开启美颜级别和其他滤镜色彩等效果。
在图5中的(f)图所示的拍摄预览界面506中,由于用户已经通过图5中的(b)图-(c)图-(d)图所示的过程选择了复原模板文件,相关的拍摄参数可以自动调整为该复原模板文件包括的一种或多种参数,例如在该拍摄预览界面506上显示“1.5×”的放大倍数、开启美颜级别(美颜6级)和其他滤镜色彩等效果。
另一种可能的实现方式中,当用户修改该复原模板文件中的一种或多种参数之后,点击悬浮窗口中的“确定”控件,响应于用户的操作,手机可以根据用户的操作,自动将修改之后的参数更新到该复原模板文件,即覆盖原来的复原模板文件,以用户修改之后的参数替换该复原模板文件的原始参数。
或者,响应于用户的操作,手机可以根据用户的操作,结合修改之后的参数和原始复原模板文件中的一种或多种参数,生成新的复原模板文件并自动保存该新的复原模板文件,例如新的复原模板文件在原始复原模板文件名称后继续添加后缀名并进行保存。
又或者,响应于用户的操作,手机可以弹出窗口,由用户选择是否自动更新、或覆盖原始的复原模板文件,根据用户选择进行响应,本申请实施例对此不作限定。
示例性的,在图5中的(d)图中,用户修改亮度为7级,当用户点击界面505中的“确定”控件,手机可以自动弹窗,提供给用户选择是否保存该参数至复原模板文件,如果用户选择是,相应地,该名称为“IMG-2021-12-R1”的照片所对应的复原模板文件中拍摄后的亮度由原始的3级变化并保存为7级。
可以理解的是,此时根据用户选中的复原模板文件,手机自动调整当前的拍摄参数为该复原模板文件包括的一种或多种参数,用户基于该自动调整后的一种或多种参数拍摄照片,即可以获取和该丢失或被误删除的照片1相同或相似的照片。
上述实现方式,支持用户对该复原模板文件中的一种或多种参数进行查看、修改、编辑、删除等操作,且可以根据用户修改、编辑、删除等操作,更新复原模板文件中的相关参数,满足了用户不同场景的拍摄需求。
一种可能的方式中,用户可以根据复原模板文件中包括的照片的基本信息,准确地找到大致的取景范围,并使得相机应用的拍摄预览界面中的预览画面显示相同的取景,从而复原出相同或相似的照片。
示例性的,在界面503或界面505的悬浮窗口中显示了该丢失或被误删除的照片1的缩略图、地理位置以及其他基本信息,用户可以根据该丢失或被误删除的照片1的缩略图、地理位置等信息定位相同的取景,并执行如图5中的(f)图所示的操作,点击拍摄快门控件31,响应于用户的操作,手机完成拍摄并将拍摄的照片存储到本地相册。
通过上述过程,当用户拍摄的照片丢失或者被误删除时,可以根据本申请实施例提供的复原拍摄的方法,基于该丢失或者被误删除照片对应的复原模板文件,重新拍摄照片,且重新拍摄的照片可以和该丢失或被误删除的照片具有相同的拍摄参数、编辑参数等,和/或可以具有大致相同的取景范围,从而为用户复原出和该丢失或被误删除的照片相同或相似的照片,该过程不需要用户手动重新设置相关的拍摄参数、编辑参数等,就可以复原照片的拍摄过程和/或取景范围,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
另一种可能的实现方式中,如果用户拍摄的照片丢失或者被误删除,当用户切换当前的拍摄模式为复原模式时,手机可以自动提醒用户原照片的缺失,并自动触发手机的复原拍摄过程。
应理解,根据表4的内容,用户拍摄的每一张照片都对应唯一的复原模板文件,如果某一张照片丢失或者被误删除,手机可以检测到该照片的源文件缺失,或者某一个复原模板文件对应的照片文件是缺失的,因此,手机可以自动提醒用户该照片的缺失,以及由用户选择是否进行该照片的复原。
图6是本申请实施例提供的另一例复原拍摄过程的图形用户界面示意图。
示例性的,如图6中的(a)图所示,在该拍摄预览界面601上,当用户切换当前的拍摄模式为复原模式时,响应于用户的操作,手机检测到用户拍摄的一张或多张照片缺失,可以自动显示如图6中的(b)图所示的界面602。该界面602包括提示窗口,该提示窗口中包括提示信息,该提示信息用于提示用户:以下照片的源文件丢失或损坏,请确定是否修复?此外,该提示窗口中还显示了丢失或损坏的一张或多张照片的名称,例如名称为“IMG-2021-12-R1”的照片、名称为“IMG-2021-11-R3”的照片和名称为“IMG-2021-10-R5”的照片。
用户可以执行如图6中的(b)图所示的操作1,点击“IMG-2021-12-R1”的照片名称所在控件,再执行操作2,点击“是”控件,响应于用户的操作,手机显示如图6中的(c)图所示的界面603,该界面603可以以提示窗口的形式为用户呈现名称为“IMG-2021-12-R1”的照片所对应的复原模板文件中的一种或多种参数信息,具体的介绍可以参照前述界面503的相关描述,为了简便,此处不再赘述。
当用户确定不需要再修改该照片“IMG-2021-12-R1”的复原模板文件中包括的一种或多种参数时,可以执行如图6中的(c)图所示的操作,点击提示窗口中的“确定”控件,响应于用户的操作,手机显示如图6中的(d)图所示的拍摄预览界面604,用户可以准确地找到该照片“IMG-2021-12-R1”的大致的取景范围,从而点击拍摄快门控 件31,拍摄出相同或相似的照片,该过程可以参照前述的相关描述,为了简便,此处不再赘述。
应理解,当用户执行了如图6中的(d)图所示的操作,完成了照片的拍摄之后,重新拍摄的照片可以和该缺失的照片具有相同的拍摄参数、编辑参数等,和/或可以具有大致相同的取景范围。可选地,手机可以自动保存该重新拍摄的照片,并将该重新拍摄的照片命名为“IMG-2021-12-R1”,且建立该照片“IMG-2021-12-R1”和复原模板文件之间的对应关系,完善表4中列举的多张照片和每一张照片的复原模板文件之间的一一对应关系,避免了照片的缺失。
对比图5和图6的复原照片的过程,图5介绍的过程可以理解为当某一张照片丢失或被误删除时,由用户主动发起的复原该照片的过程。图6介绍的过程可以理解为当相机应用切换复原模式,可以自动检测手机存储的多个复原模板文件是否存在对应的照片缺失情况。当检测到某复原模板文件对应的照片缺失时,可以自动提示用户缺失的照片且供用户选择是否对缺失的照片进行复原,并自动触发手机的复原拍摄过程,保证复原模板的完整性。
通过图5和图6,丰富了本申请的应用场景,在不同应用场景下,可以为用户提供主动复原缺失的照片的方式,也可以提示用户由用户选择复原缺失的照片,可以保证复原模板的完整性,且复原照片的过程操作便捷,能够快速地复原以前的拍摄过程,提升了用户的使用体验。
另一种可能的实现方式中,在如图6中的(b)图所示的提示窗口中,如果显示了多张丢失或损坏的照片,用户可以点击其中的一张照片“IMG-2021-12-R1”,按照上述方式进行复原。当用户执行如图6中的(b)图所示的操作完成照片“IMG-2021-12-R1”的复原之后,手机可以进一步返回显示图6中的(b)图所示的界面602,并在提示窗口中显示其他丢失或损坏的照片,用户可以继续复原其他丢失或损坏的照片,此处不再赘述。
或者,在如图6中的(b)图所示的提示窗口中,如果显示了多张丢失或损坏的照片,用户可以直接点击该提示窗口中的“是”控件,手机默认选中所有的照片进行全部复原,提高复原照片的效率,本申请实施例对此不作限定。
另一种可能的场景中,当检测到某复原模板文件对应的照片缺失时,手机可以自动提示用户缺失的照片且供用户选择是否对缺失的照片进行复原,用户也可以选择拒绝复原该缺失的照片。
图7是本申请实施例提供的又一例复原拍摄过程的图形用户界面示意图。
示例性的,如图7中的(a)图所示的拍摄预览界面701上,当用户切换当前的拍摄模式为复原模式时,手机自动显示如图7中的(b)图所示的界面702和提示窗口,当用户点击该提示窗口的“否”控件,响应于用户的操作,手机显示如图7中的(c)图所示的界面703,该界面703可以显示悬浮窗口,且该悬浮窗口中用于用户重新从一个或多个复原模板文件中选择用户所期望使用的复原模板。
应理解,当用户拒绝复原手机缺失的一张或多张照片时,该缺失的一张或多张照片可能是用户主动删除的,且不需要再复原的照片。
可选地,如果用户在预设时段(例如1个月的时间)内,都选择拒绝复原缺失的 一张或多张照片时,手机可以自动删除该缺失的一张或多张照片中每一张照片对应的复原模板文件,本申请实施例对此不作限定。
示例性的,用户执行如图7中的(c)图所示的操作,在界面703的悬浮窗口中重新选了名称为“照片1-R2”的照片对应的复原模板文件,响应于用户的操作,手机显示如图7中的(d)图所示的界面704,该界面704可以为用户呈现名称为“照片1-R2”的照片所对应的复原模板文件中的一种或多种参数信息,具体的介绍可以参照前述实施例的相关描述,此处不再赘述。
当用户确定不需要再修改该照片“照片1-R2”的复原模板文件中包括的一种或多种参数时,可以执行如图7中的(d)图所示的操作,点击提示窗口中的“确定”控件,响应于用户的操作,手机显示如图7中的(e)图所示的拍摄预览界面705,用户可以准确地找到该照片“照片1-R2”的大致的取景范围,从而点击拍摄快门控件31,拍摄出相同或相似的照片,该过程可以参照前述的相关描述,为了简便,此处不再赘述。
通过上述过程,当检测到某复原模板文件对应的照片缺失时,手机可以自动提示用户缺失的照片且供用户选择是否对缺失的照片进行复原,假设用户选择拒绝复原该缺失的照片时,可以提供给用户其他可用的照片对应的复原模板文件,用户可以根据自己的拍摄需求,选择合适的复原模板文件,快速地进行复原拍摄。
根据用户选择的复原模板文件,完成了照片的拍摄之后,重新拍摄的照片可以和该用户选中的复原模板文件对应的照片具有相同的拍摄参数、编辑参数等,和/或可以具有大致相同的取景范围。
图8是本申请实施例提供的再一例复原拍摄过程的图形用户界面示意图。
示例性的,用户执行如图8中的(a)图所示的操作,点击拍摄预览界面801上的拍摄快门控件31,响应于用户的点击操作,手机自动弹出提示窗口802-1,显示如图8中的(b)图所示的界面802,该界面802的提示窗口802-1中显示提示信息:是否预览拍摄的照片?用户点击“是”控件,响应于用户的点击操作,手机显示如图8中的(c)图所示的界面803,该界面803可以显示刚完成拍摄的照片,以及显示提示信息:是否保存拍摄的照片?
一种可能的场景中,当用户查看该照片,且基于复原拍摄文件拍摄的复原照片满足用户复原照片的需求时,用户可以执行如图8中的(c)图所示的操作,点击“保存并更新拍摄参数”的控件,响应于用户的操作,手机可以保存该照片到本地相册,并将复原拍摄该照片的过程中修改的相关的拍摄参数、编辑参数等,更新到复原拍摄文件包含的一种或多种参数信息中。
又一种可能的场景中,当用户点击该界面802的提示窗口802-1中的“否”控件,响应于用户的点击操作,手机可以继续返回显示如图8中的(a)图所示的拍摄预览界面801,并自动将拍摄的照片进行保存,本申请实施例对此不作限定。
另一种可能的场景中,当用户查看该照片,且基于复原拍摄文件拍摄的复原照片无法满足用户复原照片的需求时,用户可以执行如图8中的(d)图所示的操作,点击“重拍”控件,响应于用户的操作,手机可以返回显示如图8中的(e)图所示的拍摄预览界面805。在该拍摄预览界面805上,用户可以点击“复原”模式控件,响应于用户的操作,手机显示如图8中的(f)图所示的复原模板的选择界面806,用户可以根据 自己的拍摄需求重新从一个或多个复原模板中选择期望的目标复原模板,进而重新进行复原拍摄,具体的内容可以参照前述实施例的相关描述,为了简便,此处不再赘述。
通过上述方式,在用户使用复原模板文件复原曾经的照片时,可以复原拍摄过程去拍摄其他不同的物体,也可以精准地确定曾经照片的取景范围,复原曾经的照片。且在该过程中,用户完成拍摄后可以预览并查看该拍摄的照片,并判断该复原的照片是否满足需求。当满足需求的情况下保存该照片,更新对应的参数到复原模板文件中;当不满足需求的情况下可以重新拍摄,或者重新选择复原模板文件,重新进行复原拍摄。该过程可以满足不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
此外,用户在进行复原拍摄的过程中,对于手机本地存储的一个或多个复原模板文件,可能有部分复原模板文件的使用频率可能很低,或者是被用户淘汰的。那么,对于该类使用频率较低的复原模板文件,本申请实施例还可以支持用户对一个或多个复原模板文件进行删除、修改、编辑、自定义等。
图9是本申请实施例提供的又一例复原拍摄过程的图形用户界面示意图。
示例性的,如图9中的(a)图所示的复原模板选择界面901,该界面901上的悬浮窗口中以列表的形式显示了多个复原模板。用户可以执行如图9中的(a)图所示的操作,长按名称为“IMG-2021-12-R1”的照片所对应的控件,响应于用户的操作,手机自动弹出操作窗口902-1,并显示如图9中的(b)图所示的界面902。在该界面902上,该操作窗口902-1中显示了查看相关参数选项、删除选项、编辑选项、自定义选项和更多选项等,本申请实施例对操作窗口902-1中的显示内容和选项数量不作限定。
用户点击删除选项,响应于用户的操作,手机自动弹出删除提示窗口903-1,该删除提示窗口903-1中显示提示信息:是否删除IMG-2021-12-R1的复原模板文件?当用户执行了如图9中的(c)图所示的操作,点击“确定”控件,响应于用户的操作,手机删除了照片名称为“IMG-2021-12-R1”的照片对应的复原模板文件,相应地,手机在如图9中的(d)图所示的复原模板选择界面904悬浮窗口中,将不再显示删除的名称为“IMG-2021-12-R1”的照片对应的复原模板,此处不再赘述。
同样地,用户还可以根据个人需求,在图9中的(b)图所示的操作窗口902-1中选择查看相关参数选项、编辑选项、自定义选项和更多选项等,每一个选项可以实现不同的功能,例如编辑选项,可以支持用户对该复原模板包括的一种或多种参数进行修改、替换等操作,此次不再一一赘述。
上述实施例以用户拍摄照片过程为例,当用户拍摄的照片时,手机可以根据用户拍摄的照片、以及拍摄照片过程中的一种或多种拍摄参数和/或拍摄完成后用户编辑该照片的过程中的编辑参数等内容,生成对应的“复原模板文件”。当用户拍摄的照片丢失或者被误删除时,用户可以根据该照片对应的复原模板文件进行复原拍摄,从而实现照片的复原,重新拍摄出与该丢失或被误删除的照片相同或相似的照片。
应理解,本申请实施例的复原拍摄的能力可以是手机等电子设备的系统能力,相应地,该系统能力可以被相机应用等多种具有拍摄能力的应用程序调用。示例性的,该复原拍摄过程的实现,可以基于手机出厂时配置的相机应用,还可以基于用户下载并安装的美颜相机、美拍等其他的能够拍摄照片的任意应用,或者,还可以应用于
Figure PCTCN2022136943-appb-000011
Figure PCTCN2022136943-appb-000012
应用、
Figure PCTCN2022136943-appb-000013
应用等具有照片拍摄、视频录制等功能的任意应用,本申请实施例对此不作限定。
还应理解,除了上述介绍的拍摄照片并复原拍摄的方法,本申请实施例提供的复原过程还可以应用于用户录制视频的场景,例如双景拍摄、多景拍摄等其他不同拍摄模式下录制视频片段的场景,本申请实施例对复原过程可用的场景不作限定。
以双景拍摄模式下录制视频片段的场景为例,图10是本申请实施例提供的再一例复原拍摄过程的图形用户界面示意图。
示例性的,图10中的(a)图示出了手机的拍摄预览界面1001,且用户切换当前的拍摄模式为双景拍摄模式,相应地,用于定位当前的拍摄模式的“黑色小三角图标”可以指向“双景拍摄”模式控件。
可选地,在双景拍摄模式的拍摄预览界面1001上,可以显示两个预览窗口:预览窗口1001-1和预览窗口1001-2。可选地,不同的预览窗口中的画面可以来源于不同的手机镜头。示例性的,该预览窗口1001-1中的画面可以来源于手机的后置的广角摄像头,用于拍摄远处的景色,该画面称为“后景流”画面;该预览窗口1001-2中的画面可以来源于手机的前置摄像头,用于拍摄人物脸部特写,该画面称为“前景流”画面。
在录制双景画面的视频片段的过程中,用户可以为不同的预览窗口中的画面设置不同的拍摄参数,例如每一个预览窗口中的画面,可以独立地基于表3所列举的不同数量和/或不同种类的参数进行拍摄。
当用户为每一个预览窗口设置不同的拍摄参数之后,执行如图10中的(a)图所示的操作,点击拍摄快门控件31,响应于用户的操作,手机可以通过不同的摄像头采集不同的视频画面,并根据该“后景流”画面和“前景流”画面录制视频片段。同样地,用户可以再次点击拍摄快门控件31,结束视频片段的录制过程,并将录制的视频片段保存到本地。
一种可能的实现方式中,对于存储在手机本地的任意一个具有双景画面的视频片段,手机可以根据该双景画面的视频片段包括的每一部分画面对应的拍摄参数和/或编辑参数等,生成该视频片段对应的一个或多个复原模板文件。
示例性的,该双景画面的视频片段可以理解为两部分画面的组合,那么该双景画面的视频片段对应的复原模板文件可以包括:第一复原模板文件、第二复原模板文件和第三复原模板文件。其中,第一复原模板文件对应包括“后景流”画面对应的一种或多种参数,例如不同的拍摄摄像头的参数、用户设置的焦距、美颜等拍摄参数;第二复原模板文件对应包括“前景流”画面对应的一种或多种参数,例如不同的拍摄摄像头的参数、用户设置的焦距、美颜等拍摄参数;第三复原模板文件对应包括“后景流+前景流”画面对应的所有参数。
应理解,该双景画面的视频片段对应的第一复原模板文件和第二复原模板文件可以分别对应不同数量和/或不同种类的参数;或者,该双景画面的视频片段对应的第一复原模板文件和第二复原模板文件包括相同数量和/或相同种类的参数,本申请实施例对此不作限定。
可选地,当该双景画面的视频片段丢失或者被误删除时,用户也可以基于该双景画面的视频片段对应的复原模板文件(例如第一复原模板文件、第二复原模板文件、 第三复原模板文件),复原照片、或者复原视频片段等。
示例性的,如图10中的(b)图所示的拍摄预览界面1002上,用户切换当前的拍摄模式为复原模式,当用户点击该“复原”模式控件,响应于用户的操作,手机显示如图10中的(c)图所示的复原模板的选择界面1003。该复原模板的选择界面1003的悬浮窗口中显示了一个或多个复原模板。
一种可能的实现方式中,该复原模板的选择界面1003的悬浮窗口中显示的一个或多个复原模板可以包括:照片对应的复原模板,和/或视频片段对应的复原模板,和/或动图对应的复原模板,和/或有声照片对应的复原模板等不同的多媒体文件对应的复原模板。
可选地,在相机应用的复原模式下,用户既可以执行复原照片的过程,也可以执行复原视频的过程,不同的过程可以根据用户选择的复原模板文件的类型进行确定。例如,根据用户选择的复原模板文件的后缀名、文件名称等进行区分。
示例性的,在图10中的(c)图中,该复原模板选择窗口中可以包括照片对应的复原模板,也可以包括视频片段对应的复原模板,不同的复原模板可以通过不同的后缀名进行区分,“-R”标识“复原模板”。例如,照片的复原模板的后缀名携带“-P-R”,例如“照片1-P1-R”、“照片2-P2-R”和“照片3-P3-R”分别对应照片1、照片2和照片2的复原模板;视频片段的复原模板的后缀名携带“-V”,例如“视频1-2021-12-V1-R”、“视频2-2021-12-V2-R”和“视频3-2021-12-V3-R”分别对应视频片段1、视频片段2和视频片段3的复原模板,本申请实施例对此不作限定。
当用户点击“照片1-P1-R”,手机可以根据用户选择的复原模板的后缀名,判断用户使用当前相机应用复原并拍摄照片,并进一步进行相应的拍摄模式。当用户点击“视频1-2021-12-V1-R”,手机可以根据用户选择的复原模板的后缀名,判断用户使用当前相机应用复原并录制视频,并进一步进行相应的录制视频的模式。
可选地,在相机应用的复原模式下,供用户选择的一个或多个复原模板的文件名称可以没有以文件类型后缀名的形式被区分为照片(-P)、视频(-V)等不同类型,仅仅都以-R的形式以复原模板文件存在,用户选择其中某一个复原模板文件之后,可以以该复原模板文件对应的源文件类型确定当前用于复原照片、动图或者视频等,示例性的,用户从多个被命名为xxxx-R的文件中选择一个,如果该xxxx-R的文件对应的源文件类型为照片,那么当前复原模式下可以默认为用户复原照片的拍摄过程,本申请实施例对此不作限定。
又或者,在该复原模板的选择界面1003的悬浮窗口中,用户可以长按并选中一个或多个复原模板中的任意一个,并在弹出的通过如图9中的(b)图所示的操作窗口902-1中的“更多”选项选择复原并拍摄照片,或者复原并录制视频。示例性的,图9中的(b)图所示的操作窗口902-1中的“更多”选项中可以进一步包括“照片”、“视频片段”、“动图”、“有声照片”等选项,用户可以选择并根据该复原模板复原不同类型的多媒体文件。
又或者,图9中的(b)图所示的操作窗口902-1中的添加“变换(change)”选项,用户如果在该复原模板的选择界面1003的悬浮窗口选中某一个照片对应的复原模板,那么通过该“变换(change)”选项,可以进一步选择“视频片段”、“动图”、“有声照片” 等选项,实现:使用该照片对应的复原模板复原其他类型的多媒体文件,此处不再赘述。用户执行如图10中的(c)图所示的操作,点击名称为“视频1-2021-12-V1-R”的选项,响应于用户的操作,手机确认用户当前选中了名称为“视频1-2021-12-V1-R”的视频片段所对应的复原模板文件,手机可以进一步显示如图10中的(d)图所示的界面1004,该界面1004显示了该双景画面的视频片段对应的3种不同的复原模板选项:前景流选项(第二复原模板文件:视频1-2021-12-V1-R1)、后景流选项(第一复原模板文件:视频1-2021-12-V1-R2)、前景流+后景流选项(第三复原模板文件:视频1-2021-12-V1-R3)。用户可以点击不同的选项,选择不同类型的复原模板文件以及不同的参数来进行复原拍摄。
当用户点击“后景流”选项,响应于用户的操作,手机将“后景流”画面对应第一复原模板文件所包括的参数作为当前复原拍摄过程所需要的参数,手机可以显示如图10中的(e)图所示的界面1005,该界面1005的悬浮窗口中进一步显示了视频片段名称“视频1-2021-12-V1(后景流)”、“后景流”画面的封面缩略图、该第一复原模板文件存储位置(xxxxxx),“后景流”画面的拍摄焦距、分辨率、美颜级别、AI色彩等一种或多种视频录制参数,用户点击“确定”控件,就可以返回拍摄预览界面,并按照“后景流”画面对应的第一复原模板文件以及该一种或多种视频录制参数进行复原拍摄。
应理解,该场景下,手机基于“后景流”画面对应第一复原模板文件复原视频的录制过程,此时手机当下重新录制的视频片段可以是单画面视频,也可以是双景画面的视频,也可以参照前述实施例介绍的选择复原照片、视频片段的方式,为用户设置可以手动选择的选项,由用户选择;或者为用户自动匹配,本申请实施例对此不作限定。
同样地,用户如果点击“前景流”选项,手机将“前景流”画面对应第二复原模板文件所包括的一种或多种视频录制参数作为当前复原拍摄过程所需要的参数,该实现过程参照上述实现过程,此处不再赘述。
当用户点击“前景流+后景流”选项,响应于用户的操作,手机将“前景流+后景流”的双景画面对应的“第三原模板文件”包括的所有参数作为当前复原拍摄过程所需要的一种或多种视频录制参数,手机可以在该界面1005中既显示“后景流”画面的封面缩略图、第一复原模板文件存储位置,“后景流”画面的拍摄前的焦距、分辨率、美颜级别、AI色彩等一种或多种视频录制参数,又显示“前景流”画面的封面缩略图、该第二复原模板文件存储位置,“后景流”画面的拍摄前的焦距、分辨率、美颜级别、AI色彩等一种或多种视频录制参数,此处不再赘述。该场景下,当用户点击“确定”控件,手机可以返回拍摄预览界面,并继续按照类似于图10中的(a)图所示的双景拍摄模式复原拍摄,显示两个预览窗口,且一个预览窗口中调整为“前景流”画面对应的一种或多种视频录制参数,另一个预览窗口中调整为“后景流”画面对应的一种或多种视频录制参数,由用户点击拍摄快门键31进行视频片段的录制,此处不再赘述。
本申请实施例提供的方法,可以应用于双景拍摄模式,且该双景拍摄模式下录制的视频片段也可以生成复原模板文件,用于复原拍摄过程。具体地,该双景画面的视频片段对应的复原模板文件,可以复原单画面的普通视频片段,也可以复原双景画面的视频片段,还可以复原照片、动图等不同类型的多媒体文件。该实现方式丰富了本申请的应用场景,一定程度上提高了复原模板的利用效率,该复原拍摄的过程操作便 捷,能够快速地复原多媒体文件的拍摄过程和/或取景内容,提升了用户的使用体验。
可选地,除了上述实施例介绍的双景拍摄的场景,对于其他“多景拍摄”或者“多流拍摄”的场景,可以对应多种不同的处理方式。
需要说明的是,以上以“双景拍摄”模式为例,介绍了录制视频片段时可以生成3种复原模板文件,应理解,该“双景拍摄”模式还可以生成多于3种的复原模板文件。可选地,当用户使用“多景拍摄”或“多流拍摄”等拍摄模式录制视频时,用户中途可以执行切换摄像头的操作,当不同的摄像头采集视频画面时,可以独立地生成不同的复原模板文件,该复原模板文件可以独立存储。
示例性的,该“多景拍摄”场景中的包括多个拍摄画面,该场景下可以包括以下不同的处理方式:
(1)多景拍摄包括的多个拍摄画面中,每一景的拍摄画面对应独立的复原模板文件,且多个复原模板文件可以通过文件后缀名的方式相互关联;
(2)多景拍摄包括的多个拍摄画面对应唯一的一个复原模板文件。具体地,可以将多景画面整体作为一个单景画面,直接使用生成的唯一的复原模板文件进行复原;
(3)检测到用户切换摄像头的操作时,对于不同的摄像头采集视频画面的片段,生成单独的复原模板文件,以便于独立复原。
表5列举了一种可能的多个复原模板文件之间关联方式,如表5所示,多景拍摄的视频片段名称为“视频1-2021-12-V1-R”,其中,第一景拍摄画面对应的第一复原模板文件可以命名为“视频1-2021-12-V1-R1”,第二景拍摄画面对应的第二复原模板文件可以命名为“视频1-2021-12-V1-R2”,第三景拍摄画面对应的第三复原模板文件可以命名为“视频1-2021-12-V1-R3”。
表5
多景拍摄模式 复原模板文件 关联方式(后缀名)
第一景拍摄画面 第一复原模板文件 视频1-2021-12-V1-R1
第二景拍摄画面 第二复原模板文件 视频1-2021-12-V1-R2
第三景拍摄画面 第三复原模板文件 视频1-2021-12-V1-R3
…… …… ……
可选地,在进行复原拍摄时,可以直接将这3个复原模板文件联动起来,一起作为整体的复原模板文件,即用第一复原模板文件、第二复原模板文件和第三复原模板文件重新复原多景画面的视频、照片等多媒体文件。
或者,3个复原模板文件可以作为独立的复原模板文件,用户可以根据个人的拍摄需求,选择3个复原模板文件中的任意一个或多个复原模板文件重新复原多景画面的视频、照片等多媒体文件,本申请实施例对此不作限定。
可选地,当3个复原模板文件中有某一个复原模板文件损坏时,还可以使用其他的完好的复原模板文件复原被损坏的文件。
上述不同的实现方式,可以使得复原拍摄的过程更加灵活,让用户结合自己的拍摄需求,手动选择使用一个或多个复原模板文件,为用户提供了更加多样、更加便捷的复原拍摄方式,提高了用户的使用体验。
可选地,对于照片、视频、动图等任意一个多媒体文件,该多媒体文件对应的复 原模板文件,不但可以用于复原相同类型的多媒体文件,还可以用于复原不同类型的多媒体文件。
示例性的,对于任意一段视频,该视频对应的复原模板文件可以用于复原照片,也可以用于复原视频,还可以用于复原动图等,以得到相同或相似显示效果的多媒体文件,本申请实施例对此不作限定。
可选地,用于作为复原模板的照片或视频,可以是用户通过手机拍摄的,也可以是用户下载的,或者由其他设备发送的,并保存在手机的本地相册。
具体地,当一张照片保存到手机的本地图库时,手机可以检测该照片并获取该照片对应的拍摄参数,例如该照片的亮度等级、滤镜色彩等,并生成该照片的复原模板文件,该复原模板文件也可以结合前述介绍的复原照片的过程,指导用户基于该复原拍摄文件拍摄其他照片等。同样地,视频也可以具有类似的实现过程,为了简便,此处不再一一赘述。
综上所述,通过本申请实施例提供的复原拍摄的方法,为用户提供的一种新型拍摄方案,当用户拍摄的照片、动图、录制的视频片段等多媒体文件丢失或被误删除时,该方法可以基于电子设备保存的一个或多个复原模板文件,快速地实现复原拍摄。
具体地,用户可以使用复原模板文件复原拍摄过程,即使用该复原模板文件包括的一种或多种拍摄参数重新拍摄其他不同的物体,复原出具有相同显示效果的照片、动图、录制的视频片段等多媒体文件;或者,用户还可以选择相同的取景范围,复原出具有相同效果且具有相同取景范围的照片、动图、录制的视频片段等多媒体文件。该方法可以满足不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
此外,在用户选择复原模板文件的过程中,用户选中了复原模板之后,该方法支持用户对该复原模板中的一种或多种参数进行查看、修改、编辑、删除等操作,且可以根据用户修改、编辑、删除等操作,更新复原模板文件中的相关参数,或者根据更新后的相关参数生成并保存新的复原模板,满足了用户不同场景的拍摄需求。
再者,通过上述方案,如果用户拍摄的照片、动图、视频片段等多媒体文件丢失或者被误删除,当用户切换当前的拍摄模式为复原模式时,手机可以自动检测存储的多个复原模板文件是否存在对应的多媒体文件的缺失情况。当检测到某复原模板文件对应的多媒体文件缺失时,可以自动提示用户缺失的多媒体文件且供用户选择是否对缺失的多媒体文件进行复原,并自动触发手机的复原拍摄过程。该方法可以保证复原模板的完整性,提升了用户的使用体验。
上述实施例结合图3至图10,从用户交互层面介绍了复原照片的过程,下面将结合图11,从软件实现策略层面,介绍本申请实施例提供的复原拍摄的方法。
应理解,该方法可以在如图1、图2所示的具有显示屏、一个或多个摄像头等结构电子设备(例如手机、平板等)中实现。
图11是本申请实施例提供的一例复原拍摄的方法的示意性流程图,以手机为例,如图11所示,该方法可以包括以下步骤:
1101,显示所述电子设备的拍摄预览界面,所述拍摄预览界面中包括基于第一参数集合的一种或多种拍摄参数显示的画面。
可选地,本申请实施例的复原拍摄的能力可以是手机等电子设备的系统能力,相应地,该系统能力可以被相机应用等多种具有拍摄能力的应用程序调用。
示例性的,该复原拍摄过程的实现,可以基于手机出厂时配置的相机应用,用户可以通过手机的相机应用,运行相机应用并显示拍摄预览界面。示例性的,该步骤1101的实现过程可以如图3中的(a)图所示。
或者,该复原拍摄过程的实现,还可以基于用户下载并安装的美颜相机、美拍等其他的能够拍摄照片的任意应用。
又或者,还可以应用于例如
Figure PCTCN2022136943-appb-000014
应用、
Figure PCTCN2022136943-appb-000015
应用等具有照片拍摄、视频录制等功能的任意应用,本申请实施例对此不作限定。
可选地,本申请实施例所涉及的“拍摄参数”可以包括前述表2中列举的焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。
应理解,在本申请实施例中,所述电子设备存储有一个或多个复原模板,或者说存储有一个或多个复原模板文件。
可选地,所述一个或多个复原模板中包括预设的复原模板。示例性的,手机出厂时可以由开发人员设置的2个固定的复原模板,该复原模板对应固定的拍摄参数,该拍摄参数可以使得手机具有比较优质的拍摄效果,此后不论用户复原拍摄照片、录制视频等,都可以显示该预设的复原模板。
或者,所述一个或多个复原模板中包括所述电子设备根据关联的多媒体文件的一种或多种拍摄参数生成的复原模板。
示例性的,手机可以智能地检测拍摄环境、拍摄对象等,并根据拍摄环境、拍摄对象等外部因素,智能地为用户匹配不同的拍摄模板。例如,当手机检测到当前为夜间较暗的拍摄环境时,该复原模板选择窗口中显示的一个或多个复原模板可以包括适应于夜间拍摄的参数。
或者,手机可以根据用户的使用频率和拍摄习惯等,智能地为用户显示使用频率较高的一个或多个复原模板。示例性的,名称为“IMG-2021-12-R1”的照片所对应的复原模板文件的使用频率最高,将在该复原模板选择窗口中优先被显示,本申请实施例对此不作限定。
可选地,本申请实施例的“复原拍摄的功能”可以支持用户通过相机应用的设置控件、快捷控件等进行手动开启或关闭。示例性的,用户可以通过图3中介绍的过程开启电子设备的复原拍摄的功能,此处不再赘述。
或者,该复原拍摄的功能还可以被配置为电子设备的默认功能,即可以授权电子设备的相机应用、图库应用等多个关联应用可以调用该复原拍摄的功能,本申请实施例对此不作限定。
1102,从所述一个或多个复原模板中确定第一复原模板,所述第一复原模板关联第一多媒体文件,所述第一多媒体文件是照片、动图或视频片段中的任意一种。
应理解,在本申请实施例中,“第一多媒体文件”、“第二多媒体文件”等多媒体文件可以包括照片、动图或视频片段中的任意一种,该多媒体文件可以是用户通过电子设备的相机应用等拍摄得到的,也可以是用户从网络、服务器、社交平台等下载的, 或者接收的由其他设备发送并保存在手机的本地的多媒体文件。
示例性的,以照片为例,当用户下载一张照片并保存到手机的本地图库时,手机可以检测该照片并获取该照片对应的拍摄参数,例如该照片的亮度等级、滤镜色彩等,并生成该照片的复原模板文件,该复原模板文件也可以用于指导用户拍摄其他的照片、动图、视频等多媒体文件,此处不再一一赘述。
一种可能的实现方式中,所述从所述一个或多个复原模板中确定第一复原模板,包括:接收用户的手动选择操作,从所述一个或多个复原模板中选择并确定所述第一复原模板。
示例性的,如图5中的(a)图-(b)图所示的操作,用户可以从复原模板选择窗口显示的一个或多个复原模板中,手动选中名称为“IMG-2021-12-R1”的照片所对应的复原模板为第一复原模板,此时,该名称为“IMG-2021-12-R1”的照片即为“第一多媒体文件”。
另一种可能的实现方式中,电子设备可以智能化自动从所述一个或多个复原模板中为用户匹配或推荐第一复原模板。可选地,可以根据所述电子设备所处的拍摄环境,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据所述拍摄预览界面显示的画面,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,根据用户的使用频率,自动将所述一个或多个复原模板中用户使用频率最高的复原模板确定为所述第一复原模板;或者,根据用户的使用记录,自动将所述一个或多个复原模板中用户距离当前最近一次使用的复原模板确定为所述第一复原模板,本申请实施例对此不作限定。
示例性的,当手机检测到当前为夜间较暗的拍摄环境时,该复原模板选择窗口中显示的一个或多个复原模板可以为用户匹配或推荐第一复原模板,该第一复原模板包括适应于夜间拍摄的拍摄参数。
又或者,手机可以根据用户的使用频率和拍摄习惯等,智能地将使用频率最高的名称为“IMG-2021-12-R1”的照片所对应的复原模板文件确定为第一复原模板,将在该复原模板选择窗口中优先被显示或默认被选中,用户也可以进行取消或更换,本申请实施例对此不作限定。
1103,获取所述第一复原模板对应的第二参数集合,所述第二参数集合包括拍摄所述第一多媒体文件的一种或多种拍摄参数。
可选地,所述第二参数集合还包括所述第一多媒体文件的取景信息,所述电子设备可以根据所述第一多媒体文件的取景信息,确定所述第一多媒体文件的取景范围;并根据用户的拍摄操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第三多媒体文件,所述第三多媒体文件和所述第一多媒体文件具有相同的显示效果和取景范围。
可选地,所述第二参数集合还包括用户对所述第一多媒体文件执行编辑处理的操作参数,拍摄得到所述第二多媒体文件之后,所述电子设备可以根据所述编辑处理的操作参数,对所述第二多媒体文件进行编辑处理,得到处理后的所述第二多媒体文件,其中,所述编辑处理包括前述表3中列举的修剪比例、调整滤镜色彩、调整美颜参数、调整亮度等级中的一种或多种。
1104,接收用户的第一操作,响应于所述第一操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第二多媒体文件,使得所述第二多媒体文件和所述第一多媒体文件具有相同的显示效果,所述第二多媒体文件是照片、动图或视频片段中的任意一种。
可选地,当所述第二多媒体文件是照片时,“第一操作”可以包括如图5中的(f)图所示的用户执行的点击拍摄快门控件的拍摄操作。当所述第二多媒体文件是视频片段时,“第一操作”可以包括如图5中的(f)图所示的用户执行的至少两次点击拍摄快门控件的录制视频的操作,本申请实施例对此不作限定。
一种可能的实现方式中,用户选中了第一复原模板文件之后,所述电子设备获取所述第一复原模板对应的所述第二参数集合之后,还可以将所述第二参数集合的一种或多种拍摄参数呈现给用户,用户还可以修改该复原模板文件中的一种或多种参数。
可选地,“修改该复原模板文件中的一种或多种参数”可以包括用户对所述第二参数集合的一种或多种拍摄参数执行编辑、删除、添加、调整等操作。
可选地,用户修改所述第二参数集合的一种或多种拍摄参数之后,所述电子设备可以根据修改后的所述第二参数集合更新所述第一复原模板,即覆盖原来的复原模板文件,以用户修改之后的参数替换第一复原模板文件的原始参数。
或者,所述电子设备可以根据修改后的所述第二参数集合,生成关联所述第一多媒体文件的第二复原模板,并保存所述第二复原模板。示例性的,电子设备可以根据用户的操作,结合修改之后的参数和原始的第一复原模板文件中的一种或多种参数,生成新的复原模板文件并自动保存该新的复原模板文件,例如新的第二复原模板文件在原始复原模板文件名称后继续添加后缀名并进行保存。
另一种可能的实现方式中,每一个多媒体文件可以对应唯一的复原模板文件,如果某一个多媒体文件丢失或者被误删除,手机可以检测到该多媒体文件的源文件缺失,电子设备可以自动提醒用户该多媒体文件的缺失,以及由用户选择是否进行该照片的复原。
具体地,当检测到所述第一复原模板关联的所述第一多媒体文件丢失或损坏时,电子设备可以在所述复原拍摄模式下,显示提示信息,所述提示信息用于提醒用户复原所述第一多媒体文件。该过程可以主动提醒用户复原多媒体文件,由用户选择复原缺失的多媒体文件,可以保证复原模板的完整性,且复原照片的过程操作便捷,能够快速地复原以前的拍摄过程,提升了用户的使用体验。
又一种可能的实现方式中,所述电子设备获取所述第一复原模板对应的第二参数集合之后,还可以基于所述第二参数集合包括的一种或多种拍摄参数,自动更新所述电子设备的所述拍摄预览界面显示的画面。
示例性的,对比图5中的(a)图所示的拍摄预览界面501和图5中的(f)图所示的拍摄预览界面506,在图5中的(a)图所示的拍摄预览界面501上,用户没有选择复原模板文件,相关的拍摄参数可以默认为当前相机的默认的拍摄参数,例如具有“1.0×”的放大倍数、没有开启美颜级别和其他滤镜色彩等效果。在图5中的(f)图所示的拍摄预览界面506中,用户已经通过图5中的(b)图-(c)图-(d)图所示的过程选择了复原模板文件,相关的拍摄参数可以自动调整为该复原模板文件包括的一种 或多种参数,例如在该拍摄预览界面506上显示“1.5×”的放大倍数、开启美颜级别(美颜6级)和其他滤镜色彩等效果。
可选地,在电子设备复原拍摄的过程中,用户既可以执行复原照片的过程,也可以执行复原视频的过程,不同的过程可以根据用户选择的复原模板文件的类型进行确定。例如,根据用户选择的复原模板文件的后缀名、文件名称等进行区分,用户可以选择不同类型的复原模板文件以及不同的参数来进行复原拍摄。
示例性的,在图10中的(c)图中,该复原模板选择窗口中可以包括照片对应的复原模板,也可以包括视频片段对应的复原模板,不同的复原模板可以通过不同的后缀名进行区分,“-R”标识“复原模板”。
此外,用户可以选择照片的复原模板文件复原照片的拍摄、视频片段的拍摄,或者复原动图的拍摄;也可以选择视频片段的复原模板文件复原照片的拍摄、视频片段的拍摄,或者复原动图的拍摄等,本申请实施例对此不作限定。
总之,本申请复原拍摄的方法为用户提供了一种新型拍摄方案,当用户拍摄的照片、动图、录制的视频片段等多媒体文件丢失或被误删除时,该方法可以基于电子设备保存的一个或多个复原模板文件,快速地实现复原拍摄。
具体地,用户可以使用复原模板文件复原拍摄过程,即使用该复原模板文件包括的一种或多种拍摄参数重新拍摄其他不同的物体,复原出具有相同显示效果的照片、动图、录制的视频片段等多媒体文件;或者,用户还可以选择相同的取景范围,复原出具有相同效果且具有相同取景范围的照片、动图、录制的视频片段等多媒体文件。该方法可以满足不同的应用场景,能够快速地实现照片的复原,简化了拍摄操作,提高了用户的体验。
此外,在用户选择复原模板文件的过程中,用户选中了复原模板之后,该方法支持用户对该复原模板中的一种或多种参数进行查看、修改、编辑、删除等操作,且可以根据用户修改、编辑、删除等操作,更新复原模板文件中的相关参数,或者根据更新后的相关参数生成并保存新的复原模板,满足了用户不同场景的拍摄需求。
再者,通过上述方案,如果用户拍摄的照片、动图、视频片段等多媒体文件丢失或者被误删除,当用户切换当前的拍摄模式为复原模式时,手机可以自动检测存储的多个复原模板文件是否存在对应的多媒体文件的缺失情况。当检测到某复原模板文件对应的多媒体文件缺失时,可以自动提示用户缺失的多媒体文件且供用户选择是否对缺失的多媒体文件进行复原,并自动触发手机的复原拍摄过程。该方法可以保证复原模板的完整性,提升了用户的使用体验。
需要说明的是,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。
还应理解,本申请实施例中的术语“第一”、“第二”以及“第三”仅为了区分,不应对本申请构成任何限定。例如,本申请实施例中的“第一复原模板”、“第二复原模板”等,表示包括不同的拍摄参数和/或编辑参数的不同复原模板。
还应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
还需要说明的是,本申请实施例中,“预设”、“固定值”等可以通过在电子设备中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定,例如本申请实施例的“预设的复原模板”。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,上述实施例中涉及的电子设备的一种可能的组成示意图,该电子设备可以包括:显示单元、检测单元和处理单元。其中,显示单元、检测单元和处理单元相互配合,可以用于支持电子设备执行上述步骤等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备,用于执行上述复原拍摄的方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述显示单元、检测单元和处理单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中复原拍摄的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中复原拍摄的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中复原拍摄的方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换, 都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (12)

  1. 一种复原拍摄的方法,应用于包括显示屏的电子设备,所述电子设备存储有一个或多个复原模板,其特征在于,所述方法包括:
    显示所述电子设备的拍摄预览界面,所述拍摄预览界面中包括基于第一参数集合的一种或多种拍摄参数显示的画面;
    从所述一个或多个复原模板中确定第一复原模板,所述第一复原模板关联第一多媒体文件,所述第一多媒体文件是照片、动图或视频片段中的任意一种;
    获取所述第一复原模板对应的第二参数集合,所述第二参数集合包括拍摄所述第一多媒体文件的一种或多种拍摄参数;
    接收用户的第一操作,响应于所述第一操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第二多媒体文件,使得所述第二多媒体文件和所述第一多媒体文件具有相同的显示效果,所述第二多媒体文件是照片、动图或视频片段中的任意一种。
  2. 根据权利要求1所述的方法,其特征在于,
    所述一个或多个复原模板中包括预设的复原模板;和/或,
    所述一个或多个复原模板中包括所述电子设备根据关联的多媒体文件的一种或多种拍摄参数生成的复原模板。
  3. 根据权利要求1或2所述的方法,其特征在于,所述从所述一个或多个复原模板中确定第一复原模板,包括:
    接收用户的第二操作,响应于所述第二操作,从所述一个或多个复原模板中选择并确定所述第一复原模板;或者,
    根据所述电子设备所处的拍摄环境,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,
    根据所述拍摄预览界面显示的画面,自动将所述一个或多个复原模板中具有最佳拍摄效果的复原模板确定为所述第一复原模板;或者,
    根据用户的使用频率,自动将所述一个或多个复原模板中用户使用频率最高的复原模板确定为所述第一复原模板;或者,
    根据用户的使用记录,自动将所述一个或多个复原模板中用户距离当前最近一次使用的复原模板确定为所述第一复原模板。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述获取所述第一复原模板对应的所述第二参数集合之后,所述方法还包括:
    显示所述第二参数集合的一种或多种拍摄参数;
    接收用户的第三操作,响应于所述第三操作,修改所述第二参数集合的一种或多种拍摄参数,并根据修改后的所述第二参数集合更新所述第一复原模板;或者,
    根据修改后的所述第二参数集合,生成关联所述第一多媒体文件的第二复原模板,并保存所述第二复原模板。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,当检测到所述第一复原模板关联的所述第一多媒体文件丢失或损坏时,所述方法还包括:
    在所述复原拍摄模式下,显示提示信息,所述提示信息用于提醒用户复原所述第 一多媒体文件。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述第二参数集合还包括所述第一多媒体文件的取景信息,所述方法还包括:
    根据所述第一多媒体文件的取景信息,确定所述第一多媒体文件的取景范围;
    接收用户的第四操作,响应于所述第四操作,基于所述第二参数集合包括的一种或多种拍摄参数,拍摄得到第三多媒体文件,所述第三多媒体文件和所述第一多媒体文件具有相同的显示效果和取景范围。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第二参数集合还包括用户对所述第一多媒体文件执行编辑处理的操作参数,拍摄得到所述第二多媒体文件之后,所述方法还包括:
    根据所述编辑处理的操作参数,对所述第二多媒体文件进行编辑处理,得到处理后的所述第二多媒体文件,其中,所述编辑处理包括修剪比例、调整滤镜色彩、调整美颜参数、调整亮度等级中的一种或多种。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述获取所述第一复原模板对应的第二参数集合之后,所述方法还包括:
    基于所述第二参数集合包括的一种或多种拍摄参数,自动更新所述电子设备的所述拍摄预览界面显示的画面。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述拍摄参数包括焦距、对焦模式、分辨率、摄像头、地理位置信息、美颜参数、滤镜色彩、闪光灯效果、水平仪效果、曝光度、感光度中的一种或多种参数。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述方法还包括:
    接收用户的第五操作,响应于所述第五操作,开启所述电子设备的复原拍摄的功能;或者,
    接收用户的第六操作,响应于所述第六操作,使所述电子设备进入复原拍摄模式。
  11. 一种电子设备,其特征在于,包括:
    显示屏;
    一个或多个处理器;
    一个或多个存储器;
    安装有多个应用程序的模块;
    所述存储器存储有一个或多个程序,当所述一个或者多个程序被所述处理器执行时,使得所述执行如权利要求1至10中任一项所述的方法。
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至10中任一项所述的方法。
PCT/CN2022/136943 2022-01-25 2022-12-06 一种复原拍摄的方法及电子设备 WO2023142690A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210097428.7 2022-01-25
CN202210097428.7A CN116546313A (zh) 2022-01-25 2022-01-25 一种复原拍摄的方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023142690A1 true WO2023142690A1 (zh) 2023-08-03

Family

ID=87445827

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136943 WO2023142690A1 (zh) 2022-01-25 2022-12-06 一种复原拍摄的方法及电子设备

Country Status (2)

Country Link
CN (1) CN116546313A (zh)
WO (1) WO2023142690A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020102978A1 (zh) * 2018-11-20 2020-05-28 华为技术有限公司 图像处理方法及电子设备
CN112532859A (zh) * 2019-09-18 2021-03-19 华为技术有限公司 视频采集方法和电子设备
CN113727012A (zh) * 2020-08-27 2021-11-30 荣耀终端有限公司 一种拍摄方法及终端
CN113727025A (zh) * 2021-08-31 2021-11-30 荣耀终端有限公司 一种拍摄方法、设备、存储介质和程序产品
CN113727017A (zh) * 2021-06-16 2021-11-30 荣耀终端有限公司 拍摄方法、图形界面及相关装置
CN113727015A (zh) * 2021-05-31 2021-11-30 荣耀终端有限公司 一种视频拍摄方法及电子设备
CN113824878A (zh) * 2021-08-20 2021-12-21 荣耀终端有限公司 基于可折叠屏的拍摄控制方法及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020102978A1 (zh) * 2018-11-20 2020-05-28 华为技术有限公司 图像处理方法及电子设备
CN112532859A (zh) * 2019-09-18 2021-03-19 华为技术有限公司 视频采集方法和电子设备
CN113727012A (zh) * 2020-08-27 2021-11-30 荣耀终端有限公司 一种拍摄方法及终端
CN113727015A (zh) * 2021-05-31 2021-11-30 荣耀终端有限公司 一种视频拍摄方法及电子设备
CN113727017A (zh) * 2021-06-16 2021-11-30 荣耀终端有限公司 拍摄方法、图形界面及相关装置
CN113824878A (zh) * 2021-08-20 2021-12-21 荣耀终端有限公司 基于可折叠屏的拍摄控制方法及电子设备
CN113727025A (zh) * 2021-08-31 2021-11-30 荣耀终端有限公司 一种拍摄方法、设备、存储介质和程序产品

Also Published As

Publication number Publication date
CN116546313A (zh) 2023-08-04

Similar Documents

Publication Publication Date Title
WO2020177622A1 (zh) Ui组件显示的方法及电子设备
CN114205522B (zh) 一种长焦拍摄的方法及电子设备
US11972096B2 (en) Picture selection method and electronic device
WO2021013132A1 (zh) 输入方法及电子设备
CN112887583A (zh) 一种拍摄方法及电子设备
US20220343648A1 (en) Image selection method and electronic device
WO2022068511A1 (zh) 视频生成方法和电子设备
WO2020192761A1 (zh) 记录用户情感的方法及相关装置
WO2020113534A1 (zh) 一种拍摄长曝光图像的方法和电子设备
CN112068907A (zh) 一种界面显示方法和电子设备
WO2024041394A1 (zh) 拍摄方法及相关装置
WO2021042878A1 (zh) 一种拍摄方法及电子设备
CN115689963A (zh) 一种图像处理方法及电子设备
CN115115679A (zh) 一种图像配准方法及相关设备
WO2022012418A1 (zh) 拍照方法及电子设备
CN114979457B (zh) 一种图像处理方法及相关装置
WO2021103919A1 (zh) 构图推荐方法和电子设备
CN115525783B (zh) 图片显示方法及电子设备
WO2023142690A1 (zh) 一种复原拍摄的方法及电子设备
WO2023142731A1 (zh) 一种分享多媒体文件的方法、发送端设备和接收端设备
WO2023015959A1 (zh) 拍摄方法及电子设备
EP4361805A1 (en) Method for generating theme wallpaper, and electronic device
WO2022228010A1 (zh) 一种生成封面的方法及电子设备
WO2024036998A1 (zh) 显示方法、存储介质及电子设备
WO2023207799A1 (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: 22923481

Country of ref document: EP

Kind code of ref document: A1