CN106599758A - Image quality processing method and terminal - Google Patents

Image quality processing method and terminal Download PDF

Info

Publication number
CN106599758A
CN106599758A CN201611073274.9A CN201611073274A CN106599758A CN 106599758 A CN106599758 A CN 106599758A CN 201611073274 A CN201611073274 A CN 201611073274A CN 106599758 A CN106599758 A CN 106599758A
Authority
CN
China
Prior art keywords
quick response
response code
size
terminal
display bezel
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
CN201611073274.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611073274.9A priority Critical patent/CN106599758A/en
Publication of CN106599758A publication Critical patent/CN106599758A/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
    • 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/1452Methods for optical code recognition including a method step for retrieval of the optical code detecting bar code edges

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an image quality processing method and a terminal. The method comprises steps: the terminal detects a two-dimensional code displaying frame in a scanning frame, and the size of the two-dimensional code displaying frame is acquired; the terminal judges whether the size of the two-dimensional code displaying frame is in a preset reorganization size interval; when the size of the two-dimensional code displaying frame is in the preset reorganization size interval, the terminal recognizes the two-dimensional code in the scanning frame, and the information content included in the two-dimensional code is acquired; and when the size of the two-dimensional code displaying frame is not in the preset reorganization size interval, the terminal adjusts the size of the two-dimensional code displaying frame according to a preset adjustment policy and re-judges whether the size of the two-dimensional code displaying frame after adjustment is in the preset reorganization size interval. Through the above method, use of the two-dimensional code by a user is facilitated, and the user experience is effectively enhanced.

Description

A kind of image quality processing method and terminal
Technical field
The present invention relates to graphics technology field, more particularly to a kind of image quality processing method and terminal.
Background technology
Quick Response Code (2DBC, 2-dimensional Bar Code), also referred to as two-dimensional bar code, are with certain specific geometric graph The chequered with black and white graphic recording data symbol information that shape is distributed according to certain rules in plane (on two-dimensional directional);Compile in code Dexterously using the concept of " 0 ", " 1 " bit stream for constituting computer-internal logical foundations in system, using several and binary system Corresponding geometrical body representing word numerical information, by image input device or photoelectric scanning device automatically identifying and reading with reality Existing information is automatically processed.It has some general character of barcode technology, and for example, every kind of code system has its specific character set, each word Symbol occupies certain width and with certain verifying function etc.;Meanwhile, it also has carries out automatic identification to different information Function, and process figure it is rotationally-varying the features such as.Various features based on above-mentioned Quick Response Code so as to possess high density volume Code, information capacity is big, coding range is wide, fault-tolerant error correcting capability is strong, low cost, the advantages of easily make.
Used as on-line off-line one crucial entrance, its application penetrates into side's aspect of people's live and work to Quick Response Code Face, such as user by using Quick Response Code realize acquisition of information, website redirect, advertisement pushing, terminal shopping, terminal pay, should With downloading, the demand of the false proof aspect such as trace to the source.In actual applications, the most important use scene of Quick Response Code is " sweep and sweep ", Be exactly people is scanned using the photographic head alignment Quick Response Code of the terminal built-ins such as mobile phone, so as to recognize and obtains the Quick Response Code pair The information answered.When terminal built-in photographic head apart from Quick Response Code farther out or it is nearer when, the picture that Quick Response Code shows in scan box It is too small or excessive, the recognition speed of the terminal-pair Quick Response Code may be so affected, even result in the terminal None- identified two dimension Code.
The content of the invention
Present invention is primarily targeted at providing a kind of image quality processing method and terminal, it is intended to when Quick Response Code is in scan box When the picture of display is less, can pass through to adjust display picture of the Quick Response Code in scan box, so as to solve because Quick Response Code is aobvious Show that picture is too small or excessive and caused recognition speed relatively slow or recognition failures problem.
To reach above-mentioned purpose, the technical scheme is that what is be achieved in that:
In a first aspect, embodiments providing a kind of image quality processing method, methods described includes:
The display bezel of the Quick Response Code of terminal detection scanning inframe, and obtain the display bezel size of the Quick Response Code;
Whether the display bezel size of Quick Response Code described in the terminal judges is interval in default identification size;
When the display bezel size of the Quick Response Code is interval in default identification size, sweep described in the terminal recognition The Quick Response Code of inframe is retouched, and obtains the information content that the Quick Response Code is included;
When the display bezel size of the Quick Response Code is not at default identification size interval, the terminal is according to default Adjustable strategies adjust the display bezel size of the Quick Response Code, and rejudge the display bezel size of the Quick Response Code after adjustment It is whether interval in the default identification size.
In such scheme, when the interval higher limit of the identification size is that the terminal is capable of identify that the Quick Response Code The full-size of the Quick Response Code display bezel, the interval lower limit of the identification size is that the terminal is capable of identify that described two The minimum dimension of Quick Response Code display bezel during dimension code.
In such scheme, the display bezel of the Quick Response Code of the terminal detection scanning inframe is specifically included:The terminal The display bezel of the Quick Response Code of scanning inframe is obtained using edge detection algorithm.
In such scheme, the display bezel of the Quick Response Code of the terminal detection scanning inframe is specifically included:The terminal Using scanning inframe two-dimension code pattern feature location and obtain scanning inframe Quick Response Code display bezel;Wherein, described two Dimension code graphic feature is included but is not limited to:The shape of the Quick Response Code, color and special identifier.
In such scheme, the terminal adjusts the display bezel size of the Quick Response Code according to default adjustable strategies, Specifically include:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal passes through The numerical value of regulation parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal passes through The numerical value of regulation parameter Zoom is increasing the display bezel size of the Quick Response Code.
Second aspect, embodiments provides a kind of terminal, and the terminal includes:Detection module, judge module, knowledge Other module and adjusting module;Wherein,
The detection module, for the display bezel of the Quick Response Code of detection scanning inframe, and obtains the aobvious of the Quick Response Code Show frame size;
The judge module, for judging the display bezel size of the Quick Response Code whether in default identification size field Between;
The identification module, for recognizing the Quick Response Code of the scanning inframe, and obtains the letter that the Quick Response Code is included Breath content;
The adjusting module, for adjusting the display bezel size of the Quick Response Code.
In such scheme, the interval higher limit of the default identification size is that the terminal is capable of identify that the two dimension The full-size of Quick Response Code display bezel during code, the interval lower limit of the identification size is that the terminal is capable of identify that The minimum dimension of the Quick Response Code display bezel during Quick Response Code.
In such scheme, the detection module, specifically for:The two dimension of scanning inframe is obtained using edge detection algorithm The display bezel of code.
In such scheme, the detection module, specifically for:Using the two-dimension code pattern feature location for scanning inframe simultaneously Obtain the display bezel of the Quick Response Code of scanning inframe;Wherein, the two-dimension code pattern feature is included but is not limited to:The Quick Response Code Shape, color and special identifier.
In such scheme, the adjusting module, specifically for:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal passes through The numerical value of regulation parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal passes through The numerical value of regulation parameter Zoom is increasing the display bezel size of the Quick Response Code.
A kind of image quality processing method and terminal that the embodiment of the present invention is provided, the method is by judging scanning inframe two dimension Whether the display bezel size of code is interval in default identification size, and when the display bezel size of the Quick Response Code is not at During the default identification size interval, the terminal can pass through the numerical value of parameter Zoom of the adjustment terminal built-in, from And amplify display picture of the Quick Response Code in scan box so that the terminal can quickly recognize and obtain scanned two The information content of dimension code.The method improves the experience of user, facilitates user to the scanning of Quick Response Code and uses.
Description of the drawings
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of image quality processing method schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of QR two-dimension code patterns schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of display picture schematic diagram of scanning inframe provided in an embodiment of the present invention;
Fig. 5 is the Quick Response Code display picture schematic diagram after a kind of amplification provided in an embodiment of the present invention;
Fig. 6 is the display picture schematic diagram of another kind of scanning inframe provided in an embodiment of the present invention;
Fig. 7 is the Quick Response Code display picture schematic diagram after a kind of diminution provided in an embodiment of the present invention;
Fig. 8 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
The mobile terminal for realizing each embodiment of the invention is described referring now to accompanying drawing 1.In follow-up description, make With the suffix of such as " module ", " part " or " unit " that are used to represent element only for being conducive to explanation of the invention, its Body does not have specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving It is phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable The mobile terminal of formula multimedia player (PMP), guider etc. and the such as fixation of numeral TV, desk computer etc. Terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving mesh Element outside, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, audio/video (A/V) input block 120, user input Unit 130, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc..Fig. 1 is illustrated Mobile terminal with various assemblies, it should be understood that be not required for implementing all components for illustrating, can be alternatively Implement more or less of component, will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include, mobile communication module 112 and wireless Internet Module 113.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include camera 121, phase Static images or the image of video that 121 pairs, machine is obtained in Video Capture pattern or image capture mode by image capture apparatus Data are processed.Picture frame after process may be displayed on display unit 151.Picture frame Jing after the process of camera 121 can It is transmitted in be stored in memorizer 160 (or other storage mediums) or via wireless communication unit 110, can be according to shifting The construction of dynamic terminal provides two or more cameras 121.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for receive from The input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transferred in mobile terminal 1 00 One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through it by electricity Power from base provide to mobile terminal 1 00 path or can serve as allow from base be input into various command signals pass through its It is transferred to the path of mobile terminal.Can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include showing Unit 151 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another in the form of layer, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touch Input pressure and touch input position and touch input area.
Memorizer 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke Temporarily to store the data that exported or will export (for example, telephone directory, message, still image, video etc.).And And, memorizer 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch screen and audio signal Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memorizer (for example, SD or DX memorizeies etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memorizer with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or is so structured that and control Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various embodiments described herein can be with using such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein Implementing, in some cases, such embodiment can be implemented at least one in electronic unit in controller 180. For software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memorizer 160 and be performed by controller 180.
So far, according to its function mobile terminal has been described.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operating.
Based on above-mentioned mobile terminal hardware configuration, the inventive method each embodiment is proposed.
Embodiment one
As shown in Fig. 2 a kind of image quality processing method provided in an embodiment of the present invention is it gives, can from figure Go out, the method can include:
The display bezel of S210, the Quick Response Code of terminal detection scanning inframe, and obtain the display bezel chi of the Quick Response Code It is very little;
It should be noted that the display bezel size of the Quick Response Code can by the resolution of the display bezel or The surface area of the surface area of the display bezel or the display bezel is characterized with the ratio of the surface area of the scan box.It is right The characteristic manner of Ying Di, the interval higher limit of following default identification sizes and lower limit and the display bezel chi of the Quick Response Code Very little characteristic manner is consistent.
Whether S220, the display bezel size of Quick Response Code described in the terminal judges are in default identification size interval; If it is, execution step S230;Otherwise, execution step S240;
It is to be appreciated that the interval two dimension being when the terminal is capable of identify that the Quick Response Code of the identification size The size of code display bezel is interval, when the interval higher limit of the identification size is that the terminal is capable of identify that the Quick Response Code The full-size of the Quick Response Code display bezel, the interval lower limit of the identification size is that the terminal is capable of identify that described two The minimum dimension of Quick Response Code display bezel during dimension code.That is, when the display bezel size of the Quick Response Code is in During the default identification size interval, illustrate that the terminal with the information content in Quick Response Code described in Direct Recognition, and can be known Other speed;When the display bezel size of the Quick Response Code is not at the default identification size interval, illustrate described Terminal can not recognize the information content in the Quick Response Code, or the information content being capable of identify that in the Quick Response Code, but Recognition speed is slower.Therefore, the interval higher limit of the identification size and lower limit are a kind of empirical values.
The Quick Response Code of inframe is scanned described in S230, the terminal recognition, and is obtained in the information that the Quick Response Code is included Hold;
S240, the terminal adjust the display bezel size of the Quick Response Code according to default adjustable strategies, and return is held Row step S220.
Exemplarily, the display bezel of the Quick Response Code of the terminal detection scanning inframe, can specifically utilize rim detection Algorithm obtains the display bezel of the Quick Response Code of scanning inframe.
Quick Response Code is according to certain rules in the black and white phase of plane (on two-dimensional directional) distribution with certain specific geometric figure Between graphic recording data symbol information, that is to say, that the display image of Quick Response Code be it is a kind of be made up of monochrome pixels two Value image, therefore, in the display picture of scanning inframe, it is possible to use existing edge detection operator is easily by scan box The display bezel of the Quick Response Code included in interior display picture is detected.At technical field of image processing, common edge Detective operators are broadly divided into two types:A kind of is the edge detection operator based on first derivative, by calculating image Grad comes detection image edge, such as:Difference edge detection, Roberts operators, Sobel operators and Prewitt operators etc.;One Kind be the edge detection operator based on second dervative, by seeking second dervative in zero crossing detecting edge, such as: Laplace operators, LOG operators and Canny operators etc..
In above-mentioned several operators, difference edge detection is basic and original method, according to step edge situation principle, Edge is detected using derivative operator, this operator requesting party tropism calculates loaded down with trivial details, therefore seldom adopts;Roberts operators are one Simplest operator is planted, the effect of its detection vertical edge is better than oblique edge, it is in effect both horizontally and vertically preferably, fixed Position high precision, but to noise-sensitive;Sobel operators spatially easily realize, can smooth noise, it is possible to provide accurate edge side To information, but also will detect that pseudo-edge so that positioning edge definition is relatively low;The characteristics of Prewitt operators and Sobel operators Feature is similar to, and it can preferably process the more image of gray scale gradual change and noise;Laplace operators, because the operator is two Order difference, the double enhancing picture noise of meeting, therefore, it is more sensitive to picture noise, and the wide edge of double image element is easily produced, easily Edge directional information is lost, but, the operator has isotropism, sensitivity, accurate positioning is mutated to gray scale, is capable of detecting when greatly Most edges and seldom there is pseudo-edge;LOG operators not only with smoothed image but also can reduce noise;Canny operators Noise removal capability value-based algorithm more minimum than Roberts operator, Sobel operators and Prewitt operators will be strong, and can in noise and Preferable balance is obtained between rim detection, real weak edge is able to detect that, but the operator also easily smooths out some sides Edge information.
Therefore, in actual applications, the terminal can be selected wherein with reference to the characteristics of above-mentioned several edge detection operators A kind of edge detection operator come realize scan inframe Quick Response Code display bezel acquisition.
In addition, it is necessary to explanation, Quick Response Code in scan box it is shown that square-shaped patterns shape, therefore, except can be with Outside the display bezel of the Quick Response Code that scanning inframe is obtained by rim detection, can be with directly by way of picture recognition, i.e., The display bezel of the Quick Response Code of scanning inframe is directly positioned and obtained using two-dimension code pattern feature.The figure of the Quick Response Code Feature can include that the special identifier refers to two-dimension code pattern one or more in the parameters such as shape, color, special identifier A kind of distinctive mark, such as QR codes, conventional two-dimentional code type, wherein three in its four corners are printed on similar The square pattern of " returning " word, as shown in figure 3, therefore, it can position and obtain by " returning " the shape pattern in detection Quick Response Code Take the display bezel of the Quick Response Code of scanning inframe.
Exemplarily, for step S240, the terminal adjusts the display of the Quick Response Code according to default adjustable strategies Frame size, specifically can include process is implemented as follows:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal passes through The numerical value of regulation parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal passes through The numerical value of regulation parameter Zoom is increasing the display bezel size of the Quick Response Code.
It should be noted that parameter Zoom is the focal length for adjusting camera in the terminal, in camera position In the case of constant, focal length is longer, claps narrower into the scenery scope of picture, and subject is also bigger.Parameter Zoom Value in the terminal camera shoot focal length can be directly proportional, i.e. Zoom values are bigger, in the terminal camera shooting Jiao Away from longer, the picture of shooting is bigger, and the display bezel size of the Quick Response Code of the terminal scanning inframe is also bigger;Or Person, the focal length that the value of parameter Zoom shoots with camera in the terminal can also be inversely proportional to, i.e. Zoom values are bigger, the end The focal length that camera shoots on end is shorter, and the picture of shooting is less, the display bezel of the Quick Response Code of the terminal scanning inframe Size is also less.
A kind of image quality processing method is embodiments provided, the method can interpolate that the display of scanning inframe Quick Response Code Whether frame size is interval in default identification size, when the display bezel size of the Quick Response Code is not at default identification When size is interval, the display bezel size of the adjustment Quick Response Code can be passed through so that the terminal quickly recognizes and obtain quilt The information content of the Quick Response Code of scanning, so as to improve the experience of user, facilitates user to the scanning of Quick Response Code and uses.
Embodiment two
For convenience to the understanding of such scheme, the embodiment of the present invention will be with reference to concrete application scene to above-mentioned technical proposal Specific implementation process be described.
For example, we set such a scene:User A from supermarket shopping out after, it is found that information desk is carried out and " swept Sweep " surrounded by other users around courteous activity, but the panel of the Quick Response Code now puted up, therefore user A can only be single Handss are held high and have turned on the mobile phone of " sweep and sweep " function and be scanned against the Quick Response Code panel of distant place, now captured in scan box Picture as shown in figure 4, it can be seen that the current value of parameter Zoom be 0.5x.Clearly for not using above-mentioned The mobile phone of the technical scheme that embodiment one is provided, because the image in 2 D code in the picture captured by scanning inframe is too little, leads Cause the mobile phone None- identified and obtain the information content that the Quick Response Code is included, now user A is because crowded and another It is portable and manually to adjust the size of the Quick Response Code display picture in scan box just from the thing of supermarket's purchase, so as to shadow Uses of the user A to two-dimensional code scanning is rung.
But, for the mobile phone for employing the technical scheme that above-described embodiment one is provided, will preferably solve above-mentioned shadow Ring use problems of the user A to two-dimensional code scanning.Specifically, when " sweep and sweep " function of mobile phone is unlocked, mobile phone will be utilized The display bezel of the Quick Response Code of built-in edge detection algorithm detection scanning inframe, further, mobile phone will be obtained relatively easily Whether the display bezel size for taking the Quick Response Code is 16.0%, and judge the display bezel size of the Quick Response Code in default Identification size interval (assume default identification size interval be [60%, 1]), it is clear that judged result is the aobvious of the Quick Response Code Show the frame size lower limit interval less than the default identification size, therefore mobile phone by increasing parameter-embedded Zoom automatically Numerical value come elongate the camera on mobile phone shooting focal length, the display picture of the Quick Response Code of magnified sweep inframe is come with this so that The display bezel size of the Quick Response Code after adjustment is about 96%, it is clear that the display bezel size of the Quick Response Code after adjustment is in described Default identification size is interval, and the display picture of the Quick Response Code after amplification is as shown in figure 5, it can be seen that parameter Zoom Current value be 3.0x, compared to the initial picture for shooting, i.e. picture shown by figure 4 above, the Quick Response Code after adjustment shows Picture is extended 6 times.Based on this, mobile phone will relatively easily recognize the Quick Response Code of the scanning inframe, and obtain the two dimension The information content that code is included, so as to be very easy to use of the user to Quick Response Code, effectively improves Consumer's Experience.
Additionally, it is also possible to there is such a case, the image in 2 D code in picture captured by mobile phone is too big, such as Fig. 6 Described, obviously beyond scan box, i.e., now image in 2 D code is aobvious for the display bezel size of the image in 2 D code that mobile phone shoots Show the frame size higher limit interval more than default identification size, therefore mobile phone passes through to reduce the number of parameter-embedded Zoom automatically Value come shorten the camera on mobile phone shooting focal length, as shown in fig. 7, reducing the display picture of image in 2 D code with this so that The display bezel size of the image in 2 D code after reduction is interval in default identification size.
The embodiment of the present invention combines a kind of image quality process side that specific application scenarios are provided above-described embodiment one Method has carried out specific description, by the display picture of the Quick Response Code of magnified sweep inframe so that mobile phone is relatively easily recognized simultaneously The information content included in the Quick Response Code is obtained, so as to facilitate use of the user to Quick Response Code, user is effectively improved Experience.
Embodiment three
Based on technology design same as before, as shown in figure 8, it gives a kind of terminal provided in an embodiment of the present invention 80, the terminal 80 can include:Detection module 810, judge module 820, identification module 830 and adjusting module 840;Wherein,
The detection module 810, for the display bezel of the Quick Response Code of detection scanning inframe, and obtains the Quick Response Code Display bezel size;
The judge module 820, for judging the display bezel size of the Quick Response Code whether in default identification chi Very little interval;
The identification module 830, for recognizing the Quick Response Code of the scanning inframe, and obtains what the Quick Response Code was included Information content;
The adjusting module 840, for adjusting the display bezel size of the Quick Response Code.
In such scheme, the interval higher limit of the default identification size is that the terminal is capable of identify that the two dimension The full-size of Quick Response Code display bezel during code, the interval lower limit of the identification size is that the terminal is capable of identify that The minimum dimension of the Quick Response Code display bezel during Quick Response Code.
In such scheme, the detection module 810, specifically for:Scanning inframe is obtained using edge detection algorithm The display bezel of Quick Response Code.
In such scheme, the detection module 810, specifically for:Determined using the two-dimension code pattern feature of scanning inframe Position and obtain scanning inframe Quick Response Code display bezel;Wherein, the two-dimension code pattern feature is included but is not limited to:Described two Tie up shape, color and the special identifier of code.
In such scheme, the adjusting module 840, specifically for:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal passes through The numerical value of regulation parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal passes through The numerical value of regulation parameter Zoom is increasing the display bezel size of the Quick Response Code.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row His property is included, so that a series of process, method, article or device including key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer takes Business device, air-conditioner, or network equipment etc.) perform method described by each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of image quality processing method, it is characterised in that methods described includes:
The display bezel of the Quick Response Code of terminal detection scanning inframe, and obtain the display bezel size of the Quick Response Code;
Whether the display bezel size of Quick Response Code described in the terminal judges is interval in default identification size;
When the display bezel size of the Quick Response Code is interval in default identification size, scan box described in the terminal recognition Interior Quick Response Code, and obtain the information content that the Quick Response Code is included;
When the display bezel size of the Quick Response Code is not at default identification size interval, the terminal is according to default tune The display bezel size of Quick Response Code described in whole Developing Tactics, and whether rejudge the display bezel size of the Quick Response Code after adjustment It is interval in the default identification size.
2. method according to claim 1, it is characterised in that the interval higher limit of the identification size is the terminal energy The full-size of Quick Response Code display bezel when enough recognizing the Quick Response Code, the interval lower limit of the identification size is institute State the minimum dimension of Quick Response Code display bezel when terminal is capable of identify that the Quick Response Code.
3. method according to claim 1, it is characterised in that the display side of the Quick Response Code of the terminal detection scanning inframe Frame, specifically includes:The terminal obtains the display bezel of the Quick Response Code of scanning inframe using edge detection algorithm.
4. method according to claim 1, it is characterised in that the display side of the Quick Response Code of the terminal detection scanning inframe Frame, specifically includes:The terminal using scanning inframe two-dimension code pattern feature location and obtain the Quick Response Code of scanning inframe Display bezel;Wherein, the two-dimension code pattern feature is included but is not limited to:The shape of the Quick Response Code, color and special identifier.
5. method according to claim 1, it is characterised in that the terminal adjusts described two according to default adjustable strategies The display bezel size of dimension code, specifically includes:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal is by adjusting The numerical value of parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal is by adjusting The numerical value of parameter Zoom is increasing the display bezel size of the Quick Response Code.
6. a kind of terminal, it is characterised in that the terminal includes:Detection module, judge module, identification module and adjusting module; Wherein,
The detection module, for the display bezel of the Quick Response Code of detection scanning inframe, and obtains the display side of the Quick Response Code Frame size;
Whether the judge module, the display bezel size for judging the Quick Response Code is interval in default identification size;
The identification module, for recognizing the Quick Response Code of the scanning inframe, and obtains in the information that the Quick Response Code is included Hold;
The adjusting module, for adjusting the display bezel size of the Quick Response Code.
7. terminal according to claim 6, it is characterised in that the interval higher limit of the default identification size is described The full-size of Quick Response Code display bezel when terminal is capable of identify that the Quick Response Code, the interval lower limit of the identification size Value is the minimum dimension of the Quick Response Code display bezel when terminal is capable of identify that the Quick Response Code.
8. terminal according to claim 6, it is characterised in that the detection module, specifically for:Calculated using rim detection Method obtains the display bezel of the Quick Response Code of scanning inframe.
9. terminal according to claim 6, it is characterised in that the detection module, specifically for:Using scanning inframe Two-dimension code pattern feature location and obtain scanning inframe Quick Response Code display bezel;Wherein, the two-dimension code pattern feature bag Include but be not limited to:The shape of the Quick Response Code, color and special identifier.
10. terminal according to claim 6, it is characterised in that the adjusting module, specifically for:
When the display bezel size of the Quick Response Code higher limit interval more than the identification size, the terminal is by adjusting The numerical value of parameter Zoom is reducing the display bezel size of the Quick Response Code;
When the display bezel of the Quick Response Code is smaller in size than the interval lower limit of the identification size, the terminal is by adjusting The numerical value of parameter Zoom is increasing the display bezel size of the Quick Response Code.
CN201611073274.9A 2016-11-29 2016-11-29 Image quality processing method and terminal Pending CN106599758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611073274.9A CN106599758A (en) 2016-11-29 2016-11-29 Image quality processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611073274.9A CN106599758A (en) 2016-11-29 2016-11-29 Image quality processing method and terminal

