CN105701433B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN105701433B CN105701433B CN201511021558.9A CN201511021558A CN105701433B CN 105701433 B CN105701433 B CN 105701433B CN 201511021558 A CN201511021558 A CN 201511021558A CN 105701433 B CN105701433 B CN 105701433B
- Authority
- CN
- China
- Prior art keywords
- image
- dimensional code
- angle
- display mode
- visual angle
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
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)
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention provides a kind of information processing method and electronic equipment, which comprises determines the two dimensional code in the first image, the first image is the frame image in the collected video flowing of image acquisition units;It determines position of the two dimensional code in the first image, shows the decoded information of the two dimensional code in the first image with the first display mode, first display mode meets the first visual angle of image acquisition units acquisition the first image;Judge whether the two dimensional code is located in the second image, second image is the frame image for being different from the first image in the video flowing;When the two dimensional code is located in second image, the second visual angle that described image acquisition unit acquires second image is obtained;Relationship based on first visual angle Yu second visual angle, adjusting first display mode is the second display mode, shows the decoded information of the two dimensional code in second image with second display mode.
Description
Technical field
The present invention relates to technical field of information processing more particularly to a kind of information processing methods and electronic equipment.
Background technique
Two dimensional code (Quick Response Code) is also known as QR code, is widely used in people's daily life
A kind of pattern.The decoded information of two dimensional code is very extensive, such as: webpage, application software, business card etc..
Since the decoded information of two dimensional code is not easy to be identified by the human eye, people install two dimensional code decoding on an electronic device
Software, in the decoded information for needing to know two dimensional code, people run two dimensional code identification software on an electronic device, and two dimensional code is known
After other software is run, the image acquisition units of electronic equipment can be opened and present on an electronic device one accommodate it is identified
Two dimensional code box, needing people that identified two dimensional code is put into the box, (i.e. image acquisition units are collected pre-
Look at comprising identified two dimensional code in image, and identified two dimensional code is in the box), then two dimensional code identification software is to this
Identified two dimensional code in box is scanned and decodes, and then exports the decoded information of identified two dimensional code.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, provides dynamically display mode and shows
The decoded information of two dimensional code improves the visual experience of user.
First aspect of the embodiment of the present invention provides a kind of information processing method, comprising:
Determine the two dimensional code in the first image, the first image is one in the collected video flowing of image acquisition units
Frame image;
It determines position of the two dimensional code in the first image, is shown in the first image with the first display mode
Show the decoded information of the two dimensional code, first display mode is meet image acquisition units acquisition the first image the
The display mode at one visual angle;
Judge whether the two dimensional code is located in the second image, second image is in the video flowing different from described
One frame image of the first image;
When the two dimensional code is located in second image, obtains described image acquisition unit and acquire second image
The second visual angle;
Relationship based on first visual angle Yu second visual angle, adjusting first display mode is the second display side
Formula shows the decoded information of the two dimensional code with second display mode in second image.
Optionally, described when the two dimensional code is located in second image, obtain the acquisition of described image acquisition unit
Second visual angle of second image, comprising:
At least one angle point of the two dimensional code is tracked, tracking result, the tracking result characterization described at least one are obtained
It is located at the quantity of the angle point in second image in a angle point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to described predetermined
Position of the quantity angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
Optionally, the method also includes:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect the two dimensional code whether position
In N+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are the video flowings
In a frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
Optionally, the relationship based on first visual angle Yu second visual angle adjusts first display mode
For the second display mode, comprising:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is second aobvious
Show mode.
Optionally, the decoding letter for showing the two dimensional code in second image with second display mode
Breath, comprising:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The decoded information of the two dimensional code is shown in the region of frame covering in the second image with the angle.
Second aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising:
Determination unit, for determining the two dimensional code in the first image, the first image is that image acquisition units collect
Video flowing in a frame image;
First display unit, for determining position of the two dimensional code in the first image, with the first display mode
The decoded information of the two dimensional code is shown in the first image, first display mode is to meet image acquisition units to adopt
Collect the display mode at the first visual angle of the first image;
Judging unit, for judging whether the two dimensional code is located in the second image, second image is the video
It is different from a frame image of the first image in stream;
Acquiring unit is adopted for when the two dimensional code is located in second image, obtaining described image acquisition unit
Collect the second visual angle of second image;
It is aobvious to adjust described first for the relationship based on first visual angle Yu second visual angle for second display unit
Show that mode is the second display mode, shows the decoding letter of the two dimensional code in second image with second display mode
Breath.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising:
Shell;
Processor is arranged in the shell, and for determining the two dimensional code in the first image, the first image is image
A frame image in the collected video flowing of acquisition unit;Determine position of the two dimensional code in the first image;Judgement
Whether the two dimensional code is located in the second image, and second image is to be different from the one of the first image in the video flowing
Frame image;When the two dimensional code is located in second image, obtains described image acquisition unit and acquire second image
The second visual angle;Relationship based on first visual angle Yu second visual angle, adjusting first display mode is second aobvious
Show mode;
It shows screen, is arranged in the shell, the display area of the display screen passes through the first window of the shell
Mouth appears, wherein the display screen is used to show the solution of the two dimensional code in the first image with the first display mode
Code information, first display mode are to meet the display side at the first visual angle of image acquisition units acquisition the first image
Formula;The decoded information of the two dimensional code is shown in second image with second display mode.
Optionally, the processor is used for:
At least one angle point of the two dimensional code is tracked, tracking result, the tracking result characterization described at least one are obtained
It is located at the quantity of the angle point in second image in a angle point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to described predetermined
Position of the quantity angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
Optionally, the processor is also used to:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect the two dimensional code whether position
In N+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are the video flowings
In a frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
Optionally, the processor is used for:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is second aobvious
Show mode.
Optionally, the processor is used for:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The display screen is used for: described in being shown in the region of the frame in the second image covering with the angle
The decoded information of two dimensional code.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
In the embodiment of the present invention, the two dimensional code in the first image shows that the first display mode meets with the first display mode
Image acquisition units acquire the first visual angle of the first image.When the two dimensional code is located in the second image, show in a second display mode
Show, the second display mode is that the relationship at the second visual angle of the second image is acquired based on the first visual angle and image acquisition units, right
First display mode display mode adjusted.Therefore, the decoded information of the two dimensional code in image is acquired with image acquisition units
The visual angle of image and change.It thus provides dynamically display mode carrys out the decoded information of two-dimensional code display, improve user's
Visual experience.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will be described below to embodiment
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment.
Fig. 1 is the flow chart of information processing method provided in an embodiment of the present invention;
Fig. 2A is to show two dimension in the region of the frame covering in the first image in the embodiment of the present invention with first angle
The schematic diagram of the decoded information of code;
Fig. 2 B is to show two dimension in the region of the frame covering in the second image in the embodiment of the present invention with second angle
The schematic diagram of the decoded information of code;
Another flow chart of Fig. 3 information processing method provided in an embodiment of the present invention;
Fig. 4 is the structural block diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided in the embodiment of the present application.
Specific embodiment
The embodiment of the present invention provides a kind of information processing method and electronic equipment, provides dynamically display mode and shows
The decoded information of two dimensional code improves the visual experience of user.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the flow chart of information processing method provided in an embodiment of the present invention.The embodiment of the present invention mentions
The information processing method of confession the following steps are included:
Step 11: determining the two dimensional code in the first image, the first image is the collected video of image acquisition units
A frame image in stream;
Step 12: position of the two dimensional code in the first image is determined, with the first display mode described first
The decoded information of the two dimensional code is shown in image, first display mode is to meet image acquisition units acquisition described first
The display mode at the first visual angle of image;
Step 13: judge whether the two dimensional code is located in the second image, second image be in the video flowing not
It is same as a frame image of the first image;
Step 14: when the two dimensional code is located in second image, obtaining described in the acquisition of described image acquisition unit
Second visual angle of the second image;
Step 15: the relationship based on first visual angle Yu second visual angle, adjusting first display mode is the
Two display modes show the decoded information of the two dimensional code with second display mode in second image.
Information processing method provided in an embodiment of the present invention is applied in an electronic equipment, is equipped with two on the electronic equipment
Tie up code decoding software.The electronic equipment may is that smart phone, smartwatch, tablet computer, Intelligent bracelet, intelligent glasses etc..
Two dimensional code decoding software be can to the software that two dimensional code is identified, such as: in the application programs such as wechat, Taobao, Meituan
" sweep and sweep ".
In a step 11, in the decoded information for needing to know two dimensional code, two dimensional code identification software is run on electronic equipment,
After two dimensional code identification software is run, the image acquisition units of electronic equipment can be opened, in this way, image acquisition units can be adopted persistently
Collect multiple image, multiple image forms video flowing, some possible images have two dimensional code in multiple image, some images are without two
Tie up code.Every frame image in video flowing is detected frame by frame using two dimensional code identification software, until detecting a frame image (hereinafter referred to as
First image) in have two dimensional code.
In step 12, after having two dimensional code in determining the first image, multiple pixels of the first image are analyzed,
The pixel of composition two dimensional code is extracted, then determines the frame that the pixel of all composition two dimensional codes in the first image is formed,
The region that frame is covered is exactly position of the two dimensional code in the first image.Then the position according to two dimensional code in the first image
It sets, determines that the image acquisition units of electronic equipment acquire the first visual angle of the first image, and then be determined for compliance with the aobvious of the first visual angle
Show mode (hereinafter referred to as the first display mode), finally shows the decoded information of two dimensional code in the first figure with the first display mode
As in.
Wherein, the position according to two dimensional code in the first image determines the image acquisition units acquisition first of electronic equipment
The process at the first visual angle of image are as follows: usual two dimensional code to be identified is in source images, the then Image Acquisition list of electronic equipment
Member carries out continuous collecting to source images, and then collects multiple image.Therefore, from the pixel of the two dimensional code in composition source images
It is middle to select multiple pixels as multiple anchor points, determine multiple anchor points in the position of source images and multiple anchor points
Then position in one image determines same anchor point respectively in the position in source images and between the position in the first image
Line, determine a plurality of line in a similar way, then calculate the angle of a plurality of line and the plane where source images, folder
Angle can react the first visual angle.
It is determined for compliance with the process of the display mode (i.e. the first display mode) at the first visual angle are as follows: since the first visual angle is electronics
The image acquisition units of equipment acquire the visual angle of the first image, and the image acquisition units of electronic equipment are the use by electronic equipment
What family was held, so, the first visual angle embodies the visual angle that user watches the first image.Under normal conditions, the decoding figure of two dimensional code
The display mode of picture is fixed and invariable, in order to improve the visual experience of user, according to the first visual angle, it is determined whether need to two
The decoding image of dimension code is distorted and is stretched, to form the first display mode.
In step 13, judge whether two dimensional code is located in the second image different from the first image, that is, is detecting
After having two dimensional code in one image, whether there is the two dimensional code in the multiple image after the first image of detection.Step 13 includes:
At least one angle point of the two dimensional code is tracked, tracking result, the tracking result characterization described at least one are obtained
It is located at the quantity of the angle point in second image in a angle point;
Judge whether there is predetermined quantity angle point to be located in second image at least one described angle point.
Specifically, due to having two dimensional code in the first image, it is possible to determine all composition two dimensional codes in the first image
The frame that is formed of pixel, determine that at least one angle point, angle point are to form two dimensional code out of frame is covered region
The pixel of the decoded information of two dimensional code is carried in pixel.Then track whether at least one angle point is located in the second image,
And how many angle point is located in the second image at least one angle point, if the quantity for the angle point being located in the second image is big
In predetermined quantity, then the two dimensional code is located in the second image, otherwise, two dimensional code is not present in the second image.Predetermined quantity can be with
It is user setting, is also possible to the setting of two dimensional code identification software.
As it can be seen that two dimensional code identification process is detected independent of two dimensional code in the embodiment of the present invention, and can be tied according to tracking
Fruit calculates, therefore still can successfully identify two dimensional code at big visual angle.Improve the success rate of identification two dimensional code.
At step 14, when two dimensional code is located in the second image, image acquisition units acquire the second image the is obtained
Two visual angles.Because the image acquisition units of electronic equipment are usually to be held by user, as the visual angle of user becomes
Change, the visual angle of the collected different images of image acquisition units also changes, such as visual angle when acquiring the first image is the
One visual angle, visual angle when acquiring the second image are the second visual angle.
Step 14 includes:
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to described predetermined
Position of the quantity angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
Specifically, when there is predetermined quantity angle point to be located in the second image at least one angle point, two dimensional code is located at
In second image.Since the two dimensional code in the second image is identical as the two dimensional code in the first image, according to two in the first image
Code is tieed up, position of the predetermined quantity angle point in the first image in the second image can be determined, can also determine the first image
The position of other pixels in all pixels point of middle composition two dimensional code in addition to predetermined quantity angle point, and then determine composition two
Other pixels in all pixels point of code in addition to predetermined quantity angle point are tieed up relative to the opposite of predetermined quantity pixel
Position.In this way, in the position according to predetermined quantity pixel in the second image, and all pixels point of composition two dimensional code
Relative position of other pixels relative to predetermined quantity pixel in addition to predetermined quantity angle point, can determine composition two
Position of other pixels in the second image in all pixels point of code in addition to predetermined quantity angle point is tieed up, in this way, just really
Position of the two dimensional code in the second image is determined.
Finally, the position according to two dimensional code in the second image, determines the second visual angle, with according to two dimensional code in the first image
In position, determine that the first visual angle is similar, details are not described herein again.
It is high to the tracking computational efficiency of appropriate angle point in the embodiment of the present invention, and according to a large amount of angle points position in the track
The position of two dimensional code extrapolated of variation it is more accurate, so that the decoded information of two dimensional code is also more nearly true visual angle.
In step 15, it according to the relationship at the first visual angle and the second visual angle, determines the second display mode, is then shown first
The mode of showing is adjusted to the second display mode, finally in a second display mode in the second image two-dimensional code display decoded information.
The relationship based on first visual angle Yu second visual angle in step 15, adjusting first display mode is the second display
Mode, comprising:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is second aobvious
Show mode.
Specifically, since the second image is different from the first image, so at least one angle point of two dimensional code is in the second figure
Position as in is different from position of the two dimensional code in the first image.Position of at least one angle point of two dimensional code in the first image
Be set to first position, due to the first image be electronic equipment image acquisition units it is collected under the first visual angle, so two
Tie up the first visual angle of position reaction of at least one angle point of code in the first image, similarly, at least one angle point of two dimensional code
Position in the first image is the second position, since the second image is the image acquisition units of electronic equipment under the second visual angle
It is collected, so the second visual angle of position reaction of at least one angle point of two dimensional code in the second image.
According to the difference of first position and the second position, the difference at the first visual angle Yu the second visual angle, Jin Ergen can determine
According to the difference at the first visual angle and the second visual angle, the display mode of the decoding image of two dimensional code is adjusted, such as: the decoding to two dimensional code
Image is stretched or is distorted, and then is adjusted to the second display mode from the first display mode.
The decoded information for showing the two dimensional code in second image with second display mode in step 15,
Include:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The decoded information of the two dimensional code is shown in the region of frame covering in the second image with the angle.
Specifically, due to having two dimensional code in the second image, it is possible to determine all composition two dimensional codes in the second image
The frame that is formed of pixel, the as frame of two dimensional code.Since the image acquisition units that the second visual angle is electronic equipment acquire
The visual angle of second image, and the image acquisition units of electronic equipment be held by the user of electronic equipment, so, the second visual angle
Embody the visual angle that user watches the second image.In order to enable the angles of display of the decoded information of two dimensional code meets user's viewing the
The visual angle of two images can determine the angular field of view of user according to the second visual angle, then by the angle of the decoded information of two dimensional code
It determines in the angular field of view of user, finally the angle two-dimensional code display in the coverage area of the frame of two dimensional code to determine
Decoded information.In this way, without transformation angle when user checks the decoded information of two dimensional code.
For example, the decoded information of two dimensional code is stereo-picture, it is also possible to non-cubic image.With the decoding of two dimensional code
For information is stereo-picture, according to the second visual angle, the angular field of view of user is determined, it is then that the angle presentation of stereo-picture is true
It is scheduled in the angular field of view of user, in this way, user can check stereo-picture under the second visual angle, is not necessarily to transformation angle.
Certainly, the decoding letter for showing the two dimensional code in the first image with the first display mode in step 12
Breath, with the decoded information class for showing the two dimensional code in second image with second display mode in step 15
Seemingly, it is just not explained in detail herein.
Fig. 2A and Fig. 2 B is please referred to, Fig. 2A is to show two in the region of the frame covering in the first image with first angle
The schematic diagram of the decoded information of code is tieed up, Fig. 2 B is to show two dimension in the region of the frame covering in the second image with second angle
The schematic diagram of the decoded information of code.
In the embodiment of the present invention, it is contemplated that long-term tracking will cause cumulative errors, in order to guarantee tracking effect, therefore adopt
With intermittent detection timely correction accumulated error.Following steps can also be performed:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect the two dimensional code whether position
In N+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are the video flowings
In a frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
Specifically, after detecting that two dimensional code is located in a frame image, every predetermined number of frames image, two dimensional code is detected
Whether it is located at and is separated by a frame image of predetermined number of frames image with the frame image, is separated by if two dimensional code is located at the frame image
In one frame image of predetermined number of frames image, then illustrate that tracking quality is good, at least one angle for tracking two dimensional code can be continued
Point, and then according to the quantity for the angle point being located in a frame image at least one angle point, identify two dimensional code;Otherwise, illustrate to track
Quality is unreliable, needs to identify two dimensional code by detecting.
For example, after detecting that two dimensional code is located in the 1st frame image, every 3 frame images, detect two dimensional code whether position
In the 4th, 7,10 ... frame images, if two dimensional code is located in the 4th frame image, illustrates that tracking quality is good, can continue
At least one angle point of the two dimensional code in the 4th frame image is tracked, and then determines in the 5th, 6 frame images whether there is two dimensional code, if
Two dimensional code is not located in the 7th frame image, then illustrates that tracking quality is unreliable, needs to determine the by the 8th, 9 frame images of detection
8, whether there is two dimensional code in 9 frame images.
It is illustrated in figure 3 another flow chart of information processing method provided in an embodiment of the present invention.At information shown in Fig. 3
Reason method the following steps are included:
1) a continuous video flowing is obtained by the image acquisition units of electronic equipment, which includes multi-frame video figure
Picture;
2) it before not detecting two dimensional code in video streaming, does detect frame by frame always, until detecting a certain frame video
There is two dimensional code in image, then lock two-dimension code area, in this frame image using number angle point appropriate in two-dimension code area
Position initialization tracker, decoded information will be plotted in two-dimentional code position simultaneously.
3) after having two dimensional code in detecting a certain frame video image, in the video image after the frame video image,
Tracker utilizes the above-mentioned appropriate number angle point of video tracking Technical Follow-Up two dimensional code;
4) two-dimentional code position in current frame video image is estimated according to tracking result, if the figure on current two-dimension position
Picture is similar to two dimensional code, then judges whether current frame video image needs intermittent detection;
Whether 5) if current frame video image needs intermittent detection, detecting in current frame video image has two dimension
Code;
If 6) detect there is two dimensional code in current frame video image, judge tracking result and testing result whether one
It causes;
7) if detecting in current frame video image does not have two dimensional code or current frame video image not to need intermittence
Detection or tracking result are consistent with testing result, then still utilize tracking result;
If 8) tracking result and testing result are inconsistent, tracker is reinitialized, and calculates present frame video figure
The two-dimentional code position as in.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of electronic equipment, referring to FIG. 4, Fig. 4 is the present invention
The structural block diagram for the electronic equipment that embodiment provides.The electronic equipment includes:
Determination unit 401, for determining the two dimensional code in the first image, the first image is image acquisition units acquisition
To video flowing in a frame image;
First display unit 402, for determining position of the two dimensional code in the first image, with the first display side
Formula shows the decoded information of the two dimensional code in the first image, and first display mode is to meet image acquisition units
Acquire the display mode at the first visual angle of the first image;
Judging unit 403, for judging whether the two dimensional code is located in the second image, second image is the view
It is different from a frame image of the first image in frequency stream;
Acquiring unit 404, for obtaining described image acquisition unit when the two dimensional code is located in second image
Acquire the second visual angle of second image;
Second display unit 405, for the relationship based on first visual angle Yu second visual angle, adjustment described first
Display mode is the second display mode, shows the decoding of the two dimensional code in second image with second display mode
Information.
Optionally, the acquiring unit 404 includes:
Subelement is tracked, for tracking at least one angle point of the two dimensional code, obtains tracking result, the tracking result
Characterize the quantity for the angle point being located in second image at least one described angle point;
First determines subelement, for having predetermined quantity angle point to be located at second figure at least one angle point described in
When as in, according to position of the predetermined quantity angle point in second image, determine the two dimensional code described second
Position in image;
Second determines that subelement determines described second for the position according to the two dimensional code in second image
Visual angle.
Optionally, the electronic equipment further include:
First detection unit, for every k frame image, detecting after detecting that the two dimensional code is located in nth frame image
Whether the two dimensional code is located in N+mk frame image, obtains testing result, the nth frame image and the N+mk frame figure
As being the frame image in the video flowing, N, m and k are the integer more than or equal to 1;
Comparing unit is used for the testing result and the tracking result, determines the error of the tracking result;
Second detection unit, for executing step: tracking the two dimensional code extremely when the error is less than preset range
A few angle point.
Optionally, second display unit 405 includes:
First obtains subelement, for obtaining under first visual angle at least one described angle point in the first image
In position be first position;
Second obtains subelement, for obtaining under second visual angle at least one described angle point in second image
In position be the second position;
Subelement is adjusted, for according to the difference between the first position and the second position, adjustment described first
Display mode is the second display mode.
Optionally, second display unit 405 includes:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The decoded information of the two dimensional code is shown in the region of frame covering in the second image with the angle.
The various change mode and specific example of information processing method described in previous embodiment are equally applicable to this reality
The electronic equipment for applying example, by the aforementioned detailed description to information processing method, those skilled in the art are clear that
The implementation method of electronic equipment in the present embodiment, so this will not be detailed here in order to illustrate the succinct of book.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of electronic equipment, referring to FIG. 5, Fig. 5 is the present invention
The structural schematic diagram for the electronic equipment that embodiment provides.The electronic equipment includes:
Shell 10;
Processor 20 is arranged in shell 10, and for determining the two dimensional code in the first image, the first image is image
A frame image in the collected video flowing of acquisition unit;Determine position of the two dimensional code in the first image;Judgement
Whether the two dimensional code is located in the second image, and second image is to be different from the one of the first image in the video flowing
Frame image;When the two dimensional code is located in second image, obtains described image acquisition unit and acquire second image
The second visual angle;Relationship based on first visual angle Yu second visual angle, adjusting first display mode is second aobvious
Show mode;
It shows screen 30, is arranged in shell 10, the display area of display screen 30 is aobvious by the first window of shell 10
Dew, wherein display screen 30 is used to show the decoded information of the two dimensional code in the first image with the first display mode,
First display mode is to meet the display mode at the first visual angle of image acquisition units acquisition the first image;With described
Second display mode shows the decoded information of the two dimensional code in second image.
The processor is used for:
At least one angle point of the two dimensional code is tracked, tracking result, the tracking result characterization described at least one are obtained
It is located at the quantity of the angle point in second image in a angle point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to described predetermined
Position of the quantity angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
Optionally, the processor 20 is also used to:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect the two dimensional code whether position
In N+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are the video flowings
In a frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
Optionally, the processor 20 is used for:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is second aobvious
Show mode.
Optionally, the processor 20 is used for:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The display screen 30 is used for: showing institute in the region of the frame covering in the second image with the angle
State the decoded information of two dimensional code.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
In the embodiment of the present invention, the two dimensional code in the first image shows that the first display mode meets with the first display mode
Image acquisition units acquire the first visual angle of the first image.When the two dimensional code is located in the second image, show in a second display mode
Show, the second display mode is that the relationship at the second visual angle of the second image is acquired based on the first visual angle and image acquisition units, right
First display mode display mode adjusted.Therefore, the decoded information of the two dimensional code in image is acquired with image acquisition units
The visual angle of image and change.It thus provides dynamically display mode carrys out the decoded information of two-dimensional code display, improve user's
Visual experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in
CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with information processing method in storage medium
One electronic equipment reads or is performed, and includes the following steps:
Determine the two dimensional code in the first image, the first image is one in the collected video flowing of image acquisition units
Frame image;
It determines position of the two dimensional code in the first image, is shown in the first image with the first display mode
Show the decoded information of the two dimensional code, first display mode is meet image acquisition units acquisition the first image the
The display mode at one visual angle;
Judge whether the two dimensional code is located in the second image, second image is in the video flowing different from described
One frame image of the first image;
When the two dimensional code is located in second image, obtains described image acquisition unit and acquire second image
The second visual angle;
Relationship based on first visual angle Yu second visual angle, adjusting first display mode is the second display side
Formula shows the decoded information of the two dimensional code with second display mode in second image.
Optionally, it stored in the storage medium and step: when the two dimensional code is located in second image, obtains
Take described image acquisition unit to acquire the second visual angle of second image, corresponding computer program instructions when executed,
Include:
At least one angle point of the two dimensional code is tracked, tracking result, the tracking result characterization described at least one are obtained
It is located at the quantity of the angle point in second image in a angle point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to described predetermined
Position of the quantity angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
Optionally, it is also stored with other computer instruction in the storage medium, these computer instructions are being held
Include the following steps: when row
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect the two dimensional code whether position
In N+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are the video flowings
In a frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
Optionally, optionally, stored in the storage medium and step: based on first visual angle and second view
The relationship at angle, adjusting first display mode is the second display mode, and corresponding computer program instructions when executed, wrap
It includes:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is second aobvious
Show mode.
Optionally, stored in the storage medium and step: with second display mode in second image
Show the decoded information of the two dimensional code, corresponding computer program instructions are when executed, comprising:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The decoded information of the two dimensional code is shown in the region of frame covering in the second image with the angle.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (11)
1. a kind of information processing method, which comprises
Determine the two dimensional code in the first image, the first image is the frame figure in the collected video flowing of image acquisition units
Picture;
It determines position of the two dimensional code in the first image, institute is shown in the first image with the first display mode
The decoded information of two dimensional code is stated, first display mode is to meet the first view of image acquisition units acquisition the first image
The display mode at angle;
Judge whether the two dimensional code is located in the second image, second image is to be different from described first in the video flowing
One frame image of image;
When the two dimensional code is located in second image, at least one angle point of the two dimensional code is tracked, based on described in extremely
A few angle point obtains the second visual angle that described image acquisition unit acquires second image;
Relationship based on first visual angle Yu second visual angle, adjusting first display mode is the second display mode,
The decoded information of the two dimensional code is shown in second image with second display mode.
2. the method as described in claim 1, which is characterized in that it is described when the two dimensional code is located in second image,
Based at least one described angle point, the second visual angle that described image acquisition unit acquires second image is obtained, comprising:
At least one angle point of the two dimensional code is tracked, tracking result is obtained, the tracking result characterizes at least one described angle
It is located at the quantity of the angle point in second image in point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to the predetermined quantity
Position of a angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
3. method according to claim 2, which is characterized in that the method also includes:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect whether the two dimensional code is located at N
In+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are in the video flowing
One frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
4. method according to claim 2, which is characterized in that the pass based on first visual angle Yu second visual angle
System, adjusting first display mode is the second display mode, comprising:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is the second display side
Formula.
5. the method as described in claim 1-4 is any, which is characterized in that it is described with second display mode described second
The decoded information of the two dimensional code is shown in image, comprising:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The decoded information of the two dimensional code is shown in the region of frame covering in the second image with the angle.
6. a kind of electronic equipment, comprising:
Determination unit, for determining the two dimensional code in the first image, the first image is the collected view of image acquisition units
A frame image in frequency stream;
First display unit, for determining position of the two dimensional code in the first image, with the first display mode in institute
The decoded information that the two dimensional code is shown in the first image is stated, first display mode acquires institute to meet image acquisition units
State the display mode at the first visual angle of the first image;
Judging unit, for judging whether the two dimensional code is located in the second image, second image is in the video flowing
Different from a frame image of the first image;
Acquiring unit, for being based at least one angle point, obtaining the figure when the two dimensional code is located in second image
As acquisition unit acquires the second visual angle of second image;
Second display unit adjusts the first display side for the relationship based on first visual angle Yu second visual angle
Formula is the second display mode, shows the decoded information of the two dimensional code in second image with second display mode.
7. a kind of electronic equipment, comprising:
Shell;
Processor is arranged in the shell, and for determining the two dimensional code in the first image, the first image is Image Acquisition
A frame image in the collected video flowing of unit;Determine position of the two dimensional code in the first image;Described in judgement
Whether two dimensional code is located in the second image, and second image is the frame figure for being different from the first image in the video flowing
Picture;When the two dimensional code is located in second image, it is based at least one angle point, obtains the acquisition of described image acquisition unit
Second visual angle of second image;Relationship based on the first visual angle Yu second visual angle, the first display mode of adjustment are the
Two display modes;
It shows screen, is arranged in the shell, the display area of the display screen is aobvious by the first window of the shell
Dew, wherein the display screen is used to show the decoding letter of the two dimensional code in the first image with the first display mode
Breath, first display mode are to meet the display mode at the first visual angle of image acquisition units acquisition the first image;With
Second display mode shows the decoded information of the two dimensional code in second image.
8. electronic equipment as claimed in claim 7, which is characterized in that the processor is used for:
At least one angle point of the two dimensional code is tracked, tracking result is obtained, the tracking result characterizes at least one described angle
It is located at the quantity of the angle point in second image in point;
When there is predetermined quantity angle point to be located in second image at least one described angle point, according to the predetermined quantity
Position of a angle point in second image determines position of the two dimensional code in second image;
According to position of the two dimensional code in second image, second visual angle is determined.
9. electronic equipment as claimed in claim 8, which is characterized in that the processor is also used to:
After detecting that the two dimensional code is located in nth frame image, every k frame image, detect whether the two dimensional code is located at N
In+mk frame image, testing result is obtained, the nth frame image and the N+mk frame image are in the video flowing
One frame image, N, m and k are the integer more than or equal to 1;
Compare the testing result and the tracking result, determines the error of the tracking result;
When the error is less than preset range, executes step: tracking at least one angle point of the two dimensional code.
10. electronic equipment as claimed in claim 8, which is characterized in that the processor is used for:
Obtaining the position of at least one angle point in the first image under first visual angle is first position;
Obtaining the position of at least one angle point in second image under second visual angle is the second position;
According to the difference between the first position and the second position, adjusting first display mode is the second display side
Formula.
11. the electronic equipment as described in claim 7-10 is any, which is characterized in that the processor is used for:
Determine the frame of two dimensional code described in second image;
Determine the angle of the decoded information of the two dimensional code under second visual angle;
The display screen is used for: showing the two dimension in the region of the frame covering in the second image with the angle
The decoded information of code.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511021558.9A CN105701433B (en) | 2015-12-30 | 2015-12-30 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201511021558.9A CN105701433B (en) | 2015-12-30 | 2015-12-30 | A kind of information processing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105701433A CN105701433A (en) | 2016-06-22 |
| CN105701433B true CN105701433B (en) | 2019-01-15 |
Family
ID=56226011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201511021558.9A Active CN105701433B (en) | 2015-12-30 | 2015-12-30 | A kind of information processing method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105701433B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101993512B1 (en) * | 2017-04-21 | 2019-09-30 | 성균관대학교산학협력단 | An apparatus of presenting encryption code for screen-to-camera communication, and method thereof |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101128836A (en) * | 2004-08-30 | 2008-02-20 | 讯宝科技公司 | Combined bar code imaging/decoding and real-time video capture system |
| CN103971079A (en) * | 2013-01-28 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Augmented reality implementation method and device of two-dimensional code |
| CN104769608A (en) * | 2013-10-01 | 2015-07-08 | 奥林巴斯株式会社 | Electronic device, method for controlling same, and recording medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100999714B1 (en) * | 2007-12-04 | 2010-12-08 | 에이.티 코뮤니케이션즈 가부시끼가이샤 | Two-dimensional code display system, two-dimensional code display method, and program |
| CN101631257A (en) * | 2009-08-06 | 2010-01-20 | 中兴通讯股份有限公司 | Method and device for realizing three-dimensional playing of two-dimensional video code stream |
| US9696882B2 (en) * | 2013-08-28 | 2017-07-04 | Lenovo (Beijing) Co., Ltd. | Operation processing method, operation processing device, and control method |
| JP5742979B1 (en) * | 2014-02-10 | 2015-07-01 | 富士ゼロックス株式会社 | Image processing apparatus, image reading apparatus, and program |
| CN105117759B (en) * | 2015-09-08 | 2019-02-15 | 北京意锐新创科技有限公司 | Dynamic two-dimensional code generation and reading method and device |
-
2015
- 2015-12-30 CN CN201511021558.9A patent/CN105701433B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101128836A (en) * | 2004-08-30 | 2008-02-20 | 讯宝科技公司 | Combined bar code imaging/decoding and real-time video capture system |
| CN103971079A (en) * | 2013-01-28 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Augmented reality implementation method and device of two-dimensional code |
| CN104769608A (en) * | 2013-10-01 | 2015-07-08 | 奥林巴斯株式会社 | Electronic device, method for controlling same, and recording medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105701433A (en) | 2016-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20230298383A1 (en) | Spoofing detection device, spoofing detection method, and recording medium | |
| CN102780893B (en) | Image processing apparatus and control method thereof | |
| US10395094B2 (en) | Method and apparatus for detecting glasses in a face image | |
| CN105761255B (en) | Game picture Caton test method and device | |
| CN106650662B (en) | Target object shielding detection method and device | |
| CN107004278B (en) | Tagging in 3D data capture | |
| US9230307B2 (en) | Image processing apparatus and method for generating a high resolution image | |
| US8891815B2 (en) | Invisible information embedding apparatus, invisible information detecting apparatus, invisible information embedding method, invisible information detecting method, and storage medium | |
| US20110241991A1 (en) | Tracking object selection apparatus, method, program and circuit | |
| KR102149463B1 (en) | Electronic device and method for processing image | |
| CN111028222B (en) | Video detection method and device, computer storage medium and related equipment | |
| KR20180014624A (en) | System and Method for Iris Authentication | |
| CN107430697A (en) | Custom Feature Patterns for Optical Barcodes | |
| US20150269739A1 (en) | Apparatus and method for foreground object segmentation | |
| CN106454079B (en) | Image processing method and device and camera | |
| US20160232399A1 (en) | System and method of detecting a gaze of a viewer | |
| US20120287235A1 (en) | Apparatus and method for processing 3-dimensional image | |
| US20170154467A1 (en) | Processing method and device for playing video | |
| JP2017129567A5 (en) | ||
| KR20130027520A (en) | Viewpoint detector based on skin color area and face area | |
| CN108830180A (en) | Electronic check-in method, device and electronic equipment | |
| CN106464865A (en) | Block-based static region detection for video processing | |
| US9619707B2 (en) | Gaze position estimation system, control method for gaze position estimation system, gaze position estimation device, control method for gaze position estimation device, program, and information storage medium | |
| CN113536953B (en) | Face recognition method, device, electronic device and storage medium | |
| CN110740315B (en) | Camera correction method and device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |