CN103997567A - Method and device for acquiring graphic code information - Google Patents

Method and device for acquiring graphic code information Download PDF

Info

Publication number
CN103997567A
CN103997567A CN201410182486.5A CN201410182486A CN103997567A CN 103997567 A CN103997567 A CN 103997567A CN 201410182486 A CN201410182486 A CN 201410182486A CN 103997567 A CN103997567 A CN 103997567A
Authority
CN
China
Prior art keywords
graphic code
picture
information
code information
screenshotss
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
CN201410182486.5A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410182486.5A priority Critical patent/CN103997567A/en
Publication of CN103997567A publication Critical patent/CN103997567A/en
Pending legal-status Critical Current

Links

Abstract

Disclosed is a method and device for acquiring graphic code information. The method comprises the steps of acquiring a picture to be detected, detecting whether the picture includes a graphic code, analyzing the graphic code to obtain graphic code information if the picture includes a graphic code, and establishing and storing the mapping relationship between the picture and the graphic code information. The device comprises an acquisition module, a detection module, an analysis module and an establishment module. After a picture acquired by a mobile phone is detected and a detected graphic code is analyzed, information of the graphic code can be acquired. Graphic code information displayed on a mobile phone can be acquired without the need for other scanning equipment, which brings great convenience to users.

Description

Graphic code information getting method and device
Technical field
The disclosure relates to terminal technology field, relates in particular to a kind of graphic code information getting method and device.
Background technology
Graphic code is the chequered with black and white figure of recording data information.User, in the time obtaining graphic code information, need to use scanning device to scan graphic code.
In correlation technique, user is using while there is graphic code when mobile phone, and user need to be scanned with the equipment that other can scintigram shape code, thereby obtains the information of this graphic code.While making graphic code that user occurs in scanning cell phone, be restricted, obtain graphic code information to user and make troubles.
Summary of the invention
In order to solve correlation technique when the graphic code scanning on present mobile phone, the problem that scanning process is loaded down with trivial details, complicated, the disclosure provides a kind of graphic code information getting method and device.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, a kind of graphic code information getting method is provided, comprising:
Obtain picture to be detected;
Detect and in described picture, whether comprise graphic code;
If described picture comprises graphic code, described graphic code is resolved, obtain described graphic code information;
Set up and preserve the mapping relations between described picture and described graphic code information.
Further, described method also comprises:
When detect described picture clicking operation time, according to described mapping relations, obtain described picture graph of a correspondence code information, and carry out redirect based on described graphic code information.
Further, obtain picture to be detected, comprising: current display page is carried out to screenshotss, obtain the picture of screenshotss; Or, from picture file folder, obtain picture to be detected.
Further, described method also comprises:
After described current display page is carried out to screenshotss, adjust the display parameters of graphic code described in described picture, in the time that described picture is shown, show described graphic code according to the display parameters after adjusting.
Further, described method also comprises:
After described current display page is carried out to screenshotss, in the time that described picture is shown, in the predeterminable area display reminding information of described picture, described information is used for pointing out photo current to comprise graphic code.
Further, detect in described picture and whether comprise and comprise graphic code:
According to graphic code composition rule, judge in described picture whether comprise the region that meets described graphic code composition rule, if comprised, determine that described picture comprises graphic code, if do not comprised, determine and in described picture, do not comprise graphic code.
Further, if described picture comprises graphic code, described graphic code is resolved, obtains described graphic code information, comprising:
Call default graphic code and resolve interface, resolve interface by described default graphic code described graphic code is resolved, obtain described graphic code information.
Further, when detect described picture clicking operation time, carry out redirect according to described graphic code information, comprising:
When detect graphic code region described in described picture clicking operation time, carry out redirect according to described graphic code information.
According to the second aspect of disclosure embodiment, a kind of graphic code information acquisition device is provided, comprising:
Acquisition module, for obtaining picture to be detected;
Detection module, for detection of whether comprising graphic code in described picture;
Parsing module, for described graphic code is resolved, obtains described graphic code information;
Set up module, for setting up and preserve the mapping relations between described picture and described graphic code information.
Further, described device also comprises:
Redirect module, for when detect described picture clicking operation time, carry out redirect according to described graphic code information.
Further, described acquisition module comprises:
Screenshotss unit, for current display page is carried out to screenshotss, obtains the picture of screenshotss;
Acquiring unit, for obtaining picture to be detected from picture file folder.
Further, described device also comprises:
Display module, for adjusting the display parameters of graphic code described in described picture.
Further, described device also comprises:
Reminding module, for pointing out photo current to comprise graphic code.
Further, described detection module comprises:
Judging unit, for according to graphic code composition rule, judges in described picture, whether to comprise the region that meets described graphic code composition rule;
Determining unit, for determining whether described picture comprises graphic code.
Further, described parsing module comprises:
Graphic code is resolved interface, for described graphic code is resolved;
Call unit, resolves interface for calling described graphic code.
Further, described redirect module comprises:
Detecting unit, for detection of the clicking operation to graphic code region described in described picture;
Jump-transfer unit, for carrying out redirect according to described graphic code information.
According to the third aspect of disclosure embodiment, a kind of graphic code information acquisition device is provided, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain picture to be detected;
Detect and in described picture, whether comprise graphic code;
If described picture comprises graphic code, described graphic code is resolved, obtain described graphic code information;
Set up and preserve the mapping relations between described picture and described graphic code information.
Further, described processor is also configured to:
When detect described picture clicking operation time, according to described mapping relations, obtain described picture graph of a correspondence code information, and carry out redirect based on described graphic code information.
Further, obtain picture to be detected, comprising: current display page is carried out to screenshotss, obtain the picture of screenshotss; Or, from picture file folder, obtain picture to be detected.
Further, described processor is also configured to:
After described current display page is carried out to screenshotss, adjust the display parameters of graphic code described in described picture, in the time that described picture is shown, show described graphic code according to the display parameters after adjusting.
Further, described processor is also configured to:
After described current display page is carried out to screenshotss, in the time that described picture is shown, in the predeterminable area display reminding information of described picture, described information is used for pointing out photo current to comprise graphic code.
Further, detect in described picture and whether comprise and comprise graphic code:
According to graphic code composition rule, judge in described picture whether comprise the region that meets described graphic code composition rule, if comprised, determine that described picture comprises graphic code, if do not comprised, determine and in described picture, do not comprise graphic code.
Further, if described picture comprises graphic code, described graphic code is resolved, obtains described graphic code information, comprising:
Call default graphic code and resolve interface, resolve interface by described default graphic code described graphic code is resolved, obtain described graphic code information.
Further, when detect described picture clicking operation time, carry out redirect according to described graphic code information, comprising:
When detect graphic code region described in described picture clicking operation time, carry out redirect according to described graphic code information.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The disclosure is by the picture obtaining on mobile phone is detected, and the graphic code detecting is resolved, and can obtain the information of this graphic code.Making does not need just can obtain by other scanning devices the graphic code information showing on mobile phone, thereby is very easy to user's use.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is according to the flow chart of a kind of graphic code information getting method shown in an exemplary embodiment;
Fig. 2 is according to the flow chart of a kind of graphic code information getting method shown in an exemplary embodiment;
Fig. 3 is according to the schematic diagram of Quick Response Code in the display picture of mobile phone shown in an exemplary embodiment;
Fig. 4 is according to the schematic diagram of Quick Response Code in the display picture of mobile phone shown in an exemplary embodiment;
Fig. 5 is according to the schematic diagram of Quick Response Code in the display picture of mobile phone shown in an exemplary embodiment;
Fig. 6 is according to the schematic diagram of a kind of graphic code information acquisition device shown in an exemplary embodiment;
Fig. 7 is according to the schematic diagram of a kind of graphic code information acquisition device shown in an exemplary embodiment;
Fig. 8 is according to the block diagram of a kind of graphic code information acquisition device shown in an exemplary embodiment.
Wherein: 1 mobile phone,
2 prompting regions,
3 Quick Response Code regions,
4 other regions.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is according to the flow chart of a kind of graphic code information getting method shown in an exemplary embodiment, and as shown in Figure 1, graphic code information getting method, for terminal, comprises the following steps.
In step S101, obtain picture to be detected.
In step S102, detect in this picture, whether to comprise graphic code.
In step S103, if this picture comprises graphic code, this graphic code is resolved, obtain graphic code information.
In step S104, set up the mapping relations between picture and graphic code information.
In step S105, when detect this picture clicking operation time, carry out redirect according to this graphic code information.
By the picture obtaining on mobile phone is detected, and the graphic code detecting is resolved, can obtain the information of this graphic code.Making does not need just can obtain by other scanning devices the graphic code information showing on mobile phone, thereby is very easy to user's use.
Fig. 2 is according to the flow chart of a kind of graphic code information getting method shown in an exemplary embodiment, and as shown in Figure 2, graphic code information getting method, for terminal, comprises the following steps.
In step S201, in the time there is graphic code on mobile phone display screen, user operates to obtain the picture that includes this graphic code by screenshotss.
Particularly, user carries out screenshotss operation, and mobile phone terminal carries out screenshotss to the content of current demonstration receiving after screenshotss instruction, makes mobile phone terminal obtain with the form of picture the content that current display screen shows.
It should be noted that: the mode of obtaining picture to be detected has a lot, for example: user can obtain the graphic code occurring on mobile phone display screen by the mode of screenshotss, obtains including the picture of this graphic code; Also can or include the picture that obtains including graphic code other file of picture from the photograph album of the own mobile phone terminal of user, picture library; Also can from the picture that other users send, obtain this picture.
In step S202, mobile phone terminal, according to graphic code composition rule, judges in picture whether comprise the region that meets graphic code composition rule, if comprised, determines that this picture comprises graphic code, and performs step 203; If do not comprised, determine in this picture and do not comprise and finish the processing to picture by graphic code.
It should be noted that: the kind of graphic code has multiple, can be divided into capable row's formula two-dimensional bar code and matrix two-dimensional barcode.After user chooses the picture of needs scanning, mobile phone terminal detects the pictorial information of current demonstration by calling mounted program package, in different graphic codes, there is different architectural features, come to distinguish with the out of Memory of picture by the architectural feature in graphic code, and the graphic code of every type has again dissimilar architectural feature, therefore can further determine it is the graphic code of which kind of type by these architectural features.
QR code code (Quick Response Code) is the one of Quick Response Code, in the present embodiment, describe as an example of QR code code example, QR code code be in the upper left corner of this two-dimensional bar code, the upper right corner and three places, the lower left corner are respectively equipped with three positioning patterns, if mobile phone terminal is by detecting picture, find in this picture, to there are three above-mentioned positioning patterns, can judge in this picture and there is graphic code, and can further determine that the position of this graphic code and this graphic code are QR code code.
In step S203, mobile phone terminal is adjusted the display parameters of graphic code in picture, in the time that this picture is shown, shows this graphic code according to the display parameters after adjusting.
By this step, user is after screenshotss are processed, mobile phone directly shows this picture, and by this picture is detected, is confirmed after graphic code information, mobile phone terminal can obtain the accurate location of this graphic code, by this positional information, mobile phone terminal can be adjusted the display parameters in this graphic code region, thereby this graphic code region is highlighted.If mobile phone terminal is detecting when this picture, does not find to there is the architectural feature of graphic code, or while not thering is the function of this type of graphic code of identification in mobile phone, this picture is not processed.Wherein, the display parameters of adjusting graphic code comprise color, brightness or the size of adjusting graphic code region, make graphic code region can obviously be different from other region of picture.When mobile phone terminal contains graphic code in this picture of confirmation, adjust picture brightness and also highlighted demonstration is carried out in graphic code region.As shown in Figure 3, show that by the default prompting region 2 of mobile phone the information that contains Quick Response Code in this picture is to inform user, and make the display brightness in Quick Response Code region 3 be different from other region 4 of this picture by mobile phone terminal processing, thereby in mobile phone screen, obtain the Quick Response Code of highlighted demonstration.
It should be noted that: after user carries out screenshotss to current display page, can also be by the predeterminable area display reminding information of this picture, point out in the picture of user's screenshotss whether comprise graphic code.Particularly, user carries out after screenshotss operation in current display page, mobile phone terminal is saved to picture in file in continuing to show this page, and this picture is detected, if contain graphic code in this picture after detecting, display reminding information on display page, informs in the picture of user's screenshotss and includes graphic code.
As shown in Figure 4, after user carries out screenshotss operation, mobile phone terminal passes through this image detect, confirm in picture, whether to contain Quick Response Code, if contain Quick Response Code in picture, in the default prompting of mobile phone region 2 display reminding information, inform in this picture of user and contain Quick Response Code, but do not show this picture, make user can continue to browse current page.
Further, as shown in Figure 5, in the time opening this picture in the file of user at mobile phone and check, mobile phone terminal is processed the display parameters of this picture again.For example, mobile phone terminal is adjusted the brightness of this picture and highlighted demonstration is carried out in Quick Response Code region 3.
In step S204, if this picture comprises graphic code, mobile phone terminal calls default graphic code and resolves interface, resolves interface this graphic code is resolved by this default graphic code, obtains graphic code information.
By step S203, if detecting in the picture that user chooses, mobile phone terminal includes graphic code, mobile phone terminal calls default graphic code and resolves interface, and these graphic code data are sent to this graphic code parsing interface, resolves interface these graphic code data are resolved by graphic code.Wherein, it can be the function interface of network interface, application programming interfaces and mobile phone terminal itself that graphic code is resolved interface, and above-mentioned three kinds of interfaces all can be processed graphic code.Particularly, mobile phone terminal can be sent to the webserver by graphic code information by calling network interface, by the webserver, this graphic code is resolved; Mobile phone terminal can calls application interface, and the application program with processing graphics code function is installed in application programming interfaces in advance, can resolve graphic code data by this program; Mobile phone terminal also can call the function interface of mobile phone terminal itself, and in function interface, default analytical algorithm, resolves graphic code by the analytical algorithm in function interface.In addition, multiple graphic codes can be set in mobile phone terminal and resolve interface, and each graphic code is resolved the graphic code of corresponding one type of interface, determine the type of graphic code by step 203, according to the type of graphic code, mobile phone terminal is sent to corresponding graphic code by graphic code data and resolves interface, and this graphic code is resolved the analytical algorithm of default this type graphic code in interface, can obtain the information of this graphic code by calling this analytical algorithm.
For example, what in this picture, comprise is QR code code, mobile phone terminal calls has the graphic code parsing interface of resolving QR code code function, the program of resolving in interface by this graphic code is cut apart graphic code, obtain complete graphic code region, again Grid Sampling is carried out in this graphic code region, to the image pixel sampling on each intersection point of grid, determine it is dark piece or light piece according to threshold value, and represent dark fast with " 1 " in binary system, " 0 " represents light piece, thereby obtain the binary sequence value of graphic code, again by binary sequence value is carried out to error correction, decoding, finally by the logic coding rule of QR code code, original data bit stream is converted to code word data, this code word data is exactly the information of this graphic code.
In step S205, the mapping relations between this picture and graphic code information are set up and preserved to mobile phone terminal.
After obtaining graphic code internal information, mobile phone terminal is set up the mapping relations between this graphic code information and this picture, make user can extract the information in graphic code, other information such as such as Word message, digital information or network address by clicking graphic code region in this picture.
In step S206, in the time that mobile phone terminal detects the clicking operation to this picture, mobile phone terminal carries out redirect according to graphic code information.
User can read by clicking the optional position of this picture the information of this graphic code, also can read by clicking graphic code region, in a kind of embodiment providing in the disclosure, when user to picture in this graphic code region while carrying out clicking operation, mobile phone terminal carries out redirect according to this graphic code information.So can distinguish user by other regions of click position, graphic code region or click picture and whether select to read this graphic code information.For example: user clicks position, graphic code region, mobile phone terminal extracts this graphic code information after receiving this click commands; If user clicks other regions of this picture, mobile phone terminal receives this click commands and confirms that this clicking operation is not extract this graphic code information, and mobile phone terminal does not extract graphic code information, and cancels the operation highlighting to this graphic code.
The method that disclosure embodiment provides, by user, mobile phone is operated and obtained after picture to be detected, mobile phone detects in this picture, whether to comprise graphic code, if this picture comprises graphic code, this graphic code is resolved, obtain graphic code information, after obtaining graphic code information, the mapping relations between picture and graphic code information are set up and preserved to mobile phone, user makes in the time that need to read this graphic code information, by clicking the graphic code region of this picture, do not need by the equipment by other scintigram shape codes, this graphic code to be scanned, so greatly facilitate reading of the information of user to graphic code.
It should be noted that: for the convenient technical scheme of understanding in the disclosure, be described as an example of mobile phone example, from those skilled in the art, the realization of technique scheme not only for mobile phone, also can be panel computer or other mobile communication equipments.
Fig. 6 is according to the schematic diagram of a kind of graphic code information acquisition device shown in an exemplary embodiment.With reference to Fig. 6, this device comprises acquisition module 601, detection module 602, parsing module 603 and sets up module 604.
Acquisition module 601 is configured to obtain picture to be detected.
Detection module 602 is configured to detect in this picture, whether to comprise graphic code.
Parsing module 603 is configured to this graphic code to resolve, and obtains graphic code information.
Set up module 604 and be configured to set up and preserve the mapping relations between this picture and graphic code information.
The device that disclosure embodiment provides, by the parsing module arranging in device, the graphic code showing in mobile phone is resolved, thereby obtain the information of this graphic code, make user not need by the equipment by other scintigram shape codes, this graphic code to be scanned, greatly facilitate user's reading graphic code information.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 7 is according to the schematic diagram of a kind of graphic code information acquisition device shown in an exemplary embodiment.With reference to Fig. 7, this device comprises acquisition module 701, detection module 702, parsing module 703, sets up module 704, redirect module 705, display module 706, reminding module 707.
Acquisition module 701 comprises screenshotss unit and acquiring unit.
Screenshotss unit is configured to current display page to carry out screenshotss, obtains the picture of screenshotss;
Acquiring unit is configured to obtain picture to be detected from picture file folder.
Detection module 702 comprises judging unit and determining unit.
Judging unit is configured to according to graphic code composition rule, judges in this picture, whether to comprise the region that meets graphic code composition rule;
Determining unit is configured to determine in this picture whether comprise graphic code.
Parsing module 703 comprises graphic code parsing interface and call unit.
Graphic code is resolved interface and is configured to graphic code to resolve;
Call unit is configured to call this graphic code and resolves interface.
Set up module 704 and be configured to set up and preserve the mapping relations between this picture and graphic code information.
Redirect module 705 comprises detecting unit and jump-transfer unit.
Detecting unit is configured to detect the clicking operation to graphic code region in this picture;
Jump-transfer unit is configured to carry out redirect according to this graphic code information.
Display module 706 is configured to adjust the display parameters of graphic code in this picture.
Reminding module 707 is configured to point out photo current to comprise graphic code.
The device that disclosure embodiment provides, by parsing module, the graphic code showing in mobile phone is resolved, thereby obtain the information of this graphic code, can realize user's reading this graphic code information by redirect module, make user not need by the equipment by other scintigram shape codes, this graphic code to be scanned, greatly facilitate user's reading graphic code information.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 8 is according to the block diagram of a kind of device 800 for graphic code acquisition of information shown in an exemplary embodiment.For example, device 800 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 8, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of processing components 802 common control device 800, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Treatment element 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing unit 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Electric power assembly 806 provides electric power for installing 800 various assemblies.Electric power assembly 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal receiving can be further stored in memory 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducers, is used to device 800 that the state estimation of various aspects is provided.For example, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, for example described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or 800 1 assemblies of device changes, user is with device 800 existence that contact or do not have the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between device 800 and other equipment.Device 800 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the memory 804 of instruction, above-mentioned instruction can have been carried out said method by the processor 820 of device 800.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of mobile terminal, makes mobile terminal can carry out a kind of graphic code information getting method, and described method comprises:
Obtain picture to be detected;
Detect and in this picture, whether comprise graphic code;
If this picture comprises graphic code, graphic code is resolved, obtain this graphic code information;
Set up and preserve the mapping relations between picture and graphic code information.
Further, the method also comprises:
When detect picture clicking operation time, according to mapping relations, obtain picture graph of a correspondence code information, and carry out redirect based on graphic code information.
Further, obtain picture to be detected, comprising: current display page is carried out to screenshotss, obtain the picture of screenshotss; Or, from picture file folder, obtain picture to be detected.
Further, the method also comprises:
After current display page is carried out to screenshotss, adjust the display parameters of graphic code in picture, in the time that picture is shown, according to the display parameters display graphics code after adjusting.
Further, the method also comprises:
After current display page is carried out to screenshotss, in the time that picture is shown, in the predeterminable area display reminding information of picture, information is used for pointing out photo current to comprise graphic code.
Further, detect in picture whether comprise graphic code, comprising:
According to graphic code composition rule, judge in this picture whether comprise the region that meets graphic code composition rule, if comprised, determine that picture comprises graphic code, if do not comprised, determine and in picture, do not comprise graphic code.
Further, if this picture comprises graphic code, graphic code is resolved, obtains graphic code information, comprising:
Call default graphic code and resolve interface, resolve interface by default graphic code graphic code is resolved, obtain graphic code information.
Further, when detect picture clicking operation time, carry out redirect according to graphic code information, comprising:
In detecting picture, when the clicking operation of graphic code region, carry out redirect according to graphic code information.
Those skilled in the art, considering specification and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (24)

1. a graphic code information getting method, is characterized in that, described method comprises:
Obtain picture to be detected;
Detect and in described picture, whether comprise graphic code;
If described picture comprises graphic code, described graphic code is resolved, obtain described graphic code information;
Set up and preserve the mapping relations between described picture and described graphic code information.
2. method according to claim 1, is characterized in that, described method also comprises:
When detect described picture clicking operation time, according to described mapping relations, obtain described picture graph of a correspondence code information, and carry out redirect based on described graphic code information.
3. method according to claim 1, is characterized in that, obtains picture to be detected, comprising: current display page is carried out to screenshotss, obtain the picture of screenshotss; Or, from picture file folder, obtain picture to be detected.
4. method according to claim 3, is characterized in that, described method also comprises:
After described current display page is carried out to screenshotss, adjust the display parameters of graphic code described in described picture, in the time that described picture is shown, show described graphic code according to the display parameters after adjusting.
5. method according to claim 3, is characterized in that, described method also comprises:
After described current display page is carried out to screenshotss, in the time that described picture is shown, in the predeterminable area display reminding information of described picture, described information is used for pointing out photo current to comprise graphic code.
6. according to the method described in claim 1 to 5 any one, it is characterized in that, detect in described picture and whether comprise and comprise graphic code:
According to graphic code composition rule, judge in described picture whether comprise the region that meets described graphic code composition rule, if comprised, determine that described picture comprises graphic code, if do not comprised, determine and in described picture, do not comprise graphic code.
7. method according to claim 1, is characterized in that, if described picture comprises graphic code, described graphic code is resolved, and obtains described graphic code information, comprising:
Call default graphic code and resolve interface, resolve interface by described default graphic code described graphic code is resolved, obtain described graphic code information.
8. method according to claim 2, is characterized in that, when detect described picture clicking operation time, carry out redirect according to described graphic code information, comprising:
When detect graphic code region described in described picture clicking operation time, carry out redirect according to described graphic code information.
9. a graphic code information acquisition device, is characterized in that, described device comprises:
Acquisition module, for obtaining picture to be detected;
Detection module, for detection of whether comprising graphic code in described picture;
Parsing module, for described graphic code is resolved, obtains described graphic code information;
Set up module, for setting up and preserve the mapping relations between described picture and described graphic code information.
10. device according to claim 9, is characterized in that, described device also comprises:
Redirect module, for when detect described picture clicking operation time, carry out redirect according to described graphic code information.
11. devices according to claim 9, is characterized in that, described acquisition module comprises:
Screenshotss unit, for current display page is carried out to screenshotss, obtains the picture of screenshotss;
Acquiring unit, for obtaining picture to be detected from picture file folder.
12. devices according to claim 9, is characterized in that, described device also comprises:
Display module, for adjusting the display parameters of graphic code described in described picture.
13. devices according to claim 9, is characterized in that, described device also comprises:
Reminding module, for pointing out photo current to comprise graphic code.
14. according to the device described in claim 9-13 any one, it is characterized in that, described detection module comprises:
Judging unit, for according to graphic code composition rule, judges in described picture, whether to comprise the region that meets described graphic code composition rule;
Determining unit, for determining whether described picture comprises graphic code.
15. devices according to claim 9, is characterized in that, described parsing module comprises:
Call unit, resolves interface for calling graph shape code;
Graphic code is resolved interface, for described graphic code is resolved.
16. devices according to claim 10, is characterized in that, described redirect module comprises:
Detecting unit, for detection of the clicking operation to graphic code region described in described picture;
Jump-transfer unit, for carrying out redirect according to described graphic code information.
17. 1 kinds of graphic code information acquisition devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain picture to be detected;
Detect and in described picture, whether comprise graphic code;
If described picture comprises graphic code, described graphic code is resolved, obtain described graphic code information;
Set up and preserve the mapping relations between described picture and described graphic code information.
18. devices according to claim 17, is characterized in that, described processor is also configured to:
When detect described picture clicking operation time, according to described mapping relations, obtain described picture graph of a correspondence code information, and carry out redirect based on described graphic code information.
19. devices according to claim 17, is characterized in that, obtain picture to be detected, comprising: current display page is carried out to screenshotss, obtain the picture of screenshotss; Or, from picture file folder, obtain picture to be detected.
20. devices according to claim 19, is characterized in that, described processor is also configured to:
After described current display page is carried out to screenshotss, adjust the display parameters of graphic code described in described picture, in the time that described picture is shown, show described graphic code according to the display parameters after adjusting.
21. devices according to claim 19, is characterized in that, described processor is also configured to:
After described current display page is carried out to screenshotss, in the time that described picture is shown, in the predeterminable area display reminding information of described picture, described information is used for pointing out photo current to comprise graphic code.
Whether 22. according to the device described in claim 17-21 any one, it is characterized in that, detect in described picture and comprise and comprise graphic code:
According to graphic code composition rule, judge in described picture whether comprise the region that meets described graphic code composition rule, if comprised, determine that described picture comprises graphic code, if do not comprised, determine and in described picture, do not comprise graphic code.
23. devices according to claim 17, is characterized in that, if described picture comprises graphic code, described graphic code are resolved, and obtain described graphic code information, comprising:
Call default graphic code and resolve interface, resolve interface by described default graphic code described graphic code is resolved, obtain described graphic code information.
24. devices according to claim 18, is characterized in that, when detect described picture clicking operation time, carry out redirect according to described graphic code information, comprising:
When detect graphic code region described in described picture clicking operation time, carry out redirect according to described graphic code information.
CN201410182486.5A 2014-04-30 2014-04-30 Method and device for acquiring graphic code information Pending CN103997567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410182486.5A CN103997567A (en) 2014-04-30 2014-04-30 Method and device for acquiring graphic code information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410182486.5A CN103997567A (en) 2014-04-30 2014-04-30 Method and device for acquiring graphic code information

Publications (1)

Publication Number Publication Date
CN103997567A true CN103997567A (en) 2014-08-20

Family

ID=51311564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410182486.5A Pending CN103997567A (en) 2014-04-30 2014-04-30 Method and device for acquiring graphic code information

Country Status (1)

Country Link
CN (1) CN103997567A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224644A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Information classification approach and device
CN106228207A (en) * 2016-07-20 2016-12-14 青岛海信电器股份有限公司 Identify the method and apparatus of the graphic code of display in family's playback equipment
CN108446579A (en) * 2018-03-15 2018-08-24 维沃移动通信有限公司 A kind of graphic code knows method for distinguishing and terminal
CN110069723A (en) * 2017-08-21 2019-07-30 腾讯科技(深圳)有限公司 Graphic code recognition methods, device and storage medium
WO2022143336A1 (en) * 2020-12-29 2022-07-07 维沃移动通信(杭州)有限公司 Graphic code recognition method and apparatus, and electronic device
CN115422958A (en) * 2022-09-06 2022-12-02 博泰车联网(南京)有限公司 Picture operation method, electronic device and storage medium
WO2023035932A1 (en) * 2021-09-09 2023-03-16 中兴通讯股份有限公司 Code scanning method, information processing method, terminal, server, graphic code carrier, medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880849A (en) * 2012-09-18 2013-01-16 腾讯科技(深圳)有限公司 Two-dimension code recognition method and device
CN103279503A (en) * 2013-05-09 2013-09-04 北京小米科技有限责任公司 Method and system for acquiring two-dimension code information from webpage
CN103745186A (en) * 2013-12-30 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Processing method for two-dimensional code information and communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880849A (en) * 2012-09-18 2013-01-16 腾讯科技(深圳)有限公司 Two-dimension code recognition method and device
CN103279503A (en) * 2013-05-09 2013-09-04 北京小米科技有限责任公司 Method and system for acquiring two-dimension code information from webpage
CN103745186A (en) * 2013-12-30 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Processing method for two-dimensional code information and communication terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224644A (en) * 2015-09-28 2016-01-06 小米科技有限责任公司 Information classification approach and device
CN106228207A (en) * 2016-07-20 2016-12-14 青岛海信电器股份有限公司 Identify the method and apparatus of the graphic code of display in family's playback equipment
CN106228207B (en) * 2016-07-20 2019-06-11 青岛海信电器股份有限公司 The method and apparatus of the graphic code shown in identification family's playback equipment
CN110069723A (en) * 2017-08-21 2019-07-30 腾讯科技(深圳)有限公司 Graphic code recognition methods, device and storage medium
CN110069723B (en) * 2017-08-21 2023-01-06 腾讯科技(深圳)有限公司 Graphic code identification method, device and storage medium
CN108446579A (en) * 2018-03-15 2018-08-24 维沃移动通信有限公司 A kind of graphic code knows method for distinguishing and terminal
WO2022143336A1 (en) * 2020-12-29 2022-07-07 维沃移动通信(杭州)有限公司 Graphic code recognition method and apparatus, and electronic device
WO2023035932A1 (en) * 2021-09-09 2023-03-16 中兴通讯股份有限公司 Code scanning method, information processing method, terminal, server, graphic code carrier, medium
CN115422958A (en) * 2022-09-06 2022-12-02 博泰车联网(南京)有限公司 Picture operation method, electronic device and storage medium
CN115422958B (en) * 2022-09-06 2023-12-22 博泰车联网(南京)有限公司 Picture operation method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US10649648B2 (en) Method and apparatus for screen capture processing
EP3301559B1 (en) Content sharing method and device
CN106951884B (en) Fingerprint acquisition method and device and electronic equipment
US10452890B2 (en) Fingerprint template input method, device and medium
CN105069786B (en) Line detection method and device
CN103997567A (en) Method and device for acquiring graphic code information
CN105528606A (en) Region identification method and device
CN104394263A (en) Accessing point list displaying method and device
CN104503681A (en) Interface icon movement control method and device
CN104679599A (en) Application program duplicating method and device
CN104506443A (en) Router setting interface display method and device
CN106792448A (en) Bluetooth connecting method and device, system
CN105487680A (en) Terminal screen capture method and apparatus and terminal
CN105630780A (en) Webpage information processing method and apparatus
CN104936039A (en) Image processing method and device
CN105786944A (en) Method and device for automatically turning pages of browser
CN105630749A (en) Extraction method and device of digital information
CN105488829A (en) Method and device for generating head portrait
CN105224644A (en) Information classification approach and device
CN105550213A (en) Picture browsing method and device
CN105227986A (en) Synchronization processing method and device
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN104811904A (en) Contact setting method and device
CN104836721A (en) Group session message reminding method and group session message reminding device
CN104184888A (en) Call transfer method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140820