CN105701433A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN105701433A
CN105701433A CN201511021558.9A CN201511021558A CN105701433A CN 105701433 A CN105701433 A CN 105701433A CN 201511021558 A CN201511021558 A CN 201511021558A CN 105701433 A CN105701433 A CN 105701433A
Authority
CN
China
Prior art keywords
image
quick response
response code
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.)
Granted
Application number
CN201511021558.9A
Other languages
Chinese (zh)
Other versions
CN105701433B (en
Inventor
王氚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201511021558.9A priority Critical patent/CN105701433B/en
Publication of CN105701433A publication Critical patent/CN105701433A/en
Application granted granted Critical
Publication of CN105701433B publication Critical patent/CN105701433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

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 invention provides an information processing method and electronic equipment. The method includes the steps of: determining a two-dimension code in a first image which is a frame of image in video streaming acquired by an image acquisition unit; determining the position of the two-dimension code in the first image, and displaying decoding information of the two-dimension code in the first image in a first display mode which satisfies a first visual angle at which the image acquisition unit acquires the first image; judging whether the two-dimension code is located in a second image which is a frame of image in the video streaming that is different from the first image; when the two-dimension code is located in the second image, obtaining a second visual angle at which the image acquisition unit acquires the second image; and based on a relation between the first visual angle and the second visual angle, adjusting the first display mode to a second display mode, and displaying the decoding information of the two-dimension code in the second image in the second display mode.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to technical field of information processing, particularly relate to a kind of information processing method and electronic equipment。
Background technology
Quick Response Code (QuickResponseCode), also known as QR code, is a kind of pattern being widely used in daily life。The decoded information of Quick Response Code is very extensive, for instance: webpage, application software, business card etc.。
Owing to the decoded information of Quick Response Code is not easily identified by the human eye, therefore people install Quick Response Code decoding software on an electronic device, when needing the decoded information knowing Quick Response Code, people run Quick Response Code identification software on an electronic device, after Quick Response Code identification software is run, the image acquisition units of electronic equipment can be opened and present a square frame holding identified Quick Response Code on an electronic device, need people that identified Quick Response Code is put into this square frame and (preview image that namely image acquisition units collects comprises identified Quick Response Code, and identified Quick Response Code is in this square frame), then the identified Quick Response Code in this square frame is scanned and decodes by Quick Response Code identification software, and then export the decoded information of identified Quick Response Code。
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, it is provided that dynamically display mode carrys out the decoded information of two-dimensional code display, improves the visual experience of user。
Embodiment of the present invention first aspect provides a kind of information processing method, including:
Determine that the Quick Response Code in the first image, described first image are the two field pictures in the video flowing that image acquisition units collects;
Determine described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;
Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
Optionally, described when described Quick Response Code is arranged in described second image, obtain described image acquisition units and gather the second visual angle of described second image, including:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
Optionally, described method also includes:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
Optionally, the described relation based on described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, including:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Optionally, the described decoded information showing described Quick Response Code with described second display mode in described second image, including:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Show the decoded information of described Quick Response Code with described angle in the region that described frame in the second image covers。
Embodiment of the present invention second aspect provides a kind of electronic equipment, including:
Determining unit, for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;
First display unit, for determining described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging unit, is used for judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
Acquiring unit, for when described Quick Response Code is arranged in described second image, obtaining described image acquisition units and gather the second visual angle of described second image;
Second display unit, for the relation based on described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
The embodiment of the present invention third aspect provides a kind of electronic equipment, including:
Housing;
Processor, is arranged in described housing, and for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;Determine described Quick Response Code position in described first image;Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode;
Display screen, it is arranged in described housing, the viewing area of described display screen is appeared by the first window of described housing, wherein, described display screen for showing the decoded information of described Quick Response Code with the first display mode in described first image, and described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;In described second image, the decoded information of described Quick Response Code is shown with described second display mode。
Optionally, described processor is used for:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
Optionally, described processor is additionally operable to:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
Optionally, described processor is used for:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Optionally, described processor is used for:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Described display screen is used for: show the decoded information of described Quick Response Code in the region that the described frame in the second image covers with described angle。
The one or more technical schemes provided in the embodiment of the present invention, at least have the following technical effect that or advantage:
In the embodiment of the present invention, the Quick Response Code in the first image shows with the first display mode, and the first display mode meets image acquisition units and gathers the first visual angle of the first image。When this Quick Response Code is arranged in the second image, showing in a second display mode, the second display mode is based on the first visual angle and image acquisition units gathers the relation at the second visual angle of the second image, the display mode after the first display mode is adjusted。Therefore, the decoded information of the Quick Response Code in image gathers the visual angle of image with image acquisition units and changes。It thus provides dynamically display mode carrys out the decoded information of two-dimensional code display, improve the visual experience of user。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below the accompanying drawing used required during embodiment is described is briefly described, it should be apparent that, the accompanying drawing in the following describes is only some embodiments of the present invention。
The flow chart of the information processing method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 A is the schematic diagram of the decoded information in the region that in the embodiment of the present invention, the frame in the first image covers with the first angle two-dimensional code display;
Fig. 2 B is the schematic diagram of the decoded information in the region that in the embodiment of the present invention, the frame in the second image covers with the second angle two-dimensional code display;
Another flow chart of the information processing method that Fig. 3 embodiment of the present invention provides;
The structured flowchart of a kind of electronic equipment that Fig. 4 provides for the embodiment of the present application;
The Fig. 5 a kind of electronic devices structure schematic diagram for providing in the embodiment of the present application。
Detailed description of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, it is provided that dynamically display mode carrys out the decoded information of two-dimensional code display, improves the visual experience of user。
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
Refer to the flow chart of the information processing method that Fig. 1, Fig. 1 provide for the embodiment of the present invention。The information processing method that the embodiment of the present invention provides comprises the following steps:
Step 11: determine that the Quick Response Code in the first image, described first image are the two field pictures in the video flowing that image acquisition units collects;
Step 12: determine described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Step 13: judge whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
Step 14: when described Quick Response Code is arranged in described second image, obtains described image acquisition units and gathers the second visual angle of described second image;
Step 15: based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
The information processing method that the embodiment of the present invention provides is applied in an electronic equipment, and this electronic equipment is provided with Quick Response Code decoding software。This electronic equipment may is that smart mobile phone, intelligent watch, panel computer, Intelligent bracelet, intelligent glasses etc.。Quick Response Code decoding software is able to the software that Quick Response Code is identified, for instance: " sweep and sweep " on the application programs such as wechat, Taobao, group of U.S.。
In a step 11, when needing the decoded information knowing Quick Response Code, electronic equipment runs Quick Response Code identification software, Quick Response Code identification software can open the image acquisition units of electronic equipment, so after being run, image acquisition units can continuous collecting to multiple image, multiple image composition video flowing, being likely to some image in multiple image has Quick Response Code, and some image does not have Quick Response Code。Quick Response Code identification software is utilized to detect the every two field picture in video flowing frame by frame, until detecting in a two field picture (hereinafter referred to as the first image) have Quick Response Code。
In step 12, after having Quick Response Code in determining the first image, multiple pixels of the first image are analyzed, extract the pixel of composition Quick Response Code, it is then determined that the frame that in the first image, the pixel of all composition Quick Response Codes is formed, the region that frame covers is exactly Quick Response Code position in the first image。Then according to Quick Response Code position in the first image, determine that the image acquisition units of electronic equipment gathers the first visual angle of the first image, and then it is determined for compliance with the display mode (hereinafter referred to as the first display mode) at the first visual angle, finally the decoded information of Quick Response Code is shown in the first image with the first display mode。
Wherein, according to Quick Response Code position in the first image, the process determining the first visual angle that the image acquisition units of electronic equipment gathers the first image is: Quick Response Code generally to be identified is in source images, then source images is carried out continuous collecting by the image acquisition units of electronic equipment, and then collects multiple image。Therefore, the pixel of the Quick Response Code from composition source images select multiple pixel as multiple anchor points, determine multiple anchor point in the position of source images and multiple anchor point the position in the first image, it is then determined that the same anchor point position in source images respectively and the line between the position in the first image, determine a plurality of line in a similar way, then calculating the angle of a plurality of line and the plane at source images place, angle can react the first visual angle。
The process of the display mode (i.e. the first display mode) being determined for compliance with the first visual angle is: owing to image acquisition units that the first visual angle is electronic equipment gathers the visual angle of the first image, and the image acquisition units of electronic equipment is to be gripped by the user of electronic equipment, so, the first visual angle embodies user and watches the visual angle of the first image。Under normal circumstances, the display mode of the decoding image of Quick Response Code is changeless, in order to improve the visual experience of user, according to the first visual angle, it is determined whether need the decoding image of Quick Response Code is distorted and stretched, to form the first display mode。
In step 13, it is judged that whether Quick Response Code is arranged in second image different from the first image, after namely having Quick Response Code in the first image being detected, whether the multiple image after detecting the first image has this Quick Response Code。Step 13 includes:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
Judge whether at least one angle point described has predetermined quantity angle point to be arranged in described second image。
Specifically, owing to the first image having Quick Response Code, it can be determined that the frame that in the first image, the pixel of all composition Quick Response Codes is formed, determining at least one angle point in the region that frame covers, angle point is the pixel of the decoded information carrying Quick Response Code in the pixel of composition Quick Response Code。Then follow the tracks of whether at least one angle point is arranged in the second image, and at least one angle point has how many angle points be arranged in the second image, if located in the quantity of the angle point in the second image more than predetermined quantity, then this Quick Response Code is arranged in the second image, otherwise, the second image is absent from Quick Response Code。Predetermined quantity can be user setup, it is also possible to be Quick Response Code identification software design patterns。
Visible, in the embodiment of the present invention, Quick Response Code identification process does not rely on Quick Response Code detection, and can calculate according to following the tracks of result, therefore still can successfully identify Quick Response Code in the situation of big visual angle。Improve the success rate identifying Quick Response Code。
At step 14, when Quick Response Code is arranged in the second image, obtains image acquisition units and gather the second visual angle of the second image。Because the image acquisition units of electronic equipment is usually gripped by user, so along with the visual angle of user changes, the visual angle of the different images that image acquisition units collects also changes, such as, visual angle when gathering the first image is the first visual angle, and visual angle when gathering the second image is the second visual angle。
Step 14 includes:
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
Specifically, when there being predetermined quantity angle point to be arranged in the second image at least one angle point, Quick Response Code is arranged in the second image。Owing to the Quick Response Code in the Quick Response Code in the second image and the first image is identical, according to the Quick Response Code in the first image, may determine that the position in the first image of predetermined quantity the angle point in the second image, it may also be determined that the position of other pixels formed in the first image in all pixels of Quick Response Code except predetermined quantity angle point, and then other pixels determined in all pixels of composition Quick Response Code except predetermined quantity angle point are relative to the relative position of predetermined quantity pixel。So, according to predetermined quantity pixel position in the second image, and other pixels formed in all pixels of Quick Response Code except predetermined quantity angle point are relative to the relative position of predetermined quantity pixel, other pixels that can determine in all pixels of composition Quick Response Code except predetermined quantity angle point position in the second image, so, Quick Response Code position in the second image has been determined that。
Finally, according to Quick Response Code position in the second image, it is determined that the second visual angle, and according to Quick Response Code position in the first image, it is determined that the first visual angle is similar, just repeats no more at this。
In the embodiment of the present invention, the following calculation efficiency of appropriate angle point is high, and the position of the Quick Response Code extrapolated according to the change of a large amount of angle points position in the track is more accurate, thus the decoded information of Quick Response Code is also more nearly true visual angle。
In step 15, the relation according to the first visual angle Yu the second visual angle, it is determined that the second display mode, is then adjusted to the second display mode by the first display mode, finally the decoded information of two-dimensional code display in the second image in a second display mode。The relation based on described first visual angle Yu described second visual angle in step 15, adjusting described first display mode is the second display mode, including:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Specifically, owing to the second image and the first image are different, so the position that at least one angle point of Quick Response Code is in the second image is different from Quick Response Code position in the first image。At least one angle point of Quick Response Code position in the first image is primary importance, owing to the image acquisition units that the first image is electronic equipment collects under the first visual angle, so position response that at least one angle point of Quick Response Code is in the first image the first visual angle, in like manner, at least one angle point of Quick Response Code position in the first image is the second position, owing to the image acquisition units that the second image is electronic equipment collects under the second visual angle, so the position response that at least one angle point of Quick Response Code is in the second image the second visual angle。
Difference according to primary importance Yu the second position, can determine the difference at the first visual angle and the second visual angle, and then the difference according to the first visual angle Yu the second visual angle, adjust the display mode of the decoding image of Quick Response Code, such as: the decoding image of Quick Response Code is stretched or distorts, and then is adjusted to the second display mode from the first display mode。
The decoded information showing described Quick Response Code with described second display mode in described second image in step 15, including:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Show the decoded information of described Quick Response Code with described angle in the region that described frame in the second image covers。
Specifically, owing to the second image having Quick Response Code, it is possible to determine the frame that the pixel of all composition Quick Response Codes in the second image is formed, be the frame of Quick Response Code。Owing to image acquisition units that the second visual angle is electronic equipment gathers the visual angle of the second image, and the image acquisition units of electronic equipment is to be gripped by the user of electronic equipment, so, the second visual angle embodies user and watches the visual angle of the second image。So that the angles of display of the decoded information of Quick Response Code meets user watches the visual angle of the second image, can according to the second visual angle, determine the angular field of view of user, then by the angle-determining of the decoded information of Quick Response Code in the angular field of view of user, the finally decoded information of angle two-dimensional code display to determine in the coverage of the frame of Quick Response Code。So, without transformation angle when user checks the decoded information of Quick Response Code。
For example, the decoded information of Quick Response Code is stereo-picture, it is also possible to non-cubic image。It it is stereo-picture for the decoded information of Quick Response Code, according to the second visual angle, it is determined that the angular field of view of user, then the angle presentation of stereo-picture is determined in the angular field of view of user, so, user just can check stereo-picture under the second visual angle, it is not necessary to transformation angle。
Certainly, the decoded information showing described Quick Response Code with the first display mode in described first image in step 12, with step 15 shows that the decoded information of described Quick Response Code is similar with described second display mode in described second image, be just not explained in detail at this。
Refer to Fig. 2 A and Fig. 2 B, Fig. 2 A is the schematic diagram of the decoded information in the region that the frame in the first image covers with the first angle two-dimensional code display, and Fig. 2 B is the schematic diagram of the decoded information in the region that the frame in the second image covers with the second angle two-dimensional code display。
In the embodiment of the present invention, it is contemplated that long-term tracking can cause cumulative errors, in order to ensure tracking effect, intermittent detection is therefore adopted to correct cumulative error in time。Can also carry out following steps:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
Specifically, after detecting that Quick Response Code is arranged in a two field picture, every predetermined quantity two field picture, whether detection Quick Response Code is arranged in is separated by a two field picture of predetermined quantity two field picture with this two field picture, it is separated by a two field picture of predetermined quantity two field picture with this two field picture if Quick Response Code is arranged in, then illustrates that tracking quality is good, it is possible to continue to follow the tracks of at least one angle point of Quick Response Code, and then the quantity according to the angle point being arranged in a two field picture at least one angle point, identify Quick Response Code;Otherwise, illustrate that tracking quality is unreliable, it is necessary to identify Quick Response Code by detecting。
For example, after detecting that Quick Response Code is arranged in the 1st two field picture, every 3 two field pictures, whether detection Quick Response Code is positioned at the 4th, 7,10 ... in two field picture, if Quick Response Code is arranged in the 4th two field picture, then illustrate that tracking quality is good, can continue to follow the tracks of at least one angle point of the Quick Response Code in the 4th two field picture, and then determine the 5th, whether 6 two field pictures have Quick Response Code, if Quick Response Code is not located in the 7th two field picture, then illustrate that tracking quality is unreliable, it is necessary to by detecting the 8th, 9 two field pictures determine the 8th, whether have Quick Response Code in 9 two field pictures。
It is illustrated in figure 3 another flow chart of the information processing method that the embodiment of the present invention provides。Information processing method shown in Fig. 3 comprises the following steps:
1) obtaining a continuous print video flowing by the image acquisition units of electronic equipment, this video flowing includes multi-frame video image;
2) it is not detected by video streaming before Quick Response Code, do always and detect frame by frame, until detecting in a certain frame video image have Quick Response Code, then two-dimension code area is locked, utilize appropriate number angle point position initialization tracker in this two field picture in two-dimension code area, decoded information will be plotted in Quick Response Code position simultaneously。
3), after having Quick Response Code in a certain frame video image being detected, in the video image after this frame video image, tracker utilizes above-mentioned appropriate number the angle point of video tracking Technical Follow-Up Quick Response Code;
4) according to following the tracks of Quick Response Code position in result estimation current frame video image, if the image on current two-dimension position is similar to Quick Response Code, then judge that current frame video image detects the need of intermittence;
5) if current frame video image needs intermittence detection, then whether detection current frame video image there is Quick Response Code;
6) if be detected that current frame video image has Quick Response Code, then judge to follow the tracks of result whether consistent with testing result;
7) if be detected that do not have Quick Response Code in current frame video image, or current frame video image need not intermittence detect, or tracking result is consistent with testing result, then still with following the tracks of result;
8) if tracking result and testing result are inconsistent, then reinitialize tracker, and calculate Quick Response Code position in current frame video image。
Based on same inventive concept, the embodiment of the present invention also provides for a kind of electronic equipment, refer to the structured flowchart of the electronic equipment that Fig. 4, Fig. 4 provide for the embodiment of the present invention。This electronic equipment includes:
Determining unit 401, for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;
First display unit 402, for determining described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging unit 403, is used for judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
Acquiring unit 404, for when described Quick Response Code is arranged in described second image, obtaining described image acquisition units and gather the second visual angle of described second image;
Second display unit 405, for the relation based on described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
Optionally, described acquiring unit 404 includes:
Following the tracks of subelement, for following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
First determines subelement, for when having predetermined quantity angle point to be arranged in described second image at least one angle point described, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
Second determines subelement, for according to described Quick Response Code position in described second image, it is determined that described second visual angle。
Optionally, described electronic equipment also includes:
First detection unit, for after detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Comparing unit, for relatively described testing result and described tracking result, it is determined that the error of described tracking result;
Second detection unit, for when described error is less than preset range, performing step: follow the tracks of at least one angle point of described Quick Response Code。
Optionally, described second display unit 405 includes:
First obtains subelement, is primary importance for obtaining described at least one angle point position in described first image under described first visual angle;
Second obtains subelement, is the second position for obtaining described at least one angle point position in described second image under described second visual angle;
Adjusting subelement, for according to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Optionally, described second display unit 405 includes:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Show the decoded information of described Quick Response Code with described angle in the region that described frame in the second image covers。
The various variation patterns of the information processing method described in previous embodiment and instantiation are equally applicable to the electronic equipment of the present embodiment, by the aforementioned detailed description to information processing method, those skilled in the art are it is clear that the implementation of electronic equipment in the present embodiment, so succinct for description, it is not described in detail in this。
Based on same inventive concept, the embodiment of the present invention also provides for a kind of electronic equipment, refer to the structural representation of the electronic equipment that Fig. 5, Fig. 5 provide for the embodiment of the present invention。This electronic equipment includes:
Housing 10;
Processor 20, is arranged in housing 10, and for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;Determine described Quick Response Code position in described first image;Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode;
Display screen 30, it is arranged in housing 10, the viewing area of display screen 30 is appeared by the first window of housing 10, wherein, display screen 30 for showing the decoded information of described Quick Response Code with the first display mode in described first image, and described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;In described second image, the decoded information of described Quick Response Code is shown with described second display mode。
Described processor is used for:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
Optionally, described processor 20 is additionally operable to:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
Optionally, described processor 20 is used for:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Optionally, described processor 20 is used for:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Described display screen 30 is used for: show the decoded information of described Quick Response Code in the region that the described frame in the second image covers with described angle。
The one or more technical schemes provided in the embodiment of the present invention, at least have the following technical effect that or advantage:
In the embodiment of the present invention, the Quick Response Code in the first image shows with the first display mode, and the first display mode meets image acquisition units and gathers the first visual angle of the first image。When this Quick Response Code is arranged in the second image, showing in a second display mode, the second display mode is based on the first visual angle and image acquisition units gathers the relation at the second visual angle of the second image, the display mode after the first display mode is adjusted。Therefore, the decoded information of the Quick Response Code in image gathers the visual angle of image with image acquisition units and changes。It thus provides dynamically display mode carrys out the decoded information of two-dimensional code display, improve the visual experience of user。
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program。Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect。And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code。
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe。It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame。These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable device, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable device provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
Specifically, the computer program instructions that information processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with information processing method in storage medium is read by an electronic equipment or be performed, comprise the steps:
Determine that the Quick Response Code in the first image, described first image are the two field pictures in the video flowing that image acquisition units collects;
Determine described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;
Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
Optionally, in described storage medium storage and step: when described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image, corresponding computer program instructions when executed, including:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
Optionally, in described storage medium, also storage has other computer instruction, and these computer instructions comprise the steps: when executed
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
Optionally, optionally, in described storage medium storage and step: based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, correspondence computer program instructions when executed, including:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
Optionally, in described storage medium storage and step: in described second image, show the decoded information of described Quick Response Code with described second display mode, corresponding computer program instructions when executed, including:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Show the decoded information of described Quick Response Code with described angle in the region that described frame in the second image covers。
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment。So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention。
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art。So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification。

Claims (11)

1. an information processing method, described method includes:
Determine that the Quick Response Code in the first image, described first image are the two field pictures in the video flowing that image acquisition units collects;
Determine described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;
Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
2. the method for claim 1, it is characterised in that described when described Quick Response Code is arranged in described second image, obtains described image acquisition units and gathers the second visual angle of described second image, including:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
3. method as claimed in claim 2, it is characterised in that described method also includes:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
4. method as claimed in claim 2, it is characterised in that the described relation based on described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, including:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
5. the method as described in as arbitrary in claim 1-4, it is characterised in that the described decoded information showing described Quick Response Code with described second display mode in described second image, including:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Show the decoded information of described Quick Response Code with described angle in the region that described frame in the second image covers。
6. an electronic equipment, including:
Determining unit, for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;
First display unit, for determining described Quick Response Code position in described first image, show the decoded information of described Quick Response Code in described first image with the first display mode, described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;
Judging unit, is used for judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;
Acquiring unit, for when described Quick Response Code is arranged in described second image, obtaining described image acquisition units and gather the second visual angle of described second image;
Second display unit, for the relation based on described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode, shows the decoded information of described Quick Response Code in described second image with described second display mode。
7. an electronic equipment, including:
Housing;
Processor, is arranged in described housing, and for determining the Quick Response Code in the first image, described first image is the two field picture in the video flowing that image acquisition units collects;Determine described Quick Response Code position in described first image;Judging whether described Quick Response Code is arranged in the second image, described second image is the two field picture being different from described first image in described video flowing;When described Quick Response Code is arranged in described second image, obtains described image acquisition units and gather the second visual angle of described second image;Based on the relation at described first visual angle Yu described second visual angle, adjusting described first display mode is the second display mode;
Display screen, it is arranged in described housing, the viewing area of described display screen is appeared by the first window of described housing, wherein, described display screen for showing the decoded information of described Quick Response Code with the first display mode in described first image, and described first display mode is the display mode meeting the first visual angle that image acquisition units gathers described first image;In described second image, the decoded information of described Quick Response Code is shown with described second display mode。
8. electronic equipment as claimed in claim 7, it is characterised in that described processor is used for:
Following the tracks of at least one angle point of described Quick Response Code, it is thus achieved that follow the tracks of result, described tracking result characterizes the quantity of the angle point being arranged in described second image at least one angle point described;
When at least one angle point described has predetermined quantity angle point to be arranged in described second image, according to described predetermined quantity angle point position in described second image, it is determined that described Quick Response Code position in described second image;
According to described Quick Response Code position in described second image, it is determined that described second visual angle。
9. electronic equipment as claimed in claim 8, it is characterised in that described processor is additionally operable to:
After detecting that described Quick Response Code is arranged in nth frame image, every k two field picture, detect whether described Quick Response Code is arranged in N+mk two field picture, obtain testing result, described nth frame image and described N+mk two field picture are all the two field pictures in described video flowing, and N, m and k are the integer be more than or equal to 1;
Relatively described testing result and described tracking result, it is determined that the error of described tracking result;
When described error is less than preset range, perform step: follow the tracks of at least one angle point of described Quick Response Code。
10. electronic equipment as claimed in claim 8, it is characterised in that described processor is used for:
Obtaining described at least one angle point position in described first image under described first visual angle is primary importance;
Obtaining described at least one angle point position in described second image under described second visual angle is the second position;
According to the difference between described primary importance and the described second position, adjusting described first display mode is the second display mode。
11. the electronic equipment as described in as arbitrary in claim 7-10, it is characterised in that described processor is used for:
Determine the frame of Quick Response Code described in described second image;
Determine under described second visual angle, the angle of the decoded information of described Quick Response Code;
Described display screen is used for: show the decoded information of described Quick Response Code in the region that the described frame in the second image covers with described angle。
CN201511021558.9A 2015-12-30 2015-12-30 A kind of information processing method and electronic equipment Active CN105701433B (en)

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 true CN105701433A (en) 2016-06-22
CN105701433B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734249A (en) * 2017-04-21 2018-11-02 成均馆大学校产学协力团 Encrypted code output method for being communicated between screen and camera and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101128836A (en) * 2004-08-30 2008-02-20 讯宝科技公司 Combination barcode imaging/decoding and real-time video capture system
CN101631257A (en) * 2009-08-06 2010-01-20 中兴通讯股份有限公司 Method and device for realizing three-dimensional playing of two-dimensional video code stream
CN101889291A (en) * 2007-12-04 2010-11-17 At信息股份有限公司 Two-dimensional code display system, two-dimensional code display method, and program
CN103971079A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Augmented reality implementation method and device of two-dimensional code
US20150067589A1 (en) * 2013-08-28 2015-03-05 Lenovo (Beijing) Co., Ltd. Operation Processing Method And Operation Processing Device
CN104769608A (en) * 2013-10-01 2015-07-08 奥林巴斯株式会社 Electronic device, method for controlling same, and recording medium
US20150229806A1 (en) * 2014-02-10 2015-08-13 Fuji Xerox Co., Ltd. Image processing apparatus, image reading apparatus, and non-transitory computer readable medium
CN105117759A (en) * 2015-09-08 2015-12-02 北京意锐新创科技有限公司 Dynamic two-dimensional code generating method, reading method, generating apparatuses and reading apparatuses

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101128836A (en) * 2004-08-30 2008-02-20 讯宝科技公司 Combination barcode imaging/decoding and real-time video capture system
CN101889291A (en) * 2007-12-04 2010-11-17 At信息股份有限公司 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
CN103971079A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Augmented reality implementation method and device of two-dimensional code
US20150067589A1 (en) * 2013-08-28 2015-03-05 Lenovo (Beijing) Co., Ltd. Operation Processing Method And Operation Processing Device
CN104769608A (en) * 2013-10-01 2015-07-08 奥林巴斯株式会社 Electronic device, method for controlling same, and recording medium
US20150229806A1 (en) * 2014-02-10 2015-08-13 Fuji Xerox Co., Ltd. Image processing apparatus, image reading apparatus, and non-transitory computer readable medium
CN105117759A (en) * 2015-09-08 2015-12-02 北京意锐新创科技有限公司 Dynamic two-dimensional code generating method, reading method, generating apparatuses and reading apparatuses

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734249A (en) * 2017-04-21 2018-11-02 成均馆大学校产学协力团 Encrypted code output method for being communicated between screen and camera and device
CN108734249B (en) * 2017-04-21 2021-12-03 成均馆大学校产学协力团 Encrypted code output method and device for communication between screen and camera

Also Published As

Publication number Publication date
CN105701433B (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN106778996B (en) It is embedded with the generation system and method for the two dimensional code of visual pattern and reads system
CN102859534B (en) Based on the viewpoint detecting device of skin-coloured regions and facial zone
US10404969B2 (en) Method and apparatus for multiple technology depth map acquisition and fusion
CN107357540A (en) The method of adjustment and mobile terminal of a kind of display direction
US9536321B2 (en) Apparatus and method for foreground object segmentation
KR102149463B1 (en) Electronic device and method for processing image
CN106462745A (en) Structured light three-dimensional (3D) depth map based on content filtering
CN108830180B (en) Electronic attendance checking method and device and electronic equipment
EP2628134A1 (en) Text-based 3d augmented reality
US20130050446A1 (en) Object search device, video display device, and object search method
KR102450236B1 (en) Electronic apparatus, method for controlling thereof and the computer readable recording medium
CN104252828A (en) Vision-protective display method, vision-protective display device and terminal equipment
CN113920502A (en) Cloud deck adjusting method, device, equipment and medium
CN109816628B (en) Face evaluation method and related product
CN105609088B (en) A kind of display control method and electronic equipment
CN105701433A (en) Information processing method and electronic equipment
CN107093395B (en) Transparent display device and image display method thereof
US9503677B1 (en) Rectifying camera pairs
CN108416759A (en) Show detection method, device and equipment, the readable medium of failure
CN107491778B (en) Intelligent device screen extraction method and system based on positioning image
CN106657976B (en) A kind of visual range extension method, device and virtual reality glasses
CN111142825B (en) Multi-screen visual field display method and system and electronic equipment
JP6686319B2 (en) Image projection device and image display system
CN107507178A (en) The detection method and device of Grating Film
CN114612994A (en) Method and device for training wrinkle detection model and method and device for detecting wrinkles

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