Image acquisition method and apparatus, electronic device, storage medium, and program product
By receiving specific input methods to acquire and manage images with retention periods, the problem of managing the timeliness of image information in electronic devices is solved, and efficient use of storage space is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2025-01-16
- Publication Date
- 2026-06-30
AI Technical Summary
Image information stored in electronic devices is time-sensitive, but existing technologies have failed to manage it effectively, resulting in wasted storage space.
By receiving images with retention periods through different input methods, the electronic device automatically deletes the images after the retention period expires, thus avoiding unnecessary storage space occupation.
Effective management of electronic device storage space avoids temporary information from occupying too much space and improves storage space utilization efficiency.
Smart Images

Figure CN119893270B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic technology, specifically relating to an image acquisition method, apparatus, electronic device, storage medium, and program product. Background Technology
[0002] In daily life, users often need electronic devices to temporarily save images for temporary information. For example, a user might trigger an electronic device to take and save a photo of a vehicle's location in a parking lot, thus saving the vehicle's location information for easy retrieval. Another example is a user triggering an electronic device to capture and save an image of a payment QR code and share it with other users for them to use for payment.
[0003] However, the information in these images is time-sensitive; for users, the information in these stored images is already outdated, and these images occupy a significant amount of storage space on electronic devices. This leads to a waste of storage space on electronic devices. Summary of the Invention
[0004] The purpose of this application is to provide an image acquisition method, apparatus, electronic device, storage medium, and program product that can save storage space in electronic devices.
[0005] In a first aspect, embodiments of this application provide an image acquisition method, the method comprising: receiving a first input; and acquiring a first image in response to the first input; wherein the first image is a captured image or a screenshot image, the first image is an image of a first storage type, the first input is different from a second input, the second input is used to trigger the acquisition of an image of a second storage type, the image of the first storage type has a storage period, and the image of the second storage type does not have a storage period.
[0006] Secondly, embodiments of this application provide an image acquisition device, which includes a receiving module and an acquisition module. The receiving module is used to receive a first input. The acquisition module is used to acquire a first image in response to the first input received by the receiving module. The first image is a captured image or a screenshot image, and the first image is an image of a first storage type. The first input is different from a second input, which is used to trigger the acquisition of an image of a second storage type. The image of the first storage type has a storage period, while the image of the second storage type does not have a storage period.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, a first input can be received, and then, in response to the first input, a first image can be acquired. The first image is a captured image or a screenshot, and it is an image of a first storage type. The first input differs from a second input, which triggers the acquisition of an image of a second storage type. The first storage type image has a storage period, while the second storage type image does not. In this solution, the user can trigger the electronic device to acquire an image with a storage period using a first input that differs from the second input used to trigger the acquisition of an image without a storage period. That is, if the storage duration of the image is greater than or equal to the storage period, the electronic device can consider the temporary information in the image to be invalid and no longer need to save the image. This avoids a large number of useless images with invalid temporary information occupying the storage space of the electronic device, thus reducing the storage space occupied and saving storage space. Attached Figure Description
[0012] Figure 1 This is one of the flowcharts of the image processing method provided in the embodiments of this application;
[0013] Figure 2 This is the second flowchart of the image processing method provided in the embodiments of this application;
[0014] Figure 3 This is one of the schematic diagrams of the first control provided in the embodiments of this application;
[0015] Figure 4 This is a second schematic diagram of the first control provided in the embodiments of this application;
[0016] Figure 5 This is a schematic diagram illustrating an example of a first image captured according to an embodiment of this application;
[0017] Figure 6 This is the third flowchart of the image processing method provided in the embodiments of this application;
[0018] Figure 7 This is the fourth flowchart of the image processing method provided in the embodiments of this application;
[0019] Figure 8 This is a schematic diagram of an example of the first image corresponding to the navigation interface provided in the embodiments of this application;
[0020] Figure 9 This is a schematic diagram of an example of the first image corresponding to the shopping interface provided in the embodiments of this application;
[0021] Figure 10 This is a schematic diagram of a specific gesture input provided in an embodiment of this application;
[0022] Figure 11 This is an example schematic diagram of the first image corresponding to the video playback interface provided in the embodiments of this application;
[0023] Figure 12 This is the fifth flowchart of the image processing method provided in the embodiments of this application;
[0024] Figure 13 This is the sixth flowchart of the image processing method provided in the embodiments of this application;
[0025] Figure 14 This is the seventh flowchart of the image processing method provided in the embodiments of this application;
[0026] Figure 15 This is a schematic diagram illustrating the process of moving a second image to a second folder for storage, as provided in an embodiment of this application.
[0027] Figure 16 This is a schematic diagram illustrating the deletion of a second image from a first folder, provided in an embodiment of this application.
[0028] Figure 17 This is one of the schematic diagrams of the image processing apparatus provided in the embodiments of this application;
[0029] Figure 18 This is a second schematic diagram of the image processing apparatus provided in the embodiments of this application;
[0030] Figure 19 This is a third schematic diagram of the image processing apparatus provided in the embodiments of this application;
[0031] Figure 20This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0032] Figure 21 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0034] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0035] The terms "at least one," "at least one," etc., in this application refer to any one, any two, or a combination of two or more of the included objects. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more, and its meaning is similar to that of "at least one."
[0036] The image acquisition method, apparatus, electronic device, storage medium, and program product provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0037] The embodiments of this application can be applied to scenarios where users use electronic devices to store images in order to save temporary information through the images.
[0038] The image acquisition method provided in this application will be illustrated below using some specific scenarios as examples.
[0039] Scenario 1: Suppose a user parks in a parking lot and needs to use an electronic device to take a photo of their vehicle's location within the parking lot to record its position. After the user opens the camera app, the electronic device displays a temporary shooting control. The user can then input information into this control to allow the device to take a photo of the vehicle's location within the parking lot and save it in a temporary folder. After 7 days, the electronic device can determine that the temporary information in the photo has expired and delete the photo, thus preventing it from continuing to occupy the device's storage space.
[0040] Scenario 2: Suppose a user has booked a train ticket and needs to capture a screenshot of the e-ticket on their electronic device to record ticket information, including train number, platform number, carriage number, and seat number. The user can then use a three-finger swipe up on the e-ticket displayed on the electronic device to capture the screenshot, which is then saved in a temporary folder. After 30 days, the electronic device can determine that the temporary information in the screenshot has expired and delete the screenshot, thus preventing it from continuing to occupy the device's storage space.
[0041] Scenario 3: Suppose a user is visiting a tourist attraction and needs to take a photo of the attraction's map and signage using an electronic device to record route information. After the user opens the camera app, the electronic device displays a shooting control. The user can then input information into this control, allowing the device to take a photo of the map and signage and recognize it. The device can then determine that the photo is indeed a map or signage photo, which the user may use to view route information. Since this photo is only valid during the trip, the device can classify it as a temporary photo and save it in a temporary folder. Once the device detects that the user has left the tourist attraction using location information, it can determine that the route information in the photo is invalid and delete the photo, thus preventing it from continuing to occupy storage space on the device.
[0042] It should be noted that scenarios 1 to 3 above are merely exemplary examples of some scenarios that may be applied to the embodiments of this application. In actual implementation, the embodiments of this application can also be applied to any possible scenarios that require temporary image storage, and the embodiments of this application are not limited here.
[0043] Based on the above-mentioned scenarios applied in the embodiments of this application, the embodiments of this application provide an image acquisition method, device, electronic device, storage medium, and program product. Users can trigger electronic devices to acquire images with a retention period by using a first input that is different from the second input that triggers the electronic device to acquire images without a retention period. That is, if the retention period of the image is greater than or equal to the retention period, the electronic device can consider that the temporary information in the image has expired and there is no need to continue to save the image. This avoids a large number of useless images with expired temporary information occupying the storage space of the electronic device, thereby reducing the occupation of the electronic device's storage space and saving the storage space of the electronic device.
[0044] The image acquisition method provided in this application can be executed by an image acquisition device, which can be an electronic device, or a functional module or functional entity within an electronic device. The following description uses an electronic device as an example to illustrate the technical solution provided in this application.
[0045] Figure 1 A flowchart of an image acquisition method provided in an embodiment of this application is shown, such as... Figure 1 As shown, the image acquisition method provided in this application embodiment may include the following steps 201 to 202.
[0046] Step 201: The electronic device receives the first input.
[0047] In this embodiment of the application, the first input is used to trigger the electronic device to acquire the first image.
[0048] Optionally, in this embodiment, the first input includes, but is not limited to: touch input by the user through a touch device such as a finger or stylus, a voice command input by the user, a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment does not impose any limitations.
[0049] Optionally, in the embodiments of this application, the above-mentioned touch input can be single-click input, double-click input, or any number of clicks, or it can be long-press input or short-press input.
[0050] In this embodiment of the application, the first image is a captured image or a screenshot image, the first image is an image of a first storage type, the first input is different from the second input, the second input is used to trigger the acquisition of an image of a second storage type, the image of the first storage type has a storage period, and the image of the second storage type does not have a storage period.
[0051] In this embodiment, the image of the first storage type is also called a temporary image. The electronic device can stop saving the image of the first storage type with a storage period if the storage duration is greater than or equal to the storage period of the image. The image of the second storage type is also called a non-temporary image. The electronic device can save the image of the second storage type without a storage period for a long time.
[0052] Optionally, in this embodiment, the first image can be an image captured by the user through the camera of the electronic device, or an image of the interface of the electronic device captured by the user using the electronic device, or an image imported by the user from other storage devices into the electronic device, or an image downloaded by the electronic device from the network. The specific image can be determined according to actual usage needs, and this embodiment does not limit it.
[0053] For example, the first image is taken by the user through the camera of an electronic device. When a user attends a concert, they can use an electronic device to take a picture of the band's logo on stage to record relevant information about attending the concert. The electronic device can then use this picture as the first image.
[0054] For example, let's take a screenshot of the interface on an electronic device taken by the user as the first image. Suppose a user is exercising with a fitness app. After completing a set of specific exercises, the app displays an interface showing completion data, calories burned, and performance ratings. To record their fitness progress and data, the user uses the screenshot function of their electronic device to capture this interface image, which the device can then use as the first image.
[0055] For example, let's take an image imported by the user from another storage device into the electronic device as the first image. Assume the user has an external hard drive containing photos taken during work to record events. The user imports a work photo from the external hard drive onto the electronic device, and the electronic device can then use this group photo as the first image.
[0056] For example, let's take an image downloaded from the network by an electronic device as the first image. Suppose a user is collecting data for a medical report. While browsing a medical website, the user downloads an extremely rare patient photo from the website interface to the electronic device. The electronic device can then use this patient photo as the first image.
[0057] Optionally, in this embodiment of the application, the first image mentioned above is a captured image. Combined with... Figure 1 ,like Figure 2As shown, step 201 above can be implemented through step 201a below.
[0058] Step 201a: The electronic device receives the first input to the first control in the shooting preview interface.
[0059] Optionally, in this embodiment of the application, the shooting preview interface further includes a second control, which is used to trigger the acquisition of a shooting image of a second save type.
[0060] In this embodiment of the application, the aforementioned shooting preview interface is an interface used in a camera application to display the content captured by the camera and to perform shooting-related operations.
[0061] Optionally, in this embodiment of the application, the first input can be the user's click input on the first control.
[0062] In this embodiment, the aforementioned first control is also referred to as a temporary shutter, used to capture a temporary image. It is understood that the user can input the temporary shutter to trigger the electronic device to capture a temporary image.
[0063] For example, let's take a mobile phone as an example. Figure 3 As shown in (a), when the phone displays the camera application's shooting preview interface 10, a temporary shutter button 11 is displayed on the side of the phone screen. The user can click on this temporary shutter button 11 to input, such as... Figure 3 As shown in (b), the temporary shutter 12, i.e., the first control mentioned above, is triggered on the mobile phone. The user can tap the temporary shutter 12 to trigger the mobile phone to capture a temporary image.
[0064] For example, such as Figure 4 As shown, when the phone displays the camera application's shooting preview interface 10, the phone can display a temporary shutter 12, i.e., the first control mentioned above, in the bottom area of the screen. The user can tap the temporary shutter 12 to trigger the phone to capture a temporary image.
[0065] Optionally, in this embodiment of the application, the user can also input by pressing the physical buttons or combinations of physical buttons on the electronic device to trigger the electronic device to capture a temporary image.
[0066] Optionally, in this embodiment, the user can enable the temporary shutter function in the camera settings of the electronic device. After enabling the temporary shutter function, the electronic device can display a floating temporary shutter button on the side of the screen while displaying the shooting preview interface of the camera application. The user can click or drag the floating shutter button to bring up the temporary shutter. Alternatively, the user can drag the floating shutter button to the right of the main shutter, so that the electronic device displays a fixed temporary shutter button to the right of the main shutter. Photos taken by the user by clicking the temporary shutter can be automatically saved to a temporary image folder in the photo album application.
[0067] Optionally, in this embodiment of the application, after the electronic device captures the first image, it can mark the first image as a temporary image, so that the electronic device can store the first image in a first folder. Therefore, if the storage duration of the first image is greater than or equal to the storage period, it is determined that the temporary information in the first image has expired, and the first image is deleted from the first folder.
[0068] Optionally, in this embodiment of the application, after obtaining the first image, the electronic device may add temporary tag information to the attribute information of the first image to indicate that the first image is a temporary image.
[0069] For example, in a performance event, a user needs to use their mobile phone to take a photo of the stage performance to share on social media platforms or to communicate the event details with friends on the day of the event. Combined with... Figure 4 ,like Figure 5 As shown, a user can open the phone's camera app to display a camera preview interface 10, which includes a temporary shutter 12, i.e., the first control mentioned above. The user can point the phone's camera at the performers on stage to display a preview image 13 in the preview interface 10. The user can then input the temporary shutter 12, causing the electronic device to mark the preview image 13 as a temporary image and store it in a first folder. After 15 days of the preview image 13 being saved in the first folder, the electronic device can determine that the temporary information in the preview image 13 has expired and delete the preview image 13 from the first folder.
[0070] In this way, users can input a temporary shutter speed, which is different from the main shutter speed, so that the electronic device will mark the image as a temporary image when taking pictures. This allows users to freely choose whether to mark the captured image as a temporary image by inputting different shutter speeds, thus improving the flexibility of users when taking pictures with electronic devices.
[0071] Optionally, in the embodiments of this application, combined with Figure 2 ,like Figure 6As shown, prior to step 201a above, the method provided in this application embodiment further includes step 301 as described below.
[0072] Step 301: If the shooting preview content in the shooting preview interface has a temporary save attribute, the electronic device displays the first control.
[0073] In this embodiment of the application, the aforementioned shooting preview content refers to the content displayed by the electronic device in the shooting preview interface of the camera application, which can be captured by the camera.
[0074] Optionally, in this embodiment, after detecting the captured preview content, the electronic device can analyze the pixel features of the captured preview content, such as color values and brightness. By setting a threshold or using a clustering algorithm, regions with similar pixel features are segmented. The electronic device can also calculate the pixel variation patterns within a local area using methods such as calculating the gray-level co-occurrence matrix, thereby analyzing the texture features of the captured preview content and using pixel and texture features to distinguish different objects within the captured preview content. Then, the electronic device can slide predefined feature templates, such as face templates and common identifier templates, within the captured preview content, calculating the matching degree between these templates and the pixel and texture features of the local area of the captured preview content, finding areas with high matching degrees with the templates, thereby detecting the image content. After detecting the image content, the electronic device can calculate the shape, size, position, color distribution, etc., of the image content, thereby obtaining detailed information about the image content.
[0075] Optionally, in this embodiment of the application, the above-mentioned image content includes various information that can be identified and analyzed, such as the appearance of the person, posture and actions, scene layout, color, text, logos and interface elements contained in the image.
[0076] Optionally, in this embodiment of the application, when the preview content includes a person, the image content can be the person's physical characteristics, posture, and actions, such as facial expressions, hairstyle, and clothing. For example, the person in the photo may be smiling, have long hair, be wearing a white dress, have their hands hanging naturally, and be looking forward. This image content can be used to identify the person, analyze their state, etc.
[0077] For example, if a photo shows a person carrying a blue backpack with the school emblem and wearing the school's uniform (blue), with the student's grade and class number embroidered on the chest of the shirt, the image of the uniform and the backpack with the school emblem can identify the person as a student of a particular school. Furthermore, the grade and class number can pinpoint the student's class, thus identifying the student's identity.
[0078] For example, if a photo shows a person wearing casual jeans and a loose T-shirt, holding a wine glass in one hand and waving the other in the air, with a bright smile and a slight sway, surrounded by a group of people laughing and watching, then the person's casual attire and the waving arms and swaying body suggest that they are relaxed, happy, and quite active in this social setting, and are likely the center of attention at the party.
[0079] Optionally, in this embodiment of the application, when the preview content includes a scene, the image content can be the layout and colors of objects in the scene. For example, in a photo of a shopping mall, the shops are arranged in a staggered manner, the central area has benches for customers to rest and large decorative items, elevators are located on both sides of the mall, the overall color scheme of the mall is bright, the floor is made of off-white marble tiles, and the shop signs are brightly colored and diverse. This image content can be used to determine the specific shooting scene of the first image.
[0080] For example, if a photo shows numerous tables and chairs, a cashier counter, and warm, bright colors, the scene is likely a restaurant or hotel; if the photo includes natural elements such as mountains, rivers, flowers, and trees, and the colors are mainly natural colors such as green and blue, the scene is likely a scenic area; if the photo shows a large number of vehicles parked neatly, the ground is mainly gray, the space is open, and the markings are clear, the scene is likely a parking lot.
[0081] Optionally, in this embodiment of the application, the temporary storage attribute of the aforementioned shooting preview content can be understood as including objects whose use value is time-sensitive. For example, this specific type of object can be objects such as attraction tickets, promotional items, limited-time coupons, and event commemorative badges.
[0082] For example, in a photograph of a tourist attraction ticket, an electronic device can identify the ticket in the photograph. Since the ticket is only needed to be viewed during a visit to the attraction and is an object with a time-limited use value, the ticket belongs to the specific type of object mentioned above, and the electronic device can mark the first image including this object as a temporary image.
[0083] For example, in a screenshot of a limited-time promotional event on a shopping app, the electronic device can identify information such as the event name, promotional period, and discounted items, and determine that the image content is a promotional event interface. Since this promotional event interface screenshot is only useful during the promotional period and is an object with time-limited use value, it also belongs to a specific type of object. The electronic device can mark the first image containing this object as a temporary image.
[0084] Optionally, in this embodiment of the application, the aforementioned shooting preview content with temporary storage attributes can be understood as including scenes whose use value is time-sensitive. For example, the specific shooting scene can be a parking lot, examination room, shopping mall, cinema, concert, or other similar scenes.
[0085] For example, the first image is a photograph of a parking lot. The electronic device recognizes the parking payment QR code, parking space number, parking area sign, and time-limited parking sign in the first image, determining that the first image was taken in a parking lot. A photograph of a parking lot is only valuable for viewing during the time a vehicle is parked there, allowing users to locate their vehicles. Once a vehicle leaves the parking lot, the first image is no longer used, exhibiting a clear time-sensitivity. Therefore, a parking lot is a specific shooting scenario, and the electronic device can mark the first image taken in this scenario as a temporary image.
[0086] For example, the first image is a photograph of the entrance to the examination hall. The electronic device recognizes that the first image contains examination hall signs, a scene of many candidates waiting to enter, and banners related to the examination. This content is only valuable to view during the time when candidates are waiting to enter on the day of the examination and is time-sensitive. Therefore, the entrance to the examination hall is a specific shooting scene, and the electronic device can mark the first image taken in this scene as a temporary image.
[0087] In this embodiment of the application, the electronic device can identify and analyze the image content of the captured preview content, and determine the user's intention based on the image content. In this case, if the image content of the captured preview content indicates that the user's intention is to temporarily store the captured preview content, the first control is displayed.
[0088] In this way, electronic devices can determine the user's intention based on the image content of the captured preview and automatically display the first control without requiring the user to manually trigger the display, thus reducing the complexity of the user's operation.
[0089] Optionally, in this embodiment of the application, the first image mentioned above is a screenshot image. Combined with... Figure 1 ,like Figure 7 As shown, step 201 above can be implemented through step 201b below.
[0090] Step 201b: The electronic device receives the first input to the third control in the first interactive interface.
[0091] In this embodiment of the application, the first interactive interface further includes a fourth control, which is used to trigger the acquisition of a screenshot image of the second save type.
[0092] It should be noted that users can trigger the electronic device to capture a screenshot of a second save type by providing a second input to the fourth control. For example, this input could be a three-finger swipe down, a long press on the screen and tapping the screenshot option (i.e., the aforementioned fourth control), etc. The first input in this embodiment is a different input from this one. For example, the first input could be a three-finger swipe up, a long press on the screen and tapping the temporary screenshot option (i.e., the aforementioned third control), etc.
[0093] It is understandable that users can trigger the electronic device to capture a non-temporary image by making a second input to the fourth control, or they can trigger the electronic device to capture a temporary image by making a first input to the third control.
[0094] In this embodiment of the application, the first interactive interface can be any interface, such as a navigation interface, a webpage interface, a conversation interface, a shopping interface, a reading interface, or a video playback interface.
[0095] For example, such as Figure 8 As shown, taking the navigation interface as an example, suppose a user plans a route 15 from home to a new workplace in the navigation interface 14 of a navigation application and needs to temporarily save the route information for quick review in the first few days when they are unfamiliar with the route. The user can make a first input to the navigation interface 14, such as swiping up with three fingers, to trigger the phone to take a temporary screenshot of the navigation interface 14.
[0096] For example, such as Figure 9 As shown, taking a shopping interface as an example, suppose the shopping interface 16 of a shopping application contains configuration information 17 of a laptop. The user needs to take a temporary screenshot of the shopping interface 16 to consult customer service for details of the laptop's configuration information 17. The user can then input the first information into the shopping interface 16, such as long-pressing the screen and selecting the temporary screenshot option, to trigger the phone to take a temporary screenshot of the shopping interface 16.
[0097] Optionally, in this embodiment of the application, the electronic device may receive specific gesture input to the first interactive interface.
[0098] Optionally, in this embodiment, the specific gesture input can be the default of the electronic device or preset by the user. For example, the specific gesture input can be any one of three-finger swipe up, two-finger long press, specific graphic input, long press the screen and select the temporary screenshot option, etc. The specific gesture input can be determined according to actual usage needs, and this embodiment does not impose any restrictions.
[0099] For example, such as Figure 10As shown, the phone displays a news webpage interface 20, which includes news articles and a scroll bar 21. The user is reading the news but needs to switch to another application immediately to handle an urgent matter and wants to temporarily save the current browsing position of the webpage. The user long-presses the news webpage interface 20 with two fingers, triggering the phone to take a screenshot of the webpage browsing interface 20, obtaining a first image, marking it as a temporary image, and saving it to a first folder. Two hours after the first image is saved to the first folder, the phone determines that the browsing position information in the first image is invalid, for example, the news content may have been updated or the user has re-viewed it on another device, and then the phone can delete the first image from the first folder.
[0100] In this embodiment, the electronic device can store images generated in a temporary folder that are different from those generated by traditional shooting / screenshotting methods. This allows for the separation of content with long-term storage attributes from content with temporary attributes, making it easier for users to manage.
[0101] Optionally, in this embodiment of the application, the electronic device may, in response to the first input, perform a screenshot operation on the first interactive interface to obtain a first image and mark the first image as a temporary image.
[0102] For example, such as Figure 11 As shown, the phone displays a video playback interface 18, which includes the currently playing movie and a progress bar 19. If the user needs to temporarily leave and requires to save the movie's playback progress information so they can continue watching upon returning home, the user can swipe up on the video playback interface 19 with three fingers to trigger the phone to take a screenshot, creating a first image. This first image is then marked as a temporary image and stored in a first folder. One day after the first image is saved in the first folder, the phone can determine that the playback progress information in the first image has expired and delete the first image from the first folder.
[0103] In this way, the user can make the electronic device mark the captured image as a temporary image by making the first input to the third control in the first interactive interface. Thus, the user can freely choose whether to mark the captured image as a temporary image by making different inputs to the electronic device, which improves the flexibility of the user when using the electronic device to capture images.
[0104] Optionally, in the embodiments of this application, combined with Figure 7 ,like Figure 12 As shown, prior to step 201b above, the method provided in this application embodiment further includes step 401 as described below.
[0105] Step 401: If the screenshot preview content in the screenshot preview interface has a temporary save attribute, the electronic device displays a third control.
[0106] In this embodiment, the screenshot preview interface is the interface triggered by the user's electronic device to capture the screenshot, and the screenshot preview content is the content captured by the user's electronic device. The screenshot preview content has a temporary storage attribute, which can be understood as including objects whose use value is time-sensitive.
[0107] Optionally, in this embodiment of the application, when the first image is a screenshot, the image content of the first image can be text, logos, interface element layouts, etc. For example, a screenshot of a shopping application includes product description text, product images, price tags, purchase buttons, and the interface element layout formed by the relative positions of these image contents. This image content can be used to determine the interface type in the first image.
[0108] For example, if the screenshot contains a lot of product-related text, logos, and purchase-related interface elements, it is likely the interface of a shopping app; if the text in the image is mainly news headlines and body content, and the interface elements are laid out to focus on the display of the article, such as the headline font being large and at the top, the body text having clear paragraph divisions, and a few sharing, commenting, and other related icons at the bottom or side of the article, then it can be identified as the interface of a news reading app.
[0109] Step 202: The electronic device responds to the first input and acquires the first image.
[0110] In this embodiment of the application, when the first image is a temporary image, the electronic device stores the first image in a first folder.
[0111] In this embodiment of the application, if the retention period of an image in the first folder is greater than or equal to the retention period, the image in the first folder is deleted.
[0112] In this embodiment of the application, the temporary image mentioned above is an image containing temporary information required by the user.
[0113] In this embodiment of the application, the aforementioned temporary information is information that is valid within a specific time, place, or event, and loses its original meaning or value once that range is exceeded.
[0114] For example, an athlete's accreditation photo contains the athlete's participation information. This information is only valid during the specific event of the Games and is used to confirm the athlete's eligibility, allowing them access to competition venues, athlete rest areas, and other related areas. Once the Games conclude, the participation information in the accreditation photo becomes temporary information that has expired for that specific event.
[0115] Optionally, in the embodiments of this application, the aforementioned temporary information may be associated with at least one specific element, which may include, but is not limited to, at least one of the following: time, space, event, etc.
[0116] Optionally, in the embodiments of this application, when the aforementioned temporary information is related to a specific time, the validity of the temporary information is time-limited.
[0117] For example, information such as train number, platform number, carriage number, and seat number in a screenshot of an e-ticket is only valid during the user's travel period and becomes meaningless after that time. Similarly, information such as the pickup code and estimated delivery time in a screenshot of a food delivery order is only valid before the user picks up the food and becomes irrelevant afterward.
[0118] Optionally, in the embodiments of this application, when the aforementioned temporary information is related to a specific space, the validity of the temporary information is related to the specific spatial environment or geographical location.
[0119] For example, the vehicle location information in a parking lot photo is only useful within the spatial environment of the parking lot; once the vehicle leaves, the location information becomes worthless. Similarly, the scenic area map information in a tourist map photo is only useful within the geographical area of that scenic area; once the user finishes their visit and leaves, the map information becomes worthless.
[0120] Optionally, in this embodiment of the application, when the aforementioned temporary information is related to a specific event, the validity of the temporary information is related to the progress of the event.
[0121] For example, a user is reading a suspense novel and, while reading, uses an electronic device to take a picture of a page with a key plot point, such as the page that reveals the killer's identity. This photo can be considered an image containing temporary information—plot details relevant to the suspense novel. This plot information is important to the user while reading the book, perhaps for discussing the plot with friends or for personal reflection. However, once the user starts reading other books or their enthusiasm for the novel fades, this plot information becomes less important.
[0122] Optionally, in the embodiments of this application, the aforementioned temporary information may be related to at least two elements simultaneously.
[0123] For example, taking the case where this temporary information is related to both time and event, suppose a student attends an online course and captures the course number and class time slot of the live online course. This information is only valid during the course event within the class time slot; the student can participate in the course from their home, office, or any other location. Once the course event ends, the time has passed beyond the class time slot, and this information becomes useless.
[0124] For example, taking the case where this temporary information is related to time, space, and event simultaneously, suppose a user receives a screenshot of meeting information via an electronic device while attending a business meeting. This screenshot contains meeting-related information, such as meeting content, meeting location, and meeting time range. This information is only valid during the meeting at that specific location and within the specified meeting time period. Once the meeting ends, or if the user leaves the meeting location or the meeting time has expired, this information becomes useless.
[0125] In this embodiment of the application, the first folder mentioned above can also be called a temporary folder, which is used to store temporary images.
[0126] Optionally, in this embodiment of the application, if the first image obtained is a temporary image, the electronic device may create a first folder and store the first image in the first folder.
[0127] Optionally, in this embodiment of the application, the electronic device may pre-create a first folder, and upon obtaining a first image that is a temporary image, the electronic device may directly store the first image into the first folder.
[0128] Optionally, in this embodiment of the application, the electronic device may display the first folder in the application interface of an image management application (such as a photo album application).
[0129] Optionally, in this embodiment of the application, the electronic device can display a first folder in a temporary file management application. This temporary file management application is used to store temporary files. For example, the application interface of the temporary file management application may include a "Temporary Images" folder, a "Temporary Audio" folder, and a "Temporary Documents" folder, wherein the "Temporary Images" folder is the aforementioned first folder.
[0130] Optionally, in this embodiment of the application, the electronic device can directly display the first folder on the desktop interface to facilitate users to quickly access and manage the first folder.
[0131] Optionally, in this embodiment, the aforementioned retention period can be the default setting of the electronic device or a user-defined preset period. For example, the retention period can be 7 days, 15 days, 30 days, etc. The specific retention period can be determined according to actual usage needs, and this embodiment does not impose any limitations.
[0132] For example, when students are learning a programming course online, the teacher presents a code example, and the students use their electronic devices to take screenshots of the code example. These code examples are important content of the programming knowledge in this lesson and are temporary information related to the event of learning this lesson. While the students are learning this programming knowledge, the code example in the screenshot helps them understand programming concepts and syntax. However, once the students have mastered this programming knowledge and begin learning other programming knowledge, the value of the code example in the screenshot decreases. After 7 days, the electronic device can determine that the temporary information in the screenshot has expired and delete the screenshot, thus preventing the screenshot from continuing to occupy the storage space of the electronic device.
[0133] Optionally, in this embodiment of the application, the specific content of the first image determines the corresponding retention period. That is, the retention period may differ for different image contents.
[0134] For example, taking a tourist attraction photo as the first image, the electronic device can identify the specific content of the image, such as the landmark buildings, beautiful scenery, and tourists taking the photo, and determine that the first image is a tourist attraction photo. A tourist attraction photo is a photograph containing specific image content related to tourism, and it is usually viewed within a month after the trip; therefore, the electronic device can determine the retention period to be 30 days.
[0135] For example, taking a screenshot of a train ticket as the first image, the electronic device can identify the specific details of the image, such as the train number, departure station, arrival station, departure time, arrival time, and seat number, and determine that the first image is a screenshot of a train ticket. Since the specific details of the train ticket image, such as the train number, departure station, arrival station, departure time, arrival time, and seat number, are mainly useful during the period of train travel, such as for getting to the station and finding a seat, the electronic device can determine that the retention period is one day after the arrival time of the travel information in the ticket. That is, the screenshot of the train ticket will be deleted the day after the user arrives at their destination. For example, if the arrival time of the ticket is 3:00 PM on July 16th, and the user takes the screenshot of the train ticket at 8:00 AM on July 13th, then the electronic device determines the retention period to be 4 days and 7 hours, that is, the screenshot of the train ticket will be deleted at 3:00 PM on July 17th.
[0136] In this embodiment of the application, in the scenario of taking or capturing temporary images, the user can perform shooting or screenshot operations on the electronic device in a way that is different from the traditional method. This allows the electronic device to automatically save the images to a temporary folder. The contents of the temporary folder will be automatically deleted after a certain period of time, which can clean up useless junk images, reduce memory usage, improve system smoothness, and improve the efficiency of album image management.
[0137] This application provides an image management method, apparatus, electronic device, storage medium, and program product. A user can trigger the electronic device to acquire an image with a retention period by using a first input that is different from the second input that triggers the electronic device to acquire an image without a retention period. That is, if the retention period of the image is greater than or equal to the retention period, the electronic device can consider that the temporary information in the image has expired and there is no need to continue to save the image. This avoids a large number of useless images with expired temporary information occupying the storage space of the electronic device, thus reducing the storage space occupied by the electronic device and saving the storage space of the electronic device.
[0138] Optionally, in this embodiment of the application, the first image mentioned above is a captured image. Combined with... Figure 1 ,like Figure 13 As shown, step 201 can be implemented by step 201c, and step 202 can be implemented by steps 202a and 202b.
[0139] Step 201b: The electronic device receives the first input to the second control in the shooting preview interface.
[0140] Step 202a: The electronic device responds to the first input and acquires the captured image.
[0141] Step 202b: If the image content of the captured image has a temporary storage attribute, the electronic device associates the storage period with the captured image to obtain the first image.
[0142] In this embodiment of the application, the second control is also used to trigger the acquisition of captured images of a second save type.
[0143] Optionally, in this embodiment of the application, after the user triggers the electronic device to acquire the captured image through the first input of the second control, the electronic device can identify and analyze the image content of the captured image, and determine the user's intention based on the image content. Thus, if the image content of the captured image indicates that the user's intention is to temporarily store the captured image, the captured image is marked as a temporary image. Then, the electronic device can associate the storage period with the captured image to obtain a captured image with a storage period, namely the first image.
[0144] For example, suppose the captured image is a photo of a tourist map sign. The electronic device can recognize that the photo includes a map sign, and that the background of the map sign includes natural elements such as mountains, water, flowers, and trees, with colors primarily in natural colors like green and blue. The scene likely indicates a scenic area, thus determining the user's intent: the user may want to record a route for use while traveling within the scenic area. Therefore, the electronic device can determine that the user's intent is to temporarily store a temporary image, and thus mark that temporary image as temporary. Assuming a retention period of 7 days, the electronic device can associate the 7-day retention period with the captured image, obtaining a first image with a 7-day retention period.
[0145] Thus, when a user triggers the electronic device to capture an image by inputting the first image to the second control, the electronic device can determine the user's intention based on the image content of the first image and automatically mark the first image that the user needs to temporarily store as a temporary image, without requiring the user to manually distinguish it, thus reducing the complexity of the user's operation.
[0146] Optionally, in this embodiment of the application, the first image mentioned above is a screenshot image. Combined with... Figure 1 ,like Figure 14 As shown, step 201 can be implemented by step 201d, and step 202 can be implemented by steps 202c and 202d.
[0147] Step 201d: The electronic device receives the first input to the first interactive interface.
[0148] Step 202c: The electronic device responds to the first input and acquires a screenshot image.
[0149] Step 202d: If the image content of the screenshot has a temporary storage attribute, the electronic device associates the storage period with the screenshot to obtain the first image.
[0150] In this embodiment of the application, the first input is also used to trigger the acquisition of a screenshot image of the second save type.
[0151] Optionally, in this embodiment of the application, after the user triggers the electronic device to obtain a screenshot image through the first input of the first interactive interface, the electronic device can identify and analyze the image content of the screenshot image, and determine the user's intention based on the image content. In the case where the image content of the screenshot image represents the user's intention to temporarily store the screenshot image, the screenshot image is marked as a temporary image. Then the electronic device can associate the storage period with the screenshot image to obtain a screenshot image with a storage period, i.e., the first image.
[0152] For example, assuming the screenshot is of a train ticket, the electronic device can recognize that the screenshot includes train information such as train number, departure station, arrival station, departure time, and arrival time, as well as seat information such as carriage number and seat number. Furthermore, the screenshot contains elements such as the railway company's logo. The electronic device determines that the temporary image is likely a train ticket screenshot. Therefore, it can determine the user's intention: the user may want to conveniently view travel information during their journey. Thus, the electronic device can determine that the user's intention is to temporarily store the image, and thus mark the temporary image as temporary. Assuming a retention period of 14 days, the electronic device can associate the 14-day retention period with the screenshot image to obtain a first image with a retention period of 14 days.
[0153] Thus, when a user triggers an electronic device to capture a screenshot image through the first input on the first interactive interface, the electronic device can determine the user's intention based on the image content of the first image and automatically mark the first image that the user needs to temporarily store as a temporary image, without requiring the user to manually distinguish it, thus reducing the complexity of the user's operation.
[0154] Optionally, in the embodiments of this application, the image acquisition method provided in the embodiments of this application further includes the following steps 501 and 502.
[0155] Step 501: The electronic device receives a third input.
[0156] Step 502: The electronic device responds to the third input and acquires the third image.
[0157] In this embodiment of the application, the third image is an image of a third storage type. The third input is different from the first input and the second input. The storage period of the third storage type image is different from that of the first storage type image.
[0158] Optionally, in this embodiment of the application, the third input can be a three-finger left swipe, a three-finger right swipe, a long press on the screen and a click on the retention period option, etc., and the retention period option is used to select the retention period of the third image.
[0159] For example, suppose the first input is a three-finger swipe up, the second is a three-finger swipe down, and the third is a three-finger swipe right. The first image is saved for 7 days, and the third image is saved for 30 days. Suppose that in a TV series' video playback interface, a user wants to obtain a screenshot marked with a highlight as the third image for quick review of a specific scene later. The user estimates it will take a month to finish watching the series and may view the screenshot multiple times during that time. The user can then trigger the electronic device to obtain the screenshot image containing the highlight mark by swiping right on the video playback interface, and the image's retention period is set to 30 days.
[0160] In this way, users can trigger electronic devices to obtain first images with different retention periods through different inputs, meeting a variety of user needs and improving the flexibility of image acquisition.
[0161] Optionally, in this embodiment of the application, the image acquisition method provided in this embodiment of the application further includes the following step 601.
[0162] Step 601: The electronic device saves the first image to the first image folder.
[0163] In this embodiment of the application, the photo album application also has a second image folder, which is used to store images of a second save type.
[0164] Optionally, in this embodiment of the application, the electronic device may receive a fourth input to a first image in a first folder.
[0165] In this embodiment of the application, the fourth input is used to trigger the electronic device to move the first image from the first folder to the second folder for storage.
[0166] Optionally, in this embodiment, the fourth input can be the input of dragging the first image to the second folder. Alternatively, the fourth input can also be the input of long-pressing the first image to display image options on the electronic device and clicking the move option in the image options.
[0167] In this embodiment, the second folder can be any folder in the electronic device other than the first folder, used to store non-temporary images. That is, images in the second folder will not be automatically deleted by the electronic device if their storage duration is greater than or equal to the storage period.
[0168] Optionally, in this embodiment, the electronic device can display an identifier for a first folder on the application interface of an image management application (e.g., a photo album application). The user can input the identifier for the first folder to cause the electronic device to display a first folder interface, which includes temporary images stored by the electronic device. The user can then input a fourth image from the temporary images to cause the electronic device to move the first image from the first folder to a second folder for storage.
[0169] For example, such as Figure 15 As shown in (a), the phone displays the main interface 22 of the photo album application, including icons for the "Travel" folder 23 and the "Temporary Images" folder 24. Users can click the icon for the "Temporary Images" folder 21, as shown... Figure 15(b) allows the electronic device to display a temporary image interface 25, including a group photo 26 taken by the user with friends during a weekend trip. This group photo 26 will be deleted by the electronic device after 15 days, stored in the "Temporary Images" folder 24. If the user views the group photo 26 and decides it should be kept as a memento, the user can perform a fourth input on the group photo 26, such as long-pressing the group photo 26. Figure 15 As shown in (c), the electronic device displays image options, including "Restore" option 27 and "Delete" option 28. The user can then click on "Restore" option 27 to move the group photo 26 from the "Temporary Images" folder 24 to the "Travel" folder 23, so that the electronic device can not delete the group photo 26 after 15 days.
[0170] Optionally, in this embodiment of the application, the user can input a deletion request for the first image, so that the electronic device deletes the first image from the first folder, thereby clearing temporary images in the electronic device in advance.
[0171] For example, combined Figure 15 (c) in the example Figure 16 As shown in (a), the electronic device allows users to click and input the "delete" option 28, such as... Figure 16 As shown in (b) in the diagram, this causes the electronic device to delete the group photo 26 from the "Temporary Images" folder 24.
[0172] In this way, users can manipulate the temporary images in the first folder, thereby managing time-sensitive images according to their needs and preventing important temporary images from being automatically deleted.
[0173] Each of the above-described method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application does not impose any restrictions on this.
[0174] The image acquisition method provided in this application can be executed by an image acquisition device. This application uses an image acquisition device executing the image acquisition method as an example to illustrate the image acquisition device provided in this application.
[0175] Figure 17 A schematic diagram of a possible structure of an image acquisition device involved in some embodiments of this application is shown. For example... Figure 17 As shown, the image acquisition device 70 may include a receiving module 71 and an acquisition module 72.
[0176] The aforementioned receiving module 71 is used to receive the first input.
[0177] The acquisition module 72 described above is used to acquire a first image in response to the first input received by the receiving module 71.
[0178] Wherein, the first image is a captured image or a screenshot image, the first image is an image of a first storage type, the first input is different from the second input, the second input is used to trigger the acquisition of an image of a second storage type, the first storage type image has a storage period, and the second storage type image does not have a storage period.
[0179] In one possible implementation, the receiving module 71 is further configured to receive a third input. The acquiring module 72 is further configured to acquire a third image in response to the third input received by the receiving module 71. The third image is an image of a third storage type, and the third input is different from both the first and second inputs. The storage period of the third storage type image is different from that of the first storage type image.
[0180] In one possible implementation, the first image is a captured image. The receiving module 71 is specifically used to receive a first input to a first control in the shooting preview interface. The shooting preview interface also includes a second control, which is used to trigger the acquisition of a captured image of a second save type.
[0181] In one possible implementation, combining Figure 17 ,like Figure 18 As shown, the image acquisition device 70 provided in this application embodiment further includes a display module 73. The display module 73 is used to display the first control when the shooting preview content of the shooting preview interface has a temporary saving attribute, before the receiving module 71 receives the first input to the first control in the shooting preview interface.
[0182] In one possible implementation, the first image is a captured image. The receiving module 71 is specifically configured to receive a first input to the second control in the shooting preview interface. The acquiring module 72 is specifically configured to: acquire the captured image in response to the first input received by the receiving module 71; and, if the image content of the captured image has a temporary storage attribute, associate the storage period with the captured image to obtain the first image; wherein the second control is also used to trigger the acquisition of a captured image of a second storage type.
[0183] In one possible implementation, the first image is a screenshot. The receiving module 71 is specifically used to receive a first input to a third control in the first interactive interface; wherein the first interactive interface further includes a fourth control, which is used to trigger the acquisition of a screenshot image of a second save type.
[0184] In one possible implementation, combining Figure 17 ,like Figure 18 As shown, the image acquisition device 70 provided in this application embodiment further includes a display module 73. The display module 73 is used to display the third control before the receiving module 71 receives the first input to the third control in the first interactive interface, provided that the screenshot preview content of the screenshot preview interface has a temporary saving attribute.
[0185] In one possible implementation, the first image is a screenshot. The receiving module 71 is specifically configured to receive a first input to the first interactive interface. The acquiring module 72 is specifically configured to: acquire a screenshot image in response to the first input received by the receiving module 71; and, if the image content of the screenshot image has a temporary storage attribute, associate the storage period with the screenshot image to obtain a first image; wherein the first input is also used to trigger the acquisition of a screenshot image of a second storage type.
[0186] In one possible implementation, combining Figure 17 ,like Figure 19 As shown, the image acquisition device 70 provided in this application embodiment further includes an execution module 74. The execution module 74 is used to save the first image obtained by the acquisition module 72 to a first image folder; wherein, the photo album application also has a second image folder, which is used to store images of a second saving type.
[0187] This application provides an image acquisition device. A user can trigger the image acquisition device to acquire an image with a retention period by using a first input that is different from the second input that triggers the image acquisition device to acquire an image without a retention period. That is, if the retention period of the image is greater than or equal to the retention period, the image acquisition device can consider that the temporary information in the image has expired and there is no need to continue to save the image. This avoids a large number of useless images with expired temporary information occupying the storage space of the image acquisition device, thus reducing the storage space occupied by the image acquisition device.
[0188] The image acquisition device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0189] The image acquisition device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0190] The image acquisition device provided in this application embodiment can implement the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0191] Optionally, such as Figure 20 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores a program or instructions that can run on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various steps of the above-described image acquisition method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0192] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0193] Figure 21 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0194] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0195] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 21 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0196] The user input unit 107 is used to receive the first input.
[0197] The processor 110 described above is used to acquire a first image in response to a first input.
[0198] Wherein, the first image is a captured image or a screenshot image, the first image is an image of a first storage type, the first input is different from the second input, the second input is used to trigger the acquisition of an image of a second storage type, the first storage type image has a storage period, and the second storage type image does not have a storage period.
[0199] Optionally, the user input unit 107 is further configured to receive a third input. The processor 110 is further configured to acquire a third image in response to the third input. The third image is an image of a third storage type, and the third input differs from both the first and second inputs. The storage period of the third storage type image differs from that of the first storage type image.
[0200] Optionally, the first image is a captured image. The user input unit 107 is specifically used to receive a first input to a first control in the shooting preview interface. The shooting preview interface also includes a second control, which is used to trigger the acquisition of a captured image of a second save type.
[0201] Optionally, the display unit 106 is configured to display the first control before receiving the first input to the first control in the shooting preview interface, provided that the shooting preview content in the shooting preview interface has a temporary save attribute.
[0202] Optionally, the first image is a captured image. The user input unit 107 is specifically configured to receive a first input to the second control in the shooting preview interface. The processor 110 is specifically configured to: acquire a captured image in response to the first input; and, if the image content of the captured image has a temporary storage attribute, associate the storage period with the captured image to obtain the first image; wherein the second control is also configured to trigger the acquisition of a captured image of a second storage type.
[0203] Optionally, the first image is a screenshot. The user input unit 107 is specifically used to receive a first input to a third control in the first interactive interface; wherein, the first interactive interface further includes a fourth control, which is used to trigger the acquisition of a screenshot image of a second save type.
[0204] Optionally, the display unit 106 is configured to display the third control before receiving the first input to the third control in the first interactive interface, provided that the screenshot preview content of the screenshot preview interface has a temporary save attribute.
[0205] Optionally, the first image is a screenshot. The user input unit 107 is specifically configured to receive a first input to the first interactive interface. The processor 110 is specifically configured to: acquire a screenshot in response to the first input; and, if the image content of the screenshot has a temporary storage attribute, associate the storage period with the screenshot to obtain the first image; wherein the first input is also used to trigger the acquisition of a screenshot of a second storage type.
[0206] Optionally, the processor described above is used to save the first image to a first image folder; wherein the photo album application also has a second image folder, which is used to store images of a second save type.
[0207] This application provides an electronic device in which a user can trigger the electronic device to acquire an image with a retention period by using a first input that is different from the second input that triggers the electronic device to acquire an image without a retention period. That is, if the retention period of the image is greater than or equal to the retention period, the electronic device can consider that the temporary information in the image has expired and there is no need to continue to save the image. This avoids a large number of useless images with expired temporary information occupying the storage space of the electronic device, thereby reducing the storage space occupied by the electronic device and saving the storage space of the electronic device.
[0208] The electronic device provided in this application embodiment can implement all the processes implemented in the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here. The beneficial effects of the various implementation methods in this embodiment can be found in the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, it will not be described again here.
[0209] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0210] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0211] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0212] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described image acquisition method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0213] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0214] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described image acquisition method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0215] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0216] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the image acquisition method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0217] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0218] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0219] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An image acquisition method, characterized in that, include: If the shooting preview content in the shooting preview interface has a temporary save attribute, the first control is displayed; Receive the first input to the first control; In response to the first input, acquire the first image; Wherein, the first image is a captured image, and the first image is an image of a first save type; the shooting preview interface also includes a second control, which is used to trigger the acquisition of a captured image of a second save type, the first input is different from the second input, and the second input is used to trigger the second control to acquire the image of the second save type; the image of the first save type has a save period, while the image of the second save type does not have a save period.
2. The method of claim 1, wherein, The method further includes: Receive third input; In response to the third input, a third image is acquired; The third image is a third type of image, the third input is different from the first input and the second input, and the storage period of the third type of image is different from that of the first type of image.
3. The method of claim 1, wherein, The method further includes: Receive the first input to the second control in the shooting preview interface; In response to the first input, the captured image is obtained; If the image content of the captured image has a temporary storage attribute, the storage period is associated with the captured image.
4. The method according to claim 1, characterized in that, The method further includes: Receive the first input to the third control in the first interactive interface; The first interactive interface further includes a fourth control, which is used to trigger the acquisition of the screenshot image of the second save type.
5. The method according to claim 4, characterized in that, Before receiving the first input to the third control in the first interactive interface, the method further includes: If the screenshot preview content in the screenshot preview interface has a temporary save attribute, the third control is displayed.
6. The method according to claim 1, characterized in that, The method further includes: Receive the first input to the first interactive interface; In response to the first input, a screenshot image is obtained; If the image content of the screenshot has a temporary storage attribute, the storage period is associated with the screenshot.
7. The method according to claim 1, characterized in that, The method further includes: Save the first image to the first image folder; The photo album application also has a second image folder, which is used to store images of the second save type.
8. An image acquisition device, characterized in that, include: Display module, receiving module, and acquisition module; The display module is used to display the first control when the shooting preview content in the shooting preview interface has a temporary saving attribute; The receiving module is used to receive a first input to the first control; The acquisition module is used to acquire a first image in response to the first input received by the receiving module; Wherein, the first image is a captured image, and the first image is an image of a first save type; the shooting preview interface also includes a second control, which is used to trigger the acquisition of a captured image of a second save type, the first input is different from the second input, and the second input is used to trigger the second control to acquire an image of the second save type, the image of the first save type has a save period, and the image of the second save type does not have a save period.
9. The apparatus according to claim 8, characterized in that, The receiving module is also used to receive a third input; The acquisition module is further configured to acquire a third image in response to the third input received by the receiving module; The third image is a third type of image, the third input is different from the first input and the second input, and the storage period of the third type of image is different from that of the first type of image.
10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the image acquisition method as described in any one of claims 1 to 7.
11. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the image acquisition method as described in any one of claims 1 to 7.
12. A computer program product, characterized in that, The program product is stored in a storage medium and is executed by at least one processor to implement the image acquisition method as described in any one of claims 1 to 7.