CN104270491B - To the method and apparatus of communication interface input communicating number - Google Patents
To the method and apparatus of communication interface input communicating number Download PDFInfo
- Publication number
- CN104270491B CN104270491B CN201410433380.8A CN201410433380A CN104270491B CN 104270491 B CN104270491 B CN 104270491B CN 201410433380 A CN201410433380 A CN 201410433380A CN 104270491 B CN104270491 B CN 104270491B
- Authority
- CN
- China
- Prior art keywords
- communicating number
- interface
- image
- user
- text information
- 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
Abstract
The disclosure is directed to a kind of method and apparatus that communicating number is inputted to communication interface, belong to electronic technology field.This method includes:Start the camera of terminal, shot to obtain image by camera;The image is detected;When obtaining communicating number by the image, then the communicating number and at least one communication mode are shown;The communication mode of user's selection is obtained, the communicating number is added in communication interface corresponding to the communication mode of selection.The device includes:Taking module, detection module, display module and add module.In the disclosure when user wants to input communication number into communication interface, start the camera of terminal, shoot to obtain image by camera, communicating number is obtained by the image, terminal obtains the communication mode of user's selection, and communicating number is added in communication interface corresponding to the communication mode of selection, is inputted so as to which user does not have to opening keyboard, so as to shorten input time, input efficiency is improved.
Description
Technical field
The disclosure is directed to electronic technology field, especially with respect to it is a kind of to communication interface input communicating number method and
Device.
Background technology
With the arrival of information age, people are constantly having found fresh information or are running into new events, also can be inadvertently
It was found that or obtain valuable information.For example, when people are walked in the street, can usually see advertisement, in the advertisement it is general all
Ad content and telephone number are printed on, user may find that certain ad content is valuable to oneself sometimes, and now user can be with
The ad content is understood in detail by dialing the telephone number in the advertisement.
At present, if user wants to dial the telephone number in advertisement, user needs to open dialing circle of mobile terminal
Face, the keyboard of mobile terminal is opened in dialing interface, the telephone number is read from advertisement, by the keyboard by the phone number
Code is input in the dialing interface, then clicks on the dialing button in the dialing interface, mobile terminal is read from dialing interface
The telephone number simultaneously dials the telephone number.
During the disclosure is realized, publisher has found that correlation technique at least has problems with:
, it is necessary to open keyboard when user inputs telephone number, every number that telephone number includes is found in keyboard successively
Word is simultaneously input in dialing interface, input time length, and input efficiency is low.
Disclosure
The problem of in order to overcome correlation technique, present disclose provides it is a kind of to communication interface input communicating number method and
Device.
On the one hand, present disclose provides one according to the first aspect of the embodiment of the present disclosure, there is provided a kind of defeated to communication interface
Enter the method for communicating number, including:
Start the camera of terminal, shot to obtain image by the camera;
Described image is detected;
When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;
The communication mode of user's selection is obtained, the communicating number is added to corresponding to the communication mode of the selection and led to
Believe in interface.
Optionally, it is described that described image is detected, including:
Whether numeric string is included in detection described image;
With the presence or absence of digit it is pre- in the numeric string for judging to include in described image when including numeric string in described image
If the numeric string of digit;
When present number is the numeric string of presetting digit capacity, digit is defined as communicating number for the numeric string of presetting digit capacity
And determine to include communicating number in described image.
Optionally, it is described that described image is detected, including:
Obtain the text information in image;
Search the communicating number corresponding with the text information.
Optionally, the display communicating number and at least one communication mode, including:
The communicating number that described image includes is marked in described image, the described image after display mark;
Obtain interface corresponding to every kind of communication mode at least one communication mode;
Interface corresponding to every kind of communication mode is suspended on the image, the interface selects for the user
Communication mode.
Optionally, it is described that the communicating number is added in communication interface corresponding to the communication mode of the selection, bag
Include:
If including a communicating number in described image, the communicating number is extracted from described image, will be described logical
Signal code is added in communication interface corresponding to the communication mode of the selection;
If including multiple communicating numbers in described image, the communicating number of user's selection is obtained, from described image
The communicating number of the middle extraction selection, the communicating number of the selection is added to corresponding to the communication mode of the selection and led to
Believe in interface.
Optionally, the communication interface is dialing interface, and the dialing interface includes dialing button and/or store button,
Methods described also includes:
When detecting the Dial Number command that the dialing button triggers after being clicked on by the user, according to the Dial Number command
The communicating number is dialed in instruction;And/or
When detecting the storage order that the store button triggers after being clicked on by the user, according to the storage order
Indicate to store the communicating number in the address list included to the terminal.
Optionally, the communication interface is short message interface, and the short message interface includes send button, and methods described is also
Including:
When detecting the transmission order that the send button triggers after being clicked on by the user, send what is ordered according to described
Indicate to obtain the content of short message in the short message interface;
The content of short message is sent to equipment corresponding to the communicating number.
Optionally, the communication interface is that good friend adds interface, and the good friend adds interface and includes addition button, the side
Method also includes:
When detecting the addition order that the addition button triggers after being clicked on by the user, according to the addition order
Indicate that sending good friend to equipment corresponding to the communicating number adds request.
On the other hand, present disclose provides one according to the second aspect of the embodiment of the present disclosure, there is provided a kind of to communication interface
The device of communicating number is inputted, including:
Taking module, for starting the camera of terminal, shot to obtain image by the camera;
Detection module, for being detected to described image;
Display module, for when obtaining communicating number by described image, then showing the communicating number and at least
A kind of communication mode;
Add module, for obtaining the communication mode of user's selection, the communicating number is added to the logical of the selection
In communication interface corresponding to letter mode.
Optionally, the detection module, including:
Detection unit, for detecting in described image whether include numeric string;
Judging unit, for when including numeric string in described image, being in the numeric string for judging to include in described image
No present number is the numeric string of presetting digit capacity;
Determining unit, for when present number be presetting digit capacity numeric string when, by digit be presetting digit capacity numeric string
It is defined as communicating number and determines to include communicating number in described image.
Optionally, the detection module, including:
First acquisition unit, for obtaining the text information in image;
Searching unit, for searching the communicating number corresponding with the text information.
Optionally, the display module, including:
Display unit, for the communicating number that described image includes to be marked in described image, after display mark
Described image;
Second acquisition unit, for obtaining interface corresponding to every kind of communication mode at least one communication mode;
Floating unit, for interface corresponding to every kind of communication mode to be suspended on the image, the interface is used
Communication mode is selected in the user.
Optionally, if including a communicating number, the add module, for being put forward from described image in described image
The communicating number is taken, the communicating number is added in communication interface corresponding to the communication mode of the selection;
If including multiple communicating numbers in described image, the add module, for obtaining the logical of user's selection
Signal code, the communicating number of the selection is extracted from described image, the communicating number of the selection is added to the selection
Communication mode corresponding in communication interface.
Optionally, the communication interface is dialing interface, and the dialing interface includes dialing button and/or store button,
Described device also includes:
Dial module, for detect the dialing button by the user click on after triggered Dial Number command when, according to
The communicating number is dialed in the instruction of the Dial Number command;And/or
Memory module, for detect the store button by the user click on after triggered storage order when, according to
In the address list that the instruction of the storage order includes communicating number storage to the terminal.
Optionally, the communication interface is short message interface, and the short message interface includes send button, and described device is also
Including:
Acquisition module, for detect the send button by the user click on after triggered transmission order when, according to
The instruction for sending order obtains the content of short message in the short message interface;
First sending module, for sending the content of short message to equipment corresponding to the communicating number.
Optionally, the communication interface is that good friend adds interface, and the good friend adds interface and includes addition button, the dress
Putting also includes:
Second sending module, for detect it is described addition button by the user click on after triggered addition order when,
Good friend is sent according to equipment corresponding to the instruction to the communicating number of the addition order and adds request.
On the other hand, present disclose provides one according to the third aspect of the embodiment of the present disclosure, there is provided a kind of to communication interface
The device of communicating number is inputted, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Start the camera of terminal, shot to obtain image by the camera;
Described image is detected;
When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;
The communication mode of user's selection is obtained, the communicating number is added to corresponding to the communication mode of the selection and led to
Believe in interface.
Some beneficial effects of the disclosure can include:When user is wanted to communication interface input communicating number, terminal opens
The camera of dynamic terminal, is shot to obtain image by camera, image is detected;Communicated when by the image
During number, then communicating number and at least one communication mode are shown;The communication mode of user's selection is obtained, communicating number is added
It is added in communication interface corresponding to the communication mode of selection, is inputted so as to which user does not have to opening keyboard, when shortening input
Between, improve input efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the disclosure, forms the part of the application, not
Form the restriction to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow of method that communicating number is inputted to communication interface according to an exemplary embodiment 1
Figure;
Fig. 2 is a kind of flow of method that communicating number is inputted to dialing interface according to an exemplary embodiment 2
Figure;
Fig. 3 is a kind of stream of method that communicating number is inputted to short message interface according to an exemplary embodiment 3
Cheng Tu;
Fig. 4 is a kind of method that input communicating number in interface is added to good friend according to an exemplary embodiment 4
Flow chart;
Fig. 5 is a kind of flow of method that communicating number is inputted to communication interface according to an exemplary embodiment 5
Figure;
Fig. 6 is that a kind of apparatus structure that communicating number is inputted to communication interface according to an exemplary embodiment 6 shows
It is intended to;
Fig. 7 is a kind of structural representation of terminal according to an exemplary embodiment 7.
Embodiment
For the purpose, technical scheme and advantage of the disclosure are more clearly understood, below in conjunction with embodiment and accompanying drawing,
The disclosure is described in further details.Here, the exemplary embodiment of the disclosure and its illustrate be used for explain the disclosure, but
It is not intended as the restriction to the disclosure.
Embodiment 1
Fig. 1 is a kind of flow of method that communicating number is inputted to communication interface according to an exemplary embodiment
Figure, as shown in figure 1, the method that communicating number is inputted to communication interface is used in terminal, comprise the following steps.
In step S101, start the camera of terminal, shot to obtain image by camera;
In step s 102, image is detected;
In step s 103, when obtaining communicating number by image, then communicating number and at least one communication are shown
Mode;
In step S104, the communication mode of user's selection is obtained, communicating number is added to the communication mode pair of selection
In the communication interface answered.
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants defeated to communication interface
When entering communicating number, terminal starts the camera of terminal, is shot to obtain image by camera, image is detected;
When obtaining communicating number by image, then communicating number and at least one communication mode are shown;Obtain the logical of user's selection
Letter mode, communicating number is added in communication interface corresponding to the communication mode of selection, is entered so as to which user does not have to opening keyboard
Row input, shortens input time, improves input efficiency.
Embodiment 2
Fig. 2 is a kind of flow of method that communicating number is inputted to dialing interface according to an exemplary embodiment
Figure, in the present embodiment, start the camera of terminal in dialing interface, shoot to obtain image by camera, pass through the figure
As obtaining communicating number, the communicating number is added in dialing interface.As shown in Fig. 2 input communicating number to dialing interface
Method be used for terminal in, comprise the following steps.
In step s 201, dialing interface is detected, utilizing camera interface is included in the dialing interface;
Utilizing camera interface is loaded on dialing interface, when user wants the messenger dialed on advertisement or web page contents
During code, dialing interface that user opens a terminal, the utilizing camera interface in click to dial interface;Utilizing camera interface triggering starts order
To terminal;Terminal detects dialing interface, when the startup order triggered after detecting that utilizing camera interface is clicked on by user, performs step
Rapid S202.
Dialing interface is the interface called, and utilizing camera interface and dialing button are comprised at least in the dialing interface, should
Store button is also included in dialing interface.User can trigger Dial Number command by dialing button, be deposited by store button triggering
Storage order.Terminal can be mobile phone or tablet personal computer etc..
In step S202, when the startup order triggered after detecting that utilizing camera interface is clicked on by user, according to startup
The instruction of order starts the camera of terminal, is shot to obtain image by camera;
When the startup order triggered after detecting that camera is clicked on by user, shooting is passed through according to the instruction for starting order
Head interface starts the camera of terminal, shoots communicating number by camera, obtains including the image of communicating number.
In step S203, whether numeric string is included in detection image;
Whether numeric string is included in detection image;When including numeric string in image, step S204 is performed;When in image not
During comprising numeric string, step S206 is performed.
Whether it is prior art comprising numeric string in detection image, it is no longer detailed herein.
In step S204, when including numeric string in image, it whether there is position in the numeric string for judging to include in image
Number is the numeric string of presetting digit capacity;
When including numeric string in image, the digit of the numeric string in image is obtained, judges to scheme according to the digit of numeric string
As in the numeric string that includes whether storage bit number be presetting digit capacity numeric string.
When present number is the numeric string of presetting digit capacity in the numeric string included in image, step S205 is performed;Work as figure
When the numeric string that digit is presetting digit capacity being not present in the numeric string included as in, terminate.
Presetting digit capacity can be configured and change according to the digit of communicating number, if communicating number is fixed telephone number
When, presetting digit capacity can be 7 or 8;When communicating number is Mobile Directory Number, presetting digit capacity can be 11 etc..
In step S205, when present number is the numeric string of presetting digit capacity, by the numeric string that digit is presetting digit capacity
It is defined as communicating number and determines to include communicating number in image;
When determining to include communicating number in image, step S207 is performed.
In step S206, when not including numeric string in image, the text information in image is obtained, is searched and the word
The corresponding communicating number of information;
A communicating number list is previously stored in terminal, the communicating number list is used to store text information and messenger
The corresponding relation of code.When not including numeric string in image, terminal obtains the text information in image, according to the text information,
Communicating number list is searched, if terminal finds the text information, is obtained and the text information phase from communicating number list
Corresponding communicating number.
If terminal does not find the text information, terminal to server sends the text information in the image, service
The text information that device receiving terminal is sent, according to the word information searching communicating number corresponding with the text information, such as
Fruit whois lookup sends the communication corresponding with the text information to terminal to the communicating number corresponding with the text information
Number;The communicating number corresponding with the text information that terminal the reception server is sent.
If server does not find the communicating number corresponding with the text information, determine with the word not believe
Communicating number corresponding to manner of breathing.
Wherein, the word obtained in image is prior art, no longer detailed herein.
In step S207, communicating number and dialing interface are shown;
The communicating number that image includes is marked in the picture, the image after display mark;Obtain in dialing interface
Dialing interface, dialing interface is suspended on image, user can dial the communication by the dialing interface to be suspended on image
Number.
The communicating number that image includes, which is identified, in the picture to be:The messenger that image is included in the picture
Code is framed with square frame or highlights the communicating number included in image, such as the communicating number that image is included highlights
Display, overstriking is shown, italic is shown, underscore is shown or the display etc. that changes colour.
If including multiple communicating numbers in image, respectively by each communication in the multiple communicating numbers included in image
Number is marked.For example, each communicating number included in image is framed with a square frame respectively in the picture or
Each communicating number in the multiple communicating numbers included in image is highlighted.
In step S208, communicating number is added in dialing interface;
If including a communicating number in image, step S208 can be:
Communicating number is extracted from image, communicating number is added in dialing interface.
If including multiple communicating numbers in image, step S208 can be:
The communicating number of user's selection is obtained, the communicating number of selection is extracted from image, the communicating number of selection is added
It is added in dialing interface.
Wherein, it is prior art communicating number to be extracted from image, is no longer described in detail herein.
Terminal by communicating number add dialing interface in after, if user want change the communicating number, can by with
Communicating number in lower step (A) to (C) modification dialing interface, including:
(A):When detecting that user clicks on communicating number, keyboard is shown in dialing interface, keyboard includes deleting character
And/or numerical character;
When user wants to change the communicating number, user clicks on the numeral for needing to change in communicating number, and cursor is moved
Move the digital opening position for needing to change;Terminal detects dialing interface, when detecting that user clicks on communicating number, is dialling
Keyboard is shown in interface, keyboard includes deleting character and/or numerical character;User can click on deletion character, delete character
Delete command is triggered to terminal, performs step (B);User can also click on numerical character, and numerical character triggering addition order is given
Terminal, perform step (C).
(B):When detecting the delete command deleted and triggered after character is clicked on by user, the position of cursor in dialing interface is obtained
Put, by the character deletion of the opening position of cursor in communicating number;
User, which clicks on, deletes character, deletes character and triggers delete command to terminal;Terminal detects keyboard, is deleted when detecting
During the delete command that character triggers after being clicked on by user, the position of cursor in dialing interface is obtained according to the instruction of delete command,
By the character deletion of the opening position of cursor in communicating number.
(C):When detecting the addition order that numerical character triggers after being clicked on by user, the position of cursor in dialing interface is obtained
Put, the opening position for cursor numerical character being added in communicating number.
User clicks on numerical character, and numerical character triggering addition order is to terminal;Terminal detects keyboard, when detecting numeral
During the addition order that character triggers after being clicked on by user, according to addition order instruction obtain dialing interface in cursor position with
And the numerical character that user clicks on, the opening position for the cursor numerical character being added in the plus sige code that communicates.
After communicating number is added in dialing interface, user can dial the communicating number or store the communication
Number, perform step S209.
In step S209, dialing interface is detected, the dialing interface includes dialing button and/or store button;
When user wants to dial the communicating number, user can be with the dialing button in click to dial interface;Dialing button
Dial Number command is triggered to terminal;Terminal detects dialing interface, the dialing life triggered after detecting that dialing button is clicked on by user
When making, step S210 is performed.
When user wants to store the communicating number, user can be with the store button in click to dial interface;Store button
Triggering storage order is to terminal;Terminal detects dialing interface, the storage life triggered after detecting that store button is clicked on by user
When making, step S211 is performed.
In step S210, when detecting the Dial Number command that dialing button triggers after being clicked on by user, according to Dial Number command
Instruction dial the communicating number, terminate.
The dialing interface of detection terminal, when the Dial Number command triggered after detecting that dialing button is clicked on by user, according to
The instruction of Dial Number command obtains the communicating number of user, sends the first call request to server, first call request carries
The communicating number of user and the communicating number;The first call request that server receiving terminal is sent, sent out according to the communicating number
The second call request is sent to carry the communicating number of user to equipment corresponding to the communicating number, second call request.
In step S211, when detecting the storage order that store button triggers after being clicked on by user, ordered according to storage
Instruction by the address list that includes to terminal of communicating number storage.
Terminal detects dialing interface, when the storage order triggered after detecting that store button is clicked on by user, according to depositing
The instruction of order is stored up, obtains the associated person information of user's input, the communicating number and the corresponding of the associated person information of input are closed
In the address list that system's storage storage includes to terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants defeated to dialing interface
When entering communicating number, terminal starts the camera of terminal in dialing interface, is shot to obtain image by camera, to figure
As being detected;When obtaining communicating number by image, then communicating number and dialing interface are shown;Communicating number is added
Into dialing interface, inputted so as to which user does not have to opening keyboard, shorten input time, improve input efficiency.
Embodiment 3
Fig. 3 is a kind of flow of method that communicating number is inputted to short message interface according to an exemplary embodiment
Figure, in the present embodiment, start the camera of terminal in short message interface, shoot to obtain image by camera, by this
Image obtains communicating number, and the communicating number is added in short message interface.As shown in figure 3, inputted to short message interface logical
The method of signal code is used in terminal, comprises the following steps.
In step S301, short message interface is detected, utilizing camera interface is included in the short message interface;
Utilizing camera interface is loaded on short message interface, when user wants the communication dialed on advertisement or web page contents
During number, short message interface that user opens a terminal, the utilizing camera interface in short message interface is clicked on;Utilizing camera interface triggering is opened
Dynamic order is to terminal;Terminal detection short message interface, the startup order triggered after detecting that utilizing camera interface is clicked on by user
When, perform step S302.
Short message interface comprises at least utilizing camera interface in the short message interface and transmission is pressed to send the interface of short message
Button.User can be triggered by send button and send order.Terminal can be mobile phone or tablet personal computer etc..
In step s 302, when the startup order triggered after detecting that utilizing camera interface is clicked on by user, according to startup
The instruction of order starts the camera of terminal, is shot to obtain image by camera;
When the startup order triggered after detecting that camera is clicked on by user, shooting is passed through according to the instruction for starting order
Head interface starts the camera of terminal, shoots communicating number by camera, obtains including the image of communicating number.
In step S303, whether numeric string is included in detection image;
Whether numeric string is included in detection image;When including numeric string in image, step S304 is performed;When in image not
During comprising numeric string, step S306 is performed.
Whether it is prior art comprising numeric string in detection image, it is no longer detailed herein.
In step s 304, when including numeric string in image, it whether there is position in the numeric string for judging to include in image
Number is the numeric string of presetting digit capacity;
When including numeric string in image, the digit of the numeric string in image is obtained, judges to scheme according to the digit of numeric string
As in the numeric string that includes whether storage bit number be presetting digit capacity numeric string.
When present number is the numeric string of presetting digit capacity in the numeric string included in image, step S305 is performed;Work as figure
When the numeric string that digit is presetting digit capacity being not present in the numeric string included as in, terminate.
Presetting digit capacity can be configured and change according to the digit of communicating number, if communicating number is fixed telephone number
When, presetting digit capacity can be 7 or 8;When communicating number is Mobile Directory Number, presetting digit capacity can be 11 etc..
In step S305, when present number is the numeric string of presetting digit capacity, by the numeric string that digit is presetting digit capacity
It is defined as communicating number and determines to include communicating number in image;
When determining to include communicating number in image, step S307 is performed.
In step S306, when not including numeric string in image, the text information in image is obtained, is searched and the word
The corresponding communicating number of information;
A communicating number list is previously stored in terminal, the communicating number list is used to store text information and messenger
The corresponding relation of code.When not including numeric string in image, terminal obtains the text information in image, according to the text information,
Communicating number list is searched, if terminal finds the text information, is obtained and the text information phase from communicating number list
Corresponding communicating number.
If terminal does not find the text information, terminal to server sends the text information in the image, service
The text information that device receiving terminal is sent, according to the word information searching communicating number corresponding with the text information, such as
Fruit whois lookup sends the communication corresponding with the text information to terminal to the communicating number corresponding with the text information
Number;The communicating number corresponding with the text information that terminal the reception server is sent.
If server does not find the communicating number corresponding with the text information, determine with the word not believe
Communicating number corresponding to manner of breathing.
Wherein, the word obtained in image is prior art, no longer detailed herein.
In step S307, communicating number and short message interface are shown;
The communicating number that image includes is marked in the picture, the image after display mark;Obtain short message interface
In short message interface, short message interface is suspended on image, user can by the short message interface that is suspended on image to
Equipment corresponding to the communicating number sends short message.
The communicating number that image includes, which is identified, in the picture to be:The messenger that image is included in the picture
Code is framed with square frame or highlights the communicating number included in image, such as the communicating number that image is included highlights
Display, overstriking is shown, italic is shown, underscore is shown or the display etc. that changes colour.
If including multiple communicating numbers in image, respectively by each communication in the multiple communicating numbers included in image
Number is marked.For example, each communicating number included in image is framed with a square frame respectively in the picture or
Each communicating number in the multiple communicating numbers included in image is highlighted.
In step S308, communicating number is added in short message interface;
If including a communicating number in image, step S308 can be:
Communicating number is extracted from image, communicating number is added in short message interface.
If including multiple communicating numbers in image, step S308 can be:
The communicating number of user's selection is obtained, the communicating number of selection is extracted from image, the communicating number of selection is added
It is added in short message interface.
Wherein, it is prior art communicating number to be extracted from image, is no longer described in detail herein.
After terminal adds communicating number in short message interface, if user wants to change the communicating number, it can pass through
Communicating number in following steps (A) to (C) modification short message interface, including:
(A):When detecting that user clicks on communicating number, keyboard is shown in short message interface, keyboard includes cancel (CANCL)
Symbol and/or numerical character;
When user wants to change the communicating number, user clicks on the numeral for needing to change in communicating number, and cursor is moved
Move the digital opening position for needing to change;Terminal detection short message interface, when detecting that user clicks on communicating number, short
Keyboard is shown in message interface, keyboard includes deleting character and/or numerical character;User can click on deletion character, delete
Character triggers delete command to terminal, performs step (B);User can also click on numerical character, numerical character triggering addition life
Make to terminal, perform step (C).
(B):When detecting the delete command deleted and triggered after character is clicked on by user, cursor in short message interface is obtained
Position, by the character deletion of the opening position of cursor in communicating number;
User, which clicks on, deletes character, deletes character and triggers delete command to terminal;Terminal detects keyboard, is deleted when detecting
During the delete command that character triggers after being clicked on by user, the position of cursor in short message interface is obtained according to the instruction of delete command
Put, by the character deletion of the opening position of cursor in communicating number.
(C):When detecting the addition order that numerical character triggers after being clicked on by user, cursor in short message interface is obtained
Position, the opening position for cursor numerical character being added in communicating number.
User clicks on numerical character, and numerical character triggering addition order is to terminal;Terminal detects keyboard, when detecting numeral
During the addition order that character triggers after being clicked on by user, the position of cursor in short message interface is obtained according to the instruction of addition order
And the numerical character that user clicks on, the opening position for the cursor numerical character being added in the plus sige code that communicates.
After communicating number is added in short message interface, it is corresponding to the communicating number that user can send short message
Equipment, perform step S309.
In step S309, short message interface is detected, the short message interface includes send button;
When user wants to send short message to equipment corresponding to the communicating number, user can be defeated in short message interface
Enter content of short message, click on the send button in short message interface;Short message button sends commands to terminal;Terminal detects
Short message interface, when the transmission order triggered after detecting that send button is clicked on by user, perform step S310.
In step S310, when detecting the transmission order that send button triggers after being clicked on by user, ordered according to sending
Instruction obtain content of short message in short message interface;
In step S311:Content of short message is sent to equipment corresponding to the communicating number.
The communicating number of user is obtained, the communicating number of content of short message and user is encapsulated as a short message, to this
Equipment corresponding to communicating number sends the short message.
The technical scheme provided by this disclosed embodiment can include the following benefits:User is wanted to short message interface
When inputting communicating number, terminal starts the camera of terminal in short message interface, is shot to obtain image by camera,
Image is detected;When obtaining communicating number by image, then communicating number and dialing interface are shown;By communicating number
It is added in short message interface, is inputted so as to which user does not have to opening keyboard, shorten input time, improve input effect
Rate.
Embodiment 4
Fig. 4 is a kind of stream of method that input communicating number in interface is added to good friend according to an exemplary embodiment
Cheng Tu, in the present embodiment, start the camera of terminal in good friend adds interface, shoot to obtain image by camera, lead to
Cross the image and obtain communicating number, the communicating number is added into good friend adds in interface.As shown in figure 4, add boundary to good friend
The method of face input communicating number is used in terminal, comprises the following steps.
In step S401, detection good friend adds interface, and the good friend adds in interface and includes utilizing camera interface;
Utilizing camera interface is loaded into good friend to add on interface, when user want to dial it is logical in advertisement or web page contents
During signal code, the good friend that user opens a terminal adds interface, clicks on the utilizing camera interface in good friend's addition interface;Utilizing camera interface
Triggering starts order to terminal;Terminal detection good friend adds interface, is triggered after detecting that utilizing camera interface is clicked on by user
When starting order, step S402 is performed.
Good friend add interface for send addition request interface, the good friend add interface in comprise at least utilizing camera interface and
Add button.User can be by adding button triggering addition order.Terminal can be mobile phone or tablet personal computer etc..
In step S402, when the startup order triggered after detecting that utilizing camera interface is clicked on by user, according to startup
The instruction of order starts the camera of terminal, is shot to obtain image by camera;
When the startup order triggered after detecting that camera is clicked on by user, shooting is passed through according to the instruction for starting order
Head interface starts the camera of terminal, shoots communicating number by camera, obtains including the image of communicating number.
In step S403, whether numeric string is included in detection image;
Whether numeric string is included in detection image;When including numeric string in image, step S404 is performed;When in image not
During comprising numeric string, step S406 is performed.
Whether it is prior art comprising numeric string in detection image, it is no longer detailed herein.
In step s 404, when including numeric string in image, it whether there is position in the numeric string for judging to include in image
Number is the numeric string of presetting digit capacity;
When including numeric string in image, the digit of the numeric string in image is obtained, judges to scheme according to the digit of numeric string
As in the numeric string that includes whether storage bit number be presetting digit capacity numeric string.
When present number is the numeric string of presetting digit capacity in the numeric string included in image, step S405 is performed;Work as figure
When the numeric string that digit is presetting digit capacity being not present in the numeric string included as in, terminate.
Presetting digit capacity can be configured and change according to the digit of communicating number, for example, presetting digit capacity can be 5,6,
7th, 8,9 or 10 etc..
In step S405, when present number is the numeric string of presetting digit capacity, by the numeric string that digit is presetting digit capacity
It is defined as communicating number and determines to include communicating number in image;
When determining to include communicating number in image, step S407 is performed.
In step S406, when not including numeric string in image, the text information in image is obtained, is searched and the word
The corresponding communicating number of information;
A communicating number list is previously stored in terminal, the communicating number list is used to store text information and messenger
The corresponding relation of code.When not including numeric string in image, terminal obtains the text information in image, according to the text information,
Communicating number list is searched, if terminal finds the text information, is obtained and the text information phase from communicating number list
Corresponding communicating number.
If terminal does not find the text information, terminal to server sends the text information in the image, service
The text information that device receiving terminal is sent, according to the word information searching communicating number corresponding with the text information, such as
Fruit whois lookup sends the communication corresponding with the text information to terminal to the communicating number corresponding with the text information
Number;The communicating number corresponding with the text information that terminal the reception server is sent.
If server does not find the communicating number corresponding with the text information, determine with the word not believe
Communicating number corresponding to manner of breathing.
Wherein, the word obtained in image is prior art, no longer detailed herein.
In step S 407, show that communicating number and good friend add interface;
The communicating number that image includes is marked in the picture, the image after display mark;Obtain good friend and add boundary
Good friend in face adds interface, good friend's addition interface is suspended on image, user can be added by the good friend to be suspended on image
The user that adjunction mouth adds the communicating number is good friend.
The communicating number that image includes, which is identified, in the picture to be:The messenger that image is included in the picture
Code is framed with square frame or highlights the communicating number included in image, such as the communicating number that image is included highlights
Display, overstriking is shown, italic is shown, underscore is shown or the display etc. that changes colour.
When including multiple communicating numbers in image, respectively by each communication in the multiple communicating numbers included in image
Number is marked.For example, each communicating number included in image is framed with a square frame respectively in the picture or
Each communicating number in the multiple communicating numbers included in image is highlighted.
In step S408, communicating number is added to good friend and added in interface;
If including a communicating number in image, step S408 can be:
Communicating number is extracted from image, communicating number is added into good friend adds in interface.
If including multiple communicating numbers in image, step S408 can be:
The communicating number of user's selection is obtained, the communicating number of selection is extracted from image, the communicating number of selection is added
Good friend is added to add in interface.
Wherein, it is prior art communicating number to be extracted from image, is no longer described in detail herein.
After terminal adds communicating number addition good friend in interface, if user wants to change the communicating number, Ke Yitong
The communicating number crossed in following steps (A) to (C) modification good friend's addition interface, including:
(A):When detecting that user clicks on communicating number, keyboard is shown in good friend adds interface, keyboard includes deleting
Character and/or numerical character;
When user wants to change the communicating number, user clicks on the numeral for needing to change in communicating number, and cursor is moved
Move the digital opening position for needing to change;Terminal detection good friend adds interface, when detecting that user clicks on communicating number,
Good friend adds and keyboard is shown in interface, and keyboard includes deleting character and/or numerical character;User can click on deletion character,
Character triggering delete command is deleted to terminal, performs step (B);User can also click on numerical character, and numerical character triggering adds
Order is added to perform step (C) to terminal.
(B):When detecting the delete command deleted and triggered after character is clicked on by user, obtain good friend and add cursor in interface
Position, by the character deletion of the opening position of cursor in communicating number;
User, which clicks on, deletes character, deletes character and triggers delete command to terminal;Terminal detects keyboard, is deleted when detecting
During the delete command that character triggers after being clicked on by user, the position of cursor in good friend's addition interface is obtained according to the instruction of delete command
Put, by the character deletion of the opening position of cursor in communicating number.
(C):When detecting the addition order that numerical character triggers after being clicked on by user, obtain good friend and add cursor in interface
Position, the opening position for cursor numerical character being added in communicating number.
User clicks on numerical character, and numerical character triggering addition order is to terminal;Terminal detects keyboard, when detecting numeral
During the addition order that character triggers after being clicked on by user, the position of cursor in good friend's addition interface is obtained according to the instruction of addition order
Put and user click on numerical character, by the numerical character be added to communication plus sige code in cursor opening position.
After communicating number is added in good friend's addition interface, user can add user corresponding to the communicating number
The good friend of user is added as, performs step S409.
In step S409, detection good friend adds interface, and the good friend adds interface and includes addition button;
When user wants user corresponding to the communicating number being added to the good friend of user, user can click on good friend and add
Add the addition button in interface;Add button triggering good friend and add order to terminal;Terminal detection good friend adds interface, works as detection
During the addition order triggered after being clicked on to addition button by user, step S410 is performed.
In step S410, when detecting the addition order that addition button triggers after being clicked on by user, ordered according to addition
Instruction to communicating number corresponding to equipment send good friend add request.
Terminal detection good friend adds interface, when the addition order triggered after detecting that addition button is clicked on by user, root
The user that user is obtained according to the instruction of addition order identifies, and user's mark of user is added into good friend adds in request, Xiang Tong
Equipment corresponding to signal code sends good friend and adds request, and the good friend adds user's mark that request carries user.
User's mark can be IM (Instant Messaging, instant messaging) accounts or the communication of user of user
Number etc..
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants to add boundary to good friend
When face inputs communicating number, terminal starts the camera of terminal in good friend adds interface, is shot to obtain by camera
Image, image is detected;When obtaining communicating number by image, then communicating number and dialing interface are shown;Will be logical
Signal code is added to good friend and added in interface, is inputted so as to which user does not have to opening keyboard, shortens input time, improve
Input efficiency.
Embodiment 5
Fig. 5 is a kind of flow of method that communicating number is inputted to communication interface according to an exemplary embodiment
Figure, in the present embodiment, starts the camera of terminal, shoots to obtain image by camera, messenger is obtained by the image
Code, the communicating number is added in communication interface.As shown in figure 5, the method that communicating number is inputted to communication interface is used for eventually
In end, comprise the following steps.
In step S501, start the camera of terminal, shot to obtain image by camera;
Utilizing camera interface is included in the main interface of terminal, when user wants the messenger dialed on advertisement or web page contents
During code, main interface that user opens a terminal, the utilizing camera interface in main interface is clicked on;Utilizing camera interface triggering starts order to eventually
End.The main interface of terminal detection terminal, the startup life triggered after detecting that the utilizing camera interface in main interface is clicked on by user
When making, start the camera of terminal according to the instruction for starting order, shot to obtain image by camera.
Communication interface can be dialing interface, short message interface, good friend's addition interface etc..Terminal can be mobile phone or flat
Plate computer etc..
In step S502, whether numeric string is included in detection image;
Whether numeric string is included in detection image;When including numeric string in image, step S503 is performed;When in image not
During comprising numeric string, step S505 is performed.
Whether it is prior art comprising numeric string in detection image, it is no longer detailed herein.
In step S503, when including numeric string in image, it whether there is position in the numeric string for judging to include in image
Number is the numeric string of presetting digit capacity;
When including numeric string in image, the digit of the numeric string in image is obtained, judges to scheme according to the digit of numeric string
As in the numeric string that includes whether storage bit number be presetting digit capacity numeric string.
When present number is the numeric string of presetting digit capacity in the numeric string included in image, step S504 is performed;Work as figure
When the numeric string that digit is presetting digit capacity being not present in the numeric string included as in, terminate.
Presetting digit capacity can be configured and change according to the digit of communicating number, if communicating number is fixed telephone number
When, presetting digit capacity can be 7 or 8;When communicating number is Mobile Directory Number, presetting digit capacity can be 11;Work as communicating number
For IM accounts when, presetting digit capacity can be 5,6,7,8,9 or 10 etc..
In step S504, when present number is the numeric string of presetting digit capacity, by the numeric string that digit is presetting digit capacity
It is defined as communicating number and determines to include communicating number in image;
When determining to include communicating number in image, step S506 is performed.
In step S505, when not including numeric string in image, the text information in image is obtained, is searched and the word
The corresponding communicating number of information;
A communicating number list is previously stored in terminal, the communicating number list is used to store text information and messenger
The corresponding relation of code.When not including numeric string in image, terminal obtains the text information in image, according to the text information,
Communicating number list is searched, if terminal finds the text information, is obtained and the text information phase from communicating number list
Corresponding communicating number.
If terminal does not find the text information, terminal to server sends the text information in the image, service
The text information that device receiving terminal is sent, according to the word information searching communicating number corresponding with the text information, such as
Fruit whois lookup sends the communication corresponding with the text information to terminal to the communicating number corresponding with the text information
Number;The communicating number corresponding with the text information that terminal the reception server is sent.
If server does not find the communicating number corresponding with the text information, determine with the word not believe
Communicating number corresponding to manner of breathing.
Wherein, the word obtained in image is prior art, no longer detailed herein.
In step S506, communicating number and at least one communication mode are shown;
Show communicating number the step of can be:
The communicating number that image includes is marked in the picture, the image after display mark.
The communicating number that image includes, which is identified, in the picture to be:The messenger that image is included in the picture
Code is framed with square frame or highlights the communicating number included in image, such as the communicating number that image is included highlights
Display, overstriking is shown, italic is shown, underscore is shown or the display that changes colour.
When including multiple communicating numbers in image, respectively by each communication in the multiple communicating numbers included in image
Number is marked.For example, each communicating number included in image is framed with a square frame respectively in the picture or
Each communicating number in the multiple communicating numbers included in image is highlighted.
The step of showing at least one communication mode can be:
Interface corresponding to every kind of communication mode at least one communication mode is obtained, will be connect corresponding to every kind of communication mode
Mouth is suspended on image, user is selected communication mode by interface.
Communication mode can be make a phone call, short-message sending or addition good friend etc..
After user selects communication mode by interface, step S507 is performed.
In step s 507, the communication mode of user's selection is obtained, communicating number is added to the communication mode pair of selection
In the communication interface answered;
If including a communicating number in image, step S507 can be:
The communication mode of user's selection is obtained, the communication according to corresponding to the communication mode of selection obtains the communication mode of selection
Interface;Communicating number is extracted from image, communicating number is added in communication interface corresponding to the communication mode of selection.
If including multiple communicating numbers in image, step S507 can be:
The communicating number of user's selection is obtained, the communication according to corresponding to the communication mode of selection obtains the communication mode of selection
Interface;The communicating number of selection is extracted from image, the communicating number of selection is added to corresponding to the communication mode of selection and led to
Believe in interface.
After terminal adds communicating number in communication interface corresponding to the communication mode of selection, it is somebody's turn to do if user wants modification
Communicating number, the communicating number in communication interface can be changed by following steps (A) to (C), including:
(A):When detecting that user clicks on communicating number, keyboard is shown in communication interface, keyboard includes deleting character
And/or numerical character;
When user wants to change the communicating number, user clicks on the numeral for needing to change in communicating number, and cursor is moved
Move the digital opening position for needing to change;Terminal detection good friend adds interface, when detecting that user clicks on communicating number,
Keyboard is shown in communication interface, keyboard includes deleting character and/or numerical character;User can click on deletion character, delete
Character triggers delete command to terminal, performs step (B);User can also click on numerical character, numerical character triggering addition life
Make to terminal, perform step (C).
(B):When detecting the delete command deleted and triggered after character is clicked on by user, the position of cursor in communication interface is obtained
Put, by the character deletion of the opening position of cursor in communicating number;
User, which clicks on, deletes character, deletes character and triggers delete command to terminal;Terminal detects keyboard, is deleted when detecting
During the delete command that character triggers after being clicked on by user, the position of cursor in communication interface is obtained according to the instruction of delete command,
By the character deletion of the opening position of cursor in communicating number.
(C):When detecting the addition order that numerical character triggers after being clicked on by user, the position of cursor in communication interface is obtained
Put, the opening position for cursor numerical character being added in communicating number.
User clicks on numerical character, and numerical character triggering addition order is to terminal;Terminal detects keyboard, when detecting numeral
During the addition order that character triggers after being clicked on by user, according to addition order instruction obtain communication interface in cursor position with
And the numerical character that user clicks on, the opening position for the cursor numerical character being added in the plus sige code that communicates.
In step S508, communication interface is detected;
When communication interface is dialing interface, the dialing interface includes dialing button;When user wants to dial the messenger
During code, user can be with the dialing button in click to dial interface;Dialing button triggers Dial Number command to terminal;Terminal detection dialing
Interface, when the Dial Number command triggered after detecting that dialing button is clicked on by user, perform step S509.
When communication interface is dialing interface, the dialing interface includes store button;When user wants to store the messenger
During code, user can be with the store button in click to dial interface;Store button triggering storage order is to terminal;Terminal detection dialing
Interface, when the storage order triggered after detecting that store button is clicked on by user, perform step S510.
When communication interface is short message interface, the short message interface includes send button;When user wants to send short disappear
Cease equipment to when, user can input content of short message, click short message circle in short message interface corresponding to the communicating number
Send button in face;Short message button sends commands to terminal;Terminal detection short message interface, when detect send by
During the transmission order that button triggers after being clicked on by user, step S511 is performed.
When communication interface is that good friend adds interface, the good friend adds interface and includes addition button;When user want should
When user corresponding to communicating number is added to the good friend of user, user can click on the addition button in good friend's addition interface;Add
Button triggering good friend is added to add order to terminal;Terminal detection good friend add interface, when detect addition button clicked on by user
During the addition order triggered afterwards, step S512 is performed.
In step S509, when detecting the Dial Number command that dialing button triggers after being clicked on by user, according to Dial Number command
Instruction dial the communicating number, terminate.
The dialing interface of detection terminal, when the Dial Number command triggered after detecting that dialing button is clicked on by user, according to
The instruction of Dial Number command obtains the communicating number of user, sends the first call request to server, first call request carries
The communicating number of user and the communicating number;The first call request that server receiving terminal is sent, sent out according to the communicating number
The second call request is sent to carry the communicating number of user to equipment corresponding to the communicating number, second call request.
In step S510, when detecting the storage order that store button triggers after being clicked on by user, ordered according to storage
Instruction by the address list that includes to terminal of communicating number storage, terminate.
Terminal detects dialing interface, when the storage order triggered after detecting that store button is clicked on by user, according to depositing
The instruction of order is stored up, obtains the associated person information of user's input, the communicating number and the corresponding of the associated person information of input are closed
In the address list that system's storage storage includes to terminal.
In step S511, when detecting the transmission order that send button triggers after being clicked on by user, ordered according to sending
Instruction obtain content of short message in short message interface, send content of short message to equipment corresponding to the communicating number, terminate.
Terminal detection short message interface, when the transmission order triggered after detecting that send button is clicked on by user, according to
The instruction for sending order obtains the communicating number of user, and the communicating number of content of short message and user is encapsulated as into one short disappear
Breath, the short message is sent to equipment corresponding to the communicating number.
In step S512, when detecting the addition order that addition button triggers after being clicked on by user, ordered according to addition
Instruction to communicating number corresponding to equipment send good friend add request.
Terminal detection good friend adds interface, when the addition order triggered after detecting that addition button is clicked on by user, root
The user that user is obtained according to the instruction of addition order identifies, and user's mark of user is added into good friend adds in request, Xiang Tong
Equipment corresponding to signal code sends good friend and adds request, and the good friend adds user's mark that request carries user.
User's mark can be the IM accounts of user or the communicating number etc. of user.
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants defeated to communication interface
When entering communicating number, terminal starts the camera of terminal, is shot to obtain image by camera, image is detected;
When obtaining communicating number by image, then communicating number and at least one communication mode are shown;Obtain the logical of user's selection
Letter mode, communicating number is added in communication interface corresponding to the communication mode of selection, is entered so as to which user does not have to opening keyboard
Row input, shortens input time, improves input efficiency.
Embodiment 6
Fig. 6 is a kind of schematic device that communicating number is inputted to communication interface according to an exemplary embodiment.
Referring to Fig. 6, the device includes:Taking module 601, detection module 602, display module 603 and add module 604.
Taking module 601 is configured to start the camera of terminal, is shot to obtain image by camera;
Detection module 602 is configured to detect image;
Display module 603 is configured to when obtaining communicating number by image, then shows communicating number and extremely
A kind of few communication mode;
Add module 604 is configured to obtain the communication mode of user's selection, and communicating number is added into selection
In communication interface corresponding to communication mode.
Optionally, detection module 602, including:
Detection unit, for whether including numeric string in detection image;
Judging unit, for when including numeric string in image, whether there is position in the numeric string for judging to include in image
Number is the numeric string of presetting digit capacity;
Determining unit, for when present number be presetting digit capacity numeric string when, by digit be presetting digit capacity numeric string
It is defined as communicating number and determines to include communicating number in image.
Optionally, detection module 602, including:
First acquisition unit, for obtaining the text information in image;
Searching unit, for searching the communicating number corresponding with the text information.
Optionally, display module 603, including:
Display unit, for the communicating number that image includes to be marked in the picture, the image after display mark;
Second acquisition unit, for obtaining interface corresponding to every kind of communication mode at least one communication mode;
Floating unit, for interface corresponding to every kind of communication mode to be suspended in into image, it is logical that interface is used for user's selection
Letter mode.
Optionally, if including a communicating number, add module 604, for extracting messenger from image in image
Code, communicating number is added in communication interface corresponding to the communication mode of selection;
If including multiple communicating numbers in image, add module 604, for obtaining the communicating number of user's selection, from
The communicating number of selection is extracted in image, the communicating number of selection is added to communication interface corresponding to the communication mode of selection
In.
Optionally, communication interface is dialing interface, and dialing interface includes dialing button and/or store button, and device also wraps
Include:
Module is dialed, during for detecting Dial Number command that dialing button triggers after being clicked on by user, according to Dial Number command
Instruction dial communicating number;And/or
Memory module, during for detecting storage order that store button triggers after being clicked on by user, ordered according to storage
Instruction by the address list that includes to terminal of communicating number storage.
Optionally, communication interface is short message interface, and short message interface includes send button, and device also includes:
Acquisition module, during for detecting transmission order that send button triggers after being clicked on by user, ordered according to sending
Instruction obtain content of short message in short message interface;
First sending module, for sending content of short message to equipment corresponding to communicating number.
Optionally, communication interface is that good friend adds interface, and good friend adds interface and includes addition button, and device also includes:
Second sending module, when adding the addition order triggered after button is clicked on by user for detecting, according to addition
Equipment corresponding to the instruction to communicating number of order sends good friend and adds request.
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants defeated to communication interface
When entering communicating number, terminal starts the camera of terminal, is shot to obtain image by camera, image is detected;
When obtaining communicating number by image, then communicating number and at least one communication mode are shown;Obtain the logical of user's selection
Letter mode, communicating number is added in communication interface corresponding to the communication mode of selection, is entered so as to which user does not have to opening keyboard
Row input, shortens input time, improves input efficiency.
Embodiment seven
Fig. 7 is a kind of block diagram of terminal 800 according to an exemplary embodiment.For example, terminal 800 can be mobile
Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment,
Personal digital assistant etc..
Reference picture 7, terminal 800 can include following one or more assemblies:Processing component 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
Processing component 802 generally controls the integrated operation of terminal 800, is such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Treatment element 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 802 can include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in terminal 800.These data are shown
Example includes the instruction of any application program or method for being operated in terminal 800, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of terminal 800.Electric power assembly 806 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between the terminal 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When terminal 800 is in operator scheme, such as screening-mode or
During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured as output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when terminal 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 804 or via communication set
Part 816 is sent.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for terminal 800 is commented
Estimate.For example, sensor cluster 814 can detect opening/closed mode of terminal 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of terminal 800, and sensor cluster 814 can be with 800 1 components of detection terminal 800 or terminal
Position change, the existence or non-existence that user contacts with terminal 800, the orientation of terminal 800 or acceleration/deceleration and terminal 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in no any physical contact
The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal 800 and other equipment.Terminal
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 800 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of terminal 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device performs so that mobile terminal is able to carry out a kind of router administration using the compatibility method with router firmware, the side
Method includes:
Start the camera of terminal, shot to obtain image by the camera;
Described image is detected;
When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;
The communication mode of user's selection is obtained, the communicating number is added to corresponding to the communication mode of the selection and led to
Believe in interface.
Optionally, it is described that described image is detected, including:
Whether numeric string is included in detection described image;
With the presence or absence of digit it is pre- in the numeric string for judging to include in described image when including numeric string in described image
If the numeric string of digit;
When present number is the numeric string of presetting digit capacity, digit is defined as communicating number for the numeric string of presetting digit capacity
And determine to include communicating number in described image.
Optionally, it is described that described image is detected, including:
Obtain the text information in image;
Search the communicating number corresponding with the text information.
Optionally, the display communicating number and at least one communication mode, including:
The communicating number that described image includes is marked in described image, the described image after display mark;
Obtain interface corresponding to every kind of communication mode at least one communication mode;
Interface corresponding to every kind of communication mode is suspended on the image, the interface selects for the user
Communication mode.
Optionally, it is described that the communicating number is added in communication interface corresponding to the communication mode of the selection, bag
Include:
If including a communicating number in described image, the communicating number is extracted from described image, will be described logical
Signal code is added in communication interface corresponding to the communication mode of the selection;
If including multiple communicating numbers in described image, the communicating number of user's selection is obtained, from described image
The communicating number of the middle extraction selection, the communicating number of the selection is added to corresponding to the communication mode of the selection and led to
Believe in interface.
Optionally, the communication interface is dialing interface, and the dialing interface includes dialing button and/or store button,
Methods described also includes:
When detecting the Dial Number command that the dialing button triggers after being clicked on by the user, according to the Dial Number command
The communicating number is dialed in instruction;And/or
When detecting the storage order that the store button triggers after being clicked on by the user, according to the storage order
Indicate to store the communicating number in the address list included to the terminal.
Optionally, the communication interface is short message interface, and the short message interface includes send button, and methods described is also
Including:
When detecting the transmission order that the send button triggers after being clicked on by the user, send what is ordered according to described
Indicate to obtain the content of short message in the short message interface;
The content of short message is sent to equipment corresponding to the communicating number.
Optionally, the communication interface is that good friend adds interface, and the good friend adds interface and includes addition button, the side
Method also includes:
When detecting the addition order that the addition button triggers after being clicked on by the user, according to the addition order
Indicate that sending good friend to equipment corresponding to the communicating number adds request.
The technical scheme provided by this disclosed embodiment can include the following benefits:User wants defeated to communication interface
When entering communicating number, terminal starts the camera of terminal, is shot to obtain image by camera, image is detected;
When obtaining communicating number by image, then communicating number and at least one communication mode are shown;Obtain the logical of user's selection
Letter mode, communicating number is added in communication interface corresponding to the communication mode of selection, is entered so as to which user does not have to opening keyboard
Row input, shortens input time, improves input efficiency.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (12)
- A kind of 1. method that communicating number is inputted to communication interface, it is characterised in that methods described includes:Communication interface is detected, utilizing camera interface is included in the communication interface;When the startup order triggered after detecting that the utilizing camera interface is clicked on by user, according to the instruction for starting order Start the camera of terminal, shot to obtain image by the camera;Described image is detected;When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;The communication mode of user's selection is obtained, the communicating number is added to the boundary that communicated corresponding to the communication mode of the selection In face;Wherein, it is described that described image is detected, including:Whether numeric string is included in detection described image;When including numeric string in described image, with the presence or absence of digit for default position in the numeric string for judging to include in described image Several numeric strings, when present number is the numeric string of presetting digit capacity, digit is defined as communicating for the numeric string of presetting digit capacity Number and determine to include communicating number in described image;When not including numeric string in described image, the text information in image is obtained, is searched corresponding with the text information Communicating number;Wherein, the lookup communicating number corresponding with the text information, including:According to the text information, communicating number list is searched, the communicating number list is used to store text information and communication The corresponding relation of number;If finding the text information, the communication corresponding with the text information is obtained from the communicating number list Number;If not finding the text information, the text information is sent to server, so that the server is according to institute State text information, search the communicating number corresponding with the text information, it is receiving the server transmission with the word The corresponding communicating number of information;The display communicating number and at least one communication mode, including:The communicating number that described image includes is marked in described image, the described image after display mark;Obtain interface corresponding to every kind of communication mode at least one communication mode;Interface corresponding to every kind of communication mode is suspended on the image, the interface is used for the user and selects communication Mode.
- 2. the method as described in claim 1, it is characterised in that the communication that the communicating number is added to the selection In communication interface corresponding to mode, including:If including a communicating number in described image, the communicating number is extracted from described image, by the messenger Code is added in communication interface corresponding to the communication mode of the selection;If including multiple communicating numbers in described image, the communicating number of user's selection is obtained, is carried from described image The communicating number of the selection is taken, the communicating number of the selection is added to the boundary that communicated corresponding to the communication mode of the selection In face.
- 3. the method as described in claim 1, it is characterised in that the communication interface is dialing interface, the dialing interface bag Containing dialing button and/or store button, methods described also includes:When detecting the Dial Number command that the dialing button triggers after being clicked on by the user, according to the instruction of the Dial Number command Dial the communicating number;And/orWhen detecting the storage order that the store button triggers after being clicked on by the user, according to the instruction of the storage order In the address list that communicating number storage is included to the terminal.
- 4. the method as described in claim 1, it is characterised in that the communication interface is short message interface, short message circle Bread contains send button, and methods described also includes:When detecting the transmission order that the send button triggers after being clicked on by the user, according to the instruction for sending order Obtain the content of short message in the short message interface;The content of short message is sent to equipment corresponding to the communicating number.
- 5. the method as described in claim 1, it is characterised in that the communication interface is that good friend adds interface, and the good friend adds Interface is added to include addition button, methods described also includes:When detecting the addition order that the addition button triggers after being clicked on by the user, according to the instruction of the addition order Good friend, which is sent, to equipment corresponding to the communicating number adds request.
- 6. a kind of device that communicating number is inputted to communication interface, it is characterised in that described device includes:Taking module, for detecting communication interface, utilizing camera interface is included in the communication interface;When detecting the camera During the startup order that interface triggers after being clicked on by user, start the camera of terminal according to the instruction for starting order, pass through The camera is shot to obtain image;Detection module, for being detected to described image;Display module, for when obtaining communicating number by described image, then showing the communicating number and at least one Communication mode;Add module, for obtaining the communication mode of user's selection, the communicating number is added to the communication party of the selection In communication interface corresponding to formula;Wherein, the detection module, including:Detection unit, for detecting in described image whether include numeric string;Judging unit, for when including numeric string in described image, whether being deposited in the numeric string for judging to include in described image In the numeric string that digit is presetting digit capacity;Determining unit, for when present number is the numeric string of presetting digit capacity, digit to be determined for the numeric string of presetting digit capacity For communicating number and determine to include communicating number in described image;Or the detection module, including:First acquisition unit, for obtaining the text information in image;Searching unit, for searching the communicating number corresponding with the text information;The searching unit, it is additionally operable to, according to the text information, search communicating number list, the communicating number list is used for Store the corresponding relation of text information and communicating number;If finding the text information, from the communicating number list Obtain the communicating number corresponding with the text information;If not finding the text information, institute is sent to server Text information is stated, so that the server according to the text information, searches the communicating number corresponding with the text information, Receive the communicating number corresponding with the text information that the server is sent;The display module, including:Display unit, for the communicating number that described image includes to be marked in described image, the institute after display mark State image;Second acquisition unit, for obtaining interface corresponding to every kind of communication mode at least one communication mode;Floating unit, for interface corresponding to every kind of communication mode to be suspended on the image, the interface is used for institute State user and select communication mode.
- 7. device as claimed in claim 6, it is characterised in thatIf a communicating number, the add module, for extracting the communication from described image are included in described image Number, the communicating number is added in communication interface corresponding to the communication mode of the selection;If including multiple communicating numbers in described image, the add module, for obtaining the messenger of user's selection Code, the communicating number of the selection is extracted from described image, the communicating number of the selection is added to the logical of the selection In communication interface corresponding to letter mode.
- 8. device as claimed in claim 6, it is characterised in that the communication interface is dialing interface, the dialing interface bag Containing dialing button and/or store button, described device also includes:Dial module, for detect the dialing button by the user click on after triggered Dial Number command when, according to described The communicating number is dialed in the instruction of Dial Number command;And/orMemory module, for detect the store button by the user click on after triggered storage order when, according to described Store in the address list that the instruction of order includes communicating number storage to the terminal.
- 9. device as claimed in claim 6, it is characterised in that the communication interface is short message interface, short message circle Bread contains send button, and described device also includes:Acquisition module, for detect the send button by the user click on after triggered transmission order when, according to described Send the content of short message in the instruction acquisition short message interface of order;First sending module, for sending the content of short message to equipment corresponding to the communicating number.
- 10. device as claimed in claim 6, it is characterised in that the communication interface is that good friend adds interface, and the good friend adds Interface is added to include addition button, described device also includes:Second sending module, for detect it is described addition button by the user click on after triggered addition order when, according to Equipment corresponding to the instruction to the communicating number of the addition order sends good friend and adds request.
- A kind of 11. device that communicating number is inputted to communication interface, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:Communication interface is detected, utilizing camera interface is included in the communication interface;When the startup order triggered after detecting that the utilizing camera interface is clicked on by user, according to the instruction for starting order Start the camera of terminal, shot to obtain image by the camera;Described image is detected;When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;The communication mode of user's selection is obtained, the communicating number is added to the boundary that communicated corresponding to the communication mode of the selection In face;Wherein, it is described that described image is detected, including:Whether numeric string is included in detection described image;When including numeric string in described image, with the presence or absence of digit for default position in the numeric string for judging to include in described image Several numeric strings, when present number is the numeric string of presetting digit capacity, digit is defined as communicating for the numeric string of presetting digit capacity Number and determine to include communicating number in described image;When not including numeric string in described image, the text information in image is obtained, is searched corresponding with the text information Communicating number;Wherein, the lookup communicating number corresponding with the text information, including:According to the text information, communicating number list is searched, the communicating number list is used to store text information and communication The corresponding relation of number;If finding the text information, the communication corresponding with the text information is obtained from the communicating number list Number;If not finding the text information, the text information is sent to server, so that the server is according to institute State text information, search the communicating number corresponding with the text information, it is receiving the server transmission with the word The corresponding communicating number of information;The display communicating number and at least one communication mode, including:The communicating number that described image includes is marked in described image, the described image after display mark;Obtain interface corresponding to every kind of communication mode at least one communication mode;Interface corresponding to every kind of communication mode is suspended on the image, the interface is used for the user and selects communication Mode.
- 12. a kind of computer-readable recording medium, computer program is stored with the computer-readable recording medium, its feature It is, following steps is realized when described program is executed by processor:Communication interface is detected, utilizing camera interface is included in the communication interface;When the startup order triggered after detecting that the utilizing camera interface is clicked on by user, according to the instruction for starting order Start the camera of terminal, shot to obtain image by the camera;Described image is detected;When obtaining communicating number by described image, then the communicating number and at least one communication mode are shown;The communication mode of user's selection is obtained, the communicating number is added to the boundary that communicated corresponding to the communication mode of the selection In face;Wherein, it is described that described image is detected, including:Whether numeric string is included in detection described image;When including numeric string in described image, with the presence or absence of digit for default position in the numeric string for judging to include in described image Several numeric strings, when present number is the numeric string of presetting digit capacity, digit is defined as communicating for the numeric string of presetting digit capacity Number and determine to include communicating number in described image;When not including numeric string in described image, the text information in image is obtained, is searched corresponding with the text information Communicating number;Wherein, the lookup communicating number corresponding with the text information, including:According to the text information, communicating number list is searched, the communicating number list is used to store text information and communication The corresponding relation of number;If finding the text information, the communication corresponding with the text information is obtained from the communicating number list Number;If not finding the text information, the text information is sent to server, so that the server is according to institute State text information, search the communicating number corresponding with the text information, it is receiving the server transmission with the word The corresponding communicating number of information;The display communicating number and at least one communication mode, including:The communicating number that described image includes is marked in described image, the described image after display mark;Obtain interface corresponding to every kind of communication mode at least one communication mode;Interface corresponding to every kind of communication mode is suspended on the image, the interface is used for the user and selects communication Mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410433380.8A CN104270491B (en) | 2014-08-28 | 2014-08-28 | To the method and apparatus of communication interface input communicating number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410433380.8A CN104270491B (en) | 2014-08-28 | 2014-08-28 | To the method and apparatus of communication interface input communicating number |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104270491A CN104270491A (en) | 2015-01-07 |
CN104270491B true CN104270491B (en) | 2018-02-02 |
Family
ID=52161979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410433380.8A Active CN104270491B (en) | 2014-08-28 | 2014-08-28 | To the method and apparatus of communication interface input communicating number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104270491B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106487975A (en) * | 2016-10-27 | 2017-03-08 | 北京小米移动软件有限公司 | Dialing method and device |
CN107835313A (en) * | 2017-11-02 | 2018-03-23 | 奇酷互联网络科技(深圳)有限公司 | Carry out method, terminal, readable storage medium storing program for executing and the communicating terminal of dial-up |
CN108462630B (en) * | 2018-02-27 | 2021-07-20 | 维沃移动通信有限公司 | Method and device for searching contact person and mobile terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572113A (en) * | 2012-02-17 | 2012-07-11 | 深圳市金立通信设备有限公司 | System and method for extracting contact person information from texts to operate mobile phone |
CN102761668A (en) * | 2012-07-13 | 2012-10-31 | 青岛海信传媒网络技术有限公司 | Method and device for dialing telephone call based on telephone number information in pictures |
CN103945033A (en) * | 2013-01-20 | 2014-07-23 | 上海博路信息技术有限公司 | Method of calling based on optical character recognition |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6594503B1 (en) * | 2000-02-02 | 2003-07-15 | Motorola, Inc. | Communication device with dial function using optical character recognition, and method |
-
2014
- 2014-08-28 CN CN201410433380.8A patent/CN104270491B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572113A (en) * | 2012-02-17 | 2012-07-11 | 深圳市金立通信设备有限公司 | System and method for extracting contact person information from texts to operate mobile phone |
CN102761668A (en) * | 2012-07-13 | 2012-10-31 | 青岛海信传媒网络技术有限公司 | Method and device for dialing telephone call based on telephone number information in pictures |
CN103945033A (en) * | 2013-01-20 | 2014-07-23 | 上海博路信息技术有限公司 | Method of calling based on optical character recognition |
Also Published As
Publication number | Publication date |
---|---|
CN104270491A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104270498B (en) | To the method and apparatus of communication interface input communication number | |
CN105138259B (en) | Operation executes method and device | |
CN104735243B (en) | Contact list displaying method and device | |
CN106648575A (en) | Language setting method and apparatus | |
CN105162937A (en) | Incoming call information processing method and device | |
CN105530167B (en) | The setting method and device of group's business card | |
CN105389113B (en) | Application control method, apparatus based on gesture and terminal | |
CN104602275B (en) | Client identification module SIM card switching method and device | |
CN104539786B (en) | Terminal dialing method, device and equipment | |
CN107423386A (en) | Generate the method and device of electronic card | |
CN104298902B (en) | A kind of display methods of application program, device and equipment | |
CN105550235A (en) | Information acquisition method and information acquisition apparatuses | |
CN104270491B (en) | To the method and apparatus of communication interface input communicating number | |
CN106648134A (en) | Input method and device | |
CN108011990A (en) | Contact management method and device | |
CN107493366A (en) | Address list information update method, device and storage medium | |
CN103986815A (en) | Mistaken-dialing-resisting method and device | |
CN104156344B (en) | Method for editing text and device | |
CN107229707A (en) | Search for the method and device of image | |
CN106101464A (en) | Number mark method and device | |
CN108984098A (en) | The control method and device that information based on social software is shown | |
CN104780256A (en) | Address book management method and device and intelligent terminal | |
CN105094510A (en) | Text processing method, device and system | |
CN105488074A (en) | Photo clustering method and device | |
CN105335058A (en) | Method for automatically completing event and device for automatically completing event |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |