Image processing method and device, equipment and storage medium

By generating and displaying fast images of low quality, the problem of electronic devices waiting for image generation after shooting is solved, realizing the timeliness of image viewing and sharing, and improving the user experience.

CN120264129APending Publication Date: 2025-07-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510449506.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

In the prior art, electronic devices with poor processing performance need to wait for the image to be generated and stored in the corresponding location before viewing or sharing after taking images, resulting in poor user experience.

Method used

The detection shooting operation generates a fast image of lower quality and displays the fast image when an image viewing or sharing operation is detected, reducing the waiting time.

Benefits of technology

It realizes timely viewing and sharing of images within the preset time after shooting operation, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120264129A_ABST
    Figure CN120264129A_ABST
Patent Text Reader

Abstract

Embodiments of the invention disclose an image processing method and apparatus, a device and a storage medium. The method comprises the steps of detecting a photographing operation in a photographing application; obtaining a fast image corresponding to the shooting operation, wherein the image quality of the fast image is lower than the image quality of a shot image corresponding to the shooting operation; in response to detecting the image viewing operation, the fast image is displayed. And the shot image can be checked more timely.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to image sharing technology, including but not limited to an image processing method, apparatus, device, and storage medium. Background Art

[0002] After a user takes a photo using an electronic device such as a mobile phone, the captured image usually needs to be shared with other devices.

[0003] In related technologies, during the process of viewing or sharing an image, it is necessary to wait for the captured image to be generated and stored in the corresponding location before the image can be viewed or shared. However, for electronic devices with poor processing performance, the image processing process takes more time, which results in the user being unable to view or share the image in a timely manner, and the user experience is poor. Summary of the Invention

[0004] In view of this, the image processing method, apparatus, device, and storage medium provided by the embodiments of the present application can view the captured image more timely. The image processing method, apparatus, device, and storage medium provided by the embodiments of the present application are implemented as follows:

[0005] On the one hand, an embodiment of the present application provides an image processing method applied to an electronic device. The method includes:

[0006] Detecting a shooting operation in a camera application;

[0007] Obtaining a quick image corresponding to the shooting operation, where the image quality of the quick image is lower than that of the shooting image corresponding to the shooting operation;

[0008] In response to detecting an image viewing operation, displaying the quick image.

[0009] On the other hand, an embodiment of the present application further provides an image processing apparatus applied to an electronic device. The apparatus includes: a detection module and a processing module;

[0010] The detection module is configured to detect a shooting operation in a camera application;

[0011] The processing module is configured to obtain a quick image corresponding to the shooting operation, where the image quality of the quick image is lower than that of the shooting image corresponding to the shooting operation;

[0012] The processing module is further configured to, in response to detecting an image viewing operation, display the quick image.

[0013] The electronic device provided by the embodiments of the present application includes a memory and a processor. The memory stores a computer program that can run on the processor, and the processor implements the method of the embodiments of the present application when executing the program.

[0014] The computer-readable storage medium provided by the embodiments of the present application stores a computer program, and when the computer program is executed by a processor, the method provided by the embodiments of the present application is implemented.

[0015] In the image processing method, device, equipment, and storage medium provided by the embodiments of the present application, it is possible to detect a shooting operation of a photographing application; obtain a fast image corresponding to the shooting operation, where the image quality of the fast image is lower than that of the shooting image corresponding to the shooting operation; and in response to detecting an image viewing operation, display the fast image. Since the generation time of the fast image is shorter than that of the shooting image, during the process of image viewing, the image viewing can be realized by displaying the fast image, and thus it can be ensured that the user can view the captured image within a preset time period after the shooting operation, improving the timeliness of image viewing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 It is a schematic flowchart of image viewing provided in the related art;

[0018] Figure 2 It is a schematic flowchart of image viewing provided in the embodiments of the present application;

[0019] Figure 3 It is a schematic software architecture diagram of an electronic device provided in the embodiments of the present application;

[0020] Figure 4 It is a schematic flowchart of the image processing method provided in the embodiments of the present application;

[0021] Figure 5 It is another schematic flowchart of the image processing method provided in the embodiments of the present application;

[0022] Figure 6 It is a schematic flowchart of whitelist determination provided in the embodiments of the present application;

[0023] Figure 7 It is a schematic flowchart of generating a fast image provided in the embodiments of the present application;

[0024] Figure 8 It is another schematic flowchart of generating a fast image provided in the embodiments of the present application;

[0025] Figure 9Another schematic diagram of the image viewing process provided in the embodiments of the present application;

[0026] Figure 10 Schematic diagram of the image storage location provided in the embodiments of the present application;

[0027] Figure 11 Another schematic diagram of the image viewing process provided in the embodiments of the present application;

[0028] Figure 12 Logical schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application;

[0029] Figure 13 Interaction schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application;

[0030] Figure 14 Schematic diagram of the structure of the image processing device provided in the embodiments of the present application;

[0031] Figure 15 Schematic diagram of the hardware structure of the electronic device provided in the embodiments of the present application. Detailed implementation manners

[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application in detail with reference to the accompanying drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0034] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.

[0035] It should be noted that the terms "first / second / third" involved in the embodiments of the present application are used to distinguish similar or different objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0036] It should be noted that the electronic device provided in the embodiments of the present application may be a mobile phone, computer, tablet computer with a photographing function, or a dedicated camera and other photographing devices, which are not specifically limited herein, as long as exposure photographing can be achieved.

[0037] Specifically, it may include a smart phone, a digital camera, a single-lens reflex camera, a mirrorless camera, an action camera, a drone, a tablet computer, a notebook computer, a smart watch, a dash cam, a web camera, and a professional video camera, etc., which are not specifically limited herein and may be any one of the above-mentioned multiple devices.

[0038] In practical applications, after a user takes a photo using an electronic device, the user usually needs to view the image or share the captured image with other devices. For example: sending the image to other users of the social software through the social software, etc.

[0039] However, in the actual implementation process, since it takes a certain amount of time from shooting to image generation, if the user needs to view or share immediately after taking a photo, it is very likely that the captured image has not been generated yet. In this case, the image will not be displayed in the viewing interface of the electronic device, and the user will not be able to view or share the image.

[0040] The following explains one implementation process of the image viewing method adopted in the related art.

[0041] Figure 1 For the schematic flow diagram of image viewing provided in the related art, please refer to Figure 1 , Figure 1 The left sub-graph is the interface of the camera application. Photos can be taken through this interface of the camera application, and if an image viewing operation is triggered within a preset time period, the middle sub-graph can be displayed.

[0042] Figure 1 The middle sub-graph is the interface of the social application. Users can transmit messages with other users through this interface, such as: images, videos, texts, etc., which are not specifically limited herein. If a user needs to send an image, they can enter the album by clicking the corresponding control and select the corresponding image for viewing or sharing. This social application can be two different software application programs that are independent of each other from the camera application, and both of these applications can be applications in the electronic device.

[0043] Figure 1 The right sub-graph is the interface for viewing the album. Multiple thumbnails of images that can be shared can be displayed in this interface. Users can view or share the image by clicking. In the related art, if an image is viewed within the preset time, it may be caused because the image has not been generated yet Figure 1No images taken in a short period of time are displayed in the right sub - figure. Thumbnails of the corresponding images will be displayed in this interface only after the images are generated, and then the viewing and sharing can be completed.

[0044] Figure 1 On the right side in the middle, there are no viewable thumbnails as an example. In the actual implementation process, there may also be thumbnails of other pictures, but there will be no thumbnail of the image corresponding to this photo.

[0045] Refer to Figure 1 It can be obtained that in the related art, during the process of viewing images, it is necessary to wait for the captured images to be generated and stored in the corresponding location before the images can be viewed or shared. However, for electronic devices with poor processing performance, the image - processing process takes more time, which results in the user being unable to share images in a timely manner and the user experience being poor.

[0046] To solve the above problems existing in the related art, an image - processing method is provided in the embodiments of the present application. After image processing using this image - processing method, the viewing and sharing of images can be achieved more quickly.

[0047] Figure 2 The following is a schematic flowchart of image viewing provided in the embodiments of the present application. Please refer to Figure 2 , Figure 2 The left sub - figure in [reference] is the same as the corresponding sub - figures in the middle sub - figure and Figure 1 and will not be repeatedly explained here.

[0048] Figure 2 The right sub - figure in [reference] is the interface for viewing the photo album. Multiple thumbnails of images that can be shared can be displayed in this interface. The user can view or share the image by clicking. For the solution adopted in the embodiments of the present application, if the image is viewed within the preset time, the thumbnails of the fast images can be displayed in this interface; if the image is viewed outside the preset time, the thumbnails of the captured images can be displayed in this interface. The user does not need to wait for the generation of the captured image and can achieve the viewing and sharing of the image.

[0049] It should be noted that within the preset time, if the user triggers image viewing, the corresponding fast image can be displayed; if the user triggers image sharing, the fast image can be sent to the electronic devices of other users.

[0050] Next, the software structure of the electronic device provided in the embodiments of the present application will be explained. The electronic device can implement the image - processing method through this software architecture.

[0051] Figure 3The following is a schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application. Please refer to Figure 3 , the software architecture of the electronic device includes: a hardware abstraction module 310, a camera application module 320, a camera algorithm module 330, a storage module 340, a media library module 350, and a third-party application module 360.

[0052] Among them, the hardware abstraction module 310 can be set in the hardware abstraction layer of the electronic device. The hardware abstraction layer can implement detail abstraction and provide a unified interface for the application layer. In the embodiments of the present application, the hardware abstraction module 310 can make decisions. For example, it can take pictures according to the issued photographing instruction and can obtain various types of images, such as: preview frame images, captured frame images, etc. The hardware abstraction module 310 can perform data interaction with the camera application module 320. The camera application module 320 can send a photographing instruction to the hardware abstraction module 310, and the hardware abstraction module 310 can return various images obtained by photographing to the camera application module 320.

[0053] The camera application module 320 can be set in the application layer of the electronic device. The application layer can be the layer directly interacting with the user and contains various application programs, such as games, social media, office software, etc. These application programs usually directly face the user and provide specific functions and services. In the embodiments of the present application, the camera application module 320 can be any kind of photographing application, which can be an application program for taking pictures or an application program with a photographing function. For example: the system photographing application of the electronic device, or other photographing applications downloaded additionally. The camera application module 320 can perform data interaction with multiple other modules. For example: it can perform data interaction with the hardware abstraction module 310, the camera algorithm module 330, the storage module 340, and the media library module 350.

[0054] The camera algorithm module 330 can be set in the application layer or the middleware layer, without specific limitations here, and can be set according to actual requirements. If the camera algorithm module 330 is an independent service or module for processing relevant algorithms and making decisions, then it can be set in the middleware layer. If the camera algorithm module 330 is part of the camera application module 320 and is directly controlled by the user or affects the user experience, then it can also be set in the application layer. In the embodiment of this application, the camera algorithm module 330 can be set in the application layer. The camera algorithm module 330 can be used to automatically adjust exposure parameters to ensure proper exposure of the captured photos. Additionally, this module can also process multiple captured frame images to obtain the final captured image. The camera algorithm module 330 can interact with the camera application module 320. The camera application module 320 can send various images to the camera algorithm module 330, such as captured frame images, etc. The hardware abstraction module 310 can return the processed captured image to the camera application module 320.

[0055] The storage module 340 can be a module set in the memory of the electronic device. Multiple storage areas can be pre-divided in the storage module 340, which can be used to store generated images. For example, quick images and captured images can both be stored in the storage module 340. Among them, the quick images are generated based on the preview frame images, and the captured images are generated based on the captured frame images. For different images, they can be stored in different storage areas of the storage module 340. The storage module 340 can interact with the camera application module 320 to achieve data storage. The storage module 340 can also interact with the third-party application module 360 to achieve data reading.

[0056] The media library module 350 can be the media browser of the electronic device. Users can obtain the situation of various media information stored in the electronic device through the media library module. Among them, the content in the interfaces for users to view and share images can be provided by the media library module 350. The media library module 350 can record the storage location of each image and the image identifier of the image. The media library module 350 can interact with the third-party application module 360. The media library module 350 can send the image identifier of the image to the third-party application module 360, so that the third-party application module 360 can access the storage module 340 according to the image identifier for data reading.

