WO2018132984A1 - Communication method and device - Google Patents
Communication method and device Download PDFInfo
- Publication number
- WO2018132984A1 WO2018132984A1 PCT/CN2017/071604 CN2017071604W WO2018132984A1 WO 2018132984 A1 WO2018132984 A1 WO 2018132984A1 CN 2017071604 W CN2017071604 W CN 2017071604W WO 2018132984 A1 WO2018132984 A1 WO 2018132984A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- light
- encoded
- liquid crystal
- optical rotation
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
Definitions
- the embodiments of the present invention relate to the field of communications, and in particular, to a communication method and apparatus.
- the two-dimensional code is a black and white pattern that is distributed in a plane (two-dimensional direction) by a certain geometric pattern to record data symbol information; and skillfully utilizes the logic foundation of the computer to form the basic logic of the computer.
- the concept of "0" and "1" bit streams uses a number of geometric shapes corresponding to binary to represent literal numerical information, and is automatically read by an image input device or an optical scanning device to implement automatic information processing.
- the intensity of the light is usually generated by the liquid crystal pixel on the display screen, so that the user can directly see the effect of the two-dimensional code image displayed on the display screen.
- the display screen is used as a lighting tool at the same time, the illumination effect of the display screen is greatly reduced.
- an embodiment of the present invention provides a communication method and apparatus.
- an embodiment of the present invention provides a communication method, including:
- the transmitting end acquires a coded image, where the coded image includes first coded data and second coded data;
- the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen
- first optical rotation is generated by the first display point for displaying the first encoded data
- second optical rotation is by the display screen for displaying the second encoded data
- the second pixel is generated.
- the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
- the transmitting end generates a first polarization direction light at the first pixel point through a display screen, and generates a second polarization direction light beam at the second pixel point;
- the transmitting end converts the first polarization direction light into the first rotation and converts the second polarization direction light into the second rotation.
- the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
- the transmitting end generates a first polarization direction ray at the first pixel point through the display screen, and generates a second polarization direction ray at the second pixel point, including:
- the transmitting end polarizes the light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction;
- the transmitting end drives the liquid crystal pixel array, converts the polarized light into a first polarization direction light through the first liquid crystal pixel array, and converts the polarized light into a second polarization through the second liquid crystal pixel array Directional light.
- the display screen includes a 1/4 wave plate; the transmitting end converts the first polarization direction light into the first rotation light, and Converting the second polarization direction light into the second rotation, comprising:
- the angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
- the display screen includes a circular polarizing plate and a liquid crystal pixel array
- the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array
- the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
- the transmitting end converts light from the light source into an optical rotation in a preset direction by the circular polarizing plate
- the transmitting end drives the liquid crystal pixel array, and the optical rotation in the preset direction is converted into a first optical rotation by the first liquid crystal pixel array, and the second liquid crystal pixel array is used in the preset direction.
- the optical rotation is converted into a second optical rotation;
- first optical rotation and the second optical rotation have different rotation directions.
- the sending end acquires a coded image, including:
- the transmitting end acquires three to-be-transmitted encoded images, wherein the three to-be-transmitted encoded images are black and white two-dimensional code images, and the three to-be-transmitted encoded images include a first encoded image, a second encoded image, and a Three-coded image;
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- Converting the polarized light into a first polarization direction ray by the first liquid crystal pixel array, and converting the polarized light into a second polarization direction ray by the second liquid crystal pixel array including:
- the B channel in the liquid crystal pixel array of the second encoded data in the black coded image converts the polarized light into the second polarized direction ray.
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- Converting the optical rotation in the preset direction into the first optical rotation by the first liquid crystal pixel array, and converting the optical rotation in the preset direction into the second optical rotation through the second liquid crystal pixel array including:
- the transmitting end passes through a liquid crystal pixel for displaying the first encoded data in the red-black encoded image
- An R channel in the array, the optical rotation in the predetermined direction is converted into the first optical rotation, and the R channel in the liquid crystal pixel array for displaying the second encoded data in the red-black encoded image is The optical rotation in the preset direction is converted into the second optical rotation;
- the transmitting end converts the optical rotation in the preset direction into the first optical rotation by using a G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image, and is used for displaying a G channel in the liquid crystal pixel array of the second encoded data in the green black coded image, converting the optical rotation in the preset direction into the second optical rotation;
- the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
- the red-black encoded image includes only the first positioning identifier
- the green-black encoded image includes only the second positioning identifier
- the blue-black encoded image includes only the third positioning identifier
- the sending end includes a visible light communication VLC module, and the method further includes:
- the VLC module acquires data to be sent
- the VLC module controls light generated by the light source, and a blinking state and an intensity state of the light generated by the light source correspond to the data to be transmitted.
- the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
- the transmitting end acquires light generated from a light source through the display screen
- the transmitting end converts the light received by the first pixel into a first optical rotation, and converts the light received by the second pixel into a second optical rotation.
- the method further includes:
- the transmitting end acquires the length a and the width b of the display screen
- the transmitting end When a ⁇ n ⁇ b, the transmitting end simultaneously displays n coded images of size b ⁇ b on the display screen, where n is a positive integer and a and b are positive numbers.
- the method further includes:
- the transmitting end receives information that is sent by the receiving end and includes a minimum resolution
- the transmitting end determines the first pixel point and the second pixel point according to the minimum resolution.
- the obtaining, by the sending end, the encoded image includes:
- the transmitting end sends a signal calibration image to the receiving end
- the transmitting end receives the image identification information sent by the receiving end, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
- the transmitting end generates the encoded image according to the image identification information by using data to be transmitted.
- the method further includes:
- the transmitting end uses the integral of the frame rate of the image sensor as a refresh frame rate
- the transmitting end sends the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
- an embodiment of the present invention further provides a communication method, including:
- the receiving end collects light emitted by the transmitting end, and the light includes a first optical rotation and a second optical rotation;
- the receiving end converts the acquired first optical rotation and the second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
- the receiving end converts the collected first optical rotation and the second optical rotation into a coded image, including:
- the receiving end converts the light into a preset polarization direction light through a circular polarizing plate
- the receiving end collects the preset polarization direction light through an image sensor to obtain a coded image.
- the light emitted by the transmitting end includes light of three channels of R, G, and B, and the light of the three channels of R, G, and B respectively includes a pre-light.
- the receiving end acquires the preset polarization direction light by using an image sensor, and obtaining the encoded image includes:
- the receiving end separately collects preset polarization direction light rays including three channels R, G, and B through an image sensor, and respectively generates a first encoded image, a second encoded image, and a third encoded image;
- the receiving end acquires a color corrected image, and respectively corrects the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
- the first coded image, the The second encoded image and the third encoded image each include a positioning identifier, and the method further includes:
- the receiving end determines whether the positioning identifier is first encoded data
- the receiving end determines that the positioning identifier is not the first encoded data
- the receiving end performs image inverse color processing on the first encoded image, the second encoded image, and the third encoded image, respectively.
- the method further includes:
- the receiving end acquires blinking state or intensity state information of the light, and converts the blinking state or the intensity state information into corresponding receiving data.
- the method further includes:
- the receiving end identifies the sub-image in the corrected image, and determines that the sub-image with the lowest definition in the corrected image is recognized;
- the receiving end determines a minimum resolution, where the minimum resolution is a resolution corresponding to the lowest-resolution sub-image in the sub-image;
- the receiving end sends information including the minimum resolution to the transmitting end.
- the method further includes:
- the receiving end generates image identification information for the signal calibration image, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
- the receiving end sends the image identification information to the transmitting end.
- the coded image includes a location identifier
- the method further includes:
- the receiving end determines whether the positioning identifier is second encoded data
- the receiving end determines that the positioning identifier is not the second encoded data, the receiving end performs image inversion processing on the encoded image.
- an embodiment of the present invention provides a sending end, including:
- a processor configured to acquire a coded image, where the coded image includes first coded data and second coded data;
- a transmitter for generating a first optical rotation and a second optical rotation including the coded image through a display screen
- first optical rotation is generated by the first display point for displaying the first encoded data
- second optical rotation is by the display screen for displaying the second encoded data
- the second pixel is generated.
- the processor is further configured to generate a first polarization direction light at the first pixel point through a display screen, and generate a second polarization direction light beam at the second pixel point;
- the transmitter is further configured to convert the first polarization direction light into the first rotation and convert the second polarization direction light into the second rotation.
- the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
- the processor is further configured to polarize light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction;
- the processor is further configured to drive the liquid crystal pixel array, convert the polarized light into a first polarization direction light through the first liquid crystal pixel array, and convert the polarized light through the second liquid crystal pixel array Light rays in the second polarization direction.
- the display screen includes a 1/4 wave plate
- the transmitter is further configured to pass the first polarization direction light and the second polarization direction light into the 1/4 wave plate, and convert the first polarization direction light into a first rotation, The second polarization direction light is converted into the second rotation light;
- the angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
- the display screen includes a circular polarizing plate and a liquid crystal pixel array
- the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array
- the transmitter is further configured to convert light from the light source into an optical rotation in a preset direction by using the circular polarizing plate;
- the transmitter is further configured to drive the liquid crystal pixel array, convert the optical rotation in the preset direction into a first optical rotation through the first liquid crystal pixel array, and use the second liquid crystal pixel array to Setting the optical rotation in the direction to be the second optical rotation;
- first optical rotation and the second optical rotation have different rotation directions.
- the processor is further configured to acquire three to-be-transmitted encoded images, where the three to-be-transmitted encoded images are black and white two-dimensional code images, and the three to-be-transmitted encoded images include a first encoded image and a second image. a coded image and a third coded image;
- the processor is further configured to convert the first encoded image into a red-black encoded image, wherein the red color represents first encoded data in the first encoded image, and the black represents the first encoded image Second encoded data in the image;
- the processor is further configured to convert the second encoded image into a green-black encoded image, wherein the green color indicates first encoded data in the second encoded image, and the black indicates the second encoded image Second encoded data in the image;
- the processor is further configured to convert the third encoded image into a blue-black encoded image, wherein the blue represents first encoded data in the third encoded image, and the black represents the third Encoding the second encoded data in the image.
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- the processor is further configured to convert the polarized light into the first polarized direction light by using an R channel in a liquid crystal pixel array for displaying first encoded data in the red-black encoded image, by using Displaying an R channel in the liquid crystal pixel array of the second encoded data in the red-black encoded image, converting the polarized light into the second polarized direction light;
- the processor is further configured to convert the polarized light into the first polarization direction light by using a G channel in a liquid crystal pixel array for displaying first encoded data in the green-black encoded image, by using Displaying a G channel in the liquid crystal pixel array of the second encoded data in the green-black encoded image, converting the polarized light into the second polarized direction light;
- the processor is further configured to convert the polarized light into the first polarization direction light by using a B channel in a liquid crystal pixel array for displaying first encoded data in the blue-black encoded image, by using Displaying a B channel in the liquid crystal pixel array of the second encoded data in the blue-black coded image, converting the polarized light into the second polarized direction light.
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- the transmitter is further configured to convert the optical rotation in the preset direction into the first optical rotation by using an R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, An R channel in the liquid crystal pixel array for displaying the second encoded data in the red-black coded image, converting the optical rotation in the preset direction into the second optical rotation;
- the transmitter is further configured to pass a liquid for displaying the first encoded data in the green-black encoded image a G channel in the pixel array, converting the optical rotation in the predetermined direction into the first optical rotation, by using a G channel in the liquid crystal pixel array for displaying the second encoded data in the green-black encoded image, The optical rotation in the preset direction is converted into the second optical rotation;
- the transmitter is further configured to convert the optical rotation in the preset direction into the first optical rotation by using a B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, a B channel in the liquid crystal pixel array for displaying the second encoded data in the blue-black coded image, converting the optical rotation in the preset direction into the second optical rotation.
- the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
- the red-black encoded image includes only the first positioning identifier
- the green-black encoded image includes only the second positioning identifier
- the blue-black encoded image includes only the third positioning identifier
- the present invention includes a visible light communication VLC module, and the sending end further includes:
- the processor is further configured to acquire data to be sent by using the VLC module
- the processor is further configured to control, by the VLC module, light generated by the light source, where a blinking state and an intensity state of the light generated by the light source correspond to the data to be transmitted.
- the sending end further includes: a receiver
- the receiver is configured to obtain light generated by a light source through the display screen
- the transmitter is further configured to convert the light received by the first pixel into a first optical rotation, and convert the light received by the second pixel into a second optical rotation.
- a receiver configured to acquire a length a and a width b of the display screen
- the processor is further configured to simultaneously display n coded images of size b ⁇ b on the display screen, where n is a positive integer, and a and b are positive numbers. .
- the transmitter is further configured to send a corrected image to the receiving end, so that the receiving end determines a minimum resolution according to the corrected image;
- the receiver is further configured to receive information that is sent by the receiving end and includes a minimum resolution
- the processor is further configured to determine the first pixel point and the second image according to the minimum resolution Prime point.
- the transmitter is further configured to send a signal calibration image to the receiving end;
- the receiver is further configured to receive image identification information sent by the receiving end, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
- the processor is further configured to generate the coded image according to the image identification information by using data to be transmitted.
- the processor is further configured to use a multiple of an integer of a frame rate of the image sensor as a refresh frame rate;
- the transmitter is further configured to send the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
- the embodiment of the present invention further provides a receiving end, including:
- a receiver configured to receive, by the receiving end, light emitted by the transmitting end, where the light includes a first optical rotation and a second optical rotation;
- the processor is further configured to convert the collected first optical rotation and the second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
- the processor is further configured to convert the light into a preset polarization direction light by using a circular polarizer
- the processor is further configured to collect the preset polarization direction light by using an image sensor to obtain a coded image.
- the light emitted by the transmitting end includes light of three channels of R, G, and B, and the light of the three channels of R, G, and B respectively includes a pre-light.
- the receiver is further configured to separately collect, by using an image sensor, preset polarization direction ray including three channels of R, G, and B, and respectively generate a first coded image, a second coded image, and a third coded image;
- the receiver is further configured to acquire a color corrected image, and respectively correct the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
- the first coded image, the The second encoded image and the third encoded image each include a positioning identifier
- the processor is further configured to determine whether the positioning identifier is first encoded data
- the processor is further configured to perform image inversion processing on the first encoded image, the second encoded image, and the third encoded image, respectively, when it is determined that the positioning identifier is not the first encoded data.
- the receiver is further configured to receive light emitted from the transmitting end by using the photodetector;
- the processor is further configured to acquire blinking state or intensity state information of the light, and convert the blinking state or intensity state information into corresponding received data.
- the receiving end further includes a transmitter
- the receiver is further configured to receive a corrected image sent by the sending end, where the corrected image includes a plurality of sharp sub-images;
- the processor is further configured to identify the sub-image in the corrected image, and determine to identify a sub-image with the lowest definition in the corrected image;
- the processor is further configured to determine a minimum resolution, where the minimum resolution is a resolution corresponding to the lowest-resolution sub-image in the sub-image;
- the transmitter is further configured to send information including the minimum resolution to the sending end.
- the receiving end further includes a transmitter
- the receiver is further configured to receive a signal calibration image sent by the sending end;
- the processor is further configured to generate image identification information for the signal calibration image, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the medium image sensor;
- the transmitter is further configured to send the image identification information to the sending end.
- the coded image includes a positioning identifier
- the processor is further configured to determine whether the positioning identifier is second encoded data
- the processor is further configured to perform image inversion processing on the encoded image when it is determined that the positioning identifier is not the second encoded data.
- the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end.
- the receiving end acquires the first optical rotation and the second optical rotation including the coded image sent by the transmitting end, and the first optical rotation and the second optical rotation
- the optical rotation is converted into polarized light in a certain direction that can be acquired by the image sensor, and the image is collected according to the strength of the polarized light to obtain a coded image, and then the decoded image is decoded to achieve the purpose of data transmission.
- the transmitting end when the communication between the transmitting end and the receiving end is performed, on the one hand, the transmitting end realizes the data transmission by generating the first optical rotation and the second optical rotation including the encoded image, so that the transmitting end can realize the daily lighting function.
- the problem of displaying the coded image by controlling the intensity of the light generated by the liquid crystal pixel in the display screen is avoided, which causes the display screen to have a poor effect when the illumination function is realized; on the other hand, the first one is sent by the transmitting end.
- the optical rotation and the second optical rotation are not directly recognized by the human eye, and the communication between the transmitting end and the receiving end can avoid interference with the normal work and learning of the user; in the third aspect, the receiving end needs to obtain the specific receiving device.
- the data sent by the sending end so that the embodiment of the present invention also has the security of communication to some extent during communication; in the fourth aspect, in the process of communicating between the transmitting end and the receiving end, the embodiment of the present invention can also control
- the light source realizes visible light communication, and the two do not interfere with each other, so that the two communication modes are simultaneously performed, In order to greatly improve the communication efficiency.
- FIG. 1 is a schematic diagram of a transmitting end provided in an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a scenario provided in another embodiment of the present invention.
- FIG. 3 is a schematic diagram of a design manner of a display screen provided in an embodiment of the present invention.
- FIG. 4 is a schematic diagram of another design manner of a display screen provided in an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a receiving end provided in an embodiment of the present invention.
- FIG. 6 is a schematic diagram of a display screen provided in an embodiment of the present invention.
- Figure 7 is a schematic diagram of a display screen provided in still another embodiment of the present invention.
- FIG. 8 is a schematic diagram of a color correction image provided in an embodiment of the present invention.
- FIG. 9 is a schematic diagram of combining three black and white encoded images into a color coded image according to an embodiment of the present invention.
- FIG. 10 is a schematic diagram of a process of disassembling a color coded image provided in an embodiment of the present invention.
- FIG. 11 is a schematic diagram of combining three black and white encoded images into a color coded image according to another embodiment of the present invention.
- FIG. 12 is a schematic diagram of a process of disassembling a color coded image provided in still another embodiment of the present invention.
- FIG. 13 is a schematic diagram of a process of disassembling a color coded image provided in still another embodiment of the present invention.
- FIG. 14 is a schematic diagram of a black and white signal calibration image provided in an embodiment of the present invention.
- 16 is a schematic flow chart of a communication method according to another embodiment of the present invention.
- FIG 17 is a flow chart of step S120 of Figure 16;
- Figure 18 is a flow chart of step S121 of Figure 17;
- Figure 19 is a flow chart of step S122 of Figure 17;
- Figure 20 is another flow chart of step S120 of Figure 16;
- FIG. 21 is a flowchart of step S110 of Figure 16;
- Figure 22 is a flow chart of step S1212 of Figure 18;
- Figure 23 is a flow chart of step S124 of Figure 20;
- FIG. 24 is a flowchart of a communication method provided in another embodiment of the present invention.
- FIG. 25 is still another flowchart of step S120 in Figure 16;
- 26 is a flow chart of a communication method provided in still another embodiment of the present invention.
- Figure 27 is a flowchart of a communication method provided in still another embodiment of the present invention.
- FIG 28 is still another flowchart of step S110 in Figure 16;
- 29 is a flowchart of a communication method provided in still another embodiment of the present invention.
- FIG 31 is a flowchart of step S220 of Figure 30;
- FIG 32 is still another flowchart of step S220 in Figure 30;
- Figure 34 is a flow chart showing a communication method provided in still another embodiment of the present invention.
- 35 is a flow chart of a communication method provided in still another embodiment of the present invention.
- FIG. 38 is a schematic diagram of a transmitting end according to another embodiment of the present invention.
- FIG. 39 is a schematic diagram of a receiving end according to another embodiment of the present invention.
- LEDs are widely used in lighting, signal indication and screen display scenes due to their high performance, small size and long life. LEDs also have good time response. Therefore, the human eye cannot recognize the light emitted by the LED with high-speed light and dark flicker, and the LED can be used as a signal transmitter of Visible Light Communication (VLC).
- VLC Visible Light Communication
- OCC optical camera communication
- FIG. 1 is a schematic diagram of an OCC scenario provided in an embodiment of the present invention.
- the transmitting end 100 includes a light source 110 and a display screen 120.
- the transmitting end 100 further includes a control module and a driving module not shown in FIG. 1.
- the light source 110 in the transmitting end 100 can be used for visible light communication.
- the transmitting end 100 may further include a VLC module for controlling the light source 110 to generate light; wherein the blinking state and the intensity state of the light generated by the light source 110 correspond to data to be transmitted. Since the data generally required to be transmitted is binary data composed of "0" and "1", the VLC control module only needs to control the blinking state or the intensity state of the light generated by the light source 110 to correspond to the data to be transmitted.
- the data can be transmitted and received by acquiring the light emitted by the light source 110, and specifically, the data can be transmitted and received.
- the existing methods in the prior art are not described here.
- the transmitting end 100 can also be used to implement the OCC function.
- the control module converts the acquired data to be transmitted into a coded image.
- the coded image in the embodiment of the present invention is described by taking a two-dimensional code image as an example. In other embodiments, it may also be a Coded images such as dimensional codes.
- the coded image is a digital image consisting of "0" and "1".
- the display screen 120 is located in front of the light source 110 and can receive light from the light source 110.
- the driving module is used to drive the display screen 120 to display the encoded image generated by the control module.
- the control module acquires the version of the two-dimensional code image, and generates a corresponding two-dimensional code image according to the version of the two-dimensional code image, and simultaneously sends the generated two-dimensional code image to the driving module according to a certain refresh frequency, and the driving module Then, the polarization direction or the rotation direction of the output light of each pixel in the display screen 120 is controlled according to the two-dimensional code image.
- the light source 110 in the embodiment of the present invention may be an LED lamp.
- the light generated by the light source 110 is polarized light having various directions.
- the display screen 120 receives the light generated from the light source 110 and converts the light into a combination of the first optical rotation and the second optical rotation according to the encoded image, wherein the rotation directions of the first optical rotation and the second optical rotation different. Since the coded image is data composed of "0" and "1", the data in the coded image is referred to as the first coded data and the second coded data in the embodiment of the present invention. For example, "0" is used as the first encoded data, and "1" is taken as the second encoded data.
- the driving module generates a first optical rotation by controlling pixel points on the display screen 110, a pixel for displaying the first encoded data, and a second optical rotation for the pixel for displaying the second encoded data. Since the human eye can not recognize the first optical rotation and the second optical rotation, the transmitting end 100 can provide normal lighting functions while transmitting data through the VLC and the OCC, respectively, without affecting the normal working and living of the user.
- the transmitting end 100 can be disposed on the ceiling 300 of the room, and the transmitting end 100 can realize the normal illumination of the user, and can also implement OCC or VLC, or simultaneously. OCC and VLC. It should be noted that when the transmitting end 100 performs OCC and VLC at the same time, the OCC and the VLC do not affect each other, and the data can be completely and independently transmitted.
- the receiving end 200 includes a circular polarizing plate 210, an image sensor 220, and a lens 230 disposed between the image sensor 220 and the circular polarizing plate 210.
- the lens 230 is disposed in front of the image sensor 220, and the circular polarizing plate 210 is disposed in front of the lens 230.
- the image sensor 220 collects light passing through the circular polarizing plate 210 and the lens 230.
- the light source 110 can also be disposed on a wall perpendicular to the horizontal plane, etc., so that the user can obtain the transmitting end 100 through the receiving end 200, and can be set as needed.
- FIG. 3 is a structural schematic diagram of a first design manner of the display screen 120.
- the display screen 120 includes a linear polarizing plate 121, a liquid crystal pixel array 122, and a quarter wave plate 123.
- the liquid crystal pixel array 122 is located between the linear polarizer 121 and the 1/4 wave plate 123.
- the angle between the polarization direction of the linear polarizer 121 and the fast axis direction of the quarter wave plate 123 is 45. ° or 135°.
- the angle between the polarization direction of the linear polarizing plate 121 and the fast axis direction of the quarter wave plate 123 is 45° or 135°
- the receiving end 200 receives the optical rotation transmitted by the transmitting end 100.
- the receiving end 200 only needs to face the transmitting end 100, and the receiving angle is not necessarily limited.
- the receiving end 200 needs to be adjusted and transmitted.
- the corresponding receiving angle of the terminal 100 can better receive the optical rotation sent by the transmitting end 100.
- the light generated by the light source 110 includes light rays of respective polarization directions, and the linear polarizing plate 121 polarizes the light from the light source 110 such that the light passing through the linear polarizing plate 121 has only one polarization.
- Direction of light For example, if the linear polarizer 121 is a horizontal linear polarizer, the light passing through the linear polarizer 121 has only horizontally polarized light.
- the linear polarizing plate 121 in the embodiment of the present invention is described by taking a horizontal linear polarizing plate as an example.
- the liquid crystal pixel array 122 receives the light passing through the linear polarizing plate 121, and the light enters the liquid crystal pixel array Column 122, the driving module drives the liquid crystal pixel array 122, converts the light in the liquid crystal pixel for displaying the first encoded data in the encoded image into the first polarization direction light, and uses the liquid crystal for displaying the second encoded data in the encoded image.
- the light in the pixel is converted into light in the second polarization direction.
- the first direction polarized light may be a horizontally polarized light
- the second direction polarized light is a vertically polarized light, in order to distinguish the first direction polarized light from the second direction polarized light.
- the linear polarizer 121 is a horizontal polarizer
- the light reaching the liquid crystal pixel array 122 is a horizontally polarized light
- the horizontally polarized light in the liquid crystal pixel used to display the first encoded data in the encoded image can be converted.
- converting the horizontal polarization direction light in the liquid crystal pixel point of the second encoded data in the encoded image by 90° to the vertical polarization direction light.
- the light reaching the quarter-wave plate 123 passing through the liquid crystal pixel array 122 includes the light of the horizontal polarization direction and the light of the vertical polarization direction.
- the quarter-wave plate 123 converts the horizontally polarized light into a first optical rotation and the vertically polarized light into a second optical rotation.
- the first optical rotation corresponds to the first encoded data in the encoded image
- the second optical rotation corresponds to the second encoded data in the encoded image.
- FIG. 4 is a schematic structural diagram of a second design manner of the display screen 120.
- the linear polarizing plate 121 receives the light emitted from the source light source 110, and the linear polarizing plate 121 polarizes the light so that the light passing through the linear polarizing plate 121 includes only one light of a polarization direction.
- the case where the linear polarizing plate 121 can only pass the horizontal polarizing direction light is a horizontal polarizing plate will be described as an example.
- the quarter-wave plate 123 converts the light of the horizontal polarization direction into the light of one direction.
- the first rotation is taken as an example for description. Since the linear polarizing plate 121 and the quarter wave plate 123 in FIG. 4 constitute the circular polarizing plate 124, the circular polarizing plate 124 converts the light from the source light source 110 into light including only one rotational direction, that is, the first optical rotation. Light.
- the linear polarizing plate 121 receives the light emitted from the light source 110, and the linear polarizing plate 121 polarizes the light so that the light passing through the linear polarizing plate 121 includes only one light of a polarization direction.
- the case where the linear polarizing plate 121 can only pass the horizontal polarizing direction light is a horizontal polarizing plate will be described as an example.
- the 1/4 wave plate 123 converts the light in the horizontal polarization direction into the light in one direction.
- the first light rotation is taken as an example for description. Since the linear polarizing plate 121 and the quarter-wave plate 123 constitute the circular polarizing plate 124 in FIG. 4, the circular polarizing plate 124 converts the light from the light source 110 into light including only one rotational direction, that is, the first optical rotating light.
- the liquid crystal pixel array 122 receives the light including only the first optical rotation, and the light enters the liquid crystal pixel array 122, and the driving module drives the liquid crystal pixel array 122 to convert the light in the liquid crystal pixel for displaying the first encoded data in the encoded image into the first
- An optical rotation converts light in a liquid crystal pixel for displaying the second encoded data in the encoded image into a second optical rotation.
- the rotation directions of the first optical rotation and the second optical rotation are different in the embodiment of the present invention.
- the first optical rotation in the liquid crystal pixel for displaying the first encoded data in the encoded image is not rotated.
- the first optical rotation in the liquid crystal pixel for displaying the second encoded data in the encoded image is converted into the second optical rotation.
- the liquid crystal pixel array 122 shows only four pixel points on the figure, and does not display all the pixel points in the liquid crystal pixel array 122.
- the receiving end 200 includes a circular polarizing plate 210 and an image sensor 220.
- the circular polarizing plate 210 is disposed in front of the image sensor 220, and the image sensor 220 collects light passing through the circular polarizing plate 210 and the lens 230. Realize the receipt of data.
- the circular polarizing plate 210 is composed of a 1/4 wave plate 221 and a linear polarizing plate, and the 1/4 wave plate 221 converts light including the first optical rotation and the second optical rotation transmitted from the transmitting end 100 into a horizontal polarization direction and Light in the direction of vertical polarization.
- the 1/4 wave plate 221 can convert the first optical rotation into the horizontal polarization direction light and convert the second rotation light into the vertical polarization direction light.
- the linear polarizer 222 filters the light including the horizontal polarization direction and the vertical polarization direction such that the light passing through the linear polarizer 222 contains only one direction of polarized light.
- the linear polarizing plate 222 is exemplified as a horizontal linear polarizing plate which can only pass light in the horizontal polarization direction.
- the quarter wave plate 221 and the linear polarizing plate 222 form a circular polarization.
- the receiving 200 when the transmitting end 100 emits light using a circular polarizing plate, the receiving 200 also receives light by using a circular polarizing plate.
- the transmitting end 100 emits light by using an elliptically polarizing plate
- the receiving end 200 also receives the light emitted by the transmitting end 100 by using an elliptically polarizing plate corresponding to the transmitting end 100, and receives an angle of 200 receiving light corresponding to the transmitting end 100.
- the circular polarizing plate is not limited to the receiving angle of the receiving end 200. Therefore, for the convenience of the practical application, the embodiment of the present invention uses a circular polarizing plate as an example for the transmitting end 100 and the receiving end 200 as an example.
- the receiving end 200 converts the received light including the first optical rotation and the second optical rotation into the light having only the horizontal polarization direction through the circular polarizing plate 210. That is, the circular polarizing plate 210 converts the first optical rotation into the first polarization direction light and prevents the second rotation light from passing, so that the image sensor 200 can collect the light having only the horizontal polarization direction. Since the image sensor 220 can detect the brightness of the light, that is, the intensity of the light, the image sensor 220 can generate a coded image, such as a black and white two-dimensional code image, by collecting the light.
- a coded image such as a black and white two-dimensional code image
- the receiving end 200 may be formed by adding a circular polarizing plate 210 to the lens of the terminal having the photographing function.
- a circular polarizing plate 210 is added to the camera lens or the camera of the mobile phone to form the receiving end 200.
- the display screen 120 in the transmitting end 100 may be a square, it may be a rectangle.
- the display screen 120 is rectangular and the coded image to be transmitted is square, a part of the rectangular display screen 120 may be vacant to generate the coded image. Therefore, in this embodiment, the portion of the display 120 may be sent. Other data.
- the length of the rectangular display screen 120 is set to a, and the width is b. If a>n ⁇ b, and the size of the encoded image displayed on the display screen 120. For b ⁇ b, it is displayed Screen 120 can simultaneously generate n coded images of the same size. In addition to being used to generate n equally sized encoded images on display screen 120, the remaining (a-n x b) x b rectangular sizes can be used to generate one or several new encoded images. Where n is a positive integer.
- the display screen 120 when the encoded image is generated by the display screen 120, the display screen 120 can be used to generate a square encoded image, and a rectangular encoded image can be generated as needed.
- the terminal 100 can simultaneously generate a plurality of encoded images by using the display screen 120 in a plurality of rows and columns. Specifically, it can be set according to the resolution of the display screen 120 and the size of the encoded image that needs to be generated.
- the display screen 120 is taken as a rectangle, and a coded image with a resolution of p ⁇ q pixels is generated as an example. This is also the case when the display screen 120 is square. Where p and q are both positive integers.
- the encoded image is transmitted by the display screen 120 in the embodiment of the present invention, since the human eye is invisible to the optical rotation, the optical rotation generated by the display screen 120 not only does not affect the normal working and life of the user, but also provides illumination for the user. The function. By simultaneously generating a plurality of encoded images through the display screen 120, the communication efficiency of the OCC can be greatly improved.
- a plurality of coded images are simultaneously transmitted through the display screen 120 in the above embodiment.
- the embodiment of the present invention provides three black and white encoded images to be transmitted into one color-coded image, so as to be displayed through the display.
- An area of the screen 120 that can only produce one black and white encoded image can produce a color coded image that can be composed of three black and white coded images.
- the display screen 120 of the embodiment of the present invention includes a liquid crystal pixel array 122, and each liquid crystal pixel point in the liquid crystal pixel array 122 includes three channels of R, G, and B, in conjunction with the above embodiments. Among them, each of the three channels R, G, and B can be individually controlled.
- three black and white coded images a first coded image, a second coded image, and a third coded image, which are combined into one color coded image, and the color coded image is displayed on the display screen 120
- the first encoded image is generated by controlling the light in the R channel in the liquid crystal pixel array 122
- the second encoded image is generated by controlling the light in the G channel in the liquid crystal pixel array 122, by controlling the liquid crystal pixel array 122.
- the light in the B channel produces a third encoded image.
- the R channel for controlling the red component in the color coded image is generated to include horizontal polarization and vertical polarization.
- the light is also true for the G channel and the B channel in the liquid crystal pixel array 122.
- FIG. 3 and FIG. 4 are two different implementations of the display screen 120 in the above embodiment, for FIG.
- the R channel in the liquid crystal pixel array 122 is color coded, There is a red component in the image, and the R channel for generating the red component in the color coded image is controlled to produce light including the first and second optical rotations, as is the case for the G and B channels in the liquid crystal pixel array 122.
- the transmitting end 100 transmits a color coded image to the receiving end 200
- the color in the light received by end 200 is not very pure.
- the color correction image is sent to the receiving end 200 in advance by the transmitting end 100, so that the receiving end 200 correctly decodes the acquired color coding according to the color corrected image, and the color corrected image shown in FIG. 8 is also used to determine that The lowest sharpness when the image is recognized.
- the color correction 8 may also be a black-and-white image for the transmitting end 100 to determine the lowest resolution that can be recognized when transmitting the encoded image in black and white. Among them, the different shades in Figure 8 represent the corresponding colors. In the color correction, the color correction can be performed by the existing color correction method, which will not be described here.
- FIG. 9 is a schematic diagram of merging three black and white coded images into a color coded image according to an embodiment of the present invention.
- the code pattern transmitted in parallel through the R, G, and B channels in the display screen 120 is a code of a white matrix black code.
- the coding pattern of the black matrix black code is subjected to image inversion processing, that is, the coding pattern of the white matrix black code to be transmitted is converted into a coded image of the black matrix white code, and the ith frame sent to the R channel is sent.
- the white color of the coding pattern is indicated by red
- the white color of the i+1th frame coding pattern sent to the G channel is indicated by green
- the white of the i+2 frame coding pattern sent to the B channel is represented by blue.
- the black in the middle does not have to change. It can be understood that the order of the coding pattern frames sent to the R, G, and B channels is only an example, and the order may be changed according to actual needs.
- FIG. 10 is a schematic diagram of a color-coded image de-merging process according to an embodiment of the present invention.
- the receiving end 200 performs color separation on the received color-coded pattern according to the received color-corrected image to obtain a three-layer pattern of R, G, and B. .
- the receiving end 200 converts the black in the obtained three-layer image into white, and the other colors are converted into a black pattern, thereby being restored to the encoding pattern of three white-black codes.
- the three black and white encoded images are separately decoded to obtain the original information, thereby achieving data transmission and reception.
- the receiving end 100 receives the color-coded image when the transmitting end 100 transmits the color-coded image to the receiving end.
- End 200 can be color corrected by a location identification in a color coded image.
- the coded image is a two-dimensional code as an example.
- R, G, and B in this embodiment.
- the red two-dimensional code in the three-way two-dimensional code leaves the positioning identifier in the lower left corner, and the positioning identifiers in the upper left and upper right corners are removed
- the green two-dimensional code leaves the positioning identifier in the upper left corner
- the positioning identifiers in the lower left and upper right corners are removed
- the color QR code leaves the positioning mark in the upper right corner, and removes the positioning marks in the lower left and upper left corners.
- the receiving end 200 when the receiving end 200 receives the color two-dimensional code image sent by the transmitting end 100, the color of the three positioning identifiers in the color two-dimensional code is a solid color, that is, the three positioning identifiers are red, blue, and green respectively. Therefore, the receiving end 200 can use the three positioning identifiers in the color two-dimensional code image as the color corrected image, and the receiving end 200 refers to the color calibration information in the three positioning identifiers in the received color two-dimensional code.
- the color in the obtained color two-dimensional code is corrected, and the received coding patterns are decomposed (color separated), thereby obtaining three layers of R, G, and B patterns.
- There are two kinds of processes for unmerge as shown in Fig. 12 and Fig. 13.
- FIG. 12 The color separation of FIG. 12 is the same as the color separation method in the above embodiment, but since the two-dimensional code after the color separation is missing the positioning and positioning mark, it is necessary to convert the black portion of the image into white, and the other colors are converted into black. And fill it up Missing location identifier.
- FIG. 13 firstly turns the locating flag containing the color correction information in the color two-dimensional code into white, and the subsequent processing manner is consistent with the above embodiment, and details are not described herein again.
- the encoded image of the three separate white-black codes is restored by converting the black portion of the resulting three-layer image to white and the other colors to black. Finally, the three black and white two-dimensional code images are decoded to obtain the original information.
- a communication method is provided, which may include the following steps. :
- Step 101 The transmitting end sends a signal calibration image to the receiving end.
- the transmitting end sends a signal calibration image through the liquid crystal pixel array in the display screen.
- the signal calibration image may be the color correction as shown in FIG. 8 in the above embodiment.
- Step 102 The receiving end receives the signal calibration image sent by the transmitting end, and determines the image identification information according to the signal calibration image.
- Step 103 Send image identification information to the transmitting end.
- the coded image is still a two-dimensional code image as an example.
- the receiving end After receiving the signal calibration image sent by the transmitting end, the receiving end determines a two-dimensional code that can be correctly recognized, for example, a version of the two-dimensional code.
- the image identification information may include: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end; in addition, the image identification information may further include other information, such as between the transmitting end and the receiving end, as needed. Distance information, attitude information at the receiving end (such as the orientation of the receiving end), and the like.
- Step 104 The transmitting end generates a coded image according to the image identification information.
- the transmitting end After receiving the image identification information sent by the receiving end, the transmitting end generates the two-dimensional code image according to the version, size and the like of the two-dimensional code in the image identification information, and adopts the frame rate of the image sensor in the receiving end.
- the integer number of times is used as a refresh rate to dynamically transmit the already generated two-dimensional code image through the liquid crystal pixel array.
- Step 105 The transmitting end sends an optical rotation containing the encoded image to the receiving end.
- the encoded image is composed of the first encoded data and the second encoded data
- the transmitting end can control the polarization direction or the rotating direction of the light in the pixel of the liquid crystal pixel array. Therefore, the transmitting end can generate the inclusion through the display screen.
- the optical rotation of the first optical rotation and the second optical rotation, and the optical rotation is transmitted to the receiving end.
- the optical rotation sent by the transmitting end does not affect the normal working and life of the user.
- the transmitting end emits the optical rotation, not only can the communication be realized, but also the normal lighting function can be provided for the user, and no special illumination is needed.
- the sender implements VLC and OCC functions at the same time, the sender can provide normal illumination functions for the user while performing VLC communication and OCC communication.
- the receiving end After the receiving end receives the light containing the optical rotation generated by the transmitting end, if the receiving end correctly decodes the light transmitted by the transmitting end, the receiving end sends a successful receiving information to the transmitting end; otherwise, the receiving end sends the unsuccessfully received information to the transmitting end. .
- Step 106 The receiving end sends the receiving status information to the sending end.
- the transmitting end retransmits the optical rotation including the encoded image to the receiving end until the successful receiving information sent by the receiving end is obtained.
- the transmitting end may pause to transmit the optical rotation including the encoded image to the receiving end.
- the receiving end can recalculate the current two-dimensional code size and version information that can be correctly identified according to the signal calibration image (the version information includes version information and error correction level, etc.), and report the two-dimensional code size to the transmitting end machine. Version Information.
- the transmitting end After receiving the two-dimensional code size and version information reported by the receiving end, the transmitting end encodes the data to be transmitted according to the new size and version information, and continuously monitors the feedback information reported by the receiving end. Therefore, the embodiment can dynamically adjust the coded image to be generated in real time according to the two-dimensional code size and version that the receiving end can recognize.
- the transmitting end determines whether it is necessary to continue to send the optical rotation including the encoded image of the next frame to the receiving end as needed.
- the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end.
- Receiving, by the receiving end, the first optical rotation and the second optical rotation, which are sent by the transmitting end, and converting the first optical rotation and the second optical rotation into polarized light of a certain direction that can be collected by the image sensor, according to the polarized light The image is acquired by the strong and weak, and the encoded image is obtained, and then the decoding of the encoded image is achieved to achieve the purpose of data transmission.
- the transmitting end when the communication between the transmitting end and the receiving end is implemented, on the one hand, the transmitting end performs OCC by generating the first optical rotation and the second optical rotation including the encoded image, so that the transmitting end can implement the daily lighting function.
- the problem of displaying the coded image by controlling the intensity of the light generated by the liquid crystal pixel in the display screen is avoided in the prior art, which causes the display screen to have a poor effect when the illumination function is realized; on the other hand, the first optical rotation is emitted by the transmitting end. And the second optical rotation is not directly recognized by the human eye.
- the receiving end needs to obtain and transmit through a specific receiving device.
- the data sent by the terminal so that the embodiment of the present invention also has the security of communication to some extent during communication; in the fourth aspect, in the process of performing OCC between the transmitting end and the receiving end, the embodiment of the present invention can also control
- the light source realizes VLC, and the two do not interfere with each other, so that the two communication modes are simultaneously performed, and the communication can be greatly improved. Rate.
- a communication method is provided, and the method may include the following steps:
- step S110 the transmitting end acquires the encoded image.
- the encoded image includes first encoded data and second encoded data.
- step S120 the transmitting end generates a first optical rotation and a second optical rotation including the encoded image through the display screen.
- first rotation is generated by the first pixel for displaying the first encoded data
- second rotation is generated by the second pixel for displaying the second encoded data
- the transmitting end needs to send the number of data to be sent, and can convert the data to be transmitted into a coded image, such as a two-dimensional code image.
- a coded image such as a two-dimensional code image.
- an encoder in the prior art can be used to generate a black and white two-dimensional code image from the data to be transmitted. Since the black and white QR code image includes both white and black data, in the digital image, the two-dimensional code image is a matrix composed of 0 and 1, which can be represented by 0 and 1, for example, in the encoded image The data of 0 is converted into the first optical rotation, and the data of 1 in the encoded image is converted into the second optical rotation.
- the first optical rotation may be left-handed light
- the second optical rotation may be right-handed light
- the first optical rotation and the second optical rotation may be rotated in different directions.
- the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end.
- Receiving, by the receiving end, the first optical rotation and the second optical rotation, which are sent by the transmitting end, and converting the first optical rotation and the second optical rotation into polarized light of a certain direction that can be collected by the image sensor, according to the polarized light The image is acquired by the strong and weak, and the encoded image is obtained, and then the decoding of the encoded image is achieved to achieve the purpose of data transmission.
- step S120 may further include:
- step S121 the transmitting end generates the first polarization direction light at the first pixel point through the display screen, and generates the second polarization direction light beam at the second pixel point.
- step S122 the transmitting end converts the first polarization direction light into a first rotation and the second polarization direction light into a second rotation.
- the display screen includes: a linear polarizing plate and a liquid crystal pixel array, the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array; S121 can also include:
- step S1211 the transmitting end polarizes the light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction.
- the polarized light vibrating in the predetermined direction is related to the set angle of the linear polarizer.
- the linear polarizer is horizontally disposed, the light passing through the linear polarizer has only horizontally polarized light.
- step S1212 the transmitting end drives the liquid crystal pixel array, converts the polarized light into the first polarized direction light through the first liquid crystal pixel array, and converts the polarized light into the second polarized side through the second liquid crystal pixel array. To the light.
- the liquid crystal pixel array controls the polarization of the light by the control of the electrostatic field.
- the display screen may include a 1/4 wave plate, and step S122 may specifically be:
- step S1221 the transmitting end passes the first polarization direction light and the second polarization direction light through the 1/4 wave plate, converts the first polarization direction light into the first rotation, and converts the second polarization direction light into the second rotation.
- the angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
- the display The screen includes a circular polarizing plate and a liquid crystal pixel array, and the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array.
- step S120 may further include the following steps:
- step S123 the transmitting end converts the light from the light source into an optical rotation in a predetermined direction through the circular polarizing plate.
- step S124 the transmitting end drives the liquid crystal pixel array, converts the optical rotation in the preset direction into the first optical rotation through the first liquid crystal pixel array, and converts the optical rotation in the preset direction into the second optical rotation through the second liquid crystal pixel array.
- first optical rotation and the second optical rotation have different rotation directions.
- FIG. 4 For the embodiment, reference may be made to the corresponding embodiment of FIG. 4 and FIG. 4, which is different from the embodiment corresponding to FIG. 3, and is another implementation manner of the first optical rotation and the second optical rotation.
- step S110 may further include:
- step S111 the transmitting end acquires the first encoded image, the second encoded image, and the third encoded image.
- the three coded images to be transmitted that is, the first coded image, the second coded image, and the third coded image, are all black and white two-dimensional code images.
- step S112 the transmitting end converts the first encoded image into a red-black encoded image.
- red indicates the first encoded data in the first encoded image
- black indicates the second encoded data in the first encoded image
- step S113 the transmitting end converts the second encoded image into a green-black encoded image.
- green indicates the first encoded data in the second encoded image
- black indicates the second encoded data in the second encoded image
- step S114 the transmitting end converts the third encoded image into a blue-black encoded image.
- blue indicates the first encoded data in the third encoded image
- black indicates the second encoded data in the third encoded image
- the display screen 120 of the embodiment of the present invention includes a liquid crystal pixel array 122, and each liquid crystal pixel point in the liquid crystal pixel array 122 includes three channels of R, G, and B, in conjunction with the above embodiments. Among them, each of the three channels R, G, and B can be individually controlled.
- each liquid crystal pixel in the liquid crystal pixel array of the display screen includes three channels of R, G, and B; as shown in FIG. 22, step S1212 may further include:
- step S12121 the transmitting end converts the polarized light into the first polarized direction ray by the R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, and is used to display the red-black encoded image.
- the R channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
- step S12122 the transmitting end converts the polarized light into the first polarized direction ray by using the G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image, and is used to display the green-black encoded image.
- the G channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
- step S12123 the transmitting end converts the polarized light into the first polarized direction light through the B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, and is used to display the blue-black encoded image.
- the B channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
- the three to-be-coded images respectively include three positioning identifiers, and the three positioning identifiers are a first positioning identifier, a second positioning identifier, and a third positioning identifier, respectively.
- the red-black encoded image contains only the first positioning identifier
- the green-black encoded image contains only the second positioning identifier
- the blue-black encoded image contains only the third positioning identifier
- each liquid crystal pixel in the liquid crystal pixel array of the display screen includes three channels of R, G, and B.
- step S124 may further include:
- step S1241 the transmitting end converts the optical rotation in the preset direction into the first optical rotation through the R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, and is used to display the red-black encoded image.
- the R channel in the liquid crystal pixel array of the second encoded data converts the optical rotation in the preset direction into the second optical rotation.
- step S1242 the transmitting end passes the liquid for displaying the first encoded data in the green-black encoded image.
- a G channel in the pixel array converting the optical rotation in a preset direction into a first optical rotation, and rotating the optical path in the preset direction by the G channel in the liquid crystal pixel array for displaying the second encoded data in the green-black encoded image Convert to the second rotation.
- step S1243 the transmitting end converts the optical rotation in the preset direction into the first optical rotation through the B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, and is used to display the blue-black encoded image.
- the B channel in the liquid crystal pixel array of the second encoded data converts the optical rotation in the preset direction into the second optical rotation.
- the three coded images to be sent may be respectively sent through three channels of R, G, and B in the liquid crystal pixel array, that is, by controlling three channels of R, G, and B respectively.
- the light is transmitted simultaneously with the three encoded images, which can greatly improve the communication efficiency of the OCC.
- the transmitting end may further include a visible light communication VLC module.
- the method may further include the following steps:
- step S130 the VLC module acquires data to be transmitted.
- step S140 the VLC module controls the light generated by the light source, and the blinking state and the intensity state of the light generated by the light source correspond to the data to be transmitted.
- the embodiment of the present invention can also implement VLC while performing OCC. It should be noted that when the transmitting end 100 performs OCC and VLC at the same time, OCC and VLC do not affect each other, and data transmission can be completely independent.
- step S120 may further include:
- step S125 the transmitting end acquires light generated from the light source through the display screen.
- step S126 the transmitting end converts the light received by the first pixel to the first rotation, and converts the light received by the second pixel into the second rotation.
- the light source may be provided as a part of the transmitting end, and may be disposed independently of the transmitting end, and the embodiment of the present invention is not limited thereto.
- the first optical rotation is generated by the first pixel point for displaying the first encoded data
- the second optical rotation is the second pixel of the display screen for displaying the second encoded data. produce.
- the method may further include:
- step S150 the transmitting end acquires the length a and the width b of the display screen.
- step S160 the transmitting end simultaneously displays n sizes b ⁇ b on the display screen. Encode the image.
- n is a positive integer and a and b are positive numbers.
- the embodiment of the present invention can reasonably utilize the size of the display screen to generate the number of encoded images according to the size of the display screen. By using multiple encoded images simultaneously on one display, the utilization efficiency of the display can be improved.
- the method may further include:
- step S170 the transmitting end transmits the corrected image to the receiving end to cause the receiving end to determine the minimum resolution according to the corrected image.
- step S180 the information sent by the receiving end of the transmitting end includes the minimum resolution
- step S190 the transmitting end determines the first pixel point and the second pixel point according to the minimum resolution.
- the camera and the terminal with the camera function can be appropriately set, for example, a circular polarizing plate is set on the lens of the camera, and can be set as the receiving end.
- the transmitting end can obtain the information including the minimum resolution sent by the receiving end, in order to enable the receiving end to correctly identify the transmitted encoded image and improve the communication efficiency. By reasonably generating the encoded image, the encoded image of the corresponding resolution generated by the display screen can be correctly recognized by the receiving end.
- step S110 may further include:
- step S115 the transmitting end transmits a signal calibration image to the receiving end.
- step S116 the transmitting end receives the image identification information transmitted by the receiving end.
- the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end.
- step S117 the transmitting end generates the encoded image according to the image identification information.
- the transmitting end needs to generate the corresponding encoded image according to the receiving end.
- the method may further include:
- step S191 the transmitting end uses the integer value of the frame rate of the image sensor as the refresh frame rate.
- step S192 the transmitting end transmits the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
- the transmitting end After the transmitting end receives the image identification information sent by the receiving end, the transmitting end follows the two-dimensional image identification information.
- the version, size, and the like of the code generate a two-dimensional code image from the data to be transmitted, and dynamically transmit the generated two-dimensional code image through the liquid crystal pixel array with the integer rate of the frame rate of the image sensor in the receiving end as a refresh rate.
- a communication method is provided. As shown in FIG. 30, the method may include the following steps:
- step S210 the receiving end collects light emitted by the transmitting end, and the light includes a first optical rotation and a second optical rotation.
- step S220 the receiving end converts the acquired first optical rotation and second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
- the receiving end Since the light transmitted by the transmitting end includes the encoded image, the receiving end obtains the corresponding encoded image by receiving and converting the light including the first optical rotation and the second optical rotation, thereby implementing OCC.
- the encoded image is decoded by the prior art, and the data transmitted by the transmitting end can be obtained.
- step S220 further Can include:
- step S221 the receiving end converts the light into a predetermined polarization direction light through a circular polarizing plate.
- step S222 the receiving end collects the preset polarization direction light through the image sensor to obtain a coded image.
- the receiving end converts the received light containing the first optical rotation and the second optical rotation to the transmitted light through the circular polarizing plate into Only the light in the horizontal polarization direction. That is, the circular polarizing plate converts the first optical rotation into the first polarization direction light and prevents the second optical rotation from passing, so that the image sensor can collect the light having only the horizontal polarization direction. Since the image sensor can detect the brightness of the light, that is, the intensity of the light, the image sensor can generate a coded image, such as a black and white two-dimensional code image, by collecting the light.
- the light emitted by the transmitting end includes three channels of R, G, and B, and three channels of R, G, and B.
- the light rays respectively contain light of a predetermined polarization direction.
- step S220 may further include:
- step S223 the receiving end separately collects preset polarization direction ray including three channels R, G, and B through the image sensor, and respectively generates a first encoded image, a second encoded image, and a third encoded image.
- step S224 the receiving end acquires the color corrected image, and respectively corrects the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
- the receiving end needs to perform color correction on the obtained encoded image in order to obtain the correct encoded image.
- the correction of the image color can be implemented by the prior art, and details are not described herein again.
- the first encoded image, the second encoded image, and the third encoded image each include a positioning identifier, and the method may further include the following step:
- step S230 the receiving end determines whether the positioning identifier is the first encoded data.
- step S240 when the receiving end determines that the positioning identifier is not the first encoded data, the receiving end performs image inversion processing on the first encoded image, the second encoded image, and the third encoded image, respectively.
- the first coded data and the second coded data in this embodiment may be black and white, respectively.
- the image is reversed, that is, white turns black and black turns white.
- the method may further include:
- step S250 the receiving end receives the light emitted from the transmitting end through the photodetector.
- step S260 the receiving end acquires the blinking state or the intensity state information of the light, and converts the blinking state or the intensity state information into corresponding receiving data.
- the photodetector when the VLC communication is implemented at the same time, the photodetector can be set at the receiving end to receive the data sent by the sending end through the VLC, which can be implemented by using the prior art, and is not described herein.
- the method may further include:
- step S271 the receiving end receives the corrected image transmitted by the transmitting end, and the corrected image includes a plurality of sharpness sub-images.
- step S272 the receiving end recognizes the sub-image in the corrected image, and determines that the sub-image having the lowest definition in the corrected image is recognized.
- step S273 the receiving end determines the minimum resolution, which is the resolution corresponding to the sub-image with the lowest definition in the sub-image.
- step S274 the receiving end transmits information including the minimum resolution to the transmitting end.
- the color correction image shown in FIG. 8 may also be a black-and-white image for the transmitting end 100 to determine the lowest resolution that can be recognized when transmitting the encoded image in black and white.
- the method may further include:
- step S281 the receiving end receives the signal calibration image transmitted by the transmitting end.
- step S282 the receiving end generates image identification information for the signal calibration image.
- the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end.
- step S283 the receiving end transmits image identification information to the transmitting end.
- the signal is calibrated to the transmitting end by the receiving end, so that the transmitting end can send an image that can be correctly recognized by the receiving end.
- the encoded image includes a positioning identifier, as shown in FIG. 37, the method may further include:
- step S291 the receiving end determines whether the positioning identifier is the second encoded data.
- step S292 when the receiving end determines that the positioning identifier is not the second encoded data, the receiving end performs image inversion processing.
- the receiving end 200 when the receiving end 200 receives the color two-dimensional code image sent by the transmitting end 100, the color of the three positioning identifiers in the color two-dimensional code is a solid color, that is, the three positioning identifiers are respectively red, Blue and green, therefore, the receiving end 200 can use three positioning marks in the color two-dimensional code image as the color corrected image, and the receiving end 200 refers to the color in the three positioning marks in the received color two-dimensional code.
- the information corrects the color in the received color two-dimensional code, and decomposes (colors the separated) the encoded pattern, thereby obtaining a three-layer pattern of R, G, and B.
- FIG. 13 firstly turns the locating flag containing the color correction information in the color two-dimensional code into white, and the subsequent processing manner is consistent with the above embodiment, and details are not described herein again.
- the encoded image of the three separate white-black codes is restored by converting the black portion of the resulting three-layer image to white and the other colors to black. Finally, the three black and white two-dimensional code images are decoded to obtain the original information.
- the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes various types of media that can store program codes, such as a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
- a communication device which may include a transmitting end and a receiving end in the following embodiments, where As shown in FIG. 38, an embodiment of the present invention provides a transmitting end, which can perform the foregoing FIG. 16 to FIG.
- the communication method shown in FIG. 29, specifically, the transmitting end may include: a processor 11, a transmitter 12, and a receiver 13, wherein
- the processor 11 is configured to acquire a coded image, where the coded image includes first coded data and second coded data;
- a transmitter 12 configured to generate, by using a display screen, first and second optical rotations including the encoded image
- first optical rotation is generated by the first display point for displaying the first encoded data
- second optical rotation is by the display screen for displaying the second encoded data
- the second pixel is generated.
- the processor 11 is further configured to generate a first polarization direction light at the first pixel point through a display screen, and generate a second polarization direction light beam at the second pixel point;
- the transmitter 12 is further configured to convert the first polarization direction light into the first rotation and convert the second polarization direction light into the second rotation.
- the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
- the processor 11 is further configured to polarize light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction;
- the processor 11 is further configured to drive the liquid crystal pixel array, convert the polarized light into a first polarization direction light through the first liquid crystal pixel array, and use the second liquid crystal pixel array to polarize the light. Converted to light in the second polarization direction.
- the display screen includes a 1/4 wave plate
- the transmitter 12 is further configured to pass the first polarization direction light and the second polarization direction light into the 1/4 wave plate, and convert the first polarization direction light into a first rotation light, Converting the second polarization direction light into a second rotation;
- the angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
- the display screen includes a circular polarizing plate and a liquid crystal pixel array
- the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array
- the transmitter 12 is further configured to convert light from the light source into an optical rotation in a preset direction by using the circular polarizing plate;
- the transmitter 12 is further configured to drive the liquid crystal pixel array, and the optical rotation in the preset direction is converted into a first optical rotation by the first liquid crystal pixel array, and the second liquid crystal pixel array is used to The optical rotation in the preset direction is converted into the second optical rotation;
- first optical rotation and the second optical rotation have different rotation directions.
- the processor 11 is further configured to acquire three to-be-transmitted coded images, where the three to-be-transmitted coded images are black and white two-dimensional code images, and the three to-be-transmitted coded images include a first coded image, a second encoded image and a third encoded image;
- the processor 11 is further configured to convert the first encoded image into a red-black encoded image, wherein the red color represents first encoded data in the first encoded image, and the black represents the first encoded image Encoding the second encoded data in the image;
- the processor 11 is further configured to convert the second encoded image into a green-black encoded image, wherein the green color indicates first encoded data in the second encoded image, and the black indicates the second encoded image Encoding the second encoded data in the image;
- the processor 11 is further configured to convert the third encoded image into a blue-black encoded image, wherein the blue color indicates first encoded data in the third encoded image, and the black indicates the first The second encoded data in the three encoded image.
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- the processor 11 is further configured to convert the polarized light into the first polarized direction light by using an R channel in a liquid crystal pixel array for displaying first encoded data in the red-black encoded image, by using And displaying an R channel in the liquid crystal pixel array of the second encoded data in the red-black encoded image, converting the polarized light into the second polarized direction light;
- the processor 11 is further configured to convert the polarized light into the first polarization direction light by using a G channel in a liquid crystal pixel array for displaying first encoded data in the green-black encoded image, by using And displaying a G channel in the liquid crystal pixel array of the second encoded data in the green-black encoded image, converting the polarized light into the second polarized direction light;
- the processor 11 is further configured to convert the polarized light into the first polarization direction light by using a B channel in a liquid crystal pixel array for displaying first encoded data in the blue-black encoded image, by using And displaying the B channel in the liquid crystal pixel array of the second encoded data in the blue-black coded image, and converting the polarized light into the second polarized direction light.
- each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
- the transmitter 12 is further configured to convert the optical rotation in the preset direction into the first optical rotation by using an R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image. Converting the optical rotation in the preset direction to the second optical rotation by an R channel in the liquid crystal pixel array for displaying the second encoded data in the red-black encoded image;
- the transmitter 12 is further configured to convert the optical rotation in the preset direction into the first optical rotation by using a G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image. Converting the optical rotation in the preset direction to the second optical rotation by a G channel in the liquid crystal pixel array for displaying the second encoded data in the green-black encoded image;
- the transmitter 12 is further configured to convert the optical rotation in the preset direction into the first optical rotation by using a B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image.
- the optical rotation in the predetermined direction is converted into the second optical rotation by a B channel in the liquid crystal pixel array for displaying the second encoded data in the blue-black encoded image.
- the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
- the red-black encoded image includes only the first positioning identifier
- the green-black encoded image includes only the second positioning identifier
- the blue-black encoded image includes only the third positioning identifier
- the present invention includes a visible light communication VLC module, and the sending end further includes:
- the processor 11 is further configured to acquire data to be sent by using the VLC module;
- the processor 11 is further configured to control, by the VLC module, light generated by the light source, where a blinking state and an intensity state of the light generated by the light source correspond to the to-be-sent data.
- the sending end further includes: a receiver 13;
- the receiver 13 is configured to obtain light generated by a light source through the display screen
- the transmitter 12 is further configured to convert the light received by the first pixel into a first optical rotation, and convert the light received by the second pixel into a second optical rotation.
- the receiver 13 is further configured to acquire a length a and a width b of the display screen
- the processor 11 is further configured to simultaneously display n coded images of size b ⁇ b on the display screen, where n is a positive integer, and a and b are positive number.
- the transmitter 12 is further configured to send a corrected image to the receiving end, so that the receiving end determines a minimum resolution according to the corrected image;
- the receiver 13 is further configured to receive information that is sent by the receiving end and includes a minimum resolution.
- the processor 11 is further configured to determine the first pixel point and the second pixel point according to the minimum resolution.
- the transmitter 12 is further configured to send a signal calibration image to the receiving end;
- the receiver 13 is further configured to receive image identification information sent by the receiving end, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
- the processor 11 is further configured to generate the coded image according to the image identification information by using data to be transmitted.
- the processor 11 is further configured to use a multiple of an integer of a frame rate of the image sensor as a refresh frame rate;
- the transmitter 12 is further configured to send the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
- a receiving end is further provided, and the receiving end can execute FIG. 30 in the foregoing embodiment.
- the method of any of the methods of FIG. 37, specifically, the transmitting end may include: a receiver 21, a processor 22, and a transmitter 23, where
- the receiver 21 is configured to receive, by the receiving end, light emitted by the transmitting end, where the light includes a first optical rotation and a second optical rotation;
- the processor 22 is further configured to convert the collected first optical rotation and the second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
- the processor 22 is further configured to convert the light into a preset polarization direction light by using a circular polarizer;
- the processor 22 is further configured to collect the preset polarization direction light by using an image sensor to obtain a coded image.
- the light packet sent by the sending end The light rays of the three channels R, G, and B respectively include light of a predetermined polarization direction.
- the receiver 21 is further configured to separately collect, by using an image sensor, preset polarization direction ray including three channels R, G, and B, and respectively generate a first coded image, a second coded image, and a third coded image;
- the receiver 21 is further configured to acquire a color corrected image, and respectively correct the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
- the first encoded image, the second encoded image, and the third encoded image each include a positioning identifier
- the processor 22 is further configured to determine whether the positioning identifier is first encoded data.
- the processor 22 is further configured to perform image inverse color processing on the first encoded image, the second encoded image, and the third encoded image, respectively, when it is determined that the positioning identifier is not the first encoded data. .
- the receiver 21 is further configured to receive light emitted from the transmitting end by using the photodetector;
- the processor 22 is further configured to acquire blinking state or intensity state information of the light, and convert the blinking state or the intensity state information into corresponding received data.
- the receiving end further includes a transmitter 23;
- the receiver 21 is further configured to receive a corrected image sent by the sending end, where the corrected image includes a plurality of sharp sub-images;
- the processor 22 is further configured to identify the sub-image in the corrected image, and determine to identify a sub-image with the lowest definition in the corrected image;
- the processor 22 is further configured to determine a minimum resolution, where the minimum resolution is a resolution corresponding to the lowest-resolution sub-image in the sub-image;
- the transmitter 23 is further configured to send information including the minimum resolution to the sending end.
- the receiving end further includes a transmitter 23;
- the receiver 21 is further configured to receive a signal calibration image sent by the sending end;
- the processor 22 is further configured to generate image identification information for the signal calibration image, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the medium image sensor;
- the transmitter 23 is further configured to send the image identification information to the sending end.
- the coded image includes a positioning identifier
- the processor 22 is further configured to determine whether the positioning identifier is second encoded data.
- the processor 22 is further configured to perform image inversion processing on the encoded image when it is determined that the positioning identifier is not the second encoded data.
- the present invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations.
- the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
- program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
- the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
- program modules can be located in both local and remote computer storage media including storage devices.
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
Description
本发明实施例涉及通信领域,尤其涉及一种通信方法及装置。The embodiments of the present invention relate to the field of communications, and in particular, to a communication method and apparatus.
随着手机、平板电脑等移动终端的大量普及,用户可以方便的通过移动终端上的摄像头获取二维码(2-dimensional bar code)中包含的信息。其中,二维码是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形,从而记录数据符号信息;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电扫描设备自动识读以实现信息自动处理。With the popularization of mobile terminals such as mobile phones and tablet computers, users can conveniently obtain the information contained in the 2-dimensional bar code through the camera on the mobile terminal. Among them, the two-dimensional code is a black and white pattern that is distributed in a plane (two-dimensional direction) by a certain geometric pattern to record data symbol information; and skillfully utilizes the logic foundation of the computer to form the basic logic of the computer. The concept of "0" and "1" bit streams uses a number of geometric shapes corresponding to binary to represent literal numerical information, and is automatically read by an image input device or an optical scanning device to implement automatic information processing.
在目前几十种二维条码中,常用的码制有:PDF417二维条码,Datamatrix二维条码,Maxicode二维条码,QR Code,Code 49,Code 16K,Code one,等,除了这些常见的二维条码之外,还有Vericode条码、CP条码、Codablock F条码、田字码、Ultracode条码,Aztec条码。目前大多二维码被印刷在产品等实体表面,部分二维码加载到视频或页面上,通过终端的显示屏显示出来。然而,现有技术在通过终端的显示屏显示二维码图像时,通常通过显示屏上液晶像素点产生光线的强弱,达到用户可以直接看到显示屏上显示的二维码图像的效果,但在将显示屏同时作为照明工具时,显示屏的照明效果会大大降低。Among the current dozens of 2D barcodes, commonly used code systems are: PDF417 2D barcode, Datamatrix 2D barcode, Maxicode 2D barcode, QR Code, Code 49, Code 16K, Code one, etc., in addition to these common two In addition to the bar code, there are Vericode bar code, CP bar code, Codablock F bar code, field code, Ultracode bar code, Aztec bar code. At present, most of the two-dimensional code is printed on the surface of the product and other parts, and some of the two-dimensional code is loaded onto the video or page and displayed through the display screen of the terminal. However, in the prior art, when the two-dimensional code image is displayed through the display screen of the terminal, the intensity of the light is usually generated by the liquid crystal pixel on the display screen, so that the user can directly see the effect of the two-dimensional code image displayed on the display screen. However, when the display screen is used as a lighting tool at the same time, the illumination effect of the display screen is greatly reduced.
发明内容Summary of the invention
为了解决现有技术中的相关问题,本发明实施例提供了一种通信方法及装置。In order to solve the related problems in the prior art, an embodiment of the present invention provides a communication method and apparatus.
第一方面,本发明实施例提供了一种通信方法,包括:In a first aspect, an embodiment of the present invention provides a communication method, including:
发送端获取编码图像,所述编码图像包括第一编码数据和第二编码数据;The transmitting end acquires a coded image, where the coded image includes first coded data and second coded data;
所述发送端通过显示屏产生包含所述编码图像的第一旋光和第二旋光;The transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen;
其中,所述第一旋光是所述显示屏通过用于显示所述第一编码数据的第一像素点产生的,所述第二旋光是所述显示屏通过用于显示所述第二编码数据的第二像素点产生。Wherein the first optical rotation is generated by the first display point for displaying the first encoded data, and the second optical rotation is by the display screen for displaying the second encoded data The second pixel is generated.
在本发明实施例中提供的一种可能的设计方式中,所述发送端通过显示屏产生包含所述编码图像的第一旋光和第二旋光,包括:In a possible design manner provided by the embodiment of the present invention, the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
所述发送端通过显示屏在所述第一像素点产生第一偏振方向光线,且在所述第二像素点产生第二偏振方向光线; The transmitting end generates a first polarization direction light at the first pixel point through a display screen, and generates a second polarization direction light beam at the second pixel point;
所述发送端将所述第一偏振方向光线转换为所述第一旋光,且将所述第二偏振方向光线转换为所述第二旋光。The transmitting end converts the first polarization direction light into the first rotation and converts the second polarization direction light into the second rotation.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括:线性偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述发送端通过显示屏在所述第一像素点产生第一偏振方向光线,且在所述第二像素点产生第二偏振方向光线,包括:The transmitting end generates a first polarization direction ray at the first pixel point through the display screen, and generates a second polarization direction ray at the second pixel point, including:
所述发送端通过所述线性偏振片将来自光源的光线进行起偏,得到预设方向上振动的偏振光;The transmitting end polarizes the light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction;
所述发送端驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述偏振光转换为第一偏振方向光线,通过所述第二液晶像素阵列将所述偏振光转换为第二偏振方向光线。The transmitting end drives the liquid crystal pixel array, converts the polarized light into a first polarization direction light through the first liquid crystal pixel array, and converts the polarized light into a second polarization through the second liquid crystal pixel array Directional light.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包含1/4波片;所述发送端将所述第一偏振方向光线转换为所述第一旋光,且将所述第二偏振方向光线转换为所述第二旋光,包括:In a possible design manner provided in the embodiment of the present invention, the display screen includes a 1/4 wave plate; the transmitting end converts the first polarization direction light into the first rotation light, and Converting the second polarization direction light into the second rotation, comprising:
所述发送端将所述第一偏振方向光线和所述第二偏振方向光线通过所述1/4波片,将所述第一偏振方向光线转换为第一旋光,将所述第二偏振方向光线转换为第二旋光;Transmitting, by the transmitting end, the first polarization direction light and the second polarization direction light through the 1/4 wave plate, converting the first polarization direction light into a first rotation, and the second polarization direction Converting light into a second rotation;
其中,线性偏振片的偏振方向与所述1/4波片快轴方向的夹角为45度或者135度。The angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括圆偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes a circular polarizing plate and a liquid crystal pixel array, and the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述发送端通过显示屏产生包含所述编码图像的第一旋光和第二旋光,包括:The transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
所述发送端通过所述圆偏振片将来自光源的光线转换为预设方向上的旋光;The transmitting end converts light from the light source into an optical rotation in a preset direction by the circular polarizing plate;
所述发送端驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述预设方向上的旋光转换为第一旋光,通过所述第二液晶像素阵列将所述预设方向上的旋光转换为第二旋光;The transmitting end drives the liquid crystal pixel array, and the optical rotation in the preset direction is converted into a first optical rotation by the first liquid crystal pixel array, and the second liquid crystal pixel array is used in the preset direction. The optical rotation is converted into a second optical rotation;
其中,所述第一旋光与所述第二旋光的旋转方向不同。Wherein, the first optical rotation and the second optical rotation have different rotation directions.
在本发明实施例中提供的一种可能的设计方式中,所述发送端获取编码图像,包括: In a possible design manner provided by the embodiment of the present invention, the sending end acquires a coded image, including:
所述发送端获取三幅待发送编码图像,其中,所述三幅待发送编码图像均为黑白二维码图像,所述三幅待发送编码图像包括第一编码图像、第二编码图像和第三编码图像;The transmitting end acquires three to-be-transmitted encoded images, wherein the three to-be-transmitted encoded images are black and white two-dimensional code images, and the three to-be-transmitted encoded images include a first encoded image, a second encoded image, and a Three-coded image;
所述发送端将所述第一编码图像转换为红黑色编码图像,其中,所述红色表示所述第一编码图像中的第一编码数据、所述黑色表示所述第一编码图像中的第二编码数据;Transmitting, by the transmitting end, the first encoded image into a red-black encoded image, wherein the red color represents first encoded data in the first encoded image, and the black represents a first in the first encoded image Two coded data;
所述发送端将所述第二编码图像转换为绿黑色编码图像,其中,所述绿色表示所述第二编码图像中的第一编码数据、所述黑色表示所述第二编码图像中的第二编码数据;Transmitting, by the transmitting end, the second encoded image into a green-black encoded image, wherein the green color indicates first encoded data in the second encoded image, and the black indicates a second in the second encoded image Two coded data;
所述发送端将所述第三编码图像转换为蓝黑色编码图像,其中,所述蓝色表示所述第三编码图像中的第一编码数据、所述黑色表示所述第三编码图像中的第二编码数据。Transmitting, by the transmitting end, the third encoded image into a blue-black encoded image, wherein the blue represents first encoded data in the third encoded image, and the black represents in the third encoded image Second encoded data.
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道;In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述通过所述第一液晶像素阵列将所述偏振光转换为第一偏振方向光线,通过所述第二液晶像素阵列将所述偏振光转换为第二偏振方向光线,包括:Converting the polarized light into a first polarization direction ray by the first liquid crystal pixel array, and converting the polarized light into a second polarization direction ray by the second liquid crystal pixel array, including:
所述发送端通过用于显示所述红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第二偏振方向光线;Transmitting, by the transmitting end, the R-channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, converting the polarized light into the first polarized direction light, by displaying the red An R channel in the liquid crystal pixel array of the second encoded data in the black coded image, converting the polarized light into the second polarized direction light;
所述发送端通过用于显示所述绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第二偏振方向光线;Transmitting, by the transmitting end, the polarized light into the first polarized direction light by using a G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image, by using the green for displaying a G channel in the liquid crystal pixel array of the second encoded data in the black coded image, converting the polarized light into the second polarized direction light;
所述发送端通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第二偏振方向光线。Transmitting, by the transmitting end, the polarized light into the first polarized direction light by using a B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, by using the blue for displaying The B channel in the liquid crystal pixel array of the second encoded data in the black coded image converts the polarized light into the second polarized direction ray.
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道;In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述通过所述第一液晶像素阵列将所述预设方向上的旋光转换为第一旋光,通过所述第二液晶像素阵列将所述预设方向上的旋光转换为第二旋光,包括:Converting the optical rotation in the preset direction into the first optical rotation by the first liquid crystal pixel array, and converting the optical rotation in the preset direction into the second optical rotation through the second liquid crystal pixel array, including:
所述发送端通过用于显示所述红黑色编码图像中第一编码数据的液晶像素 阵列中的R通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述预设方向上的旋光转换为所述第二旋光;The transmitting end passes through a liquid crystal pixel for displaying the first encoded data in the red-black encoded image An R channel in the array, the optical rotation in the predetermined direction is converted into the first optical rotation, and the R channel in the liquid crystal pixel array for displaying the second encoded data in the red-black encoded image is The optical rotation in the preset direction is converted into the second optical rotation;
所述发送端通过用于显示所述绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第二旋光;The transmitting end converts the optical rotation in the preset direction into the first optical rotation by using a G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image, and is used for displaying a G channel in the liquid crystal pixel array of the second encoded data in the green black coded image, converting the optical rotation in the preset direction into the second optical rotation;
所述发送端通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第二旋光。Transmitting, by the transmitting end, the optical rotation in the preset direction into the first optical rotation by using a B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, by using the display for The B channel in the liquid crystal pixel array of the second encoded data in the blue-black coded image converts the optical rotation in the predetermined direction into the second optical rotation.
在本发明实施例中提供的一种可能的设计方式中,所述三幅待发送编码图像均分别包含三个定位标识,所述三个定位标识分别是第一定位标识、第二定位标识和第三定位标识;In a possible design manner provided by the embodiment of the present invention, the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
所述红黑色编码图像仅包含所述第一定位标识,所述绿黑色编码图像仅包含所述第二定位标识,和所述蓝黑色编码图像仅包含所述第三定位标识。The red-black encoded image includes only the first positioning identifier, the green-black encoded image includes only the second positioning identifier, and the blue-black encoded image includes only the third positioning identifier.
在本发明实施例中提供的一种可能的设计方式中,所述发送端包括可见光通信VLC模块,所述方法还包括:In a possible design manner provided by the embodiment of the present invention, the sending end includes a visible light communication VLC module, and the method further includes:
所述VLC模块获取待发送数据;The VLC module acquires data to be sent;
所述VLC模块控制所述光源产生的光线,所述光源产生的光线的闪烁状态和强度状态与所述待发送数据相对应。The VLC module controls light generated by the light source, and a blinking state and an intensity state of the light generated by the light source correspond to the data to be transmitted.
在本发明实施例中提供的一种可能的设计方式中,所述发送端通过显示屏产生包含所述编码图像的第一旋光和第二旋光,包括:In a possible design manner provided by the embodiment of the present invention, the transmitting end generates a first optical rotation and a second optical rotation including the coded image through a display screen, including:
所述发送端通过所述显示屏获取来自光源产生的光线;The transmitting end acquires light generated from a light source through the display screen;
所述发送端将所述第一像素点接收到的光线转换为第一旋光,将所述第二像素点接收到的所述光线转换为第二旋光。The transmitting end converts the light received by the first pixel into a first optical rotation, and converts the light received by the second pixel into a second optical rotation.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述发送端获取所述显示屏的长度a和宽度b;The transmitting end acquires the length a and the width b of the display screen;
当a≥n·b时,所述发送端在所述显示屏上同时显示n个尺寸为b×b的所述编码图像,其中,n为正整数,a、b为正数。When a≥n·b, the transmitting end simultaneously displays n coded images of size b×b on the display screen, where n is a positive integer and a and b are positive numbers.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述发送端向接收端发送校正图像,以使所述接收端根据所述校正图像确定 最小分辨率;Sending, by the transmitting end, a corrected image to the receiving end, so that the receiving end determines according to the corrected image Minimum resolution
所述发送端接收所述接收端发送的包含最小分辨率的信息;The transmitting end receives information that is sent by the receiving end and includes a minimum resolution;
所述发送端根据所述最小分辨率确定所述第一像素点和所述第二像素点。The transmitting end determines the first pixel point and the second pixel point according to the minimum resolution.
在本发明实施例中提供的一种可能的设计方式中,所述发送端获取编码图像包括:In a possible design manner provided by the embodiment of the present invention, the obtaining, by the sending end, the encoded image includes:
所述发送端向接收端发送信号校准图像;The transmitting end sends a signal calibration image to the receiving end;
所述发送端接收所述接收端发送的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和所述接收端中图像传感器的帧率;The transmitting end receives the image identification information sent by the receiving end, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
所述发送端将待发送数据按照所述图像识别信息生成所述编码图像。The transmitting end generates the encoded image according to the image identification information by using data to be transmitted.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述发送端以所述图像传感器的帧率的整数分之一倍作为刷新帧率;The transmitting end uses the integral of the frame rate of the image sensor as a refresh frame rate;
所述发送端按照所述刷新帧率向接收端发送所述第一旋光和所述第二旋光。The transmitting end sends the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
第二方面,本发明实施例还提供了一种通信方法,包括:In a second aspect, an embodiment of the present invention further provides a communication method, including:
接收端采集发送端发出的光线,所述光线包括第一旋光和第二旋光;The receiving end collects light emitted by the transmitting end, and the light includes a first optical rotation and a second optical rotation;
所述接收端将采集到的所述第一旋光和所述第二旋光转换为编码图像,所述编码图像包括第一编码数据和第二编码数据。The receiving end converts the acquired first optical rotation and the second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
在本发明实施例中提供的一种可能的设计方式中,所述接收端将采集到的所述第一旋光和所述第二旋光转换为编码图像,包括:In a possible design manner provided by the embodiment of the present invention, the receiving end converts the collected first optical rotation and the second optical rotation into a coded image, including:
所述接收端通过圆偏振片将对所述光线转换为预设偏振方向光线;The receiving end converts the light into a preset polarization direction light through a circular polarizing plate;
所述接收端通过图像传感器采集所述预设偏振方向光线,得到编码图像。The receiving end collects the preset polarization direction light through an image sensor to obtain a coded image.
在本发明实施例中提供的一种可能的设计方式中,所述发送端发出的光线包括R、G、B三个通道的光线,所述R、G、B三个通道的光线分别包含预设偏振方向光线。In a possible design manner provided by the embodiment of the present invention, the light emitted by the transmitting end includes light of three channels of R, G, and B, and the light of the three channels of R, G, and B respectively includes a pre-light. Set the direction of light in the direction of polarization.
在本发明实施例中提供的一种可能的设计方式中,所述接收端通过图像传感器采集所述预设偏振方向光线,得到编码图像包括:In a possible design manner provided by the embodiment of the present invention, the receiving end acquires the preset polarization direction light by using an image sensor, and obtaining the encoded image includes:
所述接收端通过图像传感器分别采集到包括R、G、B三个通道的预设偏振方向光线,分别生成第一编码图像、第二编码图像和第三编码图像;The receiving end separately collects preset polarization direction light rays including three channels R, G, and B through an image sensor, and respectively generates a first encoded image, a second encoded image, and a third encoded image;
所述接收端获取颜色校正图像,并根据所述颜色校正图像分别校正所述第一编码图像、第二编码图像和第三编码图像。The receiving end acquires a color corrected image, and respectively corrects the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
在本发明实施例中提供的一种可能的设计方式中,所述第一编码图像、所述 第二编码图像和所述第三编码图像均包括定位标识,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the first coded image, the The second encoded image and the third encoded image each include a positioning identifier, and the method further includes:
所述接收端判断所述定位标识是否为第一编码数据;The receiving end determines whether the positioning identifier is first encoded data;
所述接收端在判断到所述定位标识不是第一编码数据时,分别将所述第一编码图像、所述第二编码图像和所述第三编码图像做图像反色处理。When the receiving end determines that the positioning identifier is not the first encoded data, the receiving end performs image inverse color processing on the first encoded image, the second encoded image, and the third encoded image, respectively.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述接收端通过光电探测器接收来自发送端发出的光线;Receiving light from the transmitting end through the photodetector;
所述接收端获取所述光线的闪烁状态或强度状态信息,并将所述闪烁状态或强度状态信息转换为相应的接收数据。The receiving end acquires blinking state or intensity state information of the light, and converts the blinking state or the intensity state information into corresponding receiving data.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述接收端接收所述发送端发送的校正图像,所述校正图像包括多个清晰度的子图像;Receiving, by the receiving end, a corrected image sent by the transmitting end, where the corrected image includes a plurality of sharp sub-images;
所述接收端识别所述校正图像中的所述子图像,并确定识别到所述校正图像中清晰度最低的子图像;The receiving end identifies the sub-image in the corrected image, and determines that the sub-image with the lowest definition in the corrected image is recognized;
所述接收端确定最小分辨率,所述最小分辨率为所述子图像中清晰度最低的子图像对应的分辨率;The receiving end determines a minimum resolution, where the minimum resolution is a resolution corresponding to the lowest-resolution sub-image in the sub-image;
所述接收端向所述发送端发送包含所述最小分辨率的信息。The receiving end sends information including the minimum resolution to the transmitting end.
在本发明实施例中提供的一种可能的设计方式中,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the method further includes:
所述接收端接收所述发送端发送的信号校准图像;Receiving, by the receiving end, a signal calibration image sent by the transmitting end;
所述接收端生成对所述信号校准图像的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和所述接收端中图像传感器的帧率;The receiving end generates image identification information for the signal calibration image, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
所述接收端向所述发送端发送所述图像识别信息。The receiving end sends the image identification information to the transmitting end.
在本发明实施例中提供的一种可能的设计方式中,所述编码图像包括定位标识,所述方法还包括:In a possible design manner provided in the embodiment of the present invention, the coded image includes a location identifier, and the method further includes:
所述接收端判断所述定位标识是否为第二编码数据;The receiving end determines whether the positioning identifier is second encoded data;
所述接收端在判断到所述定位标识不是第二编码数据时,将所述编码图像做图像反色处理。When the receiving end determines that the positioning identifier is not the second encoded data, the receiving end performs image inversion processing on the encoded image.
第三方面,本发明实施例提供了一种发送端,包括:In a third aspect, an embodiment of the present invention provides a sending end, including:
处理器,用于获取编码图像,所述编码图像包括第一编码数据和第二编码数据;a processor, configured to acquire a coded image, where the coded image includes first coded data and second coded data;
发送器,用于通过显示屏产生包含所述编码图像的第一旋光和第二旋光; a transmitter for generating a first optical rotation and a second optical rotation including the coded image through a display screen;
其中,所述第一旋光是所述显示屏通过用于显示所述第一编码数据的第一像素点产生的,所述第二旋光是所述显示屏通过用于显示所述第二编码数据的第二像素点产生。Wherein the first optical rotation is generated by the first display point for displaying the first encoded data, and the second optical rotation is by the display screen for displaying the second encoded data The second pixel is generated.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器,还用于通过显示屏在所述第一像素点产生第一偏振方向光线,且在所述第二像素点产生第二偏振方向光线;The processor is further configured to generate a first polarization direction light at the first pixel point through a display screen, and generate a second polarization direction light beam at the second pixel point;
所述发送器,还用于将所述第一偏振方向光线转换为所述第一旋光,且将所述第二偏振方向光线转换为所述第二旋光。The transmitter is further configured to convert the first polarization direction light into the first rotation and convert the second polarization direction light into the second rotation.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括:线性偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述处理器,还用于通过所述线性偏振片将来自光源的光线进行起偏,得到预设方向上振动的偏振光;The processor is further configured to polarize light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction;
所述处理器,还用于驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述偏振光转换为第一偏振方向光线,通过所述第二液晶像素阵列将所述偏振光转换为第二偏振方向光线。The processor is further configured to drive the liquid crystal pixel array, convert the polarized light into a first polarization direction light through the first liquid crystal pixel array, and convert the polarized light through the second liquid crystal pixel array Light rays in the second polarization direction.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包含1/4波片;In a possible design manner provided in the embodiment of the present invention, the display screen includes a 1/4 wave plate;
所述发送器,还用于将所述第一偏振方向光线和所述第二偏振方向光线通过所述1/4波片,将所述第一偏振方向光线转换为第一旋光,将所述第二偏振方向光线转换为第二旋光;The transmitter is further configured to pass the first polarization direction light and the second polarization direction light into the 1/4 wave plate, and convert the first polarization direction light into a first rotation, The second polarization direction light is converted into the second rotation light;
其中,线性偏振片的偏振方向与所述1/4波片快轴方向的夹角为45度或者135度。The angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括圆偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes a circular polarizing plate and a liquid crystal pixel array, and the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述发送器,还用于通过所述圆偏振片将来自光源的光线转换为预设方向上的旋光;The transmitter is further configured to convert light from the light source into an optical rotation in a preset direction by using the circular polarizing plate;
所述发送器,还用于驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述预设方向上的旋光转换为第一旋光,通过所述第二液晶像素阵列将所述预设方向上的旋光转换为第二旋光;The transmitter is further configured to drive the liquid crystal pixel array, convert the optical rotation in the preset direction into a first optical rotation through the first liquid crystal pixel array, and use the second liquid crystal pixel array to Setting the optical rotation in the direction to be the second optical rotation;
其中,所述第一旋光与所述第二旋光的旋转方向不同。Wherein, the first optical rotation and the second optical rotation have different rotation directions.
在本发明实施例中提供的一种可能的设计方式中, In a possible design manner provided in the embodiment of the present invention,
所述处理器,还用于获取三幅待发送编码图像,其中,所述三幅待发送编码图像均为黑白二维码图像,所述三幅待发送编码图像包括第一编码图像、第二编码图像和第三编码图像;The processor is further configured to acquire three to-be-transmitted encoded images, where the three to-be-transmitted encoded images are black and white two-dimensional code images, and the three to-be-transmitted encoded images include a first encoded image and a second image. a coded image and a third coded image;
所述处理器,还用于将所述第一编码图像转换为红黑色编码图像,其中,所述红色表示所述第一编码图像中的第一编码数据、所述黑色表示所述第一编码图像中的第二编码数据;The processor is further configured to convert the first encoded image into a red-black encoded image, wherein the red color represents first encoded data in the first encoded image, and the black represents the first encoded image Second encoded data in the image;
所述处理器,还用于将所述第二编码图像转换为绿黑色编码图像,其中,所述绿色表示所述第二编码图像中的第一编码数据、所述黑色表示所述第二编码图像中的第二编码数据;The processor is further configured to convert the second encoded image into a green-black encoded image, wherein the green color indicates first encoded data in the second encoded image, and the black indicates the second encoded image Second encoded data in the image;
所述处理器,还用于将所述第三编码图像转换为蓝黑色编码图像,其中,所述蓝色表示所述第三编码图像中的第一编码数据、所述黑色表示所述第三编码图像中的第二编码数据。The processor is further configured to convert the third encoded image into a blue-black encoded image, wherein the blue represents first encoded data in the third encoded image, and the black represents the third Encoding the second encoded data in the image.
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道;In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述处理器,还用于通过用于显示所述红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第二偏振方向光线;The processor is further configured to convert the polarized light into the first polarized direction light by using an R channel in a liquid crystal pixel array for displaying first encoded data in the red-black encoded image, by using Displaying an R channel in the liquid crystal pixel array of the second encoded data in the red-black encoded image, converting the polarized light into the second polarized direction light;
所述处理器,还用于通过用于显示所述绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第二偏振方向光线;The processor is further configured to convert the polarized light into the first polarization direction light by using a G channel in a liquid crystal pixel array for displaying first encoded data in the green-black encoded image, by using Displaying a G channel in the liquid crystal pixel array of the second encoded data in the green-black encoded image, converting the polarized light into the second polarized direction light;
所述处理器,还用于通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第二偏振方向光线。The processor is further configured to convert the polarized light into the first polarization direction light by using a B channel in a liquid crystal pixel array for displaying first encoded data in the blue-black encoded image, by using Displaying a B channel in the liquid crystal pixel array of the second encoded data in the blue-black coded image, converting the polarized light into the second polarized direction light.
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道;In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述发送器,还用于通过用于显示所述红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述预设方向上的旋光转换为所述第二旋光;The transmitter is further configured to convert the optical rotation in the preset direction into the first optical rotation by using an R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, An R channel in the liquid crystal pixel array for displaying the second encoded data in the red-black coded image, converting the optical rotation in the preset direction into the second optical rotation;
所述发送器,还用于通过用于显示所述绿黑色编码图像中第一编码数据的液 晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第二旋光;The transmitter is further configured to pass a liquid for displaying the first encoded data in the green-black encoded image a G channel in the pixel array, converting the optical rotation in the predetermined direction into the first optical rotation, by using a G channel in the liquid crystal pixel array for displaying the second encoded data in the green-black encoded image, The optical rotation in the preset direction is converted into the second optical rotation;
所述发送器,还用于通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第二旋光。The transmitter is further configured to convert the optical rotation in the preset direction into the first optical rotation by using a B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, a B channel in the liquid crystal pixel array for displaying the second encoded data in the blue-black coded image, converting the optical rotation in the preset direction into the second optical rotation.
在本发明实施例中提供的一种可能的设计方式中,所述三幅待发送编码图像均分别包含三个定位标识,所述三个定位标识分别是第一定位标识、第二定位标识和第三定位标识;In a possible design manner provided by the embodiment of the present invention, the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
所述红黑色编码图像仅包含所述第一定位标识,所述绿黑色编码图像仅包含所述第二定位标识,和所述蓝黑色编码图像仅包含所述第三定位标识。The red-black encoded image includes only the first positioning identifier, the green-black encoded image includes only the second positioning identifier, and the blue-black encoded image includes only the third positioning identifier.
在本发明实施例中提供的一种可能的设计方式中,包括可见光通信VLC模块,所述发送端还包括:In a possible design manner, the present invention includes a visible light communication VLC module, and the sending end further includes:
所述处理器,还用于通过所述VLC模块获取待发送数据;The processor is further configured to acquire data to be sent by using the VLC module;
所述处理器,还用于通过所述VLC模块控制所述光源产生的光线,所述光源产生的光线的闪烁状态和强度状态与所述待发送数据相对应。The processor is further configured to control, by the VLC module, light generated by the light source, where a blinking state and an intensity state of the light generated by the light source correspond to the data to be transmitted.
在本发明实施例中提供的一种可能的设计方式中,所述发送端还包括:接收器;In a possible design manner provided in the embodiment of the present invention, the sending end further includes: a receiver;
所述接收器,用于通过所述显示屏获取来自光源产生的光线;The receiver is configured to obtain light generated by a light source through the display screen;
所述发送器,还用于将所述第一像素点接收到的光线转换为第一旋光,将所述第二像素点接收到的所述光线转换为第二旋光。The transmitter is further configured to convert the light received by the first pixel into a first optical rotation, and convert the light received by the second pixel into a second optical rotation.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
接收器,还用于获取所述显示屏的长度a和宽度b;a receiver, configured to acquire a length a and a width b of the display screen;
当a≥n·b时,所述处理器,还用于在所述显示屏上同时显示n个尺寸为b×b的所述编码图像,其中,n为正整数,a、b为正数。When a≥n·b, the processor is further configured to simultaneously display n coded images of size b×b on the display screen, where n is a positive integer, and a and b are positive numbers. .
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述发送器,还用于向接收端发送校正图像,以使所述接收端根据所述校正图像确定最小分辨率;The transmitter is further configured to send a corrected image to the receiving end, so that the receiving end determines a minimum resolution according to the corrected image;
所述接收器,还用于接收所述接收端发送的包含最小分辨率的信息;The receiver is further configured to receive information that is sent by the receiving end and includes a minimum resolution;
所述处理器,还用于根据所述最小分辨率确定所述第一像素点和所述第二像 素点。The processor is further configured to determine the first pixel point and the second image according to the minimum resolution Prime point.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述发送器,还用于向接收端发送信号校准图像;The transmitter is further configured to send a signal calibration image to the receiving end;
所述接收器,还用于接收所述接收端发送的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和所述接收端中图像传感器的帧率;The receiver is further configured to receive image identification information sent by the receiving end, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end;
所述处理器,还用于将待发送数据按照所述图像识别信息生成所述编码图像。The processor is further configured to generate the coded image according to the image identification information by using data to be transmitted.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器,还用于以所述图像传感器的帧率的整数分之一倍作为刷新帧率;The processor is further configured to use a multiple of an integer of a frame rate of the image sensor as a refresh frame rate;
所述发送器,还用于按照所述刷新帧率向接收端发送所述第一旋光和所述第二旋光。The transmitter is further configured to send the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
第四方面,本发明实施例还提供了一种接收端,包括:In a fourth aspect, the embodiment of the present invention further provides a receiving end, including:
接收器,用于接收端采集发送端发出的光线,所述光线包括第一旋光和第二旋光;a receiver, configured to receive, by the receiving end, light emitted by the transmitting end, where the light includes a first optical rotation and a second optical rotation;
所述处理器,还用于将采集到的所述第一旋光和所述第二旋光转换为编码图像,所述编码图像包括第一编码数据和第二编码数据。The processor is further configured to convert the collected first optical rotation and the second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器,还用于通过圆偏振片将对所述光线转换为预设偏振方向光线;The processor is further configured to convert the light into a preset polarization direction light by using a circular polarizer;
所述处理器,还用于通过图像传感器采集所述预设偏振方向光线,得到编码图像。The processor is further configured to collect the preset polarization direction light by using an image sensor to obtain a coded image.
在本发明实施例中提供的一种可能的设计方式中,所述发送端发出的光线包括R、G、B三个通道的光线,所述R、G、B三个通道的光线分别包含预设偏振方向光线。In a possible design manner provided by the embodiment of the present invention, the light emitted by the transmitting end includes light of three channels of R, G, and B, and the light of the three channels of R, G, and B respectively includes a pre-light. Set the direction of light in the direction of polarization.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述接收器,还用于通过图像传感器分别采集到包括R、G、B三个通道的预设偏振方向光线,分别生成第一编码图像、第二编码图像和第三编码图像;The receiver is further configured to separately collect, by using an image sensor, preset polarization direction ray including three channels of R, G, and B, and respectively generate a first coded image, a second coded image, and a third coded image;
所述接收器,还用于获取颜色校正图像,并根据所述颜色校正图像分别校正所述第一编码图像、第二编码图像和第三编码图像。The receiver is further configured to acquire a color corrected image, and respectively correct the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
在本发明实施例中提供的一种可能的设计方式中,所述第一编码图像、所述 第二编码图像和所述第三编码图像均包括定位标识;In a possible design manner provided in the embodiment of the present invention, the first coded image, the The second encoded image and the third encoded image each include a positioning identifier;
所述处理器,还用于判断所述定位标识是否为第一编码数据;The processor is further configured to determine whether the positioning identifier is first encoded data;
所述处理器,还用于在判断到所述定位标识不是第一编码数据时,分别将所述第一编码图像、所述第二编码图像和所述第三编码图像做图像反色处理。The processor is further configured to perform image inversion processing on the first encoded image, the second encoded image, and the third encoded image, respectively, when it is determined that the positioning identifier is not the first encoded data.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述接收器,还用于通过光电探测器接收来自发送端发出的光线;The receiver is further configured to receive light emitted from the transmitting end by using the photodetector;
所述处理器,还用于获取所述光线的闪烁状态或强度状态信息,并将所述闪烁状态或强度状态信息转换为相应的接收数据。The processor is further configured to acquire blinking state or intensity state information of the light, and convert the blinking state or intensity state information into corresponding received data.
在本发明实施例中提供的一种可能的设计方式中,所述接收端还包括发送器;In a possible design manner provided in the embodiment of the present invention, the receiving end further includes a transmitter;
所述接收器,还用于接收所述发送端发送的校正图像,所述校正图像包括多个清晰度的子图像;The receiver is further configured to receive a corrected image sent by the sending end, where the corrected image includes a plurality of sharp sub-images;
所述处理器,还用于识别所述校正图像中的所述子图像,并确定识别到所述校正图像中清晰度最低的子图像;The processor is further configured to identify the sub-image in the corrected image, and determine to identify a sub-image with the lowest definition in the corrected image;
所述处理器,还用于确定最小分辨率,所述最小分辨率为所述子图像中清晰度最低的子图像对应的分辨率;The processor is further configured to determine a minimum resolution, where the minimum resolution is a resolution corresponding to the lowest-resolution sub-image in the sub-image;
所述发送器,还用于向所述发送端发送包含所述最小分辨率的信息。The transmitter is further configured to send information including the minimum resolution to the sending end.
在本发明实施例中提供的一种可能的设计方式中,所述接收端还包括发送器;In a possible design manner provided in the embodiment of the present invention, the receiving end further includes a transmitter;
所述接收器,还用于接收所述发送端发送的信号校准图像;The receiver is further configured to receive a signal calibration image sent by the sending end;
所述处理器,还用于生成对所述信号校准图像的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和中图像传感器的帧率;The processor is further configured to generate image identification information for the signal calibration image, where the image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the medium image sensor;
所述发送器,还用于向所述发送端发送所述图像识别信息。The transmitter is further configured to send the image identification information to the sending end.
在本发明实施例中提供的一种可能的设计方式中,所述编码图像包括定位标识;In a possible design manner provided in the embodiment of the present invention, the coded image includes a positioning identifier;
所述处理器,还用于判断所述定位标识是否为第二编码数据;The processor is further configured to determine whether the positioning identifier is second encoded data;
所述处理器,还用于在判断到所述定位标识不是第二编码数据时,将所述编码图像做图像反色处理。The processor is further configured to perform image inversion processing on the encoded image when it is determined that the positioning identifier is not the second encoded data.
本发明实施例提供的通信方法及装置,发送端通过将待发送的数据转换为编码图像,并将包含该编码图像的第一旋光和第二旋光发送给接收端。接收端通过获取发送端发送的包含编码图像的第一旋光和第二旋光,并将该第一旋光和第二 旋光转换为图像传感器可以采集到的某一个方向的偏振光,根据该偏振光的强弱实现图像的采集,得到编码图像,进而通过对编码图像的解码,达到数据传输的目的。In the communication method and device provided by the embodiment of the present invention, the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end. The receiving end acquires the first optical rotation and the second optical rotation including the coded image sent by the transmitting end, and the first optical rotation and the second optical rotation The optical rotation is converted into polarized light in a certain direction that can be acquired by the image sensor, and the image is collected according to the strength of the polarized light to obtain a coded image, and then the decoded image is decoded to achieve the purpose of data transmission.
另外,本发明实施例中发送端与接收端之间进行通信时,一方面发送端通过产生包含编码图像的第一旋光和第二旋光来实现数据的传输,使得发送端可以实现日常的照明功能,避免了现有技术当中通过控制显示屏中液晶像素点产生光线的强弱来显示编码图像,造成显示屏在实现照明功能时效果不好的问题;另一方面,由于发送端发出的第一旋光和第二旋光不会被人眼直接识别到,在发送端与接收端进行通信时,可以避免干扰用户正常的工作和学习;第三方面,由于接收端需要通过特定的接收装置才能获取到发送端发送的数据,这样本发明实施例在通信时在一定程度上还具备通信的安全性;第四方面,本发明实施例中在发送端与接收端进行通信的过程中,还可以通过控制光源实现可见光通信,并且二者不会相互干扰,这样两种通信方式的同时进行,可以大大提高通信效率。In addition, in the embodiment of the present invention, when the communication between the transmitting end and the receiving end is performed, on the one hand, the transmitting end realizes the data transmission by generating the first optical rotation and the second optical rotation including the encoded image, so that the transmitting end can realize the daily lighting function. In the prior art, the problem of displaying the coded image by controlling the intensity of the light generated by the liquid crystal pixel in the display screen is avoided, which causes the display screen to have a poor effect when the illumination function is realized; on the other hand, the first one is sent by the transmitting end. The optical rotation and the second optical rotation are not directly recognized by the human eye, and the communication between the transmitting end and the receiving end can avoid interference with the normal work and learning of the user; in the third aspect, the receiving end needs to obtain the specific receiving device. The data sent by the sending end, so that the embodiment of the present invention also has the security of communication to some extent during communication; in the fourth aspect, in the process of communicating between the transmitting end and the receiving end, the embodiment of the present invention can also control The light source realizes visible light communication, and the two do not interfere with each other, so that the two communication modes are simultaneously performed, In order to greatly improve the communication efficiency.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是本发明实施例中提供的一种发送端的示意图;1 is a schematic diagram of a transmitting end provided in an embodiment of the present invention;
图2是本发明又一实施例中提供的一种场景示意图;2 is a schematic diagram of a scenario provided in another embodiment of the present invention;
图3是本发明实施例中提供的一种显示屏的设计方式示意图;3 is a schematic diagram of a design manner of a display screen provided in an embodiment of the present invention;
图4是本发明实施例中提供的另一种显示屏的设计方式示意图;4 is a schematic diagram of another design manner of a display screen provided in an embodiment of the present invention;
图5是本发明实施例中提供的接收端的示意图;FIG. 5 is a schematic diagram of a receiving end provided in an embodiment of the present invention; FIG.
图6是本发明实施例中提供的显示屏的示意图;6 is a schematic diagram of a display screen provided in an embodiment of the present invention;
图7是本发明又一实施例中提供的显示屏的示意图;Figure 7 is a schematic diagram of a display screen provided in still another embodiment of the present invention;
图8是本发明实施例中提供的一种颜色校正图像示意图;FIG. 8 is a schematic diagram of a color correction image provided in an embodiment of the present invention; FIG.
图9是本发明实施例中提供的将三幅黑白编码图像合并为彩色编码图像的示意图;9 is a schematic diagram of combining three black and white encoded images into a color coded image according to an embodiment of the present invention;
图10是本发明实施例中提供的将彩色编码图像解合并过程的示意图;FIG. 10 is a schematic diagram of a process of disassembling a color coded image provided in an embodiment of the present invention; FIG.
图11是本发明又一实施例中提供的将三幅黑白编码图像合并为彩色编码图像的示意图;11 is a schematic diagram of combining three black and white encoded images into a color coded image according to another embodiment of the present invention;
图12是本发明又一实施例中提供的将彩色编码图像解合并过程的示意图;12 is a schematic diagram of a process of disassembling a color coded image provided in still another embodiment of the present invention;
图13是本发明又一实施例中提供的将彩色编码图像解合并过程的示意图; FIG. 13 is a schematic diagram of a process of disassembling a color coded image provided in still another embodiment of the present invention; FIG.
图14是本发明实施例中提供的黑白的信号校准图像示意图;14 is a schematic diagram of a black and white signal calibration image provided in an embodiment of the present invention;
图15是本发明实施例中提供的一种通信方法流程示意图;15 is a schematic flowchart of a communication method provided in an embodiment of the present invention;
图16是本发明又一实施例中提供的一种通信方法流程示意图;16 is a schematic flow chart of a communication method according to another embodiment of the present invention;
图17是图16中步骤S120的流程图;Figure 17 is a flow chart of step S120 of Figure 16;
图18是图17中步骤S121的流程图;Figure 18 is a flow chart of step S121 of Figure 17;
图19是图17中步骤S122的流程图;Figure 19 is a flow chart of step S122 of Figure 17;
图20是图16中步骤S120的另一流程图;Figure 20 is another flow chart of step S120 of Figure 16;
图21是图16中步骤S110的流程图;Figure 21 is a flowchart of step S110 of Figure 16;
图22是图18中步骤S1212的流程图;Figure 22 is a flow chart of step S1212 of Figure 18;
图23是图20中步骤S124的流程图;Figure 23 is a flow chart of step S124 of Figure 20;
图24是又一本发明实施例中提供的一种通信方法的流程图;FIG. 24 is a flowchart of a communication method provided in another embodiment of the present invention; FIG.
图25是图16中步骤S120的又一流程图;Figure 25 is still another flowchart of step S120 in Figure 16;
图26是本发明又一实施例中提供的一种通信方法的流程图;26 is a flow chart of a communication method provided in still another embodiment of the present invention;
图27是本发明又一实施例中提供的一种通信方法的流程图;Figure 27 is a flowchart of a communication method provided in still another embodiment of the present invention;
图28是图16中步骤S110的又一流程图;Figure 28 is still another flowchart of step S110 in Figure 16;
图29是本发明又一实施例中提供的一种通信方法的流程图;29 is a flowchart of a communication method provided in still another embodiment of the present invention;
图30是本发明又一实施例中提供的一种通信方法的流程图;30 is a flow chart of a communication method provided in still another embodiment of the present invention;
图31是图30中步骤S220的流程图;Figure 31 is a flowchart of step S220 of Figure 30;
图32是图30中步骤S220的又一流程图;Figure 32 is still another flowchart of step S220 in Figure 30;
图33是本发明又一实施例中提供的一种通信方法的流程图;33 is a flowchart of a communication method provided in still another embodiment of the present invention;
图34是本发明又一实施例中提供的一种通信方法的流程图;Figure 34 is a flow chart showing a communication method provided in still another embodiment of the present invention;
图35是本发明又一实施例中提供的一种通信方法的流程图;35 is a flow chart of a communication method provided in still another embodiment of the present invention;
图36是本发明又一实施例中提供的一种通信方法的流程图;36 is a flow chart of a communication method provided in still another embodiment of the present invention;
图37是本发明又一实施例中提供的一种通信方法的流程图;37 is a flow chart of a communication method provided in still another embodiment of the present invention;
图38是本发明又一实施例中提供的一种发送端的示意图;FIG. 38 is a schematic diagram of a transmitting end according to another embodiment of the present invention; FIG.
图39是本发明又一实施例中提供的一种接收端的示意图。FIG. 39 is a schematic diagram of a receiving end according to another embodiment of the present invention.
下面结合附图,对本发明的实施例进行描述。 Embodiments of the present invention will be described below with reference to the accompanying drawings.
由于发光半导体(Light-Emitting Diode,LED)具有性能高、体积小和使用寿命长等特点,LED被广泛应用于照明、信号指示和屏幕显示灯场景中,加上LED还具有时间响应好的特点,使得人眼无法识别LED发出的具有高速明暗闪烁的光线,可以将LED作为可见光通信技术(Visible Light Communication,VLC)的信号发射器。LEDs are widely used in lighting, signal indication and screen display scenes due to their high performance, small size and long life. LEDs also have good time response. Therefore, the human eye cannot recognize the light emitted by the LED with high-speed light and dark flicker, and the LED can be used as a signal transmitter of Visible Light Communication (VLC).
随着电子显示屏和摄像头模块在各种终端设备上的广泛应用,使得相机通信(Optical Camera Communications,OCC)技术具有很好的应用前景。然而,现有技术当中的OCC技术还不是很成熟,无法在实际通信当中有效的应用。因此,本发明实施例提供了一种相机通信方法及装置,用于满足实际照明和通信的需要。With the wide application of electronic display screens and camera modules on various terminal devices, the optical camera communication (OCC) technology has a good application prospect. However, the OCC technology in the prior art is not very mature and cannot be effectively applied in actual communication. Therefore, embodiments of the present invention provide a camera communication method and apparatus for meeting actual lighting and communication needs.
图1为本发明实施例中提供的OCC场景示意图。如图1所示,发送端100包括:光源110和显示屏120。另外,发送端100还包括图1中未示出的控制模块和驱动模块。FIG. 1 is a schematic diagram of an OCC scenario provided in an embodiment of the present invention. As shown in FIG. 1, the transmitting
在发送端100中的光源110可以用于可见光通信。在光源110用于VLC时,发送端100还可以包括VLC模块,VLC模块用于控制光源110产生光线;其中,光源110产生的光线的闪烁状态和强度状态与需要发送的数据相对应。由于一般需要发送的数据是由“0”和“1”组成的二进制数据,因此,VLC控制模块只需控制光源110产生的光线的闪烁状态或强度状态与需要发送的数据相对应即可实现数据的发送,例如,将光线中强度小于阈值的光线作为数据“0”,将光线中强度大于阈值的光线作为数据“1”,即可通过获取光源110发出的光线实现数据的收发,具体可以采用现有技术当中已有的方式,这里不再赘述。The
由于光源110产生的光线的闪烁频率远远大于人眼可识别的最高频率,因此,除了可以通过VLC技术实现通信之外,还可以提供正常的照明功能。Since the frequency of the light generated by the
另外,发送端100还可以用于实现OCC功能。In addition, the transmitting
具体的,控制模块将获取到的待发送数据转换为编码图像,为了便于说明,本发明实施例中的编码图像,以二维码图像为例进行说明,在其他实施例中,还可以是一维码等编码图像等。该编码图像是数字图像,由“0”和“1”组成。如图1所示,显示屏120位于光源110的前方,可以接收到来自光源110发出的光线。Specifically, the control module converts the acquired data to be transmitted into a coded image. For convenience of description, the coded image in the embodiment of the present invention is described by taking a two-dimensional code image as an example. In other embodiments, it may also be a Coded images such as dimensional codes. The coded image is a digital image consisting of "0" and "1". As shown in FIG. 1, the
驱动模块用于驱动显示屏120显示控制模块产生的编码图像。The driving module is used to drive the
控制模块获取二维码图像的版本,并根据二维码图像的版本将待发送数据生成相应的二维码图像,同时把生成的二维码图像按照一定的刷新频率发送给驱动模块,驱动模块则依据该二维码图像控制显示屏120中每个像素的输出光偏振方向或旋转方向。The control module acquires the version of the two-dimensional code image, and generates a corresponding two-dimensional code image according to the version of the two-dimensional code image, and simultaneously sends the generated two-dimensional code image to the driving module according to a certain refresh frequency, and the driving module Then, the polarization direction or the rotation direction of the output light of each pixel in the
其中,本发明实施例中的光源110,可以是LED灯。光源110产生的光线是具有各个方向的偏振光线。显示屏120接收来自光源110产生的光线,并将该光线按照编码图像转换为第一旋光和第二旋光的组合,其中,第一旋光和第二旋光的旋转方向
不同。由于编码图像是由“0”和“1”组成的数据,本发明实施例中将编码图像中的数据称为第一编码数据和第二编码数据。例如,将“0”作为第一编码数据,将“1”作为第二编码数据。The
驱动模块通过控制显示屏110上的像素点,将用于显示第一编码数据的像素点产生第一旋光,将用于显示第二编码数据的像素点产生第二旋光。由于人眼识别不出第一旋光和第二旋光,使得发送端100在分别通过VLC和OCC发送数据的同时,还可以提供正常的照明功能,并且不会影响用户的正常工作和生活。The driving module generates a first optical rotation by controlling pixel points on the
在本发明提供的一个实施例中,如图2所示,发送端100可以设置在室内的天花板300上,发送端100在为用户提供正常照明的同时,还可以实现OCC或VLC,或者同时实现OCC和VLC。需要说明的是,发送端100在同时进行OCC和VLC时,OCC与VLC互不影响,可以完全独立进行数据的传输。另外,接收端200包括圆偏振片210、图像传感器220和镜头230,镜头230设置在图像传感器220和圆偏振片210之间。其中,镜头230设置在图像传感器220前方,圆偏振片210设置在镜头230前方,图像传感器220采集通过圆偏振片210和镜头230的光线,具体可以参见下述实施例中的详细阐述。在本发明提供的其他实施例中,光源110还可以设置在垂直于水平面的墙壁上等等,这样可以更方便用户通过接收端200获取到发送端100,具体可以根据需要进行设置。In an embodiment provided by the present invention, as shown in FIG. 2, the transmitting
为了详细阐述发送端100如何实现VLC,结合上述实施例,在本发明提供的又一实施例中,如图3所示,图3为显示屏120的第一种设计方式的结构示意图。In order to explain in detail how the VLC is implemented by the transmitting
如图3所示,显示屏120包括线性偏振片121、液晶像素阵列122和1/4波片123。其中,液晶像素阵列122位于线性偏振片121与1/4波片123之间,本发明实施例中线性偏振片121的偏振方向与1/4波片123快轴方向之间的夹角为45°或135°。需要说明的是,在本发明实施例中线性偏振片121的偏振方向与1/4波片123快轴方向之间的夹角为45°或135°,接收端200接收发送端100发送的旋光时,接收端200只需正对发送端100即可,接收角度不必限定。As shown in FIG. 3, the
在本发明其他实施例中,如果本发明实施例中线性偏振片121的偏振方向与1/4波片123快轴方向之间的夹角不是45°或135°,接收端200需要调整与发送端100相应的接收角度才能更好接收发送端100发送的旋光。In other embodiments of the present invention, if the angle between the polarization direction of the linear
结合图1和图2,如图3所示,光源110产生的光线包括各个偏振方向的光线,线性偏振片121将来自光源110的光线进行起偏,使得通过线性偏振片121的光线只有一个偏振方向的光线。例如,如果线性偏振片121为水平线性偏振片,那么通过线性偏振片121的光线只有水平偏振光。为了便于说明,本发明实施例中的线性偏振片121以水平线性偏振片为例进行说明。1 and 2, as shown in FIG. 3, the light generated by the
液晶像素阵列122接收通过线性偏振片121之后的光线,该光线进入液晶像素阵
列122,驱动模块驱动液晶像素阵列122,将用于显示编码图像中第一编码数据的液晶像素点中的光线转换为第一偏振方向光线,将用于显示编码图像中第二编码数据的液晶像素点中的光线转换为第二偏振方向光线。其中,为了区分第一方向偏振光线和第二方向偏振光线,本发明实施例中第一方向偏振光线可以是水平偏振光线,第二方向偏振光线为垂直方向偏振光线。如果线性偏振片121为水平偏振片,那么达到液晶像素阵列122的光线均为水平偏振方向光线,这时用于显示编码图像中第一编码数据的液晶像素点中的水平偏振方向光线可以不用转换,将用于显示编码图像中第二编码数据的液晶像素点中的水平偏振方向光线旋转90°的方式转换为垂直偏振方向光线。The liquid
因此,通过液晶像素阵列122的达到1/4波片123的光线包括水平偏振方向光线和垂直偏振方向光线。1/4波片123将水平偏振方向光线转换为第一旋光,将垂直偏振光转换为第二旋光。第一旋光与编码图像中的第一编码数据相对应,第二旋光与编码图像中的第二编码数据相对应。Therefore, the light reaching the quarter-
在本发明提供的又一实施例中,如图4所示,图4为显示屏120的第二种设计方式的结构示意图。In another embodiment provided by the present invention, as shown in FIG. 4, FIG. 4 is a schematic structural diagram of a second design manner of the
如图4所示,线性偏振片121接收来自源光源110发出的光线,线性偏振片121对该光线起偏,使得通过线性偏振片121的光线只包括一个偏振方向的光线。该实施例中以线性偏振片121只能通过水平偏振方向光线的是水平偏振片为例进行说明。四分之一波片123将水平偏振方向的光线转换为一个方向的旋光,该实施例中以第一旋光为例进行说明。由于图4中线性偏振片121和四分之一波片123构成圆偏振片124,因此,圆偏振片124将来自源光源110的光线转换为只包括一个旋转方向的光线,即第一旋光的光线。As shown in FIG. 4, the linear
如图4所示,线性偏振片121接收来自光源110发出的光线,线性偏振片121将该光线起偏,使得通过线性偏振片121的光线只包括一个偏振方向的光线。该实施例中以线性偏振片121只能通过水平偏振方向光线的是水平偏振片为例进行说明。1/4波片123将水平偏振方向的光线转换为一个方向的旋光,该实施例中以第一旋光为例进行说明。由于图4中线性偏振片121和1/4波片123构成圆偏振片124,因此,圆偏振片124将来自光源110的光线转换为只包括一个旋转方向的光线,即第一旋光的光线。As shown in FIG. 4, the linear
液晶像素阵列122接收只包括第一旋光的光线,该光线进入液晶像素阵列122,驱动模块驱动液晶像素阵列122,将用于显示编码图像中第一编码数据的液晶像素点中的光线转换为第一旋光,将用于显示编码图像中第二编码数据的液晶像素点中的光线转换为第二旋光。其中,为了区分第一旋光和第二旋光,本发明实施例中第一旋光和第二旋光的旋转方向不同。如果从圆偏振片142到达液晶像素阵列122的光线为第一旋光,这时用于显示编码图像中第一编码数据的液晶像素点中的第一旋光不用转
换,将用于显示编码图像中第二编码数据的液晶像素点中的第一旋光转换为第二旋光。The liquid
需要说明的是,为了便于理解和说明,上述实施例中的图3和图4,液晶像素阵列122在图上只显示了四个像素点,并没有显示液晶像素阵列122中的所有像素点。It should be noted that, for ease of understanding and explanation, in FIG. 3 and FIG. 4 in the above embodiment, the liquid
结合图2,如图5所示,接收端200包括圆偏振片210和图像传感器220,圆偏振片210设置在图像传感器220的前方,图像传感器220采集通过圆偏振片210和镜头230的光线,实现数据的接收。Referring to FIG. 2, as shown in FIG. 5, the receiving
具体的,圆偏振片210由1/4波片221和线性偏振片构成,1/4波片221将来自发送端100发送的包括第一旋光和第二旋光的光线转换为包括水平偏振方向和垂直偏振方向的光线。其中,1/4波片221可以将第一旋光转换为水平偏振方向光线,将第二旋光转换为垂直偏振方向光线。线性偏振片222对包含水平偏振方向和垂直偏振方向的光线进行过滤,使得通过线性偏振片222的光线只包含一个方向的偏振光线。该实施例中以线性偏振片222为只能通过水平偏振方向光线的水平线性偏振片为例进行说明。Specifically, the circular
需要说明的是,在1/4波片221快轴方向与线性偏振片222的偏振方向之间的夹角为45°或135°时,1/4波片221与线性偏振片222构成圆偏振片210,在发送端100采用圆偏振片发射光线时,接收到200也采用圆偏振片接收光线。在发送端100采用椭圆偏振片发射光线时,接收端200也采用与发送端100相对应的椭圆偏振片接收发送端100发射的光线,并且接收到200接收光线的角度与发送端100相对应。由于圆偏振片对接收端200的接收角度没有限定,因此,为了实际应用的方便,本发明实施例以发送端100和接收端200均采用圆偏振片为例进行说明。It should be noted that when the angle between the fast axis direction of the
如图5所示,接收端200通过圆偏振片210将接收到发送的包含第一旋光和第二旋光的光线转换为只有水平偏振方向的光线。即,圆偏振片210将第一旋光转换为第一偏振方向光线,并阻止第二旋光通过,使得图像传感器200可以采集到只有水平偏振方向的光线。由于图像传感器220可以检测光线的明暗,即光线的强度,使得图像传感器220通过对光线的采集,可以生成编码图像,如黑白色的二维码图像。As shown in FIG. 5, the receiving
示例性的,可以在具备拍摄功能的终端的镜头上加上圆偏振片210构成接收端200。例如,在相机镜头上或者手机的摄像头上加上圆偏振片210,形成接收端200。Illustratively, the receiving
结合上述各实施例,在本发明提供的又一实施例中,如图6所示,由于发送端100中的显示屏120可能是正方形,也有可能是长方形。在显示屏120为长方形,而需要发送的编码图像为正方形时,长方形的显示屏120上会空缺出一部分无法产生该编码图像,因此,该实施例中可以通过显示屏120的这部分空缺来发送其他数据。In combination with the above embodiments, in another embodiment provided by the present invention, as shown in FIG. 6, since the
在本发明提供的一个实施例中,如图6所示,长方形的显示屏120的长度设为a,宽度为b,如果a>n·b,且在显示屏120上显示的编码图像的尺寸为b×b,则显示
屏120可以同时产生n个同样大小的编码图像。显示屏120上除了用于产生n个同样大小的编码图像,剩余的(a-n×b)×b的矩形尺寸可以用于产生一个或几个新的编码图像。其中,n为正整数。In an embodiment provided by the present invention, as shown in FIG. 6, the length of the
需要说明的是,本发明实施例中,通过显示屏120产生编码图像时,显示屏120除了可以用于产生正方形的编码图像,根据需要,还可以产生长方形的编码图像。It should be noted that, in the embodiment of the present invention, when the encoded image is generated by the
另外,在本发明提供的又一实施例中,如图7所述,终端100还可以通过显示屏120采用多行多列的形式同时产生多个编码图像。具体可以根据显示屏120的分辨率及需要产生编码图像的尺寸来设定。图7中以显示屏120为长方形为例,以产生分辨率为p×q个像素的编码图像为例进行说明,在显示屏120为正方形时亦是如此。其中,p和q均为正整数。由于本发明实施例中通过显示屏120产生旋光来发送编码图像,由于人眼对旋光不可见,因此通过显示屏120产生的旋光不但不会影响用户正常的工作和生活,还可以为用户提供照明的功能。通过显示屏120同时产生多个编码图像,可以大大提升OCC的通信效率。In addition, in another embodiment provided by the present invention, as shown in FIG. 7, the terminal 100 can simultaneously generate a plurality of encoded images by using the
为了提高OCC的通信效率,上述实施例中通过显示屏120同时发送多个编码图像。在本发明提供的又一实施例中,结合图3,为了进一步提高OCC的通信效率,本发明提供的该实施例中将三个待发送的黑白编码图像合为一个彩色编码图像,这样通过显示屏120中本来只能产生一个黑白编码图像的区域可以产生一个彩色编码图像,该彩色编码图像可以由三个黑白编码图像组成。In order to improve the communication efficiency of the OCC, a plurality of coded images are simultaneously transmitted through the
结合图1至3及其对应的上述各实施例,本发明实施例中显示屏120包括液晶像素阵列122,液晶像素阵列122中的每个液晶像素点包括R、G、B三个通道。其中,R、G、B三个通道中的每个通道都可以被单独控制。示例性的,三个黑白编码图像:第一编码图像、第二编码图像和第三编码图像,这三个黑白编码图像在合为一个彩色编码图像,并将该彩色编码图像在显示屏120上显示时,通过控制液晶像素阵列122中的R通道中的光线来产生第一编码图像,通过控制液晶像素阵列122中的G通道中的光线来产生第二编码图像,通过控制液晶像素阵列122中的B通道中的光线来产生第三编码图像。即,在需要发送的彩色编码图像中,对于液晶像素阵列122中的R通道,如果彩色编码图像中有红色成分,控制用于产生彩色编码图像中红色成分的R通道产生包括水平偏振和垂直偏振的光线,对于液晶像素阵列122中的G通道和B通道,亦是如此。另外,由于上述实施例中图3和图4为显示屏120的两种不同的实现方式,对于图4,在需要发送的彩色编码图像中,对于液晶像素阵列122中的R通道,如果彩色编码图像中有红色成分,控制用于产生彩色编码图像中红色成分的R通道产生包括第一旋光和第二旋光的光线,对于液晶像素阵列122中的G通道和B通道,亦是如此。The
结合上述各个实施例,在本发明提供的又一实施例中,如图8所示,在发送端100向接收端200发送彩色编码图像时,很多时候会受到收发器件的限制,使得接收
端200接收到的光线中的色彩不是很纯正。该实施例通过发送端100预先向接收端200发送颜色校正图像,使得接收端200根据该颜色校正图像对获取到的彩色编码正确的解码,图8所示的颜色校正图像,还用于确定可以识别出图像时的最低清晰度。另外,图8所示的颜色校正图像,还可以是黑白的图像,用于发送端100在发送黑白的编码图像时,确定可以识别的最低清晰度。其中,图8中的不同阴影代表相应的颜色。在进行颜色校正时,可以采用现有的颜色校正方式进行颜色校正,这里不再赘述。In conjunction with the above embodiments, in another embodiment provided by the present invention, as shown in FIG. 8, when the transmitting
另外,图9为本发明实施例中将三幅黑白编码图像合并为彩色编码图像的示意图,若通过显示屏120中R、G、B三路通道并行发送的编码图案是白底黑码的编码图案时,则将该白底黑码的编码图案进行图像反色处理,即将待发送的白底黑码的编码图案转换为黑底白码的编码图像,并将送入R路的第i帧编码图案的白色用红色表示,将送入G路的第i+1帧编码图案的白色用绿色表示,将送入B路的第i+2帧编码图案的白色用蓝色表示,这些编码图像中的黑色不用改变。可以理解,上述送入R、G、B三路的编码图案帧的顺序仅为举例,可以根据实际需要改变顺序。In addition, FIG. 9 is a schematic diagram of merging three black and white coded images into a color coded image according to an embodiment of the present invention. If the code pattern transmitted in parallel through the R, G, and B channels in the
图10为本发明实施例中彩色编码图像解合并过程的示意图,接收端200根据所接收到的颜色校正图像,将对接收到的彩色编码图案进行颜色分离,得到R、G、B三层图案。接收端200将所得到的三层图像中的黑色转换为白色,而其他颜色转换成黑色图案,从而还原为三幅白底黑码的编码图案。最后再把这三幅黑白编码图像分别进行解码,得到原始信息,从而达到数据的发送与接收。FIG. 10 is a schematic diagram of a color-coded image de-merging process according to an embodiment of the present invention. The receiving
结合上述实施例,在发送端100向接收端发送彩色编码图像时,为了提高OCC的通信效率,在本发明提供的又一实施例中,在发送端100无需发送颜色校正图像的情况下,接收端200可以通过彩色编码图像中的定位标识进行颜色校正。In the embodiment of the present invention, in a further embodiment provided by the present invention, in the case that the transmitting
示例性的,以编码图像是二维码为例进行说明,如图11所示,在将三幅黑白二维码合成为彩色二维码的过程中,该实施例中的R、G、B三路二维码中的红色二维码留下左下角的定位标识,去掉左上和右上角的定位标识,绿色二维码留下左上角的定位标识,去掉左下和右上角的定位标识,蓝色二维码留下右上角的定位标识,去掉左下和左上角的定位标识。处理完后再把合成的彩色二维码图像通过上述实施例中的方式由发送端100发送给接收到200。Exemplarily, the coded image is a two-dimensional code as an example. As shown in FIG. 11, in the process of synthesizing three black and white two-dimensional codes into a color two-dimensional code, R, G, and B in this embodiment. The red two-dimensional code in the three-way two-dimensional code leaves the positioning identifier in the lower left corner, and the positioning identifiers in the upper left and upper right corners are removed, the green two-dimensional code leaves the positioning identifier in the upper left corner, and the positioning identifiers in the lower left and upper right corners are removed, blue The color QR code leaves the positioning mark in the upper right corner, and removes the positioning marks in the lower left and upper left corners. After the processing, the synthesized color two-dimensional code image is transmitted from the transmitting
另外,接收端200在接收到发送端100发送的彩色二维码图像时,由于该彩色二维码中的三个定位标识的颜色为纯色,即三个定位标识分别为红色、蓝色和绿色,因此,接收端200可以将彩色二维码图像中的三个定位标识作为颜色校正图像,接收端200参照所接收到的彩色二维码中的三个定位标识中的颜色校信息对所接收到的彩色二维码中的颜色进行校正,并将所接收到的编码图案进行解合并(颜色分离),从而得到R、G、B三层图案。解合并的过程有2种,如图12和图13所示。图12的颜色分离与上述实施例中的颜色分离方式一样,但由于颜色分离后的二维码会缺失定位定位标识,因此需要将图像中的黑色部分转成白色,而其他颜色转换成黑色,并补齐
缺失的定位标识。图13则先把彩色二维码中含有颜色校正信息的定位标识变成白色,之后的处理方式与上述实施例一致,这里不再赘述。通过对所得到的三层图像的黑色部分转成白色,而其他颜色转换成黑色,从而还原三幅分离的白底黑码的编码图像。最后再把这三幅黑白二维码图像进行解码,得到原始信息。In addition, when the receiving
为了详述发送端100与接收端200之间的执行流程,结合上述各个实施例,在本发明提供的又一实施例中,如图15所示,提供了一种通信方法,可以包括如下步骤:In order to describe the execution flow between the transmitting
步骤101、发送端向接收端发送信号校准图像。Step 101: The transmitting end sends a signal calibration image to the receiving end.
该实施例中,发送端通过显示屏中的液晶像素阵列发送信号校准图像,如果发送端需要向接收端发送彩色编码图像,该信号校准图像可以是如上述实施例中图8所示的颜色校正图像;如果发送端需要向接收端发送黑白编码图像,该信号校准图像可以是如图14所示黑白的信号校准图像。In this embodiment, the transmitting end sends a signal calibration image through the liquid crystal pixel array in the display screen. If the transmitting end needs to send the color coded image to the receiving end, the signal calibration image may be the color correction as shown in FIG. 8 in the above embodiment. Image; if the transmitting end needs to send a black and white encoded image to the receiving end, the signal calibration image may be a black and white signal calibration image as shown in FIG.
步骤102、接收端接收发送端发送的信号校准图像,并根据信号校准图像确定图像识别信息。Step 102: The receiving end receives the signal calibration image sent by the transmitting end, and determines the image identification information according to the signal calibration image.
步骤103、向发送端发送图像识别信息。Step 103: Send image identification information to the transmitting end.
该实施例中仍旧以编码图像是二维码图像为例进行说明,接收端在接收到发送端发送的信号校准图像后,确定可以正确识别的二维码,例如二维码的版本等。In this embodiment, the coded image is still a two-dimensional code image as an example. After receiving the signal calibration image sent by the transmitting end, the receiving end determines a two-dimensional code that can be correctly recognized, for example, a version of the two-dimensional code.
该图像识别信息可以包括:编码图像的分辨率、编码图像的版本信息和接收端中图像传感器的帧率;另外,根据需要该图像识别信息还可包含其他信息,例如发送端与接收端之间的距离信息、接收端的姿态信息(如接收端的朝向)等。The image identification information may include: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end; in addition, the image identification information may further include other information, such as between the transmitting end and the receiving end, as needed. Distance information, attitude information at the receiving end (such as the orientation of the receiving end), and the like.
步骤104、发送端根据该图像识别信息产生编码图像。Step 104: The transmitting end generates a coded image according to the image identification information.
在发送端接收到接收端发送的图像识别信息后,发送端按照图像识别信息中二维码的版本、尺寸等信息将待发送数据生成二维码图像,并以接收端中图像传感器的帧率的整数分之一倍作为刷新率通过液晶像素阵列动态发送已经生成的二维码图像。After receiving the image identification information sent by the receiving end, the transmitting end generates the two-dimensional code image according to the version, size and the like of the two-dimensional code in the image identification information, and adopts the frame rate of the image sensor in the receiving end. The integer number of times is used as a refresh rate to dynamically transmit the already generated two-dimensional code image through the liquid crystal pixel array.
步骤105、发送端向接收端发送包含编码图像的旋光。Step 105: The transmitting end sends an optical rotation containing the encoded image to the receiving end.
根据上述实施例可知,编码图像由第一编码数据和第二编码数据组成,并且发送端可以控制液晶像素阵列的像素点中光线的偏振方向或旋转方向,因此,发送端可以通过显示屏产生包含第一旋光和第二旋光的旋光,并将该旋光发送给接收端。具体实现方式已在上述实施例详述,这里不再赘述,请参见上述实施例。According to the above embodiment, the encoded image is composed of the first encoded data and the second encoded data, and the transmitting end can control the polarization direction or the rotating direction of the light in the pixel of the liquid crystal pixel array. Therefore, the transmitting end can generate the inclusion through the display screen. The optical rotation of the first optical rotation and the second optical rotation, and the optical rotation is transmitted to the receiving end. The specific implementation has been described in detail in the foregoing embodiment, and details are not described herein again. Please refer to the foregoing embodiment.
由于人眼无法识别旋光,因此发送端发送的旋光不会影响用户正常的工作和生活,发送端在发出旋光时,不但可以实现通信,还可以为用户提供正常的照明功能,无需配置专门的照明装置。另外,如果发送端同时实现VLC和OCC功能,那么发送端在进行VLC通信和OCC通信的同时,还可以为用户提供正常的照明功能。 Since the human eye cannot recognize the optical rotation, the optical rotation sent by the transmitting end does not affect the normal working and life of the user. When the transmitting end emits the optical rotation, not only can the communication be realized, but also the normal lighting function can be provided for the user, and no special illumination is needed. Device. In addition, if the sender implements VLC and OCC functions at the same time, the sender can provide normal illumination functions for the user while performing VLC communication and OCC communication.
在接收端接收到发送端产生的包含旋光的光线后,如果接收端将发送端发送的光线正确解码,接收端会向发送端发送成功接收信息;否则,接收端向发送端发送未成功接收信息。After the receiving end receives the light containing the optical rotation generated by the transmitting end, if the receiving end correctly decodes the light transmitted by the transmitting end, the receiving end sends a successful receiving information to the transmitting end; otherwise, the receiving end sends the unsuccessfully received information to the transmitting end. .
步骤106、接收端向发送端发送接收状态信息。Step 106: The receiving end sends the receiving status information to the sending end.
如果该接收状态信息是未成功接收信息,发送端重新向接收端发送包含编码图像的旋光,直到获取到接收端发送的成功接收信息。If the receiving status information is that the information is not successfully received, the transmitting end retransmits the optical rotation including the encoded image to the receiving end until the successful receiving information sent by the receiving end is obtained.
另外,如果该接收状态信息是未成功接收信息,发送端可以暂停向接收端发送包含编码图像的旋光。此时,接收端可以根据信号校准图像重新计算当前可进行正确识别的二维码尺寸和版本信息(版本信息包含版本信息及纠错等级等),并向发送端机上报该二维码尺寸和版本信息。发送端在接收到接收端上报的二维码尺寸和版本信息后按照新的尺寸和版本信息对待传输数据进行编码,同时不断监控接收端上报的反馈信息。因此该实施例可以根据接收端可以识别的二维码尺寸和版本实时动态调整所需产生的编码图像。In addition, if the reception status information is that the information is not successfully received, the transmitting end may pause to transmit the optical rotation including the encoded image to the receiving end. At this time, the receiving end can recalculate the current two-dimensional code size and version information that can be correctly identified according to the signal calibration image (the version information includes version information and error correction level, etc.), and report the two-dimensional code size to the transmitting end machine. Version Information. After receiving the two-dimensional code size and version information reported by the receiving end, the transmitting end encodes the data to be transmitted according to the new size and version information, and continuously monitors the feedback information reported by the receiving end. Therefore, the embodiment can dynamically adjust the coded image to be generated in real time according to the two-dimensional code size and version that the receiving end can recognize.
如果发送端获取到接收端发送的成功接收信息,发送端根据需要,判断是否需要继续向接收端发送包含下一帧编码图像的旋光。If the transmitting end obtains the successful receiving information sent by the receiving end, the transmitting end determines whether it is necessary to continue to send the optical rotation including the encoded image of the next frame to the receiving end as needed.
本发明实施例提供的通信方法,发送端通过将待发送的数据转换为编码图像,并将包含该编码图像的第一旋光和第二旋光发送给接收端。接收端通过获取发送端发送的包含编码图像的第一旋光和第二旋光,并将该第一旋光和第二旋光转换为图像传感器可以采集到的某一个方向的偏振光,根据该偏振光的强弱实现图像的采集,得到编码图像,进而通过对编码图像的解码,达到数据传输的目的。In the communication method provided by the embodiment of the present invention, the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end. Receiving, by the receiving end, the first optical rotation and the second optical rotation, which are sent by the transmitting end, and converting the first optical rotation and the second optical rotation into polarized light of a certain direction that can be collected by the image sensor, according to the polarized light The image is acquired by the strong and weak, and the encoded image is obtained, and then the decoding of the encoded image is achieved to achieve the purpose of data transmission.
另外,本发明实施例在实现发送端与接收端之间的通信时,一方面发送端通过产生包含编码图像的第一旋光和第二旋光来进行OCC,使得发送端可以实现日常的照明功能,避免了现有技术当中通过控制显示屏中液晶像素点产生光线的强弱来显示编码图像,造成显示屏在实现照明功能时效果不好的问题;另一方面,由于发送端发出的第一旋光和第二旋光不会被人眼直接识别到,在发送端与接收端进行OCC时,可以避免干扰用户正常的工作和学习;第三方面,由于接收端需要通过特定的接收装置才能获取到发送端发送的数据,这样本发明实施例还在通信时在一定程度上还具备通信的安全性;第四方面,本发明实施例中在发送端与接收端进行OCC的过程中,还可以通过控制光源实现VLC,并且二者不会相互干扰,这样两种通信方式的同时进行,可以大大提高通信效率。In addition, in the embodiment of the present invention, when the communication between the transmitting end and the receiving end is implemented, on the one hand, the transmitting end performs OCC by generating the first optical rotation and the second optical rotation including the encoded image, so that the transmitting end can implement the daily lighting function. The problem of displaying the coded image by controlling the intensity of the light generated by the liquid crystal pixel in the display screen is avoided in the prior art, which causes the display screen to have a poor effect when the illumination function is realized; on the other hand, the first optical rotation is emitted by the transmitting end. And the second optical rotation is not directly recognized by the human eye. When the OCC is performed on the transmitting end and the receiving end, the normal working and learning of the user can be avoided; in the third aspect, the receiving end needs to obtain and transmit through a specific receiving device. The data sent by the terminal, so that the embodiment of the present invention also has the security of communication to some extent during communication; in the fourth aspect, in the process of performing OCC between the transmitting end and the receiving end, the embodiment of the present invention can also control The light source realizes VLC, and the two do not interfere with each other, so that the two communication modes are simultaneously performed, and the communication can be greatly improved. Rate.
结合上述实施例,为了详述发送端侧的执行流程,在本发明提供的又一实施例中,如图16所示,提供了一种通信方法,该方法可以包括如下步骤:With reference to the foregoing embodiments, in order to describe the execution flow of the transmitting end side, in another embodiment provided by the present invention, as shown in FIG. 16, a communication method is provided, and the method may include the following steps:
在步骤S110中,发送端获取编码图像。In step S110, the transmitting end acquires the encoded image.
其中,编码图像包括第一编码数据和第二编码数据。 The encoded image includes first encoded data and second encoded data.
在步骤S120中,发送端通过显示屏产生包含编码图像的第一旋光和第二旋光。In step S120, the transmitting end generates a first optical rotation and a second optical rotation including the encoded image through the display screen.
其中,第一旋光是显示屏通过用于显示第一编码数据的第一像素点产生的,第二旋光是显示屏通过用于显示第二编码数据的第二像素点产生。Wherein the first rotation is generated by the first pixel for displaying the first encoded data, and the second rotation is generated by the second pixel for displaying the second encoded data.
发送端在需要发送待发送数据数,可以将该待发送数据转换为编码图像,例如二维码图像等。例如,可以采用已有技术当中的编码器,将待发送数据生成黑白二维码图像。由于黑白的二维码图像包括白色和黑色两种数据,在数字图像中,二维码图像是由0和1组成的矩阵,可以用0和1代表这两种颜色,例如将编码图像中为0的数据转换为第一旋光,将编码图像中为1的数据转换为第二旋光。第一旋光可以是左旋光,第二旋光可以是右旋光;第一旋光和第二旋光的旋转方向不同。具体可以参见上述图1对应的实施例,这里不再赘述。The transmitting end needs to send the number of data to be sent, and can convert the data to be transmitted into a coded image, such as a two-dimensional code image. For example, an encoder in the prior art can be used to generate a black and white two-dimensional code image from the data to be transmitted. Since the black and white QR code image includes both white and black data, in the digital image, the two-dimensional code image is a matrix composed of 0 and 1, which can be represented by 0 and 1, for example, in the encoded image The data of 0 is converted into the first optical rotation, and the data of 1 in the encoded image is converted into the second optical rotation. The first optical rotation may be left-handed light, and the second optical rotation may be right-handed light; the first optical rotation and the second optical rotation may be rotated in different directions. For details, refer to the corresponding embodiment in FIG. 1 above, and details are not described herein again.
本发明实施例提供的通信方法,发送端通过将待发送的数据转换为编码图像,并将包含该编码图像的第一旋光和第二旋光发送给接收端。接收端通过获取发送端发送的包含编码图像的第一旋光和第二旋光,并将该第一旋光和第二旋光转换为图像传感器可以采集到的某一个方向的偏振光,根据该偏振光的强弱实现图像的采集,得到编码图像,进而通过对编码图像的解码,达到数据传输的目的。In the communication method provided by the embodiment of the present invention, the transmitting end converts the data to be transmitted into an encoded image, and sends the first optical rotation and the second optical rotation including the encoded image to the receiving end. Receiving, by the receiving end, the first optical rotation and the second optical rotation, which are sent by the transmitting end, and converting the first optical rotation and the second optical rotation into polarized light of a certain direction that can be collected by the image sensor, according to the polarized light The image is acquired by the strong and weak, and the encoded image is obtained, and then the decoding of the encoded image is achieved to achieve the purpose of data transmission.
为了详述发送端如何通过显示屏产生第一旋光和第二旋光,作为图16方法的细化,在本发明提供的又一实施例中,如图17所示,步骤S120还可以包括:For a detailed description of how the transmitting end generates the first optical rotation and the second optical rotation through the display screen, as a refinement of the method of FIG. 16, in another embodiment provided by the present invention, as shown in FIG. 17, step S120 may further include:
在步骤S121中,发送端通过显示屏在第一像素点产生第一偏振方向光线,且在第二像素点产生第二偏振方向光线。In step S121, the transmitting end generates the first polarization direction light at the first pixel point through the display screen, and generates the second polarization direction light beam at the second pixel point.
在步骤S122中,发送端将第一偏振方向光线转换为第一旋光,且将第二偏振方向光线转换为第二旋光。In step S122, the transmitting end converts the first polarization direction light into a first rotation and the second polarization direction light into a second rotation.
具体可以参见图3及图3对应的实施例,这里不再赘述。For details, refer to the corresponding embodiments in FIG. 3 and FIG. 3, and details are not described herein again.
在本发明提供的又一实施例中,基于图17,如图18所示,显示屏包括:线性偏振片和液晶像素阵列,液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;步骤S121还可以包括:In another embodiment provided by the present invention, based on FIG. 17, as shown in FIG. 18, the display screen includes: a linear polarizing plate and a liquid crystal pixel array, the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array; S121 can also include:
在步骤S1211中,发送端通过线性偏振片将来自光源的光线进行起偏,得到预设方向上振动的偏振光。In step S1211, the transmitting end polarizes the light from the light source through the linear polarizing plate to obtain polarized light vibrating in a predetermined direction.
参见图3及对应的上述实施例,该预设方向上振动的偏振光与线性偏振片的设置角度相关,例如,在线性偏振片水平设置时,通过该线性偏振片的光只有水平偏振光。Referring to FIG. 3 and the corresponding embodiments described above, the polarized light vibrating in the predetermined direction is related to the set angle of the linear polarizer. For example, when the linear polarizer is horizontally disposed, the light passing through the linear polarizer has only horizontally polarized light.
在步骤S1212中,发送端驱动液晶像素阵列,通过第一液晶像素阵列将偏振光转换为第一偏振方向光线,通过第二液晶像素阵列将偏振光转换为第二偏振方 向光线。In step S1212, the transmitting end drives the liquid crystal pixel array, converts the polarized light into the first polarized direction light through the first liquid crystal pixel array, and converts the polarized light into the second polarized side through the second liquid crystal pixel array. To the light.
具体可以利用已有技术实现,例如,液晶像素阵列通过静电场的控制,达到对光线偏振的控制。Specifically, it can be implemented by using the prior art. For example, the liquid crystal pixel array controls the polarization of the light by the control of the electrostatic field.
在本发明提供的又一实施例中,基于图17,如图19所示,所述显示屏可以包含1/4波片,步骤S122可以具体是:In another embodiment provided by the present invention, based on FIG. 17, as shown in FIG. 19, the display screen may include a 1/4 wave plate, and step S122 may specifically be:
在步骤S1221中,发送端将第一偏振方向光线和第二偏振方向光线通过1/4波片,将第一偏振方向光线转换为第一旋光,将第二偏振方向光线转换为第二旋光。In step S1221, the transmitting end passes the first polarization direction light and the second polarization direction light through the 1/4 wave plate, converts the first polarization direction light into the first rotation, and converts the second polarization direction light into the second rotation.
其中,线性偏振片的偏振方向与1/4波片快轴方向的夹角为45度或者135度。The angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
在本发明提供的又一实施例中,为了详述显示屏如何产生包含编码图像的第一旋光和第二旋光,作为图16方法的细化,在本发明提供的又一实施例中,显示屏包括圆偏振片和液晶像素阵列,液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列。如图20所示,步骤S120还可以包括如下步骤:In still another embodiment provided by the present invention, in order to detail how the display screen generates the first optical rotation and the second optical rotation including the coded image, as a refinement of the method of FIG. 16, in still another embodiment provided by the present invention, the display The screen includes a circular polarizing plate and a liquid crystal pixel array, and the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array. As shown in FIG. 20, step S120 may further include the following steps:
在步骤S123中,发送端通过圆偏振片将来自光源的光线转换为预设方向上的旋光。In step S123, the transmitting end converts the light from the light source into an optical rotation in a predetermined direction through the circular polarizing plate.
在步骤S124中,发送端驱动液晶像素阵列,通过第一液晶像素阵列将预设方向上的旋光转换为第一旋光,通过第二液晶像素阵列将预设方向上的旋光转换为第二旋光。In step S124, the transmitting end drives the liquid crystal pixel array, converts the optical rotation in the preset direction into the first optical rotation through the first liquid crystal pixel array, and converts the optical rotation in the preset direction into the second optical rotation through the second liquid crystal pixel array.
其中,第一旋光与第二旋光的旋转方向不同。Wherein, the first optical rotation and the second optical rotation have different rotation directions.
该实施例可以参见图4及图4对应的实施例,该实施例与图3对应的实施例不同,是另外一种第一旋光和第二旋光的实现方式。For the embodiment, reference may be made to the corresponding embodiment of FIG. 4 and FIG. 4, which is different from the embodiment corresponding to FIG. 3, and is another implementation manner of the first optical rotation and the second optical rotation.
为了详述发送端如何获取编码图像,在本发明提供的又一实施例中,基于图16,如图21所示,步骤S110还可以包括:In order to detail how the transmitting end obtains the encoded image, in another embodiment provided by the present invention, based on FIG. 16, as shown in FIG. 21, step S110 may further include:
在步骤S111中,发送端获取第一编码图像、第二编码图像和第三编码图像。In step S111, the transmitting end acquires the first encoded image, the second encoded image, and the third encoded image.
其中,三幅待发送编码图像,即第一编码图像、第二编码图像和第三编码图像,这三幅待发送编码图像均为黑白二维码图像。The three coded images to be transmitted, that is, the first coded image, the second coded image, and the third coded image, are all black and white two-dimensional code images.
在步骤S112中,发送端将第一编码图像转换为红黑色编码图像。In step S112, the transmitting end converts the first encoded image into a red-black encoded image.
其中,红色表示第一编码图像中的第一编码数据、黑色表示第一编码图像中的第二编码数据。Among them, red indicates the first encoded data in the first encoded image, and black indicates the second encoded data in the first encoded image.
在步骤S113中,发送端将第二编码图像转换为绿黑色编码图像。 In step S113, the transmitting end converts the second encoded image into a green-black encoded image.
其中,绿色表示第二编码图像中的第一编码数据、黑色表示第二编码图像中的第二编码数据。Among them, green indicates the first encoded data in the second encoded image, and black indicates the second encoded data in the second encoded image.
在步骤S114中,发送端将第三编码图像转换为蓝黑色编码图像。In step S114, the transmitting end converts the third encoded image into a blue-black encoded image.
其中,蓝色表示第三编码图像中的第一编码数据、黑色表示第三编码图像中的第二编码数据。Among them, blue indicates the first encoded data in the third encoded image, and black indicates the second encoded data in the third encoded image.
结合图1至3及其对应的上述各实施例,本发明实施例中显示屏120包括液晶像素阵列122,液晶像素阵列122中的每个液晶像素点包括R、G、B三个通道。其中,R、G、B三个通道中的每个通道都可以被单独控制。The
在本发明提供的又一实施例中,基于图18,显示屏的液晶像素阵列中的每个液晶像素包括R、G、B三个通道;如图22所示,步骤S1212还可以包括:In another embodiment provided by the present invention, based on FIG. 18, each liquid crystal pixel in the liquid crystal pixel array of the display screen includes three channels of R, G, and B; as shown in FIG. 22, step S1212 may further include:
在步骤S12121中,发送端通过用于显示红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将偏振光转换为第一偏振方向光线,通过用于显示红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将偏振光转换为第二偏振方向光线。In step S12121, the transmitting end converts the polarized light into the first polarized direction ray by the R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, and is used to display the red-black encoded image. The R channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
在步骤S12122中,发送端通过用于显示绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将偏振光转换为第一偏振方向光线,通过用于显示绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将偏振光转换为第二偏振方向光线。In step S12122, the transmitting end converts the polarized light into the first polarized direction ray by using the G channel in the liquid crystal pixel array for displaying the first encoded data in the green-black encoded image, and is used to display the green-black encoded image. The G channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
在步骤S12123中,发送端通过用于显示蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将偏振光转换为第一偏振方向光线,通过用于显示蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将偏振光转换为第二偏振方向光线。In step S12123, the transmitting end converts the polarized light into the first polarized direction light through the B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, and is used to display the blue-black encoded image. The B channel in the liquid crystal pixel array of the two encoded data converts the polarized light into the second polarized direction light.
其中,三幅待发送编码图像均分别包含三个定位标识,三个定位标识分别是第一定位标识、第二定位标识和第三定位标识。The three to-be-coded images respectively include three positioning identifiers, and the three positioning identifiers are a first positioning identifier, a second positioning identifier, and a third positioning identifier, respectively.
红黑色编码图像仅包含第一定位标识,绿黑色编码图像仅包含第二定位标识,和蓝黑色编码图像仅包含第三定位标识。The red-black encoded image contains only the first positioning identifier, the green-black encoded image contains only the second positioning identifier, and the blue-black encoded image contains only the third positioning identifier.
基于图20,在本发明提供的又一实施例中,显示屏的液晶像素阵列中的每个液晶像素包括R、G、B三个通道;如图23所示,步骤S124还可以包括:Based on FIG. 20, in another embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array of the display screen includes three channels of R, G, and B. As shown in FIG. 23, step S124 may further include:
在步骤S1241中,发送端通过用于显示红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将预设方向上的旋光转换为第一旋光,通过用于显示红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将预设方向上的旋光转换为第二旋光。In step S1241, the transmitting end converts the optical rotation in the preset direction into the first optical rotation through the R channel in the liquid crystal pixel array for displaying the first encoded data in the red-black encoded image, and is used to display the red-black encoded image. The R channel in the liquid crystal pixel array of the second encoded data converts the optical rotation in the preset direction into the second optical rotation.
在步骤S1242中,发送端通过用于显示绿黑色编码图像中第一编码数据的液 晶像素阵列中的G通道,将预设方向上的旋光转换为第一旋光,通过用于显示绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将预设方向上的旋光转换为第二旋光。In step S1242, the transmitting end passes the liquid for displaying the first encoded data in the green-black encoded image. a G channel in the pixel array, converting the optical rotation in a preset direction into a first optical rotation, and rotating the optical path in the preset direction by the G channel in the liquid crystal pixel array for displaying the second encoded data in the green-black encoded image Convert to the second rotation.
在步骤S1243中,发送端通过用于显示蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将预设方向上的旋光转换为第一旋光,通过用于显示蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将预设方向上的旋光转换为第二旋光。In step S1243, the transmitting end converts the optical rotation in the preset direction into the first optical rotation through the B channel in the liquid crystal pixel array for displaying the first encoded data in the blue-black encoded image, and is used to display the blue-black encoded image. The B channel in the liquid crystal pixel array of the second encoded data converts the optical rotation in the preset direction into the second optical rotation.
本发明实施例在发送彩色编码图像时,可以将待发送的三幅编码图像分别通过液晶像素阵列中的R、G、B三个通道发送,即分别通过控制R、G、B三个通道中的光线实现三幅编码图像的同时发送,这样可以大大提高OCC的通信效率。In the embodiment of the present invention, when the color coded image is transmitted, the three coded images to be sent may be respectively sent through three channels of R, G, and B in the liquid crystal pixel array, that is, by controlling three channels of R, G, and B respectively. The light is transmitted simultaneously with the three encoded images, which can greatly improve the communication efficiency of the OCC.
结合上述各实施例,作为图16方法的细化,在本发明提供的又一实施例中,发送端还可以包括可见光通信VLC模块,如图24所示,该方法还可以包括如下步骤:With the foregoing embodiments, as a refinement of the method of FIG. 16, in another embodiment provided by the present invention, the transmitting end may further include a visible light communication VLC module. As shown in FIG. 24, the method may further include the following steps:
在步骤S130中,VLC模块获取待发送数据。In step S130, the VLC module acquires data to be transmitted.
在步骤S140中,VLC模块控制光源产生的光线,光源产生的光线的闪烁状态和强度状态与待发送数据相对应。In step S140, the VLC module controls the light generated by the light source, and the blinking state and the intensity state of the light generated by the light source correspond to the data to be transmitted.
本发明该实施例在进行OCC的同时,还可以实现VLC,需要说明的是,发送端100在同时进行OCC和VLC时,OCC与VLC互不影响,可以完全独立进行数据的传输。The embodiment of the present invention can also implement VLC while performing OCC. It should be noted that when the transmitting
在本发明提供的又一实施例中,基于图24,如图25所示,步骤S120还可以包括:In another embodiment provided by the present invention, based on FIG. 24, as shown in FIG. 25, step S120 may further include:
在步骤S125中,发送端通过显示屏获取来自光源产生的光线。In step S125, the transmitting end acquires light generated from the light source through the display screen.
在步骤S126中,发送端将第一像素点接收到的光线转换为第一旋光,将第二像素点接收到的光线转换为第二旋光。In step S126, the transmitting end converts the light received by the first pixel to the first rotation, and converts the light received by the second pixel into the second rotation.
光源可以作为发送端的一部分,还可以独立于发送端而设置,本发明实施例并不限于此。在本发明提供的实施例中,第一旋光是显示屏通过用于显示第一编码数据的第一像素点产生的,第二旋光是显示屏通过用于显示第二编码数据的第二像素点产生。The light source may be provided as a part of the transmitting end, and may be disposed independently of the transmitting end, and the embodiment of the present invention is not limited thereto. In an embodiment provided by the present invention, the first optical rotation is generated by the first pixel point for displaying the first encoded data, and the second optical rotation is the second pixel of the display screen for displaying the second encoded data. produce.
作为图16方法的细化,在本发明提供的又一实施例中,如图26所示,该方法还可以包括:As a refinement of the method of FIG. 16, in another embodiment provided by the present invention, as shown in FIG. 26, the method may further include:
在步骤S150中,发送端获取显示屏的长度a和宽度b。In step S150, the transmitting end acquires the length a and the width b of the display screen.
当a≥n·b时,在步骤S160中,发送端在显示屏上同时显示n个尺寸为b×b的 编码图像。When a≥n·b, in step S160, the transmitting end simultaneously displays n sizes b×b on the display screen. Encode the image.
其中,n为正整数,a、b为正数。Where n is a positive integer and a and b are positive numbers.
具体可以参见图6及其图6对应的实施例,本发明该实施例可以根据显示屏的尺寸,合理利用显示屏的尺寸来产生编码图像的数量。通过在一个显示屏上同时产生多个编码图像,可以提高显示屏的利用效率。For details, refer to the embodiment corresponding to FIG. 6 and FIG. 6. The embodiment of the present invention can reasonably utilize the size of the display screen to generate the number of encoded images according to the size of the display screen. By using multiple encoded images simultaneously on one display, the utilization efficiency of the display can be improved.
作为图16方法的细化,在本发明提供的又一实施例中,如图27所示,该方法还可以包括:As a refinement of the method of FIG. 16, in another embodiment provided by the present invention, as shown in FIG. 27, the method may further include:
在步骤S170中,发送端向接收端发送校正图像,以使接收端根据校正图像确定最小分辨率。In step S170, the transmitting end transmits the corrected image to the receiving end to cause the receiving end to determine the minimum resolution according to the corrected image.
在步骤S180中,发送端接收端发送的包含最小分辨率的信息;In step S180, the information sent by the receiving end of the transmitting end includes the minimum resolution;
在步骤S190中,发送端根据最小分辨率确定第一像素点和第二像素点。In step S190, the transmitting end determines the first pixel point and the second pixel point according to the minimum resolution.
本发明实施例中,可以通过对相机及带有相机功能的终端(如手机等)进行合理的设置,例如在相机的镜头上设置圆偏振片,就可以设置为接收端。而每个相机可以识别编码图像的最小分辨率不同,为了使接收端可以正确识别发送的编码图像并提高通信效率,本发明实施例中发送端可以通过获取接收端发送的包含最小分辨率的信息,通过合理产生编码图像,使得显示屏产生的对应分辨率的编码图像可以被接收端正确识别。In the embodiment of the present invention, the camera and the terminal with the camera function (such as a mobile phone) can be appropriately set, for example, a circular polarizing plate is set on the lens of the camera, and can be set as the receiving end. In this embodiment of the present invention, the transmitting end can obtain the information including the minimum resolution sent by the receiving end, in order to enable the receiving end to correctly identify the transmitted encoded image and improve the communication efficiency. By reasonably generating the encoded image, the encoded image of the corresponding resolution generated by the display screen can be correctly recognized by the receiving end.
作为图16方法的细化,在本发明提供的又一实施例中,如图28所示,步骤S110还可以包括:As a refinement of the method of FIG. 16, in another embodiment provided by the present invention, as shown in FIG. 28, step S110 may further include:
在步骤S115中,发送端向接收端发送信号校准图像。In step S115, the transmitting end transmits a signal calibration image to the receiving end.
在步骤S116中,发送端接收接收端发送的图像识别信息。In step S116, the transmitting end receives the image identification information transmitted by the receiving end.
其中,图像识别信息包括:编码图像的分辨率、编码图像的版本信息和接收端中图像传感器的帧率。The image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end.
在步骤S117中,发送端将待发送数据按照图像识别信息生成编码图像。In step S117, the transmitting end generates the encoded image according to the image identification information.
由于不同的接收端可以识别到编码图像的版本、分辨率等有所差别,发送端需要根据接收端合理产生相应的编码图像。Since different receiving ends can recognize the version, resolution, etc. of the encoded image, the transmitting end needs to generate the corresponding encoded image according to the receiving end.
另外,基于图28,在本发明提供的又一实施例中,如图29所示,该方法还可以包括:In addition, based on FIG. 28, in another embodiment provided by the present invention, as shown in FIG. 29, the method may further include:
在步骤S191中,发送端以图像传感器的帧率的整数分之一倍作为刷新帧率。In step S191, the transmitting end uses the integer value of the frame rate of the image sensor as the refresh frame rate.
在步骤S192中,发送端按照刷新帧率向接收端发送第一旋光和第二旋光。In step S192, the transmitting end transmits the first optical rotation and the second optical rotation to the receiving end according to the refresh frame rate.
在发送端接收到接收端发送的图像识别信息后,发送端按照图像识别信息中二维 码的版本、尺寸等信息将待发送数据生成二维码图像,并以接收端中图像传感器的帧率的整数分之一倍作为刷新率通过液晶像素阵列动态发送已经生成的二维码图像。After the transmitting end receives the image identification information sent by the receiving end, the transmitting end follows the two-dimensional image identification information. The version, size, and the like of the code generate a two-dimensional code image from the data to be transmitted, and dynamically transmit the generated two-dimensional code image through the liquid crystal pixel array with the integer rate of the frame rate of the image sensor in the receiving end as a refresh rate.
结合上述实施例,为了详述接收端侧的执行流程,在本发明提供的又一实施例中,提供了一种通信方法,如图30所示,该方法可以包括如下步骤:With reference to the foregoing embodiment, in order to describe the execution flow of the receiving end side, in another embodiment provided by the present invention, a communication method is provided. As shown in FIG. 30, the method may include the following steps:
在步骤S210中,接收端采集发送端发出的光线,光线包括第一旋光和第二旋光。In step S210, the receiving end collects light emitted by the transmitting end, and the light includes a first optical rotation and a second optical rotation.
在步骤S220中,接收端将采集到的第一旋光和第二旋光转换为编码图像,编码图像包括第一编码数据和第二编码数据。In step S220, the receiving end converts the acquired first optical rotation and second optical rotation into a coded image, where the coded image includes first coded data and second coded data.
由于发送端发送的光线包含编码图像,因此接收端通过对包含第一旋光和第二旋光的光线进行接收及转换,得到对应的编码图像,实现OCC。采用已有技术对编码图像进行解码,可以得到发送端发送的数据。Since the light transmitted by the transmitting end includes the encoded image, the receiving end obtains the corresponding encoded image by receiving and converting the light including the first optical rotation and the second optical rotation, thereby implementing OCC. The encoded image is decoded by the prior art, and the data transmitted by the transmitting end can be obtained.
为了详述接收端如何将采集到的第一旋光和第二旋光转换为编码图像,作为图30方法的细化,在本发明提供的又一实施例中,如图31所示,步骤S220还可以包括:In order to detail how the receiving end converts the acquired first optical rotation and second optical rotation into a coded image, as a refinement of the method of FIG. 30, in still another embodiment provided by the present invention, as shown in FIG. 31, step S220 further Can include:
在步骤S221中,接收端通过圆偏振片将对光线转换为预设偏振方向光线。In step S221, the receiving end converts the light into a predetermined polarization direction light through a circular polarizing plate.
在步骤S222中,接收端通过图像传感器采集预设偏振方向光线,得到编码图像。In step S222, the receiving end collects the preset polarization direction light through the image sensor to obtain a coded image.
由于发送端产生包括第一旋光和第二旋光的光线无法被接收端中的图像传感器采集到,因此,接收端通过圆偏振片将接收到发送的包含第一旋光和第二旋光的光线转换为只有水平偏振方向的光线。即,圆偏振片将第一旋光转换为第一偏振方向光线,并阻止第二旋光通过,使得图像传感器可以采集到只有水平偏振方向的光线。由于图像传感器可以检测光线的明暗,即光线的强度,使得图像传感器通过对光线的采集,可以生成编码图像,如黑白色的二维码图像。Since the light generated by the transmitting end including the first optical rotation and the second optical rotation cannot be collected by the image sensor in the receiving end, the receiving end converts the received light containing the first optical rotation and the second optical rotation to the transmitted light through the circular polarizing plate into Only the light in the horizontal polarization direction. That is, the circular polarizing plate converts the first optical rotation into the first polarization direction light and prevents the second optical rotation from passing, so that the image sensor can collect the light having only the horizontal polarization direction. Since the image sensor can detect the brightness of the light, that is, the intensity of the light, the image sensor can generate a coded image, such as a black and white two-dimensional code image, by collecting the light.
作为图31方法的细化,在本发明提供的又一实施例中,如图32所示,发送端发出的光线包括R、G、B三个通道的光线,R、G、B三个通道的光线分别包含预设偏振方向光线。如图32所示,步骤S220还可以包括:As a refinement of the method of FIG. 31, in another embodiment provided by the present invention, as shown in FIG. 32, the light emitted by the transmitting end includes three channels of R, G, and B, and three channels of R, G, and B. The light rays respectively contain light of a predetermined polarization direction. As shown in FIG. 32, step S220 may further include:
在步骤S223中,接收端通过图像传感器分别采集到包括R、G、B三个通道的预设偏振方向光线,分别生成第一编码图像、第二编码图像和第三编码图像。In step S223, the receiving end separately collects preset polarization direction ray including three channels R, G, and B through the image sensor, and respectively generates a first encoded image, a second encoded image, and a third encoded image.
在步骤S224中,接收端获取颜色校正图像,并根据颜色校正图像分别校正第一编码图像、第二编码图像和第三编码图像。In step S224, the receiving end acquires the color corrected image, and respectively corrects the first encoded image, the second encoded image, and the third encoded image according to the color corrected image.
由于发送端发送给接收端的光线,可能会受到发送端和接收端自身器件的限制,因此接收端需要对得到编码图像进行颜色校正,以便得到正确的编码图像。其中,图像颜色的校正可以通过已有技术实现,这里不再赘述。 Since the light sent by the transmitting end to the receiving end may be limited by the transmitting end and the receiving end's own device, the receiving end needs to perform color correction on the obtained encoded image in order to obtain the correct encoded image. The correction of the image color can be implemented by the prior art, and details are not described herein again.
作为图32方法的细化,在本发明提供的又一实施例中,如图33所示,第一编码图像、第二编码图像和第三编码图像均包括定位标识,该方法还可以包括如下步骤:As a refinement of the method of FIG. 32, in another embodiment provided by the present invention, as shown in FIG. 33, the first encoded image, the second encoded image, and the third encoded image each include a positioning identifier, and the method may further include the following step:
在步骤S230中,接收端判断定位标识是否为第一编码数据。In step S230, the receiving end determines whether the positioning identifier is the first encoded data.
在步骤S240中,接收端在判断到定位标识不是第一编码数据时,分别将第一编码图像、第二编码图像和第三编码图像做图像反色处理。In step S240, when the receiving end determines that the positioning identifier is not the first encoded data, the receiving end performs image inversion processing on the first encoded image, the second encoded image, and the third encoded image, respectively.
该实施例中的第一编码数据和第二编码数据可以分别是黑色和白色,具体可以参见图9及图9对应的实施例,这里不做赘述。另外,图像反色处理,即将白色变为黑色,黑色变为白色。The first coded data and the second coded data in this embodiment may be black and white, respectively. For details, refer to the corresponding embodiments in FIG. 9 and FIG. 9 , and details are not described herein. In addition, the image is reversed, that is, white turns black and black turns white.
作为图30方法的细化,在本发明提供的又一实施例中,如图34所示,该方法还可以包括:As a refinement of the method of FIG. 30, in another embodiment provided by the present invention, as shown in FIG. 34, the method may further include:
在步骤S250中,接收端通过光电探测器接收来自发送端发出的光线。In step S250, the receiving end receives the light emitted from the transmitting end through the photodetector.
在步骤S260中,接收端获取光线的闪烁状态或强度状态信息,并将闪烁状态或强度状态信息转换为相应的接收数据。In step S260, the receiving end acquires the blinking state or the intensity state information of the light, and converts the blinking state or the intensity state information into corresponding receiving data.
本发明实施例在同时实现VLC通信时,可以在接收端设置光电探测器来接收发送端通过VLC发送的数据,具体可以采用已有技术实现,这里不做赘述。In the embodiment of the present invention, when the VLC communication is implemented at the same time, the photodetector can be set at the receiving end to receive the data sent by the sending end through the VLC, which can be implemented by using the prior art, and is not described herein.
作为图30方法的细化,在本发明提供的又一实施例中,如图35所示,该方法还可以包括:As a refinement of the method of FIG. 30, in another embodiment provided by the present invention, as shown in FIG. 35, the method may further include:
在步骤S271中,接收端接收发送端发送的校正图像,校正图像包括多个清晰度的子图像。In step S271, the receiving end receives the corrected image transmitted by the transmitting end, and the corrected image includes a plurality of sharpness sub-images.
在步骤S272中,接收端识别校正图像中的子图像,并确定识别到校正图像中清晰度最低的子图像。In step S272, the receiving end recognizes the sub-image in the corrected image, and determines that the sub-image having the lowest definition in the corrected image is recognized.
在步骤S273中,接收端确定最小分辨率,最小分辨率为子图像中清晰度最低的子图像对应的分辨率。In step S273, the receiving end determines the minimum resolution, which is the resolution corresponding to the sub-image with the lowest definition in the sub-image.
在步骤S274中,接收端向发送端发送包含最小分辨率的信息。In step S274, the receiving end transmits information including the minimum resolution to the transmitting end.
可以参见图8及图8所对应的实施例,图8所示的颜色校正图像,还可以是黑白的图像,用于发送端100在发送黑白的编码图像时,确定可以识别的最低清晰度。Referring to the embodiment corresponding to FIG. 8 and FIG. 8, the color correction image shown in FIG. 8 may also be a black-and-white image for the transmitting
作为图30方法的细化,在本发明提供的又一实施例中,如图36所示,该方法还可以包括:As a refinement of the method of FIG. 30, in another embodiment provided by the present invention, as shown in FIG. 36, the method may further include:
在步骤S281中,接收端接收发送端发送的信号校准图像。In step S281, the receiving end receives the signal calibration image transmitted by the transmitting end.
在步骤S282中,接收端生成对信号校准图像的图像识别信息。 In step S282, the receiving end generates image identification information for the signal calibration image.
图像识别信息包括:编码图像的分辨率、编码图像的版本信息和接收端中图像传感器的帧率。The image identification information includes: a resolution of the encoded image, version information of the encoded image, and a frame rate of the image sensor in the receiving end.
在步骤S283中,接收端向发送端发送图像识别信息。In step S283, the receiving end transmits image identification information to the transmitting end.
为了使发送端发送的编码图像可以被接收端正确接收,该实施例中通过接收端向发送端发送信号校准图像,以便发送端可以发送接收端能够正确识别的图像。In order to enable the encoded image sent by the transmitting end to be correctly received by the receiving end, in this embodiment, the signal is calibrated to the transmitting end by the receiving end, so that the transmitting end can send an image that can be correctly recognized by the receiving end.
作为图30方法的细化,在本发明提供的又一实施例中,编码图像包括定位标识,如图37所示,该方法还可以包括:As a refinement of the method of FIG. 30, in another embodiment provided by the present invention, the encoded image includes a positioning identifier, as shown in FIG. 37, the method may further include:
在步骤S291中,接收端判断定位标识是否为第二编码数据。In step S291, the receiving end determines whether the positioning identifier is the second encoded data.
在步骤S292中,接收端在判断到定位标识不是第二编码数据时,将编码图像做图像反色处理。In step S292, when the receiving end determines that the positioning identifier is not the second encoded data, the receiving end performs image inversion processing.
结合上述实施例可知,接收端200在接收到发送端100发送的彩色二维码图像时,由于该彩色二维码中的三个定位标识的颜色为纯色,即三个定位标识分别为红色、蓝色和绿色,因此,接收端200可以将彩色二维码图像中的三个定位标识作为颜色校正图像,接收端200参照所接收到的彩色二维码中的三个定位标识中的颜色校信息对所接收到的彩色二维码中的颜色进行校正,并将所接收到的编码图案进行解合并(颜色分离),从而得到R、G、B三层图案。解合并的过程有2种,如图12和图13所示。图12的颜色分离上述实施例中的颜色分离方式一样,但由于颜色分离后的二维码会缺失定位标识,因此需要将图像中的黑色部分转成白色,而其他颜色转换成黑色,并补齐缺失的定位标识。图13则先把彩色二维码中含有颜色校正信息的定位标识变成白色,之后的处理方式与上述实施例一致,这里不再赘述。通过对所得到的三层图像的黑色部分转成白色,而其他颜色转换成黑色,从而还原三幅分离的白底黑码的编码图像。最后再把这三幅黑白二维码图像进行解码,得到原始信息。According to the foregoing embodiment, when the receiving
通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Through the description of the above method embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes various types of media that can store program codes, such as a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
作为上述各个实施例的实现,结合上述各个实施例,在本发明提供的又一实施例中,还提供了一种通信装置,该装置可以包括下述实施例中的发送端和接收端,其中,如图38所示,本发明实施例提供了一种发送端,该发送端可以执行上述图16至图
29所示的任一通信方法,具体的,该发送端可以包括:处理器11、发送器12和接收器13,其中,As an implementation of the foregoing embodiments, in combination with the foregoing embodiments, in still another embodiment provided by the present invention, a communication device is provided, which may include a transmitting end and a receiving end in the following embodiments, where As shown in FIG. 38, an embodiment of the present invention provides a transmitting end, which can perform the foregoing FIG. 16 to FIG.
The communication method shown in FIG. 29, specifically, the transmitting end may include: a
处理器11,用于获取编码图像,所述编码图像包括第一编码数据和第二编码数据;The
发送器12,用于通过显示屏产生包含所述编码图像的第一旋光和第二旋光;a
其中,所述第一旋光是所述显示屏通过用于显示所述第一编码数据的第一像素点产生的,所述第二旋光是所述显示屏通过用于显示所述第二编码数据的第二像素点产生。Wherein the first optical rotation is generated by the first display point for displaying the first encoded data, and the second optical rotation is by the display screen for displaying the second encoded data The second pixel is generated.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器11,还用于通过显示屏在所述第一像素点产生第一偏振方向光线,且在所述第二像素点产生第二偏振方向光线;The
所述发送器12,还用于将所述第一偏振方向光线转换为所述第一旋光,且将所述第二偏振方向光线转换为所述第二旋光。The
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括:线性偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes: a linear polarizing plate and a liquid crystal pixel array, wherein the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述处理器11,还用于通过所述线性偏振片将来自光源的光线进行起偏,得到预设方向上振动的偏振光;The
所述处理器11,还用于驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述偏振光转换为第一偏振方向光线,通过所述第二液晶像素阵列将所述偏振光转换为第二偏振方向光线。The
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包含1/4波片;In a possible design manner provided in the embodiment of the present invention, the display screen includes a 1/4 wave plate;
所述发送器12,还用于将所述第一偏振方向光线和所述第二偏振方向光线通过所述1/4波片,将所述第一偏振方向光线转换为第一旋光,将所述第二偏振方向光线转换为第二旋光;The
其中,线性偏振片的偏振方向与所述1/4波片快轴方向的夹角为45度或者135度。The angle between the polarization direction of the linear polarizer and the fast axis direction of the quarter wave plate is 45 degrees or 135 degrees.
在本发明实施例中提供的一种可能的设计方式中,所述显示屏包括圆偏振片和液晶像素阵列,所述液晶像素阵列包括第一液晶像素阵列和第二液晶像素阵列;In a possible design manner provided in the embodiment of the present invention, the display screen includes a circular polarizing plate and a liquid crystal pixel array, and the liquid crystal pixel array includes a first liquid crystal pixel array and a second liquid crystal pixel array;
所述发送器12,还用于通过所述圆偏振片将来自光源的光线转换为预设方向上的旋光;
The
所述发送器12,还用于驱动所述液晶像素阵列,通过所述第一液晶像素阵列将所述预设方向上的旋光转换为第一旋光,通过所述第二液晶像素阵列将所述预设方向上的旋光转换为第二旋光;The
其中,所述第一旋光与所述第二旋光的旋转方向不同。Wherein, the first optical rotation and the second optical rotation have different rotation directions.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器11,还用于获取三幅待发送编码图像,其中,所述三幅待发送编码图像均为黑白二维码图像,所述三幅待发送编码图像包括第一编码图像、第二编码图像和第三编码图像;The
所述处理器11,还用于将所述第一编码图像转换为红黑色编码图像,其中,所述红色表示所述第一编码图像中的第一编码数据、所述黑色表示所述第一编码图像中的第二编码数据;The
所述处理器11,还用于将所述第二编码图像转换为绿黑色编码图像,其中,所述绿色表示所述第二编码图像中的第一编码数据、所述黑色表示所述第二编码图像中的第二编码数据;The
所述处理器11,还用于将所述第三编码图像转换为蓝黑色编码图像,其中,所述蓝色表示所述第三编码图像中的第一编码数据、所述黑色表示所述第三编码图像中的第二编码数据。The
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道;In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述处理器11,还用于通过用于显示所述红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述偏振光转换为所述第二偏振方向光线;The
所述处理器11,还用于通过用于显示所述绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述偏振光转换为所述第二偏振方向光线;The
所述处理器11,还用于通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第一偏振方向光线,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述偏振光转换为所述第二偏振方向光线。The
在本发明实施例中提供的一种可能的设计方式中,所述液晶像素阵列中的每个液晶像素包括R、G、B三个通道; In a possible design manner provided in the embodiment of the present invention, each liquid crystal pixel in the liquid crystal pixel array includes three channels of R, G, and B;
所述发送器12,还用于通过用于显示所述红黑色编码图像中第一编码数据的液晶像素阵列中的R通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述红黑色编码图像中第二编码数据的液晶像素阵列中的R通道,将所述预设方向上的旋光转换为所述第二旋光;The
所述发送器12,还用于通过用于显示所述绿黑色编码图像中第一编码数据的液晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述绿黑色编码图像中第二编码数据的液晶像素阵列中的G通道,将所述预设方向上的旋光转换为所述第二旋光;The
所述发送器12,还用于通过用于显示所述蓝黑色编码图像中第一编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第一旋光,通过用于显示所述蓝黑色编码图像中第二编码数据的液晶像素阵列中的B通道,将所述预设方向上的旋光转换为所述第二旋光。The
在本发明实施例中提供的一种可能的设计方式中,所述三幅待发送编码图像均分别包含三个定位标识,所述三个定位标识分别是第一定位标识、第二定位标识和第三定位标识;In a possible design manner provided by the embodiment of the present invention, the three to-be-transmitted coded images respectively include three positioning identifiers, where the three positioning identifiers are a first positioning identifier, a second positioning identifier, and Third positioning identifier;
所述红黑色编码图像仅包含所述第一定位标识,所述绿黑色编码图像仅包含所述第二定位标识,和所述蓝黑色编码图像仅包含所述第三定位标识。The red-black encoded image includes only the first positioning identifier, the green-black encoded image includes only the second positioning identifier, and the blue-black encoded image includes only the third positioning identifier.
在本发明实施例中提供的一种可能的设计方式中,包括可见光通信VLC模块,所述发送端还包括:In a possible design manner, the present invention includes a visible light communication VLC module, and the sending end further includes:
所述处理器11,还用于通过所述VLC模块获取待发送数据;The
所述处理器11,还用于通过所述VLC模块控制所述光源产生的光线,所述光源产生的光线的闪烁状态和强度状态与所述待发送数据相对应。The
在本发明实施例中提供的一种可能的设计方式中,所述发送端还包括:接收器13;In a possible design manner provided in the embodiment of the present invention, the sending end further includes: a
所述接收器13,用于通过所述显示屏获取来自光源产生的光线;The
所述发送器12,还用于将所述第一像素点接收到的光线转换为第一旋光,将所述第二像素点接收到的所述光线转换为第二旋光。The
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
接收器13,还用于获取所述显示屏的长度a和宽度b;The
当a≥n·b时,所述处理器11,还用于在所述显示屏上同时显示n个尺寸为b×b的所述编码图像,其中,n为正整数,a、b为正数。When a≥n·b, the
在本发明实施例中提供的一种可能的设计方式中, In a possible design manner provided in the embodiment of the present invention,
所述发送器12,还用于向接收端发送校正图像,以使所述接收端根据所述校正图像确定最小分辨率;The
所述接收器13,还用于接收所述接收端发送的包含最小分辨率的信息;The
所述处理器11,还用于根据所述最小分辨率确定所述第一像素点和所述第二像素点。The
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述发送器12,还用于向接收端发送信号校准图像;The
所述接收器13,还用于接收所述接收端发送的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和所述接收端中图像传感器的帧率;The
所述处理器11,还用于将待发送数据按照所述图像识别信息生成所述编码图像。The
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器11,还用于以所述图像传感器的帧率的整数分之一倍作为刷新帧率;The
所述发送器12,还用于按照所述刷新帧率向接收端发送所述第一旋光和所述第二旋光。The
作为上述各个实施例的实现,结合上述各个实施例,在本发明提供的又一实施例中,如图39所示,还提供了一种接收端,该接收端可以执行上述实施例中图30至图37任一所述的方法,具体的,该发送端可以包括:接收器21、处理器22和发送器23,其中,As an implementation of the foregoing embodiments, in combination with the foregoing embodiments, in another embodiment provided by the present invention, as shown in FIG. 39, a receiving end is further provided, and the receiving end can execute FIG. 30 in the foregoing embodiment. The method of any of the methods of FIG. 37, specifically, the transmitting end may include: a
接收器21,用于接收端采集发送端发出的光线,所述光线包括第一旋光和第二旋光;The
所述处理器22,还用于将采集到的所述第一旋光和所述第二旋光转换为编码图像,所述编码图像包括第一编码数据和第二编码数据。The
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述处理器22,还用于通过圆偏振片将对所述光线转换为预设偏振方向光线;The
所述处理器22,还用于通过图像传感器采集所述预设偏振方向光线,得到编码图像。The
在本发明实施例中提供的一种可能的设计方式中,所述发送端发出的光线包 括R、G、B三个通道的光线,所述R、G、B三个通道的光线分别包含预设偏振方向光线。In a possible design manner provided in the embodiment of the present invention, the light packet sent by the sending end The light rays of the three channels R, G, and B respectively include light of a predetermined polarization direction.
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述接收器21,还用于通过图像传感器分别采集到包括R、G、B三个通道的预设偏振方向光线,分别生成第一编码图像、第二编码图像和第三编码图像;The
所述接收器21,还用于获取颜色校正图像,并根据所述颜色校正图像分别校正所述第一编码图像、第二编码图像和第三编码图像。The
在本发明实施例中提供的一种可能的设计方式中,所述第一编码图像、所述第二编码图像和所述第三编码图像均包括定位标识;In a possible design manner provided in the embodiment of the present invention, the first encoded image, the second encoded image, and the third encoded image each include a positioning identifier;
所述处理器22,还用于判断所述定位标识是否为第一编码数据;The
所述处理器22,还用于在判断到所述定位标识不是第一编码数据时,分别将所述第一编码图像、所述第二编码图像和所述第三编码图像做图像反色处理。The
在本发明实施例中提供的一种可能的设计方式中,In a possible design manner provided in the embodiment of the present invention,
所述接收器21,还用于通过光电探测器接收来自发送端发出的光线;The
所述处理器22,还用于获取所述光线的闪烁状态或强度状态信息,并将所述闪烁状态或强度状态信息转换为相应的接收数据。The
在本发明实施例中提供的一种可能的设计方式中,所述接收端还包括发送器23;In a possible design manner provided in the embodiment of the present invention, the receiving end further includes a
所述接收器21,还用于接收所述发送端发送的校正图像,所述校正图像包括多个清晰度的子图像;The
所述处理器22,还用于识别所述校正图像中的所述子图像,并确定识别到所述校正图像中清晰度最低的子图像;The
所述处理器22,还用于确定最小分辨率,所述最小分辨率为所述子图像中清晰度最低的子图像对应的分辨率;The
所述发送器23,还用于向所述发送端发送包含所述最小分辨率的信息。The
在本发明实施例中提供的一种可能的设计方式中,所述接收端还包括发送器23;In a possible design manner provided in the embodiment of the present invention, the receiving end further includes a
所述接收器21,还用于接收所述发送端发送的信号校准图像;The
所述处理器22,还用于生成对所述信号校准图像的图像识别信息,所述图像识别信息包括:编码图像的分辨率、编码图像的版本信息和中图像传感器的帧率;The
所述发送器23,还用于向所述发送端发送所述图像识别信息。
The
在本发明实施例中提供的一种可能的设计方式中,所述编码图像包括定位标识;In a possible design manner provided in the embodiment of the present invention, the coded image includes a positioning identifier;
所述处理器22,还用于判断所述定位标识是否为第二编码数据;The
所述处理器22,还用于在判断到所述定位标识不是第二编码数据时,将所述编码图像做图像反色处理。The
可以理解的是,本发明可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。It will be appreciated that the present invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including A distributed computing environment of any of the above systems or devices, and the like.
本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present invention. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.
Claims (40)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201780082862.5A CN110168963B (en) | 2017-01-18 | 2017-01-18 | Communication method and device |
| PCT/CN2017/071604 WO2018132984A1 (en) | 2017-01-18 | 2017-01-18 | Communication method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/071604 WO2018132984A1 (en) | 2017-01-18 | 2017-01-18 | Communication method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018132984A1 true WO2018132984A1 (en) | 2018-07-26 |
Family
ID=62907492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/071604 Ceased WO2018132984A1 (en) | 2017-01-18 | 2017-01-18 | Communication method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110168963B (en) |
| WO (1) | WO2018132984A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111262628B (en) * | 2020-03-17 | 2021-09-07 | 京东方科技集团股份有限公司 | Optical communication system and method thereof |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101299101A (en) * | 2008-06-17 | 2008-11-05 | 哈尔滨工业大学深圳研究生院 | Wireless light communication modulating method and modulating signal transmitting/receiving device |
| CN103293757A (en) * | 2013-05-30 | 2013-09-11 | 京东方科技集团股份有限公司 | Display device and display system |
| CN104253646A (en) * | 2013-06-26 | 2014-12-31 | 中兴通讯股份有限公司 | A visible light communication MIMO system and its method for realizing data transmission and reception |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000510974A (en) * | 1996-05-10 | 2000-08-22 | アイオプティックス インコーポレイテッド | Matching method and matching device for retrieving information from two-dimensional data array |
| WO2010055774A1 (en) * | 2008-11-17 | 2010-05-20 | 日本電気株式会社 | Communication system and receiver |
| DE102014000655A1 (en) * | 2014-01-17 | 2015-07-23 | Holger Köhler | Method and arrangement for transmitting information by means of linearly polarized electromagnetic waves |
| CN204795041U (en) * | 2015-06-29 | 2015-11-18 | 深圳大学 | Visible light communication system based on novel modulation mode |
| CN105162518B (en) * | 2015-09-11 | 2018-04-03 | 苏州卓鼎信息技术有限公司 | A kind of remote high speed visible light communication method based on palarization multiplexing |
-
2017
- 2017-01-18 WO PCT/CN2017/071604 patent/WO2018132984A1/en not_active Ceased
- 2017-01-18 CN CN201780082862.5A patent/CN110168963B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101299101A (en) * | 2008-06-17 | 2008-11-05 | 哈尔滨工业大学深圳研究生院 | Wireless light communication modulating method and modulating signal transmitting/receiving device |
| CN103293757A (en) * | 2013-05-30 | 2013-09-11 | 京东方科技集团股份有限公司 | Display device and display system |
| CN104253646A (en) * | 2013-06-26 | 2014-12-31 | 中兴通讯股份有限公司 | A visible light communication MIMO system and its method for realizing data transmission and reception |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110168963B (en) | 2021-08-20 |
| CN110168963A (en) | 2019-08-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Perli et al. | PixNet: Interference-free wireless links using LCD-camera pairs | |
| CN106372556B (en) | A kind of recognition methods of optical label | |
| CN104871453B (en) | Image display method and device | |
| US7328848B2 (en) | Method and system for transmitting data based on two-dimensional symbol technologies | |
| US10863202B2 (en) | Encoding data in a source image with watermark image codes | |
| US9240839B2 (en) | Transmitting data to a rolling shutter sensor array via a light emitter array | |
| US7411609B2 (en) | System and method for optically communicating information between a display and a camera | |
| US20120286672A1 (en) | Wireless pairing system and associated methods | |
| US9189827B2 (en) | Video codes for encoding/decoding streaming data | |
| CN111860730A (en) | Different network information transmission system based on image processing | |
| GB2414098A (en) | Data transfer with camera-enabled devices | |
| CN103986517B (en) | Method and system for transmitting information through dynamic two-dimensional image information | |
| CN107222258A (en) | A data acquisition method, data transmission method, device and data transmission system | |
| CN111460848B (en) | Reading equipment and method capable of identifying bar codes of various materials and color bar codes | |
| WO2018132984A1 (en) | Communication method and device | |
| EP3435557B1 (en) | Discrimination method and communication system | |
| Wengrowski et al. | Optimal radiometric calibration for camera-display communication | |
| CN103873778A (en) | Visible light signal receiving method and device and visible light communication system | |
| Hermans et al. | Focus: Robust visual codes for everyone | |
| CN115016716A (en) | Projection interaction method and system | |
| Sewpersadh et al. | Streaming QR codes–A survey | |
| Perli et al. | Pixnet: Lcd-camera pairs as communication links | |
| Melgar et al. | Channel capacity analysis of 2D barcodes: QR Code and CQR Code-5 | |
| Zhang et al. | Poster: Holographic optical tag enabled omnidirectional iot connection | |
| Bufalino et al. | Mamba: Adaptive and bi-directional data transfer for reliable camera-display communication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17892829 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17892829 Country of ref document: EP Kind code of ref document: A1 |