CN109033912A - A kind of recognition methods of identification code and mobile terminal - Google Patents

A kind of recognition methods of identification code and mobile terminal Download PDF

Info

Publication number
CN109033912A
CN109033912A CN201810825987.9A CN201810825987A CN109033912A CN 109033912 A CN109033912 A CN 109033912A CN 201810825987 A CN201810825987 A CN 201810825987A CN 109033912 A CN109033912 A CN 109033912A
Authority
CN
China
Prior art keywords
identification code
mobile terminal
area ratio
occupied area
photographing module
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
Application number
CN201810825987.9A
Other languages
Chinese (zh)
Inventor
周耀敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810825987.9A priority Critical patent/CN109033912A/en
Publication of CN109033912A publication Critical patent/CN109033912A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (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 invention discloses a kind of recognition methods of identification code and mobile terminal, the recognition methods includes: to determine whether occupied area ratio of the identification code in barcode scanning frame is less than preset value in the case where putting out screen state;If so, adjusting the focal length of the photographing module to increase the occupied area ratio to more than be equal to the preset value;It controls the photographing module and scans the identification code, and identify the identification code that scanning is arrived.By means of the invention it is possible to promote recognition speed, discrimination and the convenience of mobile terminal identification identification code.

Description

A kind of recognition methods of identification code and mobile terminal
Technical field
The present invention relates to the recognition methods of field of terminal more particularly to a kind of identification code and mobile terminals.
Background technique
With the development of science and technology and the increase of people's demand, mobile terminal (for example, mobile phone) have become generality and disappear Take electronic product, the barcode scanning function of mobile terminal has been deep into daily life, for example, barcode scanning payment, barcode scanning Plusing good friend, barcode scanning are entered the Web page.
In the prior art, during identifying identification code, if occur because identification code area itself is too small or shooting away from From too far and caused by identification code occupied area ratio in barcode scanning frame too small situation when, it may appear that identification code cannot successfully be swept The phenomenon that retouching.And in the prior art, a series of operation of triggering barcode scanning functions is carried out (for example, clicking APP application icon-choosing Select barcode scanning function) it just can be carried out barcode scanning.Therefore, it is necessary to a kind of recognition methods of identification code be provided, to promote identification identification code Discrimination, recognition speed and convenience.
Summary of the invention
The embodiment of the present invention provides recognition methods and the mobile terminal of a kind of identification code, to promote mobile terminal identification identification Recognition speed, discrimination and the convenience of code.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, a kind of recognition methods of identification code is provided, it is described applied to the mobile terminal including photographing module Method includes:
In the case where putting out screen state, determine whether occupied area ratio of the identification code in barcode scanning frame is less than preset value;
If so, adjusting the focal length of the photographing module to increase the occupied area ratio to more than be equal to described default Value;
It controls the photographing module and scans the identification code, and identify the identification code that scanning is arrived.
Second aspect provides a kind of terminal device, including photographing module, the mobile terminal further include:
Determining module, in the case where putting out screen state, determining whether occupied area ratio of the identification code in barcode scanning frame is less than Preset value;
Module is adjusted, if being less than the preset value for the occupied area ratio, adjusts the coke of the photographing module Away to increase the occupied area ratio to more than equal to the preset value;
Control module scans the identification code for controlling the photographing module;
Identification module, the identification code scanned for identification.
The third aspect provides a kind of mobile terminal, which includes processor, memory and be stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of method as described in relation to the first aspect.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium Computer program is stored in matter, and the step of method as described in relation to the first aspect is realized when the computer program is executed by processor Suddenly.
In embodiments of the present invention, in the case where putting out screen state, when occupied area ratio of the appearance because of identification code in barcode scanning frame When less than the case where preset value, the focal length of adjust automatically photographing module to increase identification code occupied area ratio in barcode scanning frame, Scanning recognition code again later, avoids because of identification code occupied area ratio smaller the case where can not successfully identifying, and make user Do not need to carry out a series of triggering barcode scanning functions operations can scanning recognition code, reduce the operation of user, and then improve Identify discrimination, recognition speed and the convenience of identification code.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram of the recognition methods for the identification code that one embodiment of the present of invention provides;
Fig. 2 be another embodiment of the present invention provides identification code recognition methods flow diagram;
Fig. 3 is the schematic diagram one for the barcode scanning frame that one embodiment of the present of invention provides;
Fig. 4 is the schematic diagram two for the barcode scanning frame that one embodiment of the present of invention provides;
Fig. 5 is the structural schematic diagram for the mobile terminal that one embodiment of the present of invention provides;
Fig. 6 be another embodiment of the present invention provides mobile terminal structural schematic diagram;
Fig. 7 is the hardware structural diagram for realizing a kind of mobile terminal of each 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.
Fig. 1 is the flow diagram of the recognition methods for the identification code that one embodiment of the present of invention provides, as shown in Figure 1 The recognition methods of identification code the described method comprises the following steps applied to the terminal comprising photographing module:
Step 101, in the case where putting out screen state, it is default to determine whether occupied area ratio of the identification code in barcode scanning frame is less than Value.
Wherein, identification code can include the bar code of information, the letter for including for one-dimension code (for example, bar code), two dimensional code etc. Breath can be picture, network linking etc..
If so, executing step 102, step 103;If it is not, executing step 103.
Step 102, adjust the focal length of photographing module with increase occupied area ratio of the identification code in barcode scanning frame to more than Equal to preset value.
Step 103, control photographing module scanning recognition code, and identify the identification code that scanning is arrived.
Through this embodiment, in the case where putting out screen state, when appearance because occupied area ratio of the identification code in barcode scanning frame is less than When the case where preset value, the focal length of adjust automatically photographing module is to increase identification code occupied area ratio in barcode scanning frame, later, Scanning recognition code again avoids because of identification code occupied area ratio smaller the case where can not successfully identifying, and user is not required to Carry out it is a series of triggering barcode scanning functions operations can scanning recognition code, reduce the operation of user, and then improve identification Discrimination, recognition speed and the convenience of identification code.
Fig. 2 be another embodiment of the present invention provides identification code recognition methods flow diagram, it is shown in Fig. 2 Embodiment and above-mentioned embodiment shown in FIG. 1 the difference is that, after step 103, can also include:
Step 104, when being identified successfully to the identification code scanned, bright screen simultaneously show with the associated information of identification code.
User can according to being paid with the associated information of identification code of display, registration information, addition good friend, anti-fake look into Ask etc..Specifically, associated information can be picture, network linking etc..
As shown in Fig. 2, can also include: after step 103
When to the identification code recognition failures scanned, return step 101.
Pass through this embodiment, additionally it is possible to which after scanning to identification code, bright screen simultaneously executes corresponding behaviour according to recognition result Make.
In one embodiment of the present invention, before above-mentioned steps 101, may include:
The photographing module is controlled with first frequency to being scanned in its visual field, and obtains scanning result;
Above-mentioned steps 101 may include:
Determine that there are when identification code, determine occupied area ratio of the identification code in barcode scanning frame in visual field according to scanning result Whether preset value is less than.
Wherein, visual field is the regional scope that can be scanned and identify.
By this embodiment, compared to the prior art in carry out it is a series of triggering barcode scanning functions operations (for example, point Hit APP application icon-selection barcode scanning function) scheme that just can be carried out barcode scanning, by control photographing module with first frequency to it It is scanned in visual field, and judges automatically in visual field according to scanning result that there are when identification code, determine identification code in barcode scanning frame Occupied area ratio whether be less than preset value so that do not need user carry out it is a series of triggering barcode scanning functions operations, energy Enough scans there are when identification code in the visual field of photographing module and identify identification code.
Specifically, determining that there are identification codes in the visual field of photographing module when identification code characteristic point is arrived in scanning.For example, working as When scanning two dimensional code characteristic point, determine that there are two dimensional codes in the visual field of photographing module.
In one embodiment of the present invention, first frequency is less than the frequency of photographing module scanning recognition code.
By this embodiment, first frequency is less than the frequency of photographing module scanning recognition code, can reduce photographing module To the power consumption scanned in visual field, and then it can reduce the power consumption of mobile terminal identification identification code.
Specifically, above-mentioned photographing module can be the camera with low-power consumption mode, under low-power consumption mode, mould is imaged Block can be with first frequency to being scanned in its visual field.
Fig. 3 is the schematic diagram one for the barcode scanning frame that one embodiment of the present of invention provides;Fig. 4 is one embodiment of the present of invention The schematic diagram two of the barcode scanning frame of offer.Wherein, the area for the identification code C for including in the barcode scanning frame S in Fig. 3 is AA1, in Fig. 4 Area in barcode scanning frame S including identification code C is AA2, and the area of barcode scanning frame S is D, institute of the identification code C in barcode scanning frame AA in Fig. 3 Area ratio AA1/D is accounted for less than preset value, occupied area ratio AA2/D of Fig. 4 identification code C in barcode scanning frame S is greater than preset value. For the present invention, when the identification code C occupied area ratio in barcode scanning frame S that determines is less than preset value (such as feelings shown in Fig. 3 Condition), occupied area ratio to more than it can be equal to the focal length of adjust automatically photographing module with increasing identification code C in barcode scanning frame S Preset value (such as situation shown in Fig. 4) controls photographing module scanning recognition code C, and identify the identification code that scanning is arrived later.
Fig. 5 is the structural schematic diagram for the mobile terminal that one embodiment of the present of invention provides.As shown in figure 5, mobile terminal Other than including photographing module 51, the mobile terminal further include:
Determining module 52, in the case where putting out screen state, determining whether occupied area ratio of the identification code in barcode scanning frame be small In preset value;
Module 53 is adjusted, if being less than the preset value for the occupied area ratio, adjusts the photographing module 51 Focal length to increase the occupied area ratio of the identification code in the barcode scanning frame to more than be equal to the preset value;
Control module 54 scans the identification code for controlling the photographing module 51;
Identification module 55, the identification code scanned for identification.
In one embodiment of the present invention, the control module 54, is also used to:
The photographing module 51 is controlled with first frequency to being scanned in visual field, and obtains scanning result;
The determining module 52, is specifically used for:
Determine that there are when identification code, determine the identification code in the barcode scanning frame in the visual field according to the scanning result In the occupied area ratio whether be less than the preset value.
In one embodiment of the present invention, the first frequency is less than the frequency that the photographing module scans the identification code Rate.
Fig. 6 be another embodiment of the present invention provides mobile terminal structural schematic diagram.It is as shown in FIG. 6 mobile whole The difference with mobile terminal shown in fig. 5 is held to be that mobile terminal shown in fig. 6 can also include:
Display module 56, for when identifying successfully to the identification code scanned, bright screen simultaneously to be shown and the identification The associated information of code.
Mobile terminal provided in an embodiment of the present invention can be realized what mobile terminal in the embodiment of the method for Fig. 1-Fig. 4 was realized Each process, to avoid repeating, which is not described herein again.Mobile terminal provided by the invention, in the case where putting out screen state, when appearance is because knowing When occupied area ratio of the other code in barcode scanning frame is less than the case where preset value, the focal length of adjust automatically photographing module is known with increasing Other code occupied area ratio and then scanning recognition code in barcode scanning frame are avoided because of the smaller nothing of identification code occupied area ratio The case where method successfully identifies, and make user do not need to carry out a series of triggering barcode scanning functions operations can scanning recognition code, Reduce the operation of user, and then improves discrimination, recognition speed and the convenience of identification identification code.
Fig. 7 is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the present invention, the mobile terminal 600 Including but not limited to: radio frequency unit 601, audio output unit 603, input unit 604, sensor 605, is shown network module 602 Show the components such as unit 606, user input unit 607, interface unit 608, memory 609, processor 610 and power supply 611. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 7 does not constitute the restriction to mobile terminal, it is mobile whole End may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention In embodiment, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear Wear equipment and pedometer etc..
Wherein, processor 610 are used for:
In the case where putting out screen state, determine whether occupied area ratio of the identification code in barcode scanning frame is less than preset value;
If so, adjusting the focal length of the photographing module to increase the occupied area ratio to more than be equal to described default Value;
It controls the photographing module and scans the identification code, and identify the identification code that scanning is arrived.
Mobile terminal provided by the invention, in the case where putting out screen state, when occupied area of the appearance because of identification code in barcode scanning frame When ratio is less than the case where preset value, the focal length of adjust automatically photographing module is to increase identification code occupied area ratio in barcode scanning frame Example and then scanning recognition code, avoid because of identification code occupied area ratio smaller the case where can not successfully identifying, and make User do not need to carry out a series of triggering barcode scanning functions operations can scanning recognition code, reduce the operation of user, Jin Erti Discrimination, recognition speed and the convenience of identification identification code are risen.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 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 610 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 602 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 603 can be received by radio frequency unit 601 or network module 602 or in memory 609 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 601 is converted in the case where telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 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 607 include touch panel 6071 and Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071 Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching The type for touching event provides corresponding visual output on display panel 6061.Although in Fig. 7, touch panel 6071 and display Panel 6061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal Data are transmitted between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 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 609, and calls and is stored in storage Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611 Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 600 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in On memory 609 and the computer program that can run on the processor 610, the computer program are executed by processor 610 Each process of the recognition methods embodiment of the above-mentioned identification code of Shi Shixian, and identical technical effect can be reached, to avoid repeating, Which is not described herein again.
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 the recognition methods embodiment of above-mentioned identification code when being executed by processor, And identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, Such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter Claim 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 terminal (can be mobile phone, computer, service Device, air conditioner or 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 (10)

1. a kind of recognition methods of identification code, applied to the mobile terminal including photographing module characterized by comprising
In the case where putting out screen state, determine whether occupied area ratio of the identification code in barcode scanning frame is less than preset value;
If so, adjusting the focal length of the photographing module to increase the occupied area ratio to more than be equal to the preset value;
It controls the photographing module and scans the identification code, and identify the identification code that scanning is arrived.
2. the method as described in claim 1, which is characterized in that occupied area ratio of the determining identification code in barcode scanning frame Whether it is less than before preset value, further includes:
The photographing module is controlled with first frequency to being scanned in visual field, and obtains scanning result;
Whether occupied area ratio of the determining identification code in barcode scanning frame is less than preset value, comprising:
Determine that there are when identification code, determine the identification code in the barcode scanning frame in the visual field according to the scanning result Whether the occupied area ratio is less than the preset value.
3. method according to claim 2, which is characterized in that the first frequency is less than the photographing module and scans the knowledge The frequency of other code.
4. the method as described in claim 1, which is characterized in that after the identification code that the identification scans, further includes:
When identifying successfully to the identification code scanned, bright screen is simultaneously shown and the associated information of the identification code.
5. a kind of mobile terminal, including photographing module, which is characterized in that the mobile terminal further include:
Determining module, in the case where putting out screen state, determining it is default whether occupied area ratio of the identification code in barcode scanning frame is less than Value;
Adjust module, if for the occupied area ratio be less than the preset value, adjust the focal length of the photographing module with Increase the occupied area ratio to more than is equal to the preset value;
Control module scans the identification code for controlling the photographing module;
Identification module, the identification code scanned for identification.
6. mobile terminal as claimed in claim 5, which is characterized in that the control module is also used to:
The photographing module is controlled with first frequency to being scanned in visual field, and obtains scanning result;
The determining module, is specifically used for:
Determine that there are when identification code, determine the identification code in the barcode scanning frame in the visual field according to the scanning result Whether the occupied area ratio is less than the preset value.
7. mobile terminal as claimed in claim 6, which is characterized in that the first frequency is less than the photographing module and scans institute State the frequency of identification code.
8. mobile terminal as claimed in claim 5, which is characterized in that further include:
Display module, for when identifying successfully to the identification code scanned, bright screen and showing is associated with the identification code Information.
9. a kind of mobile terminal characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, such as Claims 1-4 is realized when the computer program is executed by the processor Any one of described in method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium The step of program, the computer program realizes method according to any one of claims 1 to 4 when being executed by processor.
CN201810825987.9A 2018-07-25 2018-07-25 A kind of recognition methods of identification code and mobile terminal Pending CN109033912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810825987.9A CN109033912A (en) 2018-07-25 2018-07-25 A kind of recognition methods of identification code and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810825987.9A CN109033912A (en) 2018-07-25 2018-07-25 A kind of recognition methods of identification code and mobile terminal

Publications (1)

Publication Number Publication Date
CN109033912A true CN109033912A (en) 2018-12-18

Family

ID=64646048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810825987.9A Pending CN109033912A (en) 2018-07-25 2018-07-25 A kind of recognition methods of identification code and mobile terminal

Country Status (1)

Country Link
CN (1) CN109033912A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109858303A (en) * 2018-12-19 2019-06-07 维沃移动通信有限公司 A kind of scan method and terminal device
CN111913555A (en) * 2019-05-09 2020-11-10 北京小米移动软件有限公司 Control method and control device for application program and computer readable storage medium
CN115079886A (en) * 2022-07-21 2022-09-20 荣耀终端有限公司 Two-dimensional code recognition method, electronic device, and storage medium
CN117332798A (en) * 2023-10-25 2024-01-02 广州讯宝电子科技有限公司 Bar code scanning method, module, storage medium and bar code scanner

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device
CN106599758A (en) * 2016-11-29 2017-04-26 努比亚技术有限公司 Image quality processing method and terminal
CN107943524A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Terminal device and its control method, computer equipment and its readable storage medium storing program for executing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device
CN106599758A (en) * 2016-11-29 2017-04-26 努比亚技术有限公司 Image quality processing method and terminal
CN107943524A (en) * 2017-11-16 2018-04-20 珠海市魅族科技有限公司 Terminal device and its control method, computer equipment and its readable storage medium storing program for executing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109858303A (en) * 2018-12-19 2019-06-07 维沃移动通信有限公司 A kind of scan method and terminal device
CN109858303B (en) * 2018-12-19 2022-05-06 维沃移动通信有限公司 Scanning method and terminal equipment
CN111913555A (en) * 2019-05-09 2020-11-10 北京小米移动软件有限公司 Control method and control device for application program and computer readable storage medium
CN115079886A (en) * 2022-07-21 2022-09-20 荣耀终端有限公司 Two-dimensional code recognition method, electronic device, and storage medium
CN117332798A (en) * 2023-10-25 2024-01-02 广州讯宝电子科技有限公司 Bar code scanning method, module, storage medium and bar code scanner

Similar Documents

Publication Publication Date Title
CN108108007B (en) A kind of processing method and mobile terminal reducing power consumption
CN108427876A (en) A kind of fingerprint identification method and mobile terminal
CN109151180A (en) A kind of object identifying method and mobile terminal
CN108182896B (en) A kind of brightness detection method, device and mobile terminal
CN108989668A (en) A kind of working method and mobile terminal of camera
CN109461117A (en) A kind of image processing method and mobile terminal
CN108594942A (en) A kind of personal identification method and mobile terminal
CN109033912A (en) A kind of recognition methods of identification code and mobile terminal
CN108427873A (en) A kind of biological feather recognition method and mobile terminal
CN108509782A (en) A kind of recognition of face control method and mobile terminal
CN108984082A (en) A kind of image display method and mobile terminal
CN110018805A (en) A kind of display control method and mobile terminal
CN109033913A (en) A kind of recognition methods of identification code and mobile terminal
CN109145731A (en) A kind of fingerprint identification method, device and mobile terminal
CN108647569B (en) A kind of finger scan method, mobile terminal
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109542572A (en) A kind of interface display method and mobile terminal
CN109819166A (en) A kind of image processing method and electronic equipment
CN109451144A (en) A kind of message treatment method and terminal device
CN109544172A (en) A kind of display methods and terminal device
CN109101151A (en) A kind of information display processing method and terminal device
CN110312035A (en) A kind of control method of terminal, mobile terminal and computer readable storage medium
CN110536253A (en) A kind of group's Adding Way and mobile terminal
CN110300286A (en) A kind of image display method and terminal
CN107800968B (en) A kind of image pickup 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: 20181218

RJ01 Rejection of invention patent application after publication