[0057] The third - party application module 360 can be set in the application layer of the electronic device and can be other application programs, such as social applications, chat applications, image - processing applications, etc., without specific limitations here. The third - party application module 360 can interact with the media library module 350. The third - party application module 360 can obtain an image identifier and can access the storage module 340 to read data according to the image identifier, so as to obtain the corresponding image and can perform operations such as viewing and sharing the image.

[0058] Based on the above software architecture of the electronic device, the image - processing method provided in the embodiments of the present application can be implemented. Now, one feasible implementation process of the image - processing method provided in the embodiments of the present application will be explained.

[0059] Figure 4 For the flow chart of the image - processing method provided in the embodiments of the present application, please refer to Figure 4 In one aspect of the embodiments of the present application, an image - processing method is provided. The method includes:

[0060] S410: Detect the shooting operation in the camera application.

[0061] Optionally, the execution subject of the method can be the above - mentioned electronic device. Among them, it can be determined whether there is a shooting operation in the camera application by detecting whether the shutter or touch key in the camera application is triggered.

[0062] Exemplarily, when the user is using the camera application, if the shooting control is clicked, a shooting operation of the camera application can be generated, and this shooting operation can be detected by the electronic device.

[0063] It should be noted that during the operation of the camera application on the electronic device, the preview - frame image can be continuously obtained, and after the shooting operation is triggered, the shooting - frame image can be obtained.

[0064] In one embodiment, the above - mentioned implementation process can be implemented by Figure 3 the camera application module 320 therein.

[0065] S420: Obtain a quick image corresponding to the shooting operation.

[0066] Among them, the image quality of the quick image is lower than that of the shooting image corresponding to the shooting operation.

[0067] Among them, after the shooting operation is generated, multiple shooting - frame images can be obtained. The electronic device can perform image processing on the multiple shooting - frame images. For example, processing methods such as image fusion and image enhancement can be used. After corresponding image processing, the shooting image can be obtained. The time period from the generation of the shooting operation to the generation of the shooting image can be the duration required to generate the shooting image.

[0068] Optionally, the quick image is generated based on the preview frame image of the shooting operation. Before taking a photo using the camera app, a photo preview can be performed, and the image generated during this process is the preview frame image. There can be multiple preview frame images, and the quick image can be generated based on one or more of them.

[0069] It should be noted that the quick image (Quick picture) refers to an image that can be obtained more quickly. For example, the quick image can be obtained before obtaining the captured image.

[0070] Example: It takes 5 seconds or more to generate the captured image, and 0.2 seconds to generate the quick image.

[0071] It should be noted that the captured image is a relatively clear image obtained after image processing, and the quick image is an image obtained after simple processing. The resolution of the captured image is higher than that of the quick image.

[0072] The thumbnail of the quick image can be an image obtained by scaling the quick image according to a certain preset ratio. For example, in the image preview interface, the user needs to view multiple images, and each image is displayed in the form of a thumbnail. The sizes of these images are scaled to a unified standard for easy viewing by the user.

[0073] S430: In response to detecting an image viewing operation, display the quick image.

[0074] It should be noted that the image viewing operation can be an operation performed within a preset duration. The preset duration can be, for example, 5 seconds, or it can be set according to actual needs.

[0075] It should be noted that the image viewing operation can be an operation generated by the user through the target application.

[0076] Optionally, the target application can be an application different from the camera app. For example, it can be a social application, an image processing application, etc. There is no specific limitation here. The target application can view or share the image. Viewing the image means displaying the image, and sharing the image means sending the image to other electronic devices or other accounts of the same application. There is no specific limitation here.

[0077] Among them, the image viewing operation can be an operation performed by the user by clicking on the image viewing control, or an operation automatically performed by the electronic device according to the preset configuration, etc. There is no specific limitation here.

[0078] Within a preset duration after a shooting operation, if an image viewing operation of a target application is triggered, a thumbnail of a quick image corresponding to the shooting operation can be displayed; if the image viewing operation of the target application is not triggered, there is no need to display the thumbnail of the quick image corresponding to the shooting operation.

[0079] In the image processing method provided by the embodiments of the present application, it is possible to detect a shooting operation of a camera application; obtain a quick image corresponding to the shooting operation, and the image quality of the quick image is lower than the image quality of the shooting image corresponding to the shooting operation; in response to detecting an image viewing operation, display the quick image. Since the generation time of the quick image is shorter than the generation time of the shooting image, during the process of image viewing, the image viewing can be realized by displaying the quick image, thereby ensuring that the user can view the captured image within a preset duration after the shooting operation, and improving the timeliness of image viewing.

[0080] Next, another feasible implementation process in the image processing method provided by the embodiments of the present application will be explained.

[0081] Figure 5 For another process schematic diagram of the image processing method provided by the embodiments of the present application, please refer to Figure 5 , after displaying the thumbnail of the quick image corresponding to the shooting operation, the method further includes:

[0082] S510: In response to a sharing operation on the quick image, share the quick image.

[0083] It should be noted that in the interface for displaying the quick image, there may be included at least one quick image or a thumbnail of the quick image, and a sharing operation of the user on the quick image or the thumbnail of the quick image can be responded to, so as to share the quick image.

[0084] For example: The user can select Figure 2 the thumbnail of the quick image displayed in the right sub - figure and perform a sharing operation, so as to share the quick image with other users.

[0085] In one embodiment, during the process of sharing the quick image, a third - party application module can send a sharing request to the media library module, and the media library module can send the image identifier corresponding to the quick image to the third - party application module. After that, the third - party application module can read the image from the corresponding position in the storage module according to the image identifier to obtain the quick image, and can send the quick image to other users to realize image sharing.

[0086] In the image processing method provided by the embodiments of the present application, a fast image can be shared in response to a sharing operation for the fast image. Since the generation time of the fast image is shorter than that of the captured image, during the process of image sharing, image sharing can be achieved by sending the fast image, which can improve the timeliness of image sharing.

[0087] During the process of image sharing, the corresponding sharing method can be determined according to the application program that triggers the sharing operation.

[0088] For example: A whitelist can be set. Applications in the whitelist can use the fast image for image sharing; applications not in the whitelist cannot use the fast image for image sharing.

[0089] In one embodiment, in response to detecting an image viewing operation, the fast image is displayed, including: in response to an image viewing operation in the target application, where the target application is different from the capture application; in the case where the target application is an application in the preset list, the fast image is displayed.

[0090] Among them, the above preset list can be a whitelist, and it can be determined according to the signature of the target application. If the signature of the target application is the signature in the whitelist, it can be determined that the target application is a whitelist application, and then after triggering the image viewing operation of the target application, a thumbnail of the fast image corresponding to the capture operation can be displayed.

[0091] It should be noted that in addition to setting the whitelist during the viewing process, the whitelist can also be set during the image sharing process. Applications in the whitelist can share images through the fast image; applications not in the whitelist cannot share images through the fast image.

[0092] Next, one feasible implementation process of the whitelist determination provided in the embodiments of the present application will be explained.

[0093] Figure 6 For the schematic flowchart of the whitelist determination provided in the embodiments of the present application, please refer to Figure 6 , and this process can be determined by the above media library module.

[0094] After receiving a request sent by the target application (the target application is equivalent to the third-party application module shown in Figure 3 ), the media library module can obtain the signature of the target application. If the signature of the target application is in the above preset list, an image identifier of the fast image can be returned to the target application, and the target application can read data from the corresponding location in the storage module through this image identifier, so as to obtain the fast image, and then image viewing or image sharing can be achieved.

[0095] If the signature of the target application is not in the above preset list, the image identifier of the fast image will not be returned to the target application, and the target application will not be able to obtain the fast image, so it will not be able to view or share the image, and it needs to wait for the generated captured image.

[0096] In the image processing method provided by the embodiments of the present application, when the target application is an application in the preset list, if an image viewing operation of the target application is triggered, a thumbnail of the fast image corresponding to the shooting operation is displayed. Among them, by setting the preset list, the use of fast images for viewing or sharing by some applications can be restricted, so as to prevent applications that are not suitable for fast image viewing or sharing from viewing or sharing images through this function.

[0097] Next, one feasible implementation process of generating the fast image provided in the embodiments of the present application will be explained.

[0098] Figure 7 For the flowchart of generating the fast image provided in the embodiments of the present application, please refer to Figure 7 , obtaining the fast image corresponding to the shooting operation includes:

[0099] S710: Obtain the preview frame sequence obtained by the shooting operation.

[0100] Among them, the preview frame sequence includes multiple preview frame images.

[0101] It should be noted that the preview frame sequence can be a sequence composed of multiple preview frame images obtained by the shooting application during the shooting preview process. This sequence includes multiple preview frame images. Each preview frame image can be an image before shooting or before and after shooting, and each preview frame image can record the corresponding timestamp, that is, the generation time of the preview frame.

[0102] S720: Generate a fast image according to one of the preview frame images in the preview frame sequence.

[0103] In one embodiment, a fast image can be generated according to one of the preview frame images in the preview frame sequence. For example: a fast image can be generated according to the last preview frame image in the preview frame sequence.

[0104] It should be noted that in the process of determining the fast image, a preview frame image can be randomly selected from the preview frame sequence to generate the fast image, or, according to the preset screening rules, a preview frame image that meets the conditions can be found from the preview frame sequence to generate the fast image.

[0105] In the image processing method provided by the embodiments of the present application, a preview frame sequence obtained from a shooting operation is acquired; a fast image is generated according to one of the preview frame images in the preview frame sequence. Among them, the fast image can be obtained more quickly through the preview frame images in the preview frame sequence, improving the generation efficiency of the fast image.

[0106] In one embodiment, generating a fast image according to one of the preview frame images in the preview frame sequence includes: using one of the preview frame images as the fast image; or generating a fast image according to one of the preview frame images and identification information.

[0107] It should be noted that during the process of generating the fast image, one of the preview frame images can be directly used as the fast image, or a fast image can be generated after fast processing. Among them, the fast processing can be, for example, adding identification information to the preview frame image.

[0108] The identification information includes at least one of the following: watermark, text, and icon.

[0109] The watermark can be, for example, the watermark of the camera application, the watermark of the electronic device model, the watermark of the user identity information, the watermark of the shooting time, or the watermark of the shooting location, etc. There is no specific limitation here, and one or more of them can be selected according to actual needs as the watermark.

[0110] The text and icon can be tags set by the user, for example: preset text information or preset icons. There is no specific content limitation here, and corresponding settings can be made according to the actual setting needs of the user.

[0111] It should be noted that after superimposing any one or more of the above three identifications on the preview frame image, the fast image can be obtained.

[0112] In the image processing method provided by the embodiments of the present application, one of the preview frame images can be used as the fast image; or a fast image can be generated according to one of the preview frame images and identification information. Among them, by directly using the preview frame image as the fast image or the way of quickly superimposing identification information, the fast image can be generated more quickly, improving the efficiency of generating the fast image.

[0113] In one embodiment, one of the preview frame images is the target preview frame image in the preview frame sequence, and the target preview frame image is the preview frame image whose time difference between the generation time of the preview frame and the generation time of the shooting frame of the shooting operation is less than or equal to the target time difference.

[0114] Among them, the generation time of the preview frame is the time when the target preview frame image is generated. As previously explained, each preview frame image can record a timestamp, and the timestamp represents the generation time of the preview frame image.

[0115] After the shooting operation is triggered, the corresponding timestamp can be recorded. Correspondingly, the generated shooting frame image can also record the corresponding timestamp. The timestamp recorded by the generated shooting frame image can be the generation time of the shooting frame. The time difference between the generation time of the preview frame of each preview frame image and the generation time of the shooting frame of the shooting operation can be calculated. Furthermore, the preview frame image with a time difference less than or equal to the target time difference can be used as the above-mentioned target preview frame image.

[0116] Among them, if there are multiple preview frame images with a time difference less than or equal to the target duration, the preview frame image with the smallest time difference can be used as the target preview frame image.

[0117] After determining the target preview frame image, the target preview frame image can be used as the fast image, or the fast image can be obtained after superimposing identification information on the target preview frame image. There is no specific limitation here.

[0118] In the image processing method provided by the embodiments of the present application, one of the preview frame images is the target preview frame image in the preview frame sequence. The target preview frame image is a preview frame image with a time difference between the generation time of the preview frame and the generation time of the shooting frame of the shooting operation less than or equal to the target time difference. By determining the target preview frame image, the preview frame image closest to the shooting image can be found from the preview frame sequence, so that the fast image can be obtained according to the preview frame image, improving the similarity between the fast image and the shooting image, and enabling the replacement between the fast image and the shooting image to be realized without the user feeling it.

[0119] In one embodiment, generating a fast image according to one of the preview frame images in the preview frame sequence includes: processing one of the preview frame images by using a target processing method matching the device performance of the electronic device to generate a fast image.

[0120] It should be noted that different target processing methods can be set according to the device performance of the electronic device, that is, fast images can be obtained in different ways.

[0121] Among them, the device performance of the electronic device is determined according to the image processing speed of the electronic device and / or the device running speed. Different device performances correspond to different processing methods. The device performance of the electronic device can be determined according to the model of the electronic device, the type of the central processing unit of the electronic device, or the type of the graphics processing unit of the electronic device. There is no specific limitation here.

[0122] Exemplarily, the device performance of an electronic device can be determined by classifying the hardware types of the device to respectively determine the types of high-performance processors and low-performance processors; or, the electronic device can also be subjected to a performance test to determine the processing speed, etc. of the electronic device, and a corresponding performance score can be determined, and the device performance of the electronic device can be determined according to the level of the performance score.

[0123] For an electronic device with low device performance, the Figure 7 shown implementation process can be used to generate a fast image; for an electronic device with high device performance, a more complex processing process can be used to generate a fast image.

[0124] The following explains two different ways of generating fast images provided in the embodiments of the present application, and the two ways respectively correspond to electronic devices with different device performances.

[0125] Figure 8 Another schematic flowchart of generating a fast image provided in the embodiments of the present application is shown in Figure 8 , and the method further includes:

[0126] When the electronic device is a low-performance device, S810: Generate a fast image according to the preview frame image.

[0127] When the electronic device is a high-performance device, S820: Generate a fast image according to the captured frame image.

[0128] For the device performance, the device performance of an electronic device can be recorded by a scoring method, and a corresponding preset performance threshold can be set. When the device performance score of the electronic device is lower than the preset performance threshold, the electronic device can be determined to be a low-performance device. When the device performance score of the electronic device is higher than or equal to the preset performance threshold, the electronic device can be determined to be a high-performance device.

[0129] Among them, the implementation process of the above step S810 is similar to the implementation processes of the foregoing steps S710 - S720, and will not be elaborated here.

[0130] For the above step S820, the RAW domain lightweight processing method can be adopted to generate a fast image according to the captured frame image.

[0131] It should be noted that Figure 8 the method shown in is only one implementation method. In the actual implementation process, in addition to being able to select the corresponding fast image generation method according to the device performance, different methods can also be adopted to generate fast images according to the battery power of the electronic device, the current memory occupancy of the processor of the electronic device, etc.

[0132] For example: when the battery power of the electronic device is greater than the battery power threshold, the fast image is generated in the manner of step S820; when the battery power of the electronic device is less than or equal to the battery power threshold, the fast image is generated in the manner of step S810. When the current memory occupancy of the processor of the electronic device is greater than the preset ratio, the fast image is generated in the manner of step S810; when the current memory occupancy of the processor of the electronic device is less than or equal to the preset ratio, the fast image is generated in the manner of step S20.

[0133] It should be noted that the quality of the fast image obtained by using step S810 is lower than the quality of the fast image obtained by using step S820.

[0134] Among them, the quality of the fast image can be manifested in the resolution or illumination of the image.

[0135] In the image processing method provided by the embodiments of the present application, a target processing method matching the device performance of the electronic device is adopted to process one of the preview frame images to generate a fast image. By adopting different fast image generation methods according to different device performances of the electronic device, the quality of the fast image can be improved while ensuring fast image generation.

[0136] In the actual implementation process, the fast image or the captured image can be selected for display according to actual needs.

[0137] Next, another feasible implementation manner in the image processing method provided by the embodiments of the present application will be explained.

[0138] In one embodiment, in response to detecting an image viewing operation, displaying a fast image includes:

[0139] S910: During the process of performing image processing on the captured frame image of the shooting operation, if an image viewing operation is detected, the fast image is displayed.

[0140] Among them, the captured frame image is used to obtain a captured image after image processing.

[0141] It should be noted that the electronic device can obtain multiple captured frame images after performing the shooting operation, and can perform image processing on the captured frame images. If an image viewing operation is detected, the fast image can be displayed; if no image viewing operation is detected, the fast image does not need to be displayed.

[0142] S920: After completing the image processing of the captured frame image, if an image viewing operation is detected, the captured image is displayed.

[0143] It should be noted that after the shooting operation, the processing of the captured frame image can be performed. After the image processing of the captured frame image is completed, a captured image can be generated. In this case, if an image viewing operation of the target application is triggered, the captured image or a thumbnail of the captured image can be displayed.

[0144] Correspondingly, during the process of image sharing, if a sharing operation for the captured image is triggered, the captured image will be shared.

[0145] Optionally, different thumbnails of images can be displayed according to different times when the image viewing operation of the target application is triggered. When the captured image has not been generated, a thumbnail of the quick image can be displayed; after the captured image is generated, a thumbnail of the captured image can be displayed.

[0146] Among them, the captured image can be an image obtained by performing RAW domain processing on the captured frame image and can be obtained after operations such as noise reduction and high-definition synthesis. The thumbnail of the captured image can be an image obtained by scaling the captured image according to a certain preset ratio. For example, in the image preview interface, the user needs to view multiple images, and each image is displayed in the form of a thumbnail, and the sizes of these images are scaled to a unified standard for the convenience of the user to view.

[0147] In the image processing method provided by the embodiments of the present application, after the image processing of the captured frame image is completed, if an image viewing operation is detected, the captured image can be displayed. Among them, in the case of obtaining the captured image, the captured image can be displayed, thereby ensuring the resolution of the displayed image, and the user can achieve a seamless replacement between the quick image and the captured image during use, improving the efficiency and effect of image viewing and sharing.

[0148] It should be noted that both the captured image and the quick image can be stored in the memory of the electronic device, and these two types of images can be stored in different locations. Now, one feasible implementation manner of the image storage location provided in the embodiments of the present application will be explained.

[0149] Figure 10 For the schematic diagram of the image storage location provided in the embodiments of the present application, please refer to Figure 10 , the captured image and the quick image are stored in different storage areas of the electronic device.

[0150] It should be noted that the quick image can be stored in the first storage area, and a hidden identifier can be added to the quick image to prevent the quick image from being read or discovered by other applications; the captured image can be stored in the second storage area, and the second storage area can be, for example, the storage area under the album directory of the electronic device.

[0151] Among them, the first storage area and the second storage area are different storage areas.

[0152] In the image processing method provided by the embodiments of the present application, the captured image and the fast image can be stored in different storage areas of the electronic device. Storing the fast image and the captured image in different locations can avoid the problem of picture damage errors caused by image reading and writing while the captured image is being refreshed. In addition, setting a hidden identifier for the storage location of the fast image can also prevent the fast image from being read or discovered by other applications, thereby improving the security of image storage.

[0153] Figure 11 For another flowchart of image viewing provided in the embodiments of the present application, please refer to Figure 11 This method further includes:

[0154] S1110: After completing the image processing of the captured frame image, delete the fast image.

[0155] It should be noted that in the actual implementation process, it is possible to determine whether to execute the above step S1110 by determining whether the captured image is generated, or it is also possible to determine whether to execute the above step S1110 by determining whether an image viewing operation of the target application is triggered within a preset time period after the shooting operation.

[0156] It should be noted that if it is within the preset time period, it can be determined that the captured image has not been generated; if it is outside the preset time period, it can be determined that the captured image has been generated.

[0157] In the image processing method provided by the embodiments of the present application, the fast image can be deleted after completing the image processing of the captured frame image. Among them, after the captured image is generated, if the fast image is not needed to replace the captured image for viewing or sharing, the fast image can be deleted to save storage space.

[0158] In one embodiment, after the captured image is generated, the captured image can also be uploaded to the cloud album.

[0159] It should be noted that the captured images obtained by shooting can be stored in the cloud album. Users can store and back up the captured images through the cloud album. Since there is no requirement for timeliness in the cloud album, it is not necessary to store the fast image in the cloud album. After the captured image is generated, the captured image can be uploaded to the cloud album for storage.

[0160] Next, the implementation logic of the image processing method provided in the embodiments of the present application based on the above software architecture will be explained.

[0161] Figure 12 For a logical schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application, please refer toFigure 12 , this process may include:

[0162] S1210: The camera application module sends a photo preview and a photo-taking request to the hardware abstraction module.

[0163] It should be noted that the camera application module can initiate a request to the hardware abstraction module through the standard Camera2 API.

[0164] Among them, the hardware abstraction module can obtain a preview frame image through photo preview, and the hardware abstraction module can obtain a captured frame image according to the photo-taking request.

[0165] S1220: The hardware abstraction module returns the preview frame image and the captured frame image to the camera application module.

[0166] Among them, the preview frame image can be in YUV format, the resolution of the preview frame image ≤ 1080p, and the frame rate of the video stream composed of the preview frame images ≥ 30fps; the photo-taking frame image can be in RAW format and can output at full resolution.

[0167] S1230: The camera application module generates a quick image based on the preview frame image and stores the quick image in the multimedia database.

[0168] Among them, the multimedia database can include Figure 3 a storage module and a media library module.

[0169] The quick image can be generated based on the target preview frame image in the preview frame sequence. The target preview frame image can be used as the quick image, or the quick image can be obtained after superimposing identification information on the target preview frame image.

[0170] The quick image can be stored at a pre-configured address and can set a hidden flag to prevent it from being discovered by other applications.

[0171] S1240: The camera application module sends the captured frame image to the camera algorithm module for image processing.

[0172] Among them, the camera algorithm module can perform RAW domain processing, noise reduction processing, high-definition synthesis processing, etc., and obtain a captured image.

[0173] S1250: The camera application module notifies the multimedia database to replace the quick image with the captured image.

[0174] Among them, the replacement of the image can be achieved by storing the captured image and deleting the quick image, and the two images are stored in different locations.

[0175] S1260: The third-party application module views and displays the quick image within a preset time.

[0176] Optionally, during the viewing process, a new field can be added to the multimedia database to fill in the URI (Uniform Resource Identifier) of the quick image. When a third-party application attempts to obtain the FD (file descriptor) of the quick image, the multimedia database obtains the FD through the application interface and simultaneously passes in the signature of the target application for whitelist verification.

[0177] S1270: The third-party application module views outside the preset time, and the captured image is displayed.

[0178] In the image processing method provided by the embodiments of the present application, a camera application module can send a photo preview and a photo request to a hardware abstraction module; the hardware abstraction module returns a preview frame image and a captured frame image to the camera application module; the camera application module generates a quick image based on the preview frame image and stores the quick image in the multimedia database; the camera application module sends the captured frame image to a camera algorithm module for image processing; the camera application module notifies the multimedia database to replace the quick image with the captured image; the third-party application module views within the preset time, and the quick image is displayed. The third-party application module views outside the preset time, and the captured image is displayed. Since the generation time of the quick image is shorter than the generation time of the captured image, during the image viewing process, the image viewing can be realized by displaying the thumbnail of the quick image, so that the user can view the captured image within the preset duration after the shooting operation, improving the timeliness of image viewing.

[0179] Next, the interaction relationship between the various modules in the software architecture of the electronic device provided in the embodiments of the present application will be explained.

[0180] Figure 13 For the interaction schematic diagram of the software architecture of the electronic device provided in the embodiments of the present application, please refer to Figure 13 , the hardware abstraction module 310 can interact with the camera application module 320. The camera application module 320 can send a photo-taking instruction to the hardware abstraction module 310, and the hardware abstraction module 310 can return various images obtained by taking a photo to the camera application module 320, such as: a captured frame image, a preview frame image, etc.

[0181] The camera application module 320 can interact with multiple other modules for data. For example, it can interact with the hardware abstraction module 310, the camera algorithm module 330, the storage module 340, and the media library module 350 for data. Among them, the camera application module 320 can interact with the media library module 350 to establish and delete identification information, and can enable the permission to obtain the file descriptor of a third-party application. The camera application module 320 can interact with the storage module 340 to store fast images and captured images.

[0182] The camera algorithm module 330 can interact with the camera application module 320. The camera application module 320 can send various images to the camera algorithm module 330, such as captured frame images, etc. The hardware abstraction module 310 can return the captured image obtained after processing to the camera application module 320.

[0183] The storage module 340 can also interact with the third-party application module 360 to achieve data reading.

[0184] The media library module 350 can interact with the third-party application module 360. The media library module 350 can send the image identifier of the image to the third-party application module 360, so that the third-party application module 360 can access the storage module 340 to read data according to the image identifier.

[0185] It should be noted that in the image processing method provided in the embodiments of the present application, after the photographing trigger, by precisely matching the timestamps of the hardware layer photographing frame and the preview frame (error ≤ 16 ms), the preview frame image that should have been discarded can be converted into an available image resource. By using dynamic watermark overlay and lightweight processing, a fast image that can be instantly shared is generated. Obtaining the fast image from the preview frame image can realize the reuse of the preview frame image, breaking through the time that the traditional photographing process must wait for the generated captured image. And because the generation time of the fast image is short (generated within 400 ms), it can ensure that there is corresponding viewable content when the user views the image.

[0186] During the process of replacing the fast image and the captured image, the image identifier of the image can be replaced. For example, if an image viewing operation is triggered within a preset time, the fast image can be read according to the first image identifier. After the captured image is generated, the first image identifier can be replaced with the second image identifier; if an image viewing operation is triggered outside the preset time, the captured image can be read according to the second image identifier.

[0187] Among them, the first image identifier can be the identifier corresponding to the fast image, and the second image identifier can be the identifier corresponding to the captured image. By replacing the image identifier and storing the two images in different storage locations, the image replacement can be realized without the user's awareness.

[0188] In one embodiment, in the scenario of e-commerce live streaming, the host can take a close-up of the product. By using the image processing method provided in the embodiments of the present application, a fast image can be displayed to all audiences in a short time. Moreover, a corresponding floating layer can be set on the fast image, such as content like discount countdown. After the captured image is generated, the fast image can be replaced, and the above floating layer can be hidden.

[0189] In one embodiment, in the scenario of traffic violation capture, a fast image with a watermark can be generated after taking a photo and shared with various government affairs applications. Additionally, authenticity verification can be performed through the watermark and corresponding image parameters to ensure the authenticity of the image, so that users can timely learn about their own violation behaviors, etc.

[0190] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily need to be executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages does not necessarily need to be sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0191] Based on the foregoing embodiments, the embodiments of the present application provide an image processing device. The device includes each module included and each unit included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits. During the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0192] Figure 14 For the structural schematic diagram of the image processing device provided in the embodiments of the present application, please refer to Figure 14 On the other hand, the embodiments of the present application further provide an image processing device applied to an electronic device. The device includes: a detection module 1410 and a processing module 1420;

[0193] The detection module 1410 is used to detect the shooting operation in the camera application;

[0194] The processing module 1420 is used to obtain a fast image corresponding to the shooting operation, and the image quality of the fast image is lower than the image quality of the shooting image corresponding to the shooting operation;

[0195] The processing module 1420 is further configured to display a quick image in response to detecting an image viewing operation.

[0196] In one embodiment, the processing module 1420 is specifically configured to display a quick image if an image viewing operation is detected during the process of performing image processing on the captured frame image of a shooting operation, where the captured frame image is used to obtain a captured image after image processing.

[0197] In one embodiment, the processing module 1420 is further configured to display the captured image if an image viewing operation is detected after completing the image processing on the captured frame image.

[0198] In one embodiment, the processing module 1420 is specifically configured to respond to an image viewing operation in a target application, where the target application is different from the shooting application; and display a quick image if the target application is an application in a preset list.

[0199] In one embodiment, the processing module 1420 is further configured to obtain a preview frame sequence obtained from a shooting operation, where the preview frame sequence includes multiple preview frame images; and generate a quick image based on one of the preview frame images in the preview frame sequence.

[0200] In one embodiment, the processing module 1420 is specifically configured to process one of the preview frame images by using a target processing method that matches the device performance of the electronic device, where the device performance of the electronic device is determined according to the image processing speed of the electronic device and / or the device running speed, and different device performances correspond to different processing methods.

[0201] In one embodiment, the processing module 1420 specifically uses one of the preview frame images as the quick image; or generates a quick image based on one of the preview frame images and identification information, where the identification information includes at least one of the following: watermark, text, and icon.

[0202] In one embodiment, in the device, one of the preview frame images is a target preview frame image in the preview frame sequence, and the target preview frame image is a preview frame image whose time difference between the generation time of the preview frame and the generation time of the shooting frame of the shooting operation is less than or equal to a target time difference.

[0203] In one embodiment, in the device, the captured image and the quick image are stored in different storage areas of the electronic device.

[0204] In one embodiment, the processing module 1420 is further configured to delete the quick image after completing the image processing on the captured frame image.

[0205] In one embodiment, the processing module 1420 is further configured to share the fast image in response to a sharing operation for the fast image.

[0206] In the image processing apparatus provided in the embodiments of the present application, it is possible to detect a shooting operation of a camera application; obtain a fast image corresponding to the shooting operation, where the image quality of the fast image is lower than the image quality of the captured image corresponding to the shooting operation; and display the fast image in response to detecting an image viewing operation. Since the generation time of the fast image is shorter than the generation time of the captured image, during the process of viewing an image, the image viewing can be realized by displaying the fast image, thereby ensuring that the user can view the captured image within a preset time period after the shooting operation, and improving the timeliness of image viewing.

[0207] The description of the above device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects to the method embodiments. For the technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0208] It should be noted that in the embodiments of the present application Figure 14 The division of the modules in the image processing apparatus shown is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present application, each functional unit may be integrated in one processing unit, may exist alone physically, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0209] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the related technology, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods of the embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc that can store program codes. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0210] Figure 15 For the hardware structure diagram of the electronic device provided in the embodiments of the present application, please refer to Figure 15 , The embodiments of the present application provide an electronic device, and its internal structure diagram may be asFigure 15 As shown in the figure. The electronic device includes a processor 1520, a memory, and a network interface 1540 connected via a system bus 1510. Among them, the processor 1520 of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium 1531 and an internal memory 1532. The non-volatile storage medium 1531 stores an operating system, a computer program, and a database. The internal memory 1532 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 1531. The database of the electronic device is used to store data. The network interface 1540 of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 1520, the above method is implemented.

[0211] In the electronic device provided by the embodiments of the present application, the corresponding method can be executed to implement detecting a shooting operation of a camera application; obtaining a fast image corresponding to the shooting operation, where the image quality of the fast image is lower than the image quality of the shooting image corresponding to the shooting operation; and in response to detecting an image viewing operation, displaying the fast image. Since the generation time of the fast image is shorter than the generation time of the shooting image, during the process of viewing an image, the image viewing can be achieved by displaying the fast image, and thus it can be ensured that the user can view the captured image within a preset time period after the shooting operation, improving the timeliness of image viewing.

[0212] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method provided in the above embodiments are implemented.

[0213] In the computer-readable storage medium provided by the embodiments of the present application, the corresponding method can be executed to implement detecting a shooting operation of a camera application; obtaining a fast image corresponding to the shooting operation, where the image quality of the fast image is lower than the image quality of the shooting image corresponding to the shooting operation; and in response to detecting an image viewing operation, displaying the fast image. Since the generation time of the fast image is shorter than the generation time of the shooting image, during the process of viewing an image, the image viewing can be achieved by displaying the fast image, and thus it can be ensured that the user can view the captured image within a preset time period after the shooting operation, improving the timeliness of image viewing.

[0214] The embodiments of the present application provide a computer program product containing instructions, and when it runs on a computer, it causes the computer to execute the steps in the method provided in the above method embodiments.

[0215] In the computer program product provided by the embodiments of the present application, it is possible to detect a shooting operation of a camera application; obtain a fast image corresponding to the shooting operation, where the image quality of the fast image is lower than the image quality of the shooting image corresponding to the shooting operation; and in response to detecting an image viewing operation, display the fast image. Since the generation time of the fast image is shorter than the generation time of the shooting image, during the process of image viewing, the image viewing can be achieved by displaying the fast image, thereby ensuring that the user can view the captured image within a preset time period after the shooting operation, and improving the timeliness of image viewing.

[0216] Those skilled in the art can understand that Figure 15 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0217] In one embodiment, the image processing device provided by the present application can be implemented in the form of a computer program, and the computer program can run on a computer device as shown in Figure 15 The memory of the computer device may store each program module that constitutes the above device. The computer program constituted by each program module enables the processor to execute the steps in the methods of the various embodiments of the present application described in this specification.

[0218] It should be pointed out here that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments, and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0219] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" or "in some embodiments" that appear throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitude of the serial numbers of the above processes does not mean the order of execution. The order of execution 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 the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments, and their similarities or similarities can be referred to each other. For the sake of brevity, they will not be elaborated herein.

[0220] As used herein, the term "and / or" is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0221] It should be noted that, as used herein, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising that element.

[0222] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation. For example, multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed with each other can be through some interfaces, and the indirect coupling or communication connection of the devices or modules can be electrical, mechanical or other forms.

[0223] The modules described above as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network elements; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0224] In addition, each functional module in the embodiments of the present application may be all integrated in one processing unit, or each module may be separately taken as one unit, or two or more modules may be integrated in one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0225] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM), magnetic disks, or optical disks and other various media that can store program codes.

[0226] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the related art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the foregoing storage medium includes: removable storage devices, ROM, magnetic disks, or optical disks and other various media that can store program codes.

[0227] The methods disclosed in the several method embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments.

[0228] The features disclosed in the several product embodiments provided by the present application can be arbitrarily combined without conflict to obtain new product embodiments.

[0229] The features disclosed in the several method or device embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0230] As described above, it is only the implementation mode of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the said claims.

Claims

1. An image processing method, characterized in that, Applied to an electronic device, the method includes: Detecting a shooting operation in a camera application; Obtaining a quick image corresponding to the shooting operation, where the image quality of the quick image is lower than the image quality of the shooting image corresponding to the shooting operation; In response to detecting an image viewing operation, displaying the quick image.

2. The method according to claim 1, characterized in that, The step of, in response to detecting an image viewing operation, displaying the quick image includes: During the process of performing image processing on the captured frame image of the shooting operation, if the image viewing operation is detected, displaying the quick image, where the captured frame image is used to obtain the shooting image after image processing.

3. The method according to claim 2, characterized in that, The method further includes: After completing the image processing of the captured frame image, if the image viewing operation is detected, displaying the shooting image.

4. The method according to claim 1, wherein The step of, in response to detecting an image viewing operation, displaying the quick image includes: In response to an image viewing operation in a target application, where the target application is different from the shooting application; When the target application is an application in a preset list, displaying the quick image.

5. The method according to claim 1, characterized in that, The step of obtaining a quick image corresponding to the shooting operation includes: Obtaining a preview frame sequence obtained by the shooting operation, where the preview frame sequence includes multiple preview frame images; Generating the quick image according to one of the preview frame images in the preview frame sequence.

6. The method according to claim 5, characterized in that, The step of generating the quick image according to one of the preview frame images in the preview frame sequence includes: Using a target processing method matching the device performance of the electronic device to process the one preview frame image to generate the quick image, where the device performance of the electronic device is determined according to the image processing speed of the electronic device and / or the device running speed, and different device performances correspond to different processing methods.

7. The method according to claim 5, characterized in that, The step of generating the quick image according to one of the preview frame images in the preview frame sequence includes: Using the one preview frame image as the quick image; or, Generating the quick image according to the one preview frame image and identification information, where the identification information includes at least one of the following: watermark, text, and icon.

8. The method according to claim 5, wherein The one preview frame image is a target preview frame image in the preview frame sequence, and the target preview frame image is a preview frame image whose time difference between the generation time of the preview frame and the generation time of the shooting frame of the shooting operation is less than or equal to a target time difference.

9. The method according to claim 1, characterized in that After displaying the quick image, the method further includes: In response to a sharing operation on the quick image, sharing the quick image.

10. The method according to claim 3, characterized in that, The method further includes: After completing the image processing of the captured frame image, deleting the quick image.

11. An image processing apparatus, characterized in that, Applied to an electronic device, the apparatus includes: a detection module and a processing module; The detection module is configured to detect a shooting operation in a camera application; The processing module is configured to obtain a quick image corresponding to the shooting operation, where the image quality of the quick image is lower than the image quality of the shooting image corresponding to the shooting operation; The processing module is further configured to, in response to detecting an image viewing operation, display the quick image.

12. An electronic device, comprising a memory and a processor, the memory storing a computer program that can run on the processor, characterized in that, When the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.