CN107193875B - Picture deleting method and device and computer-readable storage medium - Google Patents

Picture deleting method and device and computer-readable storage medium Download PDF

Info

Publication number
CN107193875B
CN107193875B CN201710263756.9A CN201710263756A CN107193875B CN 107193875 B CN107193875 B CN 107193875B CN 201710263756 A CN201710263756 A CN 201710263756A CN 107193875 B CN107193875 B CN 107193875B
Authority
CN
China
Prior art keywords
picture
pictures
loaded
selected state
visual interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710263756.9A
Other languages
Chinese (zh)
Other versions
CN107193875A (en
Inventor
熊跃平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201710263756.9A priority Critical patent/CN107193875B/en
Publication of CN107193875A publication Critical patent/CN107193875A/en
Application granted granted Critical
Publication of CN107193875B publication Critical patent/CN107193875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Abstract

The invention discloses a picture deleting method, a picture deleting device and a computer readable storage medium, wherein the picture deleting method comprises the following steps: acquiring the number of times of reference of a single picture in the picture loaded by the software code; displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface; and deleting the pictures displayed as the selected state on the visual interface. The invention reduces the burden of the display terminal according to the autonomous screening of the user and improves the running speed of the display terminal.

Description

Picture deleting method and device and computer-readable storage medium
Technical Field
The present invention relates to the field of application software technologies, and in particular, to a picture deleting method for deleting redundant pictures in application software, an electronic device using the picture deleting method, and a computer-readable storage medium.
Background
A large number of pictures are loaded in the application program, so that the display terminal can find and display the pictures required by the user from the loaded pictures when the user uses the display terminal. However, with the continuous update of software versions, more and more pictures are loaded in the software, and many of the pictures are pictures that the new version software cannot use, and the picture files as system files always occupy a large amount of system resources, so that the optimization of the system is restricted, and the running speed of the system is reduced.
Disclosure of Invention
The invention mainly aims to provide a picture deleting method, a picture deleting device and a computer readable storage medium, aiming at reducing the burden of a display terminal and improving the running speed of the display terminal according to the autonomous screening of a user.
In order to achieve the above object, the present invention provides a method for deleting a picture, which comprises the following steps:
acquiring the number of times of reference of a single picture in the picture loaded by the software code;
displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface;
and deleting the pictures displayed as the selected state on the visual interface.
Preferably, the step of displaying the information of the pictures loaded by the software code on the visual interface and displaying the pictures with zero reference times in the pictures loaded by the software code as the selected state on the visual interface comprises:
displaying the picture loaded by the software code on a visual interface;
detecting whether a user initiates an operation of fully selecting a picture with zero reference times;
when the user initiates the operation of fully selecting the pictures with zero reference times, displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on a visual interface.
Preferably, the step of deleting the picture displayed in the selected state on the visual interface further comprises:
detecting whether a user initiates an operation of changing a selected state of an image;
when a user initiates an operation of changing the selected state of the picture, the picture corresponding to the operation of changing the selected state of the picture is changed from the selected state to the unselected state or from the unselected state to the selected state.
Preferably, the visualization interface displays at least one of information of total number of the pictures loaded by the software code, information of number of times of reference of a single picture in the pictures loaded by the software code, information of name of the single picture in the pictures loaded by the software code, information of storage path of the single picture in the pictures loaded by the software code, information of thumbnail of the single picture in the pictures loaded by the software code, and information of data size of the single picture in the pictures loaded by the software code.
Preferably, the referenced times include screen menu adjustment mode resource file referenced times and/or application software referenced times.
Preferably, the step of obtaining the number of times of reference of a single picture in the picture loaded by the software code further comprises:
acquiring a picture loaded by a software code;
and storing the pictures loaded by the software codes in the same folder.
Preferably, the step of deleting the picture displayed as the selected state on the visual interface includes:
deleting the pictures displayed as the selected state on the visual interface;
and deleting the software code for calling the picture displayed as the selected state on the visual interface.
Preferably, the step of deleting the picture displayed as the selected state on the visual interface includes:
backing up the pictures displayed in the selected state on the visual interface;
deleting the pictures which are completely backed up;
the step of deleting the picture displayed in the selected state on the visual interface further comprises the following steps:
detecting whether a user initiates an operation of restoring a deleted picture;
when a user initiates an operation of restoring the deleted pictures, restoring the pictures corresponding to the operation of restoring the deleted pictures to the picture original addresses from the backed-up pictures.
The present invention also provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the above-described picture deletion method.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having a picture deleting program stored thereon, which when executed by a processor implements the steps of the picture deleting method as described above.
The embodiment of the invention obtains the loaded picture in the code; analyzing the loaded pictures to obtain the number of times of being quoted of a single picture in the loaded pictures; displaying the loaded pictures on a visual interface, and setting the pictures with zero reference times as a selected state; and deleting the pictures in the selected state. The embodiment of the invention analyzes the number of times of reference of each loaded picture, can obtain pictures which are not referenced in the loaded picture, reduces the burden of the display terminal and improves the running speed of the display terminal by deleting the pictures which are not referenced.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a method for deleting pictures according to the present invention;
fig. 2 is a schematic sub-flowchart of step S20 of the first embodiment of the method for deleting pictures according to the present invention;
FIG. 3 is a sub-flowchart of step S30 of the first embodiment of the method for deleting pictures according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for deleting pictures according to the present invention;
FIG. 5 is a flowchart illustrating a method for deleting pictures according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a fourth embodiment of a method for deleting pictures according to the present invention;
FIG. 7 is a system architecture diagram of a first embodiment of an electronic device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a picture deleting method, which is mainly applied to display terminals such as mobile phones, televisions, PCs, tablet computers, MP3 players, MP4 players, MP5 players, electronic dictionaries, PSP game consoles, digital cameras and the like, and is used for deleting pictures which are not influenced by the use of the display terminals and occupy storage resources in the display terminals and improving the running speed of the system.
Referring to fig. 1, in a first embodiment, the method for deleting pictures includes:
step S10, acquiring the number of times of reference of a single picture in the pictures loaded by the software codes;
in an electronic device, loading and calling of pictures are generally performed by loading all pictures into software codes through an OSD (On-Screen Display) editing tool, and then directly calling through a control in the OSD editing tool or the software codes when the pictures need to be displayed. The pictures comprise pictures which are used in the previous generations of products but are replaced by new pictures, and the like, which are not used by users, but the loading of the pictures in the software code increases the operation burden of the system and wastes the storage resources of the system.
The number of times of reference of the picture includes, but is not limited to, the number of times of reference of the screen menu type adjustment mode resource file and/or the number of times of reference of the application software. The method for obtaining the number of times of reference of a single picture in a picture loaded by software code includes, but is not limited to, analyzing the number of times of reference of each picture after all pictures are obtained, so that the number of times of reference of the single picture in the picture loaded by software code is obtained, or analyzing system log information can obtain the number of times of reference of the picture and each referenced picture.
Step S20, displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface;
the visualization interface displays at least one of total number information of the pictures loaded by the software codes, referred times information of the pictures loaded by the software codes, name information of the pictures loaded by the software codes, storage path information of the pictures loaded by the software codes, thumbnail information of the pictures loaded by the software codes and data size information of the pictures loaded by the software codes in a list form.
And step S30, deleting the pictures displayed in the selected state on the visual interface.
The method and the device have the advantages that the number of times of being quoted of a single picture in the picture loaded by the software code is obtained; displaying the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface; and deleting the pictures displayed as the selected state on the visual interface. The embodiment of the invention deletes the pictures with zero reference times in the pictures loaded by the software codes, thereby reducing the burden of the display terminal and improving the running speed of the display terminal; in addition, the picture loaded by the software code is observed through a visual interface, and a user can independently select whether to delete the picture with zero reference times according to own preference.
Further, referring to fig. 2, in the first embodiment, the step S20 may further include the following steps:
step S21, displaying the information of the picture loaded by the software code on a visual interface;
step S22, detecting whether the user initiates the operation of selecting the picture with zero reference times;
specifically, the manner of initiating the operation of selecting the picture with zero reference times fully includes automatically initiating the operation of selecting the picture with zero reference times fully after displaying the picture loaded by the software code, initiating the operation of selecting the picture with zero reference times fully after the user presses an icon of the picture with zero reference times fully, automatically initiating the operation of selecting the picture with zero reference times fully when the picture meets a preset condition, and the like.
Step S23, when the user initiates the operation of fully selecting the picture with zero reference times, displaying the picture with zero reference times in the pictures loaded by the software code as a selected state on a visual interface.
Specifically, when the user initiates the operation that the total selection referred times is zero, the system displays the pictures referred times is zero as the selected state on the visual interface.
In the embodiment, the user autonomously controls the operation of fully selecting the picture with zero reference times, so that the situation that the picture displayed in the selected state on the visual interface is mistakenly deleted easily because the user automatically initiates the fully selecting operation when only viewing the picture loaded by the software code is avoided.
Further, referring to fig. 3, in the first embodiment, the step S30 may include:
step S31, deleting the pictures displayed as the selected state on the visual interface;
and step S32, deleting the software code for calling the picture displayed in the selected state on the visual interface.
In this embodiment, due to the adoption of the steps S31 and S32, not only the picture displayed in the selected state on the visual interface is deleted, but also the software code calling the picture in the selected state is deleted, and the software code calling the picture after the picture is deleted becomes redundant software code, so that the redundant software code is deleted, the burden of the system is further reduced, and the operation speed of the display terminal is optimized.
Further, referring to fig. 4, based on the first embodiment of the method for deleting pictures according to the present invention, in the second embodiment of the method for deleting pictures according to the present invention, the step S30 is preceded by:
step S40, detecting whether the user initiates the operation of changing the selected state of the picture;
in this embodiment, each picture on the visual interface displays the picture in a selected state or an unselected state, and a small check box may be arranged at the lower right corner of the picture, and a check representative is selected and an unselected representative is unselected; or the color in the selected state is different from the color in the unselected state, so that the selected state and the unselected state are distinguished. The user clicks the picture to initiate the operation of changing the selected state of the picture.
Step S50, when the user initiates the operation of changing the picture selection state, the picture corresponding to the operation of changing the picture selection state is changed from the selection state to the unselected state or from the unselected state to the selection state.
In this embodiment, a user may view a picture in a selected state and a picture in an unselected state in a visual interface, and change the state of the picture according to the actual need of the user, so that a picture that the user wants to delete is displayed in the selected state on the visual interface, where the picture that is displayed in the selected state on the visual interface at last may not be a picture with zero number of times of reference, and the picture that is displayed in the unselected state at last may be a picture with zero number of times of reference. Therefore, the user can delete the picture loaded by the software code according to the own requirements, the personalized service of deleting the picture is realized, and the user experience is optimized.
Further, referring to fig. 5, based on the above-mentioned embodiment of the picture deleting method according to the present invention, in the third embodiment of the picture deleting method according to the present invention, the step S10 is preceded by:
step S60, acquiring the picture loaded by the software code;
and step S70, storing the pictures loaded by the software codes in the same folder.
For example: the pictures are stored in the same picture folder in the television, and the picture folder comprises an application picture sub-folder for storing and loading the television application program and an OSD resource reference sub-folder for storing and loading the system program.
In the embodiment, the step of obtaining the number of times of reference of a single picture in the picture loaded by the software code is directly performed with searching in the folder, so that the time waste of searching all codes is avoided, and the picture obtaining efficiency is improved.
Further, referring to fig. 6, based on the above-mentioned embodiment of the picture deleting method of the present invention, in a fourth embodiment of the picture deleting method of the present invention, the step S30 may specifically include:
step S33, backing up the picture displayed as the selected state on the visual interface;
in this embodiment, in order to prevent the user from remorse after deleting the picture or affecting the subsequent normal operation of the display terminal operating system, a backup folder for backing up the deleted picture is also provided.
In step S34, the picture that has completed the backup is deleted.
Further, after the step S30, the method may further include:
step S80, detecting whether the user initiates the operation of restoring the deleted picture;
the visual interface includes a shortcut icon that opens the backup folder. The user can open the backup folder and restore the deleted pictures.
Further, only the deleted pictures are temporarily stored in the backup folder, and the temporarily storing time can be set by a user's self-definition or default, for example, the backup time is the starting time, the pictures are temporarily stored in the backup folder for 30 days, the pictures in the backup folder are deleted at a distance of 30 days from the starting time, and thus the pictures are permanently deleted from the display terminal.
Step S90, when the user initiates the operation of restoring the deleted picture, restoring the picture corresponding to the operation of restoring the deleted picture to the picture original address from the backed-up picture;
and pressing the restoration icon in the backup folder by the user, and then selecting the picture to be restored. After detecting that the user initiates the operation of restoring the deleted pictures, confirming the pictures needing to be restored selected by the user and restoring the original addresses of the pictures.
On the basis of the first embodiment in the above example, the software code calling the picture displayed in the selected state on the visual interface is backed up at the same time in step S33, that is, the software code calling the picture displayed in the selected state on the visual interface is also temporarily stored in the backup folder, and then step S31 and step S32 are executed. When the user initiates an operation of restoring the deleted picture, step S90 restores, from the backed-up picture, the picture corresponding to the operation of restoring the deleted picture to the picture original address, and also includes restoring the software code that calls the picture displayed in the selected state on the visual interface, that is, when the deleted picture is restored, the code that calls the deleted picture is also restored to the position before deletion.
In the embodiment, in order to avoid the situation that the normal operation of the display terminal operating system is influenced by remorse deletion, mistaken deletion and deletion of the user, a way for restoring the deleted picture is provided, the user can restore the deleted picture in the recovery folder, and the deleted picture can be restored to the original address to continue working, so that a guarantee is provided for the user to delete the picture, the user experience is improved, and the normal operation of the display terminal operating system is ensured.
The invention also provides an embodiment of the picture deleting device.
Referring to fig. 7, in a first embodiment of an electronic device applying the image deleting method according to the present invention, the image deleting device 200 includes: a memory 210, a processor 220 and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the picture deletion method as described in any of the first to fourth embodiments, wherein:
the picture deleting method in the first embodiment includes:
step S10, acquiring the number of times of reference of a single picture in the pictures loaded by the software codes;
in an electronic device, loading and calling of pictures are generally performed by loading all pictures into software codes through an OSD (On-Screen Display) editing tool, and then directly calling through a control in the OSD editing tool or the software codes when the pictures need to be displayed. The pictures comprise pictures which are used in the previous generations of products but are replaced by new pictures, and the like, which are not used by users, but the loading of the pictures in the software code increases the operation burden of the system and wastes the storage resources of the system.
The number of times of reference of the picture includes, but is not limited to, the number of times of reference of the screen menu type adjustment mode resource file and/or the number of times of reference of the application software. The method for obtaining the number of times of reference of a single picture in a picture loaded by software code includes, but is not limited to, analyzing the number of times of reference of each picture after all pictures are obtained, so that the number of times of reference of the single picture in the picture loaded by software code is obtained, or analyzing system log information can obtain the number of times of reference of the picture and each referenced picture.
Step S20, displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface;
the visualization interface displays at least one of total number information of the pictures loaded by the software codes, referred times information of the pictures loaded by the software codes, name information of the pictures loaded by the software codes, storage path information of the pictures loaded by the software codes, thumbnail information of the pictures loaded by the software codes and data size information of the pictures loaded by the software codes in a list form.
And step S30, deleting the pictures displayed in the selected state on the visual interface.
The method and the device have the advantages that the number of times of being quoted of a single picture in the picture loaded by the software code is obtained; displaying the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface; and deleting the pictures displayed as the selected state on the visual interface. The embodiment of the invention deletes the pictures with zero reference times in the pictures loaded by the software codes, thereby reducing the burden of the display terminal and improving the running speed of the display terminal; in addition, the picture loaded by the software code is observed through a visual interface, and a user can independently select whether to delete the picture with zero reference times according to own preference.
Further, referring to fig. 2, in the first embodiment, the step S20 may further include the following steps:
step S21, displaying the information of the picture loaded by the software code on a visual interface;
step S22, detecting whether the user initiates the operation of selecting the picture with zero reference times;
specifically, the manner of initiating the operation of selecting the picture with zero reference times fully includes automatically initiating the operation of selecting the picture with zero reference times fully after displaying the picture loaded by the software code, initiating the operation of selecting the picture with zero reference times fully after the user presses an icon of the picture with zero reference times fully, automatically initiating the operation of selecting the picture with zero reference times fully when the picture meets a preset condition, and the like.
Step S23, when the user initiates the operation of fully selecting the picture with zero reference times, displaying the picture with zero reference times in the pictures loaded by the software code as a selected state on a visual interface.
Specifically, when the user initiates the operation that the total selection referred times is zero, the system displays the pictures referred times is zero as the selected state on the visual interface.
In the embodiment, the user autonomously controls the operation of fully selecting the picture with zero reference times, so that the situation that the picture displayed in the selected state on the visual interface is mistakenly deleted easily because the user automatically initiates the fully selecting operation when only viewing the picture loaded by the software code is avoided.
Further, referring to fig. 3, in the first embodiment, the step S30 may include:
step S31, deleting the pictures displayed as the selected state on the visual interface;
and step S32, deleting the software code for calling the picture displayed in the selected state on the visual interface.
In this embodiment, due to the adoption of the steps S31 and S32, not only the picture displayed in the selected state on the visual interface is deleted, but also the software code calling the picture in the selected state is deleted, and the software code calling the picture after the picture is deleted becomes redundant software code, so that the redundant software code is deleted, the burden of the system is further reduced, and the operation speed of the display terminal is optimized.
The method for deleting pictures in the second embodiment is based on the first embodiment, and before the step S30, the method further includes:
step S40, detecting whether the user initiates the operation of changing the selected state of the picture;
in this embodiment, each picture on the visual interface displays the picture in a selected state or an unselected state, and a small check box may be arranged at the lower right corner of the picture, and a check representative is selected and an unselected representative is unselected; or the color in the selected state is different from the color in the unselected state, so that the selected state and the unselected state are distinguished. The user clicks the picture to initiate the operation of changing the selected state of the picture.
Step S50, when the user initiates the operation of changing the picture selection state, the picture corresponding to the operation of changing the picture selection state is changed from the selection state to the unselected state or from the unselected state to the selection state.
In this embodiment, a user may view a picture in a selected state and a picture in an unselected state in a visual interface, and change the state of the picture according to the actual need of the user, so that a picture that the user wants to delete is displayed in the selected state on the visual interface, where the picture that is displayed in the selected state on the visual interface at last may not be a picture with zero number of times of reference, and the picture that is displayed in the unselected state at last may be a picture with zero number of times of reference. Therefore, the user can delete the picture loaded by the software code according to the own requirements, the personalized service of deleting the picture is realized, and the user experience is optimized.
Based on the foregoing embodiments, the method for deleting pictures in the third embodiment further includes, before the step S10:
step S60, acquiring the picture loaded by the software code;
and step S70, storing the pictures loaded by the software codes in the same folder.
For example: the pictures are stored in the same picture folder in the television, and the picture folder comprises an application picture sub-folder for storing and loading the television application program and an OSD resource reference sub-folder for storing and loading the system program.
In the embodiment, the step of obtaining the number of times of reference of a single picture in the picture loaded by the software code is directly performed with searching in the folder, so that the time waste of searching all codes is avoided, and the picture obtaining efficiency is improved.
Based on the foregoing embodiment, the method for deleting a picture in the fourth embodiment may specifically include, in step S30:
step S33, backing up the picture displayed as the selected state on the visual interface;
in this embodiment, in order to prevent the user from remorse after deleting the picture or affecting the subsequent normal operation of the display terminal operating system, a backup folder for backing up the deleted picture is also provided.
In step S34, the picture that has completed the backup is deleted.
Further, after the step S30, the method may further include:
step S80, detecting whether the user initiates the operation of restoring the deleted picture;
the visual interface includes a shortcut icon that opens the backup folder. The user can open the backup folder and restore the deleted pictures.
Further, only the deleted pictures are temporarily stored in the backup folder, and the temporarily storing time can be set by a user's self-definition or default, for example, the backup time is the starting time, the pictures are temporarily stored in the backup folder for 30 days, the pictures in the backup folder are deleted at a distance of 30 days from the starting time, and thus the pictures are permanently deleted from the display terminal.
Step S90, when the user initiates the operation of restoring the deleted picture, restoring the picture corresponding to the operation of restoring the deleted picture to the picture original address from the backed-up picture;
and pressing the restoration icon in the backup folder by the user, and then selecting the picture to be restored. After detecting that the user initiates the operation of restoring the deleted pictures, confirming the pictures needing to be restored selected by the user and restoring the original addresses of the pictures.
On the basis of the first embodiment in the above example, the software code calling the picture displayed in the selected state on the visual interface is backed up at the same time in step S33, that is, the software code calling the picture displayed in the selected state on the visual interface is also temporarily stored in the backup folder, and then step S31 and step S32 are executed. When the user initiates an operation of restoring the deleted picture, step S90 restores, from the backed-up picture, the picture corresponding to the operation of restoring the deleted picture to the picture original address, and also includes restoring the software code that calls the picture displayed in the selected state on the visual interface, that is, when the deleted picture is restored, the code that calls the deleted picture is also restored to the position before deletion.
In the embodiment, in order to avoid the situation that the normal operation of the display terminal operating system is influenced by remorse deletion, mistaken deletion and deletion of the user, a way for restoring the deleted picture is provided, the user can restore the deleted picture in the recovery folder, and the deleted picture can be restored to the original address to continue working, so that a guarantee is provided for the user to delete the picture, the user experience is improved, and the normal operation of the display terminal operating system is ensured.
Embodiments of a computer-readable storage medium are also provided.
In a first embodiment of a computer-readable storage medium of the present invention, the computer-readable storage medium has a picture deleting program stored thereon, and the picture deleting program, when executed by a processor, implements the steps of the picture deleting method described in any one of the first to fourth embodiments, wherein:
the picture deleting method in the first embodiment includes:
step S10, acquiring the number of times of reference of a single picture in the pictures loaded by the software codes;
in an electronic device, loading and calling of pictures are generally performed by loading all pictures into software codes through an OSD (On-Screen Display) editing tool, and then directly calling through a control in the OSD editing tool or the software codes when the pictures need to be displayed. The pictures comprise pictures which are used in the previous generations of products but are replaced by new pictures, and the like, which are not used by users, but the loading of the pictures in the software code increases the operation burden of the system and wastes the storage resources of the system.
The number of times of reference of the picture includes, but is not limited to, the number of times of reference of the screen menu type adjustment mode resource file and/or the number of times of reference of the application software. The method for obtaining the number of times of reference of a single picture in a picture loaded by software code includes, but is not limited to, analyzing the number of times of reference of each picture after all pictures are obtained, so that the number of times of reference of the single picture in the picture loaded by software code is obtained, or analyzing system log information can obtain the number of times of reference of the picture and each referenced picture.
Step S20, displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface;
the visualization interface displays at least one of total number information of the pictures loaded by the software codes, referred times information of the pictures loaded by the software codes, name information of the pictures loaded by the software codes, storage path information of the pictures loaded by the software codes, thumbnail information of the pictures loaded by the software codes and data size information of the pictures loaded by the software codes in a list form.
And step S30, deleting the pictures displayed in the selected state on the visual interface.
The method and the device have the advantages that the number of times of being quoted of a single picture in the picture loaded by the software code is obtained; displaying the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface; and deleting the pictures displayed as the selected state on the visual interface. The embodiment of the invention deletes the pictures with zero reference times in the pictures loaded by the software codes, thereby reducing the burden of the display terminal and improving the running speed of the display terminal; in addition, the picture loaded by the software code is observed through a visual interface, and a user can independently select whether to delete the picture with zero reference times according to own preference.
Further, referring to fig. 2, in the first embodiment, the step S20 may further include the following steps:
step S21, displaying the information of the picture loaded by the software code on a visual interface;
step S22, detecting whether the user initiates the operation of selecting the picture with zero reference times;
specifically, the manner of initiating the operation of selecting the picture with zero reference times fully includes automatically initiating the operation of selecting the picture with zero reference times fully after displaying the picture loaded by the software code, initiating the operation of selecting the picture with zero reference times fully after the user presses an icon of the picture with zero reference times fully, automatically initiating the operation of selecting the picture with zero reference times fully when the picture meets a preset condition, and the like.
Step S23, when the user initiates the operation of fully selecting the picture with zero reference times, displaying the picture with zero reference times in the pictures loaded by the software code as a selected state on a visual interface.
Specifically, when the user initiates the operation that the total selection referred times is zero, the system displays the pictures referred times is zero as the selected state on the visual interface.
In the embodiment, the user autonomously controls the operation of fully selecting the picture with zero reference times, so that the situation that the picture displayed in the selected state on the visual interface is mistakenly deleted easily because the user automatically initiates the fully selecting operation when only viewing the picture loaded by the software code is avoided.
Further, referring to fig. 3, in the first embodiment, the step S30 may include:
step S31, deleting the pictures displayed as the selected state on the visual interface;
and step S32, deleting the software code for calling the picture displayed in the selected state on the visual interface.
In this embodiment, due to the adoption of the steps S31 and S32, not only the picture displayed in the selected state on the visual interface is deleted, but also the software code calling the picture in the selected state is deleted, and the software code calling the picture after the picture is deleted becomes redundant software code, so that the redundant software code is deleted, the burden of the system is further reduced, and the operation speed of the display terminal is optimized.
The method for deleting pictures in the second embodiment is based on the first embodiment, and before the step S30, the method further includes:
step S40, detecting whether the user initiates the operation of changing the selected state of the picture;
in this embodiment, each picture on the visual interface displays the picture in a selected state or an unselected state, and a small check box may be arranged at the lower right corner of the picture, and a check representative is selected and an unselected representative is unselected; or the color in the selected state is different from the color in the unselected state, so that the selected state and the unselected state are distinguished. The user clicks the picture to initiate the operation of changing the selected state of the picture.
Step S50, when the user initiates the operation of changing the picture selection state, the picture corresponding to the operation of changing the picture selection state is changed from the selection state to the unselected state or from the unselected state to the selection state.
In this embodiment, a user may view a picture in a selected state and a picture in an unselected state in a visual interface, and change the state of the picture according to the actual need of the user, so that a picture that the user wants to delete is displayed in the selected state on the visual interface, where the picture that is displayed in the selected state on the visual interface at last may not be a picture with zero number of times of reference, and the picture that is displayed in the unselected state at last may be a picture with zero number of times of reference. Therefore, the user can delete the picture loaded by the software code according to the own requirements, the personalized service of deleting the picture is realized, and the user experience is optimized.
Based on the foregoing embodiments, the method for deleting pictures in the third embodiment further includes, before the step S10:
step S60, acquiring the picture loaded by the software code;
and step S70, storing the pictures loaded by the software codes in the same folder.
For example: the pictures are stored in the same picture folder in the television, and the picture folder comprises an application picture sub-folder for storing and loading the television application program and an OSD resource reference sub-folder for storing and loading the system program.
In the embodiment, the step of obtaining the number of times of reference of a single picture in the picture loaded by the software code is directly performed with searching in the folder, so that the time waste of searching all codes is avoided, and the picture obtaining efficiency is improved.
Based on the foregoing embodiment, the method for deleting a picture in the fourth embodiment may specifically include, in step S30:
step S33, backing up the picture displayed as the selected state on the visual interface;
in this embodiment, in order to prevent the user from remorse after deleting the picture or affecting the subsequent normal operation of the display terminal operating system, a backup folder for backing up the deleted picture is also provided.
In step S34, the picture that has completed the backup is deleted.
Further, after the step S30, the method may further include:
step S80, detecting whether the user initiates the operation of restoring the deleted picture;
the visual interface includes a shortcut icon that opens the backup folder. The user can open the backup folder and restore the deleted pictures.
Further, only the deleted pictures are temporarily stored in the backup folder, and the temporarily storing time can be set by a user's self-definition or default, for example, the backup time is the starting time, the pictures are temporarily stored in the backup folder for 30 days, the pictures in the backup folder are deleted at a distance of 30 days from the starting time, and thus the pictures are permanently deleted from the display terminal.
Step S90, when the user initiates the operation of restoring the deleted picture, restoring the picture corresponding to the operation of restoring the deleted picture to the picture original address from the backed-up picture;
and pressing the restoration icon in the backup folder by the user, and then selecting the picture to be restored. After detecting that the user initiates the operation of restoring the deleted pictures, confirming the pictures needing to be restored selected by the user and restoring the original addresses of the pictures.
On the basis of the first embodiment in the above example, the software code calling the picture displayed in the selected state on the visual interface is backed up at the same time in step S33, that is, the software code calling the picture displayed in the selected state on the visual interface is also temporarily stored in the backup folder, and then step S31 and step S32 are executed. When the user initiates an operation of restoring the deleted picture, step S90 restores, from the backed-up picture, the picture corresponding to the operation of restoring the deleted picture to the picture original address, and also includes restoring the software code that calls the picture displayed in the selected state on the visual interface, that is, when the deleted picture is restored, the code that calls the deleted picture is also restored to the position before deletion.
In the embodiment, in order to avoid the situation that the normal operation of the display terminal operating system is influenced by remorse deletion, mistaken deletion and deletion of the user, a way for restoring the deleted picture is provided, the user can restore the deleted picture in the recovery folder, and the deleted picture can be restored to the original address to continue working, so that a guarantee is provided for the user to delete the picture, the user experience is improved, and the normal operation of the display terminal operating system is ensured.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A picture deleting method is characterized by comprising the following steps:
acquiring the number of times of reference of a single picture in the picture loaded by the software code;
displaying the information of the pictures loaded by the software codes on a visual interface, and displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on the visual interface;
detecting whether a user initiates an operation of changing a selected state of an image;
when a user initiates an operation of changing the selected state of the picture, the picture corresponding to the operation of changing the selected state of the picture is changed from the selected state to the unselected state or from the unselected state to the selected state;
deleting the pictures displayed as the selected state on the visual interface; wherein the information that the visual interface displays the picture loaded by the software code comprises: at least one of total number information of the pictures loaded by the software code, information of the number of times of reference of a single picture in the pictures loaded by the software code, name information of the single picture in the pictures loaded by the software code, storage path information of the single picture in the pictures loaded by the software code, thumbnail information of the single picture in the pictures loaded by the software code, and data size information of the single picture in the pictures loaded by the software code.
2. The method for deleting the pictures according to claim 1, wherein the step of displaying the information of the pictures loaded by the software codes on the visual interface and displaying the pictures with zero reference times in the pictures loaded by the software codes as the selected state on the visual interface comprises:
displaying the information of the picture loaded by the software code on a visual interface;
detecting whether a user initiates an operation of fully selecting a picture with zero reference times;
when the user initiates the operation of fully selecting the pictures with zero reference times, displaying the pictures with zero reference times in the pictures loaded by the software codes as a selected state on a visual interface.
3. The picture deletion method according to any one of claims 1 to 2, wherein the referenced times include screen menu adjustment mode resource file reference times and/or application software reference times.
4. The picture deletion method according to any one of claims 1-2, wherein the step of obtaining the number of times a single picture in the picture loaded by the software code is referenced further comprises:
acquiring a picture loaded by a software code;
and storing the pictures loaded by the software codes in the same folder.
5. The picture deletion method according to any one of claims 1 to 2, wherein the step of deleting the picture displayed in the selected state on the visual interface comprises:
deleting the pictures displayed as the selected state on the visual interface;
and deleting the software code for calling the picture displayed as the selected state on the visual interface.
6. The picture deletion method according to any one of claims 1 to 2, wherein the step of deleting the picture displayed in the selected state on the visual interface comprises:
backing up the pictures displayed in the selected state on the visual interface;
deleting the pictures which are completely backed up;
after the step of deleting the picture displayed in the selected state on the visual interface, the method further comprises the following steps:
detecting whether a user initiates an operation of restoring a deleted picture;
when a user initiates an operation of restoring the deleted pictures, restoring the pictures corresponding to the operation of restoring the deleted pictures to the picture original addresses from the backed-up pictures.
7. A picture deletion apparatus, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the picture deletion method as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium, having stored thereon a picture deletion program which, when executed by a processor, implements the steps of the picture deletion method as claimed in any one of claims 1-6.
CN201710263756.9A 2017-04-20 2017-04-20 Picture deleting method and device and computer-readable storage medium Active CN107193875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710263756.9A CN107193875B (en) 2017-04-20 2017-04-20 Picture deleting method and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710263756.9A CN107193875B (en) 2017-04-20 2017-04-20 Picture deleting method and device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107193875A CN107193875A (en) 2017-09-22
CN107193875B true CN107193875B (en) 2021-05-28

Family

ID=59872166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710263756.9A Active CN107193875B (en) 2017-04-20 2017-04-20 Picture deleting method and device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107193875B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949615A (en) * 2020-08-25 2020-11-17 深圳市广通软件有限公司 Method and system for processing file against mistaken deletion

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024658B1 (en) * 2005-01-09 2011-09-20 Apple Inc. Application for designing photo albums
CN103218121B (en) * 2013-04-19 2016-03-09 东莞宇龙通信科技有限公司 Mobile terminal and control method thereof
CN104111780A (en) * 2014-06-30 2014-10-22 联想(北京)有限公司 Information processing method and electronic equipment
CN105354041A (en) * 2014-08-20 2016-02-24 西安慧泽知识产权运营管理有限公司 Picture resource management method
CN106354378B (en) * 2015-07-13 2019-11-15 阿里巴巴集团控股有限公司 A kind of method and apparatus for quickly choosing multiple targets
CN106503062B (en) * 2016-09-28 2019-11-12 广东小天才科技有限公司 A kind of social dynamically dissemination method and device, user terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Android自动清理 无用 多余 未引用 未关联资源工具》;哈哈哈哈BBA;《https://www.cnblogs.com/yilongm/p/4741370.html》;20150819;第1-6页 *
《如何有效的清除Android中无用的资源(静态代码分析)》;影响身边的人;《https://juejin.im/post/57bd6f79efa631005a916096》;20160824;第1-9页 *
影响身边的人.《如何有效的清除Android中无用的资源(静态代码分析)》.《https://juejin.im/post/57bd6f79efa631005a916096》.2016,第1-9页. *

Also Published As

Publication number Publication date
CN107193875A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
KR102356349B1 (en) File processing method and mobile terminal
CN109885314B (en) Automatic layout method and device for small programs
KR102121905B1 (en) Method and apparatus for setting background of ui control, and terminal
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
CN108228293B (en) Interface skin switching method and device
CN110851081A (en) Method and device for safely cleaning storage space and computer readable storage medium
CN105630628A (en) Application restoration method and apparatus
WO2015184736A1 (en) Method and terminal for transforming background picture of touchscreen device
CN111142756A (en) Page display method, equipment and computer readable storage medium
CN111212227B (en) Method, device and equipment for configuring video resolution of camera and storage medium
CN106775351B (en) Information processing method and device and electronic equipment
EP3467681B1 (en) Data migration method and device
CN107193875B (en) Picture deleting method and device and computer-readable storage medium
CN108235101B (en) Smart television initialization method, smart television and computer readable storage medium
CN104932784A (en) Picture display method and terminal
JP2006268160A (en) Portable information processor, and installation method
WO2017029806A1 (en) System, method for processing information, and information processing apparatus
JP2006268160A5 (en)
CN104267873A (en) Folder display method and device
CN112130734A (en) Document management method and device based on floating layer technology
US20170351477A1 (en) Data processing apparatus, data processing method, and non-transitory computer readable medium
CN105204858A (en) System and method for customizing icons
CN111290882B (en) Data file backup method, data file backup device and electronic equipment
CN109032728B (en) UI (user interface) display method, intelligent terminal and computer-readable storage medium
US20170053003A1 (en) System, method for processing information, and information terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant