CN111475660A - Picture statistical method and device, electronic equipment and storage medium - Google Patents

Picture statistical method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111475660A
CN111475660A CN202010178007.8A CN202010178007A CN111475660A CN 111475660 A CN111475660 A CN 111475660A CN 202010178007 A CN202010178007 A CN 202010178007A CN 111475660 A CN111475660 A CN 111475660A
Authority
CN
China
Prior art keywords
picture
target
information
style
picture set
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.)
Pending
Application number
CN202010178007.8A
Other languages
Chinese (zh)
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010178007.8A priority Critical patent/CN111475660A/en
Publication of CN111475660A publication Critical patent/CN111475660A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Abstract

The invention provides a picture statistical method, a picture statistical device, electronic equipment and a storage medium. The method comprises the following steps: traversing a folder directory of a target application to obtain a picture set of the target application; acquiring a picture set description file of each picture set; acquiring a target picture with a picture style in the picture set as a target style according to the picture set description file; the picture set description file comprises picture information of each picture contained in the picture set. On one hand, picture resources do not need to be named according to fixed specifications, picture naming is more flexible, and development efficiency is improved; on the other hand, the target picture under the target style is searched based on the picture resource description file generated by the picture set, so that the result deviation caused by artificial naming errors can be effectively avoided, and the accuracy of the statistical result is improved.

Description

Picture statistical method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a picture statistical method, a picture statistical device, electronic equipment and a storage medium.
Background
In order to save the time for downloading an App (Application program) and network traffic, the size of an installation package needs to be continuously optimized during App development iteration. On the other hand, in App user interface design, in order to improve the visual experience of a user, an application program can set an interface design suitable for being used at night or in an environment with darker brightness, namely a dark black mode, so as to optimize the contrast between a text foreground and a dark background and the colors of text and picture resources, and ensure that the viewing experience of human eyes is consistent, comfortable and easy to read. In addition, in the dark and black mode adaptation process, a certain amount of dark color picture resources need to be introduced, the number and the size of the dark color picture resources are counted, and the control of the size of the installation package of the App is facilitated.
At present, a mode of counting the number of dark-color pictures in a dark and black mode project generally needs to standardize picture naming rules, and based on picture naming characteristics, pictures which accord with the picture naming characteristics of the dark-color pictures in the project are searched, so that the number and the size of the dark-color pictures are counted.
However, the picture naming in the dark mode needs to meet the requirements of the specified file naming specification, and the development workload is increased to a certain extent. Moreover, based on the picture naming feature picture, the file naming which is caused by human errors and other factors can not be filtered to meet the specification, but the file naming is not the resource of the dark picture, so that the statistical result is easy to deviate, and the accuracy of the statistical result is influenced.
Disclosure of Invention
The embodiment of the invention provides a picture statistical method and device, electronic equipment and a storage medium, and aims to solve the problems that the existing picture statistical result is easy to deviate and the accuracy of the statistical result is influenced.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a picture statistics method, including:
traversing a folder directory of a target application to obtain a picture set of the target application;
acquiring a picture set description file of each picture set;
acquiring a target picture with a picture style in the picture set as a target style according to the picture set description file;
the picture set description file comprises picture information of each picture contained in the picture set.
Optionally, the step of obtaining, according to the picture set description file, a target picture with a picture style in the picture set as a target style includes:
acquiring picture list information in the picture set description file, wherein the picture list information comprises picture information of each picture in the picture set;
acquiring a picture list item belonging to a target style from the picture list information according to the picture information;
and acquiring a picture corresponding to the picture information of each picture list item from the picture set as the target picture.
Optionally, before the step of traversing the folder directory of the target application and obtaining the picture set of the target application, the method further includes:
setting picture resources of the target application in a picture set form, and setting picture information of each picture in the picture set;
and generating a picture set description file of the picture set according to the picture information of each picture contained in the picture set.
Optionally, after the step of obtaining the target picture with the picture style in the picture set as the target style according to the picture set description file, the method further includes:
acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture;
and/or counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application;
and/or acquiring and recording an access path of each target picture.
Optionally, the target style comprises at least one of a dark style and a light style; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
In a second aspect, an embodiment of the present invention provides a picture statistics apparatus, including:
the image set acquisition module is used for traversing a folder directory of a target application to acquire an image set of the target application;
the description file acquisition module is used for acquiring the picture set description file of each picture set;
the picture counting module is used for acquiring a target picture with a picture style in the picture set as a target style according to the picture set description file;
the picture set description file comprises picture information of each picture contained in the picture set.
Optionally, the picture statistics module includes:
the picture list acquisition sub-module is used for acquiring picture list information in the picture set description file, wherein the picture list information comprises the picture information of each picture in the picture set;
the picture list item determining module is used for acquiring a picture list item belonging to a target style from the picture list information according to the picture information;
and the target picture acquisition submodule is used for acquiring a picture corresponding to the picture information of each picture list item from the picture set to serve as the target picture.
Optionally, the apparatus further comprises:
the picture style setting module is used for setting picture resources of the target application in a picture set form and setting picture information of each picture in the picture set;
and the description file generation module is used for generating the picture set description file of the picture set according to the picture information of each picture contained in the picture set.
Optionally, the apparatus further comprises:
a file information statistics module for: acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture; and/or the presence of a gas in the gas,
counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application; and/or the presence of a gas in the gas,
and acquiring and recording an access path of each target picture.
Optionally, the target style comprises at least one of a dark style and a light style; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, performs the steps of the picture statistics method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the picture statistics method according to the first aspect.
In the embodiment of the invention, on one hand, picture resources do not need to be named according to fixed specifications, picture naming is more flexible, and development efficiency is improved; on the other hand, the target picture under the target style is searched based on the picture resource description file generated by the picture set, so that the result deviation caused by artificial naming errors can be effectively avoided, and the statistical result is more accurate.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a method for image statistics according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of another method for picture statistics in an embodiment of the present invention;
fig. 3 is a schematic flow chart of statistics of the size of a dark-style picture file according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a picture statistics apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another exemplary embodiment of a device for counting pictures;
fig. 6 is a schematic diagram of a hardware structure of an electronic device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of a picture statistics method according to an embodiment of the present invention is shown.
And step 110, traversing a folder directory of the target application to acquire a picture set of the target application.
In practical applications, pictures can be saved in a form of a picture set, a picture set can be understood as a set of pictures, one picture set can contain at least one picture, and when operations such as saving pictures and adding pictures are performed, one or more picture sets may be included in the same Application (APP) according to requirements.
In addition, in order to accurately acquire the picture information included in the picture sets, a picture set description file may be generated for each picture set, and the picture set description file corresponding to the picture set may include attribute information such as a picture identifier, a picture style, and the like of each picture included in the corresponding picture set.
In addition, in the same application, other folders except the picture sets can be corresponded, so that in order to count the pictures in a certain pattern, all the picture sets can be acquired first, and then the pictures in the certain pattern can be acquired from each picture set, so that the picture counting efficiency can be effectively improved. Specifically, a folder directory of a target application may be traversed to obtain a picture set of the target application. In addition, in the embodiment of the present invention, the folder directory of the target application may be traversed in any available manner to obtain the picture set therein, and the self-defined setting may be specifically performed according to a specific application scenario, which is not limited in the embodiment of the present invention.
For example, in the iOS operating system, a picture set ends with a ". imageset" name in the folder directory, and a picture set description file exists under the directory of the picture set. Then the folder directory may be traversed at this time to find an entry with the "imageset" as a suffix, i.e., an entry for the picture set in the folder directory.
Step 120, acquiring a picture set description file of each picture set; the picture set description file comprises picture information of each picture contained in the picture set.
The picture set description file of the picture set can include picture information such as picture identification information and picture style information of each picture included in the corresponding picture set, and pictures in a certain picture style can be screened from the picture set according to the picture information.
The picture identification information may be any identification information that can represent the identity of the picture, for example, a picture name and the like; the picture style information is information representing picture styles, wherein the representation form of each picture style can be set by self-definition according to requirements, specific application scenes and the like, and the embodiment of the invention is not limited. For example, for an application with a dark and black mode, in order to satisfy a switch between a normal mode and the dark and black mode, a picture in the dark and black mode and a picture in the normal mode may be set, at this time, the picture in the dark and black mode may be respectively defined as a picture in a dark color style, and the picture in the normal mode is a picture in a light color style; or if the application still has an eye protection mode, the picture in the eye protection mode can be defined as an eye protection type picture; and so on. And the style identification corresponding to different picture styles can be set by self-definition according to requirements, and the embodiment of the invention is not limited. Of course, in the embodiment of the present invention, the pattern of the picture may also be divided according to any available picture information, such as an adaptation mode of the picture, a hue of the picture, an acquisition mode of the picture, content included in the picture, a format of the picture, a size of the picture, and the like, and then the pattern of each picture may be determined according to the picture information of each picture, so as to determine whether the picture belongs to the target pattern, which is not limited in the embodiment of the present invention.
The dark and black mode can be understood as an interface design which optimizes the contrast between a text foreground and a dark background and the colors of text and picture resources in the App user interface design, ensures that human eyes have consistent watching experience, comfort and readability and is suitable for being used at night or in a dark environment. The picture in the dark color mode is different from the picture in the common light color mode, and the picture in the dark color mode refers to picture resources used by the App for coordinating with the interface dark color background in the dark black mode.
Therefore, after the picture sets are obtained, a picture set description file for each picture set needs to be further obtained. In the embodiment of the present invention, the picture set description file of the picture set may be obtained in any available manner, which is not limited in the embodiment of the present invention.
For example, in an iOS operating system, a picture set description file may exist under a directory of a picture set, that is, inside the contained picture set, the picture set description file is a text file in json (JavaScript Object Notation, JS Object Notation, which is a lightweight data exchange format) format, and then at this time, a file in the json format may be searched from each picture set, and a picture set description file corresponding to the file may be obtained; if the picture set description file is stored independently of the picture set, the corresponding relation between each picture set description file and the picture set can be recorded at the same time, and the picture set description file corresponding to each picture set description file can be searched from the storage area of the picture set description file according to the identification of each picture set; and so on.
In addition, in the embodiment of the present invention, the picture set description file may further include, but is not limited to, a version identifier and a creation time of the picture set corresponding to the picture set description file, and other picture detail information of each picture included in the picture set.
And step 130, acquiring a target picture with the picture style in the picture set as the target style according to the picture set description file.
After the picture set description file of each picture set is obtained, a target picture with a picture style as a target style can be obtained by screening from the picture set according to the picture information of each picture recorded in the picture set description file. For example, assuming that the picture information includes the above-mentioned picture name, picture style information, and the like, the picture name of the picture whose picture style is the target style may be obtained according to the picture style information of each picture recorded in the picture set description file, and then the target picture in the corresponding target style may be obtained from the corresponding picture set according to the picture name, that is, the target picture in which the picture style is the target style in each picture set may be obtained.
In the embodiment of the invention, the picture set description file is generated based on the picture set, the pictures in a certain picture style are searched and counted, the counting result is more accurate, the picture naming is more flexible, and the development efficiency and the accuracy of the counting result are improved.
Referring to fig. 2, in an embodiment of the present invention, the step 130 may further include:
step 131, obtaining picture list information in the picture set description file, wherein the picture list information comprises picture information of each picture in the picture set;
step 132, obtaining a picture list item belonging to a target style from the picture list information according to the picture information;
step 133, acquiring a picture corresponding to the picture information of each picture list item from the picture set as the target picture.
As described above, the picture set description file may include picture information of each picture included in the corresponding picture set. In addition, in order to record the picture information of each picture in the same picture set conveniently, for example, the correspondence between the picture identification information and the picture style information in the picture information of each picture described above, and the like, so as to further improve the efficiency of searching the target picture, the picture information of each picture may also be recorded in the picture set description file in the form of picture list information. At this time, each picture list item in the picture list information corresponds to a picture, and one picture list item includes all picture information of the picture corresponding to the picture list item, such as picture identification information, picture style information, and the like.
At this time, for each picture set, the picture list information in the picture set description file can be acquired, and then, according to the picture information of each picture list item in the picture list information in the picture set description file, the picture list item belonging to the target style, that is, the picture list item of which the picture style belongs to the target style, can be acquired from the corresponding picture set according to the picture information of each picture list item in the target style acquired at this time, so that the picture corresponding to the picture information of each picture list item in the target style acquired at this time is acquired from the corresponding picture set as the target picture.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
step 140, setting picture resources of the target application in a picture set form, and setting picture information of each picture in the picture set;
step 150, generating a picture set description file of the picture set according to the picture information of each picture contained in the picture set.
As described above, in practical applications, in order to improve the picture statistical efficiency, the picture information of each picture may be preset, and specifically, the setting information may be obtained in any available manner, which is not limited in the embodiment of the present invention. For example, when the picture style is customized, a plurality of picture style options can be set, and a user can select one or more picture style options to further set and obtain the picture style information of the corresponding picture; or the picture style information of each picture can be determined through a pre-trained classification model; and so on. Of course, a part of the picture information of the picture itself, such as the above-mentioned picture content, picture tone, picture format, etc., may be acquired while acquiring the picture, and if the picture information of a certain picture changes, the picture information in the picture set description file corresponding to the certain picture may be updated accordingly to ensure the accuracy of the picture set description file, which is not limited in the embodiment of the present invention.
For example, in the iOS development process, adding picture resources is usually implemented by using a picture set provided by Xcode, and when setting a dark mode, a picture to be adapted to the dark mode may be set, and the picture style attribute may be set to support light and dark styles at the same time. When the picture is added, the picture style can be selected to be a dark color style or a light color style, the picture in the light color style and the picture in the dark color style can be added into the corresponding picture set respectively, and simultaneously, the picture set description file of the corresponding picture set can be automatically generated under the picture set file directory. Moreover, if the picture set description file already exists in the picture set, the original picture set description file can be directly updated.
Referring to fig. 2, in the embodiment of the present invention, the method may further include:
and step 160, acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture.
And/or, in step 170, counting the number of the target pictures as the number of the picture files belonging to the target style contained in the target application.
And/or, step 180, acquiring and recording an access path of each target picture.
After all target pictures in the target style are obtained, the information such as the size of the picture file, the number of the pictures, the access path and the like of the target pictures can be counted according to the requirement, so that the subsequent operation is facilitated. For example, to evaluate the proportion of the file size of a picture in a certain pattern, the proportion of the number of pictures, or to perform a certain special processing on a picture in a certain pattern, etc.
Therefore, in the embodiment of the present invention, after obtaining the target pictures in the target style, the size of the picture file belonging to the target style included in the target application may be further obtained according to the size of the picture file of each target picture, and specifically, the size of the picture file belonging to the target style included in the target application is the sum of the sizes of the picture files of each obtained target picture; and/or counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application; and/or acquiring and recording an access path of each target picture. In addition, in the embodiment of the present invention, the picture identification information of each target picture may also be recorded as needed.
Of course, in the embodiment of the present invention, any other operation may be performed on the target picture according to requirements, and the embodiment of the present invention is not limited thereto.
Fig. 3 is a schematic flow chart illustrating a process of counting the size of a dark-style picture file. Based on the picture set and the picture set description file, after the work directory of the project is input, firstly, all project directories (such as folder directories) in the project (such as a target application) can be traversed to obtain the picture set therein, secondly, the picture set description file under the directory of the picture set is read, data in the picture set description file is analyzed, picture list data (namely picture list information) in the picture set is traversed, picture list items with picture patterns in dark color patterns in the picture information are searched, and picture file names (namely picture identification information in the picture information) of the corresponding picture list items are read; and according to the picture file name, the picture resource which is the target picture and is wanted to be found in the directory of the picture set, and the size of the picture file of the target picture can be read. And repeating the steps until each picture set under the project is traversed, so as to obtain the file information of the picture with the deep color style under the project. For example, file information such as the size of the picture file in the dark color mode, the number of the picture files and the like is counted.
In the embodiment of the present invention, one or more steps in the steps 160-180 may be executed, and the steps 160-180 may be executed simultaneously, or may be executed according to a random sequence or a preset sequence, and the like, which is not limited in the embodiment of the present invention.
Optionally, in an embodiment of the present invention, the target pattern includes at least one of a dark color pattern and a light color pattern; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
As described above, in an application having a dark black mode, the picture pattern may include, but is not limited to, a dark color pattern, a light color pattern. Then, when the picture is counted, at least one of the dark color pattern and the light color pattern may be counted, that is, the target pattern may include at least one of the dark color pattern and the light color pattern.
In addition, when the picture set is set, in order to conveniently search pictures of different styles corresponding to the same page, for example, when the picture set is applied to switching between different modes, in order to quickly switch the page to a style corresponding to the current mode, that is, to call a picture resource corresponding to the current mode, it is obvious that if the switched picture resource and the picture resource before switching are in the same picture set, an acquisition path of the switched picture resource does not need to be additionally searched and accessed, so that the acquisition efficiency of the picture resource can be improved to a certain extent, and further the switching efficiency is improved. Therefore, in the embodiment of the present invention, when setting the picture set, the pictures of different picture styles corresponding to the same page may be stored in the same picture set, but the pictures corresponding to different pages may be in different picture sets, and the picture set in which the pictures are specifically stored may be randomly selected, or the correspondence between the pictures and the picture set may be preset according to the requirement, which is not limited in the embodiment of the present invention.
Referring to fig. 4, a schematic structural diagram of a picture statistics apparatus in an embodiment of the present invention is shown.
The picture statistical device of the embodiment of the invention comprises: a picture set acquisition module 210, a description file acquisition module 220 and a picture statistics module 230.
The functions of the modules and the interaction relationship between the modules are described in detail below.
The image set obtaining module 210 is configured to traverse a folder directory of a target application to obtain an image set of the target application.
A description file obtaining module 220, configured to obtain, for each picture set, a picture set description file of the picture set; the picture set description file comprises picture information of each picture contained in the picture set.
And the picture counting module 230 is configured to obtain a target picture with a picture style in the picture set as a target style according to the picture set description file.
According to the technical scheme disclosed by the application, on one hand, picture resources do not need to be named according to fixed specifications, picture naming is more flexible, and development efficiency is improved; on the other hand, the target picture under the target style is searched based on the picture resource description file generated by the picture set, so that the result deviation caused by artificial naming errors can be effectively avoided, and the statistical result is more accurate.
Referring to fig. 5, in an embodiment of the present invention, the picture statistics module 230 further includes:
a picture list obtaining submodule 231, configured to obtain picture list information in the picture set description file, where the picture list information includes picture information of each picture included in the picture set;
a picture list item determining module 232, configured to obtain, according to the picture information, a picture list item belonging to a target style from the picture list information;
and the target picture obtaining submodule 233 is configured to obtain, from the picture set, a picture corresponding to the picture information of each picture list item as the target picture.
Referring to fig. 5, in an embodiment of the present invention, the apparatus may further include:
a picture style setting module 240, configured to set picture resources of the target application in a form of a picture set, and set picture information of each picture in the picture set;
a description file generating module 250, configured to generate a picture set description file of the picture set according to the picture information of each picture included in the picture set.
Referring to fig. 5, in an embodiment of the present invention, the apparatus may further include:
a file information statistics module 260, configured to: acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture; and/or counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application; and/or acquiring and recording an access path of each target picture.
Optionally, in an embodiment of the present invention, the target pattern includes at least one of a dark color pattern and a light color pattern; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
The picture counting device provided by the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the above-mentioned embodiment of the picture statistics method, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above-mentioned embodiment of the picture statistics method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 6, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
It should 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.
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 (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A picture statistical method is characterized by comprising the following steps:
traversing a folder directory of a target application to obtain a picture set of the target application;
acquiring a picture set description file of each picture set;
acquiring a target picture with a picture style in the picture set as a target style according to the picture set description file;
the picture set description file comprises picture information of each picture contained in the picture set.
2. The method according to claim 1, wherein the step of obtaining the target picture with the picture style in the picture set as the target style according to the picture set description file comprises:
acquiring picture list information in the picture set description file, wherein the picture list information comprises picture information of each picture in the picture set;
acquiring a picture list item belonging to a target style from the picture list information according to the picture information;
and acquiring a picture corresponding to the picture information of each picture list item from the picture set as the target picture.
3. The method according to claim 1, further comprising, before the step of traversing the folder directory of the target application to obtain the photo set of the target application:
setting picture resources of the target application in a picture set form, and setting picture information of each picture in the picture set;
and generating a picture set description file of the picture set according to the picture information of each picture contained in the picture set.
4. The method according to any one of claims 1-3, wherein after the step of obtaining the target picture with the picture style in the picture set as the target style according to the picture set description file, the method further comprises:
acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture;
and/or counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application;
and/or acquiring and recording an access path of each target picture.
5. The method according to any one of claims 1-3, wherein the target pattern comprises at least one of a dark pattern, a light pattern; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
6. A picture statistic device, comprising:
the image set acquisition module is used for traversing a folder directory of a target application to acquire an image set of the target application;
the description file acquisition module is used for acquiring the picture set description file of each picture set;
the picture counting module is used for acquiring a target picture with a picture style in the picture set as a target style according to the picture set description file;
the picture set description file comprises picture information of each picture contained in the picture set.
7. The apparatus of claim 6, wherein the picture statistics module comprises:
the picture list acquisition sub-module is used for acquiring picture list information in the picture set description file, wherein the picture list information comprises the picture information of each picture in the picture set;
the picture list item determining module is used for acquiring a picture list item belonging to a target style from the picture list information according to the picture information;
and the target picture acquisition submodule is used for acquiring a picture corresponding to the picture information of each picture list item from the picture set to serve as the target picture.
8. The apparatus of claim 6, further comprising:
the picture style setting module is used for setting picture resources of the target application in a picture set form and setting picture information of each picture in the picture set;
and the description file generation module is used for generating the picture set description file of the picture set according to the picture information of each picture contained in the picture set.
9. The apparatus of any of claims 6-8, further comprising:
a file information statistics module for: acquiring the size of the picture file belonging to the target style contained in the target application according to the size of the picture file of each target picture; and/or the presence of a gas in the gas,
counting the number of the target pictures as the number of picture files belonging to the target style contained in the target application; and/or the presence of a gas in the gas,
and acquiring and recording an access path of each target picture.
10. The apparatus of any of claims 6-8, wherein the target pattern comprises at least one of a dark pattern, a light pattern; the pictures of different picture styles corresponding to the same page are stored in the same picture set.
11. An electronic device, comprising: memory, processor and 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 statistics method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the picture statistics method according to any one of claims 1 to 5.
CN202010178007.8A 2020-03-13 2020-03-13 Picture statistical method and device, electronic equipment and storage medium Pending CN111475660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010178007.8A CN111475660A (en) 2020-03-13 2020-03-13 Picture statistical method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010178007.8A CN111475660A (en) 2020-03-13 2020-03-13 Picture statistical method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111475660A true CN111475660A (en) 2020-07-31

Family

ID=71747432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010178007.8A Pending CN111475660A (en) 2020-03-13 2020-03-13 Picture statistical method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111475660A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087650A (en) * 2009-12-08 2011-06-08 北大方正集团有限公司 Method and device for displaying electronic document
US20160210686A1 (en) * 2015-01-21 2016-07-21 ImageQuick, Inc. System and method of capturing, managing and distributing digital image goods and services
CN109873901A (en) * 2018-12-28 2019-06-11 努比亚技术有限公司 A kind of screenshot method for managing resource and terminal, computer readable storage medium
CN110175259A (en) * 2019-05-30 2019-08-27 努比亚技术有限公司 Image display method, wearable device and computer readable storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN110633261A (en) * 2019-09-02 2019-12-31 恩亿科(北京)数据科技有限公司 Picture storage method, picture query method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087650A (en) * 2009-12-08 2011-06-08 北大方正集团有限公司 Method and device for displaying electronic document
US20160210686A1 (en) * 2015-01-21 2016-07-21 ImageQuick, Inc. System and method of capturing, managing and distributing digital image goods and services
CN109873901A (en) * 2018-12-28 2019-06-11 努比亚技术有限公司 A kind of screenshot method for managing resource and terminal, computer readable storage medium
CN110175259A (en) * 2019-05-30 2019-08-27 努比亚技术有限公司 Image display method, wearable device and computer readable storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN110633261A (en) * 2019-09-02 2019-12-31 恩亿科(北京)数据科技有限公司 Picture storage method, picture query method and device

Similar Documents

Publication Publication Date Title
CN107580147B (en) Management method of notification message and mobile terminal
CN108763316B (en) Audio list management method and mobile terminal
CN109857297B (en) Information processing method and terminal equipment
CN109213407B (en) Screenshot method and terminal equipment
CN108646960B (en) File processing method and flexible screen terminal
CN107783709B (en) Image viewing method and mobile terminal
CN110703972B (en) File control method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN109246474B (en) Video file editing method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
CN109491964B (en) File sharing method and terminal
CN108628534B (en) Character display method and mobile terminal
CN112612552B (en) Application resource loading method and device, electronic equipment and readable storage medium
CN107819936B (en) Short message classification method, mobile terminal and storage medium
CN105335434B (en) Log management method and device and electronic equipment
CN111190528B (en) Brush display method, electronic equipment and storage medium
CN110908751B (en) Information display and collection method and device, electronic equipment and medium
CN110378798B (en) Heterogeneous social network construction method, group recommendation method, device and equipment
CN111522613A (en) Screen capturing method and electronic equipment
CN111314639A (en) Video recording method and electronic equipment
CN108595104B (en) File processing method and terminal
CN110825288A (en) Image screening processing method and electronic equipment
CN107734049B (en) Network resource downloading method and device and mobile terminal
CN110851219A (en) Information processing method and electronic equipment
CN110825475A (en) Input method and electronic equipment

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