CN109794061A - A kind of method, terminal and the computer readable storage medium of picture processing - Google Patents
A kind of method, terminal and the computer readable storage medium of picture processing Download PDFInfo
- Publication number
- CN109794061A CN109794061A CN201910014379.4A CN201910014379A CN109794061A CN 109794061 A CN109794061 A CN 109794061A CN 201910014379 A CN201910014379 A CN 201910014379A CN 109794061 A CN109794061 A CN 109794061A
- Authority
- CN
- China
- Prior art keywords
- window
- game
- picture
- transparency
- mode
- 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
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 15
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 239000003086 colorant Substances 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000000007 visual effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 239000000654 additive Substances 0.000 description 6
- 230000000996 additive effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 239000000203 mixture Substances 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- AXDJCCTWPBKUKL-UHFFFAOYSA-N 4-[(4-aminophenyl)-(4-imino-3-methylcyclohexa-2,5-dien-1-ylidene)methyl]aniline;hydron;chloride Chemical compound Cl.C1=CC(=N)C(C)=CC1=C(C=1C=CC(N)=CC=1)C1=CC=C(N)C=C1 AXDJCCTWPBKUKL-UHFFFAOYSA-N 0.000 description 3
- 241001085205 Prenanthella exigua Species 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000002349 favourable effect Effects 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 239000000843 powder Substances 0.000 description 3
- 238000001429 visible spectrum Methods 0.000 description 3
- 239000012141 concentrate Substances 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000001154 acute effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000004424 eye movement Effects 0.000 description 1
- 206010016256 fatigue Diseases 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- YLJREFDVOIBQDA-UHFFFAOYSA-N tacrine Chemical compound C1=CC=C2C(N)=C(CCCC3)C3=NC2=C1 YLJREFDVOIBQDA-UHFFFAOYSA-N 0.000 description 1
- 229960001685 tacrine Drugs 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses method, terminal and the computer readable storage mediums of a kind of processing of picture, by obtaining eyeshield mode hierarchies;Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;A window is generated according to the color value and transparency;The upper layer that the window is set to game picture is subjected to picture processing under game mode; it only needs that a window is arranged on game picture; the color value and transparency of the window are set; the eyes of user can be protected while guaranteeing user's game experiencing; and expense is small to impact to game running for operation, improves user experience.
Description
Technical field
A kind of handled the present invention relates to field of computer technology more particularly to picture method, terminal and computer-readable
Storage medium.
Background technique
With the progress of science and technology, people's lives level is constantly improved, and the user group of terminal is also increasing, is moved
Dynamic terminal develops also from the original terminal with physical keyboard as touch intelligent terminal.
Intelligent terminal in appearance one is noteworthy characterized by with high-resolution touch screen, and intelligent terminal is most of
When can be by user as a game machine, when user carries out game, eyes are easy to feel exhausted, in order to protect eyes user
It would generally select to open eyeshield mode, and the image quality that the unlatching of existing eyeshield mode normally results in game picture reduces, and uses
Family game experiencing is deteriorated, if being not turned on eyeshield mode, eyes of user is easy tired out.
Summary of the invention
It is a primary object of the present invention to propose method, terminal and the computer readable storage medium of a kind of picture processing,
The eyes of user can be protected while guaranteeing user's game experiencing.
To achieve the above object, the present invention provides a kind of methods of picture processing, comprising steps of
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
Preferably, it further comprises the steps of:
Different eyeshield mode hierarchies are set, and color value compatible with each eyeshield mode hierarchies and transparent is respectively set
Degree.
Preferably, the corresponding color value of the eyeshield mode hierarchies and transparency can be adjusted according to actual needs.
Preferably, the window is generated by secondary thread.
Preferably, it further comprises the steps of:
Judge whether current picture is game picture, if so, judging whether present mode is game mode.
Preferably, if present mode is game mode, the window is set to game when receiving the first instruction and is drawn
The upper layer in face carries out picture processing.
Preferably, corresponding first instruction of different game is different.
Preferably, it further comprises the steps of:
The window for being set to game picture upper layer is hidden when receiving the second instruction.
Correspondingly, the present invention also provides a kind of terminals of picture processing, including memory, processor and are stored in storage
On device and the computer program that can run on a processor, the processor perform the steps of when executing described program
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
Correspondingly, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium is deposited
Contain one or more program, one or more of programs can be executed by one or more processor, with realize with
Lower step:
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
Using scheme proposed by the present invention, by obtaining eyeshield mode hierarchies;Phase is obtained according to the eyeshield mode hierarchies
The color value and transparency answered;A window is generated according to the color value and transparency;The window is set under game mode
The upper layer for being placed in game picture carries out picture processing, it is only necessary to a window be arranged on game picture, the face of the window is arranged
Color value and transparency, can protect the eyes of user while guaranteeing user's game experiencing, and running that expense is small will not be to trip
Play operation impacts, and improves user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the method flow diagram that the picture of the embodiment of the present invention is handled;
Fig. 4 is the structural schematic diagram for the terminal that the picture of the embodiment of the present invention is handled.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment one
Referring to figure 3., the present invention provides a kind of methods of picture processing, comprising steps of
Obtain eyeshield mode hierarchies;
Specifically, the eyeshield effect of different eyeshield mode hierarchies is different, can be adjusted according to user's actual need;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
Specifically, whether the preset color value and transparency can comfortably be set by user according to visual impression,
The color in three channels of red, green, blue can be specifically included according to default, the color value (RGB);
Wherein, RGB is to be designed according to the principle of colour light emitting fixed, and popular point says that its color mixing mode just looks like
There are three lamps of red, green, blue, when their light is superimposed with each other, color is mutually mixed, and both to be equal to brightness total for brightness
With, more mixed brightness is higher, i.e., addition mix;
The characteristics of superposition situation of three lamps of red, green, blue, the most bright superposition area of three color of center are white, and addition mixes: more
It is superimposed brighter;
Every kind of the Color Channel color of red, green, blue three is divided into 256 rank brightness, most weak at 0, and most bright at 255, when
When three color shade numerical value are identical, the gray tone of different gray values is generated, i.e., is most dark black tone when three color shades are all 0;Three
It is most bright white tone when color shade is all 255;
RGB color is known as additive colors, by the way that by R, G, (i.e. all light are reflected back eyes) be can produce together with B addition
White, additive colors are used for illumination light, TV and computer display, for example, display passes through red, green and blue fluorescent powder
Emit light and generate color, most visible spectrums are all represented by red, green, blue (RGB) three coloured light in different proportion and strong
Mixing on degree generates green, fuchsin and Huang if these colors overlap;
Rgb format is to be referred to as " color space " or " colour gamut " to a kind of method that color is encoded, and use is simplest
It talks about, " color space " of any color all may be defined to a fixed number or variable in the world, RGB (red, green,
It is blue) be numerous color spaces one kind, using this coding method, each color can all indicate with three variables-red
The intensity of green and blue.When record and display color image, RGB is one of the most common type scheme, still, it lack with it is early
The favorable compatibility of phase white and black displays system, therefore, the way that many electronic apparatus manufacturers generally use are to be converted into RGB
YUV color space, to remain compatible, further according to needing to gain rgb format, to show color graphics on computer monitor;
A window is generated according to the color value and transparency;
The window can be it is movable be also possible to it is fixed, and the size of the window preferably with the interface
It is adapted, when interface changes position, the position of the window is changed correspondingly, and window is most important portion in user interface
Point, it is user and the generation window that it, which is rectangular area corresponding with an application program on screen, including frame and client area,
Visual interface between the application program of mouth, when user brings into operation an application program, application program is created that and shows
Show a window;When the object in user's operation window, program can make respective reaction, user by close a window come
Terminate the operation of a program;Corresponding application program is selected by selecting corresponding application window;
The upper layer that the window is set to game picture is subjected to picture processing under game mode;
Specifically, when user thinks that the window generated according to preset color value and transparency causes to regard under game mode
When feeling that sense is uncomfortable, can color value to the window and transparency carry out dynamic adjustment, to improve user experience, user is only needed
Setting is primary, can carry out in a variety of different game using the window, can also adjust the window according to different game
Different eyeshield mode hierarchies;
The present embodiment is by obtaining eyeshield mode hierarchies;According to the corresponding color value of eyeshield mode hierarchies acquisition and thoroughly
Lightness;A window is generated according to the color value and transparency;The window is set to game picture under game mode
Upper layer carries out picture processing, it is only necessary to a window be arranged on game picture, the color value and transparency of the window is arranged, i.e.,
It can protect the eyes of user while guaranteeing user's game experiencing, and run that expense is small to impact game running,
Improve user experience.
Embodiment two
The difference of the present embodiment and embodiment one is, in example 2, further comprises the steps of:
Different eyeshield mode hierarchies are set, and color value compatible with each eyeshield mode hierarchies and transparent is respectively set
Degree;
Specifically, setting gradually level-one eyeshield mode, second level eyeshield mode and three-level eyeshield mode etc., level-one eyeshield effect
Preferably, the color value and transparency in three channels of red, green, blue can be set gradually as needed, and transparency is preferably with percentage
Form is configured, and such as the corresponding color value of level-one eyeshield mode of setting default and transparency are followed successively by 199,237,204 and
90%, the corresponding color value of second level eyeshield mode and transparency are followed successively by 190,230,197 and 95%, and three-level eyeshield mode is corresponding
Color value and transparency be 203,240,210 and 97%;
The corresponding color value of the eyeshield mode hierarchies and transparency can be adjusted according to actual needs, such as user's root
According to personal visual impression level of comfort by the corresponding color value of level-one eyeshield mode of default and transparency from 199,237,204 and
90% is adjusted to 200,240,207 and 93%.
Embodiment three
The difference of the present embodiment and embodiment one is that the window is generated by secondary thread in the third embodiment;
Specifically, the window is generated by a newly-built thread, to prevent from generating shadow to the game run in main thread
It rings, the main thread and secondary thread are mutually indepedent;
Thread, sometimes referred to as lightweight process (Lightweight Process, LWP) are the minimum lists that program executes stream
Member, the thread of a standard by Thread Id, current instruction pointer (PC), set of registers and storehouse composition, in addition, thread be into
An entity in journey, is the basic unit independently dispatched and assigned by system, and thread oneself does not possess system resource, only possesses
Essential resource in operation a bit, but it can be shared with the other threads for belonging to a process process be possessed it is complete
Portion's resource, a thread can create and cancel another thread, can concurrently execute between multiple threads in same process,
Due to the mutual restriction between thread, thread is caused to show discontinuity in operation, thread also has ready, obstruction and operation three
Kind basic status, ready state refer to that thread has all conditions of operation, can run in logic, are waiting processor;Fortune
Row state refers to that thread occupies processor and is currently running;Blocked state refers to that thread is waiting event (such as some signal
Amount), it not can be performed in logic, at least one thread of each program, if only one thread of program, that is, program sheet
Body.
Example IV
The difference of the present embodiment and embodiment one is, in example IV, further comprises the steps of:
Judge whether current picture is game picture, if so, judging whether present mode is game mode;
If present mode is game mode, the window is set to the upper layer of game picture when receiving the first instruction
Carry out picture processing;
Corresponding first instruction of different game is different;
Specifically, judging whether current picture is game picture, it can such as pass through image recognition current picture content and building
Database matched, obtain the corresponding game name A of current picture, compare be currently running in Apply Names in whether
In the presence of with the identical application of game name A that matches, and if it exists, then judge current interface for game picture and game name
For A, to guarantee to identify the accuracy of current picture, the database includes various game pictures and corresponding game name,
First instruction can be customized by users, such as slide, clicking operation or dwell time preset value, the clicking operation
It can be single-click operation or double click operation;
Image recognition refers to and is handled image, analyzed and understood using computer, to identify various different modes
Then target and technology to picture, general industry recycle software according to picture ash in use, shoot picture using industrial camera
Scale does further identifying processing, and what image recognition software foreign countries represented has Cognex etc., and what the country represented has figure intelligence etc.;
Image recognition is based on the main feature of image, and each image has its feature, and such as letter A has a
Point, P has circle and there is a acute angle etc. at the center of Y, eye movement studies have shown that sight always concentrates on image when to image recognition
Main feature on, that is, concentrate on that image outline curvature is maximum or the place of contour direction sudden change, these places
Information content is maximum, and the scanning route of eyes is also always successively gone in another feature from a feature, it can be seen that,
In image recognition processes, perceptual mechanism must exclude the redundant information of input, extract crucial information out, meanwhile, it must in brain
Surely there is the mechanism for being responsible for integrating information, it can be the finish message obtained stage by stage at a complete consciousness image;
In mankind's image identification system, the Information procession ability of different levels will often be passed through to the identification of complicated image
It realizes, for known figure, due to having grasped its main feature, it will be identified as a unit, and no longer
Pay attention to its details, this whole unit being made of isolated unit material is called chunking, each chunking is while quilt
Perception, in the identification of written material, the units such as the stroke of Chinese character or radical not only can be formed a group by people
Block, and can block unit is identified in groups the word or phrase that often occur together;
In Computer Vision Recognition system, picture material is usually described with characteristics of image, in fact, based on calculating
The image retrieval of machine vision can also be divided into three steps of similar text search engine: extract feature, index build and
Inquiry.
Embodiment five
The difference of the present embodiment and embodiment one is, in embodiment five, further comprises the steps of:
The window for being set to game picture upper layer is hidden when receiving the second instruction;
Second instruction can be customized by users, such as slide, clicking operation or dwell time preset value,
The clicking operation can be single-click operation or double click operation.
Embodiment six
Referring to figure 4., the terminal of a kind of picture processing, including memory, processor and storage are on a memory and can be
The computer program run on processor, the processor perform the steps of when executing described program
Obtain eyeshield mode hierarchies;
Specifically, the eyeshield effect of different eyeshield mode hierarchies is different, can be adjusted according to user's actual need;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
Specifically, whether the preset color value and transparency can comfortably be set by user according to visual impression,
The color in three channels of red, green, blue can be specifically included according to default, the color value (RGB);
Wherein, RGB is to be designed according to the principle of colour light emitting fixed, and popular point says that its color mixing mode just looks like
There are three lamps of red, green, blue, when their light is superimposed with each other, color is mutually mixed, and both to be equal to brightness total for brightness
With, more mixed brightness is higher, i.e., addition mix;
The characteristics of superposition situation of three lamps of red, green, blue, the most bright superposition area of three color of center are white, and addition mixes: more
It is superimposed brighter;
Every kind of the Color Channel color of red, green, blue three is divided into 256 rank brightness, most weak at 0, and most bright at 255, when
When three color shade numerical value are identical, the gray tone of different gray values is generated, i.e., is most dark black tone when three color shades are all 0;Three
It is most bright white tone when color shade is all 255;
RGB color is known as additive colors, by the way that by R, G, (i.e. all light are reflected back eyes) be can produce together with B addition
White, additive colors are used for illumination light, TV and computer display, for example, display passes through red, green and blue fluorescent powder
Emit light and generate color, most visible spectrums are all represented by red, green, blue (RGB) three coloured light in different proportion and strong
Mixing on degree generates green, fuchsin and Huang if these colors overlap;
Rgb format is to be referred to as " color space " or " colour gamut " to a kind of method that color is encoded, and use is simplest
It talks about, " color space " of any color all may be defined to a fixed number or variable in the world, RGB (red, green,
It is blue) be numerous color spaces one kind, using this coding method, each color can all indicate with three variables-red
The intensity of green and blue.When record and display color image, RGB is one of the most common type scheme, still, it lack with it is early
The favorable compatibility of phase white and black displays system, therefore, the way that many electronic apparatus manufacturers generally use are to be converted into RGB
YUV color space, to remain compatible, further according to needing to gain rgb format, to show color graphics on computer monitor;
A window is generated according to the color value and transparency;
The window can be it is movable be also possible to it is fixed, and the size of the window preferably with the interface
It is adapted, when interface changes position, the position of the window is changed correspondingly, and window is most important portion in user interface
Point, it is user and the generation window that it, which is rectangular area corresponding with an application program on screen, including frame and client area,
Visual interface between the application program of mouth, when user brings into operation an application program, application program is created that and shows
Show a window;When the object in user's operation window, program can make respective reaction, user by close a window come
Terminate the operation of a program;Corresponding application program is selected by selecting corresponding application window;
The upper layer that the window is set to game picture is subjected to picture processing under game mode;
Specifically, when user thinks that the window generated according to preset color value and transparency causes to regard under game mode
When feeling that sense is uncomfortable, can color value to the window and transparency carry out dynamic adjustment, to improve user experience, user is only needed
Setting is primary, can carry out in a variety of different game using the window, can also adjust the window according to different game
Different eyeshield mode hierarchies;
The present embodiment is by obtaining eyeshield mode hierarchies;According to the corresponding color value of eyeshield mode hierarchies acquisition and thoroughly
Lightness;A window is generated according to the color value and transparency;The window is set to game picture under game mode
Upper layer carries out picture processing, it is only necessary to a window be arranged on game picture, the color value and transparency of the window is arranged, i.e.,
It can protect the eyes of user while guaranteeing user's game experiencing, and run that expense is small to impact game running,
Improve user experience.
Embodiment seven
A kind of computer readable storage medium, the computer-readable recording medium storage have one or more program,
One or more of programs can be executed by one or more processor, to perform the steps of
Obtain eyeshield mode hierarchies;
Specifically, the eyeshield effect of different eyeshield mode hierarchies is different, can be adjusted according to user's actual need;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
Specifically, whether the preset color value and transparency can comfortably be set by user according to visual impression,
The color in three channels of red, green, blue can be specifically included according to default, the color value (RGB);
Wherein, RGB is to be designed according to the principle of colour light emitting fixed, and popular point says that its color mixing mode just looks like
There are three lamps of red, green, blue, when their light is superimposed with each other, color is mutually mixed, and both to be equal to brightness total for brightness
With, more mixed brightness is higher, i.e., addition mix;
The characteristics of superposition situation of three lamps of red, green, blue, the most bright superposition area of three color of center are white, and addition mixes: more
It is superimposed brighter;
Every kind of the Color Channel color of red, green, blue three is divided into 256 rank brightness, most weak at 0, and most bright at 255, when
When three color shade numerical value are identical, the gray tone of different gray values is generated, i.e., is most dark black tone when three color shades are all 0;Three
It is most bright white tone when color shade is all 255;
RGB color is known as additive colors, by the way that by R, G, (i.e. all light are reflected back eyes) be can produce together with B addition
White, additive colors are used for illumination light, TV and computer display, for example, display passes through red, green and blue fluorescent powder
Emit light and generate color, most visible spectrums are all represented by red, green, blue (RGB) three coloured light in different proportion and strong
Mixing on degree generates green, fuchsin and Huang if these colors overlap;
Rgb format is to be referred to as " color space " or " colour gamut " to a kind of method that color is encoded, and use is simplest
It talks about, " color space " of any color all may be defined to a fixed number or variable in the world, RGB (red, green,
It is blue) be numerous color spaces one kind, using this coding method, each color can all indicate with three variables-red
The intensity of green and blue.When record and display color image, RGB is one of the most common type scheme, still, it lack with it is early
The favorable compatibility of phase white and black displays system, therefore, the way that many electronic apparatus manufacturers generally use are to be converted into RGB
YUV color space, to remain compatible, further according to needing to gain rgb format, to show color graphics on computer monitor;
A window is generated according to the color value and transparency;
The window can be it is movable be also possible to it is fixed, and the size of the window preferably with the interface
It is adapted, when interface changes position, the position of the window is changed correspondingly, and window is most important portion in user interface
Point, it is user and the generation window that it, which is rectangular area corresponding with an application program on screen, including frame and client area,
Visual interface between the application program of mouth, when user brings into operation an application program, application program is created that and shows
Show a window;When the object in user's operation window, program can make respective reaction, user by close a window come
Terminate the operation of a program;Corresponding application program is selected by selecting corresponding application window;
The upper layer that the window is set to game picture is subjected to picture processing under game mode;
Specifically, when user thinks that the window generated according to preset color value and transparency causes to regard under game mode
When feeling that sense is uncomfortable, can color value to the window and transparency carry out dynamic adjustment, to improve user experience, user is only needed
Setting is primary, can carry out in a variety of different game using the window, can also adjust the window according to different game
Different eyeshield mode hierarchies;
The present embodiment is by obtaining eyeshield mode hierarchies;According to the corresponding color value of eyeshield mode hierarchies acquisition and thoroughly
Lightness;A window is generated according to the color value and transparency;The window is set to game picture under game mode
Upper layer carries out picture processing, it is only necessary to a window be arranged on game picture, the color value and transparency of the window is arranged, i.e.,
It can protect the eyes of user while guaranteeing user's game experiencing, and run that expense is small to impact game running,
Improve user experience.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of method of picture processing, which is characterized in that comprising steps of
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
2. the method for picture processing as described in claim 1, which is characterized in that further comprise the steps of:
Different eyeshield mode hierarchies are set, and color value compatible with each eyeshield mode hierarchies and transparency is respectively set.
3. the method for picture as claimed in claim 2 processing, which is characterized in that the corresponding color value of the eyeshield mode hierarchies
It can be adjusted according to actual needs with transparency.
4. the method for picture processing as described in claim 1, which is characterized in that the window is generated by secondary thread.
5. the method for picture processing as described in claim 1, which is characterized in that further comprise the steps of:
Judge whether current picture is game picture, if so, judging whether present mode is game mode.
6. the method for picture processing as claimed in claim 5, which is characterized in that if present mode is game mode, receiving
The upper layer that the window is set to game picture is subjected to picture processing to when the first instruction.
7. the method for picture processing as claimed in claim 6, which is characterized in that corresponding first instruction of different game is not
Together.
8. the method for picture processing as described in claim 1, which is characterized in that further comprise the steps of:
The window for being set to game picture upper layer is hidden when receiving the second instruction.
9. a kind of terminal of picture processing, including memory, processor and storage can be run on a memory and on a processor
Computer program, which is characterized in that the processor performs the steps of when executing described program
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to perform the steps of
Obtain eyeshield mode hierarchies;
Corresponding color value and transparency are obtained according to the eyeshield mode hierarchies;
A window is generated according to the color value and transparency;
The upper layer that the window is set to game picture is subjected to picture processing under game mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910014379.4A CN109794061A (en) | 2019-01-08 | 2019-01-08 | A kind of method, terminal and the computer readable storage medium of picture processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910014379.4A CN109794061A (en) | 2019-01-08 | 2019-01-08 | A kind of method, terminal and the computer readable storage medium of picture processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109794061A true CN109794061A (en) | 2019-05-24 |
Family
ID=66556912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910014379.4A Pending CN109794061A (en) | 2019-01-08 | 2019-01-08 | A kind of method, terminal and the computer readable storage medium of picture processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109794061A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11275924B2 (en) * | 2020-04-24 | 2022-03-15 | Beijing Xiaomi Mobile Software Co., Ltd. | Eye-protection mode processing method, device, terminal and computer-readable storage medium in fingerprint recognition mode |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1663648A (en) * | 2004-03-01 | 2005-09-07 | 阿鲁策株式会社 | Game machine |
CN104035616A (en) * | 2014-06-09 | 2014-09-10 | 纪玉玲 | Multi-point touch screen using diode display |
CN106126139A (en) * | 2016-06-13 | 2016-11-16 | 北京金山安全软件有限公司 | Terminal display processing method and device and electronic equipment |
US20160361640A1 (en) * | 2015-06-12 | 2016-12-15 | Nintendo Co., Ltd. | Supporting device, charging device and controller system |
CN106791028A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind of display adjusting method, device and terminal |
CN108073493A (en) * | 2017-11-21 | 2018-05-25 | 北京奇虎科技有限公司 | A kind of method and device of the display system data in interface |
CN108141542A (en) * | 2015-10-23 | 2018-06-08 | Lg 电子株式会社 | Mobile terminal and its control method |
CN109032741A (en) * | 2018-07-25 | 2018-12-18 | 努比亚技术有限公司 | Screen luminance of terminal adjusting method, mobile terminal and storage medium |
-
2019
- 2019-01-08 CN CN201910014379.4A patent/CN109794061A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1663648A (en) * | 2004-03-01 | 2005-09-07 | 阿鲁策株式会社 | Game machine |
CN104035616A (en) * | 2014-06-09 | 2014-09-10 | 纪玉玲 | Multi-point touch screen using diode display |
US20160361640A1 (en) * | 2015-06-12 | 2016-12-15 | Nintendo Co., Ltd. | Supporting device, charging device and controller system |
CN108141542A (en) * | 2015-10-23 | 2018-06-08 | Lg 电子株式会社 | Mobile terminal and its control method |
CN106126139A (en) * | 2016-06-13 | 2016-11-16 | 北京金山安全软件有限公司 | Terminal display processing method and device and electronic equipment |
CN106791028A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind of display adjusting method, device and terminal |
CN108073493A (en) * | 2017-11-21 | 2018-05-25 | 北京奇虎科技有限公司 | A kind of method and device of the display system data in interface |
CN109032741A (en) * | 2018-07-25 | 2018-12-18 | 努比亚技术有限公司 | Screen luminance of terminal adjusting method, mobile terminal and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11275924B2 (en) * | 2020-04-24 | 2022-03-15 | Beijing Xiaomi Mobile Software Co., Ltd. | Eye-protection mode processing method, device, terminal and computer-readable storage medium in fingerprint recognition mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107731199B (en) | Screen color temperature adjusting method, terminal and computer readable storage medium | |
CN107093418A (en) | A kind of screen display method, computer equipment and storage medium | |
CN107943399A (en) | Display methods, device and the computer-readable recording medium of double-sided screen | |
CN108989563A (en) | Display methods, mobile terminal and the computer readable storage medium of double-sided screen | |
CN108269230A (en) | Certificate photo generation method, mobile terminal and computer readable storage medium | |
CN109064998A (en) | A kind of screen luminance adjustment method, terminal and computer readable storage medium | |
CN107291334A (en) | A kind of icon font color determines method and apparatus | |
CN107315515A (en) | Color change method, terminal and the computer-readable recording medium of status bar icon | |
CN107943278A (en) | A kind of image display method of adjustment and image display adjusting device | |
CN107277250A (en) | Display is concerned the method, terminal and computer-readable recording medium of chat message | |
CN108881635A (en) | Screen luminance adjustment method, mobile terminal and computer readable storage medium | |
CN109358831A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN108198146A (en) | A kind of noise-reduction method, equipment and computer readable storage medium | |
CN110417999A (en) | Screen luminance adjustment method, mobile terminal and computer readable storage medium | |
CN107067842A (en) | Colour method of adjustment, mobile terminal and storage medium | |
CN108230270A (en) | A kind of noise-reduction method, terminal and computer readable storage medium | |
CN107295270A (en) | Determination method, device, terminal and the computer-readable recording medium of a kind of image brightness values | |
CN108257097A (en) | U.S. face effect method of adjustment, terminal and computer readable storage medium | |
CN109377531A (en) | Image color cast method of adjustment, device, mobile terminal and readable storage medium storing program for executing | |
CN108810264A (en) | A kind of brightness adjusting method and terminal, computer readable storage medium | |
CN109817130A (en) | A kind of colour temperature regulation method, equipment and computer readable storage medium | |
CN108182664A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN109669512A (en) | A kind of display control method, Folding screen terminal and computer readable storage medium | |
CN108053383A (en) | A kind of noise-reduction method, equipment and computer readable storage medium | |
CN107833190A (en) | A kind of parameter determination method, terminal and computer-readable recording medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190524 |
|
RJ01 | Rejection of invention patent application after publication |