Publications (1)

Publication Number Publication Date
CN106599758A true CN106599758A (en) 2017-04-26

Family

ID=58593668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611073274.9A Pending CN106599758A (en) 2016-11-29 2016-11-29 Image quality processing method and terminal

Country Status (1)

Country Link
CN (1) CN106599758A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122693A (en) * 2017-05-15 2017-09-01 北京小米移动软件有限公司 Two-dimensional code identification method and device
CN107423794A (en) * 2017-05-31 2017-12-01 北京安云世纪科技有限公司 The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
CN109033912A (en) * 2018-07-25 2018-12-18 维沃移动通信有限公司 A kind of recognition methods of identification code and mobile terminal
CN109214225A (en) * 2018-07-04 2019-01-15 青岛海信移动通信技术股份有限公司 A kind of scan method, device, mobile terminal and the storage medium of figure bar code
CN109598162A (en) * 2018-08-20 2019-04-09 天津字节跳动科技有限公司 Identify method, apparatus, terminal device and the storage medium of two dimensional code
CN109934041A (en) * 2019-03-26 2019-06-25 杭州网易再顾科技有限公司 Information processing method, information processing system, medium and calculating equipment
CN111639508A (en) * 2020-05-29 2020-09-08 天津维创微智能科技有限公司 Bar code positioning frame correction method, device, equipment and storage medium
CN111989721A (en) * 2018-04-17 2020-11-24 联邦印制有限公司 Method for verifying security features based on luminescent materials
CN112784826A (en) * 2018-03-23 2021-05-11 创新先进技术有限公司 Image identification method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211412A (en) * 2006-12-28 2008-07-02 摩托罗拉公司 Image-forming process for encoding data
WO2016158121A1 (en) * 2015-03-30 2016-10-06 フェリカネットワークス株式会社 Information processing device, information processing method, and information processing system
CN106056027A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Terminal, system and method for achieving long-range two-dimensional code scanning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211412A (en) * 2006-12-28 2008-07-02 摩托罗拉公司 Image-forming process for encoding data
WO2016158121A1 (en) * 2015-03-30 2016-10-06 フェリカネットワークス株式会社 Information processing device, information processing method, and information processing system
CN106056027A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Terminal, system and method for achieving long-range two-dimensional code scanning

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122693A (en) * 2017-05-15 2017-09-01 北京小米移动软件有限公司 Two-dimensional code identification method and device
CN107423794A (en) * 2017-05-31 2017-12-01 北京安云世纪科技有限公司 The barcode scanning method, apparatus and mobile terminal of a kind of encoding of graphs
CN112784826A (en) * 2018-03-23 2021-05-11 创新先进技术有限公司 Image identification method, device and equipment
CN111989721A (en) * 2018-04-17 2020-11-24 联邦印制有限公司 Method for verifying security features based on luminescent materials
CN109214225A (en) * 2018-07-04 2019-01-15 青岛海信移动通信技术股份有限公司 A kind of scan method, device, mobile terminal and the storage medium of figure bar code
CN109033912A (en) * 2018-07-25 2018-12-18 维沃移动通信有限公司 A kind of recognition methods of identification code and mobile terminal
CN109598162A (en) * 2018-08-20 2019-04-09 天津字节跳动科技有限公司 Identify method, apparatus, terminal device and the storage medium of two dimensional code
CN109934041A (en) * 2019-03-26 2019-06-25 杭州网易再顾科技有限公司 Information processing method, information processing system, medium and calculating equipment
CN109934041B (en) * 2019-03-26 2021-12-17 杭州网易再顾科技有限公司 Information processing method, information processing system, medium, and computing device
CN111639508A (en) * 2020-05-29 2020-09-08 天津维创微智能科技有限公司 Bar code positioning frame correction method, device, equipment and storage medium
CN111639508B (en) * 2020-05-29 2023-04-25 天津维创微智能科技有限公司 Bar code positioning frame correction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106599758A (en) Image quality processing method and terminal
CN111339846B (en) Image recognition method and device, electronic equipment and storage medium
CN109409161B (en) Graphic code identification method, device, terminal and storage medium
US20190057256A1 (en) Method for recognizing a specific object inside an image and electronic device thereof
CN109407936B (en) Screenshot method and related device
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
US10863202B2 (en) Encoding data in a source image with watermark image codes
CN106412324A (en) Apparatus and method for prompting focusing object
US9245315B2 (en) Method, apparatus and computer program product for generating super-resolved images
US9478036B2 (en) Method, apparatus and computer program product for disparity estimation of plenoptic images
EP3462371B1 (en) Graphical code processing method and apparatus, and storage medium
CN110431563B (en) Method and device for correcting image
CN108009563B (en) Image processing method and device and terminal
Liu et al. VCode—Pervasive data transfer using video barcode
CN114096994A (en) Image alignment method and device, electronic equipment and storage medium
CN112990197A (en) License plate recognition method and device, electronic equipment and storage medium
CN113723136A (en) Bar code correction method, device, equipment and storage medium
US10838601B2 (en) Processing method and terminal
CN105635809A (en) Image processing method and device and terminal
CN112927163A (en) Image data enhancement method and device, electronic equipment and storage medium
CN108776959B (en) Image processing method and device and terminal equipment
CN108270973B (en) Photographing processing method, mobile terminal and computer readable storage medium
US20210281742A1 (en) Document detections from video images
CN111428707B (en) Method and device for identifying pattern identification code, storage medium and electronic equipment
US20210203994A1 (en) Encoding data in a source image with watermark image codes

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: 20170426

RJ01 Rejection of invention patent application after publication