CN104407727B - screen protection method and device - Google Patents

screen protection method and device Download PDF

Info

Publication number
CN104407727B
CN104407727B CN201410436452.4A CN201410436452A CN104407727B CN 104407727 B CN104407727 B CN 104407727B CN 201410436452 A CN201410436452 A CN 201410436452A CN 104407727 B CN104407727 B CN 104407727B
Authority
CN
China
Prior art keywords
image
color vector
color
pixel
coloring
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
CN201410436452.4A
Other languages
Chinese (zh)
Other versions
CN104407727A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410436452.4A priority Critical patent/CN104407727B/en
Publication of CN104407727A publication Critical patent/CN104407727A/en
Application granted granted Critical
Publication of CN104407727B publication Critical patent/CN104407727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of screen protection method and device, belong to field of terminal technology.Method includes:To specifying image to carry out going colorization to handle, obtain specifying the gray level image of image;When in the handoff procedure of screen saver image, often carrying out an image switching, following operation is performed:According to the gray value of the pixel of each in gray level image, from color vector mapping relations, the gray value of each pixel corresponding color vector under any coloring mode is obtained;According to the color vector got, gray level image is coloured, the image after display coloring.The present invention by based on specifying image, during screen protection is carried out, showing the image coloured with different coloring modes every time; realize and change different display colors; the purpose of screen protection has been reached, storage resource has been saved, the calculating pressure of processor has been greatly reduced.

Description

Screen protection method and device
Technical field
The disclosure is directed to field of terminal technology, especially with respect to a kind of method and apparatus of screen protection.
Background technology
Computer turns into the important tool in people's live and work, and almost the most of the time all utilizes computer to people Various things are handled official business, entertain and handle, but not the moment is operated people, when computer is in idle condition for a long time When, computer would generally automatically switch to screen saver mode, can also voluntarily be set by user and be switched to screen saver mode.
Wherein, screen protection is a kind of know-how in order to protect computer display and design.The screen protection skill The principle of art is that in the standby state, dynamic display image prevents screen from showing same image for a long time, so as to avoid making screen The luminescent device fatigue aging of curtain, extends display service life.Presently relevant technology provides following technical scheme:User One image can be voluntarily set, computer Dynamic Announce image in various different formats.Such as, image is to fade out or fly into Form is shown.Or, user can also set multiple images, switch over display between images by computer random, e.g., The switching circulated in the way of continuous rolling between 3 images of setting is shown.By any of the above-described mode, it can keep away Each pixel exempted from screen is in a kind of state of color for a long time, so as to reach the effect of protection screen.
During the disclosure is realized, inventor has found that correlation technique at least has problems with:
Set in a computer multiple images as screen protection image when, image will take certain memory space, make Into the waste of storage resource.In addition, the mode of computer dynamic switching display image is higher to the processing requirement of image, meter is taken Calculation machine process resource is larger.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method and apparatus of screen protection.
On the one hand there is provided a kind of screen protection method, including:
To specifying image to carry out going colorization to handle, the gray level image of the specified image is obtained;
In the handoff procedure of screen saver image, an image switching is often carried out, following operation is performed:
According to the gray value of each pixel in the gray level image, from color vector mapping relations, obtain described each The gray value of individual pixel corresponding color vector under any coloring mode;Wherein, in the color vector mapping relations Including the corresponding relation in different coloring modes between gray value and color vector;
According to the color vector got, the gray level image is coloured, the image after display coloring.
To specifying image to carry out going colorization to handle, obtaining the gray level image of the specified image includes:
According to the color channel data with each pixel of the specified image, each in the specified image is obtained The gray value of pixel;
According to the gray value of each pixel, the gray level image of the specified image is obtained.
Methods described also includes:
In color space, the color vector of random uniform sampling predetermined number;
The color vector obtained according to sampling, generates the color vector mapping relations.
In another embodiment, methods described also includes:
When in the handoff procedure of screen saver image, often carrying out an image switching, according to any coloring mode, life is performed The step of color vector mapping relations corresponding into the coloring mode.
Methods described also includes:
In color space, the color vector of random uniform sampling predetermined number;
The color vector that color layout and sampling in the specified image are obtained, generates the color vector mapping Relation.
On the other hand, a kind of screen protective device, including:
Colorization processing module is gone, for specifying image to carry out going colorization to handle, obtaining the ash of the specified image Spend image;
Image display, in the handoff procedure of screen saver image, often carrying out an image switching, is performed such as Lower operation:According to the gray value of each pixel in the gray level image, from color vector mapping relations, obtain it is described each The gray value of pixel corresponding color vector under any coloring mode;Wherein, wrapped in the color vector mapping relations Include the corresponding relation between gray value and color vector in different coloring modes;According to the color vector got, to the ash Degree image is coloured, the image after display coloring.
It is described go colorization processing module be used for according to the color channel data of each pixel of the specified image, Obtain the gray value of each pixel in the specified image;According to the gray value of each pixel, the finger is obtained Determine the gray level image of image.
Described device also includes:
First generation module, in color space, the color vector of random uniform sampling predetermined number;According to sampling The color vector arrived, generates the color vector mapping relations.
Described device is additionally operable to when in the handoff procedure of screen saver image, often carrying out an image switching, according to any Coloring mode, triggers the step that first generation module performs the corresponding color vector mapping relations of the generation coloring mode Suddenly.
Described device also includes:
Second generation module, in color space, the color vector of random uniform sampling predetermined number;According to described The color vector for specifying the color layout in image and sampling to obtain, generates the color vector mapping relations.
Some beneficial effects of the disclosure can include:The method that the disclosure is provided, by based on specifying image, During screen protection is carried out, the image coloured with different coloring modes is shown every time, is realized ceaselessly more The same different display color of image is changed, while having reached the purpose of screen protection, it is to avoid the transition to memory space Take, saved storage resource, be greatly reduced the calculating pressure of processor.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of screen protection method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of screen protection method according to an exemplary embodiment.
Fig. 3 is the screensaver image schematic diagram under a variety of different color modes that the disclosure is provided.
Fig. 4 is a kind of screen protective device block diagram according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device 500 for screen protection according to an exemplary embodiment.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of screen protection method according to an exemplary embodiment, as shown in figure 1, screen Guard method is used in computer, comprises the following steps.
In a step 101, to specifying image to carry out going colorization to handle, the gray level image of the specified image is obtained.
In a step 102, in the handoff procedure of screen saver image, an image switching is often carried out, following behaviour is performed Make:According to the gray value of each pixel in the gray level image, from color vector mapping relations, each described pixel is obtained The gray value of point corresponding color vector under any coloring mode;Wherein, the color vector mapping relations are included not With the corresponding relation in coloring mode between gray value and color vector;According to the color vector got, to the gray-scale map As being coloured, the image after display coloring.
The method that the disclosure is provided, by based on specifying image, during screen protection is carried out, every time The image coloured with different coloring modes is shown, realizes and ceaselessly changes the same different display color of image, reach While having arrived the purpose of screen protection, it is to avoid the transition to memory space takes, and has saved storage resource, is greatly reduced The calculating pressure of processor.
In another embodiment, to specifying image to carry out going colorization to handle, the gray level image of the specified image is obtained Including:According to the color channel data with each pixel of the specified image, each picture in the specified image is obtained The gray value of vegetarian refreshments;According to the gray value of each pixel, the gray level image of the specified image is obtained.
In another embodiment, methods described also includes:In color space, the color of random uniform sampling predetermined number Vector;The color vector obtained according to sampling, generates the color vector mapping relations.
In another embodiment, methods described also includes:When in the handoff procedure of screen saver image, often once schemed As switching, according to any coloring mode, the step of performing the generation coloring mode corresponding color vector mapping relations.
In another embodiment, methods described also includes:In color space, the color of random uniform sampling predetermined number Vector;The color vector that color layout and sampling in the specified image are obtained, generates the color vector mapping and closes System.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the present invention, herein no longer using any combination Repeat one by one.
Fig. 2 is a kind of flow chart of screen protection method according to an exemplary embodiment, as shown in Fig. 2 screen Guard method is used in computer, comprises the following steps.
In step 201, in color space, the color vector of random uniform sampling predetermined number.
Wherein, color space refers to be illustrated the color of image with ad hoc fashion under certain standard.Such as, RGB face The colour space is by each to obtain to red (R), green (G), the change of blue (B) three Color Channels and their mutual superpositions Color is planted, this standard almost includes all colours that human eyesight can perceive.The present count of the random uniform sampling Amount is determined according to the number of gray values of image.Usually, the gray value of image is divided into 256 grades, then this is random uniform The predetermined number of sampling is defined as 256.
Color vector refers in color space, can illustrate one determined by three channel parameters of the color space The display format of individual pixel.Such as, in RGB color, each RGB channel parametric component is assigned a 0-255 model Interior intensity level is enclosed, then is understood in the RGB color, one has 256 × 256 × 256 color vectors.
In this step, in color space (such as 256*256*256 rgb space) random 256 colors of uniform sampling to Amount is to set up corresponding relation for the follow-up gray value with specified image slices vegetarian refreshments to explain.In addition, the color space can be RGB The color spaces such as space, CIElab spaces, YUV.
In step 202., the color vector obtained according to sampling, generates color vector mapping relations.
Wherein, color vector mapping relations refer to the mapping relations between gray value and color vector.The color vector is reflected The relation of penetrating can be following any form:(1) embodied in the form of a table, i.e., include will be in different coloring modes for the table Lower corresponding relation between gray value and color vector.(2) embodied in the form of multiple tables, i.e., each table includes a kind of coloring The lower corresponding relation between gray value and color vector of mode.
Certainly, above-mentioned steps 201 and step 202 are said exemplified by disposably generating all colours DUAL PROBLEMS OF VECTOR MAPPING relation It is bright, and in fact, in actual applications, can not also disposably generate all mapping relations, but moved during screen protection State is generated, and a color vector mapping relations is generated at random during switching every time, to reach the effect of screen protection.
During above-mentioned steps 201- steps 202, used color vector mapping relations are according to random uniform What the color vector of sampling was generated at random, for the otherness that is further ensured that after coloring in picture between color vector and whole The appreciative value of color layout, the step 201 and step 202 also can use procedure below to replace:It is random uniform in color space The color vector of sampling predetermined number;The color vector that color layout and sampling in the specified image are obtained, generation The color vector mapping relations.The color method considers the relation coloured in image between color vector and color layout, Using the color channel data of the pixel of each in image and output as the training data of algorithm, count to each color mode Under, the corresponding color vector of each gray value, by the equal of color vector of each gray value under same coloring mode Value is used as the gray value corresponding color vector under the coloring mode, so that color vector corresponding relation is obtained, in screen protection When the coloring mode of same image can be changed by the color vector corresponding relation of ceaselessly random switching storage so that Reach the purpose of screen protection.
In step 203, according to the color channel data of each pixel for specifying image, obtain this and specify in image Each pixel gray value.
Wherein, color channel data refers to the characteristic parameter of each dimension in color space.Such as, in YUV color spaces In, the color channel data can be the color data of the brightness data of Y passages, U passages and V passages, certainly, the gray value Any color space can be based on by calculating, and the color channel data of the color space only need to be converted to the face of YUV color spaces Chrominance channel data, are not repeated this process.
In step 204, according to the gray value of each pixel, the gray level image of the specified image is obtained.
For the embodiment, terminal is that a secondary specified image only preserves a secondary corresponding gray level image, is substantially reduced In order to realize the random memory space changed screen saver image and needed.
In step 205, in the handoff procedure of screen saver image, an image switching is often carried out, following behaviour is performed Make:According to the gray value of the pixel of each in gray level image, from color vector mapping relations, each pixel is obtained Gray value corresponding color vector under any coloring mode;Wherein, the color vector mapping relations include difference In color mode, the corresponding relation between gray value and color vector.
Wherein, coloring mode refers to the image rendering methods for different tone styles, is coloured by different coloring modes Image has different picture styles.Such as, the coloring mode of pseudo-classic style is shown as the picture of brown tune, the coloring of pastoralism Mode is shown as picture of yellowish tone etc..In this step, an image switching is often carried out, then converts a kind of coloring mode pair The color vector mapping relations answered, so that corresponding color vector is not yet under different coloring modes for the gray value of each pixel Together.
It is different according to the form of color vector mapping relations, the gray value of each pixel is obtained in any coloring mode Under corresponding color vector have following two methods:
(1) if color vector mapping relations be the gray value comprising multigroup pixel under different coloring modes with color to The mapping table of amount, in every image switching of progress, then in mapping table, sequentially under a kind of lower coloring mode In the gray value of pixel and the corresponding relation of color vector, the corresponding color vector of gray value of the pixel is obtained.
(2) if color vector mapping relations only the gray value comprising one group of pixel under different coloring modes with color to The mapping table of amount, in every image switching of progress, according to any coloring mode, performs and generates coloring mode correspondence Color vector mapping relations the step of, obtained in the color vector mapping relations of generation the pixel gray value correspondence Color vector.
It can be known by foregoing description, the color vector mapping relations can previously generate to make in handoff procedure With can also generate in real time for directly being used in handoff procedure, therefore not to repeat here.
In step 206, according to the color vector got, the gray level image is coloured.
In the coloring process, new image will not be generated, gray level image is still only stored in the terminal, it is to avoid deposit The waste in space is stored up, the memory source needed for processing image has been greatly reduced.
In step 207, under screen protection state, the image after display coloring.
Wherein, in every image switching of progress, the ash in next group of pixel of different coloring modes that correspondence is obtained Angle value is different from the mapping table of color vector, therefore also different to the coloring effect of image, so that in switching During, the specified image of constantly conversion Fill Color can be shown on screen.Such as, referring to Fig. 3, shown by the Fig. 3 is this Screensaver image under the open a variety of different color modes provided.The plurality of screensaver image (each image in Fig. 3 (B)) is It is to be formed according to the coloring of the gray level image (gray level image in Fig. 3 (A)) of a specified image.
It should be noted that above-mentioned steps 205- steps 207 are in the handoff procedure of screen saver image, from one kind The display of color mode switches to the display process of another coloring mode, and under screen saver mode, according to its screen The duration of protected mode, may relate to repeatedly switching, and the process switched every time is same with above-mentioned steps 205- steps 207 Reason, will not be repeated here.
The method that the disclosure is provided, by based on specifying image, during screen protection is carried out, every time The image coloured with different coloring modes is shown, realizes and ceaselessly changes the same different display color of image, reach While having arrived the purpose of screen protection, it is to avoid the transition to memory space takes, and has saved storage resource, is greatly reduced The calculating pressure of processor.
Fig. 4 is a kind of screen protective device block diagram according to an exemplary embodiment.Reference picture 4, the device includes Go colorization processing module 401 and image display 402.
This goes colorization processing module 401 to be configured as, to specifying image to carry out going colorization to handle, obtaining described specify The gray level image of image.
The image display 402 is configured as in the handoff procedure of screen saver image, is often carried out an image and is cut Change, perform following operation:According to the gray value of each pixel in the gray level image, from color vector mapping relations, obtain The gray value of each pixel corresponding color vector under any coloring mode described in taking;Wherein, the color vector is reflected The relation of penetrating includes the corresponding relation between gray value and color vector in different coloring modes;According to the color got to Amount, is coloured to the gray level image, the image after display coloring.
Wherein, it is described go colorization processing module be used for according to the Color Channel of each pixel of the specified image Data, obtain the gray value of each pixel in the specified image;According to the gray value of each pixel, institute is obtained State the gray level image of specified image.
Wherein, described device also includes:
First generation module, in color space, the color vector of random uniform sampling predetermined number;According to sampling The color vector arrived, generates the color vector mapping relations.
Wherein, described device is additionally operable in the handoff procedure when screen saver image, often carries out an image switching, according to Any coloring mode, triggers first generation module and performs the corresponding color vector mapping relations of the generation coloring mode Step.
Wherein, described device also includes:
Second generation module, in color space, the color vector of random uniform sampling predetermined number;According to described The color vector for specifying the color layout in image and sampling to obtain, generates the color vector mapping relations.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of device 500 for screen protection according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to put 500 Equipment, body-building equipment, personal digital assistant etc..
Reference picture 5, device 500 can include following one or more assemblies:Processing assembly 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing assembly 502, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Treatment element 502 can refer to including one or more processors 520 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 502 can include one or more modules, just Interaction between processing assembly 502 and other assemblies.For example, processing component 502 can include multi-media module, it is many to facilitate Interaction between media component 508 and processing assembly 502.
Memory 504 is configured as storing various types of data supporting the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, and contact data, telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 504 or via communication set Part 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 is provide interface between processing assembly 502 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor cluster 514 can detect opening/closed mode of device 500, the relative positioning of component is for example described Component is the display and keypad of device 500, and sensor cluster 514 can be with 500 1 components of detection means 500 or device Position change, the existence or non-existence that user contacts with device 500, the orientation of device 500 or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between Instruction in matter by the computing device of mobile terminal when so that mobile terminal is able to carry out a kind of screen protection method, described Method includes:To specifying image to carry out going colorization to handle, the gray level image of the specified image is obtained;In screen saver image Handoff procedure in, often carry out the switching of image, perform following operation:According to the ash of each pixel in the gray level image Angle value, from color vector mapping relations, the gray value for obtaining each pixel is corresponding under any coloring mode Color vector;Wherein, the color vector mapping relations are included in different coloring modes between gray value and color vector Corresponding relation;According to the color vector got, the gray level image is coloured, the image after display coloring.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

1. a kind of screen protection method, it is characterised in that including:
To specifying image to carry out going colorization to handle, the gray level image of the specified image is obtained;
In the automatic switching procedure of screen saver image, an image switching is often carried out, following operation is performed:
According to the gray value of each pixel in the gray level image, from color vector mapping relations, obtain described each at random The gray value of individual pixel corresponding color vector under any coloring mode;Wherein, in the color vector mapping relations Including the corresponding relation in different coloring modes between gray value and color vector;
According to the color vector got, the gray level image is coloured, the image after display coloring.
2. according to the method described in claim 1, it is characterised in that to specifying image to carry out going colorization to handle, obtain described Specifying the gray level image of image includes:
According to the color channel data with each pixel of the specified image, each pixel in the specified image is obtained The gray value of point;
According to the gray value of each pixel, the gray level image of the specified image is obtained.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
In color space, the color vector of random uniform sampling predetermined number;
The color vector obtained according to sampling, generates the color vector mapping relations.
4. method according to claim 3, it is characterised in that methods described also includes:
When in the handoff procedure of screen saver image, often carrying out an image switching, according to any coloring mode, generation institute is performed The step of stating coloring mode corresponding color vector mapping relations.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
In color space, the color vector of random uniform sampling predetermined number;
The color vector that color layout and sampling in the specified image are obtained, generates the color vector mapping and closes System.
6. a kind of screen protective device, it is characterised in that including:
Colorization processing module is gone, for specifying image to carry out going colorization to handle, obtaining the gray-scale map of the specified image Picture;
Image display, in the automatic switching procedure of screen saver image, often carrying out an image switching, is performed such as Lower operation:It is random to obtain described from color vector mapping relations according to the gray value of each pixel in the gray level image The gray value of each pixel corresponding color vector under any coloring mode;Wherein, the color vector mapping relations Include the corresponding relation between gray value and color vector in different coloring modes;According to the color vector got, to institute State gray level image to be coloured, the image after display coloring.
7. device according to claim 6, it is characterised in that it is described go colorization processing module be used for according to the finger Determine the color channel data of each pixel of image, obtain the gray value of each pixel in the specified image;According to The gray value of each pixel, obtains the gray level image of the specified image.
8. device according to claim 6, it is characterised in that described device also includes:
First generation module, in color space, the color vector of random uniform sampling predetermined number;Obtained according to sampling Color vector, generates the color vector mapping relations.
9. device according to claim 8, it is characterised in that described device is additionally operable to the switching when screen saver image Cheng Zhong, often carries out an image switching, according to any coloring mode, triggers first generation module and performs the generation coloring The step of mode corresponding color vector mapping relations.
10. device according to claim 6, it is characterised in that described device also includes:
Second generation module, in color space, the color vector of random uniform sampling predetermined number;Specified according to described The color vector that color layout and sampling in image are obtained, generates the color vector mapping relations.
CN201410436452.4A 2014-08-29 2014-08-29 screen protection method and device Active CN104407727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410436452.4A CN104407727B (en) 2014-08-29 2014-08-29 screen protection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410436452.4A CN104407727B (en) 2014-08-29 2014-08-29 screen protection method and device

Publications (2)

Publication Number Publication Date
CN104407727A CN104407727A (en) 2015-03-11
CN104407727B true CN104407727B (en) 2017-11-07

Family

ID=52645363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410436452.4A Active CN104407727B (en) 2014-08-29 2014-08-29 screen protection method and device

Country Status (1)

Country Link
CN (1) CN104407727B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818549A (en) * 2017-10-27 2018-03-20 上海京颐科技股份有限公司 Image processing method, device, equipment and computer-readable medium
CN109994037B (en) * 2017-12-29 2021-12-14 杭州海康威视系统技术有限公司 Method, device, terminal and storage medium for generating electronic map
CN110545474B (en) * 2018-05-28 2021-07-06 深圳Tcl新技术有限公司 Screen protection control method and control system of TFT (thin film transistor) liquid crystal screen
CN113096592B (en) * 2019-12-23 2022-12-27 鹤壁天海电子信息系统有限公司 Method and device for eliminating ghost shadow of display screen and display device
CN115731861B (en) * 2022-11-18 2024-06-18 武汉路特斯汽车有限公司 Screen color adjustment method, device and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193229A (en) * 2006-11-21 2008-06-04 深圳Tcl新技术有限公司 A method and system for skin change of TV function interface
CN102402367A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Method for implementing dynamic theme in mobile phone terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130134546A (en) * 2012-05-31 2013-12-10 삼성전자주식회사 Method for create thumbnail images of videos and an electronic device thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193229A (en) * 2006-11-21 2008-06-04 深圳Tcl新技术有限公司 A method and system for skin change of TV function interface
CN102402367A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Method for implementing dynamic theme in mobile phone terminal

Also Published As

Publication number Publication date
CN104407727A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104601971B (en) Color adjustment method and device
CN104407727B (en) screen protection method and device
CN107256555B (en) Image processing method, device and storage medium
CN106020592A (en) Split screen display method and device
CN105100764B (en) Image pickup method and device
CN105139415A (en) Foreground and background segmentation method and apparatus of image, and terminal
CN105225647A (en) Luminance regulating method and device
US10963149B2 (en) Parameter adjustment method, apparatus and storage medium
CN104934016B (en) Screen display method and device
CN104063123A (en) Icon displaying method and device
CN105631797A (en) Watermarking method and device
CN105094549A (en) Method and device for displaying messages
CN106502510B (en) Icon and the adaptation processing method at interface, device
CN104978200A (en) Application program display method and device
CN106710539A (en) Liquid crystal display method and device
CN105760884A (en) Image type identifying method and image type identifying device
CN107369142A (en) Image processing method and device
CN106201833A (en) The methods of exhibiting of WiFi signal icon, device and mobile terminal
CN105957037A (en) Image enhancing method and image enhancing device
CN106101433A (en) Notification message display packing and device
CN107168543A (en) Control method of keyboard and device
CN104123720A (en) Image repositioning method, device and terminal
CN107845094A (en) Pictograph detection method, device and computer-readable recording medium
CN107660049A (en) Environment lamp light control method and device
CN104010129A (en) Image processing method, device and terminal

Legal Events

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