Method for restoring a shot and electronic device
Patent Information
- Application Number
- CN202210097428.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-01-25
AI Technical Summary
但是,一旦原始的照片、视频等多媒体文件丢失,想要再复原拍摄出相同或相似的照片、视频等多媒体文件,都比较困难
Smart Images

Figure CN116546313B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a method and electronic device for restoring photographs. Background Technology
[0002] With the explosive growth and widespread adoption of multimedia scenarios such as taking photos, recording short videos, and live streaming, users are increasingly using electronic devices to capture images and record videos.
[0003] For example, users can use mobile phones, tablets, and other electronic devices to photograph things they like or record interesting moments in their daily lives. For instance, users can use electronic devices to shoot fun videos, photos with sound, and animated images in graphics interchange format (GIF), and then share and publish the captured content to different media apps and social media platforms. Furthermore, users can also like, share, and save multimedia files such as photos and videos taken by other users on media apps and social media platforms.
[0004] When users take photos or record videos using electronic devices such as mobile phones and tablets, the resulting multimedia files can be saved on the phone for viewing. However, once the original photos, videos, or other multimedia files are lost, it is quite difficult to recover the same or similar files.
[0005] In one possible implementation, users can take photos using one or more shooting parameters such as professionally adjusted focal length, resolution, beauty level, color index, and brightness parameters. If the photo is lost or deleted due to user error, it is generally difficult to recover the same or similar photo. The shooting details and shooting parameters of the photo are difficult to clarify, making recovery even more difficult. It is basically impossible to recover a lost photo.
[0006] When a user loses a photo, how to recover the lost photo by recreating the shooting method and process, or how to recover the user's favorite photos, is a problem that urgently needs to be solved. Summary of the Invention
[0007] This application provides a method and electronic device for restoring a photograph. The method allows users to re-photograph different objects based on one or more restoration templates stored in the electronic device, and restore multimedia files such as photos, GIFs, and videos with the same effect and / or the same framing. It can quickly restore the shooting process, simplify shooting operations, and improve the user experience.
[0008] A first aspect provides a method for restoring a captured image, applied to an electronic device including a display screen, the electronic device storing one or more restoration templates, the method comprising: displaying a shooting preview interface of the electronic device, the shooting preview interface including a screen displayed based on one or more shooting parameters of a first parameter set; determining a first restoration template from the one or more restoration templates, the first restoration template being associated with a first multimedia file, the first multimedia file being any one of a photograph, an animated GIF, or a video clip; obtaining a second parameter set corresponding to the first restoration template, the second parameter set including one or more shooting parameters for capturing the first multimedia file; receiving a first operation from a user, and in response to the first operation, capturing a second multimedia file based on one or more shooting parameters included in the second parameter set, such that the second multimedia file and the first multimedia file have the same display effect, the second multimedia file being any one of a photograph, an animated GIF, or a video clip.
[0009] Optionally, the "shooting parameters" involved in the embodiments of this application may include one or more parameters selected from focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, level effect, exposure, and ISO.
[0010] It should be understood that, in the embodiments of this application, multimedia files such as "first multimedia file" and "second multimedia file" may include any one of photos, GIFs or video clips. The multimedia file may be captured by the user through the camera application of the electronic device, or it may be downloaded by the user from the network, server, social platform, etc., or received by other devices and stored locally on the electronic device.
[0011] For example, taking a photo as an example, when a user downloads a photo and saves it to the local gallery of an electronic device, the electronic device can detect the photo and obtain the corresponding shooting parameters, such as the brightness level and filter color of the photo, and generate a restoration template file for the photo. This restoration template file can also be used to guide the user to take other photos, GIFs, videos and other multimedia files, which will not be elaborated here.
[0012] It should also be understood that, in the embodiments of this application, the "first operation" may include one or more different user operations for different multimedia file types.
[0013] For example, when the second multimedia file is a photograph, the "first operation" may include a shooting operation performed by the user by clicking the shutter control. When the second multimedia file is a video clip, the "first operation" may include a video recording operation performed by the user by clicking the shutter control at least twice; this embodiment of the application does not limit this.
[0014] Through the above-described solution, this application provides users with a novel method for restoring lost or accidentally deleted multimedia files such as photos, GIFs, and recorded video clips. This method can quickly restore the captured images based on one or more restoration template files stored on the electronic device. Specifically, users can use the restoration template files to restore the shooting process, that is, use one or more shooting parameters included in the restoration template file to re-shoot different objects, restoring multimedia files such as photos, GIFs, and recorded video clips with the same display effect; alternatively, users can select the same framing to restore multimedia files such as photos, GIFs, and recorded video clips with the same effect and framing. This method can meet different application scenarios, quickly restore photos, simplify shooting operations, and improve the user experience.
[0015] Optionally, the ability to restore the image in the embodiments of this application can be a system capability of an electronic device or other electronic device. Accordingly, this system capability can be invoked by various applications with shooting capabilities, such as camera applications.
[0016] For example, the restoration shooting process can be implemented based on the camera application configured at the factory of the electronic device. The user can run the camera application and display the shooting preview interface through the camera application of the electronic device.
[0017] Alternatively, the restoration of the shooting process can also be achieved based on any other photo-taking application that the user has downloaded and installed, such as beauty camera apps or other photo-taking apps.
[0018] Or, it can also be applied to, for example application, Any application with functions such as photo taking and video recording is included, and this application embodiment does not limit this to any application.
[0019] Optionally, the "restore shooting function" in this application embodiment can be manually enabled or disabled by the user through the camera application's settings controls, shortcut controls, etc. Alternatively, the restore shooting function can also be configured as a default function of the electronic device, that is, multiple associated applications of the electronic device, such as the camera application and the gallery application, can be authorized to call the restore shooting function. This application embodiment does not limit this.
[0020] In conjunction with the first aspect, in some implementations of the first aspect, the one or more restoration templates include a preset restoration template; and / or, the one or more restoration templates include a restoration template generated by the electronic device based on one or more shooting parameters of an associated multimedia file.
[0021] In one possible implementation, the electronic device can be set by the developers with several (n, for example, 2) fixed restoration templates when it leaves the factory. These restoration templates correspond to fixed shooting parameters, which enable the electronic device to have relatively high-quality shooting effects. Subsequently, whether the user restores the captured photos, records videos, etc., the preset restoration template can be displayed.
[0022] In another possible implementation, the user can use the camera application of the electronic device to take photos, GIFs, and record videos. During the process of taking photos, GIFs, and recording videos, the electronic device can generate one or more restoration templates based on one or more shooting parameters and / or one or more editing parameters, and save them on the electronic device. During the restoration process, the user selects the "first restoration template" from one or more restoration templates saved on the electronic device.
[0023] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, determining the first restoration template from the one or more restoration templates includes: receiving a second operation from the user, and in response to the second operation, selecting and determining the first restoration template from the one or more restoration templates; or, automatically determining the restoration template with the best shooting effect from the one or more restoration templates as the first restoration template based on the shooting environment of the electronic device; or, automatically determining the restoration template with the best shooting effect from the one or more restoration templates as the first restoration template based on the image displayed on the shooting preview interface; or, automatically determining the restoration template with the highest user frequency from the one or more restoration templates as the first restoration template based on the user's usage frequency; or, automatically determining the restoration template most recently used by the user from the one or more restoration templates as the first restoration template based on the user's usage records.
[0024] Optionally, the electronic device can intelligently detect the shooting environment, the subject, etc., and intelligently match different shooting templates for the user based on external factors such as the shooting environment and the subject. For example, when the electronic device detects that the current shooting environment is dark at night, one or more restoration templates displayed in the restoration template selection window may include parameters adapted to night shooting, which may be included in the first restoration template.
[0025] Alternatively, the electronic device can intelligently display one or more frequently used restoration templates to the user based on usage frequency and shooting habits. For example, the first restoration template is used most frequently and will be displayed first in the restoration template selection window; however, this embodiment does not limit this.
[0026] Through the above solutions, users can manually select the desired restoration template according to their shooting habits and needs, or the electronic device can intelligently recommend matching restoration templates based on the shooting environment and subject. This process meets the needs of different users, especially for non-professionals who are not good at shooting, simplifying the shooting operation and improving the user's shooting experience.
[0027] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, after obtaining the second parameter set corresponding to the first restoration template, the method further includes: displaying one or more shooting parameters of the second parameter set; receiving a third operation from the user, and in response to the third operation, modifying one or more shooting parameters of the second parameter set, and updating the first restoration template according to the modified second parameter set; or, generating a second restoration template associated with the first multimedia file according to the modified second parameter set, and saving the second restoration template.
[0028] Optionally, "modifying one or more parameters in the restoration template file" may include the user performing operations such as editing, deleting, adding, or adjusting one or more shooting parameters in the second parameter set.
[0029] Optionally, after the user modifies one or more shooting parameters of the second parameter set, the electronic device can update the first restoration template according to the modified second parameter set, that is, overwrite the original restoration template file and replace the original parameters of the first restoration template file with the parameters modified by the user.
[0030] Alternatively, the electronic device can generate a second restoration template associated with the first multimedia file based on the modified second parameter set, and save the second restoration template. For example, the electronic device can generate a new restoration template file based on user operations, combining the modified parameters and one or more parameters from the original first restoration template file, and automatically save the new restoration template file. For instance, the new second restoration template file might have a file extension added to the original restoration template file name before saving.
[0031] Through the above scheme, during the process of selecting a restoration template file, after the user selects the restoration template, the method allows the user to view, modify, edit, delete one or more parameters in the restoration template. It can also update the relevant parameters in the restoration template file based on the user's modification, editing, and deletion operations, or generate a new restoration template based on the updated relevant parameters, thus meeting the user's shooting needs in different scenarios.
[0032] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, when the first multimedia file associated with the first restoration template is detected to be lost or damaged, the method further includes: displaying a prompt message in the restoration shooting mode, the prompt message being used to remind the user to restore the first multimedia file.
[0033] It should be understood that each multimedia file can correspond to a unique restoration template file. If a multimedia file is lost or accidentally deleted, the electronic device can detect that the source file of the multimedia file is missing. The electronic device can automatically remind the user of the missing multimedia file and allow the user to choose whether to restore the photo.
[0034] Specifically, when the first multimedia file associated with the first restoration template is detected to be missing or corrupted, the electronic device can display a prompt message in the restoration shooting mode. This prompt message reminds the user to restore the first multimedia file. This process proactively reminds the user to restore the multimedia file, allowing the user to select the missing file to restore. This ensures the integrity of the restoration template, and the photo restoration process is convenient and quick, enabling a faster restoration of the previous shooting process and improving the user experience.
[0035] Using the above solution, if multimedia files such as photos, GIFs, and video clips taken by the user are lost or accidentally deleted, when the user switches the current shooting mode to recovery mode, the electronic device can automatically detect whether any of the stored recovery template files are missing. When a missing multimedia file corresponding to a recovery template file is detected, the device can automatically prompt the user with the missing multimedia file and allow the user to choose whether to recover it, and automatically trigger the recovery shooting process on the electronic device. This method can ensure the integrity of the recovery templates and improve the user experience.
[0036] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the second parameter set further includes the framing information of the first multimedia file, and the method further includes: determining the framing range of the first multimedia file based on the framing information of the first multimedia file; receiving a fourth operation from the user; and responding to the fourth operation, capturing a third multimedia file based on one or more shooting parameters included in the second parameter set, wherein the third multimedia file and the first multimedia file have the same display effect and framing range.
[0037] Through the above process, when a user's photo is lost or accidentally deleted, the restoration method provided in this application can be used to retake the photo based on the restoration template file corresponding to the lost or accidentally deleted photo. The retaken photo can have the same shooting parameters as the lost or accidentally deleted photo and / or have approximately the same framing range, thereby restoring a photo that is the same as or similar to the lost or accidentally deleted photo for the user. This process does not require the user to manually reset the relevant shooting parameters, etc., to restore the shooting process and / or framing range of the photo, enabling rapid photo restoration, simplifying the shooting operation, and improving the user experience.
[0038] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the second parameter set further includes operation parameters for the user to perform editing processing on the first multimedia file. After the second multimedia file is captured, the method further includes: editing the second multimedia file according to the operation parameters of the editing processing to obtain the processed second multimedia file, wherein the editing processing includes one or more of the following: cropping ratio, adjusting filter color, adjusting beauty parameters, and adjusting brightness level.
[0039] It should be understood that a single photograph may simultaneously include shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting. Furthermore, these shooting parameters, shooting parameters during shooting, and editing parameters after shooting may include the same parameter types.
[0040] In one possible implementation, when the parameters corresponding to a certain photo include parameters of the same type, the final parameters corresponding to the display effect presented to the user can be used as the standard.
[0041] In combination with the first aspect and the above implementation methods, in some implementation methods of the first aspect, after obtaining the second parameter set corresponding to the first restoration template, the method further includes: automatically updating the screen displayed on the shooting preview interface of the electronic device based on one or more shooting parameters included in the second parameter set.
[0042] Through the above process, as long as the user has selected the first restoration template, the relevant shooting parameters on the shooting preview interface can be automatically adjusted to one or more parameters included in the first restoration template, such as adjusting the magnification, beauty level and other filter colors displayed on the shooting preview interface, thereby updating the display effect of the image on the shooting preview interface.
[0043] In combination with the first aspect and the above-described implementations, in some implementations of the first aspect, the shooting parameters include one or more of the following parameters: focal length, focus mode, resolution, camera, geographic location information, beautification parameters, filter color, flash effect, level effect, exposure, and ISO.
[0044] In conjunction with the first aspect and the above implementation methods, in some implementation methods of the first aspect, the method further includes: receiving a fifth operation from the user, and in response to the fifth operation, enabling the electronic device to perform a recovery shooting function; or, receiving a sixth operation from the user, and in response to the sixth operation, causing the electronic device to enter a recovery shooting mode.
[0045] In summary, the method for restoring images provided by the embodiments of this application offers users a novel shooting solution. When multimedia files such as photos, GIFs, and recorded video clips are lost or accidentally deleted, this method can quickly restore the images based on one or more restoration template files stored on the electronic device.
[0046] Specifically, users can use restoration template files to recreate the shooting process. This means using one or more shooting parameters included in the template file to reshoot different objects, restoring multimedia files such as photos, GIFs, and recorded video clips with the same display effect. Alternatively, users can select the same framing to restore multimedia files such as photos, GIFs, and recorded video clips with the same effect and framing. This method can meet different application scenarios, quickly restore photos, simplify shooting operations, and improve the user experience.
[0047] Furthermore, during the process of selecting a restoration template file, once the user selects the restoration template, the method allows the user to view, modify, edit, or delete one or more parameters in the restoration template. It can also update the relevant parameters in the restoration template file based on the user's modification, editing, or deletion operations, or generate and save a new restoration template based on the updated relevant parameters, thus meeting the user's shooting needs in different scenarios.
[0048] Furthermore, using the above solution, if multimedia files such as photos, GIFs, and video clips taken by the user are lost or accidentally deleted, when the user switches the current shooting mode to recovery mode, the phone can automatically detect whether any of the stored recovery template files are missing corresponding multimedia files. When a missing multimedia file corresponding to a recovery template file is detected, the phone can automatically prompt the user about the missing multimedia file and allow the user to choose whether to recover the missing multimedia file, and automatically trigger the phone's recovery shooting process. This method can ensure the integrity of the recovery templates and improve the user experience.
[0049] A second aspect provides an electronic device, including: a display screen; one or more processors; one or more memories; a module with multiple applications installed; the memories storing one or more programs, which, when executed by the processor, cause the electronic device to perform the following steps: displaying a shooting preview interface, the shooting preview interface including a screen displayed based on one or more shooting parameters of a first parameter set; determining a first restoration template from the one or more restoration templates, the first restoration template being associated with a first multimedia file, the first multimedia file being any one of a photo, an animated GIF, or a video clip; obtaining 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 a first operation from a user, and in response to the first operation, capturing a second multimedia file based on one or more shooting parameters included in the second parameter set, such that the second multimedia file and the first multimedia file have the same display effect, the second multimedia file being any one of a photo, an animated GIF, or a video clip.
[0050] In conjunction with the second aspect, in some implementations of the second aspect, the one or more restoration templates include a preset restoration template; and / or, the one or more restoration templates include a restoration template generated based on one or more shooting parameters of an associated multimedia file.
[0051] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: receiving a second operation from the user, and in response to the second operation, selecting and determining the first restoration template from the one or more restoration templates; or, based on the shooting environment, automatically determining the restoration template with the best shooting effect from the one or more restoration templates as the first restoration template; or, based on the image displayed on the shooting preview interface, automatically determining the restoration template with the best shooting effect from the one or more restoration templates as the first restoration template; or, based on the user's usage frequency, automatically determining the restoration template with the highest user frequency from the one or more restoration templates as the first restoration template; or, based on the user's usage records, automatically determining the restoration template most recently used by the user from the one or more restoration templates as the first restoration template.
[0052] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, after obtaining the second parameter set corresponding to the first restoration template, when the one or more programs are executed by the processor, the electronic device performs the following steps:
[0053] Display one or more shooting parameters of the second parameter set; receive a third operation from the user, and in response to the third operation, modify one or more shooting parameters of the second parameter set and update the first restoration template according to the modified second parameter set; or, generate a second restoration template associated with the first multimedia file according to the modified second parameter set and save the second restoration template.
[0054] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, when one or more programs are executed by the processor, causing the electronic device to detect that the first multimedia file associated with the first restoration template is lost or damaged, the following steps can be performed: in the restoration shooting mode, a prompt message is displayed, the prompt message being used to remind the user to restore the first multimedia file.
[0055] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the second parameter set further includes the framing information of the first multimedia file. When the one or more programs are executed by the processor, the electronic device performs the following steps: determining the framing range of the first multimedia file based on the framing information of the first multimedia file; receiving a fourth operation from the user; and in response to the fourth operation, capturing a third multimedia file based on one or more shooting parameters included in the second parameter set, wherein the third multimedia file and the first multimedia file have the same display effect and framing range.
[0056] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the second parameter set further includes operation parameters for the user to perform editing processing on the first multimedia file. After the second multimedia file is captured, when the one or more programs are executed by the processor, the electronic device performs the following steps: according to the operation parameters of the editing processing, the second multimedia file is edited to obtain the processed second multimedia file, wherein the editing processing includes one or more of the following: cropping ratio, adjusting filter color, adjusting beauty parameters, and adjusting brightness level.
[0057] In combination with the second aspect and the above implementation methods, in some implementation methods of the second aspect, after obtaining the second parameter set corresponding to the first restoration template, when the one or more programs are executed by the processor, the electronic device performs the following steps: automatically updating the screen displayed on the shooting preview interface of the electronic device based on one or more shooting parameters included in the second parameter set.
[0058] In combination with the second aspect and the above implementation methods, in some implementation methods of the second aspect, the shooting parameters include one or more of the following parameters: focal length, focus mode, resolution, camera, geographic location information, beautification parameters, filter color, flash effect, level effect, exposure, and ISO.
[0059] In conjunction with the second aspect and the above implementation methods, in some implementation methods of the second aspect, when the one or more programs are executed by the processor, the electronic device performs the following steps: receiving a fifth operation from the user, and in response to the fifth operation, activating the recovery shooting function; or receiving a sixth operation from the user, and in response to the sixth operation, entering the recovery shooting mode.
[0060] A third aspect provides a graphical user interface system for an electronic device, the electronic device having a display screen, one or more memories, and one or more processors, the one or more processors being configured to execute one or more computer programs stored in the one or more memories, the graphical user interface system including a graphical user interface displayed when the electronic device performs a method as described in any one of the first aspects.
[0061] A fourth aspect provides an apparatus included in an electronic device, the apparatus having the function of implementing the behavior of the electronic device in the method of any one of the first aspects. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described function. For example, a display module or unit, a detection module or unit, a processing module or unit, etc.
[0062] The fifth aspect provides a computer-readable storage medium storing computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in the first aspect and any one of the first aspects, as well as the method for restoring a photograph as described in the second aspect and any one of the second aspects.
[0063] The sixth aspect provides a computer program product that, when run on an electronic device, causes the electronic device to perform the restoration shooting method described in the first aspect or any one of the first aspects. Attached Figure Description
[0064] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0065] Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application.
[0066] Figure 3 This is a schematic diagram of a graphical user interface for setting up a camera recovery function, provided in an embodiment of this application.
[0067] Figure 4 This is a graphical user interface diagram illustrating a user's photo-taking process, as provided in an embodiment of this application.
[0068] Figure 5 This is a graphical user interface diagram illustrating an example of a reconstruction shooting process provided in an embodiment of this application.
[0069] Figure 6 This is another graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0070] Figure 7 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0071] Figure 8 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0072] Figure 9 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0073] Figure 10 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0074] Figure 11 This is a schematic flowchart illustrating an example of a method for restoring an image, provided in an embodiment of this application. Detailed Implementation
[0075] For most mainstream mobile phones and other electronic devices, the process of taking pictures and recording videos is a one-time event. After the shooting is complete, the phone only presents the result to the user, saving the photos, videos, and other multimedia files to the local album. When these photos, videos, and other multimedia files are lost from the local album, it is quite difficult for the user to recover the same or similar photos and videos.
[0076] One possible implementation is to record shooting-related operation information through the electronic device's logs or data points, and then perform professional analysis based on the logs or shooting-related operation information to obtain information on one or more shooting parameters used by the user when shooting photos, videos, and other multimedia files with the mobile phone, such as focal length, resolution, beauty level, color index, and brightness parameters.
[0077] First, in the above implementation method, the user needs to actively set the electronic device to record logs or record operation information related to shooting. When the user restores the same or similar photos, the user needs to actively obtain and report the logs or operation information related to shooting.
[0078] Secondly, the relevant log information or the operation information related to shooting recorded can be understood as a kind of "file record information", which must be implemented based on software code and may not correspond one-to-one with the user's actual operation.
[0079] Furthermore, logs require a series of reporting and analysis processes, and the implementation of these processes requires the participation of developers or technical professionals. Ordinary users cannot directly obtain the necessary operation information related to lost photos, videos, and other multimedia files through the aforementioned implementation methods.
[0080] Therefore, when users lose their original photos, videos, or other multimedia files, the above implementation method cannot help ordinary users recover the same or similar photos, videos, or other multimedia files.
[0081] To address the aforementioned problems, this application provides a method for restoring captured images, enabling ordinary users to restore similar photos, videos, and other multimedia files. The technical solutions in this application will be described below with reference to the accompanying drawings.
[0082] The method for restoring images provided in this application can be applied to any electronic device with a shooting function, such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not impose any restrictions on the specific type of electronic device.
[0083] Figure 1 This application provides a schematic diagram of the structure of an electronic device.
[0084] It should be understood that the electronic device in the embodiments of this application may include Figure 1 The electronic device 100 shown may include part or all of its structure, or may include other structures not shown, but this application embodiment does not limit this.
[0085] For example, electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0086] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0087] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0088] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0089] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0090] In this embodiment of the application, the processor 110 of the electronic device 100 stores a computer program or instructions corresponding to the method for restoring the photograph.
[0091] For example, the processor 110 of the electronic device 100 stores a method for restoring captured images, which can provide users with a novel shooting solution. Specifically, during the process of a user taking photos, creating GIFs, or recording videos, this method enables the electronic device to generate one or more restoration template files corresponding to multimedia files such as photos, GIFs, and video clips based on one or more shooting parameters. When multimedia files such as photos, GIFs, and video clips taken by the user are lost or accidentally deleted, restoration can be quickly achieved based on the associated restoration template files.
[0092] Specifically, users can use the associated restoration template file to restore the shooting process, reshoot different objects, and restore multimedia files such as photos, GIFs, and video clips with the same effect; or, users can also select the same or similar framing range based on the basic information such as the framing of the multimedia files in the restoration template file to restore multimedia files such as photos, GIFs, and video clips with the same effect and the same framing range.
[0093] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0094] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0095] The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0096] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0097] The GPIO interface can be configured via software. USB interface 130 is a USB standard compliant interface, specifically a Mini USB interface, Micro USB interface, USB Type-C interface, etc. USB interface 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0098] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0099] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0100] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0101] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0102] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide solutions for wireless communication applications, including 2G / 3G / 4G / 5G / 6G, on the electronic device 100.
[0103] A modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor.
[0104] The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0105] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0106] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.
[0107] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0108] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0109] For example, in the embodiments of this application, the electronic device 100 displays images, application interfaces, controls, icons, windows, etc. on the display screen of the electronic device 100 through the cooperation between modules such as GPU, display screen 194 and application processor, thereby realizing the display function of the electronic device 100.
[0110] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0111] For example, in this embodiment of the application, the electronic device 100 can start the camera's shooting function by running a camera application and display a shooting preview interface on the camera application interface. The shooting preview interface can display the image captured by the camera, as well as one or more controls such as a shooting shutter control. Users can click the shooting shutter control to take photos, record video clips, etc., and save the photos and video clips in this map library application, which will not be elaborated here.
[0112] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0113] For example, in the embodiments of this application, the electronic device 100 can adjust one or more shooting parameters through the ISP, such as beauty parameters, filter color, exposure, and sensitivity. This embodiment of the application does not limit this.
[0114] Camera 193 is used to capture still images or videos. An object passes through the lens to generate an optical image that is projected onto a photosensitive element. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP (Internet Service Provider) for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP (Digital Signal Processor) for processing. The DSP converts the digital image signal into image signals in standard formats such as RGB and YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0115] For example, in the embodiments of this application, the camera 193 may include a front camera and a rear camera, or include one or more types of cameras such as a wide-angle camera, a macro camera, a depth-of-field camera, and a portrait camera. The embodiments of this application do not limit the number and type of cameras 193 that the electronic device 100 may include.
[0116] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0117] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0118] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0119] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0120] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0121] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0122] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals.
[0123] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100.
[0124] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0125] The magnetic sensor 180D includes a Hall sensor.
[0126] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and is applicable to screen orientation switching, pedometers, and other applications.
[0127] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0128] The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED.
[0129] The 180L ambient light sensor is used to detect ambient light intensity.
[0130] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0131] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature processing strategy.
[0132] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0133] Optionally, in this embodiment, the touch sensor 180K can detect user touch, click, and other operations, generate operation events, and transmit these operation events to the processor 110. The processor 110 determines the operation event, including relevant parameters such as the coordinates of the touch point and the touch state, and responds accordingly. For example, in the case of a user clicking the shutter control to take a picture, the operation event may include information about the shutter control and user touch operation information, which are transmitted to the processor 110. The processor 110 then completes the shooting operation based on the image captured by the camera and obtains a photo.
[0134] The bone conduction sensor 180M can acquire vibration signals.
[0135] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0136] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback.
[0137] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0138] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1.
[0139] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, this application embodiment uses a layered architecture. Taking the system as an example, the software structure of electronic device 100 is illustrated.
[0140] Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application.
[0141] Optionally, Figure 2 shown The layered architecture of the system can include several layers, each with a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0142] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, [the following is omitted as the text is incomplete and likely refers to a specific implementation or feature]. The system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime layer, and the application application layer. runtime and system libraries, as well as the kernel layer.
[0143] The application layer can include a series of application packages.
[0144] For example, such as Figure 2As shown, the application package may include applications such as camera, music, photo album, and settings. In this embodiment, users can use the camera application to capture multimedia files such as photos, GIFs, and video clips, and these files can be saved to the photo album (library) application.
[0145] Optionally, the "camera application" in this application embodiment may be the camera application configured at the factory of the electronic device, which may include different shooting modes such as taking pictures, recording videos, and dual-view recording. This application embodiment does not limit this.
[0146] It should be understood that camera applications, photo album (gall) applications, etc., can all be associated with the restoration shooting function of the embodiments of this application.
[0147] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, and the camera service module involved in the embodiments of this application.
[0148] The window manager is used to manage window applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots, among other things.
[0149] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0150] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display of a camera app icon on a mobile phone interface can include views for displaying text and views for displaying images.
[0151] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0152] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0153] The camera service module in this application embodiment may specifically include sub-modules such as a parameter acquisition module, a restoration template generation module, and a restoration template storage module, in order to realize the restoration shooting function in this application embodiment.
[0154] Specifically, the parameter acquisition module can be used to acquire one or more shooting parameters corresponding to any multimedia file such as a photo, GIF, or video clip. For example, taking a photo as an example, when a user takes a photo, the parameter acquisition module can acquire one or more parameters from the following: focal length, focus mode, resolution, camera, geolocation information, beautification parameters, filter color, flash effect, level effect, exposure, and ISO. And / or, it can acquire one or more editing parameters related to the editing process performed by the user, such as cropping ratio, adjusting filter color, adjusting beautification parameters, and adjusting brightness level; this embodiment of the application does not limit this.
[0155] The restoration template generation module can generate one or more restoration template files associated with each multimedia file, such as photos, GIFs, and video clips, based on one or more shooting parameters and / or one or more editing parameters obtained by the parameter acquisition module. Furthermore, this restoration template generation module can automatically determine the names of one or more restoration template files according to preset rules and automatically save these files to the restoration template storage module.
[0156] The restoration template storage module is used to store one or more restoration template files.
[0157] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0158] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0159] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0160] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0161] The Surface Manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0162] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0163] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0164] The 2D graphics engine is a drawing engine for 2D graphics. The image processing library can provide analysis for various image data and offers a variety of image processing algorithms, such as image cropping, image fusion, image blurring, and image sharpening, which will not be elaborated here.
[0165] For example, in the embodiments of this application, when an application interface is displayed on the screen of an electronic device, the application interface can be rendered, composited, and layered sequentially based on a view system, a two-dimensional graphics engine, a three-dimensional graphics processing library, an image processing library, etc., and finally the application interface is displayed on the screen, such as the shooting preview interface of a camera application.
[0166] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0167] For example, in the embodiments of this application, the process of a user using a camera application or restoring a photo is achieved through the collaborative cooperation of multiple software and hardware modules described above. For example, a shooting preview interface is displayed to the user, and the user's operation is detected. In response to different user operations, the display of the interface is adjusted or various operations are performed, which will not be elaborated here.
[0168] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 1 and Figure 2 Taking a mobile phone with the illustrated structure as an example, and in conjunction with the accompanying drawings and application scenarios, the method for restoring the original image provided in this application will be specifically described. Optionally, before performing the restoration image, the user can enable the restoration image function of the electronic device.
[0169] Figure 3 This is a schematic diagram of a graphical user interface (GUI) for setting up a recovery shooting function according to an embodiment of this application.
[0170] For example, Figure 3 Figure (a) illustrates the main interface 301 displayed on the mobile phone in unlocked mode. The main interface 301 may include a top status bar area and a display area. The top status bar area may display one or more items such as the carrier identifier, the signal strength of a wireless local area network (WLAN) (e.g., Wi-Fi), the phone's battery level, and the current time. The display area displays a weather clock component and multiple applications (Apps) installed on the phone. Optionally, the applications may include phone, messaging, gallery, camera, etc. It should be understood that the main interface 301 may also include other content or display more applications; this embodiment does not limit the content displayed on the main interface of the mobile phone.
[0171] In one possible approach, the user performs, as Figure 3 As shown in Figure (a), clicking the camera app icon responds to the user's action, and the phone can display something like this. Figure 3 Figure (b) shows the main interface 302 of the camera application. In this embodiment, the main interface 302 of the camera application can also be called a "shooting preview interface". Different images and screens can be presented in the shooting preview interface, and the presented images and screens are called "preview images" or "preview screens".
[0172] It should be understood that, such as Figure 3 As shown in Figure (b), the camera preview interface 302 may include a bottom navigation area, a middle preview screen display area, and a top menu area. For example, as... Figure 3As shown in Figure (b), the bottom navigation area of the shooting preview interface 302 displays the shooting shutter control 31, the local album control 32, and the camera switching control 33. It also displays controls for various shooting modes such as night scene, portrait, photo, video, and professional. The middle preview screen display area shows the image or scene captured by the current mobile phone camera. The top menu area can display one or more controls, such as the automatic flash control control 34, the artificial intelligence (AI) shooting control 35, and the camera settings control 36. This embodiment does not limit the number or type of controls displayed in each area. For simplicity, the different functions of each control are not described in detail in this embodiment.
[0173] User execution such as Figure 3 As shown in Figure (b), clicking the camera settings control 36 will cause the phone to display the following in response to the user's action: Figure 3 The camera settings interface 303 is shown in Figure (c). Optionally, the camera settings interface 303 displays various settings options related to the shooting process, such as photo ratio options (e.g., setting the photo ratio to [4:3]), voice-activated shooting options, smile capture options, and other settings options related to taking photos, as well as video resolution options (e.g., setting the video aspect ratio to [16:9] and the video resolution to 1080p), video frame rate options, and other settings options related to recording videos, as well as general settings options such as reference lines and timed shooting options. This application embodiment does not limit these.
[0174] This application embodiment can add a "Restore Template" option to the general settings, allowing users to manually enable the image restoration function provided by this application embodiment via the switch corresponding to the "Restore Template" option. It should be understood that the "Restore Template" option can also be added to other possible options or menus, and this application embodiment does not limit this.
[0175] For example, the user performs such Figure 3 In operation 1 shown in Figure (c), clicking the switch corresponding to the "Restore Template" option will, in response to the user's action, turn the switch to the "ON" state, and the phone will activate the restore shooting function; then perform the following... Figure 3 In operation 2 shown in Figure (c), clicking the "Back" control, in response to the user's action, will return the phone to the shooting preview interface, displaying... Figure 3 Interface 304 is shown in Figure (d).
[0176] Correspondingly, compared to Figure 3 The shooting preview interface 302 shown in Figure (b) shows the function of restoring the shooting after the user activates the shooting recovery function. Figure 3 The top menu area of the shooting preview interface 304 shown in Figure (d) can display the restoration control 37. The display style of the restoration control 37 is not limited in this embodiment.
[0177] In another possible approach, developers, during the development of the camera application's photo restoration function, can configure the restoration control 37 to remain continuously displayed in the shooting preview interface, which can then be displayed as shown in the image. Figure 3 As shown in Figure (d) of the interface 304, users can quickly enable the mobile phone's photo restoration function by clicking the restoration control 37, which simplifies the operation process and makes it more convenient to enable the photo restoration function.
[0178] Optionally, the recovery control 37 can have different display states. For example, it can be displayed as a grayed-out, non-working state with an overlaid arrow mark, or as a blacked-out, working state without an arrow mark. It should be understood that the display method of the recovery control 37 can refer to the display of existing controls such as the flash auto-control control 34 and the AI shooting control 35. Users can click on the recovery control 37 to switch between different display states, which will not be elaborated here.
[0179] In another possible approach, developers can configure the recapture function to be enabled by default when developing shooting guidance features for camera applications.
[0180] Optionally, developers can configure the restored shooting function 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 during the development process. This application embodiment does not limit this. This method does not require users to perform additional operations to enable the restored shooting function, thereby simplifying user operations.
[0181] It should be noted that when the recovery shooting function is configured as a preset function of the electronic device, it may have been authorized by the user, that is, multiple related applications such as camera application and gallery application are authorized to call the recovery shooting function. This application embodiment does not limit this.
[0182] Furthermore, when the user does not need to use the recovery shooting function, this application embodiment can also support the user to turn off the preset function through the settings control of the camera application; or, turn off the preset function through a menu or control of the gallery application; or, turn off the preset function through a menu related to the system-level settings application. This application embodiment does not limit this.
[0183] Once the phone's photo recovery function is enabled, users can take photos and record videos using the camera app. The following examples illustrate the photo-taking process provided in this application, using a user taking a photo as an example, and how a user can recover a lost or accidentally deleted photo.
[0184] In one possible scenario, during the photo-taking process, users can manually adjust one or more shooting parameters according to their shooting needs. For example, users can perform one or more operations such as adjusting the focus, switching cameras, and adjusting the beauty level to adjust the corresponding shooting parameters.
[0185] For example, Table 1 lists various possible user operations and the shooting parameters that these operations may adjust. As shown in Table 1, a user can perform one or more operations, each of which can be applied to different objects, thereby modifying the actual shooting parameters for the current shot.
[0186] Table 1
[0187]
[0188]
[0189] Referring to Table 1, taking the user's focal length adjustment operation as an example, the user can set the zoom mode during the shooting process according to the motion state of the subject. Optionally, the "zoom mode" can include autofocus single (AF-S) mode, autofocus continue (AF-C) mode, and manual focus (MF) mode. Among them, AF-S mode can be used to shoot static subjects, AF-C mode can be used to focus on continuously moving subjects, and MF mode can be used to shoot unpredictable moving subjects. Specifically, the user can set different zoom modes according to the current subject and shooting needs, thereby using different focal lengths to shoot different subjects in different zoom modes. This embodiment of the application will not elaborate on this.
[0190] Alternatively, taking the example of a user adjusting the beauty level during photo shooting, the user can activate the beauty processing function of the camera app during the shooting process and adjust the beauty level according to the shooting needs. For example, the mobile phone can provide users with different beauty levels from 0 to 10. Different beauty levels correspond to different beauty parameters such as skin tone, skin texture, and smoothness. Users can slide left and right on the shooting preview interface to adjust the beauty parameters, which will not be elaborated here.
[0191] It should be understood that the above, in conjunction with Table 1, describes one or more operations that a user may perform. Any combination of one or more user operations can be called a "user meta-operation," which can be initiated by the user. For example, a "user meta-operation" may include one or more of the following operations involving modification of shooting parameters: adjusting resolution, adjusting focus, switching lenses, adjusting beauty level, etc. The embodiments of this application do not limit the number or types of operations included in the "user meta-operation."
[0192] It should be noted that the "user's meta-operations" mentioned above can occur before shooting, such as when the user sets the resolution, aspect ratio, and storage space size of the photo before shooting.
[0193] Alternatively, one or more user actions can occur during the shooting process. For example, while the user is shooting, they can turn on the beauty function and adjust the beauty level of the current shot.
[0194] Alternatively, during the video recording process, the user can switch between multiple cameras, such as the front camera and the rear camera. This application embodiment does not limit the timing of the "user's meta-operation".
[0195] In another possible scenario, the mobile phone, as an intelligent electronic device, can automatically adjust one or more shooting parameters involved in the shooting process by combining the current shooting environment and / or, based on intelligent software algorithms.
[0196] For example, during the shooting process, the mobile phone can automatically track the subject; or, the mobile phone can detect the shooting environment and automatically adjust the shooting brightness during dark nighttime shooting periods; or, the mobile phone's various AI recognition capabilities can automatically adjust relevant parameters. This application embodiment does not limit the types of parameters that the mobile phone can automatically adjust.
[0197] It should be understood that the processes described above, such as "user adjusting one or more shooting parameters" and "phone automatically adjusting one or more shooting parameters", will cause changes in the display effect of the captured photos. In other words, each photo taken by the user and each video clip recorded may have different display effects due to different shooting parameters.
[0198] In this embodiment, all objects that may cause changes in the display effect of the captured photo are referred to as "operation objects." These "operation objects" can include those initiated by the user or those automatically adjusted by the phone. Each type of operation object can lead to changes in shooting parameters, thereby causing differences in the display effect of the captured photo. In the subsequent description of the embodiments, the distinction between whether the "operation object" is initiated by the user or caused by the intelligent operation of the electronic device will no longer be made.
[0199] For example, the "operation object" may include the following related content, as listed in Table 2. Table 2 lists various operation objects, the corresponding display effects of each operation object, the applicable shooting modes, and the timing when they can be adjusted or modified.
[0200] Table 2
[0201]
[0202] Optionally, each operation that causes a change in the effect of the photograph can correspond to different times of adjustment or modification.
[0203] For example, regarding resolution, users can adjust it before taking a photo, but not during the shooting process; regarding lenses, users can select them before taking a photo or switch them during the shooting process, and so on.
[0204] The implementation process of this application embodiment is described below with reference to one or more operation objects listed in Table 2, taking the process of a user actually taking a photo as an example.
[0205] Figure 4 This is a graphical user interface diagram illustrating a user's photo-taking process, as provided in an embodiment of this application.
[0206] For example, in the camera application's shooting preview interface 401, the user performs the following... Figure 4 As shown in Figure (a), the user manually clicks the magnification control 39 and adjusts the magnification of the shot from "1×" to "1.5×". The phone can then display the following: Figure 4 The interface 402 is shown in Figure (b). Then execute as follows: Figure 4 As shown in Figure (b), clicking the beauty function control 38 responds to the user's action, and the phone activates the beauty function related to photography, displaying the following: Figure 4 The interface 403 shown in Figure (c) displays different beauty levels from 1 to 10. Users can manually select the desired beauty level. For example, when a user selects the beauty level corresponding to the currently taken photo, it is level 8.
[0207] After the user completes the relevant settings, return to... Figure 4 As shown in Figure (d), the shooting preview interface 404 displays a preview image (including the images of "adults and children") with a "1.5×" magnification and 8 levels of beauty processing, according to the shooting parameters manually modified by the user.
[0208] Optionally, users can also manually set more display effects, such as adding different filters, adding different widgets, icons, etc., which are not limited in this embodiment.
[0209] User execution such as Figure 4 As shown in Figure (d), when the user clicks the shutter control 31, the phone acquires a preview image with 1.5× magnification and 8 levels of beauty enhancement, and saves this preview image as the captured photo to the local album. Optionally, the captured photo can be displayed as a thumbnail in the local album control 32, which will not be elaborated here.
[0210] It should also be understood that, in the embodiments of this application, the magnification of "1.0×", "1.5×", etc. can be understood as the display effect of the preview image in the shooting preview interface described from the user's visual perspective. Specifically, different magnifications can correspond to different focal lengths. When taking photos with different focal lengths, different display effects can be presented to the user. This will not be elaborated further below.
[0211] In one possible implementation, in this embodiment of the application, if the user has already followed the foregoing... Figure 3 The user has enabled the camera app's recap feature using any of the methods described. Afterwards, the user can follow... Figure 4 For each photo taken using the method shown, the camera app can record the process of the user taking the photo and determine the shooting parameters involved in taking that photo.
[0212] Optionally, in the embodiments of this application, 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, and all other relevant parameters that will cause changes in the display effect of the photo.
[0213] against Figure 4 The listed shooting scenarios are assumed to be based on the user's... Figure 4 The preview image shown in Figure (d) shows a photo 1 that includes "adults and children". Table 3 lists the actual shooting parameters of the photo 1 recorded by the phone's camera application during the process of the user taking the photo 1.
[0214] It should be understood that, considering the different adjustment timings corresponding to each type of operation object in Table 2, the contents listed in Table 3 can be divided into "operation objects before shooting" and "operation objects during shooting".
[0215] For example, for operation objects such as focal length and beautification, users can adjust them before shooting or during shooting. Therefore, operation objects such as focal length and beautification can be included in both "operation objects before shooting" and "operation objects during shooting", and can correspond to different actual shooting parameters.
[0216] Table 3
[0217]
[0218] For operations such as resolution and address location, users can only adjust them before shooting, and cannot adjust them during shooting. Therefore, operations such as resolution and address location can be included only in "operations before shooting", and will not be described in detail here.
[0219] Optionally, the phone's camera app can generate a corresponding "restoration template file" based on the shooting parameters of each photo.
[0220] Specifically, the phone's camera app can generate a corresponding "restoration template file" based on the image data and shooting parameters of each photo. It should be understood that each photo taken by the user can include different image data and shooting parameters, and each photo corresponds to a unique "restoration template file." For example, Figure 4 Photo 1, obtained from image (d) in the image, corresponds to a unique restoration template file 1.
[0221] Optionally, each photo can be associated with or bound to the "restoration template file" in a variety of possible ways.
[0222] In one possible implementation, each photo can be associated with a filename and a "restoration template file"; or, each photo can be associated with a unique hash value generated for each photo; or, each photo can be associated with a preset key value for each photo. This application embodiment does not limit the specific implementation of this method.
[0223] For example, Table 4 lists the association methods between multiple photos and restoration template files. For each photo, when the user takes the photo and it is automatically saved locally, a unique photo name can be automatically generated for the photo, such as IMG-2021-12-R1. Based on the photo name and preset rules, the name of the restoration template file for the photo is automatically generated. For example, adding the suffix "-11" to the photo name generates the corresponding restoration template file IMG-2021-12-R1-11, and the photo and the associated restoration template file are saved.
[0224] Table 4
[0225] 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 Photo 1-R2 …… Photo 1-R2-11 Photo 2-R4 …… Photo 2-R4-11 Photo 3-R6 …… Photo 3-R6-11 …… …… ……
[0226] Optionally, after each photo is taken and saved to the gallery app, users can also edit the photos.
[0227] For example, users can perform one or more editing operations such as cropping the photo's proportions, adjusting the photo's filter colors, and adjusting the beauty level. For instance, after taking a photo, a user can modify the photo's beauty level, and / or adjust the photo's brightness, and / or add filter colors to the photo.
[0228] It should be understood that when a user performs editing operations on a photo, all parameters related to the photo's display effect, or parameters that may change the photo's display effect, are called "editing parameters." For each photo edited by the user, the phone can record all editing parameters involved in the user's photo editing process and can add these "editing parameters" to the restoration template file 1 corresponding to that photo 1.
[0229] Specifically, when the user finishes taking the photo, a unique restoration template file 1 corresponding to that photo 1 can be generated and stored. After the photo is taken, when the user's editing operation on the photo 1 is subsequently detected, the operation object of the user's editing operation is recorded, and the relevant parameters of the photo effect change caused by the user's operation (the relevant parameters of the editing operation) are added to the restoration template file 1 corresponding to that photo 1.
[0230] For example, if the user modifies the beauty level of photo 1 after taking the photo, and / or adjusts the brightness of the photo, and / or adds filter colors to the photo, the mobile phone can record the editing parameters of one or more editing operations of the user, add the "editing parameters" to the "operation object after shooting" section of Table 3 in the restoration template file of photo 1, and update and store it in the restoration template file 1 of photo 1.
[0231] Through the above process, every photo taken by the user on their mobile phone can generate a unique corresponding restoration template file after the user has taken the photo.
[0232] When a photo (such as photo 1 taken in the aforementioned embodiment) is lost, or deleted due to user error, the recovery template file corresponding to the lost or accidentally deleted photo is not deleted and is still saved on the phone. Users can use the recovery method of this application embodiment, based on the recovery template file corresponding to the lost or accidentally deleted photo, to recover the photo, thereby helping users to retake photos that are the same as or similar to the lost or accidentally deleted photo.
[0233] It should be noted that, in the embodiments of this application, the term "restoration" as used in "photo restoration," "method of restoration of shooting," and "restoration process" can include the following meanings: based on the restoration template file corresponding to the lost or mistakenly deleted photo, further restore the process of taking the photo, thereby retaking a 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 framing and take a photo with the same framing range.
[0234] In other words, in this embodiment of the application, if the lost or accidentally deleted photo 1 is restored, the resulting "restored photo" can include at least the following possible scenarios:
[0235] 1) The "restored photo" can have the same shooting parameters as the lost or mistakenly deleted photo 1, but with different framing.
[0236] 2) The "restored photo" can have the same framing as the lost or mistakenly deleted photo 1, but with different shooting parameters;
[0237] 3) The "restored photo" can have the same shooting parameters and the same framing range as the lost or mistakenly deleted photo 1.
[0238] It should be understood that the "restored photo" mentioned in any of the above possible situations can be called a "same or similar photo" as the lost or mistakenly deleted photo 1, and this definition will not be repeated in subsequent embodiments.
[0239] It should also be understood that any of the above-mentioned possible "restored photos" obtained by the method provided in the embodiments of this application, that is, "same or similar photos" obtained by re-taking based on the restoration template file 1 corresponding to the lost or mistakenly deleted photo 1, can fall within the protection scope of the embodiments of this application, and subsequent embodiments will not elaborate on this.
[0240] The following describes, with reference to the accompanying drawings, the process by which a user can obtain the "restored photograph" based on the method provided in the embodiments of this application.
[0241] Figure 5This is a graphical user interface diagram illustrating an example of a reconstruction shooting process provided in an embodiment of this application.
[0242] For example, with Figure 4 Taking the photo 1, which includes "adults and children" taken by the user in Figure (d), as an example, if the photo 1 is lost or accidentally deleted by the user, when the user needs to restore the photo 1, they can enter the shooting preview interface of the camera application through the mobile phone's camera application and restore the photo according to the method provided in the embodiments of this application.
[0243] Optionally, in this embodiment, after enabling the phone's recovery shooting function, the bottom navigation area of the camera application's shooting preview interface, in addition to displaying controls for various shooting modes such as night scene, portrait, photo, video, and professional, can also add new shooting mode controls: such as... Figure 5 The “Restore” mode control is shown in Figure (a).
[0244] Specifically, on the shooting preview interface 501, users can perform left and right swiping operations 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, if a user switches the current shooting mode to recovery mode, the corresponding "black triangle icon" used to locate the current shooting mode can point to the "recovery" mode control.
[0245] For example, the user performs such Figure 5 As shown in Figure (a), clicking the "Restore" mode control responds to the user's action, and the phone displays the following: Figure 5 The interface 502 shown in Figure (b) can be understood as the restoration template selection interface. A restoration template selection window can be displayed floating on the restoration template selection interface 502, and one or more restoration templates (or one or more restoration template files) can be displayed in the restoration template selection window.
[0246] Optionally, the restoration template selection window can display thumbnails of one or more photos. Users can select the desired restoration template file for a photo by clicking on the thumbnail of that photo.
[0247] Alternatively, the restoration template selection window can display the names of one or more photos in a list, allowing users to select the desired restoration template file by clicking on the name of a restoration template.
[0248] Alternatively, the restoration template selection window may display the names of one or more restoration template files in a list format. Users can select the desired restoration template file by clicking on the name of a restoration template file. This application embodiment does not limit the display method of one or more restoration template files in the restoration template selection window.
[0249] In one possible implementation, one or more restoration templates displayed in the restoration template selection window can be sorted according to preset rules; in other words, for different shooting scenarios, Figure 5 The one or more restoration templates displayed in the restoration template selection window shown in Figure (b) can be the same or different.
[0250] Optionally, the restoration template selection window may include one or more restoration templates, including a preset restoration template; and / or, the restoration template selection window may include one or more restoration templates, including a restoration template generated by the electronic device based on one or more shooting parameters of associated multimedia files such as photos, GIFs, and video clips.
[0251] For example, the phone is manufactured with two fixed restoration templates set by the developers. These restoration templates correspond to fixed shooting parameters, which enable the phone to achieve relatively high-quality shooting results.
[0252] Alternatively, the phone can intelligently detect the shooting environment and subject, and match different shooting templates for the user based on these external factors. For example, when the phone detects that the current shooting environment is dark at night, one or more restoration templates displayed in the restoration template selection window may include parameters adapted for nighttime shooting.
[0253] Alternatively, the mobile phone can intelligently display one or more frequently used restoration templates to the user based on usage frequency and shooting habits. For example, the restoration template file corresponding to the photo named "IMG-2021-12-R1" has the highest usage frequency and will be displayed first in the restoration template selection window. This application embodiment does not limit this.
[0254] For example, such as Figure 5 As shown in Figure (b), the restoration template selection window on interface 502 can display the names of multiple photos taken by the user as listed in Table 4. When the user clicks on the photo named "IMG-2021-12-R1", in response to the user's operation, the phone confirms that the user has currently selected the restoration template file corresponding to the photo named "IMG-2021-12-R1". The phone can further display, as shown in Figure (b), the restoration template selection window on interface 502. Figure 5 Interface 503 is shown in Figure (c).
[0255] Optionally, the interface 503 may present one or more parameter information from the restoration template file corresponding to the photo named "IMG-2021-12-R1" to the user in the form of a floating window.
[0256] Optionally, the one or more parameter information may include basic information such as photo name, photo thumbnail, and storage location of the restoration template file. It should be understood that displaying the thumbnail of photo 1 can help users identify the image content of the photo to be restored, help quickly locate the subject, and improve the efficiency of photo restoration.
[0257] Optionally, 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 one or more shooting parameters such as focal length and beauty level during shooting, and / or one or more editing parameters related to editing operations such as cropping, filtering, and brightness after shooting. This application embodiment does not limit this.
[0258] It should be understood that, limited by the size of the mobile phone interface or the size of the floating window, the interface 503 can display some of the parameters listed above. Users can view more parameters by swiping, flipping pages, or pulling down, or by clicking on preset controls. This application embodiment does not limit this.
[0259] For example, such as Figure 5 As shown in Figure (c), on interface 503, a floating window can display the basic information of photo 1, one or more parameters listed in Table 3 before shooting, one or more parameters during shooting, and one or more parameters after shooting. The basic information of photo 1 may include a thumbnail of photo 1, the name of photo 1, file format, storage location information, etc.
[0260] It should be understood that a single photograph may simultaneously include the shooting parameters listed in Table 3: pre-shooting parameters, shooting parameters during shooting, and post-shooting editing parameters. Furthermore, these pre-shooting, shooting, and post-shooting editing parameters may include the same parameter types.
[0261] In one possible implementation, when the parameters corresponding to a certain photo include parameters of the same type, the final parameters corresponding to the display effect presented to the user can be used as the standard.
[0262] For example, Table 3 lists shooting parameters before shooting, shooting parameters during shooting, and editing parameters after shooting, all of which include "beauty level parameters". The beauty level can be the final beauty level that is presented to the user after the beauty level before shooting, the beauty level during shooting, and the beauty level after shooting are superimposed, and it is saved in the restoration template file.
[0263] Alternatively, when the parameters corresponding to a certain photo include both the filter color during shooting and the filter color after shooting, then the filter color parameter can be based on the filter color level corresponding to the final display effect of the photo presented to the user, and saved in the restoration template file. This application embodiment does not limit this.
[0264] In one possible implementation, during the photo restoration process based on the restoration template file corresponding to the lost or accidentally deleted photo 1, after the user selects the restoration template file, the user can also modify one or more parameters in the restoration template file.
[0265] Optionally, "modifying one or more parameters in the restoration template file" may include the user performing operations such as editing, deleting, adding, or adjusting one or more parameters.
[0266] For example, a user can click the control corresponding to the parameter to be modified to trigger the process of modifying the parameter and manually modify the parameter; or, a user can long press the control corresponding to a parameter to trigger the process of deleting the parameter and manually delete the parameter, etc. This application embodiment does not limit this.
[0267] like Figure 5 As shown in Figure (c), the floating window of interface 503 presents the user with one or more parameter information from the restoration template file corresponding to the photo named "IMG-2021-12-R1". The user executes the following... Figure 5 As shown in Figure (c), clicking the brightness adjustment control after taking a picture responds to the user's action, and the phone displays the following... Figure 5 The interface 504 is shown in Figure (d). This interface 504 can display a brightness progress bar with brightness levels ranging from 0 to 10. Users can slide their fingers on the brightness progress bar to adjust the brightness level. Suppose that in the post-capture editing operations listed in Table 3, the user changed the brightness level of photo 1 to level 3, and in... Figure 5 During the process of taking the restored photograph, the following procedures were performed: Figure 5 As shown in Figure (d), operation 1 modifies the brightness level to level 7, then operation 2 is performed. Clicking the "OK" button responds to the user's action, and the phone displays the following... Figure 5 Interface 505 is shown in Figure (e).
[0268] Or, in Figure 5 In Figure (c), if the user long-presses the brightness adjustment control after taking the photo, the phone can pop up a "Delete" option in response to the user's operation. The user can click the delete option and confirm to perform the deletion operation, which will delete the brightness adjustment parameters after taking the photo included in the restoration template file of photo 1. This will not be elaborated here.
[0269] When the user determines that they no longer need to modify one or more parameters included in the restoration template file for photo 1, they can execute the following: Figure 5 As shown in Figure (e), clicking the "OK" control in the floating window responds to the user's action, and the phone displays the following... Figure 5 The shooting preview interface 506 is shown in Figure (f).
[0270] contrast Figure 5 The shooting preview interface 501 shown in Figure (a) is as follows: Figure 5 The shooting preview interface 506 shown in Figure (f) is in... Figure 5 In the shooting preview interface 501 shown in Figure (a), although the user has switched the current shooting mode to restoration mode, since no restoration template file has been selected, the relevant shooting parameters can be set to the default shooting parameters of the current camera, such as having a magnification of "1.0×", no beauty level and other filter colors enabled.
[0271] exist Figure 5 In the shooting preview interface 506 shown in Figure (f), since the user has already... Figure 5 The process shown in Figures (b), (c), and (d) involves selecting a restoration template file. The relevant shooting parameters can be automatically adjusted to one or more parameters included in the restoration template file, such as displaying a magnification of "1.5×" on the shooting preview interface 506, enabling beauty level (beauty level 6), and other filter colors and effects.
[0272] In another possible implementation, after the user modifies one or more parameters in the restoration template file, clicking the "OK" control in the floating window will cause the mobile phone to automatically update the modified parameters to the restoration template file in response to the user's operation, that is, overwrite the original restoration template file and replace the original parameters of the restoration template file with the modified parameters.
[0273] Alternatively, in response to user actions, the phone can generate a new restoration template file and automatically save it by combining the modified parameters with one or more parameters from the original restoration template file. For example, the new restoration template file can have a file extension added to the name of the original restoration template file before saving it.
[0274] Alternatively, in response to the user's operation, the mobile phone can pop up a window, allowing the user to choose whether to automatically update or overwrite the original restoration template file, and respond according to the user's choice. This application embodiment does not limit this.
[0275] For example, in Figure 5 In Figure (d), the user modifies the brightness to level 7. When the user clicks the "OK" control in interface 505, the phone can automatically pop up a window, allowing the user to choose whether to save the parameter to the restoration template file. If the user chooses yes, the brightness of the photo in the restoration template file corresponding to the photo named "IMG-2021-12-R1" will change from the original level 3 and be saved as level 7.
[0276] Understandably, at this time, based on the restoration template file selected by the user, the phone automatically adjusts the current shooting parameters to one or more parameters included in the restoration template file. The user can then take a photo based on the automatically adjusted parameters to obtain a photo that is the same as or similar to the lost or accidentally deleted photo 1.
[0277] The above implementation method allows users to view, modify, edit, and delete one or more parameters in the restoration template file. It can also update the relevant parameters in the restoration template file based on the user's modification, editing, and deletion operations, thus meeting the user's shooting needs in different scenarios.
[0278] In one possible approach, users can accurately locate the approximate framing range based on the basic information of the photos included in the restoration template file, and make the preview screen in the camera application's shooting preview interface display the same framing, thereby restoring the same or similar photos.
[0279] For example, a thumbnail, geographical location, and other basic information of the lost or mistakenly deleted photo 1 are displayed in a floating window on interface 503 or interface 505. Users can locate the same viewpoint based on the thumbnail, geographical location, and other information of the lost or mistakenly deleted photo 1, and perform actions such as... Figure 5 As shown in Figure (f), when the user clicks the shutter control 31, the phone completes the shooting and saves the captured photo to the local album in response to the user's operation.
[0280] Through the above process, when a user's photo is lost or accidentally deleted, the restoration method provided in this application can be used to retake the photo based on the restoration template file corresponding to the lost or accidentally deleted photo. The retaken photo can have the same shooting parameters, editing parameters, etc., and / or have approximately the same framing range as the lost or accidentally deleted photo, thereby restoring a photo that is the same as or similar 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., to restore the shooting process and / or framing range of the photo, enabling rapid photo restoration, simplifying the shooting operation, and improving the user experience.
[0281] In another possible implementation, if a user's photo is lost or accidentally deleted, when the user switches the current shooting mode to recovery mode, the phone can automatically remind the user of the missing original photo and automatically trigger the phone's recovery shooting process.
[0282] It should be understood that, according to Table 4, each photo taken by the user corresponds to a unique restoration template file. If a photo is lost or accidentally deleted, the phone can detect that the source file of the photo is missing, or that the photo file corresponding to a certain restoration template file is missing. Therefore, the phone can automatically remind the user of the missing photo and allow the user to choose whether to restore the photo.
[0283] Figure 6 This is another graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0284] For example, such as Figure 6 As shown in Figure (a), on the shooting preview interface 601, when the user switches the current shooting mode to recovery mode, in response to the user's operation, the mobile phone detects that one or more photos taken by the user are missing, and can automatically display as shown in Figure (a). Figure 6 The interface 602 is shown in Figure (b). This interface 602 includes a prompt window containing a message to the user: The source files for the following photos are missing or corrupted. Please confirm whether to repair them. Additionally, the prompt window displays the names of one or more missing or corrupted photos, such as a photo named "IMG-2021-12-R1", a photo named "IMG-2021-11-R3", and a photo named "IMG-2021-10-R5".
[0285] Users can execute such as Figure 6 In Figure (b), as shown in Operation 1, click the control containing the photo name "IMG-2021-12-R1", then perform Operation 2 by clicking the "Yes" control. In response to the user's action, the phone displays the following... Figure 6 The interface 603 shown in Figure (c) can present one or more parameter information from the restoration template file corresponding to the photo named "IMG-2021-12-R1" to the user in the form of a prompt window. For a detailed description, please refer to the relevant description of the aforementioned interface 503. For the sake of simplicity, it will not be repeated here.
[0286] When a user determines that they no longer need to modify one or more parameters included in the restoration template file for the photo "IMG-2021-12-R1", they can execute the following... Figure 6 As shown in Figure (c), clicking the "OK" control in the prompt window responds to the user's action, and the phone displays the following... Figure 6 As shown in Figure (d) of the shooting preview interface 604, the user can accurately find the approximate framing range of the photo "IMG-2021-12-R1" and then click the shooting shutter control 31 to take the same or similar photo. This process can be referred to the relevant description above, and will not be repeated here for the sake of simplicity.
[0287] It should be understood that when a user performs an action such as Figure 6 As shown in Figure (d), after the photo is taken, the retaken photo can have the same shooting parameters, editing parameters, and / or roughly the same framing as the missing photo. Optionally, the phone can automatically save the retaken photo and name it "IMG-2021-12-R1", and establish a correspondence between the photo "IMG-2021-12-R1" and the restoration template file, thus perfecting the one-to-one correspondence between the multiple photos listed in Table 4 and the restoration template file for each photo, and avoiding the loss of photos.
[0288] contrast Figure 5 and Figure 6 The process of restoring the photograph, Figure 5 The process described can be understood as the process of restoring a photo that has been lost or accidentally deleted, initiated by the user. Figure 6 The process can be understood as follows: when the camera app switches to recovery mode, it can automatically detect whether any corresponding photos are missing from multiple recovery template files stored on the phone. When a missing photo is detected for a recovery template file, the app can automatically prompt the user with the missing photo and allow the user to choose whether to recover the missing photo. It will then automatically trigger the phone's recovery shooting process to ensure the integrity of the recovery template.
[0289] pass Figure 5 and Figure 6This enriches the application scenarios of this application. In different application scenarios, it can provide users with a way to actively restore missing photos, or prompt users to select missing photos to restore. It can ensure the integrity of the restoration template, and the process of restoring photos is convenient and can quickly restore the previous shooting process, thus improving the user experience.
[0290] In another possible implementation, in such Figure 6 In the prompt window shown in Figure (b), if multiple lost or damaged photos are displayed, the user can click on one of the photos, "IMG-2021-12-R1," and restore it using the method described above. When the user performs the following... Figure 6 After the operation shown in Figure (b) completes the restoration of the photo "IMG-2021-12-R1", the phone can further return to the display. Figure 6 The interface 602 shown in Figure (b) displays other lost or damaged photos in the prompt window, and the user can continue to recover other lost or damaged photos, which will not be described in detail here.
[0291] Or, in such Figure 6 In the prompt window shown in Figure (b), if multiple lost or damaged photos are displayed, the user can directly click the "Yes" control in the prompt window. The phone will then select all photos by default for full restoration, improving the efficiency of photo restoration. This application embodiment does not limit this.
[0292] In another possible scenario, when a missing photo is detected for a certain restoration template file, the phone can automatically prompt the user with the missing photo and allow the user to choose whether to restore the missing photo. The user can also choose to refuse to restore the missing photo.
[0293] Figure 7 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0294] For example, such as Figure 7 On the shooting preview interface 701 shown in Figure (a), when the user switches the current shooting mode to restoration mode, the phone automatically displays the following: Figure 7 The interface 702 and prompt window shown in Figure (b) are such that when the user clicks the "No" control in the prompt window, the phone displays the following in response to the user's action: Figure 7 The interface 703 shown in Figure (c) can display a floating window for the user to reselect the desired restoration template from one or more restoration template files.
[0295] It should be understood that when a user refuses to restore one or more missing photos from their phone, the missing photos may be photos that the user actively deleted and that do not need to be restored.
[0296] Optionally, if a user chooses to refuse to restore one or more missing photos within a preset time period (e.g., one month), the mobile phone can automatically delete the restoration template file corresponding to each of the missing photos. This application embodiment does not limit this.
[0297] For example, the user performs such Figure 7 The operation shown in Figure (c) involves reselecting the restoration template file corresponding to the photo named "Photo 1-R2" in the floating window of interface 703. In response to the user's operation, the phone displays as shown in Figure (c). Figure 7 The interface 704 shown in Figure (d) can present one or more parameter information from the restoration template file corresponding to the photo named "Photo 1-R2" to the user. For a detailed description, please refer to the relevant description in the foregoing embodiments, which will not be repeated here.
[0298] When the user determines that they no longer need to modify one or more parameters included in the restoration template file for the photo "Photo 1-R2", they can execute the following... Figure 7 As shown in Figure (d), clicking the "OK" control in the prompt window responds to the user's action, and the phone displays the following... Figure 7 As shown in Figure (e) of the shooting preview interface 705, the user can accurately find the approximate framing range of the photo "Photo 1-R2" and then click the shooting shutter control 31 to take the same or similar photos. This process can be referred to the relevant description above, and will not be repeated here for the sake of simplicity.
[0299] Through the above process, when a photo corresponding to a certain restoration template file is detected to be missing, the mobile phone can automatically prompt the user with the missing photo and allow the user to choose whether to restore the missing photo. If the user chooses not to restore the missing photo, the phone can provide the user with other available photo restoration template files. The user can choose the appropriate restoration template file according to their shooting needs and quickly restore the photo.
[0300] Based on the restoration template file selected by the user, after the photo is taken, the retaken photo can have the same shooting parameters, editing parameters, and / or have roughly the same framing range as the photo corresponding to the restoration template file selected by the user.
[0301] Figure 8 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0302] For example, the user performs such Figure 8 As shown in Figure (a), clicking the shutter control 31 on the shooting preview interface 801 will trigger a pop-up notification window 802-1 on the phone, displaying the following information: Figure 8 The interface 802 shown in Figure (b) displays the following prompt in its window 802-1: "Preview the captured photo?" When the user clicks the "Yes" control, the phone displays the following message in response: Figure 8 The interface 803 shown in Figure (c) can display the photo that has just been taken, and display a prompt message: Do you want to save the photo?
[0303] In one possible scenario, when a user views the photo, and the restored photo taken based on the restored image file meets the user's needs for restoring the image, the user can perform the following actions: Figure 8 As shown in Figure (c), when the user clicks the "Save and Update Shooting Parameters" control, the phone can save the photo to the local album in response to the user's operation, and update one or more parameter information contained in the restored shooting file with the relevant shooting parameters, editing parameters, etc. modified during the restoration of the photo.
[0304] In another possible scenario, when the user clicks the "No" control in the prompt window 802-1 of interface 802, in response to the user's click operation, the mobile phone can continue to return to display as shown below. Figure 8 The shooting preview interface 801 shown in Figure (a) automatically saves the captured photos. This application embodiment does not limit this.
[0305] In another possible scenario, when a user views the photo, and the restored photo taken based on the restored image file cannot meet the user's needs for restoring the original image, the user can perform the following action: Figure 8 As shown in Figure (d), clicking the "Retake" control responds to the user's action, and the phone can return to display the following: Figure 8 The shooting preview interface 805 is shown in Figure (e). On this shooting preview interface 805, the user can click the "Restore" mode control. In response to the user's operation, the phone displays as shown in Figure (e). Figure 8 As shown in Figure (f), the restoration template selection interface 806 allows users to select the desired target restoration template from one or more restoration templates according to their shooting needs, and then re-shoot the restoration. For details, please refer to the relevant description in the foregoing embodiments. For simplicity, it will not be repeated here.
[0306] Using the above method, when users restore previous photos using the restoration template file, they can recreate the shooting process to photograph different objects, or accurately determine the framing of the previous photo to restore it. During this process, after shooting, users can preview and view the photo and determine if the restored photo meets their needs. If it does, the photo is saved, and the corresponding parameters are updated in the restoration template file; if it does not meet their needs, they can retake the photo or select a new restoration template file and reshoot. This process can meet different application scenarios, quickly restore photos, simplify the shooting operation, and improve the user experience.
[0307] Furthermore, during the restoration shooting process, some of the restoration template files stored locally on the phone may be used infrequently or have been discarded by the user. Therefore, this application embodiment also supports users in deleting, modifying, editing, and customizing one or more restoration template files for these less frequently used files.
[0308] Figure 9 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0309] For example, such as Figure 9 Figure (a) shows the restoration template selection interface 901, which displays multiple restoration templates in a list format in a floating window. Users can perform actions such as... Figure 9 As shown in Figure (a), when you long-press the control corresponding to the photo named "IMG-2021-12-R1", the phone automatically pops up an operation window 902-1 in response to the user's action, and displays the following: Figure 9 The interface 902 is shown in Figure (b). On this interface 902, the operation window 902-1 displays options for viewing relevant parameters, deleting options, editing options, custom options, and more options. This embodiment of the application does not limit the content and number of options displayed in the operation window 902-1.
[0310] When the user clicks the delete option, the phone automatically pops up a delete prompt window (903-1) in response to the user's action. This window displays the message: "Delete the IMG-2021-12-R1 restore template file?" When the user performs the following... Figure 9 As shown in Figure (c), clicking the "OK" control, in response to the user's action, the phone deletes the restoration template file corresponding to the photo named "IMG-2021-12-R1". Correspondingly, the phone then... Figure 9In the restoration template selection interface 904 floating window shown in Figure (d), the restoration template corresponding to the deleted photo named "IMG-2021-12-R1" will no longer be displayed, which will not be elaborated here.
[0311] Similarly, users can also customize their settings according to their individual needs. Figure 9 In the operation window 902-1 shown in Figure (b), you can select options such as View Related Parameters, Edit, Custom, and More. Each option can perform different functions. For example, the Edit option allows users to modify or replace one or more parameters included in the restoration template. These will not be described in detail here.
[0312] The above embodiment uses the process of a user taking a photo as an example. When a user takes a photo, the mobile phone can generate a corresponding "restoration template file" based on the photo taken by the user, one or more shooting parameters during the photo taking process, and / or editing parameters during the process of the user editing the photo after taking the photo. When a photo taken by the user is lost or accidentally deleted, the user can restore the photo by taking a photo based on the restoration template file corresponding to the photo, thereby restoring the photo and retaking a photo that is the same as or similar to the lost or accidentally deleted photo.
[0313] It should be understood that the ability to restore the original image in the embodiments of this application can be a system capability of an electronic device such as a mobile phone. Correspondingly, this system capability can be invoked by various applications with shooting capabilities, such as camera applications. For example, the implementation of this restoration process can be based on the camera application configured at the factory of the mobile phone, or on any other application capable of taking photos, such as beauty cameras or photo-taking apps downloaded and installed by the user. Alternatively, it can also be applied to… application, Any application with functions such as photo taking and video recording is included, and this application embodiment does not limit this to any application.
[0314] It should also be understood that, in addition to the method of taking photos and restoring the shooting described above, the restoration process provided in this application embodiment can also be applied to scenarios where users record videos, such as scenarios where video clips are recorded in other different shooting modes such as dual-view shooting and multi-view shooting. This application embodiment does not limit the scenarios in which the restoration process can be used.
[0315] Taking the scene of recording video clips in dual-view shooting mode as an example, Figure 10 This is another example of a graphical user interface diagram illustrating the restoration of the shooting process provided in this application embodiment.
[0316] For example, Figure 10Figure (a) shows the camera preview interface 1001 of the mobile phone, and the user switches the current shooting mode to dual-view shooting mode. Accordingly, the "black triangle icon" used to locate the current shooting mode can point to the "dual-view shooting" mode control.
[0317] Optionally, the dual-view shooting preview interface 1001 can display two preview windows: preview window 1001-1 and preview window 1001-2. Optionally, the images in the different preview windows can come from different mobile phone lenses. For example, the image in preview window 1001-1 can come from the mobile phone's rear wide-angle camera, used to capture distant scenery, and this image is called the "background flow" image; the image in preview window 1001-2 can come from the mobile phone's front camera, used to capture close-ups of people's faces, and this image is called the "foreground flow" image.
[0318] During the recording of dual-view video clips, users can set different shooting parameters for the different preview windows. For example, each preview window can be shot independently based on different numbers and / or different types of parameters listed in Table 3.
[0319] After the user sets different shooting parameters for each preview window, execute as follows: Figure 10 As shown in Figure (a), clicking the shutter control 31 responds to the user's action, allowing the phone to capture different video frames using different cameras and record video clips based on the "background flow" and "foreground flow" frames. Similarly, the user can click the shutter control 31 again to end the video clip recording process and save the recorded video clip locally.
[0320] In one possible implementation, for any video clip with dual-view images stored locally on the mobile phone, the mobile phone can generate one or more restoration template files corresponding to the video clip based on the shooting parameters and / or editing parameters corresponding to each part of the video clip.
[0321] For example, the dual-view video clip can be understood as a combination of two parts of the image. Therefore, the restoration template file corresponding to the dual-view video clip can include: a first restoration template file, a second restoration template file, and a third restoration template file. The first restoration template file includes one or more parameters corresponding to the "background flow" image, such as parameters of different cameras, user-set focal length, beauty mode, etc. The second restoration template file includes one or more parameters corresponding to the "foreground flow" image, such as parameters of different cameras, user-set focal length, beauty mode, etc. The third restoration template file includes all parameters corresponding to both the "background flow" and "foreground flow" images.
[0322] It should be understood that the first restoration template file and the second restoration template file corresponding to the video segment of the dual-view image may correspond to different numbers and / or different types of parameters; or, the first restoration template file and the second restoration template file corresponding to the video segment of the dual-view image may include the same number and / or the same type of parameters, and this application embodiment does not limit this.
[0323] Optionally, when the video clip of the dual-view image is lost or accidentally deleted, the user can also restore the photo or video clip based on the restoration template file corresponding to the video clip of the dual-view image (such as the first restoration template file, the second restoration template file, and the third restoration template file).
[0324] For example, such as Figure 10 On the shooting preview interface 1002 shown in Figure (b), the user switches the current shooting mode to restoration mode. When the user clicks the "restoration" mode control, the phone displays the following in response to the user's operation: Figure 10 Figure (c) shows the restoration template selection interface 1003. One or more restoration templates are displayed in the floating window of the restoration template selection interface 1003.
[0325] In one possible implementation, one or more restoration templates displayed in the floating window of the restoration template selection interface 1003 may include restoration templates corresponding to different multimedia files, such as restoration templates corresponding to photos, and / or video clips, and / or animated GIFs, and / or photos with sound.
[0326] Optionally, in the camera application's recovery mode, users can perform either photo recovery or video recovery. The different processes can be determined based on the type of recovery template file selected by the user. For example, they can be distinguished by the file extension and filename of the recovery template file selected by the user.
[0327] For example, in Figure 10In Figure (c), the restoration template selection window can include restoration templates corresponding to photos or video clips. Different restoration templates can be distinguished by different file extensions, with "-R" indicating "restoration template". For example, the file extension of a photo restoration template carries "-PR", such as "Photo1-P1-R", "Photo2-P2-R", and "Photo3-P3-R", which correspond to the restoration templates of Photo1, Photo2, and Photo3, respectively. The file extension of a video clip restoration template carries "-V", such as "Video1-2021-12-V1-R", "Video2-2021-12-V2-R", and "Video3-2021-12-V3-R", which correspond to the restoration templates of Video Clip1, Video Clip2, and Video Clip3, respectively. This embodiment of the application does not limit this.
[0328] When a user clicks "Photo 1-P1-R", the phone can determine whether the user is using the current camera app to restore and take a photo based on the file extension of the restoration template selected by the user, and then further select the appropriate shooting mode. When a user clicks "Video 1-2021-12-V1-R", the phone can determine whether the user is using the current camera app to restore and record a video based on the file extension of the restoration template selected by the user, and then further select the appropriate video recording mode.
[0329] Optionally, in the camera application's recovery mode, the file names of one or more recovery templates available for user selection may not be distinguished by file type extensions such as photo (-P) or video (-V). Instead, they may all exist as recovery template files in the form of -R. After selecting one of the recovery template files, the user can determine whether the file used to recover a photo, GIF, or video is the source file type corresponding to that recovery template file. For example, if the user selects one of multiple files named xxxx-R, and the source file type corresponding to the xxxx-R file is a photo, then the current recovery mode can default to the user recovering the photo shooting process. This application embodiment does not limit this.
[0330] Alternatively, in the floating window of the restoration template selection interface 1003, the user can long-press and select any one of one or more restoration templates, and then proceed through the pop-up window as follows: Figure 9 In Figure (b), the "More" option in the operation window 902-1 allows you to either restore and take a photo, or restore and record a video. For example, Figure 9 The "More" option in the operation window 902-1 shown in Figure (b) can further include options such as "Photos", "Video Clips", "Animated GIFs", and "Audio Photos". Users can select and restore different types of multimedia files according to the restoration template.
[0331] Or perhaps, Figure 9 The operation window 902-1 shown in Figure (b) has an added "Change" option. If the user selects a restoration template corresponding to a photo in the floating window of the restoration template selection interface 1003, then through the "Change" option, they can further select options such as "Video Clip," "Animated GIF," and "Photo with Sound," to restore other types of multimedia files using the restoration template corresponding to the photo. Further details are omitted here. The user executes the following... Figure 10 As shown in Figure (c), clicking the option named "Video 1-2021-12-V1-R" triggers the phone's response. The phone confirms that the user has selected the restoration template file corresponding to the video segment named "Video 1-2021-12-V1-R," and can then further display the following... Figure 10 As shown in Figure (d), interface 1004 displays three different restoration template options corresponding to the video clip of the dual-view scene: Foreground Flow option (second restoration template file: Video 1-2021-12-V1-R1), Background Flow option (first restoration template file: Video 1-2021-12-V1-R2), and Foreground Flow + Background Flow option (third restoration template file: Video 1-2021-12-V1-R3). Users can click on different options to select different types of restoration template files and different parameters for restoration shooting.
[0332] When the user clicks the "Background Flow" option, in response to the user's action, the 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. The phone can display parameters such as... Figure 10 The interface 1005 shown in Figure (e) further displays the video clip name "Video 1-2021-12-V1 (Background Flow)" in the floating window of the interface 1005, the cover thumbnail of the "Background Flow" screen, the storage location of the first restoration template file (xxxxxx), and one or more video recording parameters such as the shooting focal length, resolution, beauty level, and AI color of the "Background Flow" screen. When the user clicks the "OK" control, he 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.
[0333] It should be understood that in this scenario, the mobile phone is recording the video based on the first restoration template file corresponding to the "back view" screen. At this time, the video segment that the mobile phone is re-recording can be a single-screen video or a dual-screen video. Alternatively, the method of selecting restoration photos and video segments described in the foregoing embodiments can be used to set options that the user can manually select, or the user can automatically match the data. This application embodiment does not limit this.
[0334] Similarly, if the user clicks the "Foreground Stream" option, the 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 is the same as described above and will not be repeated here.
[0335] When the user clicks the "Foreground Flow + Background Flow" option, in response to the user's action, the phone uses all the parameters included in the "Third Original Template File" corresponding to the dual-view images of "Foreground Flow + Background Flow" as one or more video recording parameters required for the current restoration shooting process. The phone can display, on interface 1005, both the cover thumbnail of the "Background Flow" image, the storage location of the first restoration template file, and one or more video recording parameters such as focal length, resolution, beauty level, and AI color before shooting the "Background Flow" image, and the cover thumbnail of the "Foreground Flow" image, the storage location of the second restoration template file, and one or more video recording parameters such as focal length, resolution, beauty level, and AI color before shooting the "Background Flow" image. Further details are omitted here. In this scenario, when the user clicks the "OK" control, the phone can return to the shooting preview interface and continue shooting in a similar manner. Figure 10 The dual-view shooting mode shown in Figure (a) restores the shooting experience by displaying two preview windows. One preview window is adjusted to one or more video recording parameters corresponding to the "foreground flow" view, and the other preview window is adjusted to one or more video recording parameters corresponding to the "background flow" view. The user clicks the shutter button 31 to record the video clip, which will not be described in detail here.
[0336] The method provided in this application can be applied to dual-view shooting mode, and video clips recorded in this mode can also generate restoration template files for restoring the shooting process. Specifically, the restoration template file corresponding to the video clips of the dual-view scenes can restore ordinary video clips of a single view, video clips of dual-view scenes, and also different types of multimedia files such as photos and GIFs. This implementation enriches the application scenarios of this application, improves the utilization efficiency of restoration templates to a certain extent, and the restoration shooting process is convenient to operate, enabling quick restoration of the shooting process and / or framing content of multimedia files, thus enhancing the user experience.
[0337] Optionally, in addition to the dual-view shooting scenario described in the above embodiments, various different processing methods can be used for other "multi-view shooting" or "multi-stream shooting" scenarios.
[0338] It should be noted that the above example using the "dual-view shooting" mode illustrates that three restoration template files can be generated when recording video clips. It should be understood that this "dual-view shooting" mode can generate more than three restoration template files. Optionally, when users record video using shooting modes such as "multi-view shooting" or "multi-stream shooting," they can switch cameras midway through the recording. When different cameras capture video footage, different restoration template files can be generated independently, and these restoration template files can be stored independently.
[0339] For example, this "multi-scene shooting" scenario includes multiple shooting frames, and the following different processing methods can be included in this scenario:
[0340] (1) In the multiple shooting scenes included by multi-scene shooting, each shooting scene corresponds to an independent restoration template file, and multiple restoration template files can be linked to each other by file extension.
[0341] (2) Multiple shots in a multi-scene shooting session correspond to a single restoration template file. Specifically, the multiple shots can be treated as a single shot, and the generated unique restoration template file can be used directly for restoration.
[0342] (3) When the user switches cameras, separate restoration template files are generated for the video clips captured by different cameras so that they can be restored independently.
[0343] Table 5 lists one possible way to associate multiple restoration template files. As shown in Table 5, the video clips captured in multiple scenes are named "Video 1-2021-12-V1-R". The first restoration template file corresponding to the first scene can be named "Video 1-2021-12-V1-R1", the second restoration template file corresponding to the second scene can be named "Video 1-2021-12-V1-R 2", and the third restoration template file corresponding to the third scene can be named "Video 1-2021-12-V1-R 3".
[0344] Table 5
[0345] First scene shooting footage First restoration template file Video 1-2021-12-V1-R 1 Second scene shooting footage Second restoration template file Video 1-2021-12-V1-R 2 Third scene shooting footage Third restoration template file Video 1-2021-12-V1-R 3 …… …… ……
[0346] Optionally, when performing restoration shooting, these three restoration template files can be 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 restore the video, photos, and other multimedia files of multiple scenes.
[0347] Alternatively, the three restoration template files can be used as independent restoration template files. Users can select any one or more of the three restoration template files to restore multi-scene videos, photos, and other multimedia files according to their personal shooting needs. This application embodiment does not limit this.
[0348] Optionally, if one of the three restoration template files is corrupted, the other intact restoration template files can be used to restore the corrupted file.
[0349] The different implementation methods described above make the restoration shooting process more flexible, allowing users to manually select one or more restoration template files according to their shooting needs, providing users with more diverse and convenient restoration shooting methods and improving the user experience.
[0350] Optionally, for any multimedia file such as a photo, video, or GIF, the corresponding restoration template file can be used not only to restore multimedia files of the same type, but also to restore multimedia files of different types.
[0351] For example, for any video segment, the corresponding restoration template file can be used to restore photos, videos, or animated GIFs, etc., to obtain multimedia files with the same or similar display effects. This application embodiment does not limit this.
[0352] Optionally, the photos or videos used as restoration templates can be taken by the user with their mobile phone, downloaded by the user, or sent by other devices and saved in the phone's local album.
[0353] Specifically, when a photo is saved to the phone's local gallery, the phone can detect the photo and obtain its corresponding shooting parameters, such as brightness level and filter color, and generate a restoration template file. This restoration template file can also be used in conjunction with the aforementioned photo restoration process to guide the user in taking other photos based on the restored file. Similarly, videos can have a similar implementation process, which will not be elaborated here for simplicity.
[0354] In summary, the method for restoring images provided by the embodiments of this application offers users a novel shooting solution. When multimedia files such as photos, GIFs, and recorded video clips are lost or accidentally deleted, this method can quickly restore the images based on one or more restoration template files stored on the electronic device.
[0355] Specifically, users can use restoration template files to recreate the shooting process. This means using one or more shooting parameters included in the template file to reshoot different objects, restoring multimedia files such as photos, GIFs, and recorded video clips with the same display effect. Alternatively, users can select the same framing to restore multimedia files such as photos, GIFs, and recorded video clips with the same effect and framing. This method can meet different application scenarios, quickly restore photos, simplify shooting operations, and improve the user experience.
[0356] Furthermore, during the process of selecting a restoration template file, once the user selects the restoration template, the method allows the user to view, modify, edit, or delete one or more parameters in the restoration template. It can also update the relevant parameters in the restoration template file based on the user's modification, editing, or deletion operations, or generate and save a new restoration template based on the updated relevant parameters, thus meeting the user's shooting needs in different scenarios.
[0357] Furthermore, using the above solution, if multimedia files such as photos, GIFs, and video clips taken by the user are lost or accidentally deleted, when the user switches the current shooting mode to recovery mode, the phone can automatically detect whether any of the stored recovery template files are missing corresponding multimedia files. When a missing multimedia file corresponding to a recovery template file is detected, the phone can automatically prompt the user about the missing multimedia file and allow the user to choose whether to recover the missing multimedia file, and automatically trigger the phone's recovery shooting process. This method can ensure the integrity of the recovery templates and improve the user experience.
[0358] The above embodiments combined Figures 3 to 10 The process of restoring a photo was introduced from the perspective of user interaction. The following will combine... Figure 11 From the perspective of software implementation strategy, this application introduces the method for restoring images provided in the embodiments.
[0359] It should be understood that this method can be used in situations such as Figure 1 , Figure 2 This is implemented in an electronic device (such as a mobile phone, tablet, etc.) with a structure including a display screen, one or more cameras, etc.
[0360] Figure 11 This is a schematic flowchart illustrating a method for restoring a photograph provided in an embodiment of this application. Taking a mobile phone as an example, as follows... Figure 11 As shown, the method may include the following steps:
[0361] 1101, Display the shooting preview interface of the electronic device, the shooting preview interface including a screen displaying one or more shooting parameters based on the first parameter set.
[0362] Optionally, the ability to restore the captured image in this application embodiment can be a system capability of an electronic device such as a mobile phone. Accordingly, this system capability can be called by various applications with shooting capabilities, such as camera applications.
[0363] For example, the restoration shooting process can be implemented based on the camera application configured at the factory on the mobile phone. The user can run the camera application and display the shooting preview interface through the phone's camera application. For example, the implementation process of step 1101 can be as follows: Figure 3 As shown in Figure (a).
[0364] Alternatively, the restoration of the shooting process can also be achieved based on any other photo-taking application that the user has downloaded and installed, such as beauty camera apps or other photo-taking apps.
[0365] Or, it can also be applied to, for example application, Any application with functions such as photo taking and video recording is included, and this application embodiment does not limit this to any application.
[0366] Optionally, the "shooting parameters" involved in the embodiments of this application may include one or more of the following parameters listed in Table 2 above: focal length, focus mode, resolution, camera, geographic location information, beauty parameters, filter color, flash effect, level effect, exposure, and sensitivity.
[0367] It should be understood that, in the embodiments of this application, the electronic device stores one or more restoration templates, or in other words, stores one or more restoration template files.
[0368] Optionally, the one or more restoration templates may include preset restoration templates. For example, the developer may set two fixed restoration templates when the phone leaves the factory. These restoration templates correspond to fixed shooting parameters that enable the phone to achieve relatively high-quality shooting results. Subsequently, regardless of whether the user restores a photograph or records a video, the preset restoration template can be displayed.
[0369] Alternatively, the one or more restoration templates may include restoration templates generated by the electronic device based on one or more shooting parameters of an associated multimedia file.
[0370] For example, a mobile phone can intelligently detect the shooting environment, the subject, and other external factors, and intelligently match different shooting templates for the user. For instance, when the mobile phone detects that the current shooting environment is dark at night, one or more restoration templates displayed in the restoration template selection window may include parameters adapted to night shooting.
[0371] Alternatively, the mobile phone can intelligently display one or more restoration templates that are frequently used by the user based on usage frequency and shooting habits. For example, the restoration template file corresponding to the photo named "IMG-2021-12-R1" has the highest usage frequency and will be displayed first in the restoration template selection window. This application embodiment does not limit this.
[0372] Optionally, the "restore shooting function" in this application embodiment can be manually enabled or disabled by the user through the camera application's settings controls, shortcut controls, etc. For example, the user can... Figure 3 The process described in the article to enable the electronic device's recovery shooting function will not be repeated here.
[0373] Alternatively, the function of restoring the shooting can also be configured as a default function of the electronic device, that is, multiple related applications such as camera application and gallery application of the electronic device can be authorized to call the function of restoring the shooting. This application embodiment does not limit this.
[0374] 1102, determine a first restoration template from the one or more restoration templates, the first restoration template being associated with a first multimedia file, the first multimedia file being any one of a photo, GIF, or video clip.
[0375] It should be understood that, in the embodiments of this application, multimedia files such as "first multimedia file" and "second multimedia file" may include any one of photos, GIFs or video clips. The multimedia file may be captured by the user through the camera application of the electronic device, or it may be downloaded by the user from the network, server, social platform, etc., or received by the user from other devices and saved locally on the mobile phone.
[0376] For example, taking photos as an example, when a user downloads a photo and saves it to the local gallery of their phone, the phone can detect the photo and obtain the corresponding shooting parameters, such as the brightness level and filter color of the photo, and generate a restoration template file for the photo. This restoration template file can also be used to guide the user to take other photos, GIFs, videos and other multimedia files, which will not be elaborated here.
[0377] In one possible implementation, 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.
[0378] For example, such as Figure 5As shown in Figures (a)-(b), the user can manually select the restoration template corresponding to the photo named "IMG-2021-12-R1" from one or more restoration templates displayed in the restoration template selection window. At this time, the photo named "IMG-2021-12-R1" is the "first multimedia file".
[0379] In another possible implementation, the electronic device can intelligently and automatically match or recommend a first restoration template to the user from the one or more restoration templates. Optionally, based on the shooting environment of the electronic device, the restoration template with the best shooting effect from the one or more restoration templates can be automatically determined as the first restoration template; or, based on the image displayed on the shooting preview interface, the restoration template with the best shooting effect from the one or more restoration templates can be automatically determined as the first restoration template; or, based on the user's usage frequency, the restoration template with the highest user frequency from the one or more restoration templates can be automatically determined as the first restoration template; or, based on the user's usage record, the restoration template most recently used by the user from the one or more restoration templates can be automatically determined as the first restoration template. This application embodiment does not limit this.
[0380] For example, when the phone detects that the current shooting environment is dark at night, one or more restoration templates displayed in the restoration template selection window can match or recommend a first restoration template for the user, which includes shooting parameters adapted to night shooting.
[0381] Alternatively, the mobile phone can intelligently determine the restoration template file corresponding to the most frequently used photo named "IMG-2021-12-R1" as the first restoration template based on the user's usage frequency and shooting habits. This template will be displayed first or selected by default in the restoration template selection window. Users can also cancel or change it. This application embodiment does not limit this.
[0382] 1103, Obtain the second parameter set corresponding to the first restoration template, wherein the second parameter set includes one or more shooting parameters for shooting the first multimedia file.
[0383] Optionally, the second parameter set also includes the framing information of the first multimedia file. The electronic device can determine the framing range of the first multimedia file based on the framing information of the first multimedia file; and capture a third multimedia file based on one or more shooting parameters included in the second parameter set according to the user's shooting operation. The third multimedia file and the first multimedia file have the same display effect and framing range.
[0384] Optionally, the second parameter set also includes operation parameters for the user to perform editing processing on the first multimedia file. After the second multimedia file is captured, the electronic device can edit the second multimedia file according to the operation parameters of the editing processing to obtain the processed second multimedia file. The editing processing includes one or more of the following listed in Table 3: cropping ratio, adjusting filter color, adjusting beauty parameters, and adjusting brightness level.
[0385] 1104, receiving the user's first operation, responding to the first operation, capturing a second multimedia file based on one or more shooting parameters included in the second parameter set, such that the second multimedia file and the first multimedia file have the same display effect, wherein the second multimedia file is any one of a photo, GIF, or video clip.
[0386] Optionally, when the second multimedia file is a photograph, the "first operation" may include, for example: Figure 5 The first operation, shown in Figure (f), is a user-performed action of clicking the shutter control. When the second multimedia file is a video clip, the "first operation" may include, for example... Figure 5 The user's action of clicking the shutter control at least twice to record video, as shown in Figure (f), is not limited to this embodiment of the application.
[0387] In one possible implementation, after the user selects the first restoration template file, the electronic device obtains the second parameter set corresponding to the first restoration template and can then present one or more shooting parameters of the second parameter set to the user. The user can also modify one or more parameters in the restoration template file.
[0388] Optionally, "modifying one or more parameters in the restoration template file" may include the user performing operations such as editing, deleting, adding, or adjusting one or more shooting parameters in the second parameter set.
[0389] Optionally, after the user modifies one or more shooting parameters of the second parameter set, the electronic device can update the first restoration template according to the modified second parameter set, that is, overwrite the original restoration template file and replace the original parameters of the first restoration template file with the parameters modified by the user.
[0390] Alternatively, the electronic device can generate a second restoration template associated with the first multimedia file based on the modified second parameter set, and save the second restoration template. For example, the electronic device can generate a new restoration template file based on user operations, combining the modified parameters and one or more parameters from the original first restoration template file, and automatically save the new restoration template file. For instance, the new second restoration template file might have a file extension added to the original restoration template file name before saving.
[0391] In another possible implementation, each multimedia file can correspond to a unique restoration template file. If a multimedia file is lost or accidentally deleted, the mobile phone can detect that the source file of the multimedia file is missing. The electronic device can automatically remind the user of the missing multimedia file and allow the user to choose whether to restore the photo.
[0392] Specifically, when the first multimedia file associated with the first restoration template is detected to be missing or corrupted, the electronic device can display a prompt message in the restoration shooting mode. This prompt message reminds the user to restore the first multimedia file. This process proactively reminds the user to restore the multimedia file, allowing the user to select the missing file to restore. This ensures the integrity of the restoration template, and the photo restoration process is convenient and quick, enabling a faster restoration of the previous shooting process and improving the user experience.
[0393] In another possible implementation, after the electronic device obtains the second parameter set corresponding to the first restoration template, it can also automatically update the screen displayed on the shooting preview interface of the electronic device based on one or more shooting parameters included in the second parameter set.
[0394] For example, comparison Figure 5 The shooting preview interface 501 shown in Figure (a) is as follows: Figure 5 The shooting preview interface 506 shown in Figure (f) is in... Figure 5 In the shooting preview interface 501 shown in Figure (a), the user has not selected to restore the template file, and the relevant shooting parameters can be set to the default shooting parameters of the current camera, such as a magnification of "1.0×", no beauty level, and no other filter colors. Figure 5 In the shooting preview interface 506 shown in Figure (f), the user has already... Figure 5 The process shown in Figures (b), (c), and (d) involves selecting a restoration template file. The relevant shooting parameters can be automatically adjusted to one or more parameters included in the restoration template file, such as displaying a magnification of "1.5×" on the shooting preview interface 506, enabling beauty level (beauty level 6), and other filter colors and effects.
[0395] Optionally, during the electronic device's restoration process, the user can either restore a photo or restore a video. The different processes can be determined based on the type of restoration template file selected by the user. For example, the user can choose different types of restoration template files and different parameters based on the file extension and file name of the selected restoration template file.
[0396] For example, in Figure 10 In Figure (c), the restoration template selection window can include restoration templates corresponding to photos or video clips. Different restoration templates can be distinguished by different file extensions, with "-R" indicating "restoration template".
[0397] In addition, users can select a photo restoration template file to restore the shooting of a photo, a video clip, or a GIF; they can also select a video clip restoration template file to restore the shooting of a photo, a video clip, or a GIF, etc. This application embodiment does not limit this.
[0398] In summary, the method for restoring captured images provided by this application offers users a novel shooting solution. When multimedia files such as photos, GIFs, and recorded video clips are lost or accidentally deleted, this method can quickly restore the captured images based on one or more restoration template files stored on the electronic device.
[0399] Specifically, users can use restoration template files to recreate the shooting process. This means using one or more shooting parameters included in the template file to reshoot different objects, restoring multimedia files such as photos, GIFs, and recorded video clips with the same display effect. Alternatively, users can select the same framing to restore multimedia files such as photos, GIFs, and recorded video clips with the same effect and framing. This method can meet different application scenarios, quickly restore photos, simplify shooting operations, and improve the user experience.
[0400] Furthermore, during the process of selecting a restoration template file, once the user selects the restoration template, the method allows the user to view, modify, edit, or delete one or more parameters in the restoration template. It can also update the relevant parameters in the restoration template file based on the user's modification, editing, or deletion operations, or generate and save a new restoration template based on the updated relevant parameters, thus meeting the user's shooting needs in different scenarios.
[0401] Furthermore, using the above solution, if multimedia files such as photos, GIFs, and video clips taken by the user are lost or accidentally deleted, when the user switches the current shooting mode to recovery mode, the phone can automatically detect whether any of the stored recovery template files are missing corresponding multimedia files. When a missing multimedia file corresponding to a recovery template file is detected, the phone can automatically prompt the user about the missing multimedia file and allow the user to choose whether to recover the missing multimedia file, and automatically trigger the phone's recovery shooting process. This method can ensure the integrity of the recovery templates and improve the user experience.
[0402] It should be noted that, in the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0403] It should be understood that the methods, situations, categories, and classifications of embodiments in this application are for the convenience of description only and should not constitute a special limitation. Various methods, categories, situations, and features in embodiments can be combined without contradiction.
[0404] It should also be understood that the terms "first," "second," and "third" in the embodiments of this application are for distinction only and should not constitute any limitation on this application. For example, "first restoration template," "second restoration template," etc. in the embodiments of this application refer to different restoration templates including different shooting parameters and / or editing parameters.
[0405] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0406] It should also be noted that in the embodiments of this application, "preset", "fixed value", etc. can be implemented by pre-saving the corresponding code, table or other means that can be used to indicate relevant information in the electronic device. This application does not limit the specific implementation method, such as the "preset restoration template" in the embodiments of this application.
[0407] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0408] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0409] With each functional module corresponding to its respective function, the above embodiments illustrate a possible configuration of the electronic device, which may include a display unit, a detection unit, and a processing unit. The display unit, detection unit, and processing unit cooperate to support the electronic device in performing the aforementioned steps and / or other processes related to the technology described herein.
[0410] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0411] The electronic device provided in this embodiment is used to perform the above-described restoration shooting method, and therefore can achieve the same effect as the above-described implementation method.
[0412] When using integrated units, the electronic device may include a processing module, a storage module, and a communication module. The processing module can be used to control and manage the operation of the electronic device; for example, it can support the electronic device in executing the steps performed by the display unit, detection unit, and processing unit. The storage module can support the electronic device in executing stored program code and data. The communication module can support communication between the electronic device and other devices.
[0413] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
[0414] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment can be a device having... Figure 1 The device with the structure shown.
[0415] This embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to realize the method for restoring the captured image in the above embodiment.
[0416] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to realize the method for restoring the captured image described in the above embodiment.
[0417] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the restoration shooting method in the above method embodiments.
[0418] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0419] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0420] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0421] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0422] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0423] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0424] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for restoring an image, applied to an electronic device including a display screen, characterized in that, The method includes: The electronic device displays a first shooting preview interface; The device receives a sixth operation from the user and, in response to the sixth operation, puts the electronic device into the recovery shooting mode. When it is detected that some or all of the multimedia files in one or more multimedia files captured by the electronic device are lost or damaged, a prompt message is automatically displayed. The prompt message is used to remind the user to restore the partial or all multimedia files, and the partial or all multimedia files include the first multimedia file. After determining to restore the first multimedia file by receiving one or more user operations, a first restoration template is displayed. The first restoration template is generated based on the first multimedia file. The first restoration template includes a second parameter set corresponding to the first multimedia file and a thumbnail of the first multimedia file. The second parameter set includes the geographical location information when the first multimedia file was captured. After determining that the first multimedia file will be restored using the first restoration template by receiving one or more user operations, the second shooting preview interface is displayed. Upon receiving a first operation from the user, and in response to the first operation, a second multimedia file is captured based on one or more shooting parameters included in the second parameter set. The second multimedia file has the same display effect and framing range as the first multimedia file. The second multimedia file is any one of a photo, GIF, or video clip.
2. The method according to claim 1, characterized in that, After displaying the first restoration template, the method further includes: Upon receiving a third user action, in response to the third user action, one or more shooting parameters of the second parameter set are modified, and the first restoration template is updated according to the modified second parameter set; or, Based on the modified second parameter set, a second restoration template associated with the first multimedia file is generated and saved.
3. The method according to claim 1 or 2, characterized in that, The second parameter set also includes operation parameters for the user to perform editing processing on the first multimedia file. After the second multimedia file is captured, the method further includes: The second multimedia file is edited according to the operation parameters of the editing process to obtain the processed second multimedia file. The editing process includes one or more of the following: cropping ratio, adjusting filter color, adjusting beauty parameters, and adjusting brightness level.
4. The method according to claim 1 or 2, characterized in that, The shooting parameters include one or more of the following: focal length, focus mode, resolution, camera, beauty parameters, filter color, flash effect, level effect, exposure, and ISO.
5. An electronic device, characterized in that, include: Display screen; One or more processors; One or more memory units; A module with multiple applications installed; The memory stores one or more programs that, when executed by the processor, cause the execution of the method as described in any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Video shooting method and device, electronic device and readable medium
CN109495684A
Shooting method, graphical interface and related device
CN113727017A