Image acquisition method and device, electronic equipment, storage medium and program product
By distinguishing temporary images with shelf life from non-temporary images without shelf life in electronic devices, and automatically deleting temporary images after the shelf life, the problem of waste of storage space in electronic devices is solved, and efficient utilization of storage space is achieved.
Patent Information
- Application Number
- CN202510071635.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The images stored in electronic devices contain time-sensitive information. As the information fails, a large amount of storage space is occupied, resulting in wasted storage space.
By receiving specific inputs, two types of images are distinguished: a temporary image with shelf life and a non-temporary image without shelf life. When the storage time of the image reaches or exceeds the storage period, the electronic device deletes the temporary image to free up storage space.
It effectively saves the storage space of electronic devices, avoids the problem of large amounts of failed information occupying storage space, and improves the efficiency of storage space utilization.
Smart Images

Figure CN119893270A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to an image acquisition method, device, electronic equipment, storage medium and program product. Background Art
[0002] In daily life, users often require electronic devices to temporarily save some images, so that these images can be used to save temporary information for users to use. For example, a user triggers an electronic device to take and save a photo of the vehicle's location in a parking lot, so that the vehicle's location information can be saved through the photo, making it easier for users to find the parking location of the vehicle. For another example, a user can trigger an electronic device to capture and save an image of a payment QR code, and share the image with other users, so that the other users can use the payment QR code to make payments.
[0003] However, the information in these images is time-sensitive, and the information in these stored images is no longer valid for users, and these images will occupy more storage space of the electronic device, which will lead to a waste of storage space of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an image acquisition method, device, electronic device, storage medium and program product, which can save storage space of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides an image acquisition method, the method comprising: receiving a first input; 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 saved 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 saved type, the image of the first saved type has a shelf life, and the image of the second saved type does not have a shelf life.
[0006] In a second aspect, an embodiment of the present application provides 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, the first image is an image of a first saved 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 saved type, the image of the first saved type has a shelf life, and the image of the second saved type does not have a shelf life.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, a first input may be received, and then in response to the first input, a first image may be acquired, wherein the first image is a photographed image or a screenshot image, the first image is an image of a first save 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 save type, the image of the first save type has a shelf life, and the image of the second save type does not have a shelf life. In this solution, a user may trigger an electronic device to acquire an image with a shelf life through a first input that is different from a second input that triggers the electronic device to acquire an image without a shelf life, that is, the electronic device may deem that the temporary information in the image has expired and does not need to continue to save the image when the image has been saved for a period of time greater than or equal to the shelf life, and thus the image may no longer be saved, thereby avoiding a large number of useless images whose temporary information has expired from occupying the storage space of the electronic device, thereby reducing the occupation of the storage space of the electronic device and saving the storage space of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is one of the flow charts of the image processing method provided in the embodiment of the present application;
[0013] Figure 2 This is the second flowchart of the image processing method provided in the embodiment of the present application;
[0014] Figure 3 It is one of the schematic diagrams of the first control provided in the embodiment of the present application;
[0015] Figure 4 This is the second schematic diagram of the first control provided in the embodiment of the present application;
[0016] Figure 5 is a schematic diagram of an example of a first image captured according to an embodiment of the present application;
[0017] Figure 6 This is the third flowchart of the image processing method provided in the embodiment of the present application;
[0018] Figure 7 This is the fourth flowchart of the image processing method provided in the embodiment of the present application;
[0019] Figure 8 is a schematic diagram of an example of a first image corresponding to the navigation interface provided in an embodiment of the present application;
[0020] Fig. 9 is a schematic diagram of an example of a first image corresponding to the shopping interface provided in an embodiment of the present application;
[0021] Fig.10 is a schematic diagram of a specific gesture input provided in an embodiment of the present application;
[0022] Fig.11 is a schematic diagram of an example of a first image corresponding to a video playback interface provided in an embodiment of the present application;
[0023] Fig.12 This is the fifth flowchart of the image processing method provided in the embodiment of the present application;
[0024] Fig.13 This is the sixth flowchart of the image processing method provided in the embodiment of the present application;
[0025] Fig.14 This is the seventh flowchart of the image processing method provided in the embodiment of the present application;
[0026] Fig.15 is a schematic diagram of moving a second image to a second folder for storage provided by an embodiment of the present application;
[0027] Fig.16 is a schematic diagram of deleting a second image from a first folder provided by an embodiment of the present application;
[0028] Fig.17 is one of the schematic diagrams of the image processing device provided in the embodiment of the present application;
[0029] Fig.18 This is a second schematic diagram of the image processing device provided in an embodiment of the present application;
[0030] Fig.19 This is the third schematic diagram of the image processing device provided in the embodiment of the present application;
[0031] Fig. 20is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0032] Fig.21 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0034] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0035] The terms "at least one (item)", "at least one of" and the like in this application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "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 (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".
[0036] The image acquisition method, device, electronic device, storage medium and program product provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0037] The embodiments of the present application may be applied to a scenario in which a user uses an electronic device to store an image to save temporary information through the image.
[0038] The following uses some specific scenarios of the embodiments of the present application as examples to exemplarily illustrate the image acquisition method provided in the embodiments of the present application.
[0039] Scenario 1: Assume that a user parks in a parking lot and needs to use an electronic device to take a photo of the vehicle and save a photo of the vehicle's location in the parking lot to record the vehicle's location information through the photo. After the user opens the camera application, the electronic device can display a temporary shooting control, and then the user can input the temporary shooting control so that the electronic device can take a photo of the vehicle's location in the parking lot and save the photo 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, thereby preventing the photo from continuing to occupy the storage space of the electronic device.
[0040] Scenario 2: Assume that the user has ordered a train ticket and needs to use an electronic device to take a screenshot of the train ticket's electronic ticket to record the ticket information, including train number, platform number, carriage number, seat number, etc., through the screenshot. The user can swipe up with three fingers on the electronic ticket when the electronic device displays the electronic ticket, so that the electronic device can take a screenshot of the electronic ticket and save the screenshot 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, thereby preventing the screenshot from continuing to occupy the storage space of the electronic device.
[0041] Scenario 3, suppose the user goes to a tourist attraction and needs to use an electronic device to take a photo of the attraction map sign to record the route information during the visit through the photo. After the user opens the camera application, the electronic device can display the shooting control, and then the user can input the shooting control so that the electronic device can take a photo of the attraction map sign and identify the photo. Then, the electronic device can determine that the photo is a photo of the attraction map sign, and the user may use it to view the route information of the attraction. The photo is only valid during the tour. The electronic device can then determine that the photo is a temporary photo and save the photo in a temporary folder. After the electronic device detects that the user has left the tourist attraction through location information, the electronic device can determine that the route information in the photo has expired and delete the photo, thereby preventing the photo from continuing to occupy the storage space of the electronic device.
[0042] It should be noted that the above-mentioned scenarios 1 to 3 are only illustrative examples of some scenarios in which the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to more possible scenarios that require storing temporary images, and the embodiments of the present application are not limited here.
[0043] Based on the above-mentioned scenarios applied by the embodiments of the present application, the embodiments of the present application provide an image acquisition method, apparatus, electronic device, storage medium and program product. A user can trigger the electronic device to acquire an image with a shelf life through a first input that is different from a second input that triggers the electronic device to acquire an image without a shelf life. That is, 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 when the storage time of the image is greater than or equal to the shelf life. Thus, the image can be no longer saved, thereby avoiding a large number of useless images whose temporary information has expired occupying the storage space of the electronic device. In this way, the storage space occupied by the electronic device is reduced and the storage space of the electronic device is saved.
[0044] The execution subject of the image acquisition method provided in the embodiment of the present application may be an image acquisition device, which may be an electronic device, or a functional module or functional entity in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.
[0045] Figure 1 A flowchart of an image acquisition method provided by an embodiment of the present application is shown. Figure 1 As shown, the image acquisition method provided in the embodiment of the present application may include the following steps 201 to 202.
[0046] Step 201: An electronic device receives a first input.
[0047] In the embodiment of the present application, the first input is used to trigger the electronic device to acquire the first image.
[0048] Optionally, in the embodiment of the present application, the first input includes but is not limited to: a user touch-control input to the electronic device through a touch-control device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input. The specific input can be determined according to actual use requirements and is not limited in the embodiment of the present application.
[0049] Optionally, in the embodiment of the present application, the touch input may be a single-click input, a double-click input, or any number of click inputs, or may be a long-press input, a short-press input, or the like.
[0050] In an embodiment of the present application, the above-mentioned first image is a captured image or a screenshot image, the above-mentioned first image is an image of a first saved type, the above-mentioned first input is different from the second input, the second input is used to trigger the acquisition of an image of a second saved type, the image of the first saved type has a shelf life, and the image of the second saved type does not have a shelf life.
[0051] In the embodiment of the present application, the above-mentioned first storage type image is also called a temporary image, and the electronic device can no longer store the first storage type image with a storage period when the storage time is greater than or equal to the storage period of the image. The above-mentioned second storage type image is also called a non-temporary image, and the electronic device can store the second storage type image without a storage period for a long time.
[0052] Optionally, in an embodiment of the present application, the above-mentioned first image can be an image captured by a user through a camera of the electronic device, or an image of an interface in the electronic device captured by the user using the electronic device, or an image imported into the electronic device by the user from other storage devices, or an image downloaded by the electronic device from the network. The specific image can be determined based on actual usage requirements and is not limited in the embodiment of the present application.
[0053] For example, the first image is an image captured by a user through a camera of an electronic device. When a user attends a concert, he or she may use an electronic device to capture a photo of the band's logo on the stage to record relevant information about the concert. The electronic device may use the photo as the first image.
[0054] As another example, the first image is an image of an interface in an electronic device captured by a user using an electronic device. Assume that a user is exercising using a fitness application. After completing a set of specific training movements, the fitness application will display an interface with information such as the completion data, number of calories burned, and exercise performance rating of the set of movements. In order to record their fitness results and data, the user uses the screenshot function of the electronic device to capture this interface image, and the electronic device can use the screenshot as the first image.
[0055] As another example, the first image is an image imported from another storage device by the user into the electronic device. Assume that the user has an external hard disk, which stores activity photos taken at work to record the activity process. The user imports a work photo of the activity site from the external hard disk into the electronic device, and the electronic device can use this group photo as the first image.
[0056] As another example, the first image is an image downloaded from the Internet by the electronic device. Assume that the user is collecting information for a medical report, and when browsing a medical website, the user downloads a very rare patient photo from the website interface to the electronic device, and the electronic device can use the patient photo as the first image.
[0057] Optionally, in the embodiment of the present application, the first image is a photographed image. Figure 1 ,like Figure 2As shown, the above step 201 can be specifically implemented through the following step 201a.
[0058] Step 201a: The electronic device receives a first input to a first control in the shooting preview interface.
[0059] Optionally, in an embodiment of the present application, the above-mentioned shooting preview interface also includes a second control, and the second control is used to trigger the acquisition of the captured image of the second save type.
[0060] In the embodiment of the present application, the above-mentioned shooting preview interface is an interface in the camera application for displaying the content shot by the camera, and is used for performing operations related to shooting.
[0061] Optionally, in the embodiment of the present application, the first input may be a click input of the user on the first control.
[0062] In the embodiment of the present application, the first control is also called a temporary shutter, which is used to capture a temporary image. It is understandable that the user can trigger the electronic device to capture a temporary image by inputting the temporary shutter.
[0063] For example, the electronic device is a mobile phone. Figure 3 As shown in (a) of FIG. 1 , when the mobile phone displays a shooting preview interface 10 of a camera application, a temporary shutter floating button 11 is displayed in the side area of the screen of the mobile phone, and the user can click the temporary shutter floating button 11 for input, such as Figure 3 As shown in (b) of FIG. 1 , the mobile phone is triggered to display a temporary shutter 12, that is, the first control mentioned above. The user can click the temporary shutter 12 to trigger the mobile phone to shoot a temporary image.
[0064] As another example, Figure 4 As shown, when the mobile phone displays the shooting preview interface 10 of the camera application, the mobile phone can display a temporary shutter 12 at the bottom of the screen, that is, the first control mentioned above. The user can click the temporary shutter 12 to trigger the mobile phone to shoot a temporary image.
[0065] Optionally, in an embodiment of the present application, the user may also trigger the electronic device to capture a temporary image by inputting a physical key or a combination of physical keys of the electronic device.
[0066] Optionally, in an embodiment of the present application, a user can turn on a temporary shutter function in the camera settings of an electronic device. After turning on the temporary shutter function, the electronic device can display a temporary shutter floating button on the side of the screen while displaying the shooting preview interface of the camera application. The user can click or drag the shutter floating button to call out the temporary shutter. Alternatively, the user can also drag the shutter floating button to the right side of the main shutter so that the electronic device displays a temporary shutter fixed button on the right side of the main shutter. The user clicks the temporary shutter to trigger the electronic device to take photos, which can be automatically stored in a temporary picture folder in the album application.
[0067] Optionally, in the embodiment of the present application, after the electronic device captures the first image, the first image can be marked as a temporary image, so that the electronic device can store the first image in the first folder. Therefore, if the storage time 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 an embodiment of the present 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, during a performance, a user needs to use a mobile phone to take a photo of the stage performance to share it on a social platform or communicate with friends about the event on the day of the event. Figure 4 ,like Figure 5 As shown, the user can open the camera application of the mobile phone so that the mobile phone displays the shooting preview interface 10 of the camera application, and the shooting preview interface 10 includes a temporary shutter 12, that is, the first control mentioned above. The user can aim the camera of the mobile phone at the performers on the stage so that the preview image 13 is displayed in the shooting preview interface 10. Then the user can input the temporary shutter 12 so that the electronic device marks the preview image 13 as a temporary image and stores it in the first folder. 15 days after the preview image 13 is 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, the user can input a temporary shutter that is different from the main shutter so that the electronic device will mark the image as a temporary image when taking the image. Therefore, when using the electronic device to take images, the user can freely choose whether to mark the taken image as a temporary image by inputting different shutters, thereby improving the flexibility of the user in taking images using the electronic device.
[0071] Optionally, in the embodiment of the present application, combined with Figure 2 ,like Figure 6As shown, before the above step 201a, the method provided in the embodiment of the present application also includes the following step 301.
[0072] Step 301: When the shooting preview content of the shooting preview interface has a temporary storage attribute, the electronic device displays a first control.
[0073] In the embodiment of the present application, the above-mentioned shooting preview content is the content displayed by the electronic device in the shooting preview interface of the camera application and can be captured by the camera.
[0074] Optionally, in an embodiment of the present application, after detecting the shooting preview content, the electronic device can analyze the pixel features of the shooting preview content, such as color value, brightness, etc. By setting a threshold or a clustering algorithm, areas with similar pixel features are divided out. The electronic device can also calculate the change pattern of pixels in the local area by calculating the grayscale co-occurrence matrix and other methods, thereby analyzing the texture features of the shooting preview content, and using pixel features and texture features to distinguish different objects in the shooting preview content. Then, the electronic device can slide predefined feature templates, such as face templates, common logo templates, etc. in the shooting preview content, calculate the matching degree of these templates with the pixel features and texture features of the local area of the shooting preview content, find the area with a high matching degree with the template, and thus detect the image content. After detecting the image content, the electronic device can calculate the shape, size, position, color distribution, etc. of the image content, so as to obtain detailed information on the image content.
[0075] Optionally, in an embodiment of the present application, the above-mentioned image content is various information that can be used for identification and analysis, such as character appearance, posture and movement, scene layout, color, text, logo and interface elements contained in the image.
[0076] Optionally, in the embodiment of the present application, when the preview content includes a person, the image content may be the person's appearance, posture, and actions, such as facial expressions, hairstyles, and clothing. For example, the person in the photo has a smiling expression, has long hair, wears a white dress, has his hands hanging naturally, and is looking forward. These image contents can be used to identify the person's identity, analyze the person's status, etc.
[0077] For example, if a person in a photo is carrying a blue schoolbag with a school emblem printed on it, and wearing a blue school uniform with the student's grade and class number embroidered on the chest of the shirt, the person can be identified as a student of a certain school through the image content such as the school uniform and the schoolbag with the school emblem, and the class the student is in can be accurately known based on the grade and class number, thereby identifying the student.
[0078] For example, if a person in a photo is wearing casual jeans and a loose T-shirt, holding a wine glass in one hand and waving the other hand in the air, with a bright smile on his face and his body swaying slightly, and a group of people around him are also smiling and looking at him, from the casual style of the person's clothing and the waving of his arms and body, it can be analyzed that the person is in a relaxed, happy and relatively active state in this social occasion, and may be the focus of the party.
[0079] Optionally, in an embodiment of the present application, when the shooting preview content includes a scene, the image content may be the layout of objects, colors, etc. in the scene. For example, in a photo of a shopping mall, the shops are scattered in an orderly manner, the central area is equipped with benches and large decorative ornaments for customers to rest, the elevators are located on both sides of the mall, the overall color tone of the mall is bright, the floor is made of off-white marble tiles, and the shop signs are colorful and varied. These image contents can be used to determine the specific shooting scene of the first image.
[0080] For example, if the photo contains many dining tables, chairs, and cash registers and the colors are warm and bright, the shooting scene may be a restaurant or hotel; if the photo includes natural elements such as mountains, rivers, flowers, plants, and trees, and the colors are mainly natural colors such as green and blue, then the shooting scene may be a scenic spot; 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, then the shooting scene may be a parking lot.
[0081] Optionally, in the embodiment of the present application, the above-mentioned shooting preview content having a temporary storage attribute can be understood as the shooting preview content including objects with time-limited use value. For example, the specific type of object can be objects such as attraction tickets, promotional products, limited-time coupons, and event commemorative badges.
[0082] For example, in a photo of a ticket to a tourist attraction, the electronic device can identify the ticket in the photo. Since the ticket is only required to be viewed during the visit to the attraction and is an object with time-limited use value, the ticket belongs to the above-mentioned specific type of object, 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 activity interface of a shopping software, the electronic device can identify information such as the activity name, promotional time period, and discounted products, and determine that the image content is a promotional activity interface. Since this screenshot of the promotional activity interface is only meaningful to view during the promotion period and is an object with time-limited use value, the promotional activity interface is also a specific type of object, and the electronic device can mark the first image including this object as a temporary image.
[0084] Optionally, in the embodiment of the present application, the above-mentioned shooting preview content with temporary storage attributes can be understood as the shooting preview content including scenes with time-limited use value. For example, the specific shooting scene can be a parking lot, an examination room, a shopping mall, a cinema, a concert, etc.
[0085] Exemplarily, the first image is a photo of a parking lot. The electronic device recognizes the parking fee QR code, parking space number, parking area sign, and time-limited parking sign in the first image, and determines that the shooting scene of the first image is a parking lot. The photo of the parking lot is only worth viewing during the time period when the vehicle is parked in the parking lot, so that users can find their own vehicles. Once the vehicle leaves the parking lot, the first image will no longer be used and has obvious timeliness. Therefore, the parking lot belongs to a specific shooting scene, and the electronic device can mark the first image taken in this scene as a temporary image.
[0086] As another example, the first image is a photo of the entrance to the examination room. The electronic device recognizes that the first image contains content such as the examination room sign, a picture of many candidates waiting to enter, and banners related to the examination. These contents are only worth viewing during the period when candidates are waiting to enter the examination room on the day of the examination, and are time-sensitive. Therefore, the entrance to the examination room belongs to a specific shooting scene, and the electronic device can mark the first image taken in this scene as a temporary image.
[0087] In an embodiment of the present 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, thereby displaying the first control when the image content of the captured preview content indicates that the user's intention is to temporarily store the captured preview content.
[0088] In this way, the electronic device can judge the user's intention based on the image content of the captured preview content and automatically display the first control without the user manually triggering the display, thereby reducing the user's operation complexity.
[0089] Optionally, in the embodiment of the present application, the first image is a screenshot image. Figure 1 ,like Figure 7 As shown, the above step 201 can be specifically implemented through the following step 201b.
[0090] Step 201b: The electronic device receives a first input to a third control in the first interactive interface.
[0091] In the embodiment of the present application, the above-mentioned first interactive interface also includes a fourth control, and the fourth control is used to trigger the acquisition of a screenshot image of the second save type.
[0092] It should be noted that the user can trigger the electronic device to capture a screenshot image of the second save type by making a second input to the fourth control. For example, the input can be sliding down with three fingers, long pressing the screen and clicking the screenshot option (i.e., the fourth control mentioned above), etc. The first input in the embodiment of the present application is an input different from the input. For example, the first input can be swiping up with three fingers, long pressing the screen and clicking the temporary screenshot option (i.e., the third control mentioned above), etc.
[0093] It can be understood that the user can trigger the electronic device to capture a non-temporary image by making a second input to the fourth control, or can trigger the electronic device to capture a temporary image by making a first input to the third control.
[0094] In the embodiment of the present application, the above-mentioned first interactive interface can be any interface, for example, a navigation interface, a web page interface, a conversation interface, a shopping interface, a reading interface or a video playback interface.
[0095] For example, Figure 8 As shown, taking the navigation interface as an example, it is assumed that the user has planned a route 15 from home to a new workplace in the navigation interface 14 of the navigation application, and needs to temporarily save the route information of the route for quick viewing of the route information in the first few days when the user is not familiar with the route. The user can make a first input on the navigation interface 14, such as a three-finger upward swipe input on the navigation interface 14, to trigger the mobile phone to temporarily capture the navigation interface 14.
[0096] As another example, Fig. 9 As shown, taking the shopping interface as an example, assuming that the shopping interface 16 of the shopping application includes the configuration information 17 of a laptop computer, the user needs to take a temporary screenshot of the shopping interface 16 to consult the customer service for the detailed content of the configuration information 17 of the laptop computer. The user can make a first input to the shopping interface 16, such as long pressing the screen and selecting the temporary screenshot option, to trigger the mobile phone to take a temporary screenshot of the shopping interface 16.
[0097] Optionally, in an embodiment of the present application, the electronic device may receive a specific gesture input to the first interactive interface.
[0098] Optionally, in the embodiment of the present application, the above-mentioned specific gesture input may be a default one of the electronic device or a preset one of the user. For example, the above-mentioned specific gesture input may be any one of three-finger upward swipe, two-finger long press, specific graphic input, long press the screen and select the temporary screenshot option, etc. The specific one may be determined according to actual use requirements, and the embodiment of the present application does not limit it.
[0099] For example, Fig.10As shown, the mobile phone displays a news web page interface 20, which includes news and a scroll bar 21. The user is reading the news, but needs to switch to another application immediately to handle urgent matters, and wants to temporarily save the browsing position of the current web page. The user presses the news web page interface 20 with two fingers, triggering the mobile phone to take a screenshot of the web browsing interface 20, obtain a first image, mark it as a temporary image and save it in a first folder. Two hours after the first image is saved in the first folder, the mobile phone determines that the browsing position information in the first image has expired, for example, the news content may have been updated or the user has re-browsed it on other devices, then the mobile phone can delete the first image from the first folder.
[0100] In an embodiment of the present application, the electronic device can store image content generated by methods other than traditional shooting / screenshot methods in a temporary folder, thereby distinguishing between content with long-term storage attributes and temporary attributes for easy management by the user.
[0101] Optionally, in an embodiment of the present 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, Fig.11 As shown, the mobile phone displays a video playback interface 18, which includes a movie being played and a progress bar 19. At this time, the user needs to go out for something temporarily, and needs to temporarily save the playback progress information of the movie so that he can continue watching it after returning home. The user can input a three-finger upward swipe on the video playback interface 19 to trigger the mobile phone to take a screenshot of the video playback interface 19, obtain a first image, and mark the first image as a temporary image and store it in the first folder. One day after the first image is saved in the first folder, the mobile 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 a first input to the third control in the first interactive interface so that the electronic device marks the image as a temporary image when capturing an image. Therefore, when using the electronic device to capture an image, the user can freely choose whether to mark the captured image as a temporary image by making different inputs to the electronic device, thereby improving the flexibility of the user in using the electronic device to capture images.
[0104] Optionally, in the embodiment of the present application, combined with Figure 7 ,like Fig.12 As shown, before the above step 201b, the method provided in the embodiment of the present application also includes the following step 401.
[0105] Step 401: When the screenshot preview content of the screenshot preview interface has a temporary storage attribute, the electronic device displays a third control.
[0106] In the embodiment of the present application, the screenshot preview interface is an interface that the user triggers the electronic device to capture, and the screenshot preview content is the content that the user triggers the electronic device to capture. The screenshot preview content has a temporary storage attribute, which can be understood as the screenshot preview content includes objects with time-limited use value.
[0107] Optionally, in the embodiment of the present application, when the first image is a screenshot image, the image content of the first image may be text, logo, layout of interface elements, etc. in the image. For example, a screenshot image of a shopping application includes an introduction text of a product, logos such as a product image, price tag, and purchase button, and a layout of interface elements composed of the relative positions of these image contents. These image contents can be used to determine the interface type in the first image.
[0108] For example, if the screenshot contains a large amount of product-related text, logos, and purchase-related interface element layouts, it is likely to be the interface of a shopping application; if the text in the image is mainly news headlines and main content, and the interface element layout focuses on the display of the article, such as the title font is large and at the top, the main text has clear paragraph divisions, and there are a small number of related logos such as sharing and commenting below or on the side of the article, then it can be judged as the interface of a news reading application.
[0109] Step 202: The electronic device acquires a first image in response to a first input.
[0110] In the embodiment of the present application, when the first image is a temporary image, the electronic device stores the first image in the first folder.
[0111] In the embodiment of the present application, when the storage time of the image in the first folder is greater than or equal to the storage period, the image in the first folder is deleted.
[0112] In the embodiment of the present application, the temporary image is an image containing temporary information required by the user.
[0113] In the embodiment of the present application, the temporary information is: information that is valid within a specific time, place, or event, and loses its original meaning or value once the range is exceeded.
[0114] For example, the athlete's entry certificate photo contains the athlete's entry information. This entry information is only valid during the specific event of the Games, and is used to confirm the athlete's eligibility to enter the competition venue, athlete rest area and other related areas. When the Games are closed, the entry information in the entry certificate photo becomes temporary information that is no longer valid for the specific event of the Games.
[0115] Optionally, in an embodiment of the present application, the temporary information may be related to 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 an embodiment of the present application, when the above-mentioned temporary information is related to a specific time, the validity of the temporary information is time-limited.
[0117] For example, the train number, platform number, carriage number, seat number and other information in the screenshot of the train electronic ticket are only valid during the time period when the user is on the train, and lose their value after the user's time on the train is over. For another example, the pickup code, estimated delivery time and other information in the screenshot of the takeaway order details are only valid before the user picks up the food, and are no longer meaningful after the user picks up the food.
[0118] Optionally, in an embodiment of the present application, when the above-mentioned 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 parking location information in a parking lot vehicle location photo is only useful within the parking lot space environment. Once the vehicle leaves the parking lot, the parking location information loses its value. For another example, the scenic area map information in a scenic area map photo is only useful within the geographical location of the scenic area. Once the user leaves the scenic area after the tour, the scenic area map information loses its value.
[0120] Optionally, in an embodiment of the present application, when the above-mentioned 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. During the reading process, the user uses an electronic device to take a photo of a key plot page in the book, such as the page that reveals the identity of the murderer. This photo can be considered an image containing temporary information, where the temporary information is the plot information related to the suspense novel. For the user, this plot information is more important during the reading process of the book, and may be used to discuss the plot with friends or to reminisce about it. However, when the user starts reading other books or loses enthusiasm for the novel, this plot information is no longer important.
[0122] Optionally, in an embodiment of the present application, the temporary information may be related to at least two elements at the same time.
[0123] For example, taking the temporary information related to both time and events as an example, suppose that when a student takes an online course, he intercepts the course number and class time of the online live course. This information is only valid during the course event within the course time period, and the student can participate in the course at home, in the office or anywhere else. When the course event ends, the time exceeds the class time period, and this information becomes useless.
[0124] As another example, taking the temporary information being related to time, space, and events at the same time, suppose that when a user attends a business meeting, he receives a screenshot of the meeting information through an electronic device, and the screenshot of the meeting information contains meeting-related information, such as meeting content, meeting location, meeting time range, etc. This information is only valid during the meeting event in the specific place of the meeting location and within the meeting time period. After the meeting event ends, if the user leaves the meeting location or the time exceeds the meeting time period, this information becomes useless information.
[0125] In the embodiment of the present application, the first folder may also be referred to as a temporary folder for storing temporary images.
[0126] Optionally, in an embodiment of the present application, when the acquired first image is a temporary image, the electronic device may create a first folder and store the first image in the first folder.
[0127] Optionally, in an embodiment of the present application, the electronic device may pre-create a first folder, and when a first image that is a temporary image is acquired, the electronic device may directly store the first image in the first folder.
[0128] Optionally, in an embodiment of the present application, the electronic device may display the first folder in an application interface of an image management type application (eg, an album application).
[0129] Optionally, in an embodiment of the present application, the electronic device may display a first folder in a temporary file management application. The 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 image" folder, a "temporary audio" folder, and a "temporary document" folder, wherein the "temporary image" folder is the first folder mentioned above.
[0130] Optionally, in an embodiment of the present application, the electronic device may directly display the first folder in the desktop interface to facilitate the user to quickly access and manage the first folder.
[0131] Optionally, in the embodiment of the present application, the above-mentioned preservation period may be a default of the electronic device or a preset by the user. For example, the above-mentioned preservation period may be 7 days, 15 days, 30 days, etc. The specific preservation period may be determined according to actual use requirements, and the embodiment of the present application does not limit it.
[0132] For example, when students are learning a programming course online, the teacher shows a code example, and the students use an electronic device to take a screenshot of the code example. These code examples are important content in the programming knowledge of this course and are temporary information related to the event of learning this course. In the process of students learning this programming knowledge, the code examples in the screenshot help students understand programming concepts and syntax, but when students master this programming knowledge and start to learn other programming knowledge, the value of the code examples in this screenshot decreases. After 7 days, the electronic device can determine that the temporary information in the screenshot has expired and delete the screenshot, thereby preventing the screenshot from continuing to occupy the storage space of the electronic device.
[0133] Optionally, in the embodiment of the present application, the specific content of the first image determines the corresponding preservation period, that is, the preservation periods corresponding to the specific content of different images may be different.
[0134] For example, if the first image is a photo of a tourist attraction, the electronic device can identify the specific image content of the tourist attraction, such as the landmark buildings, beautiful scenery, and tourists taking photos, and determine that the first image is a photo of a tourist attraction. Photos of tourist attractions are photos containing specific image content related to tourism, which are usually viewed within one month after the trip, so the electronic device can determine that the storage period is 30 days.
[0135] As another example, taking the first image as a screenshot of a train ticket, the electronic device can identify the specific contents of the image such as the train number, departure station, arrival station, departure time, arrival time, seat number, etc., and determine that the first image is a screenshot of a train ticket. Since the specific contents of the image such as the train number, departure station, arrival station, departure time, arrival time, seat number, etc. of the train ticket are mainly useful within a period of time when taking a train, such as going to the station, finding a seat, etc., the electronic device can thus determine that the preservation period is 1 day after the arrival time of the itinerary information in the ticket, that is, the screenshot of the train ticket is deleted the day after the user arrives at the destination by train. For example, the arrival time of the ticket is 15:00 p.m. on July 16, and the time when the user intercepted the screenshot of the train ticket is 8:00 a.m. on July 13, the electronic device determines that the preservation period is 4 days and 7 hours, that is, the screenshot of the train ticket is deleted at 15:00 p.m. on July 17.
[0136] In an embodiment of the present application, in a scenario where temporary pictures are taken or captured, a user can perform shooting and screenshot operations on the electronic device in a manner different from traditional methods, so that the electronic device can automatically store the pictures in a temporary folder. The contents in the temporary folder will be automatically cleared after a certain period of time, thereby cleaning up useless junk pictures, reducing memory usage, improving system fluency, and improving the efficiency of album picture management.
[0137] The embodiments of the present application provide an image management method, apparatus, electronic device, storage medium and program product. A user can trigger an electronic device to acquire an image with a shelf life by using a first input that is different from a second input that triggers the electronic device to acquire an image without a shelf life. That is, the electronic device can consider that temporary information in the image has expired and there is no need to continue to save the image when the storage time of the image is greater than or equal to the shelf life. Thus, the image can be no longer saved, thereby avoiding a large number of useless images whose temporary information has expired occupying the storage space of the electronic device. In this way, the storage space occupied by the electronic device is reduced and the storage space of the electronic device is saved.
[0138] Optionally, in the embodiment of the present application, the first image is a photographed image. Figure 1 ,like Fig.13 As shown, the above step 201 can be implemented through the following step 201c, and the above step 202 can be implemented through the following step 202a and step 202b.
[0139] Step 201b: The electronic device receives a first input to a second control in the shooting preview interface.
[0140] Step 202a: The electronic device acquires a captured image in response to the first input.
[0141] Step 202b: When 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 a first image.
[0142] In the embodiment of the present application, the second control is also used to trigger the acquisition of the captured image of the second save type.
[0143] Optionally, in an embodiment of the present application, after the user triggers the electronic device to acquire a captured image by means of a first input to the second control, the electronic device may identify and analyze image content of the captured image, and determine the user's intention based on the image content, thereby marking the captured image as a temporary image when the image content of the captured image indicates that the user's intention is to temporarily store the captured image, and the electronic device may then associate a shelf life with the captured image to obtain a captured image with a shelf life, i.e., the first image.
[0144] For example, assuming that the captured image is a photo of a scenic spot map sign, the electronic device can recognize that the photo includes the map sign, and the background of the map sign includes natural elements such as mountains, waters, flowers, and trees, and the colors are mainly natural colors such as green and blue. The shooting scene may be a scenic spot, so it can be determined that the user's intention is: the user may want to record the route for use when traveling in the scenic spot. Therefore, the electronic device can determine that the user's intention is to temporarily store a temporary image, and thus mark the temporary image as a temporary image. Assuming the storage period is 7 days, the electronic device can associate the storage period of 7 days with the captured image to obtain a first image with a storage period of 7 days.
[0145] In this way, when the user triggers the electronic device to acquire a captured image through the first input of the second control, the electronic device can judge 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 the need for the user to manually distinguish it, thereby reducing the complexity of the user's operation.
[0146] Optionally, in the embodiment of the present application, the first image is a screenshot image. Figure 1 ,like Fig.14 As shown, the above step 201 can be implemented through the following step 201d, and the above step 202 can be implemented through the following step 202c and step 202d.
[0147] Step 201d: The electronic device receives a first input to the first interactive interface.
[0148] Step 202c: The electronic device obtains a screenshot image in response to the first input.
[0149] Step 202d: When the image content of the screenshot image has a temporary storage attribute, the electronic device associates the storage period with the screenshot image to obtain a first image.
[0150] In the embodiment of the present application, the above-mentioned first input is also used to trigger the acquisition of a screenshot image of a second save type.
[0151] Optionally, in an embodiment of the present application, after the user triggers the electronic device to obtain a screenshot image through a first input to the first interactive interface, the electronic device can identify and analyze the image content of the screenshot image, and judge the user's intention based on the image content, thereby marking the screenshot image as a temporary image when the image content of the screenshot image represents the user's intention to temporarily store the screenshot image, and then the electronic device can associate a shelf life with the screenshot image to obtain a screenshot image with a shelf life, i.e., the first image.
[0152] For example, assuming that the screenshot image is a screenshot 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, arrival time, etc., and also includes seat information, such as car number, seat number, etc., and the screenshot contains elements such as the railway company's logo. The electronic device determines that the temporary image may be a screenshot of a train ticket. Thus, it can be determined that the user's intention is: the user may want to conveniently view the itinerary information during the ride. Therefore, the electronic device can determine that the user's intention is to temporarily store the temporary image, thereby marking the temporary image as a temporary image. Assuming the shelf life is 14 days, the electronic device can associate the shelf life of 14 days with the screenshot image to obtain a first image with a shelf life of 14 days.
[0153] In this way, when the user triggers the electronic device to obtain a screenshot image through the first input of the first interactive interface, the electronic device can judge 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 the need for the user to manually distinguish it, thereby reducing the complexity of the user's operation.
[0154] Optionally, in the embodiment of the present application, the image acquisition method provided in the embodiment of the present application also includes the following steps 501 and 502.
[0155] Step 501: The electronic device receives a third input.
[0156] Step 502: The electronic device acquires a third image in response to a third input.
[0157] In the embodiment of the present 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, and the storage period of the image of the third storage type is different from that of the image of the first storage type.
[0158] Optionally, in an embodiment of the present application, the third input may be a three-finger left swipe, a three-finger right swipe, long pressing the screen and clicking a shelf life option, etc., and the shelf life option is used to select a shelf life for the third image.
[0159] For example, assuming that the first input is a three-finger swipe up, the second input is a three-finger swipe down, and the third input is a three-finger swipe right, the first image is retained for 7 days, and the third image is retained for 30 days. Assume that in the video playback interface of a TV series, the user wants to obtain a screenshot with a wonderful moment mark as the third image so that he can quickly review a certain plot in the TV series later. The user estimates that it will take a month to finish watching the TV series, and may view the screenshot many times during this period. The user can trigger the electronic device to obtain the screenshot image containing the wonderful moment mark by swiping right with three fingers on the video playback interface, and set the retention period of the image to 30 days.
[0160] In this way, the user can trigger the electronic device to obtain first images with different preservation periods through different inputs, thereby meeting the user's various different needs and improving the flexibility of image acquisition.
[0161] Optionally, in the embodiment of the present application, the image acquisition method provided in the embodiment of the present application also includes the following step 601.
[0162] Step 601: The electronic device saves a first image to a first image folder.
[0163] In the embodiment of the present application, the photo album application further has a second image folder, and the second image folder is used to store images of the second save type.
[0164] Optionally, in the embodiment of the present application, the electronic device may receive a fourth input of the first image in the first folder.
[0165] In the embodiment of the present 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 the embodiment of the present application, the fourth input may be an input of dragging the first image to the second folder. Alternatively, the fourth input may be an input of long pressing the first image so that the electronic device displays image options and clicking on a move option in the image options.
[0167] In the embodiment of the present application, the second folder can be any folder in the electronic device except the first folder, and is used to store non-temporary images. That is, the images in the second folder will not be automatically deleted by the electronic device if the storage time is greater than or equal to the storage period.
[0168] Optionally, in an embodiment of the present application, the electronic device may display the identifier of the first folder in an application interface of an image management type application (e.g., an album application). The user may input the identifier of the first folder so that the electronic device displays the first folder interface, which includes temporary images stored by the electronic device. The user may make a fourth input to the first image in the temporary image so that the electronic device moves the first image from the first folder to the second folder for storage.
[0169] For example, Fig.15 As shown in (a) of FIG. 1 , the mobile phone displays the main interface 22 of the photo album application, including the logos of the "travel" folder 23 and the "temporary image" folder 24. The user can click the logo of the "temporary image" folder 21, such as Fig.15(b) in the figure makes the electronic device display a temporary image interface 25, including a group photo 26 taken by the user with friends when traveling last weekend. The group photo 26 will be deleted by the electronic device 15 days after being stored in the "temporary image" folder 24. After viewing the group photo 26, the user believes that it should be kept for a long time as a souvenir. Then the user can perform a fourth input on the group photo 26, such as long pressing the group photo 26. Fig.15 As shown in (c) in the figure, the electronic device displays image options, including a "restore" option 27 and a "delete" option 28. The user can then click on the "restore" option 27 to cause the electronic device to move the group photo 26 from the "temporary image" folder 24 to the "travel" folder 23, so that the electronic device will not delete the group photo 26 after 15 days.
[0170] Optionally, in the embodiment of the present application, the user can input a deletion command 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, in combination Fig.15 (c) in Fig.16 As shown in (a) of FIG. 1 , the electronic device can click and input the “delete” option 28, such as Fig.16 As shown in (b) in the figure, the electronic device deletes the group photo 26 from the “temporary image” folder 24 .
[0172] In this way, the user can operate the temporary images in the first folder, so that the images with timeliness can be managed according to the user's needs, and important temporary images can be prevented from being automatically deleted.
[0173] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0174] The image acquisition method provided in the embodiment of the present application can be executed by an image acquisition device. In the embodiment of the present application, the image acquisition device provided in the embodiment of the present application is described by taking the image acquisition method executed by the image acquisition device as an example.
[0175] Fig.17 A possible structural schematic diagram of an image acquisition device involved in some embodiments of the present application is shown. Fig.17 As shown, the image acquisition device 70 may include: a receiving module 71 and an acquisition module 72 .
[0176] The receiving module 71 is used to receive a first input.
[0177] The acquisition module 72 is configured to acquire a first image in response to the first input received by the receiving module 71 .
[0178] Among them, the above-mentioned first image is a captured image or a screenshot image, the above-mentioned first image is an image of a first saved type, the above-mentioned first input is different from the second input, the second input is used to trigger the acquisition of an image of a second saved type, the image of the first saved type has a shelf life, and the image of the second saved type does not have a shelf life.
[0179] In a 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, the third input is different from the first input and the second input, and the storage period of the image of the third storage type is different from that of the image of the first storage type.
[0180] In a possible implementation, the first image is a captured image. The receiving module 71 is specifically configured to receive a first input to a first control in a capture preview interface. The capture preview interface further includes a second control, which is configured to trigger acquisition of a captured image of a second save type.
[0181] In one possible implementation, combining Fig.17 ,like Fig.18 As shown, the image acquisition device 70 provided in the embodiment of the present application further includes: a display module 73. The display module 73 is used to display the first control in the shooting preview interface before the receiving module 71 receives the first input to the first control in the shooting preview interface, when the shooting preview content in the shooting preview interface has a temporary storage attribute.
[0182] In a possible implementation, the first image is a captured image. The receiving module 71 is specifically used to receive a first input to a second control in the capture preview interface. The acquisition module 72 is specifically used to: acquire the captured image in response to the first input received by the receiving module 71; and, when 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 the captured image of the second storage type.
[0183] In a possible implementation, the first image is a screenshot image. 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 also includes a fourth control, and the fourth control is used to trigger the acquisition of a screenshot image of the second save type.
[0184] In one possible implementation, combining Fig.17 ,like Fig.18 As shown, the image acquisition device 70 provided in the embodiment of the present application further includes: a display module 73. The display module 73 is used to display the third control when the screenshot preview content of the screenshot preview interface has a temporary save attribute before the receiving module 71 receives the first input to the third control in the first interactive interface.
[0185] In a possible implementation, the first image is a screenshot image. 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, when the image content of the screenshot image has a temporary storage attribute, associate a storage period with the screenshot image to obtain the first image; wherein the first input is also configured to trigger acquisition of a screenshot image of a second storage type.
[0186] In one possible implementation, combining Fig.17 ,like Fig.19 As shown, the image acquisition device 70 provided in the embodiment of the present application 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 album application also has a second image folder, and the second image folder is used to store images of the second save type.
[0187] An image acquisition device is provided in an embodiment of the present application. A user can trigger the image acquisition device to acquire an image with a preservation period through a first input that is different from a second input that triggers the image acquisition device to acquire an image without a preservation period. That is, the image acquisition device can consider that temporary information in the image has expired when the preservation time of the image is greater than or equal to the preservation period, and there is no need to continue to save the image. Thus, the image can be no longer saved, thereby avoiding a large number of useless images whose temporary information has expired occupying the storage space of the image acquisition device. In this way, the storage space occupied by the image acquisition device is reduced.
[0188] The image acquisition device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0189] The image acquisition device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0190] The image acquisition device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0191] Alternatively, if Fig. 20 As shown, an embodiment of the present application further provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores programs or instructions that can be executed on the processor 1001, and when the program or instructions are executed by the processor 1001, the various steps of the above-mentioned image acquisition method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0192] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0193] Fig.21 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0194] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0195] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.21 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0196] The user input unit 107 is used to receive a first input.
[0197] The processor 110 is configured to acquire a first image in response to a first input.
[0198] Among them, the above-mentioned first image is a captured image or a screenshot image, the above-mentioned first image is an image of a first saved type, the above-mentioned first input is different from the second input, the second input is used to trigger the acquisition of an image of a second saved type, the image of the first saved type has a shelf life, and the image of the second saved type does not have a shelf life.
[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, the third input is different from the first input and the second input, and the storage period of the image of the third storage type is different from that of the image of the first storage type.
[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 capture preview interface. The capture preview interface further 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 in the shooting preview interface before receiving the first input to the first control in the shooting preview interface when the shooting preview content in the shooting preview interface has a temporary storage attribute.
[0202] Optionally, the first image is a captured image. The user input unit 107 is specifically used to receive a first input to a second control in the capture preview interface. The processor 110 is specifically used to: obtain the captured image in response to the first input; and, when 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 the captured image of the second storage type.
[0203] Optionally, the first image is a screenshot image. 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, and the fourth control is used to trigger the acquisition of a screenshot image of the 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, when the screenshot preview content in the screenshot preview interface has a temporary saving attribute.
[0205] Optionally, the first image is a screenshot image. 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: obtain a screenshot image in response to the first input; and, when the image content of the screenshot image has a temporary storage attribute, associate a storage period with the screenshot image to obtain the first image; wherein the first input is also configured to trigger the acquisition of a screenshot image of a second storage type.
[0206] Optionally, the processor is used to save the first image to a first image folder; wherein the photo album application further has a second image folder, and the second image folder is used to store images of a second saved type.
[0207] An embodiment of the present application provides an electronic device, in which a user can trigger the electronic device to acquire an image with a shelf life through a first input that is different from a second input that triggers the electronic device to acquire an image without a shelf life. That is, the electronic device can consider that temporary information in the image has expired and there is no need to continue to save the image when the storage time of the image is greater than or equal to the shelf life. Thus, the image can be no longer saved, thereby avoiding a large number of useless images whose temporary information has expired occupying the storage space of the electronic device. In this way, the storage space occupied by the electronic device is reduced, and the storage space of the electronic device is saved.
[0208] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and can achieve the same technical effect. To avoid repetition, it is not repeated here. The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, it is not repeated here.
[0209] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: 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 keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0210] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0211] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
[0212] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image acquisition method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0213] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0214] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image acquisition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0215] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0216] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image acquisition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0217] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0218] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0219] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image acquisition method, characterized in that: include: receiving a first input; In response to the first input, acquiring a first image; Among them, the first image is a captured image or a screenshot image, the first image is an image of a first save 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 save type, the image of the first save type has a shelf life, and the image of the second save type does not have a shelf life.
2. The method according to claim 1, characterized in that The method further comprises: receiving a third input; In response to the third input, acquiring a third image; The third image is an image of a third storage type, the third input is different from the first input and the second input, and the image of the third storage type has a different storage period from the image of the first storage type.
3. The method according to claim 1, characterized in that The first image is a captured image; and the receiving a first input comprises: Receiving a first input to a first control in the shooting preview interface; The shooting preview interface further includes a second control, and the second control is used to trigger acquisition of the shot image of the second save type.
4. The method according to claim 3, characterized in that Before receiving a first input to a first control in the shooting preview interface, the method further includes: When the shooting preview content of the shooting preview interface has a temporary saving attribute, the first control is displayed.
5. The method according to claim 1, characterized in that The first image is a captured image; and the receiving a first input comprises: Receiving a first input to a second control in the shooting preview interface; The step of acquiring a first image in response to the first input comprises: In response to the first input, acquiring a captured image; In a case where the image content of the captured image has a temporary storage attribute, associating the storage period with the captured image to obtain the first image; The second control is also used to trigger the acquisition of the captured image of the second saved type.
6. The method according to claim 1, characterized in that The first image is a screenshot image; and the receiving a first input comprises: Receiving a first input to a third control in the first interactive interface; The first interactive interface further includes a fourth control, and the fourth control is used to trigger the acquisition of the screenshot image of the second save type.
7. The method according to claim 6, characterized in that Before receiving a first input to a third control in the first interactive interface, the method further includes: When the screenshot preview content of the screenshot preview interface has a temporary saving attribute, the third control is displayed.
8. The method according to claim 1, characterized in that The first image is a screenshot image; The receiving a first input comprises: Receiving a first input to a first interactive interface; The step of acquiring a first image in response to the first input comprises: In response to the first input, acquiring a screenshot image; In a case where the image content of the screenshot image has a temporary storage attribute, associating the storage period with the screenshot image to obtain the first image; The first input is also used to trigger obtaining a screenshot image of the second saving type.
9. The method according to claim 1, characterized in that: The method further comprises: saving the first image to a first image folder; The photo album application further has a second image folder, and the second image folder is used to store images of the second saved type.
10. An image acquisition device, characterized in that: include: Accept module and get module; The receiving module is used to receive a first input; The acquisition module is configured to acquire a first image in response to the first input received by the receiving module; Among them, the first image is a captured image or a screenshot image, the first image is an image of a first save 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 save type, the image of the first save type has a shelf life, and the image of the second save type does not have a shelf life.
11. The device according to claim 10, characterized in that The receiving module is further 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 an image of a third storage type, the third input is different from the first input and the second input, and the image of the third storage type has a different storage period from the image of the first storage type.
12. The device according to claim 10, characterized in that The first image is a captured image; the receiving module is specifically used to receive a first input to a first control in the capture preview interface; The shooting preview interface further includes a second control, and the second control is used to trigger acquisition of the shot image of the second save type.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the image acquisition method according to any one of claims 1 to 9 are implemented.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the image acquisition method according to any one of claims 1 to 9 are implemented.
15. A computer program product, characterized in that The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the image acquisition method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Information hiding method and terminal
CN104778416A
Picture clearing system and method
CN106649507A
Image storage control method, image storage control equipment and storage medium
CN111163258A
Screenshot cleaning method and device
CN113360067A
File storage method and device
CN113672745A