CN105867729A - A message display device and method - Google Patents
A message display device and method Download PDFInfo
- Publication number
- CN105867729A CN105867729A CN201610177912.5A CN201610177912A CN105867729A CN 105867729 A CN105867729 A CN 105867729A CN 201610177912 A CN201610177912 A CN 201610177912A CN 105867729 A CN105867729 A CN 105867729A
- Authority
- CN
- China
- Prior art keywords
- micro
- gray
- picture
- message
- scale map
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a message display device comprising an acquiring module used for acquiring a screenshot of a display interface of a mobile terminal when receiving a message and segmenting the screenshot to obtain local pictures; a processing module used for performing binarization processing on the local pictures to obtain the average gray value of the local images; a display module used for acquiring a target area according to the average gray value of the local pictures and displaying a message interface in the target area. The invention also provides a message display method. The device and the method enable users to check and process short messages, chat information and the like without exiting from the current display interface, realize convenient and rapid operation and improve the user experience.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message display device and method.
Background technology
Along with the development of mobile terminal technology, the Internet universal, the mobile terminal such as mobile phone has become people
Necessary in daily life and work.The social activity of mobile phone and amusement function, be use frequency higher two
Item critical function.And when using mobile phone full frame viewing video, if the note of receiving or application software
Chat messages, user cannot learn the message content being currently received.Only after exiting video mode, beat
Opening note or application software, user just can see current short message content or chat messages content.If
User needs to continue viewing video, then need to be again turned on Video Applications.
Interrupt viewing when user watches video and repeatedly redirect the display interface of mobile terminal, destroying and regard
The continuity of frequency, have impact on the video viewing experience of user.
Summary of the invention
Present invention is primarily targeted at a kind of message display device of offer and method, it is intended to solve viewing and regard
Frequently carry out social chat time and need to repeatedly switch application software, the technical problem of complex operation.
For achieving the above object, the present invention provides a kind of message display device, described message display device bag
Include:
Acquisition module, when being used for receiving message, obtains the sectional drawing of mobile terminal display interface, and segmentation is described
Sectional drawing obtains each local picture;
Processing module, for respectively described each local picture being carried out binary conversion treatment, obtains described each office
The average gray value of portion's picture;
Display module, obtains target area for the average gray value according to each local picture, at described mesh
Mark region display message interface.
In one embodiment, described processing module includes:
Simplified element, for reducing the size that described each local picture is extremely preset respectively, and simplifies color,
Obtain each micro gray-scale map of correspondence;
Binarization unit, for respectively described each micro gray-scale map being carried out binary conversion treatment, obtains correspondence
Each micro binary picture;
All value cells, for obtaining the average gray value of described each micro binary picture respectively, as correspondence
The average gray value of described each local picture.
In one embodiment, described binarization unit includes:
Threshold value subelement, for according to the gray value of each pixel in described each micro gray-scale map, obtains respectively
Make the gray value that in the pixel class of described each micro gray-scale map, difference is minimum or class inherited is maximum, for described
The gray threshold that each micro gray-scale map is corresponding;
First processes subelement, for according to described each gray threshold, respectively by corresponding described each micro
Gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.
In one embodiment, described binarization unit includes:
Average subelement, for obtaining the average gray value of described each micro gray-scale map respectively;
Second processes subelement, for the average gray value according to described each micro gray-scale map, respectively by right
The described each micro gray-scale map answered carries out binary conversion treatment, obtains each micro binary picture of correspondence.
In one embodiment, described message display device also includes:
Timing module, if being received again by message, then for described mobile terminal in default time interval
Described message interface is shown in described target area;
Described acquisition module, is received again by disappearing if being additionally operable to described mobile terminal after default time interval
Breath, then obtain the sectional drawing of described mobile terminal display interface, split described sectional drawing and obtain each local picture.
Additionally, for achieving the above object, the present invention also provides for a kind of message display method, and described message shows
Show that method comprises the following steps:
When receiving message, obtain the sectional drawing of mobile terminal display interface, split described sectional drawing and obtain each local
Picture;
Respectively described each local picture is carried out binary conversion treatment, obtain the average ash of described each local picture
Angle value;
Average gray value according to each local picture obtains target area, shows message in described target area
Interface.
In one embodiment, the described binary conversion treatment that respectively described each local picture carried out, obtain institute
The step of the average gray value stating each local picture includes:
Reduce the size that described each local picture is extremely preset respectively, and simplify color, obtain each micro-of correspondence
Contracting gray-scale map;
Respectively described each micro gray-scale map is carried out binary conversion treatment, obtain each micro binary picture of correspondence;
Obtain the average gray value of described each micro binary picture respectively, as corresponding described each Local map
The average gray value of sheet.
In one embodiment, described respectively described each micro gray-scale map is carried out binary conversion treatment, obtain
The step of corresponding each micro binary picture includes:
According to the gray value of each pixel in described each micro gray-scale map, obtain respectively and make described each micro gray scale
The gray value that in the pixel class of figure, difference is minimum or class inherited is maximum is corresponding for described each micro gray-scale map
Gray threshold;
According to described each gray threshold, respectively corresponding described each micro gray-scale map is carried out binary conversion treatment,
Obtain each micro binary picture of correspondence.
In one embodiment, described respectively described each micro gray-scale map is carried out binary conversion treatment, obtain
The step of corresponding each micro binary picture includes:
Obtain the average gray value of described each micro gray-scale map respectively;
According to the average gray value of described each micro gray-scale map, respectively by corresponding described each micro gray-scale map
Carry out binary conversion treatment, obtain each micro binary picture of correspondence.
In one embodiment, the described average gray value according to each local picture obtains target area,
After the step of described target area display message interface, also include:
If described mobile terminal is received again by message in default time interval, then in described target area
Show described message interface;If after default time interval, described mobile terminal is received again by message, then
Proceed to perform step: obtain the sectional drawing of mobile terminal display interface, split described sectional drawing and obtain each Local map
Sheet.
A kind of message display device of present invention proposition and method, when receiving message, obtained by acquisition module
Taking the sectional drawing of current display interface, segmentation sectional drawing obtains each local picture;Then, processing module respectively will
Each local picture carries out binary conversion treatment, obtains the average gray value of each local picture;Then, display mould
Tuber obtains target area according to the average gray value of each local picture, shows message interface in target area.
The present invention is when receiving the chat messages of note or application software, by analyzing and processing the current of mobile terminal
Display interface, chooses the target area being suitable for display message, shows message interface, consults message for user
Or carry out reply etc. to process so that user without exiting current display interface, can realize note,
Consulting and processing of chat messages etc., convenient to operation, improve Consumer's Experience.The present invention solves
Carry out social chat during viewing video and need to repeatedly switch application software, the technical problem of complex operation, it is achieved
User does not switch application software, can consult chat messages or processes accordingly.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the high-level schematic functional block diagram of message display device first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of message display device the second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of message display device the 3rd embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of message display device the 4th embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of message display device the 5th embodiment of the present invention;
Fig. 8 is the schematic flow sheet of message display method first embodiment of the present invention;
Fig. 9 is the schematic flow sheet of message display method the second embodiment of the present invention;
Figure 10 is the schematic flow sheet of message display method the 3rd embodiment of the present invention;
Figure 11 is the schematic flow sheet of message display method the 4th embodiment of the present invention;
Figure 12 is the schematic flow sheet of message display method the 5th embodiment of the present invention;
Figure 13 is to show message interface application scenarios schematic diagram during a kind of viewing video in the embodiment of the present invention.
The object of the invention realization, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings furtherly
Bright.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description
In, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for having
It is beneficial to the explanation of the present invention, itself does not has specific meaning.Therefore, " module " can mix with " parts "
Close ground to use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include
(individual digital helps for such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA
Reason), PAD (panel computer), PMP (portable media player), the mobile end of guider etc.
The fixed terminal of end and such as numeral TV, desk computer etc..Hereinafter it is assumed that terminal is mobile whole
End.However, it will be understood by those skilled in the art that, in addition to being used in particular for mobile purpose element,
Structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the optional mobile terminal hardware configuration signal realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, user input unit 120, sensing unit 130,
Output unit 140, memorizer 150, controller 160 and power subsystem 170 etc..Fig. 1 shows have respectively
Plant the mobile terminal of assembly, it should be understood that be not required for implementing all assemblies illustrated.Permissible
Alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 with wireless
Radio communication between communication system or network.Such as, wireless communication unit can include mobile communication
At least one in module 111 and wireless Internet module 112.
Mobile communication module 111 send radio signals to base station (such as, access point, node B etc.),
In exterior terminal and server at least one and/or receive from it radio signal.Such radio
Signal can include voice call signal, video calling signal or according to text and/or Multimedia Message
The various types of data sent and/or receive.
Wireless Internet module 112 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can internal or
Externally it is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (nothing
Line LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (at a high speed
Downlink packets accesses) etc..
It is mobile to control that user input unit 120 can generate key input data according to the order of user's input
The various operations of terminal.User input unit 120 allows user to input various types of information, and permissible
Including keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electricity
The sensitive component of change held etc.), roller, rocking bar etc..Especially, when touch pad as a layer
When being superimposed upon on display unit 141, touch screen can be formed.
Sensing unit 130 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or
Closed mode), the position of mobile terminal 100, user is for the contact (that is, touch input) of mobile terminal 100
Presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc.,
And generate the order or signal being used for controlling the operation of mobile terminal 100.
Output unit 140 can include display unit 141, dio Output Modules 142 etc..
Display unit 141 may be displayed on the information processed in mobile terminal 100.Such as, mobile terminal is worked as
100 when being in telephone calling model, display unit 141 can show and call or other communicate (such as, civilian
This information receiving and transmitting, multimedia file download etc.) relevant user interface (UI) or graphic user interface (GUI).
When mobile terminal 100 is in video calling pattern or image capture mode, display unit 141 can show
Show the image of capture and/or the image of reception, UI or GUI etc. of video or image and correlation function is shown
Deng.
Meanwhile, when display unit 141 and touch pad the most superposed on one another to form touch screen time, aobvious
Show that unit 141 can serve as input equipment and output device.Display unit 141 can include liquid crystal display
(LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexibility show
Show at least one in device, three-dimensional (3D) display etc..Some in these display may be constructed such that
Transparence is to allow user to watch from outside, and this is properly termed as transparent display, typical transparent display
Can for example, TOLED (transparent organic light emitting diode) display etc..According to the specific enforcement wanted
Mode, mobile terminal 100 can include two or more display units (or other display device), such as,
Mobile terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can
For detecting touch input pressure and touch input position and touch input area.
Dio Output Modules 142 can be in call signal at mobile terminal and receive pattern, call mode, note
Time under the isotypes such as record pattern, speech recognition mode, broadcast reception mode, wireless communication unit 110 is connect
Receive or in memorizer 150 storage voice data transducing audio signal and be output as sound.And,
Dio Output Modules 142 can provide the audio frequency output (example relevant to the specific function of mobile terminal 100 execution
As, call signal receives sound, message sink sound etc.).Dio Output Modules 142 can include raising one's voice
Device, buzzer etc..
Memorizer 150 can store the process performed by controller 160 and the software program controlling operation etc.,
Or can temporarily store data (such as, telephone directory, message, the static state that oneself maybe will export through output
Image, video etc.).
Memorizer 150 can include the storage medium of at least one type, described storage medium include flash memory,
Hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device
(RAM), static random-access memory (SRAM), read only memory (ROM), electrically erasable
Read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, light
Dish etc..And, mobile terminal 100 can be connected the storage function performing memorizer 150 with by network
Network storage device cooperation.
Controller 160 generally controls the overall operation of mobile terminal.Such as, controller 160 performs and voice
Control that call, data communication, video calling etc. are relevant and process.Controller 160 can perform pattern
Identifying processing, with the handwriting input performed on the touchscreen or picture are drawn input be identified as character or
Image.
Power subsystem 170 receives external power or internal power under the control of controller 160 and provides behaviour
Make the suitable electric power needed for each element and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any group
The computer-readable medium closed is implemented.Implementing for hardware, embodiment described herein can pass through
Use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device
(DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, control
Device, microcontroller, microprocessor, it is designed to perform in the electronic unit of function described herein extremely
Few one is implemented, and in some cases, such embodiment can be implemented in controller 160.Right
Implementing in software, the embodiment of such as process or function can perform at least one function or behaviour with permission
The single software module made is implemented.Software code can be by writing with any suitable programming language
Software application (or program) is implemented, and software code can be stored in memorizer 150 and by controlling
Device 160 performs.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe
Various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc.
In slide type mobile terminal as example.Therefore, the present invention can be applied to any kind of mobile whole
End, and it is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that and utilizes via frame or packet transmission data
The most wired and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, by communication system
The air interface that system uses includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA
(CDMA) move lead to UMTS (UMTS) (especially, Long Term Evolution (LTE)), the whole world
Communication system (GSM) etc..As non-limiting example, explained below relates to cdma communication system, but
It is that such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station
(BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to
Interface is formed with Public Switched Telephony Network (PSTN) 290.MSC280 is also structured to and can be via returning
Journey circuit is couple to the BSC275 of base station 270 and forms interface.If the interface that back haul link can be known according to Ganji
In any one construct, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL,
ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or sensing certain party
To antenna cover each subregion radially away from BS270.Or, each subregion can be by for dividing
Two or more antennas that collection receives cover.Each BS270 may be constructed such that support multiple frequencies distribution,
And the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station
Transceiver subsystem (BTS) or other equivalent terms.In this case, term " base station " can be used
In broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".
Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the shifting operated by broadcsting transmitter (BT) 295
Dynamic terminal 100.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps
Position at least one in multiple mobile terminal 100.
In fig. 2, depict multiple satellite 300, it should be understood that any number can be utilized
Satellite obtain useful location information.Substitute GPS tracking technique or outside GPS tracking technique, can
To use other technology of the position that can follow the tracks of mobile terminal.It addition, at least one gps satellite 300 can
Optionally or additionally to process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives from various mobile terminals 100
Reverse link signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Special
The each reverse link signal determining base station 270 reception is processed in specific BS270.The data obtained
It is forwarded to the BSC275 being correlated with.BSC provides call resource distribution and the soft handover included between BS270
The mobile management function of the coordination of process.The data received also are routed to MSC280 by BSC275, its
Extra route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270
Forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
With reference to Fig. 3, message display device first embodiment of the present invention provides a kind of message display device, described
Message display device includes:
Acquisition module 10, when being used for receiving message, obtains the sectional drawing of mobile terminal display interface, splits institute
State sectional drawing and obtain each local picture.
The embodiment of the present invention makes full use of the white space of video clip, note that display mobile terminal receives,
The chat messages such as wechat, QQ, fast chats, and improves the service efficiency of mobile phone, adds user
Experience.
Certainly, it is can also be applied to interface, other software interfaces etc., can be according to reality
Need to arrange flexibly.Message display device is deployed in mobile terminal.
Concrete, as a kind of embodiment, use mobile terminal viewing video user or play game
Time, acquisition module 10 monitors the note of mobile terminal and the chat messages state of application software.
If mobile terminal receives message, the chat messages of such as note or application software, then acquisition module
10 pairs of current display interfaces carry out sectional drawing, obtain the sectional drawing of current mobile terminal display interface.
Then, acquisition module 10 splits current sectional drawing, obtains each local picture.
Sectional drawing can be divided into equal-sized many according to the resolution of current mobile terminal by acquisition module 10
Individual square local picture.Such as, the display interface of current mobile terminal is the ratio of width to height of 16:9, then may be used
With sectional drawing is carried out segmentation obtain 16 × 9 equal-sized square local pictures.It is, of course, also possible to will
It is less that cut size is arranged, and the equal-sized square picture obtained is the most, and image procossing is more
Finely.
After obtaining each local picture, acquisition module 10 records picture position in screen, current each local.
Processing module 20, for respectively described each local picture being carried out binary conversion treatment, obtain described respectively
The locally average gray value of picture.
After obtaining each local picture, each local picture is carried out binaryzation by processing module 20, obtains each office
The average gray value of portion's picture.
Concrete, as a kind of embodiment, each local picture is carried out binary conversion treatment by processing module 20,
Obtain the binary picture that each local picture is corresponding, namely the artwork master that each local picture is corresponding.
Taking in binary picture, the gray value of black pixel point is 1, and the gray value of white pixel point is 0.
Then, processing module 20 according in binary picture corresponding to each local picture, the number of pixel and each
The gray value of pixel, is calculated the average gray value of each binary picture respectively, namely has obtained correspondence
The average gray value of each local picture.
Display module 30, obtains target area for the average gray value according to each local picture, described
Target area display message interface.
After the average gray value obtaining each local picture, display module 30 is according to the draw of each local picture
Gray value obtains target area, and shows message interface in target area, consults note, application for user
The chat messages etc. of software, carries out quickly revert.
Concrete, as a kind of embodiment, first, display module 30 is according to each local picture obtained
Average gray value, obtain the adjacent local picture average gray value in position poor.Display module 30 is preset with
The difference threshold of adjacent local picture, if the average gray value difference of adjacent local picture is less than the difference preset
Threshold value, then judge that local picture that this is adjacent, as similar Background, merges this adjacent local picture and obtains
To merging figure.
Such as, the average gray value taking local picture A is A1, and locally the average gray value of picture B is
B1, locally picture A and local picture B is the local picture that two positions are adjacent.
Then the average gray value difference of local picture A and local picture B is Δ AB=| A1-B1 |.
Taking default difference threshold is Δ 0, if Δ 0 > Δ AB, then judge local picture A and local picture B
For similar local picture, merge local picture A and local picture B, obtain merging figure.
After display module 30 travels through all of local picture, obtain one or more merging figure.
Then, display module 30, according to the position of each local picture, obtains the position of merging figure, and can
To obtain the size of each merging figure, shape.
Display module 30, according to factors such as the position of merging figure obtained, size, shapes, chooses target area
Territory.Such as, display module 30 can be using the merging figure of prioritizing selection mobile terminal marginal position as target area
Territory, reduces the impact on video pictures;Display module 30 can be with the conjunction of prioritizing selection square or rectangular
And figure is as target area, promotes the display effect of message interface;Display module 30 can also preferentially be chosen
The merging figure of size maximum, as target area, increases the display effect of message interface, it is achieved display module
30 according to multiple factors, choose target area flexibly.
The target area obtained is the background area that in display interface, color is close, is suitable for display message interface.
After obtaining the target area chosen, display module 30 shows message interface in target area, for
Message is consulted at family, processes.
With reference to Figure 13, mobile terminal full frame viewing video is used to be illustrated with active user.
When mobile terminal receives note, acquisition module 10 obtains the sectional drawing of current display interface, splits sectional drawing
Obtain each local picture;Then, each local picture is carried out binary conversion treatment by processing module 20 respectively, obtains
Take the average gray value of each local picture;Then, display module 30 is according to the average gray of each local picture
Value obtains target area, shows message interface in target area.
Message interface includes the note received, and user, without exiting currently viewing video, can consult
Note.For reducing the impact of video currently viewing on user, can arrange message interface is transparent background,
Only show the message content such as message text, picture.
Or, display module 30 can also show the note received and relevant functional keys at message interface,
Such as reply button, after user clicks on reply button, can carry out the reply of message in current display interface.
After user completes the editor replied message, clicking on and send, display module 30 is connect by the system service of note
Mouth calls short message service, sends note, and hides current message interface, it is achieved the quickly revert of note.
Process it is, of course, also possible to carry out the deletion of note etc..
As another embodiment, display module 30 is preset with pure color threshold value, is used for judging local picture
Whether it is pure color picture.The setting of pure color threshold value can be adjusted as required, and such as 0.2.
Display module 30 judges that whether the average gray value of each local picture is less than the pure color threshold value preset respectively.
If the average gray value of local picture is less than the pure color threshold value preset, then judge that this local picture is as pure color figure
Sheet, display module 30 travels through each local picture and obtains result of determination.
Then, display module 30 merges adjacent pure color picture, obtains one or more merging figure.
Then, display module 30 merges figure according to each, chooses target area, shows message in target area
Interface.Choosing the target area obtained is solid color regions so that user is more prone to see disappearing of display
Breath interface, carries out Message Processing good.
If within the default time, acquisition module 10 does not receives user's operational order to current message interface,
Then display module 30 hides current message interface.
In the present embodiment, when receiving message, acquisition module 10 obtains the sectional drawing of current display interface, point
Cut sectional drawing and obtain each local picture;Then, each local picture is carried out at binaryzation by processing module 20 respectively
Reason, obtains the average gray value of each local picture;Then, display module 30 putting down according to each local picture
All gray values obtain target area, show message interface in target area.The present embodiment receive note or
During the chat messages of application software, by analyzing and processing the current display interface of mobile terminal, choose applicable
The target area of display message, shows message interface, consults message for user or carries out the process such as reply,
Make user without exiting current display interface, consulting and locating of note, chat messages etc. can be realized
Reason, convenient to operation, improve Consumer's Experience.The embodiment of the present invention is carried out when solving viewing video
Social chat need to switch application software, the technical problem of complex operation repeatedly, it is achieved that user does not switch should
With software, chat messages can be consulted or process accordingly.
Further, with reference to Fig. 4, message display device of the present invention provides a kind of message display device, based on
Embodiment shown in above-mentioned Fig. 3, described processing module 20 includes:
Simplified element 21, for reducing the size that described each local picture is extremely preset respectively, and simplifies color,
Obtain each micro gray-scale map of correspondence.
After obtaining each local picture, each local picture is contracted by simplified element 21 according to default size
Little process, obtains each micro local picture of correspondence.
The size preset can be arranged the most flexibly, such as, can be 8 × 8, have 64 pictures
The square of element.
After obtaining each micro local picture, each micro local picture is carried out color simplification by simplified element 21
Process, obtain the gray-scale map of each micro local picture, namely each micro ash that each micro local picture is corresponding
Degree figure.
The tonal gradation of each micro gray-scale map is identical, can be to arrange the most flexibly, such as by each micro-
Contracting local picture is converted to the gray-scale map of 64 grades, then obtain each all pixels of micro gray-scale map and have 64 kinds
Color.
Binarization unit 22, for respectively described each micro gray-scale map being carried out binary conversion treatment, it is right to obtain
The each micro binary picture answered.
After obtaining each micro gray-scale map, binarization unit 22 obtains the gray scale of each pixel in micro gray-scale map
Value is as initial gray value.
Binarization unit 22 is preset with gray threshold, for the binary conversion treatment of each micro gray-scale map.
Binarization unit 22 according to default gray threshold, by initial gray value in each micro gray-scale map more than or
It is processed as black, by grey less than the pixel of gray threshold for initial gray value equal to the pixel grey scale of gray threshold
Angle value is processed as white.Thus, the binaryzation picture of each micro gray-scale map is obtained.
Binarization unit 22 carries out binary conversion treatment to each micro gray-scale map respectively, obtains each micro of correspondence
Binary picture, each micro binary picture obtained is artwork master, only black and white.
All value cells 23, for obtaining the average gray value of described each micro binary picture respectively, as right
The average gray value of the described each local picture answered.
After obtaining each micro binary picture, equal value cell 23 obtains the gray value that in figure, each pixel is current.
Such as, taking the gray value of black picture element in each micro binary picture is 1, and the grey scale pixel value of white is 0.
Then, total according to the current gray value of pixel each in micro binary picture and pixel of equal value cell 23
Number, obtains the average gray value of micro binary picture.All value cells 23 are calculated each micro two respectively
The average gray value of value figure.
Then, equal value cell 23 using the average gray value of each micro binary picture that obtains as corresponding each
The locally average gray value of picture.
Thus, equal value cell 23 obtains the average gray value of each local picture.
In the present embodiment, after obtaining each local picture, simplified element 21 reduces each local picture extremely respectively
The size preset, and simplify color, obtain each micro gray-scale map of correspondence;Binarization unit 22 respectively will
Each micro gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence;All value cells 23 points
Do not obtain the average gray value of each micro binary picture, as the average gray value of corresponding each local picture.
The present embodiment, by reducing each local picture, carries out binary conversion treatment and obtains average gray value, decrease figure
As the data volume processed, improve image processing speed.
Further, with reference to Fig. 5, message display device the 3rd embodiment of the present invention provides a kind of message to show
Device, based on the embodiment shown in above-mentioned Fig. 4, described binarization unit 22 includes:
Threshold value subelement 221, for according to the gray value of each pixel in described each micro gray-scale map, obtains respectively
Take and make the gray value that in the pixel class of each micro gray-scale map, difference is minimum or class inherited is maximum, for described respectively
The gray threshold that micro gray-scale map is corresponding.
Obtaining after each micro gray-scale map, threshold value subelement 221 obtains working as of each pixel in micro gray-scale map
Front gray value is as the initial gray value of each pixel.
Then, threshold value subelement 221 obtains and makes difference in the pixel class of each micro gray-scale map minimum or between class
The gray value of difference maximum is the gray threshold that each micro gray-scale map is corresponding.
Concrete, as a kind of embodiment, threshold value subelement 221 takes the gray scale of current micro gray-scale map
Grade is m, then each pixel initial gray value scope of current micro gray-scale map is (0, m-1).
The gray threshold taking current micro gray-scale map is k, 0≤k≤m-1.
Taking current micro gray-scale map and have n pixel, n pixel is divided into two classes, gray value is less than k
Pixel, with gray value more than or equal to the pixel of k.Wherein, the gray value pixel less than k has n1
Individual, the gray value pixel more than or equal to k has n2, n1+n2=n.
W1 represents that current grayvalue is less than the pixel of k and accounts for the proportion of sum of all pixels in current micro gray-scale map,
W1=n1/n;W2 represents that current grayvalue is more than or the pixel of grade k accounts for picture in current micro gray-scale map
The proportion of element sum, W2=n2/n.
Threshold value subelement 221 is calculated current grayvalue pixel grey scale average value mu 1 He less than k respectively
Variances sigma 1, current grayvalue more than or the pixel grey scale average value mu 2 of grade k and variances sigma 2.
It is calculated difference X1 in class according to below equation:
X1=W1 × σ 12+W2×σ22。
It is calculated class inherited X2 according to below equation:
X2=W1 × W2 × (μ 1-μ 2)2。
Threshold value subelement 221 travels through the whole gray values in the range of 0 to m-1, obtain making X1 maximum or
The k value that X2 is minimum, this k value is and makes difference minimum or class inherited in current micro gray-scale map pixel class
Maximum gray value, using this k value as gray threshold corresponding to current micro gray-scale map.
Threshold value subelement 221 is calculated, according to above-mentioned formula, the gray scale threshold that each micro gray-scale map is corresponding respectively
Value.
First processes subelement 222, for according to described each gray threshold, respectively by corresponding described each micro-
Contracting gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.
After obtaining each gray threshold, first processes subelement 222 according to gray threshold, by corresponding micro-
In contracting gray-scale map, initial gray value is black more than or equal to the processes pixel of gray threshold, by initial gray
Value is white less than the processes pixel of gray threshold.
Thus, the first process subelement 222 obtains the binaryzation picture of micro gray-scale map.
First processes subelement 222 carries out two-value according to each gray threshold that each micro gray-scale map is corresponding respectively
Change processes, and obtains each micro binary picture of correspondence, and each micro binary picture obtained is artwork master, only
There is black and white.
In the present embodiment, after obtaining each micro gray-scale map, threshold value subelement 221 is according to each micro gray scale
The gray value of each pixel in figure, obtains respectively and makes difference in the pixel class of each micro gray-scale map minimum or between class
The gray value that difference is maximum, as the gray threshold that each micro gray-scale map is corresponding;First processes subelement 222
According to each gray threshold, respectively corresponding each micro gray-scale map is carried out binary conversion treatment, obtain correspondence
Each micro binary picture.Pixel in micro gray-scale map is classified by the present embodiment, makes image pixel class
The gray value that interior difference is minimum or class inherited is maximum is as gray threshold, and interior difference is minimum or class inherited
Time, between the pixel class of present image, difference is maximum, and misclassification probability is little, and the binary image obtained is accurate
Really rate is high.
Further, with reference to Fig. 6, message display device the 4th embodiment of the present invention provides a kind of message to show
Device, based on the embodiment shown in above-mentioned 4, described binarization unit 22 includes:
Average subelement 223, for obtaining the average gray value of described each micro gray-scale map respectively.
Obtaining after each micro gray-scale map, average subelement 223 obtains working as of each pixel in micro gray-scale map
Front gray value is as the initial gray value of each pixel.
Then, initial according to the sum of all pixels in each micro gray-scale map and each pixel of average subelement 223
Gray value, is calculated the average gray value of each micro gray-scale map respectively.
Second processes subelement 224, for the average gray value according to described each micro gray-scale map, respectively will
Corresponding described each micro gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.
After the average gray value obtaining each micro gray-scale map, second processes subelement 224 according to average ash
Angle value, by initial gray value in corresponding micro gray-scale map more than or equal to the processes pixel of average gray value
For black, the processes pixel that initial gray value is less than average gray value is white.
Thus, the second process subelement 224 obtains the binaryzation picture of micro gray-scale map.
Second processes subelement 224 is carried out corresponding each micro gray-scale map according to each average gray value respectively
Binary conversion treatment, obtains each micro binary picture of correspondence, and each micro binary picture obtained is artwork master,
Only have black and white.
In the present embodiment, after obtaining each micro gray-scale map, average subelement 223 obtains each micro respectively
The average gray value of gray-scale map;Then, second average according to each micro gray-scale map of subelement 224 is processed
Gray value, carries out binary conversion treatment by corresponding each micro gray-scale map respectively, obtains each micro two of correspondence
Value figure.Each micro gray-scale map, by the average gray value according to each micro gray-scale map, is entered by the present embodiment
Row binary conversion treatment, data processing amount is little, improves data processing speed.
Further, with reference to Fig. 7, message display device the 5th embodiment of the present invention provides a kind of message to show
Device, based on the embodiment (the present embodiment is as a example by Fig. 3) shown in above-mentioned Fig. 3, Fig. 4, Fig. 5 or Fig. 6,
Described message display device also includes:
Timing module 40, if being received again by message for described mobile terminal in default time interval,
Then show described message interface in described target area;
Described acquisition module 10, is received again by if being additionally operable to described mobile terminal after default time interval
Message, then obtain the sectional drawing of described mobile terminal display interface, splits described sectional drawing and obtains each local picture.
In the present embodiment, timing module 40 is preset with time interval, is used for assessing whether to need again to choose
Target area.Taking default time interval is T.
After receiving message first, timing module 40 proceeds by timing, if in T time or T time,
Mobile terminal is received again by the chat messages of note or application software, then display module 30 is in target area
Middle display message interface, consults message for user, or carries out the process of message.It should be noted that
When receiving message, if timing module 40 is not the most in timing, then headed by timing module 40 judges currently
Secondary receive message.
If in T time, timing module 40 does not receives new information, then mobile terminal stops timing.
If after T time, namely after timing module 40 stops timing, mobile terminal be received again by note or
The chat messages of application software, then timing module 40 is judged to receive first message, restarts timing,
Acquisition module 10 intercepts the picture of current display interface and processes, and display module 30 chooses target area
Display message interface.
In the present embodiment, if mobile terminal is received again by message in default time interval, then timing
Module 40 controls to show message interface in target area;If mobile terminal is again after default time interval
Receive message, then acquisition module 10 obtains the sectional drawing of mobile terminal current display interface, display module 30
Again target area is chosen.The present embodiment does not change the display position of message interface in default time interval
Put, alleviate data processing load.Meanwhile, if mobile terminal is received again by after default time interval
Message, chooses target area display message interface the most again, it is to avoid the dynamic change of mobile terminal display interface
Change, cause former target area to be not suitable for showing message interface.The present embodiment achieves choice of dynamical mesh
Mark region, the display for message interface provides suitable position, it is simple to user consults, processes message, carries
Rise Consumer's Experience.
With reference to Fig. 8, message display method first embodiment of the present invention provides a kind of message display method, described
Message display method includes:
Step S10, when receiving message, obtain the sectional drawing of mobile terminal display interface, split described sectional drawing and obtain
To each local picture.
The embodiment of the present invention makes full use of the white space of video clip, note that display mobile terminal receives,
The chat messages such as wechat, QQ, fast chats, and improves the service efficiency of mobile phone, adds user
Experience.
Certainly, it is can also be applied to interface, other software interfaces etc., can be according to reality
Need to arrange flexibly.
Concrete, as a kind of embodiment, use mobile terminal viewing video user or play game
Time, mobile terminal monitoring note and the chat messages state of application software.
If mobile terminal receives message, the chat messages of such as note or application software, then mobile terminal
Current display interface is carried out sectional drawing, obtains the sectional drawing of current mobile terminal display interface.
Then, the sectional drawing that mobile terminal segmentation is current, obtain each local picture.
Sectional drawing can be divided into equal-sized multiple according to the resolution of current mobile terminal by mobile terminal
Square local picture.Such as, the display interface of current mobile terminal is the ratio of width to height of 16:9, the most permissible
Sectional drawing is carried out segmentation and obtains 16 × 9 equal-sized square local pictures.It is, of course, also possible to will divide
Cutting the less of size setting, the equal-sized square picture obtained is the most, and image procossing is the most smart
Carefully.
After obtaining each local picture, mobile terminal records currently picture position in screen, each local.
Step S20, respectively described each local picture is carried out binary conversion treatment, obtain described each local picture
Average gray value.
After obtaining each local picture, each local picture is carried out binaryzation by mobile terminal, obtains each local
The average gray value of picture.
Concrete, as a kind of embodiment, each local picture is carried out binary conversion treatment by mobile terminal,
Obtain the binary picture that each local picture is corresponding, namely the artwork master that each local picture is corresponding.
Taking in binary picture, the gray value of black pixel point is 1, and the gray value of white pixel point is 0.
Then, mobile terminal according in binary picture corresponding to each local picture, the number of pixel and each picture
The gray value of element, is calculated the average gray value of each binary picture respectively, namely has obtained each of correspondence
The locally average gray value of picture.
Step S30, obtain target area according to the average gray value of each local picture, in described target area
Display message interface.
After the average gray value obtaining each local picture, mobile terminal is according to the draw ash of each local picture
Angle value obtain target area, and target area show message interface, for user consult note, apply soft
The chat messages etc. of part, carries out quickly revert.
Concrete, as a kind of embodiment, first, mobile terminal is according to each local picture obtained
Average gray value, the local picture average gray value obtaining position adjacent is poor.Mobile terminal is preset with adjacent
The locally difference threshold of picture, if the average gray value difference of adjacent local picture is less than the difference threshold preset,
Then judge that local picture that this is adjacent, as similar Background, merges this adjacent local picture and merged
Figure.
Such as, the average gray value taking local picture A is A1, and locally the average gray value of picture B is
B1, locally picture A and local picture B is the local picture that two positions are adjacent.
Then the average gray value difference of local picture A and local picture B is Δ AB=| A1-B1 |.
Taking default difference threshold is Δ 0, if Δ 0 > Δ AB, then judge local picture A and local picture B
For similar local picture, merge local picture A and local picture B, obtain merging figure.
After mobile terminal travels through all of local picture, obtain one or more merging figure.
Then, mobile terminal, according to the position of each local picture, obtains the position of merging figure, and permissible
Obtain the size of each merging figure, shape.
Mobile terminal, according to merging the factors such as the position of figure, size, shape, chooses target area.Such as,
Mobile terminal can reduce regarding using the merging figure of prioritizing selection mobile terminal marginal position as target area
Frequently the impact of picture;Mobile terminal can be using the merging figure of prioritizing selection square or rectangular as target area
Territory, promotes the display effect of message interface;Mobile terminal can also preferentially choose the merging figure that size is maximum
As target area, increase the display effect of message interface, it is achieved mobile terminal is according to multiple factors, spirit
Live and choose target area.
The target area obtained is the background area that in display interface, color is close, is suitable for display message interface.
After obtaining the target area chosen, mobile terminal shows message interface in target area, for user
Consult message, process.
With reference to Figure 13, mobile terminal full frame viewing video is used to be illustrated with active user.
When mobile terminal receives note, obtaining the sectional drawing of current display interface, segmentation sectional drawing obtains each local
Picture;Then, respectively each local picture is carried out binary conversion treatment, obtain the average ash of each local picture
Angle value;Then obtain target area according to the average gray value of each local picture, show in target area and disappear
Breath interface.
Message interface includes the note received, and user, without exiting currently viewing video, can consult
Note.For reducing the impact of video currently viewing on user, can arrange message interface is transparent background,
Only show the message content such as message text, picture.
Or, mobile terminal can also show the note received and relevant functional keys at message interface,
Such as reply button, after user clicks on reply button, can carry out the reply of message at current video interface.
After user completes the editor replied message, click on and send, the mobile terminal system service interface by note
Call short message service, send note, and hide current message interface, it is achieved the quickly revert of note.
Process it is, of course, also possible to carry out the deletion of note etc..
As another embodiment, mobile terminal is preset with pure color threshold value, is used for judging that local picture is
No for pure color picture.The setting of pure color threshold value can be adjusted as required, and such as 0.2.
Judge that whether the average gray value of each local picture is less than the pure color threshold value preset respectively.If Local map
The average gray value of sheet less than the pure color threshold value preset, then judges that this local picture, as pure color picture, moves
Terminal travels through each local picture and obtains result of determination.
Then, mobile terminal merges adjacent pure color picture, obtains one or more merging figure.
Then, mobile terminal merges figure according to each, chooses target area, shows message circle in target area
Face.Choosing the target area obtained is solid color regions so that user is more prone to see the message of display
Interface, carries out Message Processing good.
If within the default time, do not receive user's operational order to current message interface, then mobile whole
End hides current message interface.
In the present embodiment, when receiving message, obtain the sectional drawing of mobile terminal display interface, split sectional drawing
Obtain each local picture;The most each local picture is carried out binary conversion treatment, obtain each local picture
Average gray value;Then target area is obtained, in target area according to the average gray value of each local picture
Territory display message interface.The present embodiment is when receiving the chat messages of note or application software, by analyzing
Process the current display interface of mobile terminal, choose the target area being suitable for display message, show message circle
Face, consults message for user or carries out the process such as reply so that user is without exiting current display circle
Face, can realize consulting and processing of note, chat messages etc., convenient to operation, improves user
Experience.The embodiment of the present invention carries out social chat when solving viewing video need to switch application software repeatedly,
The technical problem of complex operation, it is achieved that user does not switch application software, can consult chat messages or
Process accordingly.
Further, with reference to Fig. 9, message display method the second embodiment of the present invention provides a kind of message to show
Method, the embodiment shown based on above-mentioned Fig. 8, described step S20 includes:
Step S21, reducing described each local picture to the size preset respectively, and simplify color, it is right to obtain
The each micro gray-scale map answered.
After obtaining each local picture, each local picture is reduced by mobile terminal according to default size
Process, obtain each micro local picture of correspondence.
The size preset can be arranged the most flexibly, such as, can be 8 × 8, have 64 pictures
The square of element.
After obtaining each micro local picture, each micro local picture is carried out color simplification process, obtains
The gray-scale map of each micro local picture, namely each micro gray-scale map that each micro local picture is corresponding.
The tonal gradation of each micro gray-scale map is identical, can be to arrange the most flexibly, such as by each micro-
Contracting local picture is converted to the gray-scale map of 64 grades, then obtain each all pixels of micro gray-scale map and have 64 kinds
Color.
Step S22, respectively described each micro gray-scale map is carried out binary conversion treatment, obtain each micro of correspondence
Binary picture.
After obtaining each micro gray-scale map, in acquisition for mobile terminal micro gray-scale map, the gray value of each pixel is made
For initial gray value.
Mobile terminal is preset with gray threshold, for the binary conversion treatment of each micro gray-scale map.
Initial gray value in each micro gray-scale map, according to default gray threshold, is more than or equal to by mobile terminal
The pixel grey scale of gray threshold is processed as black, and initial gray value is less than the grey scale pixel value of gray threshold
It is processed as white.Thus, the binaryzation picture of each micro gray-scale map is obtained.
Mobile terminal carries out binary conversion treatment to each micro gray-scale map respectively, obtains each micro two-value of correspondence
Changing figure, each micro binary picture obtained is artwork master, only black and white.
Step S23, obtain the average gray value of described each micro binary picture respectively, described in corresponding
The average gray value of each local picture.
After obtaining each micro binary picture, obtain the gray value that in figure, each pixel is current.Such as, take
In each micro binary picture, the gray value of black picture element is 1, and the grey scale pixel value of white is 0.
Then, mobile terminal is according to the current gray value of pixel each in micro binary picture and total of pixel
Number, obtains the average gray value of micro binary picture.Mobile terminal is calculated each micro binaryzation respectively
The average gray value of figure.
Then, mobile terminal using the average gray value of each micro binary picture that obtains as corresponding each office
The average gray value of portion's picture.
Thus, the average gray value of each local picture is obtained.
In the present embodiment, after obtaining each local picture, reduce the size that each local picture is extremely preset respectively,
And simplify color, obtain each micro gray-scale map of correspondence;Respectively each micro gray-scale map is carried out at binaryzation
Reason, obtains each micro binary picture of correspondence;Obtain the average gray value of each micro binary picture respectively,
Average gray value as corresponding each local picture.The present embodiment, by reducing each local picture, is carried out
Binary conversion treatment obtains average gray value, decreases the data volume of image procossing, improves image procossing speed
Degree.
Further, with reference to Figure 10, message display method the 3rd embodiment of the present invention provides a kind of message to show
Showing method, based on the embodiment shown in above-mentioned Fig. 9, described step S22 includes:
Step S221, according to the gray value of each pixel in described each micro gray-scale map, obtain respectively make described
The gray value that in the pixel class of each micro gray-scale map, difference is minimum or class inherited is maximum, for described each micro
The gray threshold that gray-scale map is corresponding.
After obtaining each micro gray-scale map, the current gray level of each pixel in acquisition for mobile terminal micro gray-scale map
It is worth the initial gray value as each pixel.
Then, in acquisition for mobile terminal makes the pixel class of each micro gray-scale map, difference is minimum or class inherited
Big gray value is the gray threshold that each micro gray-scale map is corresponding.
Concrete, as a kind of embodiment, the tonal gradation taking current micro gray-scale map is m, then when
Each pixel initial gray value scope of front micro gray-scale map is (0, m-1).
The gray threshold taking current micro gray-scale map is k, 0≤k≤m-1.
Taking current micro gray-scale map and have n pixel, n pixel is divided into two classes, gray value is less than k
Pixel, with gray value more than or equal to the pixel of k.Wherein, the gray value pixel less than k has n1
Individual, the gray value pixel more than or equal to k has n2, n1+n2=n.
W1 represents that current grayvalue is less than the pixel of k and accounts for the proportion of sum of all pixels in current micro gray-scale map,
W1=n1/n;W2 represents that current grayvalue is more than or the pixel of grade k accounts for picture in current micro gray-scale map
The proportion of element sum, W2=n2/n.
It is calculated the current grayvalue pixel grey scale average value mu 1 less than k and variances sigma 1 respectively, currently
Gray value more than or the pixel grey scale average value mu 2 of grade k and variances sigma 2.
It is calculated difference X1 in class according to below equation:
X1=W1 × σ 12+W2×σ22。
It is calculated class inherited X2 according to below equation:
X2=W1 × W2 × (μ 1-μ 2)2。
Whole gray values in the range of mobile terminal traversal 0 to m-1, obtain making X1 maximum or X2 are minimum
K value, this k value is and makes difference in current micro gray-scale map pixel class minimum or class inherited is maximum
Gray value, using this k value as gray threshold corresponding to current micro gray-scale map.
Mobile terminal is calculated, according to above-mentioned formula, the gray threshold that each micro gray-scale map is corresponding respectively.
Step S222, according to described each gray threshold, respectively corresponding described each micro gray-scale map is carried out
Binary conversion treatment, obtains each micro binary picture of correspondence.
After obtaining each gray threshold, mobile terminal is according to gray threshold, by corresponding micro gray-scale map
Initial gray value is black more than or equal to the processes pixel of gray threshold, by initial gray value less than gray scale
The processes pixel of threshold value is white.
Thus, the binaryzation picture of micro gray-scale map is obtained.
Mobile terminal carries out binary conversion treatment according to each gray threshold that each micro gray-scale map is corresponding respectively,
To corresponding each micro binary picture, each micro binary picture obtained is artwork master, only black and white.
In the present embodiment, after obtaining each micro gray-scale map, according to the ash of each pixel in each micro gray-scale map
Angle value, obtains the gray scale that in the pixel class making each micro gray-scale map, difference is minimum or class inherited is maximum respectively
Value, as the gray threshold that each micro gray-scale map is corresponding;According to each gray threshold, respectively by corresponding each
Micro gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.The present embodiment is by micro
Pixel in gray-scale map is classified, and makes the gray scale that in image pixel class, difference is minimum or class inherited is maximum
Value is as gray threshold, when interior difference minimum or class inherited, and difference between the pixel class of present image
Maximum, misclassification probability is little, and the binary image accuracy rate obtained is high.
Further, with reference to Figure 11, message display method the 4th embodiment of the present invention provides a kind of display side
Method, based on the embodiment shown in above-mentioned Fig. 9, described step S22 includes:
Step S223, obtain the average gray value of described each micro gray-scale map respectively.
After obtaining each micro gray-scale map, the current gray level of each pixel in acquisition for mobile terminal micro gray-scale map
It is worth the initial gray value as each pixel.
Then, mobile terminal according to the sum of all pixels in each micro gray-scale map and the initial gray value of each pixel,
It is calculated the average gray value of each micro gray-scale map respectively.
Step S224, average gray value according to described each micro gray-scale map, respectively by corresponding described respectively
Micro gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.
After the average gray value obtaining each micro gray-scale map, mobile terminal is according to average gray value, by right
In the micro gray-scale map answered, initial gray value is black more than or equal to the processes pixel of average gray value, will
Initial gray value is white less than the processes pixel of average gray value.
Thus, the binaryzation picture of micro gray-scale map is obtained.
Mobile terminal carries out binary conversion treatment according to each average gray value to corresponding each micro gray-scale map respectively,
Obtaining each micro binary picture of correspondence, each micro binary picture obtained is artwork master, only black and white two
Color.
In the present embodiment, after obtaining each micro gray-scale map, obtain the average ash of each micro gray-scale map respectively
Angle value;Then according to the average gray value of each micro gray-scale map, respectively corresponding each micro gray-scale map is entered
Row binary conversion treatment, obtains each micro binary picture of correspondence.The present embodiment is by according to each micro gray scale
The average gray value of figure, carries out binary conversion treatment to each micro gray-scale map, and data processing amount is little, improves
Data processing speed.
Further, with reference to Figure 12, message display method the 5th embodiment of the present invention provides a kind of message to show
Showing method, based on the embodiment shown in above-mentioned Fig. 8, Fig. 9, Figure 10 or Figure 11, (the present embodiment is with Fig. 8
As a example by), after described step S30, also include:
If step S40 described mobile terminal in default time interval is received again by message, then described
Target area shows described message interface;If described mobile terminal is received again by after default time interval
Message, then proceed to perform step S10.
In the present embodiment, mobile terminal is preset with time interval, is used for assessing whether to need again to choose mesh
Mark region.Taking default time interval is T.
After receiving message first, mobile terminal proceeds by timing, if in T time or T time,
Mobile terminal is received again by the chat messages of note or application software, shows message the most in the target area
Interface, consults message for user, or carries out the process of message.It should be noted that receiving message
Time, if mobile terminal is not the most in timing, then judge current as receiving message first.
If in T time, mobile terminal does not receives new information, then mobile terminal stops timing.
If after T time, namely after mobile terminal stopping timing, mobile terminal is received again by note or answers
With the chat messages of software, then mobile terminal is judged to receive first message, restarts timing, intercepts
The picture of current display interface processes, and chooses target area display message interface.
In the present embodiment, if in default time interval, mobile terminal is received again by message, then at mesh
Mark region display message interface;If mobile terminal is received again by message after default time interval, then obtain
Take the sectional drawing of mobile terminal current display interface, again choose target area.The present embodiment is when default
Between do not change the display position of message interface in interval, alleviate the data processing load of mobile terminal.With
Time, if mobile terminal is received again by message after default time interval, the most again chooses target area and show
Show message interface, it is to avoid the dynamic change of mobile terminal display interface, cause former target area the most uncomfortable
Close display message interface.The present embodiment achieves choice of dynamical target area, and the display for message interface carries
For suitable position, it is simple to user consults, processes message, improves Consumer's Experience.
It should be noted that in this article, term " include ", " comprising " or its any other variant
Be intended to comprising of nonexcludability so that include the process of a series of key element, method, article or
Person's device not only includes those key elements, but also includes other key elements being not expressly set out, or also
Including the key element intrinsic for this process, method, article or device.In the feelings not having more restriction
Under condition, statement " including ... " key element limited, it is not excluded that include this key element process,
Method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned
Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical
Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's
The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product
Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light
Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service
Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the alternative embodiment of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. a message display device, it is characterised in that described message display device includes:
Acquisition module, when being used for receiving message, obtains the sectional drawing of mobile terminal display interface, and segmentation is described
Sectional drawing obtains each local picture;
Processing module, for respectively described each local picture being carried out binary conversion treatment, obtains described each office
The average gray value of portion's picture;
Display module, obtains target area for the average gray value according to each local picture, at described mesh
Mark region display message interface.
2. message display device as claimed in claim 1, it is characterised in that described processing module includes:
Simplified element, for reducing the size that described each local picture is extremely preset respectively, and simplifies color,
Obtain each micro gray-scale map of correspondence;
Binarization unit, for respectively described each micro gray-scale map being carried out binary conversion treatment, obtains correspondence
Each micro binary picture;
All value cells, for obtaining the average gray value of described each micro binary picture respectively, as correspondence
The average gray value of described each local picture.
3. message display device as claimed in claim 2, it is characterised in that described binarization unit bag
Include:
Threshold value subelement, for according to the gray value of each pixel in described each micro gray-scale map, obtains respectively
Make the gray value that in the pixel class of described each micro gray-scale map, difference is minimum or class inherited is maximum, for described
The gray threshold that each micro gray-scale map is corresponding;
First processes subelement, for according to described each gray threshold, respectively by corresponding described each micro
Gray-scale map carries out binary conversion treatment, obtains each micro binary picture of correspondence.
4. message display device as claimed in claim 2, it is characterised in that described binarization unit bag
Include:
Average subelement, for obtaining the average gray value of described each micro gray-scale map respectively;
Second processes subelement, for the average gray value according to described each micro gray-scale map, respectively by right
The described each micro gray-scale map answered carries out binary conversion treatment, obtains each micro binary picture of correspondence.
5. the message display device as described in any one of claim 1-4, it is characterised in that described message
Display device also includes:
Timing module, if being received again by message, then for described mobile terminal in default time interval
Described message interface is shown in described target area;
Described acquisition module, is received again by disappearing if being additionally operable to described mobile terminal after default time interval
Breath, then obtain the sectional drawing of described mobile terminal display interface, split described sectional drawing and obtain each local picture.
6. a message display method, it is characterised in that described message display method comprises the following steps:
When receiving message, obtain the sectional drawing of mobile terminal display interface, split described sectional drawing and obtain each local
Picture;
Respectively described each local picture is carried out binary conversion treatment, obtain the average ash of described each local picture
Angle value;
Average gray value according to each local picture obtains target area, shows message in described target area
Interface.
7. message display method as claimed in claim 6, it is characterised in that described respectively by described respectively
Locally picture carries out binary conversion treatment, and the step of the average gray value obtaining described each local picture includes:
Reduce the size that described each local picture is extremely preset respectively, and simplify color, obtain each micro-of correspondence
Contracting gray-scale map;
Respectively described each micro gray-scale map is carried out binary conversion treatment, obtain each micro binary picture of correspondence;
Obtain the average gray value of described each micro binary picture respectively, as corresponding described each Local map
The average gray value of sheet.
8. message display method as claimed in claim 7, it is characterised in that described respectively by described respectively
Micro gray-scale map carries out binary conversion treatment, and the step of each micro binary picture obtaining correspondence includes:
According to the gray value of each pixel in described each micro gray-scale map, obtain respectively and make described each micro gray scale
The gray value that in the pixel class of figure, difference is minimum or class inherited is maximum is corresponding for described each micro gray-scale map
Gray threshold;
According to described each gray threshold, respectively corresponding described each micro gray-scale map is carried out binary conversion treatment,
Obtain each micro binary picture of correspondence.
9. message display method as claimed in claim 7, it is characterised in that described respectively by described respectively
Micro gray-scale map carries out binary conversion treatment, and the step of each micro binary picture obtaining correspondence includes:
Obtain the average gray value of described each micro gray-scale map respectively;
According to the average gray value of described each micro gray-scale map, respectively by corresponding described each micro gray-scale map
Carry out binary conversion treatment, obtain each micro binary picture of correspondence.
10. the message display method as described in any one of claim 6-9, it is characterised in that described
Target area is obtained, at described target area display message interface according to the average gray value of each local picture
After step, also include:
If described mobile terminal is received again by message in default time interval, then in described target area
Show described message interface;If after default time interval, described mobile terminal is received again by message, then
Proceed to perform step: obtain the sectional drawing of mobile terminal display interface, split described sectional drawing and obtain each Local map
Sheet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610177912.5A CN105867729B (en) | 2016-03-25 | 2016-03-25 | Message display device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610177912.5A CN105867729B (en) | 2016-03-25 | 2016-03-25 | Message display device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105867729A true CN105867729A (en) | 2016-08-17 |
CN105867729B CN105867729B (en) | 2019-05-10 |
Family
ID=56625865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610177912.5A Active CN105867729B (en) | 2016-03-25 | 2016-03-25 | Message display device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105867729B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502490A (en) * | 2016-09-19 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of incoming call reminding method and terminal |
CN106547439A (en) * | 2016-10-28 | 2017-03-29 | 努比亚技术有限公司 | A kind of method and apparatus for processing message |
CN106775333A (en) * | 2017-02-16 | 2017-05-31 | 深圳市茁壮网络股份有限公司 | A kind of screenshotss method and device |
CN107391069A (en) * | 2017-07-27 | 2017-11-24 | 深圳市泰衡诺科技有限公司 | A kind of method for information display and information display system based on intelligent terminal |
CN107613115A (en) * | 2017-09-06 | 2018-01-19 | 广东欧珀移动通信有限公司 | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing |
CN108769362A (en) * | 2018-04-12 | 2018-11-06 | Oppo广东移动通信有限公司 | The unread message reminding method and Related product of application program |
CN109144353A (en) * | 2018-07-18 | 2019-01-04 | 奇酷互联网络科技(深圳)有限公司 | The method, apparatus that mobile terminal and information are shown |
CN109656437A (en) * | 2018-11-30 | 2019-04-19 | 维沃移动通信有限公司 | A kind of information display method and terminal device |
WO2021088422A1 (en) * | 2019-11-07 | 2021-05-14 | 支付宝(杭州)信息技术有限公司 | Application message notification method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277409A (en) * | 2007-03-31 | 2008-10-01 | 索尼德国有限责任公司 | Method and device for displaying a message on a screen of a television |
CN102075337A (en) * | 2009-11-20 | 2011-05-25 | 腾讯科技(深圳)有限公司 | Instant communication message display method and related device |
CN104200211A (en) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Image binaryzation method and device |
US20150187339A1 (en) * | 2013-12-29 | 2015-07-02 | Motorola Mobility Llc | Previewing Notification Content |
CN105187644A (en) * | 2015-08-27 | 2015-12-23 | 广东欧珀移动通信有限公司 | Playing operation method and terminal |
CN105430471A (en) * | 2015-11-26 | 2016-03-23 | 无锡天脉聚源传媒科技有限公司 | Method and device for displaying live commenting in video |
-
2016
- 2016-03-25 CN CN201610177912.5A patent/CN105867729B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277409A (en) * | 2007-03-31 | 2008-10-01 | 索尼德国有限责任公司 | Method and device for displaying a message on a screen of a television |
CN102075337A (en) * | 2009-11-20 | 2011-05-25 | 腾讯科技(深圳)有限公司 | Instant communication message display method and related device |
US20150187339A1 (en) * | 2013-12-29 | 2015-07-02 | Motorola Mobility Llc | Previewing Notification Content |
CN104200211A (en) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Image binaryzation method and device |
CN105187644A (en) * | 2015-08-27 | 2015-12-23 | 广东欧珀移动通信有限公司 | Playing operation method and terminal |
CN105430471A (en) * | 2015-11-26 | 2016-03-23 | 无锡天脉聚源传媒科技有限公司 | Method and device for displaying live commenting in video |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106502490A (en) * | 2016-09-19 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of incoming call reminding method and terminal |
CN106547439A (en) * | 2016-10-28 | 2017-03-29 | 努比亚技术有限公司 | A kind of method and apparatus for processing message |
CN106547439B (en) * | 2016-10-28 | 2020-01-07 | 努比亚技术有限公司 | Method and device for processing message |
CN106775333A (en) * | 2017-02-16 | 2017-05-31 | 深圳市茁壮网络股份有限公司 | A kind of screenshotss method and device |
CN107391069A (en) * | 2017-07-27 | 2017-11-24 | 深圳市泰衡诺科技有限公司 | A kind of method for information display and information display system based on intelligent terminal |
CN107613115A (en) * | 2017-09-06 | 2018-01-19 | 广东欧珀移动通信有限公司 | Event-prompting method, device, mobile terminal and readable storage medium storing program for executing |
CN108769362A (en) * | 2018-04-12 | 2018-11-06 | Oppo广东移动通信有限公司 | The unread message reminding method and Related product of application program |
CN109144353A (en) * | 2018-07-18 | 2019-01-04 | 奇酷互联网络科技(深圳)有限公司 | The method, apparatus that mobile terminal and information are shown |
CN109656437A (en) * | 2018-11-30 | 2019-04-19 | 维沃移动通信有限公司 | A kind of information display method and terminal device |
CN109656437B (en) * | 2018-11-30 | 2021-01-26 | 维沃移动通信有限公司 | Information display method and terminal equipment |
WO2021088422A1 (en) * | 2019-11-07 | 2021-05-14 | 支付宝(杭州)信息技术有限公司 | Application message notification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105867729B (en) | 2019-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105867729A (en) | A message display device and method | |
CN106302108B (en) | Group's information management method and device | |
CN106951291A (en) | Application program accelerates to start method and device | |
CN106201474A (en) | A kind of notification message display packing and terminal | |
CN105843478B (en) | The icon display control method and device of rapid switch | |
CN106648369A (en) | Switching device and method for application program | |
CN105978788A (en) | Message pushing device and method thereof | |
CN104777982B (en) | Method and device for switching terminal input method | |
CN105893498A (en) | Method and device for achieving screen capture and method and device for searching for images | |
CN105893490A (en) | Picture display device and method | |
CN106961668A (en) | Mobile terminal location device and method | |
CN105975052A (en) | Screen switching method and device | |
CN105739854A (en) | Interaction information processing method and apparatus | |
CN106528073A (en) | Terminal and terminal application uninstalling method | |
CN105873138A (en) | Method and device for reselecting cell | |
CN105554710A (en) | Message display method and device | |
CN106547439A (en) | A kind of method and apparatus for processing message | |
CN105760055A (en) | Mobile terminal and control method thereof | |
CN105872997A (en) | Short message merging method and terminal equipment | |
CN106020706A (en) | Touch operation processing method and mobile terminal | |
CN106126053A (en) | Mobile terminal control device and method | |
CN105955650A (en) | Human-computer interaction operation method and device | |
CN105898264A (en) | Device and method for obtaining image processing manner | |
CN106657670B (en) | Mobile terminal and triggering application method based on mobile terminal | |
CN105611056B (en) | A kind of information processing method and mobile 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 |