CN107450796B - A kind of image processing method, mobile terminal and computer readable storage medium - Google Patents
A kind of image processing method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN107450796B CN107450796B CN201710521393.4A CN201710521393A CN107450796B CN 107450796 B CN107450796 B CN 107450796B CN 201710521393 A CN201710521393 A CN 201710521393A CN 107450796 B CN107450796 B CN 107450796B
- Authority
- CN
- China
- Prior art keywords
- time point
- application program
- interactive class
- picture
- pictorial element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A kind of image processing method, mobile terminal and computer readable storage medium, the image processing method include: that mobile terminal records detect the first time point of default control instruction and obtain picture to be processed according to default control instruction;When judging to meet preset condition, the interactive class application program and the second time point for using interactive class application program that mobile terminal uses in the preset duration before first time point are obtained;The classification of pictorial element is carried out to the picture to be processed of acquisition according to the number of the interactive class application program of acquisition and default control instruction;According to the icon of display interactive class application program corresponding in the pictorial element of each second time point after sorting;When detecting the operation of the control to the icon of one or more interactive class application programs, obtains control operation information and carry out the sharing of pictorial element according to control operation information.The embodiment of the present invention realizes the sharing for the pictorial element for being included to picture, and the user experience is improved.
Description
Technical field
The present embodiments relate to but be not limited to intelligent terminal technology, espespecially a kind of image processing method, mobile terminal and
Computer readable storage medium.
Background technique
With the development of science and technology, more and more users are using interactive class application program (for example, wechat application program, qq
Application program etc.) carry out data sharing, for example, user can will shooting picture either screenshot picture by shortcut key by handing over
Mutual class application program is shared with other users.But it up to the present also cannot achieve to certain parts of images element in picture
Sharing method, cause user experience bad.
Summary of the invention
It is the general introduction to the theme being described in detail herein below.This general introduction is not the protection model in order to limit claim
It encloses.
The embodiment of the invention provides a kind of image processing method, mobile terminal and computer readable storage mediums, can
It realizes the sharing for the pictorial element for being included to picture, promotes user experience.
In order to reach the application purpose, the embodiment of the invention provides a kind of image processing methods, comprising:
When detect default control instruction when, mobile terminal records detect default control instruction first time point and
Picture to be processed is obtained according to default control instruction;
When judging that state of the mobile terminal in the preset duration before first time point meets preset condition, obtain
One or more interactive class application programs and make that mobile terminal uses in the preset duration before first time point
With the second time point of each interactive class application program;
The picture to be processed of acquisition is carried out according to the number of the interactive class application program of acquisition and default control instruction
The classification of pictorial element;
According to the icon of display interactive class application program corresponding in the pictorial element of each second time point after sorting;
When detecting the operation of the control to the icon of one or more interactive class application programs, control operation is obtained
Information and the sharing that pictorial element is carried out according to control operation information.
Optionally, the default control instruction includes: photographing instruction or screenshotss instruction;
It is described that picture packet to be processed is obtained according to default control instruction when default control instruction is photographing instruction
It includes:
Obtain the first camera data of the first camera;
Obtain the second camera data of second camera;
First camera data and second camera data are synthesized based on preset algorithm, to obtain comprising every
The picture to be processed of the depth of field value of a pixel.
Optionally, when default control instruction is the photographing instruction, the interactive class application journey according to acquisition
The classification that number and the default control instruction of sequence carry out pictorial element to the picture to be processed of acquisition includes:
According to the depth of field value of the number of the interactive class application program of the acquisition and each pixel to the figure to be processed
Piece carries out the piecemeal of pictorial element and determines the first depth of field value of the pictorial element after each piecemeal;
Obtain the second depth of field value of pictorial element corresponding to the focusing of the picture to be processed and described image element;
Calculate the absolute value of difference between each first depth of field value and second depth of field value;
According to pictorial element corresponding to focusing of the size order of calculated absolute value to the picture to be processed and
Pictorial element after the piecemeal is classified.
Optionally, when default control instruction is screenshotss instruction, the interactive class application journey according to acquisition
The classification that number and the default control instruction of sequence carry out pictorial element to the picture to be processed of acquisition includes:
The piecemeal of pictorial element and the interaction of the setting acquisition are carried out to the picture to be processed according to preset strategy
The first preset threshold range of number of class application program;
The first colouring information and pictorial element after each piecemeal for obtaining the center of the picture to be processed
Second colouring information;
Calculate the absolute value of difference between each second colouring information and first colouring information;
Determine the first preset threshold range locating for calculated each absolute value;
According to the first preset threshold range locating for the calculated each absolute value determined to the image primitive after piecemeal
Element is classified.
Optionally, the corresponding display interactive class application in the basis each second time point pictorial element after sorting
Before the icon of program, this method further include:
When finding using the second time point of same social category application program greater than one, when storage is with described first
Between put time interval the smallest the second time point using the social category application program, and delete with the first time point
Time interval the smallest the second time point using the social category application program except use described in social category application journey
Second time point of sequence.
Optionally, corresponding display interactive class application journey in the pictorial element of the basis each second time point after sorting
The icon of sequence includes:
Calculate the time interval between each second time point and the first time point;
According to the ascending sequence and the corresponding relationship of the pictorial element after different classifications of calculated time interval
The corresponding icon for showing the interactive class application program.
Optionally, the control operation information includes: one or more than one interactive class application program the figure of dragging
Target motion track information, alternatively, clicking the location information of one or more than one interactive class application program icon;
It is described to include: according to the sharing for controlling operation information progress pictorial element
Included by the motion track information for dragging one or more than one interactive class application program icon
One or more pictorial elements share into corresponding interactive class application program;Alternatively,
Included by the location information for clicking one or more than one interactive class application program icon one
A pictorial element is shared into corresponding interactive class application program.
Optionally, the mobile terminal records detect the first time point of default control instruction and according to default controls
After instruction obtains picture to be processed, in one for obtaining mobile terminal and being used in the preset duration before first time point
Before second time point of a or more than one interactive class application program and each interactive class application program of use, this method is also
Include:
Judge whether state of the mobile terminal in the preset duration before the first time point meets institute
State preset condition.
Wherein, state of the judgement mobile terminal in the preset duration before the first time point is
It is no to meet the preset condition and include:
Judge whether the mobile terminal uses the interaction in the preset duration before the first time point
Class application program;
When judging the mobile terminal in the preset duration before the first time point using the interaction
When class application program, judge that state of the mobile terminal in the preset duration before first time point meets preset condition;
When judging that the friendship is not used in the preset duration before the first time point in the mobile terminal
When mutual class application program, judge that state of the mobile terminal in the preset duration before first time point is unsatisfactory for default item
Part.
The embodiment of the invention also provides a kind of mobile terminals, comprising: memory, processor and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing the picture processing program stored in memory, to realize at picture described in any of the above embodiments
The step of reason method.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium
One or more picture processing programs are contained, one or more of picture processing programs can be executed by one or more processors
When, the step of to realize image processing method described in any of the above embodiments.
Compared with the relevant technologies, technical scheme includes: the mobile terminal records when detecting default control instruction
It detects the first time point of default control instruction and picture to be processed is obtained according to default control instruction;When judging to move
When state of the terminal in the preset duration before first time point meets preset condition, mobile terminal is obtained in first time point
One or more interactive class application programs for using in preset duration before and use each interactive class application program
The second time point;The picture to be processed to acquisition is instructed according to the number of the interactive class application program of acquisition and default control
Carry out the classification of pictorial element;According to display interactive class application journey corresponding in the pictorial element of each second time point after sorting
The icon of sequence;When detecting the operation of the control to the icon of one or more interactive class application programs, control behaviour is obtained
Make information and carries out the sharing of pictorial element according to control operation information.The embodiment of the present invention realizes the figure for being included to picture
The sharing of pixel element, the user experience is improved.
After reading and understanding attached drawing and detailed description, it can be appreciated that other aspects.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is the flow chart of image processing method of the embodiment of the present invention;
Fig. 4 is the schematic diagram of human-computer interaction interface of the embodiment of the present invention;
Fig. 5 (a) is the exemplary diagram of clicking operation of the embodiment of the present invention;
Fig. 5 (b) is the exemplary diagram of drag operation of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is the flow chart of image processing method of the embodiment of the present invention, as shown in Figure 3, comprising:
Step 301: when detecting default control instruction, when mobile terminal records detect the first of default control instruction
Between put and picture to be processed obtained according to default control instruction.
Wherein, the instruction of default control of the embodiment of the present invention includes: photographing instruction or screenshotss instruction.
Wherein, when default control instruction is photographing instruction, the embodiment of the present invention is obtained according to default control instruction wait locate
Managing picture includes:
Obtain the first camera data of the first camera;
Obtain the second camera data of second camera;
The first camera data and the second camera data are synthesized based on preset algorithm, to obtain comprising each pixel
The picture to be processed of depth of field value.
It should be noted that how using binocular camera (the first camera and second camera) camera data (the
One camera data and the second camera data) picture of the synthesis comprising depth of field value, belong to well-known to those skilled in the art usual
Technological means, details are not described herein again, is not intended to limit the application.
Optionally, before present invention method further include: add and be used in the system setup menu of mobile terminal
Open or close the configuration item of pictorial element sharing function;
When detecting that user carries out opening operation to the configuration item for opening or closing pictorial element sharing function, open
Motion video element sharing function;
Whether detect that default control instructs.
Optionally, present invention method further include: divide when detecting user being used to open or close pictorial element
When enjoying the configuration item progress shutoff operation of function, pictorial element sharing function is closed.
Step 302: presetting item when judging that state of the mobile terminal in the preset duration before first time point meets
When part, one or more interactive class application journeys that mobile terminal uses in the preset duration before first time point are obtained
Sequence and the second time point for using each interactive class application program.
Wherein, interactive class of embodiment of the present invention application program is defined as: data network and other mobile terminals can be passed through
The application program (APP) carried out data transmission, such as wechat application program, qq application program.
Optionally, the first time point of default control instruction is detected in mobile terminal records and referred to according to default control
It enables after obtaining picture to be processed, one or one used in the preset duration before first time point in acquisition mobile terminal
Before second time point of a above interactive class application program and each interactive class application program of use, embodiment of the present invention side
Method further include:
Judge whether state of the mobile terminal in the preset duration before first time point meets preset condition.
Wherein, the embodiment of the present invention judges whether state of the mobile terminal in the preset duration before first time point be full
Sufficient preset condition includes:
Judge whether mobile terminal uses interactive class application program in the preset duration before first time point;
When judging mobile terminal in the preset duration before first time point using interactive class application program, judgement
State of the mobile terminal in the preset duration before first time point meets preset condition out;
When judging that interactive class application program is not used in the preset duration before first time point in mobile terminal, sentence
Disconnected state of the mobile terminal in the preset duration before first time point out is unsatisfactory for preset condition.
It should be noted that on how to judge whether mobile terminal is this field skill using a certain interactive class application program
Conventional techniques known to art personnel, such as mobile terminal can decide whether to receive for the social category applications trigger
Interactive instruction, for example, wechat application in whether sent out information, or whether rest on wechat application interface in, herein
It no longer repeats one by one, is not intended to limit the application.
Step 303: according to the number of the interactive class application program of acquisition and default control instruction to the to be processed of acquisition
The classification of picture progress pictorial element.
Wherein, when default control instruction is photographing instruction, the embodiment of the present invention is according to the interactive class application program of acquisition
Number and default control instruction pictorial element is carried out to the picture to be processed of acquisition classification include:
Figure is carried out to picture to be processed according to the depth of field value of the number of the interactive class application program of acquisition and each pixel
The piecemeal of pixel element and the first depth of field value for determining the pictorial element after each piecemeal;
Obtain pictorial element corresponding to the focusing of picture to be processed and the second depth of field value of the pictorial element;
Calculate the absolute value of difference between each first depth of field value and the second depth of field value;
According to pictorial element and piecemeal corresponding to focusing of the size order of calculated absolute value to picture to be processed
Pictorial element afterwards is classified.
Wherein, the embodiment of the present invention is according to the number of the interactive class application program of acquisition and the depth of field value pair of each pixel
The piecemeal that picture to be processed carries out pictorial element includes:
The second preset threshold range of number of the interactive class application program obtained is set;
Calculate separately the absolute value of difference between the depth of field value and preset threshold of each pixel;
The corresponding multiple pixels of the absolute value belonged in same second preset threshold range are divided into same pictorial element.
It should be noted that the second preset threshold range of number for the interactive class application program that the embodiment of the present invention obtains
Be it is continuous, continuous second preset threshold range refer to the upper limit of each second preset threshold range be less than it is adjacent thereto and
The lower limit of the second big preset threshold range than its range, and the lower limit of each second preset threshold range is greater than adjacent thereto
And the lower limit of second preset threshold range smaller than its range, for example, [0,3), [3,4), [4,6) and [6,7) it is exactly continuous
Numberical range, alternatively, [0,2), [2,4), [4,6) and [6,8) it is continuous numberical range, or [0,1.2), [1.2,2.2)
[2.2,3.2) it is continuous numberical range.
For example, the corresponding pictorial element of focusing can be divided into the first kind, by the absolute value of first small (minimum)
Pictorial element after corresponding each piecemeal is divided into the second class, by the image primitive after the second small corresponding each piecemeal of absolute value
Element is divided into third class, and so on.
Wherein, when default control instruction is screenshotss instruction, the embodiment of the present invention is according to the interactive class application program of acquisition
Number and default control instruction pictorial element is carried out to the picture to be processed of acquisition classification include:
The piecemeal of pictorial element and the interactive class application journey of setting acquisition are carried out to picture to be processed according to preset strategy
The first preset threshold range of number of sequence;
Obtain the center of picture to be processed the first colouring information and the pictorial element after each piecemeal second
Colouring information;
Calculate the absolute value of difference between each second colouring information and the first colouring information;
Determine the first preset threshold range locating for calculated each absolute value;
According to the first preset threshold range locating for the calculated each absolute value determined to the image primitive after piecemeal
Element is classified.
Wherein, it is right according to their needs by user can be to provide a human-computer interaction interface for preset strategy of the embodiment of the present invention
Picture to be processed, which carries out piecemeal, (such as can carry out piecemeal by dragging frame, the position of dragging dragging frame and adjustment drag frame
Size can select the size of piecemeal), as shown in Figure 4;Piecemeal can also be carried out to picture to be processed according to colouring information (to be divided into
Predetermined number), it is usual known to the computing staff of this field on how to be belonged to according to colouring information to picture progress piecemeal
Technological means, details are not described herein again, is not intended to limit the application.
It should be noted that the first preset threshold range of number for the interactive class application program that the embodiment of the present invention obtains
Be it is continuous, continuous first preset threshold range refer to the upper limit of each first preset threshold range be less than it is adjacent thereto and
The lower limit of the first big preset threshold range than its range, and the lower limit of each first preset threshold range is greater than adjacent thereto
And the lower limit of first preset threshold range smaller than its range.
Step 304: according to display interactive class application program corresponding in pictorial element after sorting of each second time point
Icon.
Optionally, after step 302, before step 304, present invention method further include:
When finding using the second time point of same social category application program greater than one, storage and first time point
Time interval the smallest the second time point using social category application program, and delete with the time interval of first time point most
The second time point using social category application program except small the second time point using social category application program.
Optionally, when not finding using the second time point of same social category application program greater than one, the present invention
Embodiment method further include: be transferred to step 304.
Wherein, step 304 of the embodiment of the present invention includes:
Calculate the time interval between each second time point and first time point;
According to the ascending sequence and the corresponding relationship of the pictorial element after different classifications of calculated time interval
The icon of corresponding display interactive class application program.
If for example, the pictorial element after picture piecemeal to be processed is divided into two classes (the respectively first kind and
Two classes), and the social category application obtained in the preset duration before first time point is wechat application program and qq application
Program, and be less than using the time interval of the second time point of wechat application program and first time point and use qq application program
The time interval at the second time point and first time point, then can be in the corresponding piecemeal picture of pictorial element for belonging to the first kind
The icon of middle display wechat application program, shows qq application program in the corresponding piecemeal picture of pictorial element for belonging to the second class
Icon;Alternatively, the icon of wechat application program can be shown in the corresponding piecemeal picture of pictorial element for belonging to the second class,
The icon of qq application program is shown in the corresponding piecemeal picture of pictorial element for belonging to the first kind.
Optionally, after the step 304, present invention method further include:
Application journey at screen pixels number a and the pictorial element shared by pictorial element after obtaining each piecemeal
Screen pixels number b shared by the icon of sequence;
Screen shared by screen pixels number shared by the icon of application program at the pictorial element and the pictorial element
When the ratio of curtain number of pixels is greater than default ratio, screen pixels shared by the icon of the application program at the pictorial element are reduced
Number is so that the icon of the application program at the pictorial element icon corresponding figure appropriate being shown in the application program
At pixel element.
It should be noted that screen pixels number shared by icon on how to the application program at downscaled images element
And narrow down to that how many number of pixels belong to conventional techniques well-known to those skilled in the art, details are not described herein again, and
It is not limited to the application.
Step 305: when detecting the operation of the control to the icon of one or more interactive class application programs, obtaining
It controls operation information and carries out the sharing of pictorial element according to control operation information.
Wherein, control of embodiment of the present invention operation information includes: to drag one or more interactive class application programs
The motion track information of icon, alternatively, clicking the location information of the icon of one or more interactive class application programs.
Wherein, the embodiment of the present invention includes: according to the sharing that control operation information carries out pictorial element
By the motion track information for dragging the icon of one or more interactive class application programs included one or
More than one pictorial element is shared into corresponding interactive class application program;Alternatively,
It will click on the image primitive that the location information of the icon of one or more interactive class application programs is included
Element is shared into corresponding interactive class application program.
For example, if the icon that user drags wechat application program has drawn a circle on picture, this circle
The pictorial element for being formed and (being included) is shared into wechat application program;If user clicks some wechat application program
Icon when, the pictorial element of the icon position is shared into wechat application program.
Wherein, shown in the schematic diagram of clicking operation such as Fig. 5 (a), wherein be the thumb point of the right hand of user in Fig. 5 (a)
The icon of a certain interactive class application program is hit, and the icon is circle, with other fingers of the right hand or other finger points of left hand
Hit the icon (and/or other shapes of icon (for example, rectangular, triangle or other polygons)) of a certain interactive class application program
Schematic diagram repeat no more.
Wherein, shown in the schematic diagram of drag operation such as Fig. 5 (b), wherein be the index finger dragging of the right hand of user in Fig. 5 (b)
The icon of a certain interactive class application program, and the icon is circle, what dotted line indicated is the figure for dragging the interactive class application program
Target motion profile, with other fingers of other fingers of the right hand or left hand drag a certain interactive class application program icon (and/or
Other shapes of icon (for example, rectangular, triangle or other polygons)) schematic diagram repeat no more.
In the application embodiment, pass through number and the default control instruction pair according to the interactive class application program of acquisition
The picture to be processed obtained carries out the classification of pictorial element, according to corresponding in pictorial element after sorting of each second time point
Show the icon of interactive class application program, and when the control for detecting the icon to one or more interactive class application programs
When system operation, obtains control operation information and carry out the sharing of pictorial element according to control operation information, to realize to figure
The sharing for the pictorial element that piece is included, the user experience is improved.
The embodiment of the invention also provides a kind of mobile terminals, comprising: memory, processor and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing the picture processing program stored in memory, to perform the steps of
When detecting default control instruction, record detects the first time point of default control instruction and according to default
Control instruction obtains picture to be processed;
When judging that it is default that state of the mobile terminal belonging to itself in the preset duration before first time point meets
When condition, one or more that the mobile terminal belonging to itself uses in the preset duration before first time point are obtained
Interactive class application program and the second time point for using each interactive class application program;
The picture to be processed of acquisition is carried out according to the number of the interactive class application program of acquisition and default control instruction
The classification of pictorial element;
According to the icon of display interactive class application program corresponding in the pictorial element of each second time point after sorting;
When detecting the operation of the control to the icon of one or more interactive class application programs, control operation is obtained
Information and the sharing that pictorial element is carried out according to control operation information.
Wherein, the instruction of default control of the embodiment of the present invention includes: photographing instruction or screenshotss instruction.
Wherein, when default control instruction is photographing instruction, mobile terminal of the embodiment of the present invention further includes the first camera
And second camera;Wherein,
First camera is configured to the first camera data of shooting;
Second camera is configured to the second camera data of shooting;At this point,
Include: for obtaining picture to be processed according to default control instruction in processor of the embodiment of the present invention
Obtain the first camera data of the first camera;
Obtain the second camera data of second camera;
The first camera data and the second camera data are synthesized based on preset algorithm, to obtain comprising each pixel
The picture to be processed of depth of field value.
Wherein, interactive class of embodiment of the present invention application program is defined as: data network and other mobile terminals can be passed through
The application program (APP) carried out data transmission, such as wechat application program, qq application program.
Optionally, before the first time point that mobile terminal records detect default control instruction, the embodiment of the present invention
Processor is also used to execute picture processing program, is used with performing the steps of to add in the system setup menu of mobile terminal
In the configuration item for opening or closing pictorial element sharing function;
When detecting that user carries out opening operation to the configuration item for opening or closing pictorial element sharing function, open
Motion video element sharing function;
Whether detect that default control instructs.
Optionally, processor of the embodiment of the present invention is also used to execute picture processing program, to perform the steps of when detection
When carrying out shutoff operation to the configuration item for opening or closing pictorial element sharing function to user, closes pictorial element and share
Function.
Optionally, record detect default control instruction first time point and according to default control instruct obtain to
After handling picture, obtain used in the preset duration before first time point one of mobile terminal belonging to itself or
Before second time point of more than one interactive class application program and each interactive class application program of use, the embodiment of the present invention
Processor is also used to execute picture processing program, to perform the steps of
It is default to judge whether state of the mobile terminal in the preset duration before first time point belonging to itself meets
Condition.
Wherein, it is used to judge the mobile terminal belonging to itself before first time point in processor of the embodiment of the present invention
Whether the state in preset duration meets preset condition
Judge whether the mobile terminal belonging to itself uses interactive class application in the preset duration before first time point
Program;
When judging that the mobile terminal belonging to itself uses interactive class application in the preset duration before first time point
When program, judge that state of the mobile terminal belonging to itself in the preset duration before first time point meets default item
Part;
It answers when judging the mobile terminal belonging to itself interactive class is not used in the preset duration before first time point
When with program, judge that state of the mobile terminal in the preset duration before first time point belonging to itself is unsatisfactory for presetting
Condition.
Wherein, when default control instruction is photographing instruction, for the friendship according to acquisition in processor of the embodiment of the present invention
The number of mutual class application program and default control instruction include: to the classification of the picture to be processed progress pictorial element of acquisition
Figure is carried out to picture to be processed according to the depth of field value of the number of the interactive class application program of acquisition and each pixel
The piecemeal of pixel element and the first depth of field value for determining the pictorial element after each piecemeal;
Obtain pictorial element corresponding to the focusing of picture to be processed and the second depth of field value of the pictorial element;
Calculate the absolute value of difference between each first depth of field value and the second depth of field value;
According to pictorial element and piecemeal corresponding to focusing of the size order of calculated absolute value to picture to be processed
Pictorial element afterwards is classified.
Wherein, in processor of the embodiment of the present invention for according to the interactive class application program of acquisition number and each picture
Element depth of field value to picture to be processed carry out pictorial element piecemeal include:
The second preset threshold range of number of the interactive class application program obtained is set;
Calculate separately the absolute value of difference between the depth of field value and preset threshold of each pixel;
The corresponding multiple pixels of the absolute value belonged in same second preset threshold range are divided into same pictorial element.
For example, the corresponding pictorial element of focusing can be divided into the first kind, by the absolute value of first small (minimum)
Pictorial element after corresponding each piecemeal is divided into the second class, by the image primitive after the second small corresponding each piecemeal of absolute value
Element is divided into third class, and so on.
Wherein, when default control instruction is screenshotss instruction, for the friendship according to acquisition in processor of the embodiment of the present invention
The number of mutual class application program and default control instruction include: to the classification of the picture to be processed progress pictorial element of acquisition
The piecemeal of pictorial element and the interactive class application journey of setting acquisition are carried out to picture to be processed according to preset strategy
The first preset threshold range of number of sequence;
Obtain the center of picture to be processed the first colouring information and the pictorial element after each piecemeal second
Colouring information;
Calculate the absolute value of difference between each second colouring information and the first colouring information;
Determine the first preset threshold range locating for calculated each absolute value;
According to the first preset threshold range locating for the calculated each absolute value determined to the image primitive after piecemeal
Element is classified.
Wherein, it is right according to their needs by user can be to provide a human-computer interaction interface for preset strategy of the embodiment of the present invention
Picture to be processed, which carries out piecemeal, (such as can carry out piecemeal by dragging frame, the position of dragging dragging frame and adjustment drag frame
Size can select the size of piecemeal), as shown in Figure 4;Piecemeal can also be carried out to picture to be processed according to colouring information (to be divided into
Predetermined number), it is usual known to the computing staff of this field on how to be belonged to according to colouring information to picture progress piecemeal
Technological means, details are not described herein again, is not intended to limit the application.
Optionally, according to display interactive class application program corresponding in pictorial element after sorting of each second time point
Icon before, processor of the embodiment of the present invention is also used to execute picture processing program, to perform the steps of
When finding using the second time point of same social category application program greater than one, storage and first time point
Time interval the smallest the second time point using social category application program, and delete with the time interval of first time point most
The second time point using social category application program except small the second time point using social category application program.
Optionally, processor of the embodiment of the present invention is also used to execute picture processing program, ought not looked into performing the steps of
When finding using the second time point of same social category application program greater than one, execution is being classified according to each second time point
In pictorial element afterwards the step of the icon of corresponding display interactive class application program.
Wherein, for according to right in pictorial element after sorting of each second time point in processor of the embodiment of the present invention
The icon that should show interactive class application program includes:
Calculate the time interval between each second time point and first time point;
According to the ascending sequence and the corresponding relationship of the pictorial element after different classifications of calculated time interval
The icon of corresponding display interactive class application program.
Optionally, according to display interactive class application program corresponding in pictorial element after sorting of each second time point
Icon after, processor of the embodiment of the present invention is also used to execute picture processing program, to perform the steps of
Application journey at screen pixels number a and the pictorial element shared by pictorial element after obtaining each piecemeal
Screen pixels number b shared by the icon of sequence;
Screen shared by screen pixels number shared by the icon of application program at the pictorial element and the pictorial element
When the ratio of curtain number of pixels is greater than default ratio, screen pixels shared by the icon of the application program at the pictorial element are reduced
Number is so that the icon of the application program at the pictorial element icon corresponding figure appropriate being shown in the application program
At pixel element.
Wherein, control of embodiment of the present invention operation information includes: to drag one or more interactive class application programs
The motion track information of icon, alternatively, clicking the location information of the icon of one or more interactive class application programs.
Wherein, for including: according to the sharing of control operation information progress pictorial element in processor of the embodiment of the present invention
By the motion track information for dragging the icon of one or more interactive class application programs included one or
More than one pictorial element is shared into corresponding interactive class application program;Alternatively,
It will click on the image primitive that the location information of the icon of one or more interactive class application programs is included
Element is shared into corresponding interactive class application program.
For example, if the icon that user drags wechat application program has drawn a circle on picture, this circle
The pictorial element for being formed and (being included) is shared into wechat application program;If user clicks some wechat application program
Icon when, the pictorial element of the icon position is shared into wechat application program.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium
One or more picture processing programs, when one or more picture processing programs can be executed by one or more processors, with reality
Existing following steps: when detecting default control instruction, record detect default control instruction first time point and according to
Default control instruction obtains picture to be processed;When judging state of the mobile terminal in the preset duration before first time point
When meeting preset condition, one or more friendships that mobile terminal uses in the preset duration before first time point are obtained
Mutual class application program and the second time point using each interactive class application program;According to the interactive class application program of acquisition
Number and default control instruction carry out the classification of pictorial element to the picture to be processed of acquisition;Existed according to each second time point
The icon of corresponding display interactive class application program in sorted pictorial element;When detecting to one or more interactive class
When the control operation of the icon of application program, obtains control operation information and carry out point of pictorial element according to control operation information
It enjoys.
Wherein, the instruction of default control of the embodiment of the present invention includes: photographing instruction or screenshotss instruction.
Wherein, when default control instruction is photographing instruction, the embodiment of the present invention is obtained according to default control instruction wait locate
Managing picture includes:
Obtain the first camera data of the first camera;
Obtain the second camera data of second camera;
The first camera data and the second camera data are synthesized based on preset algorithm, to obtain comprising each pixel
The picture to be processed of depth of field value.
Wherein, interactive class of embodiment of the present invention application program is defined as: data network and other mobile terminals can be passed through
The application program (APP) carried out data transmission, such as wechat application program, qq application program.
Optionally, before the first time point that record detects default control instruction, the processing of one or more picture
Program can also be executed by one or more processor, to perform the steps of
The configuration item for opening or closing pictorial element sharing function is added in the system setup menu of mobile terminal;
When detecting that user carries out opening operation to the configuration item for opening or closing pictorial element sharing function, open
Motion video element sharing function;
Whether detect that default control instructs.
Optionally, one or more picture processing program can also be executed by one or more processor, with realize with
Lower step: it when detecting that user carries out shutoff operation to the configuration item for opening or closing pictorial element sharing function, closes
Close pictorial element sharing function.
Optionally, record detect default control instruction first time point and according to default control instruct obtain to
After handling picture, in one or more friendships that acquisition mobile terminal uses in the preset duration before first time point
Before second time point of mutual class application program and each interactive class application program of use, one or more picture handles journey
Sequence can also be executed by one or more processor, to perform the steps of
Judge whether state of the mobile terminal in the preset duration before first time point meets preset condition.
Wherein, the embodiment of the present invention judges whether state of the mobile terminal in the preset duration before first time point be full
Sufficient preset condition includes:
Judge whether mobile terminal uses interactive class application program in the preset duration before first time point;
When judging mobile terminal in the preset duration before first time point using interactive class application program, judge
State of the mobile terminal in the preset duration before first time point meets preset condition;
When judging that interactive class application program is not used in the preset duration before first time point in mobile terminal, sentence
Disconnected state of the mobile terminal in the preset duration before first time point out is unsatisfactory for preset condition.
Wherein, when default control instruction is photographing instruction, the embodiment of the present invention is according to the interactive class application program of acquisition
Number and default control instruction pictorial element is carried out to the picture to be processed of acquisition classification include:
Figure is carried out to picture to be processed according to the depth of field value of the number of the interactive class application program of acquisition and each pixel
The piecemeal of pixel element and the first depth of field value for determining the pictorial element after each piecemeal;
Obtain pictorial element corresponding to the focusing of picture to be processed and the second depth of field value of the pictorial element;
Calculate the absolute value of difference between each first depth of field value and the second depth of field value;
According to pictorial element and piecemeal corresponding to focusing of the size order of calculated absolute value to picture to be processed
Pictorial element afterwards is classified.
Wherein, the embodiment of the present invention is according to the number of the interactive class application program of acquisition and the depth of field value pair of each pixel
The piecemeal that picture to be processed carries out pictorial element includes:
The second preset threshold range of number of the interactive class application program obtained is set;
Calculate separately the absolute value of difference between the depth of field value and preset threshold of each pixel;
The corresponding multiple pixels of the absolute value belonged in same second preset threshold range are divided into same pictorial element.
For example, the corresponding pictorial element of focusing can be divided into the first kind, by the absolute value of first small (minimum)
Pictorial element after corresponding each piecemeal is divided into the second class, by the image primitive after the second small corresponding each piecemeal of absolute value
Element is divided into third class, and so on.
Wherein, when default control instruction is screenshotss instruction, the embodiment of the present invention is according to the interactive class application program of acquisition
Number and default control instruction pictorial element is carried out to the picture to be processed of acquisition classification include:
The piecemeal of pictorial element and the interactive class application journey of setting acquisition are carried out to picture to be processed according to preset strategy
The first preset threshold range of number of sequence;
Obtain the center of picture to be processed the first colouring information and the pictorial element after each piecemeal second
Colouring information;
Calculate the absolute value of difference between each second colouring information and the first colouring information;
Determine the first preset threshold range locating for calculated each absolute value;
According to the first preset threshold range locating for the calculated each absolute value determined to the image primitive after piecemeal
Element is classified.
Wherein, it is right according to their needs by user can be to provide a human-computer interaction interface for preset strategy of the embodiment of the present invention
Picture to be processed, which carries out piecemeal, (such as can carry out piecemeal by dragging frame, the position of dragging dragging frame and adjustment drag frame
Size can select the size of piecemeal), as shown in Figure 4;Piecemeal can also be carried out to picture to be processed according to colouring information (to be divided into
Predetermined number), it is usual known to the computing staff of this field on how to be belonged to according to colouring information to picture progress piecemeal
Technological means, details are not described herein again, is not intended to limit the application.
Optionally, according to display interactive class application program corresponding in pictorial element after sorting of each second time point
Icon before, one or more picture processing program can also be executed by one or more processor, to realize following step
It is rapid:
When finding using the second time point of same social category application program greater than one, storage and first time point
Time interval the smallest the second time point using social category application program, and delete with the time interval of first time point most
The second time point using social category application program except small the second time point using social category application program.
Optionally, one or more picture processing program can also be executed by one or more processor, with realize with
Lower step: it when not finding the second time point using same social category application program and being greater than one, executes according to each the
In the pictorial element of two time points after sorting the step of the icon of corresponding display interactive class application program.
Wherein, the embodiment of the present invention is according to display interactive class corresponding in pictorial element after sorting of each second time point
The icon of application program includes:
Calculate the time interval between each second time point and first time point;
According to the ascending sequence and the corresponding relationship of the pictorial element after different classifications of calculated time interval
The icon of corresponding display interactive class application program.
Optionally, according to display interactive class application program corresponding in pictorial element after sorting of each second time point
Icon after, one or more picture processing program can also be executed by one or more processor, to realize following step
It is rapid:
Application journey at screen pixels number a and the pictorial element shared by pictorial element after obtaining each piecemeal
Screen pixels number b shared by the icon of sequence;
Screen shared by screen pixels number shared by the icon of application program at the pictorial element and the pictorial element
When the ratio of curtain number of pixels is greater than default ratio, screen pixels shared by the icon of the application program at the pictorial element are reduced
Number is so that the icon of the application program at the pictorial element icon corresponding figure appropriate being shown in the application program
At pixel element.
It should be noted that screen pixels number shared by icon on how to the application program at downscaled images element
And narrow down to that how many number of pixels belong to conventional techniques well-known to those skilled in the art, details are not described herein again, and
It is not limited to the application.
Wherein, control of embodiment of the present invention operation information includes: to drag one or more interactive class application programs
The motion track information of icon, alternatively, clicking the location information of the icon of one or more interactive class application programs.
Wherein, the embodiment of the present invention includes: according to the sharing that control operation information carries out pictorial element
By the motion track information for dragging the icon of one or more interactive class application programs included one or
More than one pictorial element is shared into corresponding interactive class application program;Alternatively,
It will click on the image primitive that the location information of the icon of one or more interactive class application programs is included
Element is shared into corresponding interactive class application program.
For example, if the icon that user drags wechat application program has drawn a circle on picture, this circle
The pictorial element for being formed and (being included) is shared into wechat application program;If user clicks some wechat application program
Icon when, the pictorial element of the icon position is shared into wechat application program.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware (such as processor) is completed, and described program can store in computer readable storage medium, as read-only memory,
Disk or CD etc..Optionally, one or more integrated circuits also can be used in all or part of the steps of above-described embodiment
It realizes.Correspondingly, each module/unit in above-described embodiment can take the form of hardware realization, such as pass through integrated electricity
Its corresponding function is realized on road, can also be realized in the form of software function module, such as is stored in by processor execution
Program/instruction in memory realizes its corresponding function.The present invention is not limited to the hardware and softwares of any particular form
In conjunction with.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
1. a kind of image processing method characterized by comprising
When detect default control instruction when, mobile terminal records detect default control instruction first time point and according to
Default control instruction obtains picture to be processed;
When judging that state of the mobile terminal in the preset duration before first time point meets preset condition, movement is obtained
One or more interactive class application programs and use every that terminal uses in the preset duration before first time point
Second time point of a interactive class application program;
Image is carried out to the picture to be processed of acquisition according to the number of the interactive class application program of acquisition and default control instruction
The classification of element;
According to the icon of display interactive class application program corresponding in the pictorial element of each second time point after sorting;
When detecting the operation of the control to the icon of one or more interactive class application programs, control operation information is obtained
And the sharing of pictorial element is carried out according to control operation information.
2. image processing method according to claim 1, which is characterized in that the default control instruction includes: finger of taking pictures
It enables or screenshotss instructs;
It is described to include: according to default control instruction acquisition picture to be processed when default control instruction is photographing instruction
Obtain the first camera data of the first camera;
Obtain the second camera data of second camera;
First camera data and second camera data are synthesized based on preset algorithm, include each picture to obtain
The picture to be processed of the depth of field value of element.
3. image processing method according to claim 2, which is characterized in that when default control instruction is described takes pictures
When instruction, the instruction of the number and default control of the interactive class application program according to acquisition to the picture to be processed of acquisition into
The classification of row pictorial element includes:
According to the depth of field value of the number of the interactive class application program of the acquisition and each pixel to the picture to be processed into
The piecemeal of row pictorial element and the first depth of field value for determining the pictorial element after each piecemeal;
Obtain the second depth of field value of pictorial element corresponding to the focusing of the picture to be processed and described image element;
Calculate the absolute value of difference between each first depth of field value and second depth of field value;
According to pictorial element corresponding to focusing of the size order of calculated absolute value to the picture to be processed and described
Pictorial element after piecemeal is classified.
4. image processing method according to claim 2, which is characterized in that when default control instruction is the screenshotss
When instruction, the instruction of the number and default control of the interactive class application program according to acquisition to the picture to be processed of acquisition into
The classification of row pictorial element includes:
The interactive class that the picture to be processed carries out the piecemeal of pictorial element and the acquisition is arranged is answered according to preset strategy
With the first preset threshold range of number of program;
Obtain the center of the picture to be processed the first colouring information and the pictorial element after each piecemeal second
Colouring information;
Calculate the absolute value of difference between each second colouring information and first colouring information;
Determine the first preset threshold range locating for calculated each absolute value;
According to the first preset threshold range locating for the calculated each absolute value determined to the pictorial element after piecemeal into
Row classification.
5. image processing method according to claim 3 or 4, which is characterized in that at the basis each second time point
In pictorial element after sorting before the icon of corresponding display interactive class application program, this method further include:
When finding using the second time point of same social category application program greater than one, storage and the first time point
Time interval the smallest the second time point using the social category application program, and delete with the first time point when
Between be spaced social category application program described in use except the smallest the second time point using the social category application program
Second time point.
6. image processing method according to claim 1, which is characterized in that basis each second time point is classifying
The icon of corresponding display interactive class application program includes: in pictorial element afterwards
Calculate the time interval between each second time point and the first time point;
It is corresponding with the corresponding relationship of the pictorial element after different classifications according to the ascending sequence of calculated time interval
Show the icon of the interactive class application program.
7. image processing method according to claim 6, which is characterized in that the control operation information includes: dragging institute
State the motion track information of the icon of one or more interactive class application programs, alternatively, click it is one or one with
The location information of the icon of upper interactive class application program;
It is described to include: according to the sharing for controlling operation information progress pictorial element
Included by the motion track information for dragging one or more than one interactive class application program icon one
A or more than one pictorial element is shared into corresponding interactive class application program;Alternatively,
A figure for being included by the location information for clicking one or more than one interactive class application program icon
Pixel element is shared into corresponding interactive class application program.
8. image processing method according to claim 1, which is characterized in that the mobile terminal records detect default control
After making the first time point of instruction and obtaining picture to be processed according to default control instruction, exist in the acquisition mobile terminal
One or more interactive class application programs for using in preset duration before first time point and use each interaction
Before second time point of class application program, this method further include:
It is described pre- to judge whether state of the mobile terminal in the preset duration before the first time point meets
If condition,
Wherein, whether the state for judging the mobile terminal in the preset duration before the first time point is full
The preset condition includes: enough
Judge whether the mobile terminal is answered in the preset duration before the first time point using the interactive class
Use program;
When judging that the mobile terminal answered in the preset duration before the first time point using the interactive class
When with program, judge that state of the mobile terminal in the preset duration before first time point meets preset condition;
When judging that the interactive class is not used in the preset duration before the first time point in the mobile terminal
When application program, judge that state of the mobile terminal in the preset duration before first time point is unsatisfactory for preset condition.
9. a kind of mobile terminal characterized by comprising memory, processor and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing the picture processing program stored in memory, to realize as described in any one of claims 1 to 8
Image processing method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium one or
Multiple picture processing programs, when one or more of picture processing programs can be executed by one or more processors, to realize
Such as the step of image processing method described in any item of the claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710521393.4A CN107450796B (en) | 2017-06-30 | 2017-06-30 | A kind of image processing method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710521393.4A CN107450796B (en) | 2017-06-30 | 2017-06-30 | A kind of image processing method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107450796A CN107450796A (en) | 2017-12-08 |
CN107450796B true CN107450796B (en) | 2019-10-08 |
Family
ID=60487247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710521393.4A Active CN107450796B (en) | 2017-06-30 | 2017-06-30 | A kind of image processing method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450796B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459799B (en) * | 2018-01-26 | 2021-10-15 | 努比亚技术有限公司 | Picture processing method, mobile terminal and computer readable storage medium |
CN108710539B (en) * | 2018-05-18 | 2021-03-16 | 珠海格力电器股份有限公司 | Information processing method, terminal and readable storage medium |
CN110580486B (en) * | 2018-06-07 | 2024-04-12 | 斑马智行网络(香港)有限公司 | Data processing method, device, electronic equipment and readable medium |
CN108898081B (en) * | 2018-06-19 | 2021-07-20 | Oppo广东移动通信有限公司 | Picture processing method and device, mobile terminal and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104020923A (en) * | 2014-04-02 | 2014-09-03 | 深圳市东方拓宇科技有限公司 | Method for displaying icons of touch control terminal of electronic product and electronic product |
CN105955992A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Picture processing method and apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9608950B2 (en) * | 2015-08-18 | 2017-03-28 | Blend Systems, Inc. | Systems and methods for sharing videos and images in a texting environment |
CN105787030B (en) * | 2016-02-25 | 2019-10-29 | 努比亚技术有限公司 | A kind of mobile terminal and its method for handling data |
-
2017
- 2017-06-30 CN CN201710521393.4A patent/CN107450796B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104020923A (en) * | 2014-04-02 | 2014-09-03 | 深圳市东方拓宇科技有限公司 | Method for displaying icons of touch control terminal of electronic product and electronic product |
CN105955992A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Picture processing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107450796A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109213401A (en) | Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing | |
CN107241492B (en) | A kind of dynamic information display method, equipment and computer readable storage medium | |
CN108415636A (en) | A kind of generation method, mobile terminal and the storage medium of suspension button | |
CN107450796B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN109634542A (en) | A kind of switching display control method, terminal and computer readable storage medium | |
CN109471571A (en) | Display methods, mobile terminal and the computer readable storage medium of suspension control | |
CN109992183A (en) | Preview picture and the method for selection, terminal and storage medium | |
CN109697008A (en) | A kind of content share method, terminal and computer readable storage medium | |
CN108829444A (en) | A kind of method that background application is automatically closed, terminal and computer storage medium | |
CN108241752A (en) | Photo display methods, mobile terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN109062465A (en) | A kind of application program launching method, mobile terminal and storage medium | |
CN109324730A (en) | Shortcut generation method, terminal and computer readable storage medium | |
CN108449513A (en) | A kind of interaction regulation and control method, equipment and computer readable storage medium | |
CN109584897A (en) | Vedio noise reduction method, mobile terminal and computer readable storage medium | |
CN109558054A (en) | A kind of message treatment method of mobile terminal, mobile terminal and storage medium | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN110278481A (en) | Picture-in-picture implementing method, terminal and computer readable storage medium | |
CN110286816A (en) | Mobile terminal page switching method, mobile terminal and computer readable storage medium | |
CN110069182A (en) | Wallpaper control method, mobile terminal and computer readable storage medium | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN109522276A (en) | Application icon management method, terminal and computer readable storage medium | |
CN109491577A (en) | A kind of gripping exchange method, equipment and computer readable storage medium | |
CN108234979A (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN109683796A (en) | A kind of interaction control method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |