Two-dimension bar code application system and its implementation towards TVTechnical field
The present invention relates to a kind of two-dimension bar code application system and its implementation towards TV, relate in particular to and a kind ofly can on video screen, show two-dimensional bar code, portable terminal by built-in camera is taken the also two-dimension bar code application system of real-time decoding to it, also relating to this two-dimension bar code application system realizes belonging to the 2D bar code technology field towards the method for the two-dimensional bar code application service of TV.
Background technology
Two-dimensional bar code (2-dimensional bar code) is bar code of stored information all in the horizontal and vertical directions, it represents literal or numerical information with several and the corresponding geometrical body of binary system, and distinguish automatically, thereby realize information processing by image capture device or photoelectric scanning device.Compared to bar code, the information capacity of two-dimensional bar code will exceed tens times.This makes two-dimensional bar code to encode to simple numerical, can also comparison film, fingerprint, palmmprint, signature, sound, literal etc. can digitized information encode, thereby more colourful information service is provided.
In countries such as Japan, Korea S, utilize mobile phone to take two-dimensional bar code, thereby the mobile phone two-dimensional bar code business of obtaining relevant mobile phone value-added service is used widely with camera function.On August 1st, 2006, China Mobile formally releases mobile phone two-dimensional bar code business at home.Can predict, in the China that has mobile phone user more than 400,000,000, mobile phone two-dimensional bar code business will have wide development space, for service provider, equipment vendor, mobile telephone terminal manufacturer, businessman and operator bring new opportunity.
At present, using the common mode of two-dimensional bar code is that two-dimensional bar code is printed on paper, card or metal surface, utilizes image capture device such as camera to take, and is distinguished by special software.This application mode is confined to the physical medium surface with the use of two-dimensional bar code.But China existing C RT (Cathode Ray Tube, cathode ray tube) TV recoverable amount is above 300,000,000.There is considerable user seldom to read newpapers and periodicals, magazine, but gets used to seeing TV everyday.For this type of user, the mode of operation that existing two-dimensional bar code depends on physical medium exists tangible service blank undoubtedly.In order to enlarge the range of application of existing 2D bar code technology, make more vast user can enjoy the information service easily and efficiently that 2D bar code technology can be brought, people press for a kind of solution that the screen of two-dimensional bar code by the CRT TV can be shown and be convenient to distinguish.
There is not any technical difficulty in screen display two-dimensional bar code at the CRT TV, then has tangible difficulty but be to use common image capture device such as camera to distinguish this two-dimensional bar code.This mainly is the national Specification because of China's TV, and the line-scanning frequency of CRT TV is 15625Hz, and field-scanning period is 50Hz, and its row, field scan are single-frequency synchronous scanning.And common employed camera, particularly carry out the professional employed common camera of mobile phone two-dimension code, its operating frequency is difficult to guarantee and the television scanning frequency is consistent, and therefore is easy to generate shake and scintillation, causes two-dimensional bar code to be come out by recognition.
Summary of the invention
Primary technical problem to be solved by this invention is to provide a kind of two-dimension bar code application system of the CRT of being applicable to TV.This system can effectively overcome two-dimensional bar code and show on interleaved CRT video screen, is difficult to the problem of being distinguished and decoding by common camera because of having shake and scintillation.
The present invention also provides a kind of above-mentioned two-dimension bar code application system to realize towards the method for the two-dimensional bar code application service of TV.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of two-dimension bar code application system towards TV is characterized in that:
Described application system comprises television production unit, TV and two-dimensional bar code reading device;
Described television production is provided with the two-dimensional bar code coding device in the unit, and described code device generates two-dimensional barcode image according to customizing messages, by described television production unit described two-dimensional barcode image is appended in the TV programme signal;
Described television reception is also play described TV programme signal;
Described two-dimensional bar code reading device is taken the two-dimensional barcode image that broadcasts in the described TV, and it is distinguished, and provides follow-up information service according to the information of distinguishing out.
Wherein, in the described two-dimensional barcode image, the contrast of depth color lump is in 35% to 65% scope.
In the described two-dimensional barcode image, background color is a grey.
Described TV is interleaved CRT TV.
Described two-dimensional bar code reading device comprises camera and decoder, and described camera is to described decoder transmitted image data.
Described two-dimensional bar code reading device is the mobile phone that camera is installed.
A kind of realization towards the method for the two-dimensional bar code application service of TV, realize that based on above-mentioned two-dimension bar code application system described two-dimension bar code application system comprises television production unit, TV and two-dimensional bar code reading device, it is characterized in that:
(1) the television production unit makes the TV programme that has two-dimensional barcode image;
(2) the television production unit detects and adjusts the contrast of two-dimensional barcode image in the TV programme, makes it within 35% to 65% scope;
(3) the television production unit is sent to TV with TV programme signal, and this has the TV programme of two-dimensional bar code by televising;
(4) user is by the two-dimensional bar code in the real-time televising program of camera in the two-dimensional bar code reading device, and the two-dimensional barcode image of taking is transmitted decoder;
(5) described decoder is distinguished two-dimensional barcode image, and two-dimensional barcode image is converted to data message;
(6) described two-dimensional bar code reading device provides the corresponding subsequent service according to resulting data message for the user.
Wherein, in the described step (4), the camera in the described two-dimensional bar code reading device is taken many two-dimensional barcode images continuously, and transmits to decoder in real time.
In the described step (5), described decoder is decoded to the two-dimensional barcode image that receives in real time, just allows described camera stop to take in case there is a width of cloth figure successfully to decode.
The present invention is by regulating two-dimensional bar code contrast of display degree on the CRT video screen, solved dexterously and be difficult to the problem distinguishing and decode on TV when two-dimensional bar code shows, two-dimensional bar code is used on existing interleaved CRT TV become possibility, thereby enlarge the range of application of 2D bar code technology, make people provide abundanter service by 2D bar code technology.
Description of drawings
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Fig. 1 is the device schematic diagram that is used to distinguish two-dimensional bar code;
Fig. 2 is the structural representation of the two-dimension bar code application system towards TV provided by the present invention;
Fig. 3 is the signal flow schematic diagram of two-dimension bar code application system shown in Figure 2.
Embodiment
Existing two-dimensional barcode encoding scheme has a variety of, as PDF417 sign indicating number, DM sign indicating number, QR sign indicating number or the like.Though the rule and the characteristics of the coding of these 2D bar code technologies are not quite similar, it all is module that distribute according to certain rules, the dark figure alternate with light module in essence.Two-dimensional bar code can be distinguished by two-dimensional bar code reading device as shown in Figure 1.This reading device comprises camera and decoder, take the bar code graphics of two-dimensional bar code by camera, utilize the obvious contrast on the depth color in the bar code graphics, by decoder bar code graphics being carried out binaryzation distinguishes, and with corresponding " 0 ", " 1 " data that become computer-internal of the result after this differentiation, thereby the figure that the depth in the two-dimensional bar code is alternate is converted to the code that stores data message.
Two-dimensional bar code is implemented in the process of decoding identification at reading device, the depth color contrast of two-dimensional bar code is correctly carried out the binaryzation differentiation to decoder and has been played crucial effects.So-called contrast is a kind of parameter of weighing depth chromatic zones calibration in the figure, represents with CS usually.In bar code, contrast C S=(Rl-Rd)/Rl * 100%, Rl represents the reflectivity of bar code graphics hollow in the formula, Rd represents the reflectivity of bar code graphics discal patch.When the adhering to medium and be material such as paper, metal surface of two-dimensional bar code, the contrast C S of bar code is big more, and the binaryzation discrimination of decoder is just high more, and the recognition effect of decoder is also good more.But the inventor finds in practice, and above-mentioned law of cognition also is not suitable for showing the situation of two-dimensional bar code on the CRT video screen, particularly to traditional interlaced scan tv.
The scanning theory of interlaced scan tv is a two field picture to be divided into two scan, and sweeps odd-numbered line for first and is called odd field, sweeps even number line for second and is called even field, and odd field and even field image mosaic form a complete image together.When adopting such interlace mode to show two-dimensional bar code,, therefore not too influence normally watching of people because human eye has the ability of the persistence of vision.But camera does not have the ability of the persistence of vision, and the time of actual photographed often have only about centisecond, the therefore directly image in 2 D code that shows on the recognition video screen is easy to occur phenomenons such as the shake of picture line and image flicker.At this moment, if the contrast of two-dimensional bar code is improved, not only can not improve the recognition effect of decoder, shake and the scintillation that can aggravate image on the contrary.
At above-mentioned problem, the inventor finds by repetition test: when using interlaced scan tv to show two-dimensional bar code, the demonstration contrast that reduces two-dimensional bar code can obtain the better recognition effect on the contrary.An execution mode the simplest as above-mentioned discovery is to change the white as background color in the original two-dimensional bar code into grey, and when using common camera to take two-dimensional bar code like this, the recognition effect of decoder is better on the contrary.Further discover, show two-dimensional bar code on interleaved TV, best contrast is between 35% to 65%.In this scope, camera is taken the two-dimensional barcode image obtain tangible scintillation can not occur, the identification of decoding of the most suitable decoder.
Based on above-mentioned conclusion (of pressure testing), the invention provides a kind of two-dimension bar code application system to CRT TV demonstration two-dimensional bar code.
This two-dimension bar code application system comprises as shown in Figure 2: television production unit, TV and two-dimensional bar code reading device.Wherein, the television production unit is responsible for making and to the television transmission TV programme signal.Be provided with the two-dimensional bar code coding device in this production unit, be used for, will the coded data information editing generate two-dimensional barcode image according to employed two-dimensional bar code coding rule.This two-dimensional bar code coding device can be realized by special two-dimensional bar code coding software.The TV programme signal of this two-dimensional barcode image and preparation broadcast is combined in the television production unit, generates the TV signal that externally transmits.In this course, the demonstration contrast of two-dimensional barcode image is adjusted in the television production unit, makes this contrast within 35% to 65% scope.Television reception also shows the TV programme that is editted by the television production unit.The two-dimensional bar code reading device can be the mobile phone that camera is installed, and also can be computer that is connected with camera etc.The two-dimensional bar code that this two-dimensional bar code reading device shows by the camera televising, and send it to built-in decoder and distinguish.This decoder can be the client software that is installed in mobile phone or the computer.The two-dimensional barcode image that it is captured according to camera is decoded to two-dimensional bar code, and provides the corresponding subsequent service according to the data message that decoding obtains for the user, and as starting the browser browsing page, short-message sending arrives information station or the like.Because the information capacity of two-dimensional bar code is very big, can the separate, stored photo, fingerprint, palmmprint, signature, sound, literal etc. can digitized information.Therefore, the two-dimensional bar code reading device need not to connect any database, can directly provide the corresponding subsequent service by the institute of two-dimensional bar code canned data own for the user.
Figure 3 shows that the method for utilizing the two-dimensional bar code on the above-mentioned two-dimension bar code application system recognition video screen, its concrete steps are as follows:
(1) the television production unit makes the TV programme that has two-dimensional barcode image;
(2) the television production unit detects and adjusts the contrast of two-dimensional barcode image in the TV programme, makes it within 35% to 65% scope;
(3) the television production unit is sent to TV with TV programme signal, and this has the TV programme of two-dimensional bar code by televising;
(4) user is by the two-dimensional bar code in the real-time televising program of camera in the two-dimensional bar code reading device, and the two-dimensional barcode image of taking is transmitted decoder;
(5) described decoder is distinguished two-dimensional barcode image, and two-dimensional barcode image is converted to data message;
(6) described two-dimensional bar code reading device provides the corresponding subsequent service according to resulting data message for the user.
In addition, in order to improve the efficient of two-dimensional bar code on the two-dimensional bar code reading device recognition video screen, can allow camera in real time to decoder transmission pictorial information, decoder is decoded to this pictorial information in real time, just allows camera stop to take in case there is a width of cloth figure successfully to decode.Because camera can be taken many two-dimensional barcode images continuously in the very short time (1/tens seconds to the part order of magnitude of second), therefore the mode of this similar " candid photograph " can grasp qualified two-dimensional barcode image fast, thereby improves whole system operation efficient.
Above two-dimension bar code application system and the reading method thereof towards TV provided by the present invention had been described in detail.For one of ordinary skill in the art, any conspicuous change of under the prerequisite that does not deviate from connotation of the present invention it being done all will constitute to infringement of patent right of the present invention, with corresponding legal responsibilities.