CN108629222B - Method for displaying image based on curved screen - Google Patents

Method for displaying image based on curved screen Download PDF

Info

Publication number
CN108629222B
CN108629222B CN201810449751.XA CN201810449751A CN108629222B CN 108629222 B CN108629222 B CN 108629222B CN 201810449751 A CN201810449751 A CN 201810449751A CN 108629222 B CN108629222 B CN 108629222B
Authority
CN
China
Prior art keywords
image
dimensional code
curved screen
corrected
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810449751.XA
Other languages
Chinese (zh)
Other versions
CN108629222A (en
Inventor
高同庆
王新志
余春雨
宋虎
李志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Co Ltd
Original Assignee
Hisense Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201810449751.XA priority Critical patent/CN108629222B/en
Publication of CN108629222A publication Critical patent/CN108629222A/en
Application granted granted Critical
Publication of CN108629222B publication Critical patent/CN108629222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a method and equipment for displaying and identifying images based on a curved screen, relates to the technical field of image processing, and aims to solve the problem of low identification success rate when the images displayed on the curved screen are scanned in the prior art. The method is applied to a display device with a curved screen, and comprises the following steps: generating a new image according to the bending degree of the curved screen and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected; displaying a new image on the curved screen; and the size of an image obtained after a new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected.

Description

Method for displaying image based on curved screen
The application is a divisional application of Chinese patent application 201510388471.9 entitled "a method and apparatus for displaying and recognizing images based on curved screen" filed on year 2015, month 07 and 03.
Technical Field
The invention relates to the technical field of image processing, in particular to a method and equipment for displaying and identifying an image based on a curved screen.
Background
The two-dimensional code records data symbol information by using black and white figures which are distributed on a plane according to a certain rule by using a certain specific geometric figure, and the application range of the two-dimensional code is very wide. Curved televisions, i.e., televisions having curved screens, are widely used due to the advantages of high contrast, wide viewing angle, etc. When the original two-dimensional code is directly displayed on the curved-surface television, the two-dimensional code obtained by scanning of equipment such as a smart phone can deform compared with the original two-dimensional code, and therefore the problem of low recognition success rate is caused.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for displaying and identifying an image based on a curved screen, which are used for solving the problem of low identification success rate when the image displayed on the curved screen is scanned in the prior art, wherein the image comprises a two-dimensional code or a bar code.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for displaying an image based on a curved screen is provided, where the method is applied to a display device having a curved screen, and the method includes:
generating a new image according to the bending degree of the curved screen and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected;
displaying the new image on the curved screen; and the size of the image obtained after the new image displayed on the curved screen is mapped onto the plane is equal to that of the image to be corrected.
In a second aspect, a method for recognizing an image based on a curved screen is provided, which includes:
scanning an image to be corrected displayed on a curved screen of a display device to obtain a first scanned image; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected;
identifying the first scan image;
if the identification fails, sending a correction request message to the display equipment; enabling the display device to generate a new image according to the bending degree of the curved screen and the image to be corrected under the trigger of the correction request message, and displaying the new image on the curved screen; the size of an image obtained after the new image displayed on the curved screen is mapped onto a plane is equal to that of the image to be corrected;
scanning the new image displayed on the curved screen to obtain a second scanned image;
the second scan image is identified.
In a third aspect, there is provided a display device having a curved screen, the display device comprising:
the generating unit is used for generating a new image according to the bending degree of the curved screen and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected;
the curved screen is used for displaying the new image generated by the generating unit; and the size of the image obtained after the new image displayed on the curved screen is mapped onto the plane is equal to that of the image to be corrected.
In a fourth aspect, there is provided an identification apparatus for identifying an image displayed on a curved screen, the identification apparatus comprising:
the scanning unit is used for scanning an image to be corrected displayed on a curved screen of the display equipment to obtain a first scanned image; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected;
the identification unit is used for identifying the first scanning image obtained by scanning of the scanning unit;
a transmission unit configured to transmit a correction request message to the display apparatus in a case where the identification by the identification unit fails; enabling the display device to generate a new image according to the bending degree of the curved screen and the image to be corrected under the trigger of the correction request message, and displaying the new image on the curved screen; the size of an image obtained after the new image displayed on the curved screen is mapped onto a plane is equal to that of the image to be corrected;
the scanning unit is further configured to scan the new image displayed on the curved screen to obtain a second scanned image;
the identification unit is further configured to identify the second scanned image.
In the technical scheme, the display equipment generates a new image according to the bending degree of the curved screen and the image to be corrected; displaying the new image on the curved screen; and mapping a new image displayed on the curved screen onto the plane to obtain an image with the same size as the image to be corrected. According to the technical scheme, a new image obtained by correction is displayed on the curved surface screen, so that the size of an image obtained after the scanning equipment scans the new image displayed on the curved surface screen is equal to that of an image to be corrected; compared with the technical scheme that the original image (namely the image to be corrected) is directly displayed on the curved screen in the prior art, the method and the device can reduce the deformation of the image obtained by scanning of the scanning equipment relative to the original image, thereby improving the identification success rate.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of a curved surface according to an embodiment of the present invention;
FIG. 2 is a schematic view of another curved surface provided by an embodiment of the present invention;
fig. 3 is a schematic flow chart of displaying an image based on a curved screen according to an embodiment of the present invention;
fig. 4 is a schematic process diagram of a method for displaying a two-dimensional code based on a curved screen according to the prior art;
fig. 5 is a schematic process diagram of a method for displaying a two-dimensional code based on a curved screen according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a method for recognizing an image based on a curved screen according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a method for displaying and identifying a two-dimensional code based on a curved-surface screen according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of mapping pixel points on an original two-dimensional code onto a curved screen according to the degree of curvature of the curved screen;
fig. 9 is a schematic structural diagram of a display device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another display device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another display device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another display device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of an identification device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of another identification device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention or technical solutions in the prior art will be described below by way of examples in conjunction with the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some terms in the embodiments of the present invention are first explained to facilitate understanding by those skilled in the art.
1) Curved screen
"curved screen" may include, but is not limited to, any of the following: LCD (Liquid Crystal Display), LED (Light Emitting Diode) Display, plastic Display, and the like. Wherein, "curved surface" may include, but is not limited to, any of the following: a part of any curved surface such as a cylindrical surface, a ring surface, a conical surface, a spherical surface, etc., may be a convex surface or a concave surface.
It should be noted that, when the type and the bending direction of the curved surface are different, the image displayed on the curved surface is deformed in a different direction than the original image (i.e., the image to be corrected). For example, if the curved surface is a cylindrical surface and the curved direction of the cylindrical surface is a horizontal direction, as shown in fig. 1, an image displayed on the curved surface is distorted in the horizontal direction compared to the original image, and is not distorted in the vertical direction. If the curved direction of the cylindrical surface is the vertical direction, as shown in fig. 2, the image displayed on the curved surface is deformed in the vertical direction and is not deformed in the horizontal direction compared to the original image. For example, when the curved surface is a spherical surface, an image displayed on the curved surface is distorted in both the horizontal direction and the vertical direction compared to the original image.
In the embodiments of the present invention, a curved surface is taken as an example for description, and specifically, a cylindrical surface as shown in fig. 1 is taken as an example for description. From the described examples of the present invention, a person skilled in the art should deduce how to implement the technical solutions provided by the embodiments of the present invention under other types of curved surfaces.
2) Display device with curved screen
The "display device with curved screen" may be any device comprising a processor and a curved screen, such as a curved television, a curved cell phone, a curved smart billboard, etc.
3) "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
Example one
Referring to fig. 3, a schematic flow chart of a method for displaying an image based on a curved screen according to an embodiment of the present invention is shown. The method shown in fig. 3 is applied to a display device having a curved screen, and includes:
s301, generating a new image according to the bending degree of the curved screen and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected.
S302, displaying a new image on the curved screen; and the size of an image obtained after a new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected.
For example, the display device having a curved screen may perform steps S301 to S302 before displaying the image, so that a new image is directly displayed on the curved screen and the image to be corrected is not displayed; it is also possible to display the image to be corrected on the curved screen first and execute steps S301 to S302 under the trigger of the received correction request message. Wherein, the correction request message is used for requesting to correct the image to be corrected displayed on the curved screen.
When the curved surface is a cylindrical surface, the "degree of curvature of the curved screen" may be characterized using parameters such as a radius of the curved screen, a curvature of the curved screen, and the like. When the curved surface is of another type, the parameters for characterizing the degree of curvature of the curved screen can be referred to the prior art.
Optionally, S301 may be implemented as: and generating a new image of the image to be corrected according to the bending degree of the curved screen. It can also be implemented as: and obtaining a copy of the image to be corrected, and generating a new image from the copy of the image to be corrected.
"an image obtained by mapping a new image displayed on a curved screen onto a flat surface" corresponds to: scanning a new image displayed on the curved screen by scanning equipment to obtain an image; wherein "plane" can be understood as a flat screen; the scanning device may be a smartphone, a tablet computer, or the like.
It should be noted that the same image displayed on different screens is mapped onto a plane to obtain different images; the different screens may be a curved screen and a flat screen, or may be curved screens with different degrees of curvature.
According to the method for displaying the image based on the curved screen, a new image is generated according to the bending degree of the curved screen and the image to be corrected; displaying the new image on the curved screen; and mapping a new image displayed on the curved screen onto the plane to obtain an image with the same size as the image to be corrected. According to the technical scheme, a new image obtained by correction is displayed on the curved surface screen, so that the size of an image obtained after the scanning equipment scans the new image displayed on the curved surface screen is equal to that of an image to be corrected; compared with the technical scheme that the original image (namely the image to be corrected) is directly displayed on the curved screen in the prior art, the method and the device can reduce the deformation of the image obtained by scanning of the scanning equipment relative to the original image, thereby improving the identification success rate.
It should be noted that, in the prior art, "scanning the two-dimensional code obtained after the original two-dimensional code directly displayed on the curved screen, compared with the original two-dimensional code, the two-dimensional code may deform", specifically includes: compared with the corresponding graph in the original two-dimensional code, the black graph and/or the white graph on the two-dimensional code obtained after scanning can deform; because the two-dimensional code records information according to the size, distribution and the like of black and white patterns, the information represented by the two-dimensional code obtained by scanning in the prior art is changed compared with the information represented by the original two-dimensional code, and the recognition success rate is low.
In the technical scheme provided by the embodiment of the invention, the image to be corrected is corrected, so that the size of the image obtained after the scanning equipment scans a new image displayed on a curved screen is equal to that of the image to be corrected; because the correction is based on the bending degree of the curved screen, and the correction of the image to be corrected is embodied as correcting each black figure and white figure in the image to be corrected, the size of each black figure and white figure in the scanned image can be ensured to be the same as much as possible as the size and distribution of the corresponding figure in the image to be corrected by enabling the size of the image obtained by scanning a new image displayed on the curved screen by the scanning equipment to be equal to the size of the image to be corrected, and therefore the information represented by the scanned image can be the same as much as possible as the information represented by the image to be corrected, and the recognition success rate is improved.
Optionally, S301 includes: mapping each pixel point on the image to be corrected according to the bending degree of the curved screen to obtain an intermediate image; the intermediate image comprises all pixel points on the image to be corrected and pixel points with empty pixel values; and interpolating the pixel points with empty pixel values in the intermediate image by using an interpolation algorithm and the pixel values of each pixel point in the image to be corrected to obtain a new image.
For example, since the size of an image (i.e., an intermediate image) obtained by mapping each pixel point on the image to be corrected according to the degree of curvature of the curved screen is larger than that of the image to be corrected, the intermediate image not only includes each pixel point in the image to be corrected, but also includes pixel points with empty pixel values; specific examples can be found in the following.
Interpolation algorithms may include, but are not limited to: a close-sampling algorithm, a bilinear interpolation method, a cubic convolution method, etc. Since two-dimensional codes and bar codes are typically constructed in black and white, an adjacent sampling algorithm is optionally used to interpolate so that the new image is also constructed in black and white. Specific examples of this alternative implementation can be found below.
In a specific implementation, after the intermediate image is obtained, the pixel value of the pixel point whose pixel value is null in the intermediate image may be set as a default value, so as to obtain a new image. The two-dimensional code and the bar code are generally formed by black and white colors, so that the default value can be the pixel value of a black pixel point and can also be the pixel value of a white pixel point.
The following describes, by way of a specific example, differences between the method for displaying an image based on a curved screen according to an embodiment of the present invention and the related art. In this specific example, the "image" is taken as an example of a two-dimensional code to explain:
referring to fig. 4, a schematic process diagram of a method for displaying a two-dimensional code based on a curved screen is provided in the prior art. It is assumed that the size of the original two-dimensional code (i.e., the two-dimensional code to be corrected) is 3cm (centimeters) × 3cm, as shown in (a) of fig. 4. Then, the two-dimensional code obtained after the original two-dimensional code shown in (a) in fig. 4 is displayed on the curved screen is shown in (b) in fig. 4; in the process, the original two-dimensional code is changed from an original straight line into an arc line in the horizontal direction, and the chord length of the arc line is 2.8 cm. Thus, the two-dimensional code obtained after scanning the two-dimensional code shown in fig. 4 (b) is shown in fig. 4 (c).
Referring to fig. 5, a schematic process diagram of a method for displaying a two-dimensional code based on a curved screen according to an embodiment of the present invention is shown. Assume that the size of the original two-dimensional code is 3cm × 3cm, as shown in (a) of fig. 5. Then, the original two-dimensional code shown in (a) of fig. 5 generates a new two-dimensional code as shown in (a)' of fig. 5; wherein, the length of the new two-dimensional code in the horizontal direction is 3.2 cm. The two-dimensional code obtained after displaying the new two-dimensional code shown in (a) 'in fig. 5 on the curved screen is shown in (b)' in fig. 5. Wherein, in the process, the new two-dimensional code has become the camber line by the straight line in the horizontal direction, and the chord length of camber line is 3 cm. Thus, a two-dimensional code obtained after scanning the two-dimensional code shown in (b) 'in fig. 5 is shown in (c)' in fig. 5.
Alternatively, the process of generating the new two-dimensional code shown in (a)' in fig. 5 from the original two-dimensional code shown in (a) in fig. 5 may be implemented as follows: mapping the original two-dimensional code shown in (a) in fig. 5 to generate an intermediate two-dimensional code; and then, interpolating the pixel points of which the pixels in the intermediate two-dimensional code are empty by using an interpolation algorithm to obtain a new two-dimensional code shown in (a)' in fig. 5. The following may be referred to as a method for generating the intermediate two-dimensional code and performing interpolation.
Example two
Referring to fig. 6, a schematic flow chart of a method for recognizing an image based on a curved screen according to an embodiment of the present invention is shown. For explanation of relevant contents in this embodiment, the above is referred to. The method shown in fig. 6 includes:
s601: scanning an image to be corrected displayed on a curved screen of a display device to obtain a first scanned image; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected.
The execution main body of the embodiment may be a scanning device for scanning an image displayed on a curved screen, and specifically may be a smart phone, a tablet computer, or the like.
S602: a first scan image is identified.
For example, an application for identifying an image is installed in the scanning device, a first scanned image is identified based on the application, and if the identification is successful, information represented by the image to be corrected can be obtained; if the recognition fails, the information represented by the image to be corrected cannot be obtained, and the following steps may be further performed to obtain the information represented by the image to be corrected.
S603: if the identification fails, sending a correction request message to the display equipment; so that the display device generates a new image according to the bending degree of the curved screen and the image to be corrected under the trigger of the correction request message, and displays the new image on the curved screen; and the size of an image obtained after a new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected.
S604: and scanning a new image displayed on the curved screen to obtain a second scanned image.
S605: a second scanned image is identified.
In the method for identifying an image provided by this embodiment, a first scanned image is obtained by scanning an image to be corrected displayed on a curved screen of a display device; in case of failure to recognize the first scanned image, the display device is triggered to correct the image to be corrected, so as to recognize a new image obtained after correction. The size of the image obtained after the new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected, namely, the size of the image obtained after the new image displayed on the curved screen is scanned is equal to that of the image to be corrected; compared with the technical scheme of directly scanning and displaying the original image (namely the image to be corrected) on the curved screen in the prior art, the method and the device can reduce the deformation of the scanned image relative to the original image, thereby improving the identification success rate. Specifically, in the present embodiment, the success rate of recognizing the second scanned image is greater than the success rate of recognizing the first scanned image.
EXAMPLE III
Referring to fig. 7, a schematic flow chart of a method for displaying and identifying a two-dimensional code based on a curved screen according to an embodiment of the present invention is shown. The method shown in fig. 7 includes:
s701: the display equipment displays the original two-dimensional code on the curved screen. The "original two-dimensional code" is the above two-dimensional code to be corrected.
S702: the scanning device scans the original two-dimensional code displayed on the curved screen of the display device to obtain a first scanning two-dimensional code.
S703: the scanning equipment identifies the first scanning two-dimensional code and judges whether the identification is successful.
If yes, ending; if not, go to S704.
S704: the scanning equipment sends a correction request message to the display equipment; and the correction request message is used for requesting to correct the original two-dimensional code displayed on the curved surface screen.
S705: and the display equipment maps each pixel point on the original two-dimensional code according to the bending degree of the curved screen under the trigger of the correction request message to obtain a middle two-dimensional code.
As shown in fig. 8, the schematic diagram is a schematic diagram that the pixel points on the original two-dimensional code are mapped onto the curved screen according to the bending degree of the curved screen. The line segment OC in fig. 8 represents the length l of the original two-dimensional code in the horizontal direction, and the arc line OC represents a portion of the curved screen, wherein the portion is mapped onto a plane to obtain the line segment OC. The endpoint B is the position of any pixel point on the line segment OC, and the endpoint a is the position obtained after the pixel point at the endpoint B is mapped onto the arc OC.
The relationship between the length c of the arc OA and the length x of the line segment OB can be expressed as:
Figure BDA0001658141550000091
wherein the content of the first and second substances,
Figure BDA0001658141550000092
r represents the radius of the curved screen.
Based on fig. 8, S705 may include: firstly, obtaining R and l; then, a line segment OC of the original two-dimensional code in the horizontal direction is determined, and an arc line OC is obtained according to the top view of the curved screen. Then, the position B of each pixel point on the line segment OC is determined in sequence, and the length x of the line segment OB is determined. Finally, using the formula
Figure BDA0001658141550000093
Obtaining the length c of the arc OA, and determining the position A of the mapped pixel point according to the length c; and converting the arc OC and the position A where each pixel point is to the line segment with the arc length equal to that of the arc OC, thereby obtaining the middle two-dimensional code. Illustratively, as shown in (a)' of fig. 5, a schematic diagram of an intermediate two-dimensional code obtained from an original two-dimensional code is shown.
For example, assuming that each line of the original two-dimensional code has 10 pixel points, mapping the 10 pixel points to a curved screen according to the method to obtain 13 pixel points; the pixel values of the 10 pixels are expressed as arrays [ a0, a1, a2, a3, a4, a5, a6, a7, a8 and a9], and the pixel values of the 13 pixels obtained after mapping are expressed as arrays [ a0, a1, a2, b0, a3, a4, b1, a5, a6, b2, a7, a8 and a9 ]; wherein b0, b1 and b2 are empty. It should be noted that, after a pixel point on the line segment OC is mapped onto the arc line OC according to the above formula, if the obtained position is the position of the pixel point on the arc line OC, the position is taken as the target position; and if the obtained position is not the position of any pixel point on the arc line OC, taking the position of the pixel point closest to the position as the target position.
S706: and the display equipment interpolates the pixel points with empty pixel values in the intermediate two-dimensional code by using the adjacent sampling algorithm and the pixel values of all the pixel points in the original two-dimensional code to obtain a new two-dimensional code.
For example, the display device uses the pixel value of the previous pixel point adjacent to the pixel point with the empty pixel value in the intermediate two-dimensional code as the pixel value of the pixel point with the empty pixel value. Thus, based on the example in S705, the pixel values of the 13 pixel points obtained after interpolation may be [ a0, a1, a2, a2, a3, a4, a4, a5, a6, a6, a7, a8, a9 ].
Of course, in a specific implementation, the pixel value of any other pixel point (for example, an adjacent subsequent pixel point, etc.) adjacent to the pixel point whose pixel value is null in the original two-dimensional code may also be used as the pixel value of the pixel point whose pixel value is null.
S707: and the display equipment displays the new two-dimension code on the curved screen and replies a correction response message to the scanning equipment. Wherein the correction response message is used for informing the scanning device that the correction of the original two-dimensional code is completed so that the scanning device scans the new two-dimensional code.
S708: and scanning the new two-dimensional code displayed on the curved surface screen by the scanning equipment to obtain a second scanned two-dimensional code.
S709: the scanning device identifies the second scanned two-dimensional code.
After step S709 is executed, the process ends.
In the method for displaying and identifying a two-dimensional code based on a curved screen provided by this embodiment, when a scanning device scans an original two-dimensional code displayed on a curved screen and fails to identify the original two-dimensional code, a correction request message is sent to a display device; the display equipment generates a new two-dimensional code from the original two-dimensional code according to the bending degree of the curved screen under the trigger of the correction request message; displaying the new two-dimension code on the curved screen; and the size of the two-dimensional code obtained by mapping the new two-dimensional code displayed on the curved screen to the plane is equal to that of the original two-dimensional code. According to the technical scheme, the corrected new two-dimensional code is displayed on the curved screen, so that the two-dimensional code obtained after the scanning equipment scans the new two-dimensional code displayed on the curved screen is equal to the original two-dimensional code in size; compared with the technical scheme that the original two-dimensional code is directly displayed on the curved-surface screen in the prior art, the deformation of the two-dimensional code obtained by scanning of the scanning equipment relative to the original two-dimensional code can be reduced, and therefore the recognition success rate can be improved.
Example four
Fig. 9 is a schematic structural diagram of a display device according to an embodiment of the present invention. The display device 9 shown in fig. 9 is used to execute the method for displaying an image based on a curved screen provided above, and the explanation of the relevant contents in the present embodiment may refer to the above.
The display device 9 has a curved screen 91, and the display device 9 further includes: a generating unit 92 for generating a new image according to the degree of curvature of the curved screen 91 and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected; the curved screen 91 is used for displaying a new image generated by the generation unit 92; the size of the image obtained by mapping the new image displayed on the curved screen 91 onto the plane is equal to the size of the image to be corrected.
In an implementation manner of this embodiment, the generating unit 92 is specifically configured to: according to the bending degree of the curved screen 91, mapping each pixel point on the image to be corrected to obtain an intermediate image; the intermediate image comprises all pixel points on the image to be corrected and pixel points with empty pixel values; and interpolating the pixel points with empty pixel values in the intermediate image by using an interpolation algorithm and the pixel values of each pixel point in the image to be corrected to obtain a new image. Preferably, the interpolation algorithm comprises: an adjacent sampling algorithm.
In another implementation manner of this embodiment, as shown in fig. 10, the display device 9 further includes: a receiving unit 93 configured to receive a correction request message; wherein, the correction request message is used to request to correct the image to be corrected displayed on the curved screen 91; in this case, the generating unit 92 is specifically configured to: under the trigger of the correction request message, a new image is generated from the degree of curvature of the curved screen 91 and the image to be corrected.
The display device provided by the embodiment generates a new image according to the bending degree of the curved screen and the image to be corrected; displaying the new image on the curved screen; and mapping a new image displayed on the curved screen onto the plane to obtain an image with the same size as the image to be corrected. According to the technical scheme, a new image obtained by correction is displayed on the curved surface screen, so that the size of an image obtained after the scanning equipment scans the new image displayed on the curved surface screen is equal to that of an image to be corrected; compared with the technical scheme that the original image (namely the image to be corrected) is directly displayed on the curved screen in the prior art, the method and the device can reduce the deformation of the image obtained by scanning of the scanning equipment relative to the original image, thereby improving the identification success rate.
In a hardware implementation, the generating unit 92 may be embedded in a processor of the display device or independent from the processor of the display device in a hardware form, or may be stored in a memory of the display device in a software form, so that the processor can call operations in the processor. The processor can be a Central Processing Unit (CPU), a microprocessor, a single chip microcomputer, etc. The receiving unit 93 may be a receiver.
Fig. 11 is a schematic structural diagram of a display device according to an embodiment of the present invention. The display device 11 shown in fig. 11 is used to perform the method of displaying an image based on a curved screen provided above. The display device 11 has a curved screen 11A, and the display device 11 further includes: memory 11B, processor 11C and bus system 11D.
The curved screen 11A, the memory 11B and the processor 11C are coupled together through a bus system 11D, wherein the bus system 11D may include a power bus, a control bus, a status signal bus, and the like in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 11D in the figures.
A memory 11B for storing a set of codes; the code is used for the control processor 11C to determine the control signaling.
The processor 11C is configured to generate a new image according to the degree of curvature of the curved screen 11A and the image to be corrected; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected; the curved screen 11A is used to display a new image generated by the processor 11C; the size of the image obtained after the new image displayed on the curved screen 11A is mapped onto the plane is equal to the size of the image to be corrected.
In an implementation manner of this embodiment, the processor 11C is specifically configured to: mapping each pixel point on the image to be corrected according to the bending degree of the curved screen to obtain an intermediate image; the intermediate image comprises all pixel points on the image to be corrected and pixel points with empty pixel values; and interpolating the pixel points with empty pixel values in the intermediate image by using an interpolation algorithm and the pixel values of each pixel point in the image to be corrected to obtain a new image. Preferably, the interpolation algorithm comprises: an adjacent sampling algorithm.
In another implementation manner of the present embodiment, as shown in fig. 12, the display device 1 further includes: a receiver 11E for receiving a correction request message; wherein, the correction request message is used for requesting to correct the image to be corrected displayed on the curved screen 11A; in this case, the processor 11B is specifically configured to: under the trigger of the correction request message, a new image is generated from the degree of curvature of the curved screen 11A and the image to be corrected.
EXAMPLE five
Referring to fig. 13, a schematic structural diagram of an identification device according to an embodiment of the present invention is provided. The recognition device 13 shown in fig. 13 is for executing the method of recognizing an image based on a curved screen provided above; the identification device 13 includes: a scanning unit 13A, a recognition unit 13B, and a transmission unit 13C.
The scanning unit 13A is configured to scan an image to be corrected displayed on a curved screen of the display device to obtain a first scanned image; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected.
The recognition unit 13B is configured to recognize the first scanned image scanned by the scanning unit 13A.
The transmission unit 13C is configured to transmit a correction request message to the display device in a case where the recognition unit 13B fails to recognize; so that the display device generates a new image according to the bending degree of the curved screen and the image to be corrected under the trigger of the correction request message, and displays the new image on the curved screen; and the size of an image obtained after a new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected.
The scanning unit 13A is further configured to scan a new image displayed on the curved screen to obtain a second scanned image.
The recognition unit 13B is also used to recognize the second scanned image.
The identification device provided by this embodiment obtains a first scanned image by scanning an image to be corrected displayed on a curved screen of a display device; in case of failure to recognize the first scanned image, the display device is triggered to correct the image to be corrected, so as to recognize a new image obtained after correction. The size of the image obtained after the new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected, namely, the size of the image obtained after the new image displayed on the curved screen is scanned is equal to that of the image to be corrected; compared with the technical scheme of directly scanning and displaying the original image (namely the image to be corrected) on the curved screen in the prior art, the method and the device can reduce the deformation of the scanned image relative to the original image, thereby improving the identification success rate. Specifically, in the present embodiment, the success rate of recognizing the second scanned image is greater than the success rate of recognizing the first scanned image.
In a hardware implementation, the scanning unit 13A may be a camera. The identification unit 13B may be embedded in hardware or may be independent of the processor of the identification device, or may be stored in software in the memory of the identification device, so that the processor can call the operation in the processor. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like. The transmitting unit 13C may be a transmitter.
Fig. 14 is a schematic structural diagram of an identification device according to an embodiment of the present invention. The recognition device 14 shown in fig. 14 is used to perform the method of recognizing an image based on a curved screen provided above. The identification device 14 includes: memory 14A, processor 14B, camera 14C, transmitter 14D, and bus system 14E.
The memory 14A, the processor 14B, the camera 14C and the transmitter 14D are coupled together by a bus system 14E, wherein the bus system 14E may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in the figure as bus system 14E.
A memory 14A for storing a set of codes; the code is used to control the processor 14B to determine control signaling.
The camera 14C is configured to scan an image to be corrected displayed on a curved screen of the display device to obtain a first scanned image; the image to be corrected comprises a two-dimensional code to be corrected or a bar code to be corrected. The processor 14B is configured to identify a first scanned image scanned by the camera 14C.
The transmitter 14D is configured to transmit a correction request message to the display device in a case where the processor 14B recognizes a failure; so that the display device generates a new image according to the bending degree of the curved screen and the image to be corrected under the trigger of the correction request message, and displays the new image on the curved screen; and the size of an image obtained after a new image displayed on the curved screen is mapped on the plane is equal to that of the image to be corrected.
The camera 14C is also used to scan a new image displayed on the curved screen to obtain a second scanned image. The processor 14B is also configured to identify a second scanned image.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (1)

1. A method for displaying an image based on a curved screen, the method being applied to a display device having a curved screen, the method comprising:
s701: the display equipment displays the original two-dimensional code on the curved screen;
s702: scanning an original two-dimensional code displayed on a curved screen of a display device by a scanning device to obtain a first scanned two-dimensional code;
s703: the scanning equipment identifies the first scanning two-dimensional code and judges whether the identification is successful;
if yes, ending; if not, go to S704;
s704: the scanning equipment sends a correction request message to the display equipment; the correction request message is used for requesting to correct the original two-dimensional code displayed on the curved surface screen;
s705: under the trigger of the correction request message, the display equipment maps each pixel point on the original two-dimensional code according to the bending degree of the curved screen to obtain a middle two-dimensional code;
s706: the display equipment interpolates the pixel points with empty pixel values in the intermediate two-dimensional code by using a near sampling algorithm and the pixel values of all the pixel points in the original two-dimensional code to obtain a new two-dimensional code;
s707: the display device displays a new two-dimensional code on a curved screen and replies a correction response message to the scanning device, wherein the two-dimensional code obtained after the new two-dimensional code displayed on the curved screen is mapped on a plane has the same size as the original two-dimensional code, and the correction response message is used for informing the scanning device that the original two-dimensional code has been corrected so that the scanning device scans the new two-dimensional code;
s708: scanning a new two-dimensional code displayed on the curved screen by the scanning equipment to obtain a second scanned two-dimensional code;
s709: the scanning device identifies the second scanned two-dimensional code.
CN201810449751.XA 2015-07-03 2015-07-03 Method for displaying image based on curved screen Active CN108629222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810449751.XA CN108629222B (en) 2015-07-03 2015-07-03 Method for displaying image based on curved screen

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510388471.9A CN105095818B (en) 2015-07-03 2015-07-03 A kind of method and apparatus that image is shown, identified based on curve screens
CN201810449751.XA CN108629222B (en) 2015-07-03 2015-07-03 Method for displaying image based on curved screen

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510388471.9A Division CN105095818B (en) 2015-07-03 2015-07-03 A kind of method and apparatus that image is shown, identified based on curve screens

Publications (2)

Publication Number Publication Date
CN108629222A CN108629222A (en) 2018-10-09
CN108629222B true CN108629222B (en) 2021-01-26

Family

ID=54576214

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510388471.9A Active CN105095818B (en) 2015-07-03 2015-07-03 A kind of method and apparatus that image is shown, identified based on curve screens
CN201810449751.XA Active CN108629222B (en) 2015-07-03 2015-07-03 Method for displaying image based on curved screen

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510388471.9A Active CN105095818B (en) 2015-07-03 2015-07-03 A kind of method and apparatus that image is shown, identified based on curve screens

Country Status (1)

Country Link
CN (2) CN105095818B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023723B (en) * 2016-06-15 2018-01-02 上海葡萄纬度科技有限公司 A kind of Educational toy external member and its convex mirror image-forming correction method
CN106201392A (en) * 2016-06-27 2016-12-07 北京小米移动软件有限公司 The display control method of curve screens and device
CN106454478B (en) * 2016-09-09 2019-04-02 腾讯科技(深圳)有限公司 A kind of graphical identification code method of adjustment, apparatus and system
KR101993512B1 (en) * 2017-04-21 2019-09-30 성균관대학교산학협력단 An apparatus of presenting encryption code for screen-to-camera communication, and method thereof
CN107392283B (en) * 2017-07-04 2020-02-21 新大陆数字技术股份有限公司 Method and system for generating cylindrical surface deformed bar code
CN108921843B (en) * 2018-07-05 2022-08-12 深圳市路畅科技股份有限公司 System and method for detecting performance of vehicle-mounted navigator
KR102085480B1 (en) 2019-06-14 2020-05-18 이광열 Apparatus, system, method, and computer program for printing qr code
CN110490825B (en) * 2019-08-23 2021-01-22 珠海随变科技有限公司 Method, device and equipment for correcting coded picture and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621701A (en) * 2009-01-04 2010-01-06 四川川大智胜软件股份有限公司 Correcting method of multiple projector display wall colors of arbitrary smooth curve screens independent of geometric correction
CN102263900A (en) * 2010-05-26 2011-11-30 佳能株式会社 Image processing apparatus and image processing method
CN102609673A (en) * 2011-01-19 2012-07-25 汉斯·杰里·乌尔本·彼得森 Method for displaying optical visual codes on display devices
CN104057719A (en) * 2013-03-23 2014-09-24 杨筑平 Bar code printing method, device and system and bar code label
CN104123137A (en) * 2014-07-21 2014-10-29 联想(北京)有限公司 Information processing method and electronic device
KR20150011462A (en) * 2013-07-23 2015-02-02 주식회사 탐컴퍼니 Apparatus and method for compensating axis of round screen

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012049795A1 (en) * 2010-10-12 2012-04-19 パナソニック株式会社 Display processing device, display method and program
CN104202829B (en) * 2014-08-01 2018-03-16 惠州Tcl移动通信有限公司 The connection method of Wireless Display and mobile device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621701A (en) * 2009-01-04 2010-01-06 四川川大智胜软件股份有限公司 Correcting method of multiple projector display wall colors of arbitrary smooth curve screens independent of geometric correction
CN102263900A (en) * 2010-05-26 2011-11-30 佳能株式会社 Image processing apparatus and image processing method
CN102609673A (en) * 2011-01-19 2012-07-25 汉斯·杰里·乌尔本·彼得森 Method for displaying optical visual codes on display devices
CN104057719A (en) * 2013-03-23 2014-09-24 杨筑平 Bar code printing method, device and system and bar code label
KR20150011462A (en) * 2013-07-23 2015-02-02 주식회사 탐컴퍼니 Apparatus and method for compensating axis of round screen
CN104123137A (en) * 2014-07-21 2014-10-29 联想(北京)有限公司 Information processing method and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《QR码的图像恢复和识别技术研究与实现》;李军;《中国优秀硕士学位论文全文数据库信息科技辑》;20110515;第I138-853页 *
《Research on Binarization of QR Code Image》;Jiejing Zhou等;《IEEE Xplore》;20101231;第1-4页 *

Also Published As

Publication number Publication date
CN105095818B (en) 2018-08-21
CN105095818A (en) 2015-11-25
CN108629222A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN108629222B (en) Method for displaying image based on curved screen
US8630506B2 (en) Image correcting device, method for creating corrected image, correction table creating device, method for creating correction table, program for creating correction table, and program for creating corrected image
US10930252B2 (en) Dividing image data into regional images of different resolutions based on a gaze point and transmitting the divided image data
EP2075761B1 (en) Method and device for adjusting output frame
CN107396075B (en) Method and device for generating projection image correction information
US8515130B2 (en) Conference system, monitoring system, image processing apparatus, image processing method and a non-transitory computer-readable storage medium
EP3989049A1 (en) Screen display method and apparatus
CN113256742B (en) Interface display method and device, electronic equipment and computer readable medium
EP3133804A1 (en) Method for correcting image from wide-angle lens and device therefor
US8724922B2 (en) Image correcting device, method for creating corrected image, correction table creating device, method for creating correction table, program for creating correction table, and program for creating corrected image
CN111292278A (en) Image fusion method and device, storage medium and terminal
JP2004320661A (en) Method for correcting area outside screen in geometrical correction interface using auxiliary line
US10902561B2 (en) Image processing apparatus, image processing method, and recording medium
CN111429382A (en) Panoramic image correction method and device and computer storage medium
CN108734665A (en) A kind of bearing calibration of image, device, equipment and storage medium
JP2009302731A (en) Image processing apparatus, image processing program, image processing method, and electronic device
CN112562013B (en) Multi-lens camera calibration method, device and storage medium
CN113947097B (en) Two-dimensional code identification method and electronic equipment
CN111428707B (en) Method and device for identifying pattern identification code, storage medium and electronic equipment
CN110786017B (en) Distributed image generation method
CN111062874B (en) Text image display method, device, equipment and storage medium
JP2014038200A (en) Display device, banking system device, and liquid crystal screen display method
CN110490825B (en) Method, device and equipment for correcting coded picture and storage medium
CN111480335B (en) Image processing device, image processing method, program, and projection system
CN116777752A (en) Image correction method, image correction device, electronic device, storage medium, and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant