[go: up one dir, main page]

CN107071169A - The processing unit and method of screen wallpaper - Google Patents

The processing unit and method of screen wallpaper Download PDF

Info

Publication number
CN107071169A
CN107071169A CN201710212687.9A CN201710212687A CN107071169A CN 107071169 A CN107071169 A CN 107071169A CN 201710212687 A CN201710212687 A CN 201710212687A CN 107071169 A CN107071169 A CN 107071169A
Authority
CN
China
Prior art keywords
image
screen wallpaper
display interface
background image
processing
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.)
Withdrawn
Application number
CN201710212687.9A
Other languages
Chinese (zh)
Inventor
张宇希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710212687.9A priority Critical patent/CN107071169A/en
Publication of CN107071169A publication Critical patent/CN107071169A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of processing unit of screen wallpaper and method, the processing unit of the screen wallpaper includes:When first processing module, process instruction for receiving screen wallpaper in current display interface, retain the graph text information in current display interface, and start front camera with shooting image;Second processing module, carries out repair process for determining human region in the image of shooting, and to the human region, the human region is repaired into the environmental area of described image, background image is obtained;Replacement module, for replacing the screen wallpaper in current display interface using the background image, so that the graph text information is shown on the background image.The present invention improves the flexibility that content in display interface is shown, and improves the convenience of screen wallpaper processing.

Description

The processing unit and method of screen wallpaper
Technical field
The present invention relates to the processing unit and method of technical field of mobile terminals, more particularly to a kind of screen wallpaper.
Background technology
In current mobile terminal in use, screen wallpaper is typically all to keep constant, if user thinks more Background is changed, wallpaper can only be replaced, but present wallpaper is mostly the image that system is set, and be essentially all static Pattern, substitute mode is more inflexible, and no matter how replaces, and the display interface of mobile terminal is all more dull, not clever enough It is living.Also, when changing wallpaper, typically to carry out selection replacing into wallpaper application so that the substitute mode of wallpaper is cumbersome.
The content of the invention
It is a primary object of the present invention to propose the processing unit and method of a kind of screen wallpaper, it is intended to solve existing screen Curtain wallpaper processing mode, it is more inflexible, cumbersome, and the technical problem of the screen wallpaper very flexible of display.
To achieve the above object, a kind of processing unit for screen wallpaper that the present invention is provided, the processing of the screen wallpaper Device includes:
When first processing module, process instruction for receiving screen wallpaper in current display interface, retain current Graph text information in display interface, and start front camera with shooting image;
Second processing module, is repaired for determining human region in the image of shooting, and to the human region Processing, the human region is repaired into the environmental area of described image, obtains background image;
Replacement module, for replacing the screen wallpaper in current display interface using the background image, so that the figure Literary presentation of information is on the background image.
Alternatively, the Second processing module includes:
Unit is wiped, for wiping the human region, so that the human region becomes white space;
Synthesis unit, in the borderline region of the white space, selection predeterminable area to be with composograph block;
Fills unit, carries out image repair filling, so that described for the image block using synthesis to the white space White space repairs into the environmental area of described image.
Alternatively, described device also includes:
Detection module, the color for detecting the word in graph text information and the background image of the word corresponding region respectively Angle value;
3rd processing module, for when the chromatic value is less than default chromatic value, inverse to be carried out to the picture and text word Processing and/or Shadows Processing.
Alternatively, described device also includes:
Starting module, is recorded for when receiving the record command of background image, starting recording button;
Fourth processing module, for when the duration of recording reaches preset duration, stopping recording operation, and preserve recording Background image, so as to subsequently received screen wallpaper process instruction when, using recording background image replace display interface in Screen wallpaper.
Alternatively, the first processing module includes:
Call unit, if being the display interface of third-party application for current display interface, is receiving screen wallpaper During process instruction, default i.e. SDK SDK bags are called in the development interface of third-party application;
Processing unit, for based on the SDK bags called, retaining the graph text information in current display interface, and start Front camera is with shooting image.
In addition, to achieve the above object, the present invention also proposes a kind of processing method of screen wallpaper, the screen wallpaper Processing method includes:
When the process instruction of screen wallpaper is received in current display interface, retain the picture and text letter in current display interface Breath, and start front camera with shooting image;
Human region is determined in the image of shooting, and repair process is carried out to the human region, by the human body The environmental area of described image is repaired into region, obtains background image;
Screen wallpaper in current display interface is replaced using the background image, so that the graph text information is shown in institute State on background image.
Alternatively, it is described that repair process is carried out to the human region, the human region is repaired into described image Environmental area the step of include:
The human region is wiped, so that the human region becomes white space;
In the borderline region of the white space, selection predeterminable area is with composograph block;
Image repair filling is carried out to the white space using the image block of synthesis, so that the white space is repaired into The environmental area of described image.
Alternatively, the screen wallpaper replaced using the background image in current display interface, so that the picture and text After step of the presentation of information on the background image, methods described also includes:
Word and the chromatic value of the background image of the word corresponding region respectively in detection graph text information;
When the chromatic value is less than default chromatic value, inverse processing and/or Shadows Processing are carried out to the word.
Alternatively, the screen wallpaper replaced using the background image in current display interface, so that the picture and text After step of the presentation of information on the background image, methods described also includes:
When receiving the record command of background image, start recording button and recorded;
When the duration of recording reaches preset duration, stop recording operation, and preserve the background image of recording, so as to follow-up When receiving the process instruction of screen wallpaper, the screen wallpaper in display interface is replaced using the background image of recording.
Alternatively, it is described screen wallpaper is received in current display interface process instruction when, retain current display circle Graph text information in face, and start the step of front camera is with shooting image and include:
If current display interface is the display interface of third-party application, when receiving the process instruction of screen wallpaper, The development interface of third-party application calls default i.e. SDK SDK bags;
Based on the SDK bags called, retain the graph text information in current display interface, and start front camera to clap Take the photograph image.
The processing unit and method of screen wallpaper proposed by the present invention, receive screen wallpaper in current display interface During process instruction, first retain the graph text information in current display interface, and start front camera with shooting image, then clapping Human region is determined in the image taken the photograph, and repair process is carried out to the human region, the human region is repaired into institute The environmental area of image is stated, background image is obtained, the final screen wallpaper replaced using background image in current display interface, with The graph text information is set to be shown on the background image.So that screen wallpaper is consistent with the ambient image of current shooting, due to Ambient image is dynamic change, therefore screen wallpaper is also dynamic change, also, to the face figure of front camera shooting As being handled so that what screen wallpaper was presented is all environmental background, improves the flexibility that content in display interface is shown, this Outside, the present invention is that the processing of screen wallpaper can be achieved only by the process instruction of screen wallpaper in display interface, without entrance In wallpaper application, the convenience of screen wallpaper processing is improved.
Brief description of the drawings
Fig. 1 is realizes the hardware architecture diagram of each embodiment one of the invention alternatively mobile terminal;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the module diagram of the processing unit first embodiment of screen wallpaper of the present invention;
Fig. 4 triggers an implement scene schematic diagram of the process instruction of screen wallpaper for the present invention;
Fig. 5 to Fig. 6 is the implement scene schematic diagram that screen wallpaper of the present invention is replaced;
Fig. 7 is the refinement module schematic diagram of Second processing module in Fig. 3;
Fig. 8 is the refinement module schematic diagram of first processing module in Fig. 3;
Fig. 9 is the schematic flow sheet of the processing method first embodiment of screen wallpaper of the present invention;
Figure 10 carries out repair process for the present invention to the human region, and the human region is repaired into described image Environmental area refinement schematic flow sheet;
When Figure 11 receives the process instruction of screen wallpaper for the present invention in current display interface, retain current display circle Graph text information in face, and start front camera with the refinement schematic flow sheet of shooting image.
The realization, functional characteristics and advantage of the object of the invention will be explained referring to the drawings in conjunction with the embodiments.
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.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is realizes the hardware architecture diagram of one of each of the invention embodiment alternatively mobile terminal.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and radio communication device Or the radio communication between network.For example, wireless communication unit can include mobile communication module 111, wireless Internet mould At least one in block 112 and short range communication module 113.
Mobile communication module 111 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 112 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 113 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include camera 121, phase Static images or the image of video that 121 pairs of machine is obtained in video acquisition mode or image capture mode by image capture apparatus Data are handled.Picture frame after processing may be displayed on display unit 151.Picture frame after being handled through camera 121 can , can be according to shifting to be stored in memory 160 (or other storage mediums) or be transmitted via wireless communication unit 110 The construction of dynamic terminal provides two or more cameras 121.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal 100 orientation, the acceleration of mobile terminal 1 00 or by fast movement and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, 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..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151.
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Reference picture 2, Fig. 2 is the electrical structure block diagram of camera in Fig. 1.
Phtographic lens 1211, by being constituted for the multiple optical lens for forming shot object image, is single-focus lens or varifocal mirror Head.Phtographic lens 1211 can be moved in the direction of the optical axis under the control of lens driver 1221, lens driver 1221 According to the control signal that circuit 1222 is controlled from lens driving, the focal position of phtographic lens 1211 is controlled, in zoom lens In the case of, it also can control focal length.Lens driving controls circuit 1222 according to the control command from microcomputer 1217 Carry out the drive control of lens driver 1221.
It is configured with and takes the photograph near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211 Element 1212.Photographing element 1212 is used to image shot object image and obtain image data.On photographing element 1212 Two dimension and it is arranged in a matrix the photodiode for constituting each pixel.Each photodiode produces photoelectricity corresponding with light income Switching current, the opto-electronic conversion electric current carries out charge accumulation by the capacitor being connected with each photodiode.The preceding table of each pixel Face is configured with the RGB colour filters of Bayer arrangement.
Photographing element 1212 is connected with imaging circuit 1213, and the imaging circuit 1213 carries out electric charge in photographing element 1212 Accumulation control and picture signal read control, and picture signal (analog picture signal) reduction to the reading resets progress after noise Waveform shaping, and then gain raising etc. is carried out with as appropriate signal level.Imaging circuit 1213 connects with A/D converter 1214 Connect, the A/D converter 1214 carries out analog-to-digital conversion to analog picture signal, it is (following to the output digital image signal of bus 1227 Referred to as view data).
Bus 1227 is the transmitting path for being transmitted in the various data that the inside of camera reads or generated.In bus 1227 are connected to above-mentioned A/D converter 1214, are additionally connected to image processor 1215, jpeg processor 1216, microcomputer Calculation machine 1217, SDRAM (Synchronous Dynamic random access memory, SDRAM) 1218th, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display Device) driver 1220.
The view data of 1215 pairs of outputs based on photographing element 1212 of image processor carries out OB and subtracts each other processing, white balance Adjustment, color matrix computing, gamma conversion, colour difference signal processing, noise removal process, while change processing, edge treated etc. are each Plant image procossing.Jpeg processor 1216 is when by Imagery Data Recording in recording medium 1225, according to JPEG compression mode pressure Contract the view data read from SDRAM1218.In addition, jpeg processor 1216 carries out JPEG to carry out image reproducing to show The decompression of view data.When being decompressed, file of the record in recording medium 1225 is read, in jpeg processor 1216 In implement after decompression, the view data of decompression is temporarily stored in SDRAM1218 and on LCD1226 carry out Display.In addition, in the present embodiment, JPEG modes are used as compression of images decompression mode, but Compress softwares Contracting mode not limited to this, it is of course possible to using MPEG, TIFF, other compressed and decompressed modes such as H.264.
Microcomputer 1217 plays the function as the overall control unit of the camera, is uniformly controlled the various processing of camera Sequence.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but is not limited to physical button or virtual key, and the entity or virtual key can be electricity Source button, camera button, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, The operational controls such as the various load buttons such as large buttons and various enter keys, detect the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217.In addition, being provided with the preceding surface of the LCD1226 as display Touch panel, detects the touch location of user, the touch location is exported to microcomputer 1217.Microcomputer 1217 According to the testing result of the operating position from operating unit 1223, various processing sequences corresponding with the operation of user are performed.
Flash memory 1224 stores the program of the various processing sequences for performing microcomputer 1217.Microcomputer 1217 The overall control of camera is carried out according to the program.In addition, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217 Adjusted value is read, the control of camera is carried out according to the adjusted value.
SDRAM1218 is can the electric volatile memory rewritten for what is temporarily stored to view data etc..Should SDRAM1218 temporarily storages are from the view data of the output of A/D converter 1214 and in image processor 1215, jpeg processor View data after being handled in 1216 grades.
Memory interface 1219 is connected with recording medium 1225, enters to be about to view data and the text being attached in view data The first-class data write-in recording medium 1225 of part and the control read from recording medium 1225.Recording medium 1225 is, for example, can The recording medium such as memory card of disassembled and assembled freely on camera main-body, but not limited to this or it is built in camera main-body In hard disk etc..
Lcd driver 1210 is connected with LCD1226, and the view data after being handled by image processor 1215 is stored in SDRAM1218 is, it is necessary to when showing, the view data for reading SDRAM1218 storages is simultaneously shown on LCD1226, or, at JPEG The compressed view data of reason device 1216 is stored in SDRAM1218, and when needing display, jpeg processor 1216 is read SDRAM1218 compressed view data, then decompressed, the view data after decompression is carried out by LCD1226 Display.
LCD1226 configurations carry out image at the back side of camera main-body and shown.The LCD1226LCD), but not limited to this, Can be using the various display panels (LCD1226) such as organic EL, but not limited to this, it would however also be possible to employ the various displays such as organic EL Panel.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the processing unit of screen wallpaper of the present invention is proposed.
The processing unit of the screen wallpaper in the present invention include mobile phone, PAD (Portable android device, Tablet personal computer) or PC (personal computer, personal computer) side, preferably mobile phone hereinafter enters by taking mobile phone as an example Row is described in detail.
Reference picture 3, Fig. 3 is the module diagram of the processing unit first embodiment of screen wallpaper of the present invention.
It is emphasized that it will be apparent to those skilled in the art that module map shown in Fig. 3 is only a preferred embodiment Exemplary plot, the module of the processing unit of screen wallpaper of the those skilled in the art shown in Fig. 3 can carry out new easily The supplement of module;The title of each module is self-defined title, is only used for aiding in the processing unit for understanding the screen wallpaper each Program function block, is not used in restriction technical scheme, and the core of technical solution of the present invention is, the mould of each self-defined title The function to be reached of block.
The present embodiment proposes a kind of processing unit of screen wallpaper, and the processing unit of the screen wallpaper includes:
When first processing module 10, process instruction for receiving screen wallpaper in current display interface, retain and work as Graph text information in preceding display interface, and start front camera with shooting image;
Second processing module 20, is repaiied for determining human region in the image of shooting, and to the human region Multiple processing, the human region is repaired into the environmental area of described image, obtains background image;
Replacement module 30, for replacing the screen wallpaper in current display interface using the background image, so that described Graph text information is shown on the background image.
In the present embodiment, the triggering mode of the process instruction of the screen wallpaper includes:
1) when receiving touch operation in the programmable button region of current display interface, the processing of screen wallpaper is triggered Instruction, as shown in figure 4, wherein, the programmable button is chosen as screen wallpaper processing button;
2) when receiving touch operation in the programmable button region of current display interface, selection interface is ejected, in choosing Select detected in interface user click on screen wallpaper processing child control when, trigger screen wallpaper process instruction.
3) on the basis of screen wallpaper pattern is opened in setting application, if in the default voice control of current display interface When receiving touch operation in region, voice messaging is monitored, it is when listening to the voice messaging of user's input, user is defeated The voice messaging entered is compared with pre-stored voice information, and the optional pre-stored voice information is " wallpaper replacement ", when user is defeated When the voice messaging entered is with pre-stored voice information matches, it is believed that receive the process instruction of screen wallpaper.
What the triggering mode of the process instruction of the three kinds of screen wallpapers listed above enumerated was merely exemplary, this area skill Art personnel utilize the technological thought of the present invention, the process instruction of the other various screen wallpapers proposed according to its real needs Triggering mode is within the scope of the present invention, herein without exhaustive one by one.
In the present embodiment, when the process instruction of screen wallpaper is detected in current display interface, the preferably first processing Module 10 starts default multithreading, for example, start dual-thread, then according to the multithreading of startup, performs and retains current display circle Graph text information in face, and start the operation of front camera.The figure in current display interface is retained by a thread Literary information, then starts front camera with shooting image by another thread.
It should be noted that in the embodiment of the present invention, the graph text information in display interface is located at screen wallpaper Bu Tong to be shown Show in layer, graph text information is located at the upper strata of screen wallpaper.Therefore, when receiving the process instruction of screen wallpaper, first retain aobvious Show that the graph text information in interface is constant, subsequently replace screen wallpaper.Wherein, graph text information include picture, word or Character etc..
Retain graph text information in current display interface, and after starting front camera with shooting image, you can shoot To image, it should be appreciated that due to the front camera that now mobile terminal is opened, therefore, people is included in the image of shooting Body image.
In the present embodiment, after image is photographed, Second processing module 20 first determines human body in the image of shooting Region, it will be understood that the pixel value of human region is different with the pixel value of environmental area, therefore, to the picture in the image of shooting After plain value is identified, the pixel value based on identification determines human region, then carries out repair place to the human region In reason, the present embodiment, the mode of repair process is carried out to the human region, can be entered using the environmental area on human region border Row is repaired, and specific repair mode is described below.After human region progress repair process, by the figure after repair process As being used as background image.It is understood that now the human body image in image has been disposed off, whole image does not all have Human body image.
In the present embodiment, after background image is obtained, replacement module 30 replaces current aobvious using the background image Show the screen wallpaper in interface, due to retaining before the graph text information in display interface, therefore work as display interface In screen wallpaper be substituted for after background image, you can by the graph text information include on the background image so that when Graph text information in preceding display interface does not change, and change is screen wallpaper, and, although the screen wallpaper after replacement is logical Cross what front camera was shot, but without display human body image, entirely environment in the screen wallpaper finally shown Image so that the replacement processing of screen wallpaper is more intelligent and flexible.
It is understood that when the position of mobile terminal changes, the image that front camera is shot also can be therewith Change, the background image being eventually displayed in display interface is also dynamic change.
To be best understood from the present embodiment, citing application scenarios are as follows:
Chatted as shown in figure 5, user is current in third-party chat application with good friend, now the wall of chat application Paper is fixed wallpaper.If mobile terminal receives the process instruction of screen wallpaper in the display interface of chat application, such as Detect user and click on default screen processing button, now retain the graph text information in current display interface, and start preposition Then camera repairs into human region in the image of shooting the environmental area of image with shooting image, to obtain background Image, the final screen wallpaper replaced using background image in current display interface so that the graph text information be shown in it is described On background image, as shown in Figure 6.
It should be appreciated that the embodiment of the present invention, be the equal of in the display interface of application, while retaining graph text information, Start camera shooting image, to replace the wallpaper in display interface so that the substitute mode of wallpaper is more intelligent and flexible.
The processing unit for the screen wallpaper that the present embodiment is proposed, receives the processing of screen wallpaper in current display interface During instruction, first retain the graph text information in current display interface, and start front camera with shooting image, then in shooting Human region is determined in image, and repair process is carried out to the human region, the human region is repaired into the figure The environmental area of picture, obtains background image, the final screen wallpaper replaced using background image in current display interface, so that institute Graph text information is stated to be shown on the background image.So that screen wallpaper is consistent with the ambient image of current shooting, due to environment Image is dynamic change, therefore screen wallpaper is also dynamic change, also, the facial image shot to front camera enters Row processing so that what screen wallpaper was presented is all environmental background, improves the flexibility that content in display interface is shown, in addition, The present invention is that the processing of screen wallpaper can be achieved only by the process instruction of screen wallpaper in display interface, without entering wallpaper In, the convenience of screen wallpaper processing is improved.
Further, the second embodiment of the processing unit of screen wallpaper of the present invention is proposed.
The difference of the first embodiment of the second embodiment of the processing unit of screen wallpaper and the processing unit of screen wallpaper It is, reference picture 7, the Second processing module 20 includes:
Unit 21 is wiped, for wiping the human region, so that the human region becomes white space;
Synthesis unit 22, in the borderline region of the white space, selection predeterminable area to be with composograph block;
Fills unit 23, carries out image repair filling, so that institute for the image block using synthesis to the white space State the environmental area that white space repairs into described image.
In the present embodiment, repair process is carried out to human region, the human region is repaired into described image The mode of environmental area, it is specific as follows:Rim detection first is carried out to the image of shooting, when feature and the environment of human body have larger difference In the different time, the overall profile of the human body can be obtained by a rim detection;Or when the feature of the human body has no with environment During too big difference, the clothes of such as human body are more similar with the color of environment, due to the pixel value in the face and environment of human body not Together, the facial contour can be first obtained, then the region being connected with facial contour is passed through into rim detection pair as region to be detected The edge in the region to be detected is detected, to obtain the human body contour outline of the human body, according to the human body contour outline of acquisition and people Face profile determines real-time body's exterior contour, then real-time body's exterior contour based on determination, determines human region, determines people After body region, erasing unit 21 calls default erasing instrument, the human region is wiped, so that the human region Become white space.
After white space is obtained, synthesis unit 22 is split according to preset ratio to image, obtains each sub-district Domain, it is then determined that each adjacent border subregion of white space, according to texture/color of each border subregion, is extracted Each border subregion of texture/color similarity highest, and according to texture/color of each border subregion, synthesize one Image block.Finally, fills unit 23 carries out image repair filling using the image block of synthesis to the white space, will synthesize Image block fill up in white space so that the white space repairs into the environmental area of described image.
In the present embodiment, after the human region wipe and obtaining white space, in the white space In borderline region, selection regional is schemed with composograph block, the final image block using synthesis to the white space As repairing filling, so that the white space repairs into the environmental area of described image.So that the background image subsequently shown is only Only it is the ambient image that front camera is shot, human body image will not be shown, the flexibility that screen wallpaper is shown is improved,
Further, the 3rd embodiment of the processing unit of screen wallpaper of the present invention is proposed.
The difference of the first embodiment of the 3rd embodiment of the processing unit of screen wallpaper and the processing unit of screen wallpaper Also reside in, described device also includes:
Detection module, the color for detecting the word in graph text information and the background image of the word corresponding region respectively Angle value;
3rd processing module, for when the chromatic value is less than default chromatic value, inverse to be carried out to the picture and text word Processing and/or Shadows Processing.
In the present embodiment, the screen wallpaper in current display interface is replaced using background image, so that the picture and text are believed After breath is shown on the background image, detection module can detect the chromatic value of background image and graph text information respectively, detection The concrete mode of chromatic value is as follows:
Word in graph text information and background image are respectively processed, to obtain the word and Background in graph text information As corresponding RGB (Red, Green, Blue) color model (also referred to as additive mixture model), in graph text information is obtained After the RGB color model of word and background image, then each pixel in the word and background image in graph text information is extracted respectively The chromatic value of point, the chromatic value is the value that tristimulus values are mixed to get, and tristimulus values include red pixel value, green pixel values And blue pixel value, it is to be understood that each pixel can only include one of which tristimulus values, can also be by wherein appointing Two tristimulus values of meaning, which are added, to be obtained, and can also be added and obtained by three tristimulus values, obtain the three primary colors of each pixel After value, the tristimulus values sum of each pixel is calculated respectively, you can obtain the chromatic value of each pixel, for example, pixel Tristimulus values include red pixel value, green pixel values and blue pixel value, then the calculating of the chromatic value of the pixel Formula is:F=r [R]+g [G]+b [B], therefore, by the above-mentioned means, calculating in the word and background image in graph text information The chromatic value of each pixel, finally, the chromatic value of each pixel in the word and background image in graph text information, i.e., It can determine that the chromatic value in the word and background image in graph text information.
It is determined that word in graph text information and after the chromatic value of background image, the 3rd processing module is by graph text information In the chromatic value of word and the chromatic value of background image of the word corresponding region be compared, when the chromatic value of comparison During less than default chromatic value, illustrate that the chromatic value of the word in graph text information and background image is more or less the same, now, be easily caused Word in graph text information does not see Chu, therefore, in order to avoid the generation of such case, and the word in the graph text information is carried out Inverse processing and/or Shadows Processing.
In the present embodiment, described inverse processing preferred pair two kinds of colors of black and white carry out inverse processing and/or Shadows Processing, tool Body, including following three situation:
1) when the chromatic value of the word in graph text information and the background image of word region is less than default chromatic value, Determine the position of the word and the color of word in graph text information, and the word inverse of position will be determined into opposite with determining color Color, for example, by white text inverse into black letters.
It is appreciated that because the color in background image potentially includes a variety of, therefore a part of word and this article occurs The chromatic value of the background image of word region is less than default chromatic value, another part word and the background of the word region The chromatic value of image is more than default chromatic value, therefore, and the graph text information that default chromatic value can be only less than to chromatic value is handled.
2) when the chromatic value of the word in graph text information and the background image of word region is less than default chromatic value, Determine the color of word in graph text information, and by the word inverse in graph text information into the color opposite with determining color, and it is right Word carries out Shadows Processing, to highlight literary glyph.
It is appreciated that because the color in background image potentially includes a variety of, therefore a part of word and this article occurs The chromatic value of the background image of word region is less than default chromatic value, another part word and the background of the word region The chromatic value of image is more than default chromatic value, therefore, can in graph text information to all word inverses after, all words are entered Row Shadows Processing, subsequently, even if having powerful connections image as the word after inverse, can also highlight literary glyph, so that Improve the accuracy of graph text information Chinese word processor and intelligent.
Further, the fourth embodiment of the processing unit of screen wallpaper of the present invention is proposed.
The difference of the 3rd embodiment of the fourth embodiment of the processing unit of screen wallpaper and the processing unit of screen wallpaper Also reside in, the processing unit of the screen wallpaper also includes:
Starting module, is recorded for when receiving the record command of background image, starting recording button;
Fourth processing module, for when the duration of recording reaches preset duration, stopping recording operation, and preserve recording Background image, so as to subsequently received screen wallpaper process instruction when, using recording background image replace display interface in Screen wallpaper.
In the present embodiment, the screen wallpaper in current display interface is replaced using background image, so that the picture and text After presentation of information is on the background image, because background image can be with the mobile change of camera, therefore this implementation can To be recorded to background image, specifically, starting module starts recording when receiving the record command of background image, first and pressed Button is recorded, in recording process, stop button can be shown in the default corner of display interface, in stop button region In when detecting the touch operation of user, the recording of background image can be stopped, and preserve the video of recording.
Further, in order to improve background image recording it is intelligent, when the duration of recording reaches preset duration, the 4th Processing module stops recording operation, and preserves the background image of recording, and the preset duration is set according to actual conditions, herein not Limit.Subsequently, if receive the process instruction of screen wallpaper, it can be replaced using the background image recorded in display interface Screen wallpaper, can also select restart camera shooting image.
In the present embodiment, subsequently can be directly using the background image conduct recorded by the recording to background image New screen wallpaper, improves the flexibility of screen wallpaper replacement.
Further, the 5th embodiment of the processing unit of screen wallpaper of the present invention is proposed.
5th embodiment of the processing unit of screen wallpaper of the present invention and the first of the processing unit of screen wallpaper of the present invention Difference to fourth embodiment is that reference picture 8, the first processing module 10 includes:
Call unit 11, if being the display interface of third-party application for current display interface, is receiving screen wallpaper Process instruction when, call default i.e. SDK SDK bags in the development interface of third-party application;
Processing unit 12, for based on the SDK bags called, retaining the graph text information in current display interface, and open Dynamic front camera is with shooting image.
In the present embodiment, when the process instruction of screen wallpaper is received in current display interface, if currently showing boundary Face is system interface, can now directly initiate the graph text information in multithreading reservation current display interface, and start preposition shooting Head is with shooting image.
If current display interface is the display interface of third-party application, then receiving the process instruction of screen wallpaper When, call unit 11 first the development interface of third-party application call default SDK (Software Development Kit, That is SDK) bag, then processing unit 12 retain again based on the i.e. SDK called and currently show boundary Graph text information in face, and start front camera with shooting image.
In the present embodiment, the processing procedure of screen wallpaper can be not only realized in a mobile system, can also be in third party In, SDK bags are called by the development interface of third-party application, to realize the processing scheme of screen wallpaper of the present invention so that Third-party application also compatible this screen wallpaper processing mode.
The present invention also provides a kind of processing method of screen wallpaper.
Reference picture 9, Fig. 9 is the schematic flow sheet of the processing method first embodiment of screen wallpaper of the present invention.
The present embodiment proposes a kind of processing method of screen wallpaper, applied to mobile terminal, the processing of the screen wallpaper Method includes:
When the process instruction of screen wallpaper is received in current display interface, retain the picture and text letter in current display interface Breath, and start front camera with shooting image;Human region is determined in the image of shooting, and the human region is carried out Repair process, the human region is repaired into the environmental area of described image, obtains background image;Using the Background As replacing the screen wallpaper in current display interface, so that the graph text information is shown on the background image.
The following is each step that screen wallpaper processing is done step-by-step in the present embodiment:
Step S10, when the process instruction of screen wallpaper is received in current display interface, retains in current display interface Graph text information, and start front camera with shooting image;
In the present embodiment, the triggering mode of the process instruction of the screen wallpaper includes:
1) when receiving touch operation in the programmable button region of current display interface, the processing of screen wallpaper is triggered Instruction, as shown in figure 4, wherein, the programmable button is chosen as screen wallpaper processing button;
2) when receiving touch operation in the programmable button region of current display interface, selection interface is ejected, in choosing Select detected in interface user click on screen wallpaper processing child control when, trigger screen wallpaper process instruction.
3) on the basis of screen wallpaper pattern is opened in setting application, if in the default voice control of current display interface When receiving touch operation in region, voice messaging is monitored, it is when listening to the voice messaging of user's input, user is defeated The voice messaging entered is compared with pre-stored voice information, and the optional pre-stored voice information is " wallpaper replacement ", when user is defeated When the voice messaging entered is with pre-stored voice information matches, it is believed that receive the process instruction of screen wallpaper.
What the triggering mode of the process instruction of the three kinds of screen wallpapers listed above enumerated was merely exemplary, this area skill Art personnel utilize the technological thought of the present invention, the process instruction of the other various screen wallpapers proposed according to its real needs Triggering mode is within the scope of the present invention, herein without exhaustive one by one.
In the present embodiment, when the process instruction of screen wallpaper is detected in current display interface, preferably start default Multithreading, for example start dual-thread, then according to the multithreading of startup, perform retain current display interface in picture and text letter Breath, and start the operation of front camera.The graph text information in current display interface, Ran Houtong are retained by a thread Cross another thread and start front camera with shooting image.
It should be noted that in the embodiment of the present invention, the graph text information in display interface is located at screen wallpaper Bu Tong to be shown Show in layer, graph text information is located at the upper strata of screen wallpaper.Therefore, when receiving the process instruction of screen wallpaper, first retain aobvious Show that the graph text information in interface is constant, subsequently replace screen wallpaper.Wherein, graph text information include picture, word or Character etc..
Retain graph text information in current display interface, and after starting front camera with shooting image, the movement Terminal can photograph image, it should be appreciated that due to the front camera that now mobile terminal is opened, therefore, shooting Human body image is included in image.
Step S20, determines human region in the image of shooting, and carries out repair process to the human region, will The human region repairs into the environmental area of described image, obtains background image;
In the present embodiment, after image is photographed, first human region is determined in the image of shooting, it will be understood that The pixel value of human region is different with the pixel value of environmental area, therefore, and it is identified to the pixel value in the image of shooting Afterwards, the pixel value based on identification determines human region, and then the human region is carried out in repair process, the present embodiment, The mode of repair process is carried out to the human region, can be repaired using the environmental area on human region border, specifically Repair mode is described below.Human region is carried out after repair process, regard the image after repair process as Background Picture.It is understood that now the human body image in image has been disposed off, whole image is all without human body image.
Step S30, replaces the screen wallpaper in current display interface, so that the graph text information is shown using background image On the background image.
In the present embodiment, after background image is obtained, replaced using the background image in current display interface Screen wallpaper, due to retaining before the graph text information in display interface, therefore when the panel wall in display interface Paper is substituted for after background image, you can included the graph text information on the background image so that current display interface In graph text information do not change, change is screen wallpaper, and, although the screen wallpaper after replacement is by preposition shooting What head was shot, but without display human body image, entirely ambient image in the screen wallpaper finally shown so that screen The replacement processing of curtain wallpaper is more intelligent and flexible.
It is understood that when the position of mobile terminal changes, the image that front camera is shot also can be therewith Change, the background image being eventually displayed in display interface is also dynamic change.
To be best understood from the present embodiment, citing application scenarios are as follows:
Chatted as shown in figure 5, user is current in third-party chat application with good friend, now the wall of chat application Paper is fixed wallpaper.If mobile terminal receives the process instruction of screen wallpaper in the display interface of chat application, such as Detect user and click on default screen processing button, now retain the graph text information in current display interface, and start preposition Then camera repairs into human region in the image of shooting the environmental area of image with shooting image, to obtain background Image, the final screen wallpaper replaced using background image in current display interface so that the graph text information be shown in it is described On background image, as shown in Figure 6.
It should be appreciated that the embodiment of the present invention, be the equal of in the display interface of application, while retaining graph text information, Start camera shooting image, to replace the wallpaper in display interface so that the substitute mode of wallpaper is more intelligent and flexible.
The processing method for the screen wallpaper that the present embodiment is proposed, receives the processing of screen wallpaper in current display interface During instruction, first retain the graph text information in current display interface, and start front camera with shooting image, then in shooting Human region is determined in image, and repair process is carried out to the human region, the human region is repaired into the figure The environmental area of picture, obtains background image, the final screen wallpaper replaced using background image in current display interface, so that institute Graph text information is stated to be shown on the background image.So that screen wallpaper is consistent with the ambient image of current shooting, due to environment Image is dynamic change, therefore screen wallpaper is also dynamic change, also, the facial image shot to front camera enters Row processing so that what screen wallpaper was presented is all environmental background, improves the flexibility that content in display interface is shown, in addition, The present invention is that the processing of screen wallpaper can be achieved only by the process instruction of screen wallpaper in display interface, without entering wallpaper In, the convenience of screen wallpaper processing is improved.
Further, the second embodiment of the processing method of screen wallpaper of the present invention is proposed.
The difference of the first embodiment of the second embodiment of the processing method of screen wallpaper and the processing method of screen wallpaper It is, reference picture 10, the step S20 includes:
Step S21, is wiped the human region, so that the human region becomes white space;
Step S22, in the borderline region of the white space, selection predeterminable area is with composograph block;
Step S23, carries out image repair filling, so that the clear area using the image block of synthesis to the white space Repair into the environmental area of described image in domain.
In the present embodiment, repair process is carried out to human region, the human region is repaired into described image The mode of environmental area, it is specific as follows:Rim detection first is carried out to the image of shooting, when feature and the environment of human body have larger difference In the different time, the overall profile of the human body can be obtained by a rim detection;Or when the feature of the human body has no with environment During too big difference, the clothes of such as human body are more similar with the color of environment, due to the pixel value in the face and environment of human body not Together, the facial contour can be first obtained, then the region being connected with facial contour is passed through into rim detection pair as region to be detected The edge in the region to be detected is detected, to obtain the human body contour outline of the human body, according to the human body contour outline of acquisition and people Face profile determines real-time body's exterior contour, then real-time body's exterior contour based on determination, determines human region, determines people After body region, default erasing instrument is called, the human region is wiped, so that the human region becomes clear area Domain.
After white space is obtained, image is split according to preset ratio, each sub-regions are obtained, it is then determined that Each adjacent border subregion of white space, according to texture/color of each border subregion, extracts texture/color phase Like each border subregion of degree highest, and according to texture/color of each border subregion, an image block is synthesized.Finally, Image repair filling is carried out to the white space using the image block of synthesis, the image block that will be synthesized fills up white space In, so that the white space repairs into the environmental area of described image.
In the present embodiment, after the human region wipe and obtaining white space, in the white space In borderline region, selection regional is schemed with composograph block, the final image block using synthesis to the white space As repairing filling, so that the white space repairs into the environmental area of described image.So that the background image subsequently shown is only Only it is the ambient image that front camera is shot, human body image will not be shown, the flexibility that screen wallpaper is shown is improved,
Further, the 3rd embodiment of the processing method of screen wallpaper of the present invention is proposed.
The difference of the first embodiment of the 3rd embodiment of the processing method of screen wallpaper and the processing method of screen wallpaper Also reside in, after the step S30, the processing method of the screen wallpaper also includes:
Step A, detects the chromatic value of the word and the background image of the word corresponding region in graph text information respectively;
Step B, when the chromatic value is less than default chromatic value, inverse processing and/or shaded side are carried out to the word Reason.
In the present embodiment, the screen wallpaper in current display interface is replaced using background image, so that the picture and text are believed After breath is shown on the background image, the mobile terminal can detect the chromatic value of background image and graph text information respectively, Detect that the concrete mode of chromatic value is as follows:
Word in graph text information and background image are respectively processed, to obtain the word and Background in graph text information As corresponding RGB (Red, Green, Blue) color model (also referred to as additive mixture model), in graph text information is obtained After the RGB color model of word and background image, then each pixel in the word and background image in graph text information is extracted respectively The chromatic value of point, the chromatic value is the value that tristimulus values are mixed to get, and tristimulus values include red pixel value, green pixel values And blue pixel value, it is to be understood that each pixel can only include one of which tristimulus values, can also be by wherein appointing Two tristimulus values of meaning, which are added, to be obtained, and can also be added and obtained by three tristimulus values, obtain the three primary colors of each pixel After value, the tristimulus values sum of each pixel is calculated respectively, you can obtain the chromatic value of each pixel, for example, pixel Tristimulus values include red pixel value, green pixel values and blue pixel value, then the calculating of the chromatic value of the pixel Formula is:F=r [R]+g [G]+b [B], therefore, by the above-mentioned means, calculating in the word and background image in graph text information The chromatic value of each pixel, finally, the chromatic value of each pixel in the word and background image in graph text information, i.e., It can determine that the chromatic value in the word and background image in graph text information.
It is determined that word in graph text information and after the chromatic value of background image, by the color of the word in graph text information The chromatic value of the background image of angle value and the word corresponding region is compared, when the chromatic value of comparison is less than default colourity During value, illustrate that the chromatic value of the word in graph text information and background image is more or less the same, now, be easily caused in graph text information Word does not see Chu, therefore, in order to avoid the generation of such case, the word in the graph text information carry out inverse processing and/ Or Shadows Processing.
In the present embodiment, described inverse processing preferred pair two kinds of colors of black and white carry out inverse processing and/or Shadows Processing, tool Body, including following three situation:
1) when the chromatic value of the word in graph text information and the background image of word region is less than default chromatic value, Determine the position of the word and the color of word in graph text information, and the word inverse of position will be determined into opposite with determining color Color, for example, by white text inverse into black letters.
It is appreciated that because the color in background image potentially includes a variety of, therefore a part of word and this article occurs The chromatic value of the background image of word region is less than default chromatic value, another part word and the background of the word region The chromatic value of image is more than default chromatic value, therefore, and the graph text information that default chromatic value can be only less than to chromatic value is handled.
2) when the chromatic value of the word in graph text information and the background image of word region is less than default chromatic value, Determine the color of word in graph text information, and by the word inverse in graph text information into the color opposite with determining color, and it is right Word carries out Shadows Processing, to highlight literary glyph.
It is appreciated that because the color in background image potentially includes a variety of, therefore a part of word and this article occurs The chromatic value of the background image of word region is less than default chromatic value, another part word and the background of the word region The chromatic value of image is more than default chromatic value, therefore, can in graph text information to all word inverses after, all words are entered Row Shadows Processing, subsequently, even if having powerful connections image as the word after inverse, can also highlight literary glyph, so that Improve the accuracy of graph text information Chinese word processor and intelligent.
Further, the fourth embodiment of the processing method of screen wallpaper of the present invention is proposed.
The difference of the 3rd embodiment of the fourth embodiment of the processing method of screen wallpaper and the processing method of screen wallpaper Also reside in, after the step S30, the processing method of the screen wallpaper also includes:
Step C, when receiving the record command of background image, starts recording button and is recorded;
Step D, when the duration of recording reaches preset duration, stops recording operation, and preserves the background image of recording, with Just during the process instruction of subsequently received screen wallpaper, the screen wallpaper in display interface is replaced using the background image of recording.
In the present embodiment, the screen wallpaper in current display interface is replaced using background image, so that the picture and text After presentation of information is on the background image, because background image can be with the mobile change of camera, therefore this implementation can To be recorded to background image, specifically, when receiving the record command of background image, first start recording button and recorded System, in recording process, can show stop button in the default corner of display interface, be detected in stop button region During the touch operation of user, the recording of background image can be stopped, and preserve the video of recording.
Further, in order to improve the intelligent of background image recording, when the duration of recording reaches preset duration, stop Recording operation, and the background image of recording is preserved, the preset duration sets according to actual conditions, not limited herein.Subsequently, If receive the process instruction of screen wallpaper, the screen wallpaper in display interface can be replaced using the background image recorded, It can also select to restart camera shooting image.
In the present embodiment, subsequently can be directly using the background image conduct recorded by the recording to background image New screen wallpaper, improves the flexibility of screen wallpaper replacement.
Further, the 5th embodiment of the processing method of screen wallpaper of the present invention is proposed.
First to fourth embodiment of the 5th embodiment of the processing method of screen wallpaper and the processing method of screen wallpaper Difference be that reference picture 11, the step S10 includes:
Step S11, if current display interface is the display interface of third-party application, refers in the processing for receiving screen wallpaper When making, default i.e. SDK SDK bags are called in the development interface of third-party application;
Step S12, based on the i.e. SDK called, retains the graph text information in current display interface, and open Dynamic front camera is with shooting image.
In the present embodiment, when the process instruction of screen wallpaper is received in current display interface, if currently showing boundary Face is system interface, can now directly initiate the graph text information in multithreading reservation current display interface, and start preposition shooting Head is with shooting image.
If current display interface is the display interface of third-party application, then receiving the process instruction of screen wallpaper When, first call default SDK (Software Development Kit, i.e. software development in the development interface of third-party application Kit) bag, the graph text information in current display interface is then retained, and open based on the i.e. SDK called again Dynamic front camera is with shooting image.
In the present embodiment, the processing procedure of screen wallpaper can be not only realized in a mobile system, can also be in third party In, SDK bags are called by the development interface of third-party application, to realize the processing scheme of screen wallpaper of the present invention so that Third-party application also compatible this screen wallpaper processing mode.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or system including a series of key elements not only include those key elements, and And also including the other key elements being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the system of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of processing unit of screen wallpaper, applied to mobile terminal, it is characterised in that the processing unit of the screen wallpaper Including:
When first processing module, process instruction for receiving screen wallpaper in current display interface, retain current display Graph text information in interface, and start front camera with shooting image;
Second processing module, repair process is carried out for determining human region in the image of shooting, and to the human region, So that the human region to be repaired into the environmental area of described image, background image is obtained;
Replacement module, for replacing the screen wallpaper in current display interface using the background image, so that the picture and text are believed Breath is shown on the background image.
2. the processing unit of screen wallpaper as claimed in claim 1, it is characterised in that the Second processing module includes:
Unit is wiped, for wiping the human region, so that the human region becomes white space;
Synthesis unit, in the borderline region of the white space, selection predeterminable area to be with composograph block;
Fills unit, carries out image repair filling, so that the blank for the image block using synthesis to the white space Repair into the environmental area of described image in region.
3. the processing unit of screen wallpaper as claimed in claim 1, it is characterised in that described device also includes:
Detection module, the colourity for detecting the word in graph text information and the background image of the word corresponding region respectively Value;
3rd processing module, for when the chromatic value is less than default chromatic value, inverse processing to be carried out to the picture and text word And/or Shadows Processing.
4. the processing unit of screen wallpaper as claimed in claim 1, it is characterised in that described device also includes:
Starting module, is recorded for when receiving the record command of background image, starting recording button;
Fourth processing module, for when the duration of recording reaches preset duration, stopping recording operation, and preserve the background of recording Image, so as to subsequently received screen wallpaper process instruction when, using recording background image replace display interface in screen Curtain wallpaper.
5. the processing unit of the screen wallpaper as described in claim any one of 1-4, it is characterised in that the first processing module Including:
Call unit, if being the display interface of third-party application for current display interface, is receiving the processing of screen wallpaper During instruction, default i.e. SDK SDK bags are called in the development interface of third-party application;
Processing unit, for based on the SDK bags called, retaining the graph text information in current display interface, and start preposition Camera is with shooting image.
6. a kind of processing method of screen wallpaper, applied to mobile terminal, it is characterised in that the processing method of the screen wallpaper Including:
When the process instruction of screen wallpaper is received in current display interface, retain the graph text information in current display interface, And start front camera with shooting image;
Human region is determined in the image of shooting, and repair process is carried out to the human region, by the human region The environmental area of described image is repaired into, background image is obtained;
Screen wallpaper in current display interface is replaced using the background image, so that the graph text information is shown in the back of the body On scape image.
7. the processing method of screen wallpaper as claimed in claim 6, it is characterised in that described to be repaiied to the human region Multiple processing, the step of human region is repaired into the environmental area of described image includes:
The human region is wiped, so that the human region becomes white space;
In the borderline region of the white space, selection predeterminable area is with composograph block;
Using synthesis image block to the white space carry out image repair filling so that the white space repair into it is described The environmental area of image.
8. the processing method of screen wallpaper as claimed in claim 6, it is characterised in that described to be replaced using the background image Screen wallpaper in current display interface, so that the graph text information is shown in after the step on the background image, it is described Method also includes:
Word and the chromatic value of the background image of the word corresponding region respectively in detection graph text information;
When the chromatic value is less than default chromatic value, inverse processing and/or Shadows Processing are carried out to the word.
9. the processing method of screen wallpaper as claimed in claim 6, it is characterised in that described to be replaced using the background image Screen wallpaper in current display interface, so that the graph text information is shown in after the step on the background image, it is described Method also includes:
When receiving the record command of background image, start recording button and recorded;
When the duration of recording reaches preset duration, stop recording operation, and preserve the background image of recording, so as to receipt of subsequent To screen wallpaper process instruction when, using recording background image replace display interface in screen wallpaper.
10. the processing method of the screen wallpaper as described in claim any one of 6-9, it is characterised in that described to be shown currently When the process instruction of screen wallpaper is received in interface, retain the graph text information in current display interface, and start preposition shooting The step of head is with shooting image includes:
If current display interface is the display interface of third-party application, when receiving the process instruction of screen wallpaper, the 3rd Fang Yingyong development interface calls default i.e. SDK SDK bags;
Based on the SDK bags called, retain the graph text information in current display interface, and start front camera with shooting figure Picture.
CN201710212687.9A 2017-03-31 2017-03-31 The processing unit and method of screen wallpaper Withdrawn CN107071169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710212687.9A CN107071169A (en) 2017-03-31 2017-03-31 The processing unit and method of screen wallpaper

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710212687.9A CN107071169A (en) 2017-03-31 2017-03-31 The processing unit and method of screen wallpaper

Publications (1)

Publication Number Publication Date
CN107071169A true CN107071169A (en) 2017-08-18

Family

ID=59602819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710212687.9A Withdrawn CN107071169A (en) 2017-03-31 2017-03-31 The processing unit and method of screen wallpaper

Country Status (1)

Country Link
CN (1) CN107071169A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592413A (en) * 2017-08-30 2018-01-16 努比亚技术有限公司 A kind of mobile terminal desktop display methods, mobile terminal and computer-readable recording medium
CN110213476A (en) * 2018-02-28 2019-09-06 腾讯科技(深圳)有限公司 Image processing method and device
CN111626310A (en) * 2020-05-27 2020-09-04 百度在线网络技术(北京)有限公司 Image comparison method, device, equipment and storage medium
CN115525383A (en) * 2018-04-13 2022-12-27 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium
WO2024060360A1 (en) * 2022-09-22 2024-03-28 深圳Tcl新技术有限公司 Image fusion method and apparatus, and electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546933A (en) * 2011-12-15 2012-07-04 深圳桑菲消费通信有限公司 Method for setting cell phone wallpaper rapidly
CN103905716A (en) * 2012-12-27 2014-07-02 三星电子(中国)研发中心 Photographic device and method for dynamically processing viewfinder image during picture taking
CN103927165A (en) * 2014-03-20 2014-07-16 小米科技有限责任公司 Wallpaper picture processing method and device
CN104899080A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Method and apparatus for switching real-time image in instant messaging
US9350924B2 (en) * 2014-08-25 2016-05-24 John G. Posa Portable electronic devices with integrated image/video compositing
CN105827834A (en) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 Mobile device application method and device
CN106126214A (en) * 2016-06-17 2016-11-16 青岛海信移动通信技术股份有限公司 The determination method and device of text color on a kind of interface

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546933A (en) * 2011-12-15 2012-07-04 深圳桑菲消费通信有限公司 Method for setting cell phone wallpaper rapidly
CN103905716A (en) * 2012-12-27 2014-07-02 三星电子(中国)研发中心 Photographic device and method for dynamically processing viewfinder image during picture taking
CN104899080A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Method and apparatus for switching real-time image in instant messaging
CN103927165A (en) * 2014-03-20 2014-07-16 小米科技有限责任公司 Wallpaper picture processing method and device
US9350924B2 (en) * 2014-08-25 2016-05-24 John G. Posa Portable electronic devices with integrated image/video compositing
CN105827834A (en) * 2016-03-25 2016-08-03 乐视控股(北京)有限公司 Mobile device application method and device
CN106126214A (en) * 2016-06-17 2016-11-16 青岛海信移动通信技术股份有限公司 The determination method and device of text color on a kind of interface

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592413A (en) * 2017-08-30 2018-01-16 努比亚技术有限公司 A kind of mobile terminal desktop display methods, mobile terminal and computer-readable recording medium
CN110213476A (en) * 2018-02-28 2019-09-06 腾讯科技(深圳)有限公司 Image processing method and device
CN115525383A (en) * 2018-04-13 2022-12-27 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium
CN115525383B (en) * 2018-04-13 2023-08-15 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium
CN111626310A (en) * 2020-05-27 2020-09-04 百度在线网络技术(北京)有限公司 Image comparison method, device, equipment and storage medium
CN111626310B (en) * 2020-05-27 2023-08-29 百度在线网络技术(北京)有限公司 Image comparison method, device, equipment and storage medium
WO2024060360A1 (en) * 2022-09-22 2024-03-28 深圳Tcl新技术有限公司 Image fusion method and apparatus, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN105100609B (en) The adjusting method of mobile terminal and acquisition parameters
CN107071169A (en) The processing unit and method of screen wallpaper
CN104660903B (en) Image pickup method and filming apparatus
US20170032725A1 (en) Method, device, and computer-readable medium for setting color gamut mode
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
CN104902185B (en) Image pickup method and device
EP3173923A1 (en) Method and device for image display
CN104463775A (en) Device and method for achieving depth-of-field effect of image
CN106710539B (en) Liquid crystal display method and device
CN104811554B (en) The switching method and terminal of camera mode
CN105959554B (en) Video capture device and method
CN105335458B (en) Preview picture method and device
CN105872361A (en) Shooting guidance device, system and method
CN105225647A (en) Luminance regulating method and device
CN105357444B (en) focusing method and device
CN105611264B (en) A kind of auto white balance method and device
CN105472246A (en) Photographing device and method
CN112817675B (en) Interface display processing method, device, electronic device and storage medium
CN106534667A (en) Distributed cooperative rendering method and terminal
WO2017088609A1 (en) Image denoising apparatus and method
CN106385579A (en) Camera detection device, method and multi-camera terminal
CN105407275B (en) Photo synthesizer and method
US20160212318A1 (en) Information processing device, information processing method, and program
CN104967772B (en) Photographic method and device
CN107071277A (en) A kind of light paints filming apparatus, method and mobile terminal

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170818