CN110516493A - A kind of barcode scanning method and mobile terminal - Google Patents
A kind of barcode scanning method and mobile terminal Download PDFInfo
- Publication number
- CN110516493A CN110516493A CN201810494003.3A CN201810494003A CN110516493A CN 110516493 A CN110516493 A CN 110516493A CN 201810494003 A CN201810494003 A CN 201810494003A CN 110516493 A CN110516493 A CN 110516493A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen
- camera
- payment
- graphic code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of barcode scanning method and mobile terminal, this method comprises: passing through the camera in the case where the mobile terminal is in and puts out screen state and acquiring graphic code;In the case where the screen of the mobile terminal is in low power operation state, show the corresponding interface of the graphic code, wherein, the operation power that the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal is less than state when predetermined power.In this way, in the case where mobile terminal is in and puts out screen state graphic code can be acquired by camera.And then the corresponding interface of graphic code can be shown in the case where the screen of mobile terminal is in low power operation state.The power consumption of mobile terminal can be reduced.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of barcode scanning method and mobile terminals.
Background technique
Currently, the function that mobile terminal has is more and more diversified, the camera that mobile terminal can be used in user is swept
Trace designs shape code, and then can execute delivery operation.Alternatively, corresponding public platform of graphic code etc. can be paid close attention to.In the prior art,
Process using mobile terminal identification graphic code compares power consumption.For example, firstly, user needs to unlock mobile terminal.Then, bright
Under screen state, need to open scanning figure shape code function, alignment patterns code is identified.Graphic code of every identification is it is necessary to repetition
Above-mentioned steps are primary.Therefore, in the prior art, compare power consumption using the process of mobile terminal identification graphic code.
Summary of the invention
The embodiment of the present invention provides a kind of barcode scanning method and mobile terminal, to solve to use mobile terminal in the prior art
The problem of process of identification graphic code compares power consumption.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of barcode scanning method, applied to the mobile terminal with camera, institute
The method of stating includes:
In the case where the mobile terminal is in and puts out screen state, graphic code is acquired by the camera;
In the case where the screen of the mobile terminal is in low power operation state, the corresponding boundary of the graphic code is shown
Face, wherein the operation power that the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal is small
State when predetermined power.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, and the mobile terminal has camera, the shifting
Dynamic terminal includes:
Acquisition module, for being acquired and being schemed by the camera in the case where the mobile terminal is in and puts out screen state
Shape code;
First display module, for showing in the case where the screen of the mobile terminal is in low power operation state
The corresponding interface of the graphic code, wherein it is the mobile terminal that the screen of the mobile terminal, which is in low power operation state,
Screen operation power be less than predetermined power when state.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
The step of existing above-mentioned barcode scanning method.
Fourth aspect, the embodiment of the present invention also provides a kind of computer-readable storage medium, described computer-readable
Computer program is stored on storage medium, the computer program realizes the step of above-mentioned barcode scanning method when being executed by processor
Suddenly.
In this way, in the case where the mobile terminal is in and puts out screen state, passing through the camera in the embodiment of the present invention
Acquire graphic code;In the case where the screen of the mobile terminal is in low power operation state, show that the graphic code is corresponding
Interface, wherein the screen of the mobile terminal be in low power operation state be the mobile terminal screen operation function
Rate is less than state when predetermined power.In this way, can be acquired by camera in the case where mobile terminal is in and puts out screen state
Graphic code.And then the corresponding boundary of graphic code can be shown in the case where the screen of mobile terminal is in low power operation state
Face.The power consumption of mobile terminal can be reduced.
Detailed description of the invention
Fig. 1 is a kind of flow chart of barcode scanning method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram provided in an embodiment of the present invention that payment amount is shown in payment interface;
Fig. 3 is the flow chart of another barcode scanning method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram provided in an embodiment of the present invention that payment verification is carried out by password;
Fig. 5 is the schematic diagram of payment information of the display comprising payment amount provided in an embodiment of the present invention;
Fig. 6 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Fig. 9 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 10 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 11 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 12 is a kind of hardware structural diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is a kind of flow chart of barcode scanning method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to that there is camera
Mobile terminal.As shown in Figure 1, comprising the following steps:
Step 101, the mobile terminal be in put out screen state in the case where, pass through the camera acquire graphic code.
In a step 101, in the case where mobile terminal is in and puts out screen state, graphic code can be acquired by camera,
It by the lasting acquisition image of camera and can be parsed.
Step 102, in the case where the screen of the mobile terminal is in low power operation state, show the graphic code
Corresponding interface, wherein the screen of the mobile terminal is in the fortune for the screen that low power operation state is the mobile terminal
Row power is less than state when predetermined power.
In a step 102, in the case where the screen of mobile terminal is in low power operation state, graphic code can be shown
Corresponding interface.Wherein, it is small for the operation power of the screen of mobile terminal to be in low power operation state for the screen of mobile terminal
State when predetermined power.
For example, can be in the screen of mobile terminal if the graphic code scanned is the graphic code of type of payment
In the case where low power operation state, the corresponding payment interface of display graphic code.Payment amount can be inputted in the payment interface.
As shown in Fig. 2, to input the schematic diagram of payment amount in payment interface.It should be noted that in the prior art, user wants logical
When the mode of overscanning graphic code is paid, need first to unlock mobile terminal.Then, need to start payment application.Next,
Need to open the scanning figure shape code function of payment application, alignment patterns code is identified.After showing payment interface, user is needed
The amount of money is inputted, payment verification is also carried out.Operating procedure is more, and process is comparatively laborious.And graphic code is identified using mobile terminal
Process compare power consumption.And in the present invention, in the case where mobile terminal is in and puts out screen state, it can be acquired and be schemed by camera
Shape code.If collected graphic code is the graphic code of type of payment, low power operation can be in the screen of mobile terminal
In the case where state, the corresponding payment interface of display graphic code.It eliminates unlock mobile terminal, starting payment application, open branch
Pay application scanning figure shape code function, alignment patterns code carry out a series of cumbersome operating procedures such as identifying, simplify by sweeping
The operating process that the mode of tracing shape code is paid, it is convenient and efficient.And the power consumption of mobile terminal can be reduced.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
The barcode scanning method of the embodiment of the present invention, applied to the mobile terminal with camera.It is in the mobile terminal
In the case where putting out screen state, graphic code is acquired by the camera;Low power operation is in the screen of the mobile terminal
In the case where state, the corresponding interface of the graphic code is shown, wherein the screen of the mobile terminal is in low power operation shape
State is the state of the screen of the mobile terminal run when power is less than predetermined power.Screen is put out in this way, being in mobile terminal
In the case where state, graphic code can be acquired by camera.And then low power operation can be in the screen of mobile terminal
In the case where state, the corresponding interface of display graphic code.The power consumption of mobile terminal can be reduced.
It is the flow chart of another barcode scanning method provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, is applied to that there is camera shooting
The mobile terminal of head.If the main distinction of the present embodiment and previous embodiment is to illustrate and pay successfully, can
To export the process of the payment information comprising payment amount.As shown in Figure 3, comprising the following steps:
Step 301, the mobile terminal be in put out screen state in the case where, pass through the camera acquire graphic code.
In step 301, in the case where mobile terminal is in and puts out screen state, graphic code can be acquired by camera,
It by the lasting acquisition image of camera and can be parsed.
Optionally, before described the step of acquiring graphic code by the camera, the method also includes:
Detect the brightness value of external environment;
It is described that graphic code is acquired by the camera, comprising:
If the brightness value of the external environment is more than or equal to preset first threshold value, the camera is opened, and lead to
Cross the camera acquisition graphic code.
It should be noted that open camera, and by camera acquisition graphic code before, mobile terminal can pass through
The brightness value of light-sensitive element detection external environment.And then mobile terminal may determine that the brightness value of external environment whether be greater than or
Equal to preset first threshold value.If mobile terminal judges that the brightness value of external environment is more than or equal to preset first threshold value,
Camera can be then opened, and graphic code is acquired by camera.In this way, can just open camera shooting when external environment is brighter
Head is scanned.It can guarantee the image quality of camera, unnecessary power consumption can also be reduced.
Optionally, before described the step of acquiring graphic code by the camera, the method also includes:
Judge in front of the screen of the mobile terminal with the presence or absence of object;
It is described that graphic code is acquired by the camera, comprising:
If in front of the screen of the mobile terminal, there are objects, and between the object and the screen of the mobile terminal
Distance value is more than or equal to default second threshold, then opens the camera, and acquire graphic code by the camera.
Before opening camera, and acquire graphic code by camera, mobile terminal can also be passed by infrared distance
Sensor judges in front of the screen of mobile terminal with the presence or absence of object.If, can be with there are object in front of the screen of mobile terminal
Determine the distance between the screen of object and mobile terminal value.If above-mentioned distance value is more than or equal to default second threshold,
Camera can be then opened, and graphic code is acquired by camera.In this way, when judging that mobile terminal is not obscured by an object,
Camera can be just opened, and is scanned by camera.Mobile terminal is placed in pocket or when in bag, would not open
Camera.Unnecessary power consumption can be reduced.
Step 302, in the case where the screen of the mobile terminal is in low power operation state, show the graphic code
Corresponding payment interface, wherein the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal
Operation power be less than predetermined power when state.
In step 302, in the case where the screen of mobile terminal is in low power operation state, graphic code can be shown
Corresponding interface.Wherein, it is small for the operation power of the screen of mobile terminal to be in low power operation state for the screen of mobile terminal
State when predetermined power.
For example, can be in the screen of mobile terminal if the graphic code scanned is the graphic code of type of payment
In the case where low power operation state, the corresponding payment interface of display graphic code.
Step 303, the target input for receiving user.
In step 303, it can receive the target input of user.
Step 304 is inputted in response to the target, shows payment amount in the payment interface.
In step 304, it is inputted in response to the target received, can show payment amount in payment interface.Still with Fig. 2
For, as shown in Fig. 2, for the schematic diagram for showing payment amount in payment interface.It, can be with when payment interface shows payment amount
Mode by voice input, can also be by way of touch-screen input or in such a way that writing pencil inputs.
Optionally, after the step of payment interface shows payment amount, if paying successfully described, packet is exported
Before the step of payment information containing the payment amount, the method also includes:
In the case where the screen of the mobile terminal is in low power operation state, whether validation of payment succeeds.
It should be noted that after payment interface shows payment amount low function can be in the screen of mobile terminal
In the case where consuming operating status, whether validation of payment succeeds.If validation of payment success, can determine and pay successfully.In this way,
The safety that can be guaranteed payment.
The mode of payment verification can there are many, for example, speech verification mode, fingerprint authentication mode, recognition of face verifying
Mode or password authentification mode etc..As shown in figure 4, to carry out the schematic diagram of payment verification by password.It is shown in Fig. 4
, can be by way of touch-screen input when inputting password in interface, it can also be in such a way that writing pencil inputs.
Optionally, the target input for receiving user, comprising:
Receive the voice messaging of user's input;
Whether the validation of payment succeeds, comprising:
Judge whether the voice messaging of user's input matches with default voice messaging;
If the voice messaging of user's input matches with the default voice messaging, it is determined that payment verification success.
As previously mentioned, when payment interface inputs payment amount, it can be in a manner of by voice input.Mobile terminal can be with
Receive the voice messaging of user's input.And then the voice messaging that mobile terminal is inputted in response to user, it can be aobvious in payment interface
Show payment amount.Meanwhile mobile terminal may determine that whether the voice messaging of user's input matches with default voice messaging.If
Mobile terminal judges that the voice messaging of user's input matches with default voice messaging, then can determine payment verification success.
In this way, payment verification can be carried out while payment interface inputs payment amount, reduces operating procedure, further simplify
Payment process.
It should be noted that mobile terminal can also be without payment verification, in this way, inputting payment amount in payment interface
Later, success will be paid.
If step 305 is paid successfully, output includes the payment information of the payment amount.
In step 305, if paid successfully, the payment information comprising payment amount can be exported.For example, can lead to
The mode of voice broadcast is crossed, can also be shown in the case where the screen of mobile terminal is in low power operation state comprising branch
Pay the payment information of the amount of money.As shown in figure 5, the schematic diagram of the payment information for display comprising payment amount.In this way, paying successfully
Later, can prompt user includes the payment information of payment amount, and user is made to be apparent that the details of this payment,
And prompting mode multiplicity, it is convenient and efficient.
The barcode scanning method of the embodiment of the present invention, applied to the mobile terminal with camera.It is in mobile terminal and puts out screen
In the case where state, graphic code can be acquired by camera.And then low power operation can be in the screen of mobile terminal
In the case where state, the corresponding interface of display graphic code.The power consumption of mobile terminal can be reduced.If the graphic code scanned is
The graphic code of type of payment then can show graphic code in the case where the screen of mobile terminal is in low power operation state
Corresponding payment interface.Cumbersome payment step is avoided, it is convenient and efficient.Further, it if paid successfully, can also export
Payment information comprising payment amount makes user be apparent that the details of this payment, and prompting mode multiplicity, side
Just quick.
It is the structure chart that the present invention implements the mobile terminal provided referring to Fig. 6, Fig. 6, the mobile terminal has camera.
As shown in fig. 6, mobile terminal 600 includes acquisition module 601 and the first display module 602, in which:
Acquisition module 601, for being acquired by the camera in the case where the mobile terminal is in and puts out screen state
Graphic code;
First display module 602, for showing in the case where the screen of the mobile terminal is in low power operation state
Show the corresponding interface of the graphic code, wherein it is described mobile whole that the screen of the mobile terminal, which is in low power operation state,
The operation power of the screen at end is less than state when predetermined power.
Optionally, as shown in fig. 7, first display module 602 is specifically used for showing the corresponding payment of the graphic code
Interface;
The mobile terminal further include:
Receiving module 603, the target for receiving user input;
Second display module 604 shows payment amount in the payment interface for inputting in response to the target;
Output module 605, if output includes the payment information of the payment amount for paying successfully.
Optionally, as shown in figure 8, the mobile terminal further include:
Authentication module 606, for verifying branch in the case where the screen of the mobile terminal is in low power operation state
It pays and whether succeeds.
Optionally, as shown in figure 9, the receiving module 603 is specifically used for receiving the voice messaging of user's input;
The authentication module 606 includes:
Judging submodule 6061, for judging whether the voice messaging of user's input matches with default voice messaging;
Submodule 6062 is determined, if the voice messaging for user's input matches with the default voice messaging, really
Determine payment verification success.
Optionally, as shown in Figure 10, the mobile terminal further include:
Detection module 607, for detecting the brightness value of external environment;
If the brightness value that the acquisition module 601 is specifically used for the external environment is more than or equal to default first threshold
Value then opens the camera, and acquires graphic code by the camera.
Optionally, as shown in figure 11, the mobile terminal further include:
Judgment module 608, for judging the screen front of the mobile terminal with the presence or absence of object;
If the acquisition module 601 is specifically used in front of the screen of the mobile terminal there are object, and the object with
The distance between screen of mobile terminal value is more than or equal to default second threshold, then opens the camera, and lead to
Cross the camera acquisition graphic code.
Mobile terminal 600 can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1 and Fig. 3, to keep away
Exempt to repeat, which is not described herein again.And mobile terminal 600 may be implemented in the case where mobile terminal is in and puts out screen state, it can be with
Graphic code is acquired by camera.And then it can be shown in the case where the screen of mobile terminal is in low power operation state
The corresponding interface of graphic code.The power consumption of mobile terminal can be reduced.If the graphic code scanned is the graphic code of type of payment,
Then the corresponding payment interface of graphic code can be shown in the case where the screen of mobile terminal is in low power operation state.It keeps away
Exempt from cumbersome payment step, it is convenient and efficient.Further, if paid successfully, the branch comprising payment amount can also be exported
Information is paid, user is made to be apparent that the details of this payment, and prompting mode multiplicity, it is convenient and efficient.
A kind of hardware structural diagram of Figure 12 mobile terminal of each embodiment to realize the present invention.
The mobile terminal 1200 includes but is not limited to: radio frequency unit 1201, network module 1202, audio output unit
1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, storage
The components such as device 1209, processor 1210 and power supply 1211.It will be understood by those skilled in the art that being moved shown in Figure 12
Terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, or
Combine certain components or different component layouts.In embodiments of the present invention, mobile terminal includes but is not limited to mobile phone, puts down
Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 1210, for being acquired by the camera in the case where the mobile terminal is in and puts out screen state
Graphic code;
In the case where the screen of the mobile terminal is in low power operation state, the corresponding boundary of the graphic code is shown
Face, wherein the operation power that the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal is small
State when predetermined power.
In the case where mobile terminal is in and puts out screen state, graphic code can be acquired by camera.And then it can move
In the case that the screen of dynamic terminal is in low power operation state, the corresponding interface of display graphic code.Mobile terminal can be reduced
Power consumption.If the graphic code scanned is the graphic code of type of payment, low-power consumption can be in the screen of mobile terminal
In the case where operating status, the corresponding payment interface of display graphic code.Cumbersome payment step is avoided, it is convenient and efficient.Into one
Step, if paid successfully, the payment information comprising payment amount can also be exported, user is made to be apparent that this payment
Details, and prompting mode multiplicity, it is convenient and efficient.
It should be understood that the embodiment of the present invention in, radio frequency unit 1201 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 1210 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 1201 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1201 can also by wireless communication system and network and other
Equipment communication.
Mobile terminal provides wireless broadband internet by network module 1202 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 1203 can be received by radio frequency unit 1201 or network module 1202 or in memory
The audio data stored in 1209 is converted into audio signal and exports to be sound.Moreover, audio output unit 1203 can be with
Audio output relevant to the specific function that mobile terminal 1200 executes is provided (for example, call signal receives sound, message sink
Sound etc.).Audio output unit 1203 includes loudspeaker, buzzer and receiver etc..
Input unit 1204 is for receiving audio or video signal.Input unit 1204 may include graphics processor
(Graphics Processing Unit, GPU) 12041 and microphone 12042, graphics processor 12041 are captured in video
In mode or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into
Row processing.Treated, and picture frame may be displayed on display unit 1206.Through treated the picture frame of graphics processor 12041
It can store in memory 1209 (or other storage mediums) or carried out via radio frequency unit 1201 or network module 1202
It sends.Microphone 12042 can receive sound, and can be audio data by such acoustic processing.Audio that treated
Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1201 in the case where telephone calling model
Formula output.
Mobile terminal 1200 further includes at least one sensor 1205, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 12061, proximity sensor can when mobile terminal 1200 is moved in one's ear,
Close display panel 12061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile terminal appearance when static
State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion)
Deng;Sensor 1205 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas
Meter, hygrometer, thermometer, infrared sensor etc. are pressed, details are not described herein.
Display unit 1206 is for showing information input by user or being supplied to the information of user.Display unit 1206 can
Including display panel 12061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used
Forms such as (Organic Light-Emitting Diode, OLED) are managed to configure display panel 12061.
User input unit 1207 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 1207 include touch panel 12071 with
And other input equipments 12072.Touch panel 12071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 12071 or in touch panel
Operation near 12071).Touch panel 12071 may include both touch detecting apparatus and touch controller.Wherein, it touches
The touch orientation of detection device detection user is touched, and detects touch operation bring signal, transmits a signal to touch controller;
Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1210,
It receives the order that processor 1210 is sent and is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The multiple types such as sound wave realize touch panel 12071.In addition to touch panel 12071, user input unit 1207 can also include
Other input equipments 12072.Specifically, other input equipments 12072 can include but is not limited to physical keyboard, function key (ratio
Such as volume control button, switch key), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 12071 can be covered on display panel 12061, when touch panel 12071 detects
After touch operation on or near it, processor 1210 is sent to determine the type of touch event, is followed by subsequent processing device 1210
Corresponding visual output is provided on display panel 12061 according to the type of touch event.Although in Figure 12, touch panel
12071 and display panel 12061 are the functions that outputs and inputs of realizing mobile terminal as two independent components, but
In some embodiments, touch panel 12071 can be integrated with display panel 12061 and realize outputting and inputting for mobile terminal
Function, specifically herein without limitation.
Interface unit 1208 is the interface that external device (ED) is connect with mobile terminal 1200.For example, external device (ED) may include
Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card
Port, port, the port audio input/output (I/O), video i/o port, earphone for connecting the device with identification module
Port etc..Interface unit 1208 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously
And by one or more elements that the input received is transferred in mobile terminal 1200 or it can be used in mobile terminal
Data are transmitted between 1200 and external device (ED).
Memory 1209 can be used for storing software program and various data.Memory 1209 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as
Sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to mobile phone
Such as audio data, phone directory) etc..In addition, memory 1209 may include high-speed random access memory, it can also include non-
Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1210 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 1209, and calls and is stored in storage
Data in device 1209 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 1210 may include one or more processing units;Preferably, processor 1210 can integrate application processor and modulation /demodulation
Processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor master
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1210.
Mobile terminal 1200 can also include the power supply 1211 (such as battery) powered to all parts, it is preferred that power supply
1211 can be logically contiguous by power-supply management system and processor 1210, to realize that management is filled by power-supply management system
The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1200 includes some unshowned functional modules, details are not described herein.
Optionally, processor 1210 is also used to:
Show the corresponding payment interface of the graphic code;
Receive the target input of user;
It is inputted in response to the target, shows payment amount in the payment interface;
If paying successfully, output includes the payment information of the payment amount.
Optionally, processor 1210 is also used to:
In the case where the screen of the mobile terminal is in low power operation state, whether validation of payment succeeds.
Optionally, processor 1210 is also used to:
Receive the voice messaging of user's input;
Judge whether the voice messaging of user's input matches with default voice messaging;
If the voice messaging of user's input matches with the default voice messaging, it is determined that payment verification success.
Optionally, processor 1210 is also used to:
Detect the brightness value of external environment;
If the brightness value of the external environment is more than or equal to preset first threshold value, the camera is opened, and lead to
Cross the camera acquisition graphic code.
Optionally, processor 1210 is also used to:
Judge in front of the screen of the mobile terminal with the presence or absence of object;
If in front of the screen of the mobile terminal, there are objects, and between the object and the screen of the mobile terminal
Distance value is more than or equal to default second threshold, then opens the camera, and acquire graphic code by the camera.
Mobile terminal 1200 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, this
In repeat no more.And mobile terminal 1200 may be implemented that camera shooting can be passed through in the case where mobile terminal is in and puts out screen state
Head acquisition graphic code.And then graphic code pair can be shown in the case where the screen of mobile terminal is in low power operation state
The interface answered.The power consumption of mobile terminal can be reduced.It, can be if the graphic code scanned is the graphic code of type of payment
In the case that the screen of mobile terminal is in low power operation state, the corresponding payment interface of display graphic code.It avoids cumbersome
Payment step, it is convenient and efficient.Further, if paid successfully, the payment information comprising payment amount can also be exported, is made
User is apparent that the details of this payment, and prompting mode multiplicity, convenient and efficient.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1210, memory 1209, storage
On memory 1209 and the computer program that can run on the processor 1210, the computer program is by processor 1210
Each process of above-mentioned barcode scanning embodiment of the method is realized when execution, and can reach identical technical effect, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned barcode scanning embodiment of the method when being executed by processor, and can reach
Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a mobile terminal (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (13)
1. a kind of barcode scanning method, applied to the mobile terminal with camera, which is characterized in that the described method includes:
In the case where the mobile terminal is in and puts out screen state, graphic code is acquired by the camera;
In the case where the screen of the mobile terminal is in low power operation state, the corresponding interface of the graphic code is shown,
Wherein, the operation power that the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal is less than pre-
If state when power.
2. the method as described in claim 1, which is characterized in that described to show the corresponding interface of the graphic code, comprising:
Show the corresponding payment interface of the graphic code;
After the display graphic code corresponding payment interface the step of, the method also includes:
Receive the target input of user;
It is inputted in response to the target, shows payment amount in the payment interface;
If paying successfully, output includes the payment information of the payment amount.
3. method according to claim 2, which is characterized in that after the step of payment interface shows payment amount,
If being paid successfully described, before output the step of including the payment information of the payment amount, the method also includes:
In the case where the screen of the mobile terminal is in low power operation state, whether validation of payment succeeds.
4. method as claimed in claim 3, which is characterized in that the target input for receiving user, comprising:
Receive the voice messaging of user's input;
Whether the validation of payment succeeds, comprising:
Judge whether the voice messaging of user's input matches with default voice messaging;
If the voice messaging of user's input matches with the default voice messaging, it is determined that payment verification success.
5. method according to any one of claims 1 to 4, which is characterized in that scheme in described acquired by the camera
Before the step of shape code, the method also includes:
Detect the brightness value of external environment;
It is described that graphic code is acquired by the camera, comprising:
If the brightness value of the external environment is more than or equal to preset first threshold value, the camera is opened, and pass through institute
State camera acquisition graphic code.
6. method according to any one of claims 1 to 4, which is characterized in that scheme in described acquired by the camera
Before the step of shape code, the method also includes:
Judge in front of the screen of the mobile terminal with the presence or absence of object;
It is described that graphic code is acquired by the camera, comprising:
If there are object in front of the screen of the mobile terminal, and the distance between the screen of the object and the mobile terminal
Value is more than or equal to default second threshold, then opens the camera, and acquire graphic code by the camera.
7. a kind of mobile terminal, the mobile terminal has camera, which is characterized in that the mobile terminal includes:
Acquisition module, for acquiring graphic code by the camera in the case where the mobile terminal is in and puts out screen state;
First display module, in the case where the screen of the mobile terminal is in low power operation state, described in display
The corresponding interface of graphic code, wherein the screen of the mobile terminal is in the screen that low power operation state is the mobile terminal
The operation power of curtain is less than state when predetermined power.
8. mobile terminal as claimed in claim 7, which is characterized in that first display module is specifically used for showing the figure
The corresponding payment interface of shape code;
The mobile terminal further include:
Receiving module, the target for receiving user input;
Second display module shows payment amount in the payment interface for inputting in response to the target;
Output module, if output includes the payment information of the payment amount for paying successfully.
9. mobile terminal as claimed in claim 8, which is characterized in that the mobile terminal further include:
Authentication module, in the case where the screen of the mobile terminal is in low power operation state, whether validation of payment
Success.
10. mobile terminal as claimed in claim 9, which is characterized in that the receiving module is specifically used for receiving user's input
Voice messaging;
The authentication module includes:
Judging submodule, for judging whether the voice messaging of user's input matches with default voice messaging;
Submodule is determined, if the voice messaging for user's input matches with the default voice messaging, it is determined that payment is tested
It demonstrate,proves successfully.
11. the mobile terminal as described in any one of claim 7 to 10, which is characterized in that the mobile terminal further include:
Detection module, for detecting the brightness value of external environment;
If the brightness value that the acquisition module is specifically used for the external environment is more than or equal to preset first threshold value, open
The camera, and graphic code is acquired by the camera.
12. the mobile terminal as described in any one of claim 7 to 10, which is characterized in that the mobile terminal further include:
Judgment module, for judging the screen front of the mobile terminal with the presence or absence of object;
If the acquisition module is specifically used in front of the screen of the mobile terminal, there are objects, and the object and the movement
The distance between screen of terminal value is more than or equal to default second threshold, then opens the camera, and take the photograph by described
As head acquires graphic code.
13. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor
Any one of described in barcode scanning method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810494003.3A CN110516493A (en) | 2018-05-22 | 2018-05-22 | A kind of barcode scanning method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810494003.3A CN110516493A (en) | 2018-05-22 | 2018-05-22 | A kind of barcode scanning method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110516493A true CN110516493A (en) | 2019-11-29 |
Family
ID=68621922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810494003.3A Pending CN110516493A (en) | 2018-05-22 | 2018-05-22 | A kind of barcode scanning method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110516493A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203057299U (en) * | 2012-09-29 | 2013-07-10 | 信利光电(汕尾)有限公司 | Camera module |
CN104820921A (en) * | 2015-03-24 | 2015-08-05 | 百度在线网络技术(北京)有限公司 | Method and device for transaction in user equipment |
CN106157023A (en) * | 2016-06-30 | 2016-11-23 | 乐视控股(北京)有限公司 | A kind of method of payment and user terminal |
CN107633164A (en) * | 2017-09-28 | 2018-01-26 | 珠海市魅族科技有限公司 | Pay control method, device, computer installation and computer-readable recording medium |
-
2018
- 2018-05-22 CN CN201810494003.3A patent/CN110516493A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203057299U (en) * | 2012-09-29 | 2013-07-10 | 信利光电(汕尾)有限公司 | Camera module |
CN104820921A (en) * | 2015-03-24 | 2015-08-05 | 百度在线网络技术(北京)有限公司 | Method and device for transaction in user equipment |
CN106157023A (en) * | 2016-06-30 | 2016-11-23 | 乐视控股(北京)有限公司 | A kind of method of payment and user terminal |
CN107633164A (en) * | 2017-09-28 | 2018-01-26 | 珠海市魅族科技有限公司 | Pay control method, device, computer installation and computer-readable recording medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109710132A (en) | Method of controlling operation thereof and terminal | |
CN109151180A (en) | A kind of object identifying method and mobile terminal | |
CN108304105A (en) | A kind of application interface starts method, mobile terminal | |
CN109284150A (en) | A kind of method and terminal starting application program | |
CN107808084A (en) | A kind of touch operation method and mobile terminal | |
CN107679514A (en) | A kind of face identification method and electronic equipment | |
CN110516488A (en) | A kind of barcode scanning method and mobile terminal | |
CN109993010A (en) | A kind of information display method and mobile terminal | |
CN109544172A (en) | A kind of display methods and terminal device | |
CN110457888A (en) | A kind of verifying code imput method, device, electronic equipment and storage medium | |
CN109981904A (en) | A kind of method for controlling volume and terminal device | |
CN110018805A (en) | A kind of display control method and mobile terminal | |
CN109886686A (en) | A kind of safe payment method, equipment and computer readable storage medium | |
CN109756621A (en) | A kind of two-dimensional code display method and terminal device | |
CN110213438A (en) | A kind of processing method and terminal device of application program | |
CN110312035A (en) | A kind of control method of terminal, mobile terminal and computer readable storage medium | |
CN110287655A (en) | A kind of verifying code imput method, device and mobile terminal | |
CN109800606A (en) | A kind of display control method and mobile terminal | |
CN110516495A (en) | A kind of barcode scanning method and mobile terminal | |
CN109285002A (en) | A kind of graphical identification code display methods and mobile terminal | |
CN110517034A (en) | A kind of object identifying method and mobile terminal | |
CN109218984A (en) | A kind of method for tracing and mobile terminal | |
CN110519443A (en) | A kind of bright screen method and mobile terminal | |
CN108055400A (en) | A kind of wallpaper switching method and mobile terminal | |
CN107895108A (en) | A kind of operation management method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |
|
RJ01 | Rejection of invention patent application after publication |