Image processing method and device, electronic equipment, storage medium and program product
By saving the original image data corresponding to the photo instruction in the mobile phone camera and processing it when the memory is sufficient, the problem of discarding the photo event when the mobile phone is insufficient is solved, and the photo instruction is completed with high accuracy and providing the target image that meets the user's needs.
Patent Information
- Application Number
- CN202311095459.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
AI Technical Summary
In the process of taking photos with a mobile phone camera, when the mobile phone has insufficient memory, the photo event will be discarded, and the photo command will not be able to respond to the photo command, affecting the user experience.
An image processing method is provided, in response to the acquired photo-taking instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, it saves the original image data corresponding to the photo-taking instruction, and when the memory meets the preset conditions, it processes the saved data to obtain a target image.
When the memory does not meet the preset conditions, save the original image data until the memory is sufficient to process it to ensure that the photo instruction can be completed with high accuracy and provide the target image that meets the user's needs.
Smart Images

Figure CN119545202A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular to an image processing method, device, electronic device, storage medium and program product. Background Art
[0002] In the photo-taking process of the related art, after the user clicks the photo-taking button on the mobile phone to input a photo-taking instruction, if the mobile phone memory is low, the photo-taking event is discarded; thus, the mobile phone camera cannot respond to the photo-taking event and cannot provide the image required by the photo-taking instruction. Summary of the invention
[0003] Based on this, it is necessary to provide an image processing method, device, electronic device, storage medium and program product that can complete the task under the photo-taking instruction with high accuracy in response to the above-mentioned technical problems, so as to provide a target image that meets the photo-taking instruction.
[0004] In a first aspect, the present application provides an image processing method. The method comprises:
[0005] In response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, saving the original image data corresponding to the photographing instruction;
[0006] When it is detected that the memory of the image processing terminal meets the preset condition, the stored original image data is processed to obtain the target image of the photographing instruction.
[0007] In one of the embodiments, the method further includes: determining memory information of the image processing terminal in response to the photo taking instruction; and determining whether the memory of the image processing terminal meets the preset condition based on the memory information.
[0008] In one embodiment, the memory information includes the remaining memory space of the image processing terminal, and determining whether the memory of the image processing terminal meets the preset conditions based on the memory information includes: when the remaining memory space is less than the preset memory threshold, determining that the memory of the image processing terminal does not meet the preset conditions; when the remaining memory space is greater than or equal to the preset memory threshold, determining that the memory of the image processing terminal meets the preset conditions.
[0009] In one of the embodiments, in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, saving the original image data corresponding to the photographing instruction includes: in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, determining the image parameters that match the photographing instruction; in the picture corresponding to the photographing instruction, acquiring and saving the original image data that meets the image parameters.
[0010] In one of the embodiments, the memory information includes the number of accumulated photos in the memory of the image processing terminal, and whether the memory of the image processing terminal meets the preset condition is determined based on the memory information, including: when the number of accumulated photos is greater than a preset number threshold, determining that the memory of the image processing terminal does not meet the preset condition; when the number of accumulated photos is less than or equal to the preset number threshold, determining that the memory of the image processing terminal meets the preset condition.
[0011] In one of the embodiments, in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, saving the original image data corresponding to the photographing instruction includes: in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, determining a target image processing algorithm that matches the photographing instruction in a preset image processing algorithm set; determining the frame data required by the target image processing algorithm; and acquiring and saving the original image data that meets the frame data in the current screen where the photographing instruction is located.
[0012] In one of the embodiments, when it is detected that the memory of the image processing terminal meets the preset condition, the saved original image data is processed to obtain the target image of the photo instruction, including: when the number of photo accumulation times is less than or equal to the preset number threshold, detecting the remaining memory space of the image processing terminal; when the remaining memory space is greater than or equal to the preset memory threshold, processing the saved original image data to obtain the target image of the photo instruction.
[0013] In one of the embodiments, the method further includes: in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal meets the preset conditions, using the target image processing algorithm corresponding to the photographing instruction to process the original image data to obtain the target image.
[0014] In a second aspect, the present application also provides an image processing device. The device comprises:
[0015] A saving module, configured to save the original image data corresponding to the photographing instruction in response to the acquired photographing instruction when it is determined that the memory of the image processing terminal does not meet the preset condition;
[0016] The first processing module is used to process the stored original image data to obtain the target image of the photo-taking instruction when it is detected that the memory of the image processing terminal meets the preset condition.
[0017] In a third aspect, the present application further provides an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, save the original image data corresponding to the photographing instruction; when it is detected that the memory of the image processing terminal meets the preset conditions, process the saved original image data to obtain the target image of the photographing instruction.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: in response to an acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet a preset condition, saving the original image data corresponding to the photographing instruction; when it is detected that the memory of the image processing terminal meets the preset condition, processing the saved original image data to obtain a target image of the photographing instruction.
[0019] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, which implements the following steps when executed by a processor: in response to an acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet a preset condition, save the original image data corresponding to the photographing instruction; when it is detected that the memory of the image processing terminal meets the preset condition, process the saved original image data to obtain the target image of the photographing instruction.
[0020] The above-mentioned image processing method, device, electronic device, storage medium and program product, after obtaining the photographing instruction, first determine the memory of the image processing terminal corresponding to the photographing instruction, and save the original image data corresponding to the photographing instruction when it is determined that the memory of the image processing terminal does not meet the preset conditions; in this way, after determining that the memory of the image processing terminal does not meet the preset conditions, the original image data is saved in the image processing terminal, which can facilitate the subsequent call of the original image data to perform the task under the photographing instruction. When it is detected that the memory of the image processing terminal meets the preset conditions, the saved original image data is processed to obtain the target image of the photographing instruction. In this way, when the memory does not meet the preset conditions, the original image data obtained under this photographing instruction is saved, and until the memory of the image processing terminal meets the preset conditions, the saved original image data is read, so that the original image data can be effectively processed in the memory that meets the preset conditions, so as to complete the task under the photographing instruction with high accuracy, and then provide the target image that meets the photographing instruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of an image processing method in the related art;
[0022] Figure 2 A schematic diagram of the implementation principle of an image processing method in one embodiment;
[0023] Figure 3 is another flowchart of an image processing method in the related art;
[0024] Figure 4 A diagram showing an application environment of an image processing method in an embodiment;
[0025] Figure 5 is a schematic flow chart of an image processing method in one embodiment;
[0026] Figure 6 A flowchart of a step of determining whether memory information meets a preset condition in one embodiment;
[0027] Figure 7 Schematic diagram of the implementation process of step 501 in one embodiment;
[0028] Figure 8 is another implementation flow diagram of step 502 in one embodiment;
[0029] Fig. 9 is a schematic flow chart of an image processing method in another embodiment;
[0030] Fig.10 is a schematic flow chart of an image processing method in another embodiment;
[0031] Fig.11 is a structural block diagram of an image processing device in one embodiment;
[0032] Fig.12 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] In one embodiment, in the current process of mobile phone photography, after clicking the camera button, the application (Application, APP) determines whether the mobile phone memory is sufficient at this time. If sufficient, it immediately sends the frame data and corresponding parameters required for this photo shooting, obtains them from the camera hardware abstraction layer, and sends them to the asynchronous partial synchronization (Asynchronous Partial Synchronous, APS) algorithm processing module to process the image. After the processing is completed, it returns to the APP to be sent to the album for display; if the mobile phone memory is insufficient at this time, the photo shooting event will not be responded to. Figure 1 As shown in the steps:
[0035] Step 101, receiving a command to start taking photos.
[0036] Here, the user may click to take a photo.
[0037] Step 102, determining whether the mobile phone memory is sufficient at this time.
[0038] Here, if the mobile phone memory is sufficient, go to step 103, if the mobile phone memory is insufficient, go to step 107.
[0039] Step 103, capturing the required image through the mobile phone camera.
[0040] Step 104: Send and execute a real-time photography task (RTJob).
[0041] Step 105, entering the APS algorithm processing module to perform algorithm post-processing on the original image data.
[0042] Step 106, after the original image data is processed, the obtained image is returned to the APP, so that the APP sends the image to the album for display.
[0043] Step 107, discard the photo taking event.
[0044] During the photo shooting process, the phone processes the photo data, which requires a certain amount of mobile phone memory space to store the original data, the intermediate data during the processing, and the final large image return data. If there is not enough memory space, it will cause memory stampede or task execution failure, so the photo event is discarded when the memory is insufficient.
[0045] exist Figure 1 In the process required for taking photos, the APS algorithm processing module takes the longest time. The APS algorithm processing module needs to call the central processing unit (CPU), graphics processing unit (GPU), neural network processor (NPU), camera image processor (ISP) and other hardware resources to perform multiple operations such as data frame fusion and denoising. The photo is not finished until all algorithms are processed. The normal effect algorithm processing takes about 1 to 2 seconds, so there will inevitably be memory accumulation in the quick shooting scene. Figure 2 As shown, in the first photo 21, the first photo 22, the first photo 23 and the fourth photo 24, each photo has three stages. Taking the first photo as an example, the photo process includes: start capture, add frame and algorithm processing (algo process); among them, the startCapture stage and the add Frame stage take a total of 500 milliseconds (ms), and the algo Process stage takes 2000ms. It can be seen that in the entire process of taking pictures, the algorithm processing in the APS algorithm processing module takes the longest time, which requires 2000ms. In this way, memory accumulation is prone to occur in the quick shot scene.
[0046] In order to solve the problem of snapshot accumulation in memory, the related technology switches the algorithm to a lightweight algorithm to process, sacrificing the final imaging effect to avoid memory accumulation, such as Figure 3 As shown in the steps:
[0047] Step 301, receiving a command to start taking photos.
[0048] Step 302, determining whether the number of accumulated photographs in the memory is greater than N times.
[0049] Here, if the number of accumulated photographs in the memory is greater than N times, go to step 303; if the number of accumulated photographs in the memory is less than N times, go to step 304.
[0050] Step 303: Select an algorithm with poor imaging effect but short time consumption.
[0051] Step 304, select an algorithm that has good imaging effect but takes a long time.
[0052] Step 305, collecting frame data required by this photo-taking algorithm.
[0053] Step 306: Send the original image data that meets the frame data to the APS algorithm processing module for algorithm processing.
[0054] Step 307, after processing the original image data, the image is sent back to the APP, so that the APP sends the image to the album for display.
[0055] In this photo-taking process, when the phone is low on memory, the photo-taking event will be discarded. This means that when the phone's background application or the phone's camera occupies the memory for any reason, the phone's camera will be unable to respond to the photo-taking event, which provides a poor user experience. In addition, in order to reduce memory accumulation in quick-shot scenarios, related technologies sacrifice imaging effects.
[0056] Based on this, the embodiment of the present application provides an image processing method, which first determines the memory of the image processing terminal after obtaining the photo instruction, and saves the original image data corresponding to the photo instruction when it is determined that the memory does not meet the preset conditions; in this way, after determining that the memory of the image processing terminal does not meet the preset conditions, the original image data is saved in the image processing terminal, which can facilitate the subsequent call of the original image data to execute the task under the photo instruction. In this way, when the mobile phone memory is insufficient, the obtained original image data is saved, and when the mobile phone memory is sufficient, the algorithm processing of the photo task is performed, thereby solving the problem that the mobile phone camera cannot take pictures under low memory.
[0057] The image processing method provided in the embodiment of the present application can be applied to Figure 4 In the application environment shown. Among them, the image processing terminal 401 may include a display module and a collection module. After receiving a photo-taking instruction or, first determine whether the memory meets the preset conditions; if the memory does not meet the preset conditions, then the original image data of the current scene is collected by the collection module and saved in the disk of the image processing terminal 104; when it is detected that the memory meets the preset conditions, the saved original image data is read from the disk, so that the original image data is processed to obtain the target image and displayed on the display module. Among them, the image processing terminal 401 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0058] In one embodiment, Figure 5 As shown, an image processing method is provided, which is applied to Figure 5 The image processing terminal in the example is used as an example to illustrate, including the following steps:
[0059] Step 501, in response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, save the original image data corresponding to the photographing instruction.
[0060] The photo command may be a quick shot command or a non-quick shot command, such as a regular photo command or a slow shot command. The photo command may be input by the user by clicking a photo button, or by voice, or by remote control. The image processing terminal corresponding to the photo command may be a terminal to which the application receiving the photo command belongs, or a terminal receiving the photo command. For example, a mobile phone, computer, drone, or camera device with a photo application installed.
[0061] The original image data matched by the photographing instruction is the unprocessed image data acquired by the image processing terminal, and the original image data may be the image data volume and image parameters required to satisfy the photographing instruction.
[0062] Exemplarily, if the photo taking instruction is a non-snapshot instruction, the original image data is data satisfying the image parameters of the non-snapshot instruction, for example, the image parameters may include the original (ROW) image format, image size, image background, image watermark, etc. If the photo taking instruction is a snapshot instruction, the original image data is original image data satisfying the required number of image frames under the snapshot instruction.
[0063] The preset condition is used to determine the memory occupancy of the image processing terminal, and can be set according to the memory space or data processing capacity of the image processing terminal, or can be user-defined. If the memory of the image processing terminal does not meet the preset condition, it means that the memory occupancy rate of the image processing terminal is high, and the current memory is insufficient to immediately execute the photo command; if the memory of the image processing terminal meets the preset condition, it means that the memory occupancy rate of the image processing terminal is low, and the current memory is sufficient to immediately execute the photo command; in this way, when the memory does not meet the preset condition, saving the original image data corresponding to the photo command can facilitate the subsequent calling of the original image data when the memory meets the preset condition to actively respond to the photo command.
[0064] In some possible implementations, after obtaining the photographing instruction, the original image data matching the photographing instruction is obtained. At the same time, it is determined whether the memory of the image processing terminal meets the preset conditions. If the memory of the image processing terminal does not meet the preset conditions, the original image data is saved.
[0065] Step 502: When it is detected that the memory of the image processing terminal meets the preset condition, the stored original image data is processed to obtain the target image of the photographing instruction.
[0066] The fact that the memory satisfies the preset condition indicates that the memory of the image processing terminal is not occupied at the current moment and can be used for image processing. The target image of the photo command, that is, the image output to the album, is displayed on the display interface of the image processing terminal for easy viewing by the user.
[0067] In some possible implementations, after the original image is saved, the memory information of the image processing terminal is detected. For example, the memory information of the image processing terminal may be detected at certain time intervals, or the memory information of the image processing terminal may be detected continuously. Until it is detected that the memory information of the image processing terminal meets the preset conditions, the saved original image data is read, and the original image data is processed using the image processing algorithm required by the photo instruction to obtain the target image, thereby completing the photo task of the photo instruction. For example, the original image data is subjected to filter processing, image format conversion processing, noise reduction processing, etc., to obtain the target image that can be presented to the user.
[0068] In an embodiment of the present application, after obtaining a photographing instruction, the memory of the image processing terminal corresponding to the photographing instruction is first determined, and when it is determined that the memory of the image processing terminal does not meet the preset conditions, the original image data corresponding to the photographing instruction is saved; in this way, the original image data can be easily called later to execute the task under the photographing instruction. When it is detected that the memory of the image processing terminal meets the preset conditions, the saved original image data is processed to obtain the target image of the photographing instruction. In this way, the original image data obtained under this photographing instruction is saved when the memory does not meet the preset conditions, and the saved original image data is read until the memory of the image processing terminal meets the preset conditions, so that the original image data can be effectively processed in the memory that meets the preset conditions, so as to complete the task under the photographing instruction with high accuracy, and then provide the target image that meets the photographing instruction.
[0069] In some possible implementations, before step 501, in order to accurately analyze whether the memory meets the preset conditions, it also includes Figure 6 Steps shown:
[0070] Step 601, in response to the photographing instruction, determining the memory information of the image processing terminal.
[0071] The memory information of the image processing terminal is used to characterize the occupancy of the disk in the image processing terminal; optionally, the memory information may be the remaining amount of memory space or the number of snapshots accumulated in the memory. The determined memory information is different for different types of photo instructions. For example, if the photo instruction is a non-snapshot instruction, the memory information is the remaining amount of memory space in the image processing terminal; if the photo instruction is a snapshot instruction, the current internal information is the number of photos accumulated in the memory of the image processing terminal. The user inputs the photo instruction by clicking on the photo instruction. After receiving the photo instruction, the disk of the image processing terminal is accessed to obtain the memory information of the disk.
[0072] Step 602: Determine whether the memory of the image processing terminal meets the preset condition according to the memory information.
[0073] The preset condition varies with different memory information. For example, if the memory information is the remaining amount of memory space, the preset condition is the preset memory threshold; if the memory information is the number of times of accumulated photos, the preset condition is the preset number threshold. If the remaining amount of memory space is less than the preset memory threshold, or the number of accumulated photos is greater than the preset number threshold, it means that the current memory occupancy rate of the image processing terminal is high, that is, the memory information does not meet the preset condition.
[0074] In some possible implementations, if the memory information does not meet the preset conditions, it means that the disk occupancy rate in the image processing terminal is high and it is not suitable to immediately complete the photo task of the photo instruction. At this time, the acquired original image data is saved, which can facilitate reading the original image data when the memory information of the image processing terminal meets the preset conditions in the future, thereby completing the photo task of the photo instruction with high quality.
[0075] After receiving the photo command, it is determined whether the memory information meets the preset conditions. If the memory information meets the preset conditions, it means that the memory occupancy rate of the image processing terminal is not high at the current moment, and the original image data can be directly obtained, and the target image processing algorithm corresponding to the photo command is used to process the original image data to obtain the target image. In this way, when it is determined that the memory information meets the preset conditions, the photo command is responded to immediately, so that the photo task under the photo command can be completed quickly and with high quality to obtain the target image that meets the user's needs.
[0076] In one embodiment, when the photo taking instruction is not a quick shot instruction and the memory information includes the remaining memory space of the image processing terminal, the remaining memory space of the image processing terminal is analyzed to accurately determine whether the memory meets the preset condition, that is, the above step 602 may include the following two situations:
[0077] In case 1, when the remaining amount of the memory space is less than the preset memory threshold, it is determined that the memory of the image processing terminal does not meet the preset condition.
[0078] Among them, after obtaining the photo taking instruction, the disk used to store image data in the image processing terminal is first detected; and then the remaining memory space in the disk is determined. The preset memory threshold can be set according to the total storage space of the image processing terminal and the data processing speed of the terminal. For example, if the data processing speed is relatively high, the preset memory threshold can be appropriately set to be relatively small. The preset storage threshold can represent the size of the storage space, and can also be the ratio of the remaining memory space to the total storage space; if the total storage space is relatively large, then the ratio as the preset memory threshold can be set to be relatively small.
[0079] In case 2, when the remaining amount of the memory space is greater than or equal to the preset memory threshold, it is determined that the memory of the image processing terminal meets the preset condition.
[0080] Among them, if the remaining amount of memory space is greater than or equal to the preset memory threshold, it means that the image processing terminal has sufficient memory space to respond to the photo command, and can quickly and high-quality execute the photo task under the photo command. In this way, by judging whether the remaining amount of memory space of the image processing terminal is less than the preset memory threshold, it is possible to more accurately analyze whether the remaining amount of memory space of the image processing terminal is sufficient. Moreover, in the embodiment of the present application, if the remaining amount of memory space of the image processing terminal is insufficient, the original image data is first saved in the preset disk, and there is no need to discard the photo task of the photo command; when the remaining amount of memory space is sufficient, the original image data is read again, so that the photo task under the photo command can be completed with higher quality.
[0081] In some possible implementations, in order to make the original image data satisfy the photographing task under the photographing instruction, the acquired original image data may be saved through the following process:
[0082] First, in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, the image parameters matching the photographing instruction are determined.
[0083] The image parameters matched by the photo taking instruction include one or more of the following: the image format (eg, RAW format or YUV format), the image size, the image background, and whether there is a watermark in the image.
[0084] In some possible implementations, when a photographing instruction is obtained, the image parameters required to complete the photographing instruction can be obtained by parsing the photographing instruction.
[0085] Then, in the picture corresponding to the photographing instruction, the original image data satisfying the image parameters is acquired and saved.
[0086] The picture corresponding to the photographing instruction is the picture within the acquisition range of the camera in the image processing terminal in response to the photographing instruction, such as the preview picture that can be seen through the camera. In the picture corresponding to the photographing instruction, data is collected for the picture according to the image parameters to obtain and save the original image data; for example, the original image data is saved in a preset disk of the image processing terminal. In this way, according to the image parameters matched by the photographing instruction, the data in the current scene is collected, so that the obtained original image data can meet the photographing task under the photographing instruction. Saving such original image data can facilitate the subsequent algorithm post-processing of the original image data to obtain the target image that meets the photographing task.
[0087] In one embodiment, in order to complete the photographing task under the photographing instruction with high quality and obtain the target image with good display imaging effect, the above step 502 can be implemented by the following process:
[0088] S1, detecting the remaining amount of memory space of the image processing terminal.
[0089] The remaining amount of memory space of the image processing terminal may be detected at a first preset time interval. The first preset time interval may be set according to the processing time required for the image processing terminal to successfully complete a photo task under a photo instruction, for example, the first preset time interval is set to be greater than or equal to 0 and less than the processing time; the first preset time interval may also be user-defined.
[0090] Exemplarily, if the first preset time interval is 0, the remaining memory space of the image processing terminal is continuously checked; or, if the first preset time interval is greater than 0, the remaining memory space of the image processing terminal is periodically checked according to the first preset time interval.
[0091] S2, when it is detected that the remaining amount of memory space is greater than or equal to the preset memory threshold, processing the saved original image data to obtain the target image.
[0092] Here, if it is detected that the remaining amount of memory space is greater than or equal to the preset memory threshold, it means that at the current moment, the remaining amount of memory space of the image processing terminal is large, that is, there is enough memory space to perform algorithm post-processing on the saved original image data to obtain the target image that can be output to the album for the user to view. In this way, by detecting in real time whether the remaining amount of memory space of the image processing terminal is sufficient, the saved original image data is processed until it is detected that the remaining amount of memory space is sufficient, so that the photo-taking task can be completed with high accuracy without affecting the imaging effect of the output target image.
[0093] In some possible implementations, when the memory information is the remaining amount of memory space, in order to complete the photographing task under the photographing instruction in sufficient memory space to obtain a target image with good image quality, the above step 502 may be implemented by the following process:
[0094] First, when it is detected that the remaining amount of memory space is greater than or equal to the preset memory threshold, the original image data is read from a preset disk of the image processing terminal.
[0095] The preset disk is used to store the original image data. In the process of real-time detection of the remaining memory space of the image processing terminal, if it is detected that the remaining memory space is greater than or equal to the preset memory threshold, it means that the memory space of the image processing terminal is sufficient for image processing at the current moment, and then the saved original image data is read from the preset disk.
[0096] Then, the original image data is post-processed using a target image processing algorithm matched with the photographing instruction to obtain the target image.
[0097] Among them, the target image processing algorithm required for the photo command includes one or more of the following algorithms: image conversion algorithm, filtering algorithm, noise reduction algorithm, beauty processing algorithm, filter processing algorithm, watermark processing algorithm, blur processing algorithm, High Dynamic Range Imaging (HDR) processing algorithm and multi-frame processing algorithm. After reading the original image data from the preset disk, enter the APS algorithm processing module, call the target image processing algorithm in the APS algorithm processing module, post-process the original image data, obtain the target image, and return the target image to the application that receives the photo command to send it to the terminal album, so as to present it to the user. In this way, when it is detected that there is sufficient remaining memory space, the original image data is read and the original image data is post-processed by the algorithm, so that the target image that meets the photo command can be obtained efficiently and with high quality.
[0098] In one embodiment, when the photographing instruction is a quick-take instruction and the memory information includes the number of accumulated photographing times in the memory of the image processing terminal, the number of accumulated photographing times in the memory of the image processing terminal is analyzed to accurately determine whether the memory meets the preset condition, that is, the above step 602 includes the following two situations:
[0099] In case 1, when the number of photo accumulation times is greater than a preset number threshold, it is determined that the memory of the image processing terminal does not meet the preset condition.
[0100] Among them, the preset number threshold can be set according to the total storage space of the image processing terminal and the data processing speed of the terminal. For example, if the data processing speed is relatively high, the preset number threshold can be appropriately set to be relatively high; if the data processing speed is relatively low, the preset number threshold can be appropriately set to be relatively low. If the number of accumulated photos is greater than the preset number threshold, it means that the number of photos accumulated in the memory of the image processing terminal is relatively large, so that it is not possible to continue to respond immediately to the input photo command. Therefore, in the embodiment of the present application, the acquired original image data is temporarily stored in the preset disk of the image processing terminal, and the image processing is performed when the number of accumulated photos in the memory is relatively small.
[0101] In some possible implementations, after obtaining a photographing instruction, first detect a disk in the image processing terminal for storing image data; then determine the number of photograph accumulations in the disk, thereby determining whether the number of photograph accumulations is greater than a preset threshold.
[0102] In case 2, when the photo accumulation times are less than or equal to the preset times threshold, it is determined that the memory of the image processing terminal meets the preset conditions.
[0103] Among them, if the number of accumulated photographs is less than or equal to the preset number threshold, it means that the number of accumulated photographs in the memory of the image processing terminal is small, and the input photographing command can be responded to immediately. In this way, by judging whether the number of accumulated photographs in the memory of the image processing terminal is greater than the preset number threshold, it is determined whether the number of accumulated photographs in the image processing terminal is too many, so that it is possible to accurately judge whether the memory information meets the preset conditions. Moreover, in the embodiment of the present application, if the number of accumulated photographs in the image processing terminal is too many, then in order to successfully complete each photographing command, the original image data under this photographing command is first saved in the preset disk; after the number of accumulated photographs decreases, the original image data under this photographing command is read from the preset disk, so that the original image data can be processed with a better salient processing algorithm to obtain a target image with a higher imaging effect.
[0104] In some possible implementations, when the memory information includes the number of times of photographing in the memory of the image processing terminal, in order to make the original image data satisfy the target image processing algorithm with better imaging effect, the above step 501 can be performed by Figure 7 The steps shown are to obtain and save the raw image data:
[0105] Step 701, in response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset condition, determine a target image processing algorithm that matches the photographing instruction in a preset image processing algorithm set.
[0106] The preset image algorithm set includes: multiple types of algorithms for imaging, each algorithm has different imaging quality, such as multiple image noise reduction methods with different image quality, multiple image filter algorithms with different image quality, multiple watermark processing algorithms with different image quality, etc. For example, in the preset image processing algorithm set, for each image processing algorithm, a target image processing algorithm with the highest imaging quality is selected; in this way, by processing the original image data through the target image processing algorithm, the imaging effect of the obtained target image can be better.
[0107] Step 702: Determine the frame data required by the target image processing algorithm.
[0108] The frame data required by the target image processing algorithm includes: the number of image frames and image parameters required when the target image processing algorithm performs image processing, etc. The image parameters may include: image format, image size, whether there is a watermark or image background light.
[0109] Step 703, in the current picture where the photo taking instruction is located, the original image data satisfying the frame data is obtained and saved.
[0110] Among them, according to the number of image frames and the required image parameters when the target image processing algorithm is used for image processing, data is collected in the picture where the photo instruction is located to obtain the original image data that meets the number of image frames and image parameters. For example, the number of image frames is 5 frames, and the image parameters include: image format and image size, then in the current picture, 5 frames of original image data that meet the image format and image size are collected. In this way, by selecting a target image processing algorithm with better imaging effect, the original image data that meets the frame data required by the algorithm is collected, so that when the number of photo stacking is small, the original image data read can be processed by the target image processing algorithm to improve the image quality of the target image and obtain an image that can meet the user's needs.
[0111] In one embodiment, when the memory information is the number of accumulated photographing times, in order to respond to the current photographing instruction without reducing the imaging effect of the target image, the above step 502 can be implemented by the following process:
[0112] S1, detecting the number of accumulated photographs in the memory of the image processing terminal.
[0113] The number of accumulated photographing times in the memory of the image processing terminal may be detected according to a second preset time interval. The second preset time interval may be the same as or different from the first preset time interval. The second preset time interval may be set according to the processing time required for the image processing terminal to successfully complete a photographing task under a quick-shooting instruction, or may be set independently by the user.
[0114] Exemplarily, if the second preset time interval is 0, the number of accumulated photos taken by the image processing terminal is continuously detected; or, if the second preset time interval is greater than 0, the number of accumulated photos taken by the image processing terminal is detected once every second preset time interval.
[0115] S2, when it is detected that the number of photographing accumulation times is less than or equal to the preset number threshold, the saved original image data is post-processed using the target image processing algorithm matched with the photographing instruction to obtain the target image of the photographing instruction.
[0116] Here, if it is detected that the number of accumulated photographs is less than or equal to the preset number threshold, it means that at the current moment, the number of accumulated photographs in the image processing terminal is small, that is, the terminal has sufficient computing power to perform algorithm post-processing on the saved original image data to obtain the target image. In this way, after it is detected that the number of accumulated photographs is reduced, the original image data is read from the preset disk to process the original image data using the determined target image algorithm. Since the target image algorithm is a selected algorithm with higher imaging quality, the imaging effect of the target image is better.
[0117] In one embodiment, in order to further complete the photographing task under the photographing instruction with high quality to obtain a target image that meets the user's needs, the above step 502 can be implemented by the steps shown in Figure 8:
[0118] Step 801, when the photo accumulation times are less than or equal to the preset times threshold, detecting the remaining amount of memory space of the image processing terminal.
[0119] When it is detected that the number of accumulated photographing times is greater than a preset number threshold, the remaining amount of memory space of the image processing terminal is further detected to determine whether the remaining amount of memory space of the image processing terminal is sufficient.
[0120] Step 802, when the remaining amount of the memory space is greater than or equal to a preset memory threshold, the saved original image data is processed to obtain a target image of the photographing instruction.
[0121] If the remaining amount of memory space is greater than or equal to the preset memory threshold, that is, the remaining amount of memory space is sufficient, then continue to detect whether the number of times of photo accumulation decreases by less than or equal to the preset number threshold. If the remaining amount of memory space is less than the preset memory threshold, then continue to detect the remaining amount of memory space until the remaining amount of memory space is sufficient, and then detect the number of photo accumulation. In this way, when the remaining amount of memory space is sufficient and the number of photo accumulation is small, the original image data is read from the preset disk, and the target image processing algorithm is used to process the original image data to obtain the target image.
[0122] In an embodiment of the present application, when the memory information includes the number of accumulated photographs in the memory of the image processing terminal, if the number of accumulated photographs is large, then it is continued to determine whether the remaining memory space of the image processing terminal is sufficient; if the remaining memory space is sufficient, then it is continued to detect whether the number of accumulated photographs is less than or equal to a preset number threshold, and only when the remaining memory space is sufficient and the number of accumulated photographs is small, the original image data is read to process the original image data using a target processing algorithm to obtain a target image; in this way, by performing multi-level analysis on the memory status of the image processing terminal, there can be sufficient memory space to process the original image data to complete the photographing task under the photographing instruction, and the picture quality of the target image can also be improved.
[0123] In other embodiments, after detecting that the number of photo accumulation times is greater than a preset number threshold, continue to detect whether the number of photo accumulation times has decreased; until it is detected that the number of photo accumulation times is less than the preset number threshold, then detect the remaining memory space of the image processing terminal until the remaining memory space is greater than the preset memory threshold, and read the original image data from the preset disk.
[0124] In the quick-shot scenario, when the number of accumulated photo tasks reaches a certain threshold, the photo task goes through the deferJob processing flow. When the camera is exited or the accumulated photo tasks in the memory drop to a certain value, the photo task algorithm is processed. This reduces the problem of poor imaging effects caused by the phone switching to a lightweight algorithm after taking multiple photos.
[0125] In some possible implementations, the process of processing the photographed data is as follows: Fig. 9 As shown in the steps:
[0126] Step 901, receiving a command to start taking photos.
[0127] Step 902, determining whether the current mobile phone memory is sufficient.
[0128] Here, if the current mobile phone memory is sufficient, go to step 903; if the current mobile phone memory is insufficient, go to step 911.
[0129] Step 903, using the mobile phone camera to capture the required image.
[0130] Step 904: Send and execute the RTJob instruction.
[0131] Step 905, enter the APS algorithm processing module to perform algorithm post-processing on the image data. After the algorithm processing is completed, the image is returned to the APP to be sent to the album for display.
[0132] Here, after completing step 905, you can return to step 901.
[0133] Step 911, using the mobile phone camera to capture the required image.
[0134] Step 912: Send and execute the deferJob instruction.
[0135] Step 913, storing the collected image data in the mobile phone disk.
[0136] Step 914, when the mobile phone memory is sufficient, read the image data from the disk and send it to the APS algorithm processing module.
[0137] Step 915, perform algorithm post-processing on the image data.
[0138] Step 916, after the algorithm is processed, the image is returned to the APP to be sent to the album for display.
[0139] Here, after completing step 916, the process may return to step 901.
[0140] In an embodiment of the present application, by adding an operation of storing the deferJob photo task on disk during the image data flow process, after clicking to query the memory status, the photo data is obtained, and it is determined whether to enter the RTJob process or the deferJob process according to the mobile phone's memory status. If there is sufficient memory, the RTJob process can be entered for image processing; if it is already in a low memory condition at this time, the deferJob process is entered for image processing, and all the data of this photo task is stored on disk. When the mobile phone exits the camera (which will release a large block of memory) or when enough memory is released for other reasons, the photo data is read from the disk for algorithm processing. After the algorithm processing is completed, the processed image can be sent to the album for storage.
[0141] In the snapshot scenario, the image data can be processed by Fig.10The steps shown achieve:
[0142] Step 1001, receiving a command to start taking photos.
[0143] Step 1002, determining whether the number of accumulated photos in the memory is greater than N times.
[0144] Here, if the number of accumulated photographs in the memory is greater than N times, go to step 1003; if the number of accumulated photographs in the memory is less than N times, go to step 1011.
[0145] Step 1003, select an algorithm that has good imaging effect but takes a long time.
[0146] Step 1004, collecting frame data required by this photo-taking algorithm.
[0147] Step 1005, enter the deferJob process, and store the original image data that meets the frame data into the disk.
[0148] Step 1006, when the APP determines that the number of accumulated photos in the memory is 0, the deferJob process is executed.
[0149] Step 1007, obtaining original image data from the disk.
[0150] Step 1008: Send the original image data to the APS algorithm processing module for algorithm processing.
[0151] Step 1009, after the algorithm processing is completed, the image is returned to the APP to be sent to the album for display.
[0152] After completing step 1009 , the process may return to step 1006 .
[0153] Step 1011, select an algorithm that has good imaging effect but takes a long time.
[0154] Step 1012, collecting frame data required by this photo-taking algorithm.
[0155] Step 1013, sending the original image data that meets the frame data to the APS algorithm processing module for algorithm processing.
[0156] Step 1014, after the algorithm processing is completed, the image is returned to the APP to be sent to the album for display.
[0157] After completing step 1014 , the process may return to step 1001 .
[0158] In the above Fig.10In the quick shot scenario, add the operation of storing the deferJob photo task on disk. After clicking on the photo to obtain the photo data, determine whether to enter the RTJob process or the deferJob process based on the accumulation of photo times in the phone's memory. If the accumulation of photo times does not reach the set threshold, the RTJob process can be entered to process the image; if the accumulation of photo times has reached the threshold at this time, the deferJob process can be entered to process the image and store all the photo task data on disk. When the phone exits the camera (no new photo tasks will be added at this time) or the accumulation of photo times drops below the set threshold (because the algorithm post-processing is always executing tasks), read the photo data from the disk for algorithm processing. When the algorithm processing is completed, send the processed image to the album for storage.
[0159] In an embodiment of the present application, the photo task is switched according to the memory status when taking pictures or the number of photos accumulated in the memory; wherein, the reasons for task switching include but are not limited to memory, performance, power consumption, hardware resource conflicts and all other aspects that affect the user's photo experience and imaging effect. When the memory is sufficient, the RTJob task process is executed, and when the memory is insufficient, the deferJob task process is executed. When the number of accumulated photos is low, the RTJob task process is executed, and when the number of accumulated photos is high, the deferJob task process is executed. In this way, the problem of having to switch to a lightweight algorithm due to the accumulation of photos, resulting in poor imaging effect of the mobile phone, can be solved. It can also solve the problem that the mobile phone needs to have sufficient memory for taking pictures, and when the memory is insufficient, it does not respond to the photo event, so that the mobile phone cannot take pictures.
[0160] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0161] Based on the same inventive concept, the embodiment of the present application also provides an image processing device for implementing the above-mentioned image processing method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image processing device embodiments provided below can refer to the limitations on the image processing method above, and will not be repeated here.
[0162] In one embodiment, Fig.11 As shown, an image processing device 1100 is provided, comprising: a storage module 1101, a first processing module 1102, wherein:
[0163] A saving module 1101 is used for, in response to the acquired photographing instruction, saving the original image data corresponding to the photographing instruction when it is determined that the memory of the image processing terminal does not meet the preset condition;
[0164] The first processing module 1102 is used to process the stored original image data to obtain the target image of the photo-taking instruction when it is detected that the memory of the image processing terminal meets the preset condition.
[0165] In one embodiment, the device further comprises:
[0166] A first determining module, configured to determine the memory information of the image processing terminal in response to the photographing instruction;
[0167] The second determination module is used to determine whether the memory of the image processing terminal meets the preset condition according to the memory information.
[0168] In one embodiment, the memory information includes the remaining memory space of the image processing terminal, and the second determination module is further used to: when the remaining memory space is less than the preset memory threshold, determine that the memory of the image processing terminal does not meet the preset conditions; when the remaining memory space is greater than or equal to the preset memory threshold, determine that the memory of the image processing terminal meets the preset conditions.
[0169] In one of the embodiments, the saving module 1101 is also used to: in response to the acquired photographing instruction, determine the image parameters that match the photographing instruction when it is determined that the memory of the image processing terminal does not meet the preset conditions; and obtain and save the original image data that meets the image parameters in the picture corresponding to the photographing instruction.
[0170] In one of the embodiments, the memory information includes the number of accumulated photos in the memory of the image processing terminal, and the second determination module is further used to: determine that the memory of the image processing terminal does not meet the preset conditions when the number of accumulated photos is greater than a preset number threshold; and determine that the memory of the image processing terminal does not meet the preset conditions when the number of accumulated photos is less than or equal to the preset number threshold.
[0171] In one embodiment, the saving module 1101 is further used to: in response to an acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset conditions, determine the target image processing algorithm that matches the photographing instruction in a preset image processing algorithm set; determine the frame data required by the target image processing algorithm; and acquire and save the original image data that meets the frame data in the current screen where the photographing instruction is located.
[0172] In one of the embodiments, the first processing module 1102 is further used to: when the number of accumulated photographing times is less than or equal to the preset number threshold, detect the remaining memory space of the image processing terminal; when the remaining memory space is greater than or equal to the preset memory threshold, process the saved original image data to obtain the target image of the photographing instruction.
[0173] In one embodiment, the device also includes: a second processing module, which is used to respond to the acquired photo-taking instruction, and when it is determined that the memory of the image processing terminal meets the preset conditions, use the target image processing algorithm corresponding to the photo-taking instruction to process the original image data to obtain the target image.
[0174] Each module in the above-mentioned image processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0175] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The electronic device includes a collection device, a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the collection device, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image processing method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0176] Those skilled in the art will understand that Fig.12 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0177] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the steps in the above-mentioned method embodiments when executing the computer program.
[0178] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0179] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0180] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0181] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magneto resistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0182] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0183] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An image processing method, characterized in that: The method comprises: In response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, saving the original image data corresponding to the photographing instruction; When it is detected that the memory of the image processing terminal meets the preset condition, the stored original image data is processed to obtain the target image of the photographing instruction.
2. The method according to claim 1, characterized in that The method further comprises: In response to the photographing instruction, determining the memory information of the image processing terminal; According to the memory information, it is determined whether the memory of the image processing terminal meets the preset condition.
3. The method according to claim 2, characterized in that The memory information includes the remaining amount of memory space of the image processing terminal, and determining whether the memory of the image processing terminal meets a preset condition according to the memory information includes: When the remaining amount of the memory space is less than the preset memory threshold, determining that the memory of the image processing terminal does not meet the preset condition; When the remaining amount of the memory space is greater than or equal to the preset memory threshold, it is determined that the memory of the image processing terminal meets a preset condition.
4. The method according to claim 3, characterized in that In response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, saving the original image data corresponding to the photographing instruction includes: In response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, determining the image parameters that match the photographing instruction; In the picture corresponding to the photographing instruction, original image data satisfying the image parameters is acquired and saved.
5. The method according to claim 2, characterized in that: The memory information includes the number of times of photo accumulation in the memory of the image processing terminal. Determining whether the memory of the image processing terminal meets the preset condition according to the memory information includes: When the number of accumulated photographs is greater than a preset number threshold, determining that the memory of the image processing terminal does not meet a preset condition; When the photo accumulation times are less than or equal to the preset times threshold, it is determined that the memory of the image processing terminal meets the preset conditions.
6. The method according to claim 5, characterized in that In response to the acquired photographing instruction, if it is determined that the memory of the image processing terminal does not meet the preset condition, saving the original image data corresponding to the photographing instruction includes: In response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal does not meet the preset condition, determining a target image processing algorithm that matches the photographing instruction from a preset image processing algorithm set; Determining the frame data required by the target image processing algorithm; In the picture corresponding to the photographing instruction, original image data satisfying the frame data is acquired and saved.
7. The method according to claim 5 or 6, characterized in that: When it is detected that the memory of the image processing terminal meets the preset condition, the stored original image data is processed to obtain the target image of the photographing instruction, including: When the number of accumulated photographing times is less than or equal to the preset number threshold, detecting the remaining amount of memory space of the image processing terminal; When the remaining amount of the memory space is greater than or equal to a preset memory threshold, the saved original image data is processed to obtain a target image of the photographing instruction.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the acquired photographing instruction, when it is determined that the memory of the image processing terminal meets the preset condition, the original image data is processed using the target image processing algorithm corresponding to the photographing instruction to obtain the target image.
9. An image processing device, characterized in that: The device comprises: A saving module, configured to save the original image data corresponding to the photographing instruction in response to the acquired photographing instruction when it is determined that the memory of the image processing terminal does not meet the preset condition; The first processing module is used to process the stored original image data to obtain the target image of the photo-taking instruction when it is detected that the memory of the image processing terminal meets the preset condition.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Image processing method and device, electronic equipment, storage medium and program product
CN121174034A