CN108304744A - A kind of scan box location determining method and mobile terminal - Google Patents

A kind of scan box location determining method and mobile terminal Download PDF

Info

Publication number
CN108304744A
CN108304744A CN201810048050.5A CN201810048050A CN108304744A CN 108304744 A CN108304744 A CN 108304744A CN 201810048050 A CN201810048050 A CN 201810048050A CN 108304744 A CN108304744 A CN 108304744A
Authority
CN
China
Prior art keywords
scan box
quick response
response code
mobile terminal
image
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.)
Granted
Application number
CN201810048050.5A
Other languages
Chinese (zh)
Other versions
CN108304744B (en
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 CN201810048050.5A priority Critical patent/CN108304744B/en
Publication of CN108304744A publication Critical patent/CN108304744A/en
Application granted granted Critical
Publication of CN108304744B publication Critical patent/CN108304744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • 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
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1456Methods for optical code recognition including a method step for retrieval of the optical code determining the orientation of the optical code with respect to the reader and correcting therefore

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

A kind of scan box location determining method of present invention offer and mobile terminal, are related to field of communication technology.The scan box location determining method, including:Determine whether the scan box of current first position identifies Quick Response Code;If it is unidentified go out the Quick Response Code scan box is moved to by the second position according to the Quick Response Code present position.The solution of the present invention is relatively fixed for solving existing scan box so that the operation of scanning input Quick Response Code is relatively complicated, the problem of affecting mobile terminal property easy to use.

Description

A kind of scan box location determining method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of scan box location determining method and mobile terminals.
Background technology
With the rapid development of the communication technology, the function of mobile terminal is more and more diversified, is brought to people’s lives Great convenience.Wherein, the barcode scanning function of mobile terminal has become shopping payment, a kind of common interaction of addition good friend Behavioural habits.Also, the barcode scanning function of many mobile terminals is in addition to constantly upgrading improves simultaneously in software aspects on hardware Also the user experience all when constantly improving barcode scanning.So the experience upgrading of barcode scanning function, which has become, determines that mobile terminal is used One of an important factor for family is experienced.
All it is a static scan box used in scanning however, current barcode scanning mode, position immobilizes, It needs the position for artificially adjusting mobile terminal that could realize the movement of scan box, affects the property easy to use of mobile terminal.
Invention content
A kind of scan box location determining method of offer of the embodiment of the present invention and mobile terminal, to solve existing scan box ratio It is relatively fixed so that the operation of scanning input Quick Response Code is relatively complicated, the problem of affecting mobile terminal property easy to use.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, the embodiment provides a kind of scan box location determining methods, including:
Determine whether the scan box of current first position identifies Quick Response Code;
If it is unidentified go out the Quick Response Code scan box is moved to second according to the Quick Response Code present position Position.
Second aspect, the embodiments of the present invention also provide a kind of mobile terminals, including:
Determining module, for determining whether the scan box of current first position identifies Quick Response Code;
Processing module, if for it is unidentified go out the Quick Response Code, according to the Quick Response Code present position, by the scanning Frame is moved to the second position.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory and are stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor The step of realizing scan box location determining method as described above.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit Computer program is stored on storage media, the computer program realizes scan box position as described above when being executed by processor The step of determining method.
In this way, in the embodiment of the present invention, whether Quick Response Code is identified by the scan box of the current first position of determination, is being located Scan box in the first position it is unidentified go out Quick Response Code when, according to the location of the Quick Response Code, mobile scan box to the Two positions re-start the scanning of Quick Response Code.In this way, the scan box on barcode scanning interface will be no longer by the fixed limit of self-position System, can move and be re-started in the case where None- identified go out Quick Response Code the scanning of Quick Response Code, simplify user's operation, together When also improve the scanning success rate of Quick Response Code, improve user experience.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without having to pay creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is one of the flow diagram of the scan box location determining method of the embodiment of the present invention;
Fig. 2 is scan box barcode scanning schematic diagram on barcode scanning interface;
Fig. 3 is the two of the flow diagram of the scan box location determining method of the embodiment of the present invention;
Fig. 4 is that schematic diagram is moved in scan box position on barcode scanning interface;
Fig. 5 is one of the structural schematic diagram of mobile terminal of the embodiment of the present invention;
Fig. 6 is the second structural representation of the mobile terminal of the embodiment of the present invention;
Fig. 7 is the third structural representation of the mobile terminal of the embodiment of the present invention;
Fig. 8 is the four of the structural schematic diagram of the mobile terminal of the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.
Specific implementation mode
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 describes, 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, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, the scan box location determining method of the embodiment of the present invention, including:
Step 101, determine whether the scan box of current first position identifies Quick Response Code.
It is current to understand by determining whether the scan box in current location can recognize that Quick Response Code in this step Whether there is scan box movement to re-start the demand of Quick Response Code identification, to go out Quick Response Code in current first position None- identified When, execute next step.
Step 102, if it is unidentified go out the Quick Response Code scanning is frameed shift according to the Quick Response Code present position It moves to the second position.
In this step, by step 101 acquired results, it is thus understood that the scan box of current first position it is unidentified go out Quick Response Code When, the position that the scan box is carried out according to Quick Response Code present position is moved so that the scan box is re-started in the second position Quick Response Code identifies.
In this way, through step 101 and step 102, the scan box location determining method of the embodiment of the present invention is current by determining Whether the scan box of first position identifies Quick Response Code, the scan box in the first position it is unidentified go out Quick Response Code when, root According to the location of the Quick Response Code, the mobile scan box re-starts the scanning of Quick Response Code to the second position.In this way, barcode scanning circle Scan box on face will can be moved in the case where None- identified goes out Quick Response Code and lay equal stress on no longer by the fixed limitation of self-position The new scanning for carrying out Quick Response Code, simplifies user's operation, while also improving the scanning success rate of Quick Response Code, promotes user's body It tests.
It should be appreciated that successfully identify the Quick Response Code in the acquired image of camera, then need to get complete , efficient 2-d code image, in the embodiment of the present invention, mobile terminal stores default scanning information, for knowing to Quick Response Code Do not judged.Therefore, step 101 includes:
The scanning information of Quick Response Code in the scan box is obtained, wherein the scanning information includes the image of the Quick Response Code Whether the scan box is entirely fallen in;
If the scanning information does not meet the default condition of scanning, it is determined that the scan box it is unidentified go out the Quick Response Code.
Here, first will obtain in the first position when, the scanning information that scan box obtains its interior two-dimensional code scanning, The scanning information is obtained based on the default condition of scanning;Later, by the matching of scanning information and the default condition of scanning, When scanning information does not meet the default condition of scanning, determine the scan box it is unidentified go out Quick Response Code.In this way, according to default scanning The scanning information of Quick Response Code in condition and the scan box of acquisition, it will be able to effectively judge in the current first position scan box Whether Quick Response Code can recognize that, to which after Quick Response Code occurs and identifies not successfully, the position of motion scan frame carries out Quick Response Code Re-recognize.Wherein, because barcode scanning successfully needs scan box to get whole image in 2 D code, default in mobile terminal is swept The condition of retouching need to include that the image of Quick Response Code is entirely fallen in the scan box, and corresponding, scanning information, which includes the image of Quick Response Code, is It is no to entirely fall in scan box.Such as, it determines and comprises only the 3/4 of the image in 2 D code at first position in scan box, what is obtained sweeps It retouches the image that information is Quick Response Code and does not entirely fall in the scan box, which does not meet the default condition of scanning, it may be determined that At first position scan box it is unidentified go out Quick Response Code, need to move the scan box to the second position.
In view of ambient brightness can influence camera acquired image, and the realization of barcode scanning is completed based on the image , therefore, before described the step of obtaining the scanning information of Quick Response Code in the scan box, the method further includes:
Obtain the brightness of current environment;
If the brightness of the current environment is less than the first predetermined luminance, start flash lamp.
Here, the brightness of current environment will be combined, it is too low in the brightness of environment, that is, it was less than for the first predetermined luminance (such as night Barcode scanning) when, start flash lamp and carry out illumination, to ensure that camera the image collected can carry out the identification of Quick Response Code.
However, common note paper Quick Response Code is to prolong the service life, surface is equipped with (such as sub- gram of a floor height reflectorized material Power), it, will be because reflective too strong so that scan box can not scan efficient 2-d code image after flash lamp startup.In this way, to sentence Whether disconnected scan box identifies Quick Response Code, and the condition of scanning that prestores can be:Highlight area is not present in the image of Quick Response Code in scan box, So on the basis of the above embodiments, the scanning information includes that the image of the Quick Response Code whether there is highlight area, institute It is the image-region that brightness is more than the second predetermined luminance to state highlight area;
Described the step of obtaining the scanning information of Quick Response Code in the scan box, including:
Obtain the brightness of the image in 2 D code in the scan box;
If being more than second predetermined luminance in the presence of the brightness got, it is determined that there are speculars for the image in 2 D code Domain.
In this way, when whether the scan box for determining first position identifies Quick Response Code, it will be to the Quick Response Code in the scan box The brightness of image is obtained, by the way that whether the brightness got compared with the second predetermined luminance, is determined image in 2 D code There are highlight areas to get to the scanning information of Quick Response Code in scan box.Wherein, pre- if being more than second in the presence of the brightness got If brightness, it is determined that there are highlight area in the image in 2 D code, corresponding scanning information is that there are blooms for the image of Quick Response Code Region;If there is no the brightness got to be more than the second predetermined luminance, it is determined that highlight area is not present in the image in 2 D code, Corresponding scanning information is that highlight area is not present in the image of Quick Response Code.Later, in conjunction with the default condition of scanning:It is two-dimentional in scan box Highlight area is not present in the image of code, it will be able to by specific scanning information content, judge first position scan box whether Identify Quick Response Code.
For example, under night barcode scanning scene, start flash lamp, barcode scanning interface shown in Fig. 2, the scanning of current first position Frame 201 to Quick Response Code when carrying out barcode scanning, by the brightness of image in 2 D code 202 in the scan box 201 that gets, it may be determined that should There are highlight areas 203 in image in 2 D code 202, then can recognize that the scan box None- identified in the first position goes out two dimension Code, needs to move the scanning that the scan box to the second position re-starts Quick Response Code.
In general, flash lamp is fixedly mounted on mobile terminals, the highlight area generated because flash lamp starts is being moved Relative position in the Current Scan interface of dynamic terminal is constant, so, on the basis of the above embodiments, it is preferred that such as Shown in Fig. 3, step 102 includes:
Step 301, the relative position information of the highlight area and the first position is obtained.
In this step, the relative position information of highlight area first position will be obtained as the basic data of subsequent movement, Ensure that highlight area is not present in image in 2 D code in the scan box after movement.Its step 302, according to the relative position information, Calculate the highlight area and the distance between each side of the scan box at the first position.
In this step, after step 301 gets relative position information, calculates highlight area and be located at first position The distance between each side of scan box, to execute next step.
Step 303, choose calculate gained distance it is minimum while as with reference to while.
In this step, by selecting step 302 calculate gained distance it is minimum while as with reference to while complete to move, ensure to sweep Retouch frame shift it is dynamic after, highlight area is not fallen in scan box.
Step 304, determine in the vertical direction of the reference edge, apart from the position of the reference edge predetermined threshold value be described The second position, and the mobile scan box.
In this step, after step 303 selects reference edge, by the vertical direction of reference edge, apart from the reference edge The position of predetermined threshold value is scanned the movement of frame as the second position, realizes the separation of highlight area and scan box.
Scan box is chosen by the relative position information of highlight area and first position according to above-mentioned steps 301- steps 304 At first position with the highlight area it is nearest while as with reference to while after, will control scan box along the reference edge Vertical Square To, mobile predetermined threshold value distance to the second position, so that highlight area is no longer in scan box.In this way, user adjusts the shifting Image in 2 D code is placed in scan box by dynamic terminal location, it will be able to adjustment dodge highlight area and scan box caused by turning off the light it Between relative position, ensure no longer there is highlight area in image in 2 D code, and then successfully carry out Quick Response Code identification, improve night Between barcode scanning success rate under environment.
Wherein, to improve treatment effeciency, the central point of preferably highlight area represents the highlight area position, scans frame Each vertex represents the highlight area.As shown in figure 4, by highlight area 401 in the size of scanning area and opposite position It sets, rectangular coordinate system can be built by origin of the centre coordinate of highlight area 401 point O, then the scanning of first position can be obtained The coordinate of 4 vertex A, B, C, D of frame 402:A (a1, b1), B (a2, b2), C (a3, b3) and D (a4, b4).By O points to sweeping The distance on 4 sides of frame 402 is retouched, it is reference edge to choose the side AB that wherein distance is minimum.Later, it according to shift strategy, will sweep It retouches frame to move down along the vertical edges AC of AB, until AB reaches the outer edge of highlight area, the i.e. second position (four of scan box Side shape A1B1C1D1, wherein each point coordinates:A1(x1, y1), B1(x2, y2), C1(x3, y3) and D1(x4, y4)).
Certainly, determining reference edge can also be other sides, and moving direction and displacement distance are also not necessarily limited to the above, Moving direction can also be vertical direction upwards, horizontal direction to the left or horizontal direction to the right, displacement distance can at least make Highlight area corresponds to the outside of marginal point scan box after movement of moving direction after movement, and details are not described herein.
Further specifically, step 102 includes:
Based on camera acquired image, the scan box is moved according to preset rules;
If all images of the Quick Response Code fall into the scan box, it is determined that current location is the second position, and Adjustment focus is scanned.
Here, the preset rules of scan box movement are stored in mobile terminal, such as by a left side for camera acquired image It holds initial position from left to right, continues after redirecting next line from left to right, until right end final position;Or according to first It sets, move up and down etc..In moving process, when all images of Quick Response Code fall into the scan box, current location is determined For the second position, to which adjust automatically focus is scanned.Realize the feelings of the scan box misalignment Quick Response Code in user's barcode scanning Under condition, adjust automatically scan box position, alignment Quick Response Code completes the scanning of Quick Response Code.
In conclusion the scan box location determining method of the embodiment of the present invention, passes through the scanning of the current first position of determination Whether frame identifies Quick Response Code, the scan box in the first position it is unidentified go out Quick Response Code when, residing for the Quick Response Code Position, the mobile scan box re-starts the scanning of Quick Response Code to the second position.In this way, the scan box on barcode scanning interface will No longer by the fixed limitation of self-position, it can be moved in the case where None- identified goes out Quick Response Code and re-start Quick Response Code Scanning, simplifies user's operation, while also improving the scanning success rate of Quick Response Code, promotes user experience.
Fig. 5 is the block diagram of the mobile terminal of one embodiment of the invention.Mobile terminal 500 shown in fig. 5 includes determining mould Block 501 and processing module 502.
Determining module 501, for determining whether the scan box of current first position identifies Quick Response Code;
Processing module 502, if for it is unidentified go out the Quick Response Code will be described according to the Quick Response Code present position Scan box is moved to the second position.
On the basis of Fig. 5, optionally, as shown in fig. 6, the determining module 501 includes:
First acquisition submodule 5011, the scanning information for obtaining Quick Response Code in the scan box, wherein the scanning Information includes whether the image of the Quick Response Code entirely falls in the scan box;
Determination sub-module 5012, if not meeting the default condition of scanning for the scanning information, it is determined that the scan box It is unidentified go out the Quick Response Code.
Wherein, the determining module 501 further includes:
Luminance acquisition submodule 5013, the brightness for obtaining current environment;
First processing submodule 5014 starts sudden strain of a muscle if the brightness for the current environment is less than the first predetermined luminance Light lamp.
Optionally, the scanning information includes that the image of the Quick Response Code whether there is highlight area, the highlight area It is more than the image-region of the second predetermined luminance for brightness;
First acquisition submodule 5011 includes:
Acquiring unit 50111, the brightness for obtaining the image in 2 D code in the scan box;
Determination unit 50112, if for being more than second predetermined luminance in the presence of the brightness got, it is determined that described two Tieing up code image, there are highlight areas.
On the basis of Fig. 5, optionally, as shown in fig. 7, the processing module 502 includes:
Second acquisition submodule 5021, the relative position information for obtaining the highlight area and the first position;
Computational submodule 5022, for according to the relative position information, calculate the highlight area with positioned at described the The distance between each side of the scan box at one position;
Choose submodule 5023, for chooses calculate gained distance it is minimum while as referring to;
Second processing submodule 5024, for determining the vertical direction of the reference edge, being preset apart from the reference edge The position of threshold value is the second position, and moves the scan box.
On the basis of Fig. 5, optionally, as shown in figure 8, the processing module 502 includes:
Third handle submodule 5025, for be based on camera acquired image, according to preset rules move described in sweep Retouch frame;
Fourth process submodule 5026, if all images for the Quick Response Code fall into the scan box, it is determined that when Anteposition is set to the second position, and adjusts focus and be scanned.
Mobile terminal 500 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 4, to keep away Exempt to repeat, which is not described herein again.Whether the mobile terminal of the embodiment of the present invention is known by the scan box of the current first position of determination Do not go out Quick Response Code, the scan box in the first position it is unidentified go out Quick Response Code when, according to the location of the Quick Response Code, move The scan box is moved to the second position, re-starts the scanning of Quick Response Code.In this way, the scan box on barcode scanning interface will be no longer by itself The fixed limitation in position can move in the case where None- identified goes out Quick Response Code and re-start the scanning of Quick Response Code, simplify User's operation, while also improving the scanning success rate of Quick Response Code, promote user experience.
A kind of hardware architecture diagram of Fig. 9 mobile terminals of each embodiment to realize the present invention, the mobile terminal 900 Including but not limited to:Radio frequency unit 901, audio output unit 903, input unit 904, sensor 905, is shown network module 902 Show the components such as unit 906, user input unit 907, interface unit 908, memory 909, processor 910 and power supply 911. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 9 does not constitute the restriction to mobile terminal, it is mobile whole End may include either combining certain components or different components arrangement than illustrating more or fewer components.In the present invention In embodiment, mobile terminal includes but not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear Wear equipment and pedometer etc..
Wherein, processor 910, for determining whether the scan box of current first position identifies Quick Response Code;If unidentified Go out the Quick Response Code, then according to the Quick Response Code present position, the scan box is moved to the second position.
As it can be seen that whether the mobile terminal identifies Quick Response Code by the scan box of the current first position of determination, in this The scan box of first position it is unidentified go out Quick Response Code when, according to the location of the Quick Response Code, mobile scan box to second It sets, re-starts the scanning of Quick Response Code.In this way, the scan box on barcode scanning interface will be no longer by the fixed limitation of self-position, energy The enough scanning that Quick Response Code is moved and re-started in the case where None- identified goes out Quick Response Code, simplifies user's operation, simultaneously also The scanning success rate of Quick Response Code is improved, user experience is promoted.
It should be understood that the embodiment of the present invention in, radio frequency unit 901 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 910 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 901 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 901 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 902 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 903 can receive radio frequency unit 901 or network module 902 or in memory 909 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 903 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 900 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 903 includes loud speaker, buzzer and receiver etc..
Input unit 904 is for receiving audio or video signal.Input unit 904 may include graphics processor (Graphics Processing Unit, GPU) 9041 and microphone 9042, graphics processor 9041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 906.Through graphics processor 9041, treated that picture frame can be deposited Storage is sent in memory 909 (or other storage mediums) or via radio frequency unit 901 or network module 902.Mike Wind 9042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 901 by being converted in the case of telephone calling model.
Mobile terminal 900 further includes at least one sensor 905, 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 9061, and proximity sensor can close when mobile terminal 900 is moved in one's ear Display panel 9061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that 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 905 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 906 is for showing information input by user or being supplied to the information of user.Display unit 906 can wrap Display panel 9061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 9061.
User input unit 907 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 907 include touch panel 9071 and Other input equipments 9072.Touch panel 9071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 9071 or in touch panel 9071 Neighbouring operation).Touch panel 9071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and 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 910, receiving area It manages the order that device 910 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 9071.In addition to touch panel 9071, user input unit 907 can also include other input equipments 9072.Specifically, other input equipments 9072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 9071 can be covered on display panel 9061, when touch panel 9071 is detected at it On or near touch operation after, send processor 910 to determine the type of touch event, be followed by subsequent processing device 910 according to touch The type for touching event provides corresponding visual output on display panel 9061.Although in fig.9, touch panel 9071 and display Panel 9061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 9071 and display panel 9061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 908 is the interface that external device (ED) is connect with mobile terminal 900.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 908 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 900 or can be used in 900 He of mobile terminal Transmission data between external device (ED).
Memory 909 can be used for storing software program and various data.Memory 909 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 909 may include high-speed random access memory, 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 910 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 909, and calls and is stored in storage Data in device 909 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 910 may include one or more processing units;Preferably, processor 910 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 910.
Mobile terminal 900 can also include the power supply 911 (such as battery) powered to all parts, it is preferred that power supply 911 Can be logically contiguous by power-supply management system and processor 910, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 900 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor, memory and is stored in memory Computer program that is upper and can running on the processor, the computer program realize above-mentioned scan box when being executed by processor Each process of location determining method embodiment, and identical technique 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 mistake of above-mentioned scan box location determining method embodiment when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only 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 this There is also other identical elements in the process of element, method, 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station 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 in 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 the protection of the present invention.

Claims (13)

1. a kind of scan box location determining method, which is characterized in that including:
Determine whether the scan box of current first position identifies Quick Response Code;
If it is unidentified go out the Quick Response Code scan box is moved to by the second position according to the Quick Response Code present position.
2. scan box location determining method according to claim 1, which is characterized in that the current first position of determination The step of whether scan box identifies Quick Response Code, including:
The scanning information of Quick Response Code in the scan box is obtained, wherein the scanning information includes:The image of the Quick Response Code is It is no to entirely fall in the scan box;
If the scanning information does not meet the default condition of scanning, it is determined that the scan box it is unidentified go out the Quick Response Code.
3. scan box location determining method according to claim 2, which is characterized in that described to obtain two in the scan box Before the step of tieing up the scanning information of code, the method further includes:
Obtain the brightness of current environment;
If the brightness of the current environment is less than the first predetermined luminance, start flash lamp.
4. scan box location determining method according to claim 3, which is characterized in that the scanning information includes described two The image for tieing up code whether there is highlight area, and the highlight area is the image-region that brightness is more than the second predetermined luminance;
Described the step of obtaining the scanning information of Quick Response Code in the scan box, including:
Obtain the brightness of the image in 2 D code in the scan box;
If being more than second predetermined luminance in the presence of the brightness got, it is determined that there are highlight areas for the image in 2 D code.
5. scan box location determining method according to claim 4, which is characterized in that if it is described it is unidentified go out the two dimension Code, then according to the Quick Response Code present position, the step of scan box is moved to the second position, including:
Obtain the relative position information of the highlight area and the first position;
According to the relative position information, each of the highlight area and the scan box at the first position is calculated The distance between side;
Choose calculate gained distance it is minimum while as with reference to while;
It determines in the vertical direction of the reference edge, be the second position apart from the position of the reference edge predetermined threshold value, and The mobile scan box.
6. scan box location determining method according to claim 2, which is characterized in that if it is described it is unidentified go out the two dimension Code, then according to the Quick Response Code present position, the step of scan box is moved to the second position, including:
Based on camera acquired image, the scan box is moved according to preset rules;
If all images of the Quick Response Code fall into the scan box, it is determined that current location is the second position, and is adjusted Focus is scanned.
7. a kind of mobile terminal, which is characterized in that including:
Determining module, for determining whether the scan box of current first position identifies Quick Response Code;
Processing module, if for it is unidentified go out the Quick Response Code scanning is frameed shift according to the Quick Response Code present position It moves to the second position.
8. mobile terminal according to claim 7, which is characterized in that the determining module includes:
First acquisition submodule, the scanning information for obtaining Quick Response Code in the scan box, wherein the scanning information includes Whether the image of the Quick Response Code entirely falls in the scan box;
Determination sub-module, if not meeting the default condition of scanning for the scanning information, it is determined that the scan box it is unidentified go out The Quick Response Code.
9. mobile terminal according to claim 8, which is characterized in that the determining module further includes:
Luminance acquisition submodule, the brightness for obtaining current environment;
First processing submodule starts flash lamp if the brightness for the current environment is less than the first predetermined luminance.
10. mobile terminal according to claim 9, which is characterized in that the scanning information includes the figure of the Quick Response Code As whether there is highlight area, the highlight area is the image-region that brightness is more than the second predetermined luminance;
First acquisition submodule includes:
Acquiring unit, the brightness for obtaining the image in 2 D code in the scan box;
Determination unit, if for being more than second predetermined luminance in the presence of the brightness got, it is determined that the image in 2 D code There are highlight areas.
11. mobile terminal according to claim 10, which is characterized in that the processing module includes:
Second acquisition submodule, the relative position information for obtaining the highlight area and the first position;
Computational submodule, for according to the relative position information, calculating the highlight area and being located at the first position The distance between each side of the scan box;
Choose submodule, for chooses calculate gained distance it is minimum while as referring to;
Second processing submodule, for determining the vertical direction of the reference edge, apart from the position of the reference edge predetermined threshold value It is set to the second position, and the mobile scan box.
12. mobile terminal according to claim 8, which is characterized in that the processing module includes:
Third handles submodule, and for being based on camera acquired image, the scan box is moved according to preset rules;
Fourth process submodule, if all images for the Quick Response Code fall into the scan box, it is determined that current location is The second position, and adjust focus and be scanned.
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 scan box location determining method the step of.
CN201810048050.5A 2018-01-18 2018-01-18 Scanning frame position determining method and mobile terminal Active CN108304744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810048050.5A CN108304744B (en) 2018-01-18 2018-01-18 Scanning frame position determining method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810048050.5A CN108304744B (en) 2018-01-18 2018-01-18 Scanning frame position determining method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108304744A true CN108304744A (en) 2018-07-20
CN108304744B CN108304744B (en) 2020-08-28

Family

ID=62865821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810048050.5A Active CN108304744B (en) 2018-01-18 2018-01-18 Scanning frame position determining method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108304744B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process
CN113033236A (en) * 2021-03-26 2021-06-25 北京有竹居网络技术有限公司 Method, device, terminal and non-transitory storage medium for acquiring recognition target

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766049A (en) * 2015-03-17 2015-07-08 苏州科达科技股份有限公司 Method and system for recognizing object colors
CN104850835A (en) * 2015-05-13 2015-08-19 杭州朗和科技有限公司 Scanning method and scanning terminal
CN105184203A (en) * 2015-06-29 2015-12-23 努比亚技术有限公司 Method and device for mobile terminal to scan two-dimension code
US20170169270A1 (en) * 2015-12-10 2017-06-15 Denso Wave Incorporated System for reading information code
CN107392858A (en) * 2017-06-16 2017-11-24 广东欧珀移动通信有限公司 Image highlight area processing method, device and terminal device
CN107465873A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 A kind of processing method of image information, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766049A (en) * 2015-03-17 2015-07-08 苏州科达科技股份有限公司 Method and system for recognizing object colors
CN104850835A (en) * 2015-05-13 2015-08-19 杭州朗和科技有限公司 Scanning method and scanning terminal
CN105184203A (en) * 2015-06-29 2015-12-23 努比亚技术有限公司 Method and device for mobile terminal to scan two-dimension code
US20170169270A1 (en) * 2015-12-10 2017-06-15 Denso Wave Incorporated System for reading information code
CN107392858A (en) * 2017-06-16 2017-11-24 广东欧珀移动通信有限公司 Image highlight area processing method, device and terminal device
CN107465873A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 A kind of processing method of image information, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709418A (en) * 2020-06-02 2020-09-25 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process
CN111709418B (en) * 2020-06-02 2022-03-04 支付宝(杭州)信息技术有限公司 Prompting method, device and equipment in code scanning process
CN113033236A (en) * 2021-03-26 2021-06-25 北京有竹居网络技术有限公司 Method, device, terminal and non-transitory storage medium for acquiring recognition target

Also Published As

Publication number Publication date
CN108304744B (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN108536411A (en) A kind of method for controlling mobile terminal and mobile terminal
CN109905907A (en) A kind of method for searching network and mobile terminal
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN108541015A (en) A kind of signal strength reminding method and mobile terminal
CN108287655A (en) A kind of interface display method, interface display apparatus and mobile terminal
CN108846663A (en) A kind of two dimensional code method of adjustment, device and mobile terminal
CN110072012A (en) A kind of based reminding method and mobile terminal for screen state switching
CN108513067A (en) A kind of filming control method and mobile terminal
CN108897473A (en) A kind of interface display method and terminal
CN108495349A (en) A kind of switching method and mobile terminal of carrier network
CN110110571A (en) A kind of barcode scanning method and mobile terminal
CN109145731A (en) A kind of fingerprint identification method, device and mobile terminal
CN107682637A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN109523253A (en) A kind of method of payment and device
CN109167914A (en) A kind of image processing method and mobile terminal
CN109408171A (en) A kind of display control method and terminal
CN109033912A (en) A kind of recognition methods of identification code and mobile terminal
CN110519503A (en) A kind of acquisition methods and mobile terminal of scan image
CN109033913A (en) A kind of recognition methods of identification code and mobile terminal
CN109451144A (en) A kind of message treatment method and terminal device
CN109522524A (en) A kind of text browsing methods and terminal device
CN109445653A (en) A kind of icon processing method and mobile terminal
CN108510266A (en) A kind of Digital Object Unique Identifier recognition methods and mobile terminal
CN109814974A (en) Application Program Interface method of adjustment and mobile terminal
CN108304744A (en) A kind of scan box location determining 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
GR01 Patent grant
GR01 Patent grant