CN105138344A - Method and system for randomly generating screensaver according to picture hotness - Google Patents
Method and system for randomly generating screensaver according to picture hotness Download PDFInfo
- Publication number
- CN105138344A CN105138344A CN201510402662.6A CN201510402662A CN105138344A CN 105138344 A CN105138344 A CN 105138344A CN 201510402662 A CN201510402662 A CN 201510402662A CN 105138344 A CN105138344 A CN 105138344A
- Authority
- CN
- China
- Prior art keywords
- photo
- picture
- screen protection
- key
- screensaver
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention belongs to the technical field of data information processing, and particularly discloses a method and a system for randomly generating a screensaver according to picture hotness. The method comprises the steps of loading and browsing photos, making statistics on a photo browsing frequency, generating a screensaver album and setting a screensaver of a system. The system comprises an Android customization service system; the Android customization service system comprises a photo management application unit and a screensaver setting unit; the photo management application unit runs in the Android customization service system and is used for storing pictures, recording the photo browsing frequency and sequencing the photos; and the screensaver setting unit is used for setting the screensaver of the Android customization service system. According to the method and the system, the screensaver album is generated according to the frequency of browsing the pictures within a period of time; the method and the system not only have the characteristic of automatically recording photo browsing behaviors but also generate the screensaver album through the photo browsing frequency, so that the system calls the photos in the screensaver album when playing the screensaver.
Description
Technical field
The invention belongs to processing data information technical field, be specifically related to a kind of method and system according to the screen protection of picture temperature stochastic generation.
Background technology
The electronic equipment generally with operating system, when connecting display, all has screensaver functions.Screen protection is used also very extensive, both can provide visual animation effect to user, and increase Consumer's Experience sense, also plays the effect of protection display screen simultaneously.The selection of current most of screen protection picture is all choose from the photograph album of specifying, and the style of picture is more fixing, and Stochastic choice mode is single.
Summary of the invention
For the deficiency that above-mentioned prior art exists, the object of this invention is to provide a kind of method for upgrading software precisely pushed based on backstage, the method correctly can identify which batch a product belongs to, thus carries out the scheme of different batches upgrading.
Given this, the invention provides a kind of method according to the screen protection of picture temperature stochastic generation, the method comprises:
Load, browse photo: from photo files, load photo and be saved in array queue ImageArr []; Often open photo all to generate and correspondingly after unique MD5 code and picture data value ImageData generate the first key-value pair, and the first key-value pair is left in dictionary1; Often open after photo all generates unique MD5 code and viewed number of times mark count and corresponding generate the second key-value pair, and the second key-value pair is left in dictionary2; Photo in ImageArr [] is presented on self-defined photographic view control;
Statistics photo number of visits: browse photo by self-defined photographic view control, and from dictionary2, search current viewed number of times ident value count according to current browsing pictures generation MD5 code, often browse and once upgrade viewed number of times ident value count;
Generate screen protection photograph album: add up the second key-value pair in a dictionary2 every day, sort according to viewed number of times ident value count, then from dictionary1, search corresponding picture data value ImageData according to MD5 code; The picture data of n time before number of visits is stored in array queue ScreenProtectArr [];
System screen protection is set: array queue ScreenProtectArr [] is defined as screen protection photograph album, and deposits in systems in which.
As preferably, described loading, browse photo step before also comprise storage picture data, this storage picture data particular content is: by native system picture library or crawl picture website picture-storage in photo files.
As preferably, the key in described first key-value pair is MD5 code, value is ImageData, and the key in the second key-value pair is MD5 code, value is viewed number of times mark count.
As preferably, the n before described number of visits in n time is 20 ~ 50.
Given this, invention further provides a kind of system according to the screen protection of picture temperature stochastic generation, this system comprises Android customize services system, this Android customize services system comprises photo management applying unit and screen protection setting unit, wherein said photo management applying unit runs in described Android customize services system and for the sequence of picture, recording photograph number of visits and comparison film, described screen protection setting unit is used for arranging the screen protection of Android customize services system.
As preferably, described photo management applying unit comprises:
Data memory module, for by native system picture library or crawl picture website picture-storage in photo files;
Photo display module, for the photo loaded or in browsing data storage unit;
Photo behavior processing module, for the number of times that recording photograph is viewed;
Screen protection photograph album generation module, generates screen protection photograph album after sorting for the number of times comparison film viewed according to photo.
The present invention compared with prior art has following beneficial effect: the number of times (picture temperature) that the present invention is viewed within a period of time according to picture, generate screen protection photograph album, play when getting photo after system reaches screen protection trigger condition from screen protection photograph album, not only there is the feature of the viewed behavior of automatic recording photograph, but also generate screen protection photograph album, to call the photo in screen protection photograph album during system plays screen protection by the viewed number of times of photo.
Accompanying drawing explanation
Fig. 1 is the basic flow sheet of method described in the embodiment of the present invention.
The specific works schematic diagram that Fig. 2 is method described in the embodiment of the present invention.
Fig. 3 is the basic framework figure of system described in another embodiment of the present invention.
Fig. 4 is the inner structure schematic diagram of the applying unit of photo management described in another embodiment of the present invention.
Reference numeral:
100-Android customize services system, 101-photo management applying unit, 1011-data memory module, 1012-photo display module, 1013-photo behavior processing module, 1014-screen protection photograph album generation module, 102-screen protection setting unit.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
As shown in Figure 1, embodiments provide a kind of method according to the screen protection of picture temperature stochastic generation, the method comprises:
Load, browse photo: from photo files, load photo and be saved in array queue ImageArr []; Often open photo all to generate and correspondingly after unique MD5 code and picture data value ImageData generate the first key-value pair, and the first key-value pair is left in dictionary1; Often open after photo all generates unique MD5 code and viewed number of times mark count and corresponding generate the second key-value pair, and the second key-value pair is left in dictionary2; Photo in ImageArr [] is presented on self-defined photographic view control;
Statistics photo number of visits: browse photo by self-defined photographic view control, and from dictionary2, search current viewed number of times ident value count according to current browsing pictures generation MD5 code, often browse and once upgrade viewed number of times ident value count;
Generate screen protection photograph album: add up the second key-value pair in a dictionary2 every day, sort according to viewed number of times ident value count, then from dictionary1, search corresponding picture data value ImageData according to MD5 code; The picture data of n time before number of visits is stored in array queue ScreenProtectArr [];
System screen protection is set: array queue ScreenProtectArr [] is defined as screen protection photograph album, and deposits in systems in which.
Described loading, browse photo step before also comprise storage picture data, this storage picture data particular content is: by native system picture library or crawl picture website picture-storage in photo files.
Key in described first key-value pair is MD5 code, value is ImageData, and the key in the second key-value pair is MD5 code, value is viewed number of times mark count.
N before described number of visits in n time is 20 ~ 50.
As shown in Figure 2, embodiment of the present invention particular content is as follows:
Picture data is also stored in photo files by start up system application program, is wherein specially to load photo or photo website from this map office and crawl picture with scenes and be stored in photo files; From photo photo files, load photo and be saved in array queue ImageArr []; Often open photo have generate unique MD5 code and picture data value ImageData after correspondingly generate the first key-value pair, wherein MD5 is key, ImageData is value, leaves in dictionary1 by the first key-value pair; Often open photo and have the unique MD5 code of generation and viewed number of times ident value count, wherein MD5 code and count generate the second key-value pair, and MD5 is key, and count is value, are left in by key-value pair in dictionary dictionary2; Photo in ImageArr [] is presented in self-defined photographic view; Generate MD5 code according to current browsing pictures, from dictionary2, search current viewed number of times ident value count, upgrade viewed number of times ident value count, often browse and once just add 1; Add up the second key-value pair of data in a dictionary2 every day, carry out sequence process according to viewed number of times ident value count, and from dictionary1, search corresponding picture data value ImageData according to MD5 code; The picture data of front for number of visits 30 times is stored in array queue ScreenProtectArr []; Array queue ScreenProtectArr [] being defined as screen protection photograph album, and leaving in meiOS system, finally playing when getting photo after system reaches screen protection trigger condition from screen protection photograph album.
As shown in Figure 3, another embodiment of the present invention provides a kind of system according to the screen protection of picture temperature stochastic generation, this system comprises Android customize services system 100, this Android customize services system 100 comprises photo management applying unit 101 and screen protection setting unit 102, wherein said photo management applying unit 101 runs in described Android customize services system 100 and for the sequence of picture, recording photograph number of visits and comparison film, described screen protection setting unit 102 is for arranging the screen protection of Android customize services system 100.Described Android customize services system 100 is meiOS in embodiments of the present invention, described photo management applying unit 101 is meiUI.
Described photo management applying unit 101 comprises data memory module 1011, photo display module 1012, photo behavior processing module 1013 and screen protection photograph album generation module 1014, described data memory module 1011 for by native system picture library or crawl picture website picture-storage in photo files, the photo of described photo display module 1012 for loading or in browsing data memory module 1011, described photo behavior processing module 1013 is for the viewed number of times of recording photograph, described screen protection photograph album generation module 1014 generates screen protection photograph album after sorting for the number of times comparison film viewed according to photo.
Above content is only preferred embodiment of the present invention, and for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.
Claims (6)
1., according to a method for picture temperature stochastic generation screen protection, the method comprises:
Load, browse photo: from photo files, load photo and be saved in array queue ImageArr []; Often open photo all to generate and correspondingly after unique MD5 code and picture data value ImageData generate the first key-value pair, and the first key-value pair is left in dictionary1; Often open after photo all generates unique MD5 code and viewed number of times mark count and corresponding generate the second key-value pair, and the second key-value pair is left in dictionary2; Photo in ImageArr [] is presented on self-defined photographic view control;
Statistics photo number of visits: browse photo by self-defined photographic view control, and from dictionary2, search current viewed number of times ident value count according to current browsing pictures generation MD5 code, often browse and once upgrade viewed number of times ident value count;
Generate screen protection photograph album: add up the second key-value pair in a dictionary2 every day, sort according to viewed number of times ident value count, then from dictionary1, search corresponding picture data value ImageData according to MD5 code; The picture data of n time before number of visits is stored in array queue ScreenProtectArr [];
System screen protection is set: array queue ScreenProtectArr [] is defined as screen protection photograph album, and deposits in systems in which.
2. the method according to the screen protection of picture temperature stochastic generation according to claim 1, it is characterized in that, described loading, browse photo step before also comprise storage picture data, this storage picture data particular content is: by native system picture library or crawl picture website picture-storage in photo files.
3. the method according to the screen protection of picture temperature stochastic generation according to claim 1, is characterized in that, the key in described first key-value pair is MD5 code, value is ImageData, and the key in the second key-value pair is MD5 code, value is viewed number of times mark count.
4. the method according to the screen protection of picture temperature stochastic generation according to claim 1, is characterized in that, the n before described number of visits in n time is 20 ~ 50.
5. the system according to the screen protection of picture temperature stochastic generation, this system comprises Android customize services system, this Android customize services system comprises photo management applying unit and screen protection setting unit, wherein said photo management applying unit runs in described Android customize services system and for the sequence of picture, recording photograph number of visits and comparison film, described screen protection setting unit is used for arranging the screen protection of Android customize services system.
6. according to the system according to the screen protection of picture temperature stochastic generation shown in claim 5, it is characterized in that, described photo management applying unit comprises:
Data memory module, for by native system picture library or crawl picture website picture-storage in photo files;
Photo display module, for the photo loaded or in browsing data storage unit;
Photo behavior processing module, for the number of times that recording photograph is viewed;
Screen protection photograph album generation module, generates screen protection photograph album after sorting for the number of times comparison film viewed according to photo.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510402662.6A CN105138344A (en) | 2015-07-10 | 2015-07-10 | Method and system for randomly generating screensaver according to picture hotness |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510402662.6A CN105138344A (en) | 2015-07-10 | 2015-07-10 | Method and system for randomly generating screensaver according to picture hotness |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105138344A true CN105138344A (en) | 2015-12-09 |
Family
ID=54723702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510402662.6A Pending CN105138344A (en) | 2015-07-10 | 2015-07-10 | Method and system for randomly generating screensaver according to picture hotness |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105138344A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721606A (en) * | 2016-03-28 | 2016-06-29 | 北京小米移动软件有限公司 | Automatic setting method and apparatus for avatar |
CN105808100A (en) * | 2016-02-29 | 2016-07-27 | 北京金山安全软件有限公司 | Picture sorting method and device and electronic equipment |
CN105975267A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Screen protection method and screen protection system for intelligent terminal |
CN108154475A (en) * | 2017-12-22 | 2018-06-12 | 维沃移动通信有限公司 | A kind of image processing method and device |
CN109542748A (en) * | 2018-11-26 | 2019-03-29 | 北京时光荏苒科技有限公司 | A kind of determination method, apparatus, equipment and the storage medium of views browsing number |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932813A (en) * | 2006-10-08 | 2007-03-21 | 张弘 | Method for automatic insertion broadcasting to realize personalistic information interaction on video-screen by carefully selected graph |
CN101710276A (en) * | 2009-12-02 | 2010-05-19 | 中兴通讯股份有限公司 | Method and device for setting and unlocking screensaver |
-
2015
- 2015-07-10 CN CN201510402662.6A patent/CN105138344A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932813A (en) * | 2006-10-08 | 2007-03-21 | 张弘 | Method for automatic insertion broadcasting to realize personalistic information interaction on video-screen by carefully selected graph |
CN101710276A (en) * | 2009-12-02 | 2010-05-19 | 中兴通讯股份有限公司 | Method and device for setting and unlocking screensaver |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808100A (en) * | 2016-02-29 | 2016-07-27 | 北京金山安全软件有限公司 | Picture sorting method and device and electronic equipment |
CN105721606A (en) * | 2016-03-28 | 2016-06-29 | 北京小米移动软件有限公司 | Automatic setting method and apparatus for avatar |
CN105975267A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Screen protection method and screen protection system for intelligent terminal |
CN108154475A (en) * | 2017-12-22 | 2018-06-12 | 维沃移动通信有限公司 | A kind of image processing method and device |
CN109542748A (en) * | 2018-11-26 | 2019-03-29 | 北京时光荏苒科技有限公司 | A kind of determination method, apparatus, equipment and the storage medium of views browsing number |
CN109542748B (en) * | 2018-11-26 | 2023-08-01 | 北京时光荏苒科技有限公司 | Method, device, equipment and storage medium for determining view browsing times |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210117059A1 (en) | Application interface management method and apparatus | |
US9836346B2 (en) | Error troubleshooting using a correlated knowledge base | |
CN105138344A (en) | Method and system for randomly generating screensaver according to picture hotness | |
CN109819284A (en) | A kind of short video recommendation method, device, computer equipment and storage medium | |
US10880595B2 (en) | Method and apparatus for adjusting virtual reality scene, and storage medium | |
CN108228293B (en) | Interface skin switching method and device | |
CN104461631B (en) | A kind of system OTA upgrade methods and device | |
CN112866790A (en) | Video playing method and system | |
CN106569917B (en) | Data backup method and mobile terminal | |
CN112988185A (en) | Cloud application updating method, device and system, electronic equipment and storage medium | |
CN110113391B (en) | Client online method and device and client operation method and device | |
CN112748961A (en) | Method and device for executing starting task | |
CN112148395A (en) | Page display method, device, equipment and storage medium | |
US20140157147A1 (en) | Feedback system, feedback method and recording media thereof | |
CN114238249B (en) | File system aging evaluation method and device, storage medium and terminal | |
CN107479960B (en) | Method and device for displaying unit view | |
TW202016723A (en) | Method for adaptively adjusting amount of information in user interface design and electronic device | |
US11574001B2 (en) | Method and apparatus for generating unordered list, method for managing images and terminal device | |
CN112817782B (en) | Data acquisition reporting method and device, electronic equipment and storage medium | |
CN115167941A (en) | Front-end component processing method, device, terminal and storage medium | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN114756362A (en) | Resource quota management method and system, intelligent terminal and storage medium | |
CN104350476A (en) | A method and a device for adjusting a version checking period | |
CN110209402B (en) | Application installation method, electronic device and computer storage medium | |
CN109284598B (en) | Method for generating electronic identity card on education cloud platform page and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151209 |