A kind of photographic method with two-dimensional code scanning function and system
Technical field
The present invention relates to image taking technology field, particularly a kind of photographic method with two-dimensional code scanning function and system.
Background technology
Quick Response Code(2-dimensional bar code) it is according to certain rules in plane distribution with certain specific geometric figure
Chequered with black and white graphic recording data symbol information, it is represented using several geometrical bodies corresponding with binary system
Word numerical information, realizes information by image input device or photoelectric scanning device automatically identifying and reading and automatically processes.In the modern times
In informatized life, this Quick Response Code is widely used in acquisition of information, web site url, advertisement pushing, data download, commodity
The fields such as transaction, positioning/navigation, electronic certificate, logistics management.
At present, carry out the identification of Quick Response Code in intelligent terminal, often to be realized by special Quick Response Code identification software.
This Quick Response Code identification software is scanned to Quick Response Code by opening the camera being carried on intelligent terminal, to obtain related two dimension
Code information.Although, in intelligent terminal, Quick Response Code identification software and software of taking pictures obtain image again by opening camera
Information, but both are often two softwares independently in intelligent terminal.User is needing to carry out Quick Response Code identification
When, need to open corresponding Quick Response Code identification software.And when user need taken pictures when, then to open take pictures accordingly soft
Part.So, use to user and bring inconvenience.
Content of the invention
The main purpose of the embodiment of the present invention is to provide a kind of photographic method with two-dimensional code scanning function and system.
The purpose of the embodiment of the present invention is achieved by following technical proposals:
A kind of photographic method with two-dimensional code scanning function, including:
By camera real-time image acquisition information;
Detect whether to receive photographing instruction;
If receiving photographing instruction, camera is controlled to be taken pictures;
If not receiving photographing instruction, Quick Response Code identification is carried out to acquired image information;
If recognizing Quick Response Code in image information, two-dimensional code display identifies information.
If described do not receive photographing instruction, Quick Response Code identification is carried out to acquired image information, including:
If not receiving photographing instruction, fixed time intervals carry out Quick Response Code identification to acquired image information.
If described do not receive photographing instruction, Quick Response Code identification is carried out to acquired image information, including:
If not receiving photographing instruction, Quick Response Code identification is carried out to identification region in acquired image information;Described identification
Region is the subregion in described image information.
Described identification region is central area and/or the focusing region of acquired image information.
It is provided with cancel button in described Quick Response Code identification information;Described cancel button is used for cancelling the identification prompting of this Quick Response Code
Information.
Described photographic method, also includes:
If described Quick Response Code identification information does not receive operational order in setting time, cancel the identification of this Quick Response Code and carry
Show information.
Described photographic method, also includes:
When recognizing described Quick Response Code by inductor detection, whether the displacement acceleration of terminal exceedes acceleration setting value;
If the displacement acceleration of terminal exceedes acceleration setting value when identifying described Quick Response Code, cancel the identification of this Quick Response Code and carry
Show information.
If described recognize Quick Response Code in image information, two-dimensional code display identifies information, including:
If recognizing Quick Response Code in image information, described Quick Response Code being parsed, obtaining this 2 D code information;
According to acquired 2 D code information, judge the type of this Quick Response Code;
Show the Quick Response Code identification information of described Quick Response Code corresponding types.
Described photographic method, also includes:
According to the operational order that described Quick Response Code is identified with information, the respective operations of execution the type Quick Response Code.
A kind of camera system with two-dimensional code scanning function, including:Image information acquisition unit, photographing instruction detector unit,
Take pictures performance element, Quick Response Code recognition unit and information display unit;
Described image information acquisition unit, for by camera real-time image acquisition information;
Described photographing instruction detector unit, for detecting whether receive photographing instruction;
Described performance element of taking pictures, for when receiving photographing instruction, controlling camera to be taken pictures;
Described Quick Response Code recognition unit, for when not receiving photographing instruction, to acquired in described image information acquisition unit
Image information carry out Quick Response Code identification;
Described information display unit, for when described Quick Response Code recognition unit recognizes Quick Response Code in image information,
Two-dimensional code display identifies information.
Described Quick Response Code recognition unit, for when not receiving photographing instruction, fixed time intervals obtain to described image information
The image information acquired in unit is taken to carry out Quick Response Code identification.
Described Quick Response Code recognition unit, for when not receiving photographing instruction, to acquired in described image information acquisition unit
Image information in identification region carry out Quick Response Code identification;Described identification region is the subregion in described image information.
Described identification region is central area and/or the focusing region of acquired image information.
Described camera system, also includes:Prompting message cancels unit;
Described prompting message is cancelled unit and is provided with cancel button in described Quick Response Code identification information;Described cancel button is used
Identify information in cancelling this Quick Response Code.
Described camera system, also includes:Prompting message cancels unit;
Described prompting message cancels unit, does not receive operation for Quick Response Code identification information described in setting time and refers to
When making, cancel this Quick Response Code identification information.
Described camera system, also includes:Inductor and prompting message cancel unit;
Described inductor, for when described Quick Response Code recognition unit recognizes described Quick Response Code, the displacement of detection terminal accelerates
Whether degree exceedes acceleration setting value;
Described prompting message cancels unit, and displacement terminal is detected for inductor described when recognizing described Quick Response Code adds
When speed exceedes acceleration setting value, cancel this Quick Response Code identification information.
Described information display unit, including:Quick Response Code parsing module, Quick Response Code type judging module and Quick Response Code prompting
Information display module;
Described Quick Response Code parsing module, during for recognizing Quick Response Code in image information, parses to described Quick Response Code,
Obtain this 2 D code information;
Described Quick Response Code type judging module, for according to acquired 2 D code information, judging the type of this Quick Response Code;
Described Quick Response Code information display module, the Quick Response Code for showing described Quick Response Code corresponding types identifies prompting letter
Breath.
Described camera system, also includes:Quick Response Code performance element;
Described Quick Response Code performance element, for according to the operational order that described Quick Response Code is identified with information, executing the type
The respective operations of Quick Response Code.
A kind of terminal, includes aforementioned arbitrary described camera system with two-dimensional code scanning function in described terminal.
By the embodiment of the present invention, the method and system, when intelligent terminal is opened camera and obtained image information, on the one hand may be used
To achieve camera function;On the other hand two-dimensional code scanning function can be achieved, incorporate two-dimensional code scanning function and take pictures
Function is, convenient for users.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, does not constitute
Limitation of the invention.In the accompanying drawings:
Fig. 1 is the photographic method flow chart with two-dimensional code scanning function;
Fig. 2 is Quick Response Code identification information display process flow diagram flow chart;
Fig. 3 is business card Quick Response Code operation example figure one;
Fig. 4 is business card Quick Response Code operation example figure two;
Fig. 5 is the camera system structural representation with two-dimensional code scanning function;
Fig. 6 is information display cell structure schematic diagram.
Specific embodiment
For making the object, technical solutions and advantages of the present invention become more apparent, with reference to embodiment and accompanying drawing, to this
Invention is described in further details.Here, the exemplary embodiment of the present invention and its illustrate for explaining the present invention, but simultaneously
Not as a limitation of the invention.
Based on aforementioned problems of the prior art, we have proposed one kind and collect two-dimensional code scanning function and camera function in one
The software of taking pictures of body.User finds there is Quick Response Code during taking pictures, you can directly Quick Response Code is scanned identifying, and no
The special special-purpose software identifying Quick Response Code need to separately be opened.
Embodiment one
Fig. 1 is the photographic method flow chart with two-dimensional code scanning function.As illustrated, this has two-dimensional code scanning function
Photographic method, including:
S1, by camera real-time image acquisition information;
By opening the camera of intelligent terminal, real-time image acquisition information.
S2, detects whether to receive photographing instruction;
Different intelligent terminal, can define different operating is photographing instruction.
S3, if receiving photographing instruction, controls camera to be taken pictures;
S4, if not receiving photographing instruction, carries out Quick Response Code identification to acquired image information;
Quick Response Code is identified be existing mature technology based on image information.In the present embodiment, it is possible to use existing each
Plant Quick Response Code technology of identification and Quick Response Code identification is carried out to acquired image information.
S5, if recognizing Quick Response Code in image information, two-dimensional code display identifies information.
The method that the present embodiment is provided, when intelligent terminal is opened camera and obtained image information, on the one hand detects whether to connect
Receive photographing instruction, control when receiving photographing instruction camera to be taken pictures, that is, achieve camera function;On the other hand
When not receiving photographing instruction, based on Quick Response Code technology of identification, Quick Response Code knowledge is carried out to the image information acquired in camera
Not, and pointed out when recognizing Quick Response Code, that is, achieved two-dimensional code scanning function.It can be seen that, said method incorporates two
Dimension code scan function is with camera function, convenient for users.
Embodiment two
Because the operand of Quick Response Code recognizer is larger, if Quick Response Code knowledge is carried out in real time to the image information acquired in camera
Not, then need to take a large amount of system resources.Therefore, the embodiment of the present invention is improved to above-mentioned steps S4, to reduce
System resource shared by Quick Response Code identification in this step.
Mode one:
Described step S4, also includes:
If not receiving photographing instruction, fixed time intervals carry out Quick Response Code identification to acquired image information.
In the present embodiment, being not to carry out in real time is identified to the Quick Response Code of the image information acquired in camera, but every
Carry out once every the set time.As such, it is possible to substantially reduce the required system resource taking of Quick Response Code identification.Certainly, institute
The set time stating interval can be artificially set in advance.
Mode two:
Described step S4, also includes:
If not receiving photographing instruction, Quick Response Code identification is carried out to identification region in acquired image information;Described identification
Region is the subregion in described image information.
In the present embodiment, all Quick Response Code identification is not carried out to acquired all images information, but wherein part is identified
Region carries out Quick Response Code identification.Method by reducing identification region, reduces occupying system resources needed for Quick Response Code identification
Purpose.
Preferably, described identification region is central area and/or the focusing region of acquired image information.Due to image
In central area and focusing region be usually user and compare the region of concern, scan Quick Response Code therefore from this two regions
It is relatively easy to obtain the 2 D code information of the required identification of user.In actual use, terminal can select this Liang Ge area according to setting
One of domain or be simultaneously based on this two regions and carry out Quick Response Code identification.
Embodiment three
Because the photographic method that the embodiment of the present invention is provided is to integrate two-dimensional code scanning function with camera function.Cause
This it is possible to sweeping to the Quick Response Code entering viewfinder range and carrying out Classical correlation and information alert when user takes pictures.So,
User can be hindered normally to take pictures.In order to solve this problem, bring more preferable experience to user, present embodiments provide
Several Quick Response Codes identify the cancellation scheme of information.
Scheme one:
In this programme, in described Quick Response Code identification information, it is provided with cancel button;Described cancel button be used for cancelling this two
Dimension code identification information.
User passes through to operate this cancel button, you can cancel this Quick Response Code identification information.
Scheme two:
In this programme, described photographic method, also include:
If described Quick Response Code identification information does not receive operational order in setting time, cancel the identification of this Quick Response Code and carry
Show information.
This programme passes through to detect the operation further whether user has to this Quick Response Code identification information in setting time, comes
Judge whether this Quick Response Code is useful to user.If user is not carried out to this Quick Response Code identification information in this setting time
Operation, then illustrate that this Quick Response Code is not used to user, therefore cancels this Quick Response Code identification information.
Scheme three:
In this programme, described photographic method, also include:
When recognizing described Quick Response Code by inductor detection, whether the displacement acceleration of terminal exceedes acceleration setting value;
If the displacement acceleration of terminal exceedes acceleration setting value when identifying described Quick Response Code, cancel the identification of this Quick Response Code and carry
Show information.
It is of course also possible to when displacement acceleration terminal is detected in inductor exceedes acceleration setting value, directly not to this two
Dimension code is identified, or directly this Quick Response Code identification information is not shown.Both schemes are with this programme substantially
Identical, therefore also should be within protection domain shown in this programme.
User take pictures find a view during may sweep to enter viewfinder range Quick Response Code, because now user does not keep steady end
End, therefore the Quick Response Code of this entrance viewfinder range should not be user's Quick Response Code of interest.Based on this, logical in this programme
Cross inductor detection terminal identify Quick Response Code when displacement acceleration, the state that terminal at that time is judged with this be the state of not keeping steady also
It is the state of keeping steady.If not keeping steady state, then ignore this Quick Response Code.
Example IV:
As it was previously stated, current Quick Response Code is widely used in multiple fields.Its institute of Quick Response Code for different field
The effect realized and corresponding application are also different.Based on this, as shown in Fig. 2 in the present embodiment, if described in image information
Recognize Quick Response Code, then two-dimensional code display identification information, including:
S51, if recognizing Quick Response Code in image information, parsing to described Quick Response Code, obtaining this 2 D code information;
S52, according to acquired 2 D code information, judges the type of this Quick Response Code;
Described two dimension code type can include but is not limited to:Business card Quick Response Code, network address Quick Response Code, download information Quick Response Code,
Tripartite applies(APP, Application Program)Quick Response Code and text Quick Response Code etc..
S53, shows the Quick Response Code identification information of described Quick Response Code corresponding types.
Because the operation corresponding to dissimilar Quick Response Code also differs.By said method, terminal is recognizing Quick Response Code
While, this Quick Response Code is parsed, determines the type of this Quick Response Code, and corresponding types are shown according to the type of Quick Response Code
Quick Response Code identification information, to facilitate user that different types of Quick Response Code is operated.
Additionally, dissimilar Quick Response Code is shown based on said method with the Quick Response Code identification information of different corresponding types, institute
State photographic method, also include:
According to the operational order that described Quick Response Code is identified with information, the respective operations of execution the type Quick Response Code.
Here, the respective operations of described dissimilar Quick Response Code are also different.As being by business card to business card Quick Response Code respective operations
Information imports contact person, is to access Quick Response Code record website pages to network address Quick Response Code respective operations, to download information Quick Response Code
Respective operations are to download the data of Quick Response Code record network address, are to call third party to answer to third-party application Quick Response Code respective operations
With being the text message of two-dimensional code display record to text Quick Response Code respective operations.
And, even for same type of Quick Response Code, its Quick Response Code identifies that the form of information can also have multiple presenting
Mode.We, just, are illustrated taking business card Quick Response Code as a example below:
1 as shown in figure 3, terminal recognition is to after business card Quick Response Code, and display business card Quick Response Code identification information includes:Two
Dimension code type information(In figure shows " finding business card Quick Response Code ")Check button with card information(In figure shows " to be looked into
See card information ").User clicks on after this card information checks button, and Quick Response Code identification information receives operational order,
Show card information as shown in the figure.Include cancel button in this card information and import contact person's button.It is somebody's turn to do when user clicks on
Import contact person's button, then this card information is imported in contact person's address list of terminal.
This method is advantageous in that, Quick Response Code identification information is simply it is easy to operate.
2 as shown in figure 4, compared to above-mentioned example, also wrap in the present embodiment in business card Quick Response Code identification information
Include business card informative abstract, to point out whose business card this business card is.
This method is advantageous in that, can see the relevant information of business card in advance, chooses whether to enter to advance in order to user
Single stepping.
Embodiment five
Fig. 5 is the camera system structural representation with two-dimensional code scanning function.As illustrated, this has two-dimensional code scanning work(
The camera system of energy, including:Image information acquisition unit 1, photographing instruction detector unit 2, performance element 3 of taking pictures, two dimension
Code recognition unit 4 and information display unit 5.
Described image information acquisition unit 1, for by camera real-time image acquisition information;
This image information acquisition unit 1 is by opening the camera of intelligent terminal, real-time image acquisition information.
Described photographing instruction detector unit 2, for detecting whether receive photographing instruction;
Different intelligent terminal, can define different operating is photographing instruction.
Described performance element 3 of taking pictures, for when receiving photographing instruction, controlling camera to be taken pictures;
Described Quick Response Code recognition unit 4, for when not receiving photographing instruction, to described image information acquisition unit 1 institute
The image information obtaining carries out Quick Response Code identification;
Quick Response Code is identified be existing mature technology based on image information.In the present embodiment, Quick Response Code recognition unit 4
Using existing various Quick Response Code technology of identification, Quick Response Code identification can be carried out to acquired image information.
Described information display unit 5, for recognizing Quick Response Code in described Quick Response Code recognition unit 4 in image information
When, two-dimensional code display identifies information.
The system that the present embodiment is provided, when intelligent terminal is opened camera and obtained image information, on the one hand pass through to take pictures finger
Make detector unit 2 detect whether to receive photographing instruction, when receiving photographing instruction, shooting is controlled by performance element 3 of taking pictures
Head is taken pictures, that is, achieve camera function;On the other hand when not receiving photographing instruction, by Quick Response Code recognition unit 4
Based on Quick Response Code technology of identification, Quick Response Code identification is carried out to the image information acquired in camera, and when recognizing Quick Response Code by
Information display unit 5 is pointed out, that is, achieve two-dimensional code scanning function.It can be seen that, said system incorporates Quick Response Code
Scan function is with camera function, convenient for users.
Embodiment six
Because the operand of Quick Response Code recognizer is larger, if Quick Response Code knowledge is carried out in real time to the image information acquired in camera
Not, then need to take a large amount of system resources.Therefore, the embodiment of the present invention is improved to above-mentioned Quick Response Code recognition unit 4,
To reduce in this step as the system resource that Quick Response Code identification is shared.
Mode one:
In the present embodiment, described Quick Response Code recognition unit 4, for when not receiving photographing instruction, fixed time intervals
Quick Response Code identification is carried out to the image information acquired in described image information acquisition unit 1.
Improved by this embodiment, being not to carry out in real time is identified to the Quick Response Code of the image information acquired in camera, and
It is to carry out once at interval of the set time.As such, it is possible to substantially reduce the required system resource taking of Quick Response Code identification.When
So, the set time at described interval can be artificially set in advance.
Mode two:
In the present embodiment, described Quick Response Code recognition unit 4, for when not receiving photographing instruction, believing to described image
In image information acquired in breath acquiring unit 1, identification region carries out Quick Response Code identification;Described identification region is believed for described image
Subregion in breath.
Improved by this embodiment, all Quick Response Code identification is not carried out to acquired all images information, but in the middle part of it
Point identification region carries out Quick Response Code identification.Method by reducing identification region, reducing required occupancy of Quick Response Code identification is
The purpose of system resource.
Preferably, described identification region is central area and/or the focusing region of acquired image information.Due to image
In central area and focusing region be usually user and compare the region of concern, scan Quick Response Code therefore from this two regions
It is relatively easy to obtain the 2 D code information of the required identification of user.In actual use, terminal can select this Liang Ge area according to setting
One of domain or be simultaneously based on this two regions and carry out Quick Response Code identification.
Embodiment seven
Because the camera system that the embodiment of the present invention is provided is to integrate two-dimensional code scanning function with camera function.Cause
This it is possible to sweeping to the Quick Response Code entering viewfinder range and carrying out Classical correlation and information alert when user takes pictures.So,
User can be hindered normally to take pictures.In order to solve this problem, bring more preferable experience to user, present embodiments provide
Several Quick Response Codes identify the cancellation scheme of information.
Scheme one:
In this programme, described camera system, also include:Prompting message cancels unit.
Described prompting message is cancelled unit and is provided with cancel button in described Quick Response Code identification information;Described cancel button is used
Identify information in cancelling this Quick Response Code.
User passes through to operate this cancel button, you can cancel this Quick Response Code identification information.
Scheme two:
In this programme, described camera system, also include:Prompting message cancels unit.
Described prompting message cancels unit, does not receive operation for Quick Response Code identification information described in setting time and refers to
When making, cancel this Quick Response Code identification information.
This programme passes through to detect the operation further whether user has to this Quick Response Code identification information in setting time, comes
Judge whether this Quick Response Code is useful to user.If user is not carried out to this Quick Response Code identification information in this setting time
Operation, then illustrate that this Quick Response Code is not used to user, therefore cancels this Quick Response Code identification information.
Scheme three:
In this programme, described camera system, also include:Inductor and prompting message cancel unit.
Described inductor, for when described Quick Response Code recognition unit 4 recognizes described Quick Response Code, the displacement of detection terminal adds
Whether speed exceedes acceleration setting value;
Described prompting message cancels unit, and displacement terminal is detected for inductor described when recognizing described Quick Response Code adds
When speed exceedes acceleration setting value, cancel this Quick Response Code identification information.
It is of course also possible to when displacement acceleration terminal is detected in inductor exceedes acceleration setting value, directly not to this two
Dimension code is identified, or directly this Quick Response Code identification information is not shown.Both schemes are with this programme substantially
Identical, therefore also should be within protection domain shown in this programme.
User take pictures find a view during may sweep to enter viewfinder range Quick Response Code, because now user does not keep steady end
End, therefore the Quick Response Code of this entrance viewfinder range should not be user's Quick Response Code of interest.Based on this, logical in this programme
Cross inductor detection terminal identify Quick Response Code when displacement acceleration, the state that terminal at that time is judged with this be the state of not keeping steady also
It is the state of keeping steady.If not keeping steady state, then ignore this Quick Response Code.
Embodiment eight
As it was previously stated, current Quick Response Code is widely used in multiple fields.Its institute of Quick Response Code for different field
The effect realized and corresponding application are also different.Based on this, as shown in fig. 6, in the present embodiment, described information display is single
Unit 5, including:Quick Response Code parsing module 51, Quick Response Code type judging module 52 and Quick Response Code information display module 53.
Described Quick Response Code parsing module 51, during for recognizing Quick Response Code in image information, parses to described Quick Response Code,
Obtain this 2 D code information;
Described Quick Response Code type judging module 52, for according to acquired 2 D code information, judging the type of this Quick Response Code;
Described two dimension code type can include but is not limited to:Business card Quick Response Code, network address Quick Response Code, download information Quick Response Code,
Tripartite applies(APP, Application Program)Quick Response Code and text Quick Response Code etc..
Described Quick Response Code information display module 53, the Quick Response Code for showing described Quick Response Code corresponding types identifies prompting letter
Breath.
Because the operation corresponding to dissimilar Quick Response Code also differs.By said system, terminal is recognizing Quick Response Code
While, this Quick Response Code is parsed, determines the type of this Quick Response Code, and corresponding types are shown according to the type of Quick Response Code
Quick Response Code identification information, to facilitate user that different types of Quick Response Code is operated.
Additionally, dissimilar Quick Response Code is shown based on said system with the Quick Response Code identification information of different corresponding types, institute
State camera system, also include:Quick Response Code performance element.
Described Quick Response Code performance element, for according to the operational order that described Quick Response Code is identified with information, executing the type
The respective operations of Quick Response Code.
Here, the respective operations of described dissimilar Quick Response Code are also different.As being by business card to business card Quick Response Code respective operations
Information imports contact person, is to access Quick Response Code record website pages to network address Quick Response Code respective operations, to download information Quick Response Code
Respective operations are to download the data of Quick Response Code record network address, are to call third party to answer to third-party application Quick Response Code respective operations
With being the text message of two-dimensional code display record to text Quick Response Code respective operations.
In sum, a kind of photographic method with two-dimensional code scanning function and system, the method are embodiments provided
And system, when intelligent terminal is opened camera and obtained image information, on the one hand can achieve camera function;On the other hand can
To achieve two-dimensional code scanning function, incorporate two-dimensional code scanning function with camera function.And, the method and be
System can also carry out corresponding type operations according to the type of identified Quick Response Code, convenient for users.This area is general
Technical staff is done any not creative transformation under this design philosophy, is regarded as in protection scope of the present invention
Within.