WO2020034981A1 - Method for generating encoded information and method for recognizing encoded information - Google Patents

Method for generating encoded information and method for recognizing encoded information Download PDF

Info

Publication number
WO2020034981A1
WO2020034981A1 PCT/CN2019/100521 CN2019100521W WO2020034981A1 WO 2020034981 A1 WO2020034981 A1 WO 2020034981A1 CN 2019100521 W CN2019100521 W CN 2019100521W WO 2020034981 A1 WO2020034981 A1 WO 2020034981A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
encoded
position information
images
coded
Prior art date
Application number
PCT/CN2019/100521
Other languages
French (fr)
Chinese (zh)
Inventor
梁文昭
Original Assignee
上海掌门科技有限公司
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 上海掌门科技有限公司 filed Critical 上海掌门科技有限公司
Publication of WO2020034981A1 publication Critical patent/WO2020034981A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details

Definitions

  • the embodiments of the present application relate to the field of computer technology, and in particular, to a method for generating encoded information and a method for identifying the same.
  • the current popular method is to construct a QR code. That is, the mobile device scans the constructed two-dimensional code, so that the user ID (identification), web address and other information can be identified.
  • the form of the existing two-dimensional code is relatively single, usually a fixed square, and requires at least three positioning points.
  • the embodiments of the present application provide a method for generating encoded information and a method for identifying the same.
  • an embodiment of the present application provides a method for generating encoded information, including: adding a first preset number of positioning images to a preset position in a target image containing the encoded information to generate a first encoded image; Taking the central region of the first encoded image as a center, rotating the first encoded image by a second preset number of angles to obtain second encoded images at a second preset number of different rotation angles respectively; according to the obtained second encoded image To generate a coded image set and output a coded image set.
  • the first preset number is not more than two, and adding the first preset number of positioning images at the preset position includes: adding a positioning image at an edge position of the target image; or at the edge of the target image Add two positioning images symmetrically or asymmetrically; or add one positioning image to the center and edge of the target image.
  • generating a coded image set according to the obtained second coded image includes: taking the first coded image as a reference, and sequentially rotating the first coded image and The obtained second coded image is stored to generate a coded image set; or the first coded image is used as a reference, and the obtained second coded image is stored in the order of rotation angle from small to large or from large to small to generate a code Image collection.
  • outputting the encoded image set includes: displaying the encoded images in the encoded image set one by one at a preset frame rate.
  • displaying the coded images in the coded image set one by one at a preset frame rate includes: sequentially displaying the coded images in the coded image set at a preset frame rate in the order of rotation angle from small to large or from large to small. Encode the image.
  • an embodiment of the present application provides an apparatus for generating encoded information, including: a first generating unit configured to add a first preset number of positionings at a preset position in a target image containing the encoded information Image to generate a first coded image; a second generation unit configured to rotate the first coded image by a second preset number of angles around the center region of the first coded image to obtain a second preset number of differences respectively A second coded image at a rotation angle; a third generating unit configured to generate a coded image set according to the obtained second coded image, and output the coded image set.
  • the first preset number is not greater than two, and the first generating unit is further configured to: add one positioning image at the edge position of the target image; or add two symmetrically or asymmetrically at the edge position of the target image Position the image; or add a positioning image to the center and edge locations of the target image.
  • the third generating unit includes: a first generating subunit configured to use the first coded image as a reference, and perform the first and second coded images in the order of rotation angle from small to large or from large to small.
  • the obtained second coded image is stored to generate a coded image set; or the second generation subunit is configured to use the first coded image as a reference and perform a rotation on the obtained code in the order of small to large or large to small.
  • the second encoded image is stored to generate a set of encoded images.
  • the third generating unit further includes a display subunit configured to display the coded images in the coded image set one by one according to a preset frame rate.
  • the display sub-unit is further configured to sequentially display the encoded images in the encoded image set at a preset frame rate in the order of the rotation angle from small to large or from large to small.
  • an embodiment of the present application proposes a method for identifying encoding information for identifying an encoded image in an encoded image set generated by the method described in any one of the foregoing aspects of the first aspect, including: collecting each frame The displayed coded image identifies the first preset number of positioning images in the coded image, and determines position information of the positioning images, where the coded images in the coded image set are displayed one by one at a preset frame rate; the positioning determined according to each frame The position information sequence of the image is used to obtain the position information sequence; according to the position information sequence, the encoding information in the encoded image in the encoded image set is located and identified.
  • locating and identifying the encoding information in the encoded images in the encoded image set according to the position information sequence includes: selecting two encoded images from the acquired encoded images, and selecting one of the two selected encoded images.
  • a coded image is used as the pre-transformed image, and the other one of the two selected coded images is used as the transformed image to solve the affine transformation matrix; the solved affine transformation matrix is used to inverse the transformed image Transform to obtain a normalized image; determine the position of the center point of the normalized image according to the position information in the position information sequence; identify the encoded information in the normalized image according to the position information sequence and the position of the center point.
  • identifying the encoded information in the normalized image according to the position information sequence and the position of the center point includes: performing polar coordinate transformation on the position information in the position information sequence with the center point as a pole; and according to the position information The polar coordinates in the sequence identify the encoded information in the normalized image.
  • locating and identifying the encoding information in the encoded images in the encoded image set according to the position information sequence includes: selecting the encoded image from the collected encoded images, and marking the position information sequence in the selected encoded image. The position indicated by the position information of the image forming a positioning area; identifying information located in the positioning area in the selected coded image.
  • obtaining the position information sequence according to the position information of the positioning image determined in each frame includes: determining whether there is a frame loss situation when collecting; when determining the frame loss situation, supplementing the loss location according to the position change rule of the positioning image.
  • the method before obtaining the position information sequence according to the position information of the positioning image determined in each frame, the method further includes: determining, in the position information of the determined positioning image, whether a positioning image determined with the current frame exists.
  • the position information is the same as the position information; in response to determining the existence, the acquisition of the encoded image is stopped.
  • the method before obtaining the position information sequence according to the position information of the positioning image determined in each frame, the method further includes: determining whether the current acquisition duration reaches a preset duration; and in response to the determination, stopping the acquisition of the encoded image.
  • an embodiment of the present application provides a device for identifying encoding information, which is used to identify an encoded image in an encoded image set generated by a method described in any one of the foregoing aspects of the first aspect, including: an acquisition unit, Configured to collect the coded images displayed in each frame, identify the first preset number of positioning images in the coded image, and determine position information of the positioning images, where the coded images in the coded image set are displayed one by one at a preset frame rate; The sequence generating unit is configured to obtain a position information sequence according to the position information of the positioning image determined in each frame; the recognition unit is configured to locate and identify the coding information in the coded image in the coded image set according to the position information sequence.
  • the identification unit includes a solving subunit configured to select two encoded images from the acquired encoded images, use one of the selected two encoded images as a pre-transformed image, and select the selected The other of the two encoded images is used as the transformed image to solve the affine transformation matrix; the transformation subunit is configured to use the solved affine transformation matrix to inversely transform the transformed image to obtain the normalized image.
  • the first recognition subunit is further configured to: perform polar coordinate transformation on the position information in the position information sequence using the center point as a pole; and identify the normalized image based on the polar coordinates in the position information sequence. Encoding information.
  • the recognition unit further includes a marking subunit configured to select a coded image from the collected coded images, and in the selected coded image, mark the position indicated by the position information in the position information sequence and form Positioning area; a second identification subunit configured to identify information located in the positioning area in the selected coded image.
  • the sequence generation unit includes: a determination subunit configured to determine whether there is a frame loss situation during acquisition; and a supplementary subunit configured to, when determining the presence of a frame loss situation, supplement the The position information of the positioning image in the framed encoded image is dropped to obtain the position information sequence.
  • the method further includes: a first determining unit configured to determine, from the determined position information of the positioning image, whether there is position information that is the same as the position information of the positioning image determined by the current frame; Make sure it exists and stop collecting encoded images.
  • the method further includes: a second determination unit configured to determine whether the current acquisition duration reaches a preset duration; and in response to determining that the acquisition duration is reached, stopping the acquisition of the encoded image.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored; when one or more programs are processed by one or more processors Execution causes one or more processors to implement the method as described in any one of the first aspect or the third aspect above.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, wherein when the computer program is executed by a processor, the computer program is implemented as in any one of the first or third aspects described above. Describe the method.
  • the method for generating and identifying the encoded information can generate a first encoded image by adding a first preset number of positioning images to a preset position in a target image containing the encoded information. Then, by rotating the first coded image by a second preset number of angles around the center area of the first coded image, second coded images at a second preset number of different rotation angles can be obtained. Then, based on the obtained second encoded image, an encoded image set can be generated. And can output coded image collection.
  • This implementation mode enriches the manner in which the encoded information is generated. This can help meet the different design needs of users, and is conducive to enriching the presentation of encoded information.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 2 is a flowchart of an embodiment of a method for generating encoded information according to the present application
  • 3A-3D are schematic structural diagrams of four embodiments of a first encoded image in the present application.
  • FIG. 4 is a flowchart of an embodiment of a method for identifying encoding information according to the present application
  • FIG. 5 is a flowchart of still another embodiment of a method for identifying encoded information according to the present application.
  • FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 to which a method for generating and identifying encoding information according to an embodiment of the present application can be applied.
  • the system architecture 100 may include terminals 101, 102, and 103, networks 104, 105, and a server 106.
  • the network 104 may be used to provide a medium for communication links between the terminals 101, 102, 103.
  • the network 105 may be used to provide a medium for a communication link between the terminals 101, 102, 103 and the server 106.
  • the networks 104, 105 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
  • terminals 101, 102, and 103 Users can use terminals 101, 102, and 103 to interact through the network 104 to receive or send messages and the like. At the same time, the user can also use the terminals 101, 102, 103 to interact with the server 106 through the network 105 to obtain information and the like.
  • client applications can be installed on the terminals 101, 102, and 103, such as coded information generation and identification applications, web browsers, shopping applications, and instant messaging tools.
  • the user can also use the coded information generation application installed on the terminals 101, 102, 103 to process the target image containing the coded information. Thereby, a set of encoded images can be generated.
  • the user can also use the terminals 101, 102, 103 to collect the encoded images in the encoded image set. In this way, the terminals 101, 102, 103 can perform analysis processing on each encoded image. And the processing result (such as the identified encoding information) can be presented to the user.
  • the terminals 101, 102, and 103 may be hardware or software.
  • the terminals 101, 102, and 103 can be various electronic devices with display screens, including but not limited to smartphones, tablets, wearable devices, e-book readers, MP3 players (Moving Pictures Experts Group Audio Layer III, motion picture expert compression standard audio layer 3), laptop portable computers and desktop computers, etc.
  • the terminals 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
  • the server 106 may be a server that provides various services, such as a background server that provides support for various applications installed on the terminals 101, 102, and 103.
  • the background server can analyze and process the user's operation behavior on the application, and send corresponding feedback information to the user according to the processing result.
  • the background server may analyze and process the target image containing the encoding information. And the processing result (such as a set of encoded images) can be fed back to the terminal.
  • the server 106 here may also be hardware or software.
  • the server 106 can be implemented as a distributed server cluster composed of multiple servers or as a single server.
  • the server 106 is software, it can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
  • the method for generating encoded information is generally performed by the terminals 101, 102, 103 or the server 106.
  • the identification method of the encoded information is generally executed by the terminals 101, 102, and 103.
  • terminals, networks, and servers in FIG. 1 are merely exemplary. According to implementation needs, there can be any number of terminals, networks, and servers.
  • a flowchart 200 of an embodiment of a method for generating encoded information according to the present application is shown.
  • the method for generating the encoded information may include the following steps:
  • Step 201 Add a first preset number of positioning images at a preset position to a target image containing the coding information to generate a first coded image.
  • an execution subject for example, the terminal 101, 102, 103, or the server 106 shown in FIG. 1 may add a first preset position at a preset position of the target image containing the encoded information Set a number of positioning images to generate a first coded image. That is, the target image after adding the first preset number of positioning images may be used as the first encoded image.
  • the encoding information may be information generated by encoding a character string by using various encoding methods (such as binary encoding).
  • the character string may be (but is not limited to) text information including at least one character such as a letter, a number, a symbol, and a Chinese character.
  • the content of the character string may include, but is not limited to, a website address, an address, business card information, product information, transaction information, a Wi-Fi (WIreless-Fidelity, wireless broadband) password, and the like.
  • the target image can be any image containing the encoded information.
  • the target image here may be stored locally in the execution subject in advance; it may also be obtained by the execution subject from online resources or other electronic devices; or it may be input by the user into the execution subject.
  • the positioning image may be an image for positioning a mark.
  • the positioning image usually has a different expression form from the coded information, so as to be easy to distinguish.
  • the positioning image may be a special shape image, such as a circle, a diamond hexagon, or the like. This can be different from the coded image shape such as a two-dimensional code or a barcode, so that it will not interfere with the content of the coded information.
  • the preset position may be any position in the target image that does not affect the encoding information, such as a corner position of the target image.
  • the preset positions and the first preset number can be set according to actual conditions.
  • the manner of adding the positioning image to the target image is not limited in this application.
  • the positioning image can be used as a layer to directly overlay the image at a preset position of the target image.
  • a positioning image or the like may be drawn at a preset position of the target image.
  • the first preset number may not be greater than two. That is, the number of positioning images added to the target image may not be greater than two. In other words, compared with the traditional two-dimensional code, it does not need too many positioning points.
  • the execution subject may add a positioning image to the edge position of the target image to generate a first coded image.
  • a ring image that is, a positioning image
  • the square frame here may be a square as shown in FIG. 3A, or may be a rectangle.
  • the square box can be replaced with a round box, such as Tai Chi.
  • the positioning image at this time may be (but is not limited to) a ring image located on a circular frame; it may also be a line segment such as a curve or a line located inside the circular frame and connecting the center and the edge.
  • the execution subject may add two positioning images symmetrically or asymmetrically at the edge positions of the target image, thereby generating a first encoded image.
  • a solid dot image can be added to any two adjacent corners (such as the upper left corner and the upper right corner) of the square frame.
  • a positioning image may be added to any two diagonal corners of the square frame.
  • the positioning image may be an image of a donut plus a solid dot. The ring and the solid dot may have the same center.
  • the execution subject may add a positioning image to the central region and the edge position of the target image, respectively, thereby generating a first encoded image.
  • a ring image can be added to the outer circular frame.
  • the center points of the two positioning images may be coaxial or different axes.
  • the main role of the target image is to present the encoded information. Therefore, the encoded information often occupies most of the area of the target image. That is, the edge position of the target image is basically the edge position of the encoded information.
  • Step 202 Rotate the first encoded image by a second preset number of angles around the center area of the first encoded image to obtain second encoded images at a second preset number of different rotation angles, respectively.
  • the execution subject may rotate the first encoded image by a second preset number of different angles with the center area of the first encoded image as a center.
  • a second preset number of second encoded images at different rotation angles can be obtained.
  • the rotation angle may include the direction of rotation and the size of the angle.
  • the second preset number and rotation angle can be set according to actual needs.
  • the execution subject may first rotate the first coded image by 60 °, 120 °, and 180 ° in a clockwise direction. After that, the execution subject can rotate the first coded image counterclockwise by 60 ° and 120 °, respectively. In this way, five second encoded images with equal angular differences can be obtained.
  • the execution subject may rotate in a manner of increasing (or decreasing) the angle difference sequentially.
  • the first coded image is rotated clockwise (or counterclockwise) by 60 °, 130 °, 210 °, and 300 °, respectively.
  • the angular differences are 60, 70, 80, and 90, respectively.
  • the execution subject may rotate the first coded image in a clockwise (or counterclockwise) manner with an equal angular difference.
  • the above-mentioned rotation process can be performed manually by a user, or can be implemented by an execution subject by executing a corresponding program.
  • the execution subject may perform affine transformation on the first encoded image according to parameters set by the user, so as to obtain the first second encoded image.
  • the first second encoded image can be used as the first encoded image to continue the affine transformation.
  • the number of the second encoded images reaches a second preset number.
  • the currently obtained second coded image is the same as the original first coded image, it means that one rotation has been performed at this time. This can reduce manual operations and help improve data processing efficiency.
  • Step 203 Generate a coded image set according to the obtained second coded image, and output the coded image set.
  • the execution body may generate a coded image set according to the second coded image obtained in step 202. And can output the coded image collection.
  • the output here can be stored output.
  • the encoded image collection may be stored locally. Or you can store the encoded image collection to other electronic devices or the cloud.
  • the execution body may sequentially store the second encoded images in the generated collection file in the order in which the second encoded images are generated.
  • the set file can be used as a set of encoded images.
  • the execution subject may use the first encoded image as a reference and store the first encoded image and the obtained second encoded image in the order of rotation angle from small to large or from large to small to generate a set of encoded images.
  • the coded image set may include a first coded image and a second coded image.
  • the execution subject may use the first encoded image as a reference and store the obtained second encoded image in the order of rotation angle from small to large or from large to small to generate a set of encoded images.
  • the coded image set may include a second coded image.
  • the rotation angle here refers to the rotation angle in the same direction.
  • the output may also be a transmission output and / or a display output.
  • the execution body may send the encoded image set to the terminal.
  • the execution subject may display the encoded images in the encoded image set.
  • the execution subject may display all the encoded images on the screen in any order or in the order in which the encoded images are stored.
  • the execution body may display each coded image in the coded image set one by one at a preset frame rate in an arbitrary order or in a stored order of the coded images. That is, each coded image is displayed one by one at a preset frame rate.
  • the execution subject may use the first encoded image as a reference, and sequentially display the encoding image set in the encoded image set in the order of rotation angle from small to large or from large to small at a preset frame rate. Encode the image. This helps improve the recognition efficiency of the encoded information and reduces the waiting time of the user.
  • the preset frame rate (that is, the number of frames displayed per second) is not limited in this application. It can be set according to the number of encoded images, for example.
  • the display of the coded image set by the execution subject may be displayed only once; it may also be displayed cyclically for a specified number of times (such as three times); it may also be displayed for a specified period of time (such as two seconds) or displayed continuously.
  • the method for generating encoded information can generate a first encoded image by adding a first preset number of positioning images to a preset position in a target image containing the encoded information. Then, by rotating the first coded image by a second preset number of angles around the center area of the first coded image, second coded images at a second preset number of different rotation angles can be obtained. Then, based on the obtained second encoded image, an encoded image set can be generated. And can output coded image collection.
  • This implementation mode enriches the manner in which the encoded information is generated. This can help meet the different design needs of users, and is conducive to enriching the presentation of encoded information.
  • FIG. 4 illustrates a process 400 of an embodiment of a method for identifying encoded information according to the present application.
  • the method for identifying encoding information may be used to identify an encoded image in an encoded image set generated by the method described in the foregoing embodiment, and includes the following steps:
  • Step 401 Collect a coded image displayed in each frame, identify a first preset number of positioning images in the coded image, and determine position information of the positioning image.
  • an execution subject (for example, the terminals 101, 102, and 103 shown in FIG. 1) of the method for identifying encoding information may collect an encoded image displayed in each frame.
  • the encoded images in the encoded image set may be displayed one by one according to a preset frame rate.
  • the user may use a camera on the execution body to capture the coded images displayed in each frame.
  • the execution subject may display the encoded images in the encoded image set one by one in the specified area at the preset frame rate.
  • the execution subject can use screenshots and other methods to collect the encoded images displayed in each frame on the screen.
  • the execution subject may identify the first preset number of positioning images in the acquired encoded image. And can determine the location information of the positioning image. For example, the execution subject may perform image recognition analysis on the encoded image to determine whether a first preset number of special shape images (that is, images with a shape different from most of the images) exist therein. If it is determined to exist, the special shape image may be determined as a positioning image.
  • a first preset number of special shape images that is, images with a shape different from most of the images
  • the execution subject may perform image recognition analysis on the encoded image to determine whether there is an image matching the pre-stored image.
  • the storage location of the pre-stored image is not limited. Matching here can mean that the similarity between image features reaches a threshold (such as 90% or 100%, etc.). If it is determined to exist, the matched image may be determined as a positioning image.
  • the execution subject may input the encoded image into a pre-trained recognition model.
  • the execution subject can use the recognition model to identify the positioning image.
  • the position information of the positioning image can be output.
  • the recognition model may be obtained by training the initial model with a large number of positive and negative samples. Positive samples can be sample coded images with localized images and sample locations for localized images.
  • the negative sample may be a sample-encoded image without a localized image.
  • the above-mentioned position information may be (but is not limited to) position information of the positioning image in the encoded image.
  • the position information of the positioning image in the specified area (or screenshot) may be used.
  • the position information may be (but not limited to) the coordinates of the center point of the positioning image.
  • the position information of the positioning images in different encoded images may have the same coordinate origin.
  • the center point of any corner (such as the upper left corner) or any side of the encoded image can be used as the reference origin. This helps improve the efficiency of data processing.
  • Step 402 Obtain a position information sequence according to the position information of the positioning image determined in each frame.
  • the execution subject may obtain a position information sequence according to the position information of the positioning image determined by each frame.
  • the execution subject may store the position information of the positioning image determined in each frame in order of the acquisition time to obtain the position information sequence.
  • the position information of each positioning image in the same coded image may form an array.
  • the execution subject may store the position information of the at least two positioning images determined in each frame in the order of the acquisition time.
  • the execution subject may analyze the position information of the positioning image determined in each frame to determine the relative position relationship.
  • the position information of the positioning image determined in each frame can be stored in the order of the clockwise (or counterclockwise) direction.
  • Step 403 Locate and identify encoding information in the encoded images in the encoded image set according to the position information sequence.
  • the execution subject may locate and identify the encoding information in the encoded images in the encoded image set according to the position information sequence obtained in step 402.
  • the execution subject may mark the position indicated by the position information in the position information sequence in the currently acquired encoded image.
  • the positioning area can be formed according to the position of the mark.
  • a straight line or an arc can be used to connect the positions of the marks one after another.
  • the area inside the connection line can be used as the positioning area.
  • the center point can be determined according to each position of the mark.
  • the positioning area is determined by taking the center point as the center of the circle and the distance from the center point to the position of any mark as the radius. In this way, the information (that is, the coding information) located in the positioning area in the currently acquired coded image can be identified.
  • the execution body may first select a coded image from the collected coded images. For example, a coded image with relatively clear images can be selected. Alternatively, the first coded image (possibly the first coded image) collected may be selected. Then, in the selected coded image, the position indicated by the position information in the position information sequence may be marked, and a positioning area may be formed. After that, the information in the positioning area in the selected coded image can be identified.
  • the above-mentioned positioning and identification process can usually be run in the background.
  • the process of collecting encoded images is not always continuous.
  • the executing subject may stop acquiring encoded images.
  • the execution subject may determine, from the determined position information of the positioning image, whether there is position information that is the same as the position information of the positioning image determined by the current frame. If it is determined that the same position information exists, the acquisition of the encoded image may be stopped. It can be understood that if the same coded image includes at least two positioning images, the same position information mentioned above mainly refers to position information that is the same as the position information of at least two positioning images determined by the current frame.
  • the execution subject may be timed when the acquisition begins. And during the acquisition process, it can be determined whether the current acquisition time reaches a preset time (for example, 5 seconds). If it is determined that the preset time period is reached, the acquisition of the encoded image may be stopped.
  • a preset time for example, 5 seconds
  • the method for identifying encoding information can identify the first preset number of positioning images in the encoded image by collecting the encoded images displayed in each frame, and can determine position information of the positioning images.
  • the encoded images in the encoded image set may be displayed one by one according to a preset frame rate. Then, according to the position information of the positioning image determined in each frame, a position information sequence can be obtained. Finally, according to the position information sequence, the encoding information in the encoded images in the encoded image set can be located and identified.
  • This implementation manner can realize identification of the encoded images in the encoded image set generated by the method described in the foregoing embodiment. It also enriches the identification of the encoded information. This can help meet the needs of different users.
  • FIG. 5 it illustrates a flow 500 of still another embodiment of a method for identifying encoded information according to the present application.
  • the method for identifying the encoded information may include the following steps:
  • Step 501 Collect a coded image displayed in each frame, identify a first preset number of positioning images in the coded image, and determine position information of the positioning image.
  • an execution subject for example, the terminals 101, 102, and 103 shown in FIG. 1
  • the encoded images in the encoded image set may be displayed one by one according to a preset frame rate.
  • the first preset number of positioning images in the encoded image can be identified, and the position information of the positioning images can be determined.
  • step 502 it is determined whether there is a case of collecting dropped frames.
  • the execution subject may determine whether there is a case of frame loss due to collection according to the interval time between two adjacent encoded images. For example, according to the sequence of acquisition time, the acquisition interval between the first encoded image and the second encoded image, the second encoded image, and the third encoded image are 0.2 seconds. The acquisition interval between the third encoded image and the fourth encoded image is 0.4 seconds. At this point, the execution subject can determine that there is a frame drop condition between the third and fourth frames.
  • the execution subject may determine the position change rule of the positioning image according to the position information of the positioning image determined in each frame. In this way, according to the change rule of the position, the execution subject can determine whether there is a frame loss situation during acquisition. For example, the distance between any two adjacent positions is L. At this time, if the distance between two adjacent positions is not L, it can be explained that the position information of the positioning image is missing between the two positions. That is, there is a case of collecting dropped frames. That is, no encoded image can be acquired that can be used to describe the position information of the missing positioning image.
  • the position information sequence may be obtained according to the position information of the positioning image determined by each frame. For details, reference may be made to step 402 in the embodiment of FIG. 4, and details are not described herein again. If the execution subject determines that a frame loss situation exists, step 503 may be continued.
  • Step 503 When it is determined that a frame loss situation exists, according to the position change rule of the positioning image, supplement the position information of the positioning image in the coded image of the dropped frame to obtain a position information sequence.
  • the execution subject may supplement the position information of the positioning image in the encoded image of the dropped frame according to the position change rule of the positioning image. For example, the distance between any two adjacent positions is L. At this time, if the distance between two adjacent positions is not L, such a position can be determined between the two positions. The distance between this position and these two positions is L, and it conforms to the law of position change. That is, the position information of the supplemental positioning image. In this way, based on the position information of the supplemented positioning image, a position information sequence can be obtained. For details, reference may be made to step 402 in the embodiment of FIG. 4, and details are not described herein again.
  • Step 504 Select two encoded images from the collected encoded images, use one of the selected two encoded images as a pre-transform image, and use the other encoded image of the selected two encoded images as a post-transform image. Image, and solve the affine transformation matrix.
  • the execution subject may select two encoded images from the acquired encoded images. After that, one of the selected two encoded images can be used as the image before transformation. And the other one of the selected two encoded images can be used as the transformed image. After that, the affine transformation matrix can be solved.
  • the selection method is not limited in this application.
  • the execution subject may select any two adjacent coded images in the order of acquisition time.
  • the execution subject may select the first coded image (possibly the first coded image) acquired, and select any subsequent coded image acquired. For example, select a clear encoded image of the collected image.
  • the affine transformation is defined geometrically as an affine transformation or an affine mapping between two vector spaces.
  • affine transformation usually consists of a non-singular linear transformation (transformation using a linear function) followed by a translation transformation. That is to say, a vector space can be transformed into another vector space by performing a linear transformation followed by a translation.
  • each affine transformation can be given by a matrix A and a vector b, which can be written as A and an additional column b.
  • the execution body can use various existing methods to complete the solution of the affine transformation matrix.
  • the least squares method can be used to estimate the transformation matrix. For example, the position information of several identical pixels in two coded images can be taken as the position information before and after transformation. Then, a system of superlinear equations can be established. Therefore, the least square method can be used to solve the coordinate conversion coefficient (that is, the parameter of the affine transformation matrix).
  • the coordinate conversion coefficient that is, the parameter of the affine transformation matrix.
  • the aforementioned pixels may include a positioning image. This can simplify the processing process and improve processing efficiency.
  • ransac Random Sample Consensus
  • ransac Random Sample Consensus
  • This algorithm is often used in computer vision. For example, in the field of stereo vision, the matching point of a pair of cameras and the calculation of the basic matrix are simultaneously solved.
  • the method for solving the affine transformation matrix here is commercially available, and will not be repeated here.
  • Step 505 Inverse transform the transformed image using the solved affine transformation matrix to obtain a normalized image.
  • the execution subject may use the solved affine transformation matrix to perform inverse transformation on the transformed image, so as to obtain a normalized image.
  • the coded image as the transformed image is converted into the coded image as the before-transformed image.
  • Step 506 Determine the position of the center point of the normalized image according to the position information in the position information sequence.
  • the execution subject may determine the center points of these positions based on the position information in the position information sequence. It can be understood that the second encoded image is obtained by rotating the center area of the first encoded image as a center. So the center point determined here is the center point of the normalized image.
  • Step 507 Identify coding information in the normalized image according to the position information sequence and the position of the center point.
  • the execution subject may identify the encoded information in the normalized image according to the position information in the position information sequence and the position of the center point. For details, reference may be made to step 403 in the embodiment of FIG. 4, and details are not described herein again.
  • the execution subject may use the center point determined in step 506 as a pole point to perform polar coordinate transformation on the position information in the position information sequence. That is, the coordinate origin of each position information in the position information sequence is transformed into the center point of the normalized image.
  • the execution subject can identify the encoded information in the normalized image according to the polar coordinates of each position information in the position information sequence.
  • the method for identifying encoding information proposed in this embodiment adds a determination process of a frame loss situation. At the same time, the process of identifying the encoded information based on the position information sequence is described in detail. This can enrich and improve the identification method. Helps improve the accuracy of recognition results.
  • FIG. 6 a schematic structural diagram of a computer system 600 suitable for implementing an electronic device (such as the terminals 101, 102, 103 or the server 106 shown in FIG. 1) according to the embodiment of the present application is shown.
  • the electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
  • the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into a random access memory (RAM) 603 according to a program stored in a read-only memory (ROM) 602 or from a storage portion 608. Instead, perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read-only memory
  • various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input / output (I / O) interface 605 is also connected to the bus 604.
  • the following components are connected to the I / O interface 605: an input portion 606 including a touch screen, buttons, a mouse, a microphone, a camera, etc .; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; A storage section 608 of a hard disk or the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet.
  • the driver 610 is also connected to the I / O interface 605 as necessary.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing a method shown in a flowchart.
  • the computer program may be downloaded and installed from a network through the communication portion 609, and / or installed from a removable medium 611.
  • CPU central processing unit
  • the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing.
  • the computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer-readable medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions.
  • the functions noted in the blocks may also occur in a different order than those marked in the drawings. For example, two successively represented boxes may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts can be implemented by a dedicated hardware-based system that performs the specified function or operation , Or it can be implemented with a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present application may be implemented by software or hardware.
  • the described unit may also be provided in a processor, for example, it may be described as: a processor includes a first generation unit, a second generation unit, and a third generation unit.
  • a processor includes an acquisition unit, a sequence generation unit, and a recognition unit.
  • the names of these units do not constitute a limitation on the unit itself in some cases.
  • the first generating unit can also be described as "adding the first A preset number of positioning images, a unit for generating a first coded image ".
  • the present application also provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiments; or may exist alone without being assembled into the electronic device in.
  • the computer-readable medium carries one or more programs.
  • the electronic device causes the electronic device to add a first A preset number of positioning images generates a first coded image; the first coded image is rotated by a second preset number of angles around the center area of the first coded image to obtain a second preset number of different rotation angles, respectively A second coded image under the code; based on the obtained second coded image, a coded image set is generated, and a coded image set is output.
  • the electronic device may be caused to: collect the coded image displayed in each frame, identify the first preset number of positioning images in the coded image, and determine the positioning image
  • the position information of the coded image set is displayed one by one according to a preset frame rate; the position information sequence is obtained according to the position information of the positioning image determined by each frame; and the position of the coded image set is identified according to the position information sequence.
  • Encoding information in the encoded image is not limited to: collect the coded image displayed in each frame, identify the first preset number of positioning images in the coded image, and determine the positioning image
  • the position information of the coded image set is displayed one by one according to a preset frame rate; the position information sequence is obtained according to the position information of the positioning image determined by each frame; and the position of the coded image set is identified according to the position information sequence.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Analysis (AREA)

Abstract

A method for generating encoded information and a method for recognizing encoded information. A specific embodiment of the method comprises: adding a first preset number of positioning images at preset positions in a target image comprising encoded information, so as to generate a first encoded image (201); setting a center region of the first encoded image as a center, rotating the first encoded image by a second preset number of angular intervals, so as to respectively obtain the second preset number of second encoded images at different rotation angles (202); and generating a set of encoded images according to the obtained second encoded images, and outputting the set of encoded images (203). The embodiment provides further options for generating encoded information, helping to satisfy design requirements of different users, and increasing the ways in which encoded information can be presented.

Description

编码信息的生成方法和识别方法Generation method and identification method of encoded information 技术领域Technical field
本申请实施例涉及计算机技术领域,具体涉及编码信息的生成方法和识别方法。The embodiments of the present application relate to the field of computer technology, and in particular, to a method for generating encoded information and a method for identifying the same.
背景技术Background technique
随着移动互联网的快速发展,通过移动终端扫描信息的方法来读取内容已经越来越普遍。目前比较流行方法是构建二维码。即移动端设备通过扫描所构建的二维码,从而可以识别出里面的用户ID(身份标识)、网址等信息。现有二维码的形式比较单一,通常是固定的正方形,且需要有至少三个定位点。With the rapid development of the mobile Internet, it is becoming more and more common to read content by scanning information on mobile terminals. The current popular method is to construct a QR code. That is, the mobile device scans the constructed two-dimensional code, so that the user ID (identification), web address and other information can be identified. The form of the existing two-dimensional code is relatively single, usually a fixed square, and requires at least three positioning points.
发明内容Summary of the Invention
本申请实施例提出了编码信息的生成方法和识别方法。The embodiments of the present application provide a method for generating encoded information and a method for identifying the same.
第一方面,本申请实施例提出了一种编码信息的生成方法,包括:在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像;以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,分别得到第二预设数目个不同旋转角度下的第二编码图像;根据得到的第二编码图像,生成编码图像集合,并输出编码图像集合。In a first aspect, an embodiment of the present application provides a method for generating encoded information, including: adding a first preset number of positioning images to a preset position in a target image containing the encoded information to generate a first encoded image; Taking the central region of the first encoded image as a center, rotating the first encoded image by a second preset number of angles to obtain second encoded images at a second preset number of different rotation angles respectively; according to the obtained second encoded image To generate a coded image set and output a coded image set.
在一些实施例中,第一预设数目不大于二,以及在预设位置处添加第一预设数目个定位图像,包括:在目标图像的边缘位置添加一个定位图像;或者在目标图像的边缘位置对称或非对称添加两个定位图像;或者在目标图像的中心区域和边缘位置分别添加一个定位图像。In some embodiments, the first preset number is not more than two, and adding the first preset number of positioning images at the preset position includes: adding a positioning image at an edge position of the target image; or at the edge of the target image Add two positioning images symmetrically or asymmetrically; or add one positioning image to the center and edge of the target image.
在一些实施例中,根据得到的第二编码图像,生成编码图像集合,包括:以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对第一编码图像和得到的第二编码图像进行存储,生成编码图像集 合;或者以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对得到的第二编码图像进行存储,生成编码图像集合。In some embodiments, generating a coded image set according to the obtained second coded image includes: taking the first coded image as a reference, and sequentially rotating the first coded image and The obtained second coded image is stored to generate a coded image set; or the first coded image is used as a reference, and the obtained second coded image is stored in the order of rotation angle from small to large or from large to small to generate a code Image collection.
在一些实施例中,输出编码图像集合,包括:按照预设帧率逐个显示编码图像集合中的编码图像。In some embodiments, outputting the encoded image set includes: displaying the encoded images in the encoded image set one by one at a preset frame rate.
在一些实施例中,按照预设帧率逐个显示编码图像集合中的编码图像,包括:按照旋转角度由小到大或由大到小的顺序,以预设帧率依次显示编码图像集合中的编码图像。In some embodiments, displaying the coded images in the coded image set one by one at a preset frame rate includes: sequentially displaying the coded images in the coded image set at a preset frame rate in the order of rotation angle from small to large or from large to small. Encode the image.
第二方面,本申请实施例提出了一种编码信息的生成装置,包括:第一生成单元,被配置成在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像;第二生成单元,被配置成以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,分别得到第二预设数目个不同旋转角度下的第二编码图像;第三生成单元,被配置成根据得到的第二编码图像,生成编码图像集合,并输出编码图像集合。In a second aspect, an embodiment of the present application provides an apparatus for generating encoded information, including: a first generating unit configured to add a first preset number of positionings at a preset position in a target image containing the encoded information Image to generate a first coded image; a second generation unit configured to rotate the first coded image by a second preset number of angles around the center region of the first coded image to obtain a second preset number of differences respectively A second coded image at a rotation angle; a third generating unit configured to generate a coded image set according to the obtained second coded image, and output the coded image set.
在一些实施例中,第一预设数目不大于二,以及第一生成单元进一步被配置成:在目标图像的边缘位置添加一个定位图像;或者在目标图像的边缘位置对称或非对称添加两个定位图像;或者在目标图像的中心区域和边缘位置分别添加一个定位图像。In some embodiments, the first preset number is not greater than two, and the first generating unit is further configured to: add one positioning image at the edge position of the target image; or add two symmetrically or asymmetrically at the edge position of the target image Position the image; or add a positioning image to the center and edge locations of the target image.
在一些实施例中,第三生成单元包括:第一生成子单元,被配置成以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对第一编码图像和得到的第二编码图像进行存储,生成编码图像集合;或者第二生成子单元,被配置成以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对得到的第二编码图像进行存储,生成编码图像集合。In some embodiments, the third generating unit includes: a first generating subunit configured to use the first coded image as a reference, and perform the first and second coded images in the order of rotation angle from small to large or from large to small. The obtained second coded image is stored to generate a coded image set; or the second generation subunit is configured to use the first coded image as a reference and perform a rotation on the obtained code in the order of small to large or large to small. The second encoded image is stored to generate a set of encoded images.
在一些实施例中,第三生成单元还包括:显示子单元,被配置成按照预设帧率逐个显示编码图像集合中的编码图像。In some embodiments, the third generating unit further includes a display subunit configured to display the coded images in the coded image set one by one according to a preset frame rate.
在一些实施例中,显示子单元进一步被配置成:按照旋转角度由小到大或由大到小的顺序,以预设帧率依次显示编码图像集合中的编码图像。In some embodiments, the display sub-unit is further configured to sequentially display the encoded images in the encoded image set at a preset frame rate in the order of the rotation angle from small to large or from large to small.
第三方面,本申请实施例提出了一种编码信息的识别方法,用于识别如上述第一方面中任一实施例所描述的方法生成的编码图像集合中的 编码图像,包括:采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息,其中,编码图像集合中的编码图像按照预设帧率逐个显示;根据各帧确定的定位图像的位置信息,得到位置信息序列;根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息。In a third aspect, an embodiment of the present application proposes a method for identifying encoding information for identifying an encoded image in an encoded image set generated by the method described in any one of the foregoing aspects of the first aspect, including: collecting each frame The displayed coded image identifies the first preset number of positioning images in the coded image, and determines position information of the positioning images, where the coded images in the coded image set are displayed one by one at a preset frame rate; the positioning determined according to each frame The position information sequence of the image is used to obtain the position information sequence; according to the position information sequence, the encoding information in the encoded image in the encoded image set is located and identified.
在一些实施例中,根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息,包括:从采集的编码图像中选取两张编码图像,将选取的两张编码图像中的一张编码图像作为变换前图像,将选取的两张编码图像中的另一张编码图像作为变换后图像,进行仿射变换矩阵的求解;利用求解出的仿射变换矩阵,对变换后图像进行逆变换,得到归一化图像;根据位置信息序列中的位置信息,确定归一化图像的中心点的位置;根据位置信息序列和中心点的位置,识别归一化图像中的编码信息。In some embodiments, locating and identifying the encoding information in the encoded images in the encoded image set according to the position information sequence includes: selecting two encoded images from the acquired encoded images, and selecting one of the two selected encoded images. A coded image is used as the pre-transformed image, and the other one of the two selected coded images is used as the transformed image to solve the affine transformation matrix; the solved affine transformation matrix is used to inverse the transformed image Transform to obtain a normalized image; determine the position of the center point of the normalized image according to the position information in the position information sequence; identify the encoded information in the normalized image according to the position information sequence and the position of the center point.
在一些实施例中,根据位置信息序列和中心点的位置,识别归一化图像中的编码信息,包括:以中心点为极点,对位置信息序列中的位置信息进行极坐标变换;根据位置信息序列中的极坐标,识别归一化图像中的编码信息。In some embodiments, identifying the encoded information in the normalized image according to the position information sequence and the position of the center point includes: performing polar coordinate transformation on the position information in the position information sequence with the center point as a pole; and according to the position information The polar coordinates in the sequence identify the encoded information in the normalized image.
在一些实施例中,根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息,包括:从采集的编码图像中选取编码图像,在选取的编码图像中,标记位置信息序列中的位置信息所指示的位置,并形成定位区域;识别选取的编码图像中位于定位区域内的信息。In some embodiments, locating and identifying the encoding information in the encoded images in the encoded image set according to the position information sequence includes: selecting the encoded image from the collected encoded images, and marking the position information sequence in the selected encoded image. The position indicated by the position information of the image forming a positioning area; identifying information located in the positioning area in the selected coded image.
在一些实施例中,根据各帧确定的定位图像的位置信息,得到位置信息序列,包括:确定是否存在采集丢帧情况;在确定存在丢帧情况时,根据定位图像的位置变化规律,补充丢帧的编码图像中的定位图像的位置信息,得到位置信息序列。In some embodiments, obtaining the position information sequence according to the position information of the positioning image determined in each frame includes: determining whether there is a frame loss situation when collecting; when determining the frame loss situation, supplementing the loss location according to the position change rule of the positioning image. Position information of a positioning image in a frame-encoded image to obtain a position information sequence.
在一些实施例中,根据各帧确定的定位图像的位置信息,得到位置信息序列之前,该方法还包括:在已确定的定位图像的位置信息中,确定是否存在与当前帧确定的定位图像的位置信息相同的位置信息;响应于确定存在,停止采集编码图像。In some embodiments, before obtaining the position information sequence according to the position information of the positioning image determined in each frame, the method further includes: determining, in the position information of the determined positioning image, whether a positioning image determined with the current frame exists. The position information is the same as the position information; in response to determining the existence, the acquisition of the encoded image is stopped.
在一些实施例中,根据各帧确定的定位图像的位置信息,得到位置信息序列之前,该方法还包括:确定当前采集时长是否达到预设时长; 响应于确定达到,停止采集编码图像。In some embodiments, before obtaining the position information sequence according to the position information of the positioning image determined in each frame, the method further includes: determining whether the current acquisition duration reaches a preset duration; and in response to the determination, stopping the acquisition of the encoded image.
第四方面,本申请实施例提出了一种编码信息的识别装置,用于识别如上述第一方面中任一实施例所描述的方法生成的编码图像集合中的编码图像,包括:采集单元,被配置成采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息,其中,编码图像集合中的编码图像按照预设帧率逐个显示;序列生成单元,被配置成根据各帧确定的定位图像的位置信息,得到位置信息序列;识别单元,被配置成根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息。In a fourth aspect, an embodiment of the present application provides a device for identifying encoding information, which is used to identify an encoded image in an encoded image set generated by a method described in any one of the foregoing aspects of the first aspect, including: an acquisition unit, Configured to collect the coded images displayed in each frame, identify the first preset number of positioning images in the coded image, and determine position information of the positioning images, where the coded images in the coded image set are displayed one by one at a preset frame rate; The sequence generating unit is configured to obtain a position information sequence according to the position information of the positioning image determined in each frame; the recognition unit is configured to locate and identify the coding information in the coded image in the coded image set according to the position information sequence.
在一些实施例中,识别单元包括:求解子单元,被配置成从采集的编码图像中选取两张编码图像,将选取的两张编码图像中的一张编码图像作为变换前图像,将选取的两张编码图像中的另一张编码图像作为变换后图像,进行仿射变换矩阵的求解;变换子单元,被配置成利用求解出的仿射变换矩阵,对变换后图像进行逆变换,得到归一化图像;中心确定子单元,被配置成根据位置信息序列中的位置信息,确定归一化图像的中心点的位置;第一识别子单元,被配置成根据位置信息序列和中心点的位置,识别归一化图像中的编码信息。In some embodiments, the identification unit includes a solving subunit configured to select two encoded images from the acquired encoded images, use one of the selected two encoded images as a pre-transformed image, and select the selected The other of the two encoded images is used as the transformed image to solve the affine transformation matrix; the transformation subunit is configured to use the solved affine transformation matrix to inversely transform the transformed image to obtain the normalized image. A normalized image; a center determination subunit configured to determine a position of a center point of the normalized image according to the position information in the position information sequence; a first identification subunit configured to be located according to the position information sequence and the position of the center point To identify the encoded information in the normalized image.
在一些实施例中,第一识别子单元进一步被配置成:以中心点为极点,对位置信息序列中的位置信息进行极坐标变换;根据位置信息序列中的极坐标,识别归一化图像中的编码信息。In some embodiments, the first recognition subunit is further configured to: perform polar coordinate transformation on the position information in the position information sequence using the center point as a pole; and identify the normalized image based on the polar coordinates in the position information sequence. Encoding information.
在一些实施例中,识别单元还包括:标记子单元,被配置成从采集的编码图像中选取编码图像,在选取的编码图像中,标记位置信息序列中的位置信息所指示的位置,并形成定位区域;第二识别子单元,被配置成识别选取的编码图像中位于定位区域内的信息。In some embodiments, the recognition unit further includes a marking subunit configured to select a coded image from the collected coded images, and in the selected coded image, mark the position indicated by the position information in the position information sequence and form Positioning area; a second identification subunit configured to identify information located in the positioning area in the selected coded image.
在一些实施例中,序列生成单元包括:确定子单元,被配置成确定是否存在采集丢帧情况;补充子单元,被配置成在确定存在丢帧情况时,根据定位图像的位置变化规律,补充丢帧的编码图像中的定位图像的位置信息,得到位置信息序列。In some embodiments, the sequence generation unit includes: a determination subunit configured to determine whether there is a frame loss situation during acquisition; and a supplementary subunit configured to, when determining the presence of a frame loss situation, supplement the The position information of the positioning image in the framed encoded image is dropped to obtain the position information sequence.
在一些实施例中,该方法还包括:第一确定单元,被配置成在已确定的定位图像的位置信息中,确定是否存在与当前帧确定的定位图像的位置信息相同的位置信息;响应于确定存在,停止采集编码图像。In some embodiments, the method further includes: a first determining unit configured to determine, from the determined position information of the positioning image, whether there is position information that is the same as the position information of the positioning image determined by the current frame; Make sure it exists and stop collecting encoded images.
在一些实施例中,该方法还包括:第二确定单元,被配置成确定当前采集时长是否达到预设时长;响应于确定达到,停止采集编码图像。In some embodiments, the method further includes: a second determination unit configured to determine whether the current acquisition duration reaches a preset duration; and in response to determining that the acquisition duration is reached, stopping the acquisition of the encoded image.
第五方面,本申请实施例提出了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上述第一方面或第三方面中任一实施例所描述的方法。In a fifth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored; when one or more programs are processed by one or more processors Execution causes one or more processors to implement the method as described in any one of the first aspect or the third aspect above.
第六方面,本申请实施例提出了一种计算机可读介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现如上述第一方面或第三方面中任一实施例所描述的方法。According to a sixth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, wherein when the computer program is executed by a processor, the computer program is implemented as in any one of the first or third aspects described above. Describe the method.
本申请实施例提出的编码信息的生成方法和识别方法,通过在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,可以生成第一编码图像。接着,通过以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,可以分别得到第二预设数目个不同旋转角度下的第二编码图像。之后,根据得到的第二编码图像,可以生成编码图像集合。并可以输出编码图像集合。这种实施方式丰富了编码信息的生成方式。从而可以有助于满足用户的不同设计需求,有利于丰富编码信息的呈现形式。The method for generating and identifying the encoded information provided in the embodiments of the present application can generate a first encoded image by adding a first preset number of positioning images to a preset position in a target image containing the encoded information. Then, by rotating the first coded image by a second preset number of angles around the center area of the first coded image, second coded images at a second preset number of different rotation angles can be obtained. Then, based on the obtained second encoded image, an encoded image set can be generated. And can output coded image collection. This implementation mode enriches the manner in which the encoded information is generated. This can help meet the different design needs of users, and is conducive to enriching the presentation of encoded information.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments with reference to the following drawings:
图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied; FIG.
图2是根据本申请的编码信息的生成方法的一个实施例的流程图;2 is a flowchart of an embodiment of a method for generating encoded information according to the present application;
图3A-图3D分别是本申请中的第一编码图像的四个实施例的结构示意图;3A-3D are schematic structural diagrams of four embodiments of a first encoded image in the present application;
图4是根据本申请的编码信息的识别方法的一个实施例的流程图;4 is a flowchart of an embodiment of a method for identifying encoding information according to the present application;
图5是根据本申请的编码信息的识别方法的又一个实施例的流程图;5 is a flowchart of still another embodiment of a method for identifying encoded information according to the present application;
图6是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The following describes the present application in detail with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The application will be described in detail below with reference to the drawings and embodiments.
图1示出了可以应用本申请实施例的编码信息的生成方法和识别方法的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 to which a method for generating and identifying encoding information according to an embodiment of the present application can be applied.
系统架构100可以包括终端101、102、103,网络104、105和服务端106。网络104可以用以在终端101、102、103之间提供通信链路的介质。网络105可以用以在终端101、102、103与服务端106之间提供通信链路的介质。网络104、105可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。The system architecture 100 may include terminals 101, 102, and 103, networks 104, 105, and a server 106. The network 104 may be used to provide a medium for communication links between the terminals 101, 102, 103. The network 105 may be used to provide a medium for a communication link between the terminals 101, 102, 103 and the server 106. The networks 104, 105 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
用户之间可以使用终端101、102、103通过网络104进行交互,以接收或发送消息等。同时,用户还可以使用终端101、102、103通过网络105与服务端106进行交互,以获取信息等。终端101、102、103上可以安装有各种客户端应用,例如编码信息生成和识别类应用、网页浏览器、购物类应用和即时通讯工具等。Users can use terminals 101, 102, and 103 to interact through the network 104 to receive or send messages and the like. At the same time, the user can also use the terminals 101, 102, 103 to interact with the server 106 through the network 105 to obtain information and the like. A variety of client applications can be installed on the terminals 101, 102, and 103, such as coded information generation and identification applications, web browsers, shopping applications, and instant messaging tools.
用户也可以使用终端101、102、103上安装的编码信息生成类应用,来对包含编码信息的目标图像进行处理。从而可以生成编码图像集合。此外,用户还可以使用终端101、102、103来采集编码图像集合中的编码图像。这样,终端101、102、103可以对各编码图像进行分析处理。并且可以将处理结果(如识别出的编码信息)呈现给用户。The user can also use the coded information generation application installed on the terminals 101, 102, 103 to process the target image containing the coded information. Thereby, a set of encoded images can be generated. In addition, the user can also use the terminals 101, 102, 103 to collect the encoded images in the encoded image set. In this way, the terminals 101, 102, 103 can perform analysis processing on each encoded image. And the processing result (such as the identified encoding information) can be presented to the user.
这里的终端101、102、103可以是硬件,也可以是软件。当终端101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、可穿戴设备、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、膝上型便携计算机和台式计算机等等。当终端101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现 成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The terminals 101, 102, and 103 here may be hardware or software. When the terminals 101, 102, and 103 are hardware, they can be various electronic devices with display screens, including but not limited to smartphones, tablets, wearable devices, e-book readers, MP3 players (Moving Pictures Experts Group Audio Layer III, motion picture expert compression standard audio layer 3), laptop portable computers and desktop computers, etc. When the terminals 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
服务端106可以是提供各种服务的服务端,例如可以是对终端101、102、103上安装的各种应用提供支持的后台服务器。后台服务器可以对用户在应用上的操作行为进行分析处理,并根据处理结果向用户发送对应的反馈信息。作为示例,后台服务器在接收到终端发送的编码信息生成指令后,可以对包含编码信息的目标图像进行分析处理。并可以将处理结果(如编码图像集合)反馈给终端。The server 106 may be a server that provides various services, such as a background server that provides support for various applications installed on the terminals 101, 102, and 103. The background server can analyze and process the user's operation behavior on the application, and send corresponding feedback information to the user according to the processing result. As an example, after receiving the encoding information generation instruction sent by the terminal, the background server may analyze and process the target image containing the encoding information. And the processing result (such as a set of encoded images) can be fed back to the terminal.
这里的服务端106同样可以是硬件,也可以是软件。当服务端106为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务端106为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The server 106 here may also be hardware or software. When the server 106 is hardware, it can be implemented as a distributed server cluster composed of multiple servers or as a single server. When the server 106 is software, it can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
需要说明的是,本申请实施例所提供的编码信息的生成方法一般由终端101、102、103或服务端106执行。而编码信息的识别方法一般由终端101、102、103执行。It should be noted that the method for generating encoded information provided in the embodiments of the present application is generally performed by the terminals 101, 102, 103 or the server 106. The identification method of the encoded information is generally executed by the terminals 101, 102, and 103.
应该理解,图1中的终端、网络和服务端的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端、网络和服务端。It should be understood that the numbers of terminals, networks, and servers in FIG. 1 are merely exemplary. According to implementation needs, there can be any number of terminals, networks, and servers.
继续参见图2,其示出了根据本申请的编码信息的生成方法的一个实施例的流程200。该编码信息的生成方法可以包括以下步骤:Continuing to refer to FIG. 2, a flowchart 200 of an embodiment of a method for generating encoded information according to the present application is shown. The method for generating the encoded information may include the following steps:
步骤201,在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像。Step 201: Add a first preset number of positioning images at a preset position to a target image containing the coding information to generate a first coded image.
在本实施例中,编码信息的生成方法的执行主体(例如图1所示的终端101、102、103或服务端106)可以在包含编码信息的目标图像的预设位置处,添加第一预设数目个定位图像,从而生成第一编码图像。即可以将添加了第一预设数目个定位图像后的目标图像作为第一编码图像。In this embodiment, an execution subject (for example, the terminal 101, 102, 103, or the server 106 shown in FIG. 1) of the method for generating encoded information may add a first preset position at a preset position of the target image containing the encoded information Set a number of positioning images to generate a first coded image. That is, the target image after adding the first preset number of positioning images may be used as the first encoded image.
在这里,编码信息可以是采用各种编码方式(如二进制编码)对字符串进行编码而生成的信息。其中,字符串可以(但不限于)是包括字母、数字、符号、汉字等至少一种字符的文本信息。字符串的内容可以包括但不限于网址、地址、名片信息、商品信息、交易信息、Wi-Fi (WIreless-Fidelity,无线宽带)密码等等。而目标图像可以是包含编码信息的任意图像。这里的目标图像可以是预先存储在执行主体本地的;也可以是执行主体从网上资源或其他电子设备中获取的;还可以是用户输入至执行主体中的。Here, the encoding information may be information generated by encoding a character string by using various encoding methods (such as binary encoding). The character string may be (but is not limited to) text information including at least one character such as a letter, a number, a symbol, and a Chinese character. The content of the character string may include, but is not limited to, a website address, an address, business card information, product information, transaction information, a Wi-Fi (WIreless-Fidelity, wireless broadband) password, and the like. The target image can be any image containing the encoded information. The target image here may be stored locally in the execution subject in advance; it may also be obtained by the execution subject from online resources or other electronic devices; or it may be input by the user into the execution subject.
在本实施例中,定位图像可以是用于定位标记的图像。且定位图像通常与编码信息具有不同的表现形式,以便于区分。例如定位图像可以是特殊形状图像,如圆形、菱形六边形等。这样可以有别于如二维码或条形码等编码的图像形状,从而不会对编码信息的内容产生干扰。上述预设位置可以是目标图像中不会对编码信息产生影响的任意位置,如目标图像的边角位置。预设位置和第一预设数目可以根据实际情况进行设置。In this embodiment, the positioning image may be an image for positioning a mark. And the positioning image usually has a different expression form from the coded information, so as to be easy to distinguish. For example, the positioning image may be a special shape image, such as a circle, a diamond hexagon, or the like. This can be different from the coded image shape such as a two-dimensional code or a barcode, so that it will not interfere with the content of the coded information. The preset position may be any position in the target image that does not affect the encoding information, such as a corner position of the target image. The preset positions and the first preset number can be set according to actual conditions.
此外,在目标图像中添加定位图像的方式在本申请中也不限制。例如,可以将定位图像作为图层,直接覆盖在目标图像的预设位置处的图像上。再例如,可以在目标图像的预设位置处绘制定位图像等。In addition, the manner of adding the positioning image to the target image is not limited in this application. For example, the positioning image can be used as a layer to directly overlay the image at a preset position of the target image. As another example, a positioning image or the like may be drawn at a preset position of the target image.
在本实施例的一些可选地实现方式中,第一预设数目可以不大于二。即在目标图像中添加的定位图像的数目可以不大于二。也就是说,与传统的二维码相比,不需要过多的定位点。In some optional implementations of this embodiment, the first preset number may not be greater than two. That is, the number of positioning images added to the target image may not be greater than two. In other words, compared with the traditional two-dimensional code, it does not need too many positioning points.
例如,执行主体可以在目标图像的边缘位置添加一个定位图像,从而生成第一编码图像。如图3A所示,若编码信息位于方形框区域内,则可以在方形框的某个角(如左上角)上添加一个圆环图像(即定位图像)。这里的方形框可以是图3A中所示的正方形,也可以是长方形。在一些应用场景中,方形框可以替换为圆形框,如太极码。此时的定位图像可以(但不限于)是位于圆形框上的圆环图像;也可以是位于圆形框内、且连接圆心和边缘的曲线或直线等线段。For example, the execution subject may add a positioning image to the edge position of the target image to generate a first coded image. As shown in FIG. 3A, if the encoded information is located in the area of the square frame, a ring image (that is, a positioning image) can be added to a corner (such as the upper left corner) of the square frame. The square frame here may be a square as shown in FIG. 3A, or may be a rectangle. In some application scenarios, the square box can be replaced with a round box, such as Tai Chi. The positioning image at this time may be (but is not limited to) a ring image located on a circular frame; it may also be a line segment such as a curve or a line located inside the circular frame and connecting the center and the edge.
又例如,执行主体可以在目标图像的边缘位置对称或非对称添加两个定位图像,从而生成第一编码图像。若编码信息位于方形框区域内,则可以如图3B所示,在方形框的任意相邻的两个角(如左上角和右上角)上分别添加一个实心圆点图像。或者可以如图3C所示,在方形框的任意两个对角上分别添加一个定位图像。在图3C中,定位图像可以是圆环加实心圆点的图像。其中,圆环与实心圆点可以具有相同的圆心。As another example, the execution subject may add two positioning images symmetrically or asymmetrically at the edge positions of the target image, thereby generating a first encoded image. If the encoded information is located in the area of the square frame, as shown in FIG. 3B, a solid dot image can be added to any two adjacent corners (such as the upper left corner and the upper right corner) of the square frame. Alternatively, as shown in FIG. 3C, a positioning image may be added to any two diagonal corners of the square frame. In FIG. 3C, the positioning image may be an image of a donut plus a solid dot. The ring and the solid dot may have the same center.
再例如,执行主体可以在目标图像的中心区域和边缘位置分别添加一个定位图像,从而生成第一编码图像。如图3D所示,若编码信息位于两个同心圆框之间,则可以在外侧圆框上添加一个圆环图像。同时,可以在内侧圆框上添加一个实心圆点图像。或者也可以在圆心处添加一个定位图像。其中,两个定位图像的中心点可以同轴,也可以不同轴。For another example, the execution subject may add a positioning image to the central region and the edge position of the target image, respectively, thereby generating a first encoded image. As shown in FIG. 3D, if the encoding information is located between two concentric circular frames, a ring image can be added to the outer circular frame. At the same time, you can add a solid dot image to the inner round frame. Or you can add a positioning image at the center of the circle. The center points of the two positioning images may be coaxial or different axes.
需要说明的是,通常情况下,目标图像的主要作用是呈现编码信息。所以编码信息往往会占据目标图像的大部分区域。也就是说,目标图像的边缘位置基本上就是编码信息的边缘位置。It should be noted that, in general, the main role of the target image is to present the encoded information. Therefore, the encoded information often occupies most of the area of the target image. That is, the edge position of the target image is basically the edge position of the encoded information.
步骤202,以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,分别得到第二预设数目个不同旋转角度下的第二编码图像。Step 202: Rotate the first encoded image by a second preset number of angles around the center area of the first encoded image to obtain second encoded images at a second preset number of different rotation angles, respectively.
在本实施例中,在生成第一编码图像后,执行主体可以以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个不同角度。从而可以分别得到第二预设数目个不同旋转角度下的第二编码图像。其中,旋转角度可以包括旋转方向和角度的大小。在这里,第二预设数目和旋转角度可以根据实际需求进行设置。In this embodiment, after the first encoded image is generated, the execution subject may rotate the first encoded image by a second preset number of different angles with the center area of the first encoded image as a center. Thereby, a second preset number of second encoded images at different rotation angles can be obtained. The rotation angle may include the direction of rotation and the size of the angle. Here, the second preset number and rotation angle can be set according to actual needs.
作为示例,执行主体可以先按照顺时针,将第一编码图像分别旋转60°、120°和180°。之后,执行主体可以按照逆时针,将第一编码图像再分别旋转60°和120°。这样可以得到等角度差的五个第二编码图像。又例如,执行主体可以按照角度差依次递增(或递减)的方式进行旋转。如按照顺时针(或逆时针),将第一编码图像分别旋转60°、130°、210°和300°。角度差依次为60、70、80和90。再例如,为了提高数据处理效率,简化处理过程,执行主体可以按照顺时针(或逆时针),以等角度差的方式旋转第一编码图像。As an example, the execution subject may first rotate the first coded image by 60 °, 120 °, and 180 ° in a clockwise direction. After that, the execution subject can rotate the first coded image counterclockwise by 60 ° and 120 °, respectively. In this way, five second encoded images with equal angular differences can be obtained. As another example, the execution subject may rotate in a manner of increasing (or decreasing) the angle difference sequentially. For example, the first coded image is rotated clockwise (or counterclockwise) by 60 °, 130 °, 210 °, and 300 °, respectively. The angular differences are 60, 70, 80, and 90, respectively. For another example, in order to improve data processing efficiency and simplify the processing process, the execution subject may rotate the first coded image in a clockwise (or counterclockwise) manner with an equal angular difference.
可以理解的是,上述旋转过程作可以是用户手动操作完成的,也可以是执行主体通过执行相应的程序而实现的。例如执行主体可以根据用户设置的参数,对第一编码图像进行仿射变换,从而得到第一个第二编码图像。接着,可以将第一个第二编码图像作为第一编码图像继续进行仿射变换。直至第二编码图像的数量达到第二预设数目。或者直至当前得到的第二编码图像与原始的第一编码图像相同,说明此时已旋转一周。这样可以减少人为操作,有助于提高数据处理效率。It can be understood that the above-mentioned rotation process can be performed manually by a user, or can be implemented by an execution subject by executing a corresponding program. For example, the execution subject may perform affine transformation on the first encoded image according to parameters set by the user, so as to obtain the first second encoded image. Then, the first second encoded image can be used as the first encoded image to continue the affine transformation. Until the number of the second encoded images reaches a second preset number. Or until the currently obtained second coded image is the same as the original first coded image, it means that one rotation has been performed at this time. This can reduce manual operations and help improve data processing efficiency.
步骤203,根据得到的第二编码图像,生成编码图像集合,并输出编码图像集合。Step 203: Generate a coded image set according to the obtained second coded image, and output the coded image set.
在本实施例中,执行主体可以根据步骤202中得到的第二编码图像,生成编码图像集合。并可以输出该编码图像集合。这里的输出可以是存储输出。例如可以将编码图像集合存储在本地。或者可以将编码图像集合存储至其他电子设备或云端等。In this embodiment, the execution body may generate a coded image set according to the second coded image obtained in step 202. And can output the coded image collection. The output here can be stored output. For example, the encoded image collection may be stored locally. Or you can store the encoded image collection to other electronic devices or the cloud.
作为示例,执行主体可以按照各第二编码图像的生成顺序,将各第二编码图像依次存储至生成的集合文件中。从而可以将该集合文件作为编码图像集合。As an example, the execution body may sequentially store the second encoded images in the generated collection file in the order in which the second encoded images are generated. Thereby, the set file can be used as a set of encoded images.
可选地,执行主体可以以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对第一编码图像和得到的第二编码图像进行存储,生成编码图像集合。也就是说,编码图像集合中可以包括第一编码图像和第二编码图像。或者执行主体可以以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对得到的第二编码图像进行存储,生成编码图像集合。也就是说,编码图像集合中可以包括第二编码图像。这里的旋转角度是指同方向下的旋转角度。Optionally, the execution subject may use the first encoded image as a reference and store the first encoded image and the obtained second encoded image in the order of rotation angle from small to large or from large to small to generate a set of encoded images. That is, the coded image set may include a first coded image and a second coded image. Alternatively, the execution subject may use the first encoded image as a reference and store the obtained second encoded image in the order of rotation angle from small to large or from large to small to generate a set of encoded images. That is, the coded image set may include a second coded image. The rotation angle here refers to the rotation angle in the same direction.
在一些实施例中,上述输出也可以是传输输出和/或显示输出。例如执行主体可以将编码图像集合发送给终端。或者执行主体可以对编码图像集合中的编码图像进行显示。例如,执行主体可以按照任意顺序或编码图像的存储顺序,将各编码图像全部显示在屏幕上。又例如,执行主体可以按照任意顺序或编码图像的存储顺序,以预设帧率逐个显示编码图像集合中的各编码图像。也就是说,以预设帧率对各编码图像进行一个一个的显示。In some embodiments, the output may also be a transmission output and / or a display output. For example, the execution body may send the encoded image set to the terminal. Or the execution subject may display the encoded images in the encoded image set. For example, the execution subject may display all the encoded images on the screen in any order or in the order in which the encoded images are stored. For another example, the execution body may display each coded image in the coded image set one by one at a preset frame rate in an arbitrary order or in a stored order of the coded images. That is, each coded image is displayed one by one at a preset frame rate.
进一步地,为了便于后续对编码图像的识别,执行主体可以以第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,以预设帧率依次显示编码图像集合中的编码图像。这样有助于提高编码信息的识别效率,减少用户的等待时长。Further, in order to facilitate subsequent recognition of the encoded image, the execution subject may use the first encoded image as a reference, and sequentially display the encoding image set in the encoded image set in the order of rotation angle from small to large or from large to small at a preset frame rate. Encode the image. This helps improve the recognition efficiency of the encoded information and reduces the waiting time of the user.
需要说明的是,预设帧率(即每秒显示的帧数)在本申请中并不限制。例如可以根据编码图像的数目来设置。此外,执行主体对编码图像集合的显示,可以是仅显示一次;也可以是循环显示指定次数(如三次);还可以是显示至指定时长(如两秒)或持续循环显示。It should be noted that the preset frame rate (that is, the number of frames displayed per second) is not limited in this application. It can be set according to the number of encoded images, for example. In addition, the display of the coded image set by the execution subject may be displayed only once; it may also be displayed cyclically for a specified number of times (such as three times); it may also be displayed for a specified period of time (such as two seconds) or displayed continuously.
本实施例提供的编码信息的生成方法,通过在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,可以生成第一编码图像。接着,通过以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,可以分别得到第二预设数目个不同旋转角度下的第二编码图像。之后,根据得到的第二编码图像,可以生成编码图像集合。并可以输出编码图像集合。这种实施方式丰富了编码信息的生成方式。从而可以有助于满足用户的不同设计需求,有利于丰富编码信息的呈现形式。The method for generating encoded information provided in this embodiment can generate a first encoded image by adding a first preset number of positioning images to a preset position in a target image containing the encoded information. Then, by rotating the first coded image by a second preset number of angles around the center area of the first coded image, second coded images at a second preset number of different rotation angles can be obtained. Then, based on the obtained second encoded image, an encoded image set can be generated. And can output coded image collection. This implementation mode enriches the manner in which the encoded information is generated. This can help meet the different design needs of users, and is conducive to enriching the presentation of encoded information.
请参见图4,其示出了根据本申请的编码信息的识别方法的一个实施例的流程400。该编码信息的识别方法可以用于识别上述实施例所描述的方法生成的编码图像集合中的编码图像,包括以下步骤:Please refer to FIG. 4, which illustrates a process 400 of an embodiment of a method for identifying encoded information according to the present application. The method for identifying encoding information may be used to identify an encoded image in an encoded image set generated by the method described in the foregoing embodiment, and includes the following steps:
步骤401,采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息。Step 401: Collect a coded image displayed in each frame, identify a first preset number of positioning images in the coded image, and determine position information of the positioning image.
在本实施例中,编码信息的识别方法的执行主体(例如图1所示的终端101、102、103)可以采集各帧显示的编码图像。其中,编码图像集合中的编码图像可以按照预设帧率被逐个显示。例如,当其他电子设备按照预设帧率逐个显示编码图像集合中的编码图像时,用户可以使用执行主体上的摄像头采集各帧显示的编码图像。又例如,当用户触发(如点击或长按等)执行主体的屏幕上的某一指定区域时,执行主体可以在该指定区域,按照预设帧率逐个显示编码图像集合中的编码图像。同时,执行主体可以采用截图等方式采集屏幕上各帧显示的编码图像。In this embodiment, an execution subject (for example, the terminals 101, 102, and 103 shown in FIG. 1) of the method for identifying encoding information may collect an encoded image displayed in each frame. The encoded images in the encoded image set may be displayed one by one according to a preset frame rate. For example, when other electronic devices display the coded images in the coded image set one by one at a preset frame rate, the user may use a camera on the execution body to capture the coded images displayed in each frame. As another example, when the user triggers (eg, clicks or long presses, etc.) a specified area on the screen of the execution subject, the execution subject may display the encoded images in the encoded image set one by one in the specified area at the preset frame rate. At the same time, the execution subject can use screenshots and other methods to collect the encoded images displayed in each frame on the screen.
在本实施例中,执行主体可以识别所采集的编码图像中的第一预设数目个定位图像。并可以确定定位图像的位置信息。例如,执行主体可以对编码图像进行图像识别分析,确定其中是否存在第一预设数目个特殊形状图像(即与大部分图像形状不同的图像)。若确定存在,则可以将特殊形状图像确定为定位图像。In this embodiment, the execution subject may identify the first preset number of positioning images in the acquired encoded image. And can determine the location information of the positioning image. For example, the execution subject may perform image recognition analysis on the encoded image to determine whether a first preset number of special shape images (that is, images with a shape different from most of the images) exist therein. If it is determined to exist, the special shape image may be determined as a positioning image.
又例如,执行主体可以对编码图像进行图像识别分析,确定其中是否存在与预存图像匹配的图像。其中,预存图像的存储位置不限制。这里的匹配可以是指图像特征之间的相似度达到阈值(如90%或100%等)。若确定存在,则可以将匹配的图像确定为定位图像。As another example, the execution subject may perform image recognition analysis on the encoded image to determine whether there is an image matching the pre-stored image. The storage location of the pre-stored image is not limited. Matching here can mean that the similarity between image features reaches a threshold (such as 90% or 100%, etc.). If it is determined to exist, the matched image may be determined as a positioning image.
再例如,执行主体可以将编码图像输入预先训练的识别模型中。这 样,执行主体可以利用识别模型对定位图像进行识别。并且可以输出定位图像的位置信息。其中,识别模型可以是采用大量的正负样本对初始模型进行训练而得到的。正样本可以是有定位图像的样本编码图像以及定位图像的样本位置。而负样本可以是没有定位图像的样本编码图像。As another example, the execution subject may input the encoded image into a pre-trained recognition model. In this way, the execution subject can use the recognition model to identify the positioning image. And the position information of the positioning image can be output. Among them, the recognition model may be obtained by training the initial model with a large number of positive and negative samples. Positive samples can be sample coded images with localized images and sample locations for localized images. The negative sample may be a sample-encoded image without a localized image.
在这里,上述位置信息可以(但不限于)是定位图像在编码图像中的位置信息。例如也可以是定位图像在上述指定区域(或截图)中的位置信息。而且位置信息可以(但不限于)是定位图像的中心点坐标。但需要说明的是,不同编码图像中的定位图像的位置信息可以具有相同的坐标原点。如可以将编码图像的任意角(如左上角)或任意边的中心点作为参考原点。这样有助于提高数据的处理效率。Here, the above-mentioned position information may be (but is not limited to) position information of the positioning image in the encoded image. For example, the position information of the positioning image in the specified area (or screenshot) may be used. And the position information may be (but not limited to) the coordinates of the center point of the positioning image. However, it should be noted that the position information of the positioning images in different encoded images may have the same coordinate origin. For example, the center point of any corner (such as the upper left corner) or any side of the encoded image can be used as the reference origin. This helps improve the efficiency of data processing.
可以理解的是,在显示编码图像集合中的各编码图像时,往往是编码图像中的编码信息的位置和定位图像的位置发生改变。而显示编码图像的屏幕或指定区域是固定不变。也就是说,不同编码图像的尺寸形状是不变的。It can be understood that when displaying each coded image in the coded image set, the position of the coded information in the coded image and the position of the positioning image often change. The screen or designated area where the coded image is displayed is fixed. That is, the size and shape of different encoded images are constant.
步骤402,根据各帧确定的定位图像的位置信息,得到位置信息序列。Step 402: Obtain a position information sequence according to the position information of the positioning image determined in each frame.
在本实施例中,执行主体可以根据各帧确定的定位图像的位置信息,得到位置信息序列。作为示例,执行主体可以按照采集时间的先后顺序,对各帧确定的定位图像的位置信息进行存储,以得到位置信息序列。其中,同一编码图像中的各定位图像的位置信息可以形成数组。又例如,若编码图像中包括至少两种定位图像,则执行主体可以按照采集时间的先后顺序,对各帧确定的至少两种定位图像的位置信息分别进行存储。再例如,执行主体可以对各帧确定的定位图像的位置信息进行分析,从而确定相对位置关系。并可以按照顺时针(或逆时针)方向的顺序,对各帧确定的定位图像的位置信息进行存储。In this embodiment, the execution subject may obtain a position information sequence according to the position information of the positioning image determined by each frame. As an example, the execution subject may store the position information of the positioning image determined in each frame in order of the acquisition time to obtain the position information sequence. Wherein, the position information of each positioning image in the same coded image may form an array. For another example, if the encoded image includes at least two positioning images, the execution subject may store the position information of the at least two positioning images determined in each frame in the order of the acquisition time. For another example, the execution subject may analyze the position information of the positioning image determined in each frame to determine the relative position relationship. The position information of the positioning image determined in each frame can be stored in the order of the clockwise (or counterclockwise) direction.
步骤403,根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息。Step 403: Locate and identify encoding information in the encoded images in the encoded image set according to the position information sequence.
在本实施例中,执行主体可以根据步骤402中得到的位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息。作为示例,执行主体可以在当前采集的编码图像中,标记位置信息序列中的位置信息所指示的位置。并可以根据标记的位置形成定位区域。例如可以采用 直线或弧线将标记的各位置依次连接。并可以将位于连接线内的区域作为定位区域。或者可以根据标记的各位置来确定中心点。并以中心点为圆心,以中心点至任意标记的位置的距离为半径来确定定位区域。从而可以识别当前采集的编码图像中位于定位区域内的信息(即编码信息)。In this embodiment, the execution subject may locate and identify the encoding information in the encoded images in the encoded image set according to the position information sequence obtained in step 402. As an example, the execution subject may mark the position indicated by the position information in the position information sequence in the currently acquired encoded image. And the positioning area can be formed according to the position of the mark. For example, a straight line or an arc can be used to connect the positions of the marks one after another. The area inside the connection line can be used as the positioning area. Alternatively, the center point can be determined according to each position of the mark. The positioning area is determined by taking the center point as the center of the circle and the distance from the center point to the position of any mark as the radius. In this way, the information (that is, the coding information) located in the positioning area in the currently acquired coded image can be identified.
可选地,执行主体可以先从采集的编码图像中选取编码图像。例如可以选取图像相对清晰的编码图像。或者可以选取采集的第一张编码图像(有可能为第一编码图像)。接着,可以在选取的编码图像中,标记位置信息序列中的位置信息所指示的位置,并形成定位区域。之后,可以识别选取的编码图像中位于定位区域内的信息。Optionally, the execution body may first select a coded image from the collected coded images. For example, a coded image with relatively clear images can be selected. Alternatively, the first coded image (possibly the first coded image) collected may be selected. Then, in the selected coded image, the position indicated by the position information in the position information sequence may be marked, and a positioning area may be formed. After that, the information in the positioning area in the selected coded image can be identified.
需要说明的是,为了降低对用户使用的影响,上述定位和识别过程通常可以在后台运行。此外,为了提高识别效率,减少用户等待时长,编码图像的采集过程往往也不是一直进行的。在一些情况下,执行主体可以停止采集编码图像。It should be noted that, in order to reduce the impact on user usage, the above-mentioned positioning and identification process can usually be run in the background. In addition, in order to improve the recognition efficiency and reduce the user's waiting time, the process of collecting encoded images is not always continuous. In some cases, the executing subject may stop acquiring encoded images.
可选地,在采集过程中,执行主体可以在已确定的定位图像的位置信息中,确定是否存在与当前帧确定的定位图像的位置信息相同的位置信息。若确定存在相同的位置信息,则可以停止采集编码图像。可以理解的是,如果同一编码图像中包括至少两个定位图像,那么上述相同的位置信息主要是指与当前帧确定的至少两个定位图像的位置信息均相同的位置信息。Optionally, in the acquisition process, the execution subject may determine, from the determined position information of the positioning image, whether there is position information that is the same as the position information of the positioning image determined by the current frame. If it is determined that the same position information exists, the acquisition of the encoded image may be stopped. It can be understood that if the same coded image includes at least two positioning images, the same position information mentioned above mainly refers to position information that is the same as the position information of at least two positioning images determined by the current frame.
在一些实施例中,执行主体可以在开始采集时进行计时。并且在采集过程中,可以确定当前采集时长是否达到预设时长(如5秒)。若确定达到预设时长,则可以停止采集编码图像。In some embodiments, the execution subject may be timed when the acquisition begins. And during the acquisition process, it can be determined whether the current acquisition time reaches a preset time (for example, 5 seconds). If it is determined that the preset time period is reached, the acquisition of the encoded image may be stopped.
本实施例提供的编码信息的识别方法,通过采集各帧显示的编码图像,从而可以识别编码图像中的第一预设数目个定位图像,并可以确定定位图像的位置信息。其中,编码图像集合中的编码图像可以按照预设帧率逐个显示。之后,根据各帧确定的定位图像的位置信息,可以得到位置信息序列。最后,根据位置信息序列,可以定位并识别编码图像集合中的编码图像中的编码信息。这种实施方式可以实现对上述实施例所描述的方法生成的编码图像集合中的编码图像的识别。而且丰富了编码信息的识别方式。这样可以有助于满足不同用户的使用需求。The method for identifying encoding information provided by this embodiment can identify the first preset number of positioning images in the encoded image by collecting the encoded images displayed in each frame, and can determine position information of the positioning images. The encoded images in the encoded image set may be displayed one by one according to a preset frame rate. Then, according to the position information of the positioning image determined in each frame, a position information sequence can be obtained. Finally, according to the position information sequence, the encoding information in the encoded images in the encoded image set can be located and identified. This implementation manner can realize identification of the encoded images in the encoded image set generated by the method described in the foregoing embodiment. It also enriches the identification of the encoded information. This can help meet the needs of different users.
进一步参见图5,其示出了根据本申请的编码信息的识别方法的又一个实施例的流程500。该编码信息的识别方法可以包括以下步骤:Further referring to FIG. 5, it illustrates a flow 500 of still another embodiment of a method for identifying encoded information according to the present application. The method for identifying the encoded information may include the following steps:
步骤501,采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息。Step 501: Collect a coded image displayed in each frame, identify a first preset number of positioning images in the coded image, and determine position information of the positioning image.
在本实施例中,编码信息的识别方法的执行主体(例如图1所示的终端101、102、103)可以采集各帧显示的编码图像。其中,编码图像集合中的编码图像可以按照预设帧率逐个显示。从而可以识别编码图像中的第一预设数目个定位图像,并可以确定定位图像的位置信息。参见图4实施例的步骤401中的相关描述,此处不再赘述。In this embodiment, an execution subject (for example, the terminals 101, 102, and 103 shown in FIG. 1) of the method for identifying encoding information may collect an encoded image displayed in each frame. The encoded images in the encoded image set may be displayed one by one according to a preset frame rate. Thereby, the first preset number of positioning images in the encoded image can be identified, and the position information of the positioning images can be determined. Refer to the related description in step 401 of the embodiment in FIG. 4, and details are not described herein again.
步骤502,确定是否存在采集丢帧情况。In step 502, it is determined whether there is a case of collecting dropped frames.
在本实施例中,执行主体可以根据相邻两个采集的编码图像之间的间隔时长,来确定是否存在采集丢帧情况。例如按照采集时间的先后顺序,第一张编码图像与第二张编码图像、第二张编码图像与第三张编码图像之间的采集间隔均为0.2秒。而第三张编码图像与第四张编码图像之间的采集间隔为0.4秒。此时,执行主体可以确定在第三张与第四张之间存在丢帧情况。In this embodiment, the execution subject may determine whether there is a case of frame loss due to collection according to the interval time between two adjacent encoded images. For example, according to the sequence of acquisition time, the acquisition interval between the first encoded image and the second encoded image, the second encoded image, and the third encoded image are 0.2 seconds. The acquisition interval between the third encoded image and the fourth encoded image is 0.4 seconds. At this point, the execution subject can determine that there is a frame drop condition between the third and fourth frames.
作为示例,执行主体可以根据各帧确定的定位图像的位置信息,来确定定位图像的位置变化规律。这样根据位置变化规律,执行主体可以确定是否存在采集丢帧情况。例如任意相邻的两个位置之间的距离均为L。此时,若某相邻两个位置之间的距离不为L,则可以说明在这两个位置之间缺少定位图像的位置信息。即存在采集丢帧情况。也就是说,没有采集到可以用于描述缺少的定位图像的位置信息的编码图像。As an example, the execution subject may determine the position change rule of the positioning image according to the position information of the positioning image determined in each frame. In this way, according to the change rule of the position, the execution subject can determine whether there is a frame loss situation during acquisition. For example, the distance between any two adjacent positions is L. At this time, if the distance between two adjacent positions is not L, it can be explained that the position information of the positioning image is missing between the two positions. That is, there is a case of collecting dropped frames. That is, no encoded image can be acquired that can be used to describe the position information of the missing positioning image.
在本实施例中,若执行主体确定不存在丢帧情况,则可以根据各帧确定的定位图像的位置信息,得到位置信息序列。可以参见图4实施例的步骤402中的相关描述,此处不再赘述。若执行主体确定存在丢帧情况,则可以继续执行步骤503。In this embodiment, if the execution subject determines that there is no frame loss, the position information sequence may be obtained according to the position information of the positioning image determined by each frame. For details, reference may be made to step 402 in the embodiment of FIG. 4, and details are not described herein again. If the execution subject determines that a frame loss situation exists, step 503 may be continued.
步骤503,在确定存在丢帧情况时,根据定位图像的位置变化规律,补充丢帧的编码图像中的定位图像的位置信息,得到位置信息序列。Step 503: When it is determined that a frame loss situation exists, according to the position change rule of the positioning image, supplement the position information of the positioning image in the coded image of the dropped frame to obtain a position information sequence.
在本实施例中,若确定存在采集丢帧情况,则执行主体可以根据定位图像的位置变化规律,补充丢帧的编码图像中的定位图像的位置信 息。例如任意相邻的两个位置之间的距离均为L。此时,若某相邻两个位置之间的距离不为L,则可以在这两个位置之间确定这样的一个位置。该位置与这两个位置之间的距离均为L,且符合位置变化规律。即补充的定位图像的位置信息。这样,根据补充后的定位图像的各位置信息,可以得到位置信息序列。可以参见图4实施例的步骤402中的相关描述,此处不再赘述。In this embodiment, if it is determined that there is a frame dropping condition, the execution subject may supplement the position information of the positioning image in the encoded image of the dropped frame according to the position change rule of the positioning image. For example, the distance between any two adjacent positions is L. At this time, if the distance between two adjacent positions is not L, such a position can be determined between the two positions. The distance between this position and these two positions is L, and it conforms to the law of position change. That is, the position information of the supplemental positioning image. In this way, based on the position information of the supplemented positioning image, a position information sequence can be obtained. For details, reference may be made to step 402 in the embodiment of FIG. 4, and details are not described herein again.
步骤504,从采集的编码图像中选取两张编码图像,将选取的两张编码图像中的一张编码图像作为变换前图像,将选取的两张编码图像中的另一张编码图像作为变换后图像,进行仿射变换矩阵的求解。Step 504: Select two encoded images from the collected encoded images, use one of the selected two encoded images as a pre-transform image, and use the other encoded image of the selected two encoded images as a post-transform image. Image, and solve the affine transformation matrix.
在本实施例中,执行主体可以从采集的编码图像中选取两张编码图像。之后,可以将选取的两张编码图像中的一张编码图像作为变换前图像。并可以将选取的两张编码图像中的另一张编码图像作为变换后图像。之后,可以进行仿射变换矩阵的求解。In this embodiment, the execution subject may select two encoded images from the acquired encoded images. After that, one of the selected two encoded images can be used as the image before transformation. And the other one of the selected two encoded images can be used as the transformed image. After that, the affine transformation matrix can be solved.
在这里,选取方式在本申请中并不限制。例如,执行主体可以按照采集时间顺序,选取任意相邻的两张编码图像。或者执行主体可以选取采集的第一张编码图像(可能为第一编码图像),并选取后续采集的任一张编码图像。如选取一张采集图像清晰的编码图像。Here, the selection method is not limited in this application. For example, the execution subject may select any two adjacent coded images in the order of acquisition time. Alternatively, the execution subject may select the first coded image (possibly the first coded image) acquired, and select any subsequent coded image acquired. For example, select a clear encoded image of the collected image.
其中,仿射变换是在几何上定义为两个向量空间之间的一个仿射变换或者仿射映射。通常由一个非奇异的线性变换(运用一次函数进行的变换)接上一个平移变换组成。也就是说,一个向量空间进行一次线性变换并接上一个平移,便可以变换为另一个向量空间。在有限维的情况,每个仿射变换可以由一个矩阵A和一个向量b给出,它可以写作A和一个附加的列b。Among them, the affine transformation is defined geometrically as an affine transformation or an affine mapping between two vector spaces. Usually consists of a non-singular linear transformation (transformation using a linear function) followed by a translation transformation. That is to say, a vector space can be transformed into another vector space by performing a linear transformation followed by a translation. In the case of finite dimensions, each affine transformation can be given by a matrix A and a vector b, which can be written as A and an additional column b.
在这里,执行主体可以采用现有的各种方法来完成仿射变换矩阵的求解。作为示例,可以采用最小二乘法来估算变换矩阵。如可以取两张编码图像中几个相同像素点的位置信息,即为变换前和变换后的位置信息。然后,可以建立超线性方程组。从而通过最小二乘法可以求解出坐标转换系数(即为仿射变换矩阵的参数)。可以理解的是,为了提高数据的复用率,上述像素点可以包括定位图像。这样可以简化处理过程,提高处理效率。Here, the execution body can use various existing methods to complete the solution of the affine transformation matrix. As an example, the least squares method can be used to estimate the transformation matrix. For example, the position information of several identical pixels in two coded images can be taken as the position information before and after transformation. Then, a system of superlinear equations can be established. Therefore, the least square method can be used to solve the coordinate conversion coefficient (that is, the parameter of the affine transformation matrix). It can be understood that, in order to improve the data reuse rate, the aforementioned pixels may include a positioning image. This can simplify the processing process and improve processing efficiency.
再例如,执行主体也可以采用ransac算法求解仿射变换矩阵。其 中,ransac(RANdom Sample Consensus)通常是根据一组包含异常数据的样本数据集,计算出数据的数学模型参数,得到有效样本数据的算法。该算法经常用于计算机视觉中。例如,在立体视觉领域中同时解决一对相机的匹配点问题及基本矩阵的计算。这里的仿射变换矩阵的求解方法是可市售的,在此不再赘述。For another example, the executing body can also use the ransac algorithm to solve the affine transformation matrix. Among them, ransac (RANdom Sample) Consensus is usually an algorithm that calculates the mathematical model parameters of the data based on a set of sample data sets containing abnormal data and obtains valid sample data. This algorithm is often used in computer vision. For example, in the field of stereo vision, the matching point of a pair of cameras and the calculation of the basic matrix are simultaneously solved. The method for solving the affine transformation matrix here is commercially available, and will not be repeated here.
步骤505,利用求解出的仿射变换矩阵,对变换后图像进行逆变换,得到归一化图像。Step 505: Inverse transform the transformed image using the solved affine transformation matrix to obtain a normalized image.
在本实施例中,执行主体可以利用求解出的仿射变换矩阵,对变换后图像进行逆变换,从而可以得到归一化图像。即将选取的两张编码图像中,作为变换后图像的编码图像变换为作为变换前图像的编码图像。In this embodiment, the execution subject may use the solved affine transformation matrix to perform inverse transformation on the transformed image, so as to obtain a normalized image. Among the two coded images to be selected, the coded image as the transformed image is converted into the coded image as the before-transformed image.
步骤506,根据位置信息序列中的位置信息,确定归一化图像的中心点的位置。Step 506: Determine the position of the center point of the normalized image according to the position information in the position information sequence.
在本实施例中,执行主体根据位置信息序列中的位置信息,可以确定这些位置的中心点。可以理解的是,由于第二编码图像是以第一编码图像的中心区域为中心旋转得到的。所以这里确定的中心点即为归一化图像的中心点。In this embodiment, the execution subject may determine the center points of these positions based on the position information in the position information sequence. It can be understood that the second encoded image is obtained by rotating the center area of the first encoded image as a center. So the center point determined here is the center point of the normalized image.
步骤507,根据位置信息序列和中心点的位置,识别归一化图像中的编码信息。Step 507: Identify coding information in the normalized image according to the position information sequence and the position of the center point.
在本实施例中,执行主体可以根据位置信息序列中的位置信息以及中心点的位置,来识别归一化图像中的编码信息。可以参见图4实施例的步骤403中的相关描述,此处不再赘述。In this embodiment, the execution subject may identify the encoded information in the normalized image according to the position information in the position information sequence and the position of the center point. For details, reference may be made to step 403 in the embodiment of FIG. 4, and details are not described herein again.
可选地,执行主体可以以步骤506中确定的中心点为极点,对位置信息序列中的位置信息进行极坐标变换。也就是说,将位置信息序列中的各位置信息的坐标原点变换为归一化图像的中心点。此时,执行主体可以根据位置信息序列中的各位置信息的极坐标,识别归一化图像中的编码信息。Optionally, the execution subject may use the center point determined in step 506 as a pole point to perform polar coordinate transformation on the position information in the position information sequence. That is, the coordinate origin of each position information in the position information sequence is transformed into the center point of the normalized image. At this time, the execution subject can identify the encoded information in the normalized image according to the polar coordinates of each position information in the position information sequence.
本实施例提出的编码信息的识别方法,增加了丢帧情况的确定过程。同时,详细描述了根据位置信息序列来识别编码信息的过程。这样可以丰富和完善识别方法。有助于提高识别结果的准确度。The method for identifying encoding information proposed in this embodiment adds a determination process of a frame loss situation. At the same time, the process of identifying the encoded information based on the position information sequence is described in detail. This can enrich and improve the identification method. Helps improve the accuracy of recognition results.
下面参见图6,其示出了适于用来实现本申请实施例的电子设备(例如图1所示的终端101、102、103或服务端106)的计算机系统600 的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring to FIG. 6 below, a schematic structural diagram of a computer system 600 suitable for implementing an electronic device (such as the terminals 101, 102, 103 or the server 106 shown in FIG. 1) according to the embodiment of the present application is shown. The electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into a random access memory (RAM) 603 according to a program stored in a read-only memory (ROM) 602 or from a storage portion 608. Instead, perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
以下部件连接至I/O接口605:包括触摸屏、按键、鼠标、麦克风、摄像头等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I / O interface 605: an input portion 606 including a touch screen, buttons, a mouse, a microphone, a camera, etc .; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; A storage section 608 of a hard disk or the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet. The driver 610 is also connected to the I / O interface 605 as necessary. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可 读介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing a method shown in a flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, the above-mentioned functions defined in the method of the present application are executed. It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the foregoing. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this application, a computer-readable medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than those marked in the drawings. For example, two successively represented boxes may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified function or operation , Or it can be implemented with a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一生成单元、第二生成单元和第三生成单元。再例如,还可以描述为:一种处理器包括采集单元、序列生成单元和识别单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一生成单元还可以被描述为“在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像的单元”。The units described in the embodiments of the present application may be implemented by software or hardware. The described unit may also be provided in a processor, for example, it may be described as: a processor includes a first generation unit, a second generation unit, and a third generation unit. For another example, it can also be described as: a processor includes an acquisition unit, a sequence generation unit, and a recognition unit. Among them, the names of these units do not constitute a limitation on the unit itself in some cases. For example, the first generating unit can also be described as "adding the first A preset number of positioning images, a unit for generating a first coded image ".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独 存在,而未装配入该电子设备中。例如,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像;以第一编码图像的中心区域为中心,将第一编码图像旋转第二预设数目个角度,分别得到第二预设数目个不同旋转角度下的第二编码图像;根据得到的第二编码图像,生成编码图像集合,并输出编码图像集合。As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the foregoing embodiments; or may exist alone without being assembled into the electronic device in. For example, the computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device causes the electronic device to add a first A preset number of positioning images generates a first coded image; the first coded image is rotated by a second preset number of angles around the center area of the first coded image to obtain a second preset number of different rotation angles, respectively A second coded image under the code; based on the obtained second coded image, a coded image set is generated, and a coded image set is output.
再例如,当上述一个或者多个程序被该电子设备执行时,还可以使得该电子设备:采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息,其中,编码图像集合中的编码图像按照预设帧率逐个显示;根据各帧确定的定位图像的位置信息,得到位置信息序列;根据位置信息序列,定位并识别编码图像集合中的编码图像中的编码信息。As another example, when the one or more programs are executed by the electronic device, the electronic device may be caused to: collect the coded image displayed in each frame, identify the first preset number of positioning images in the coded image, and determine the positioning image The position information of the coded image set is displayed one by one according to a preset frame rate; the position information sequence is obtained according to the position information of the positioning image determined by each frame; and the position of the coded image set is identified according to the position information sequence. Encoding information in the encoded image.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution of the specific combination of the above technical features, but it should also cover the above technical features or Other technical solutions formed by arbitrarily combining their equivalent features. For example, a technical solution formed by replacing the above features with technical features disclosed in the present application (but not limited to) with similar functions.

Claims (14)

  1. 一种编码信息的生成方法,包括:A method for generating encoded information includes:
    在包含编码信息的目标图像中,在预设位置处添加第一预设数目个定位图像,生成第一编码图像;Adding a first preset number of positioning images at a preset position to a target image containing encoding information to generate a first encoded image;
    以所述第一编码图像的中心区域为中心,将所述第一编码图像旋转第二预设数目个角度,分别得到第二预设数目个不同旋转角度下的第二编码图像;Taking the center area of the first encoded image as a center, rotating the first encoded image by a second preset number of angles to obtain second encoded images at a second preset number of different rotation angles, respectively;
    根据得到的第二编码图像,生成编码图像集合,并输出所述编码图像集合。According to the obtained second coded image, a coded image set is generated, and the coded image set is output.
  2. 根据权利要求1所述的方法,其中,所述第一预设数目不大于二,以及所述在预设位置处添加第一预设数目个定位图像,包括:The method according to claim 1, wherein the first preset number is not greater than two, and the adding a first preset number of positioning images at a preset position comprises:
    在所述目标图像的边缘位置添加一个定位图像;或者在所述目标图像的边缘位置对称或非对称添加两个定位图像;或者在所述目标图像的中心区域和边缘位置分别添加一个定位图像。Adding one positioning image to the edge position of the target image; or adding two positioning images symmetrically or asymmetrically to the edge position of the target image; or adding one positioning image to the center region and edge position of the target image respectively.
  3. 根据权利要求1所述的方法,其中,根据得到的第二编码图像,生成编码图像集合,包括:The method according to claim 1, wherein generating a coded image set based on the obtained second coded image comprises:
    以所述第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对所述第一编码图像和得到的第二编码图像进行存储,生成编码图像集合;或者Taking the first encoded image as a reference, storing the first encoded image and the obtained second encoded image in the order of rotation angle from small to large or from large to small to generate a set of encoded images; or
    以所述第一编码图像为基准,按照旋转角度由小到大或由大到小的顺序,对得到的第二编码图像进行存储,生成编码图像集合。Taking the first encoded image as a reference, the obtained second encoded image is stored in the order of rotation angle from small to large or from large to small to generate a coded image set.
  4. 根据权利要求1-3中任一所述的方法,其中,所述输出所述编码图像集合,包括:The method according to any one of claims 1-3, wherein said outputting said set of encoded images comprises:
    按照预设帧率逐个显示所述编码图像集合中的编码图像。The coded images in the coded image set are displayed one by one at a preset frame rate.
  5. 根据权利要求4所述的方法,其中,所述按照预设帧率逐个显示 所述编码图像集合中的编码图像,包括:The method according to claim 4, wherein the displaying the coded images in the coded image set one by one according to a preset frame rate comprises:
    按照旋转角度由小到大或由大到小的顺序,以预设帧率依次显示所述编码图像集合中的编码图像。The coded images in the coded image set are sequentially displayed at a preset frame rate in the order of rotation angle from small to large or from large to small.
  6. 一种编码信息的识别方法,用于识别如权利要求1-5中任一所述方法生成的编码图像集合中的编码图像,包括:A method for identifying encoding information for identifying an encoded image in an encoded image set generated by the method according to any one of claims 1-5, comprising:
    采集各帧显示的编码图像,识别编码图像中的第一预设数目个定位图像,并确定定位图像的位置信息,其中,所述编码图像集合中的编码图像按照预设帧率逐个显示;Collect the coded images displayed in each frame, identify the first preset number of positioning images in the coded images, and determine position information of the positioning images, wherein the coded images in the coded image set are displayed one by one at a preset frame rate;
    根据各帧确定的定位图像的位置信息,得到位置信息序列;Obtaining a position information sequence according to the position information of the positioning image determined by each frame;
    根据所述位置信息序列,定位并识别所述编码图像集合中的编码图像中的编码信息。According to the position information sequence, the encoding information in the encoded images in the encoded image set is located and identified.
  7. 根据权利要求6所述的方法,其中,所述根据所述位置信息序列,定位并识别所述编码图像集合中的编码图像中的编码信息,包括:The method according to claim 6, wherein the locating and identifying encoding information in the encoded images in the encoded image set according to the position information sequence comprises:
    从采集的编码图像中选取两张编码图像,将选取的两张编码图像中的一张编码图像作为变换前图像,将选取的两张编码图像中的另一张编码图像作为变换后图像,进行仿射变换矩阵的求解;Select two coded images from the collected coded images, use one of the two coded images as the pre-transformed image, and use the other coded image of the two selected coded images as the transformed image. Solution of affine transformation matrix;
    利用求解出的仿射变换矩阵,对所述变换后图像进行逆变换,得到归一化图像;Using the solved affine transformation matrix to inversely transform the transformed image to obtain a normalized image;
    根据所述位置信息序列中的位置信息,确定所述归一化图像的中心点的位置;Determining a position of a center point of the normalized image according to the position information in the position information sequence;
    根据所述位置信息序列和所述中心点的位置,识别所述归一化图像中的编码信息。Identify the encoding information in the normalized image according to the position information sequence and the position of the center point.
  8. 根据权利要求7所述的方法,其中,所述根据所述位置信息序列和所述中心点的位置,识别所述归一化图像中的编码信息,包括:The method according to claim 7, wherein the identifying the encoded information in the normalized image based on the position information sequence and the position of the center point comprises:
    以所述中心点为极点,对所述位置信息序列中的位置信息进行极坐标变换;Perform polar coordinate transformation on the position information in the position information sequence using the center point as a pole;
    根据所述位置信息序列中的极坐标,识别所述归一化图像中的编码信息。Identify the encoded information in the normalized image according to the polar coordinates in the position information sequence.
  9. 根据权利要求6所述的方法,其中,根据所述位置信息序列,定位并识别所述编码图像集合中的编码图像中的编码信息,包括:The method according to claim 6, wherein locating and identifying encoding information in the encoded images in the encoded image set according to the position information sequence comprises:
    从采集的编码图像中选取编码图像,在选取的编码图像中,标记所述位置信息序列中的位置信息所指示的位置,并形成定位区域;Selecting a coded image from the collected coded images, marking the position indicated by the position information in the position information sequence in the selected coded image, and forming a positioning area;
    识别选取的编码图像中位于所述定位区域内的信息。Identifying information in the selected coded image that is located within the positioning area.
  10. 根据权利要求6-9中任一所述的方法,其中,所述根据各帧确定的定位图像的位置信息,得到位置信息序列,包括:The method according to any one of claims 6 to 9, wherein the obtaining the position information sequence according to the position information of the positioning image determined in each frame includes:
    确定是否存在采集丢帧情况;在确定存在丢帧情况时,根据定位图像的位置变化规律,补充丢帧的编码图像中的定位图像的位置信息,得到位置信息序列。Determine whether there is a frame loss situation; when it is determined that there is a frame loss situation, according to the position change rule of the positioning image, supplement the position information of the positioning image in the encoded image of the dropped frame to obtain the position information sequence.
  11. 根据权利要求6-10中任一所述的方法,其中,所述根据各帧确定的定位图像的位置信息,得到位置信息序列之前,所述方法还包括:The method according to any one of claims 6 to 10, wherein before obtaining the position information sequence based on the position information of the positioning image determined according to each frame, the method further comprises:
    在已确定的定位图像的位置信息中,确定是否存在与当前帧确定的定位图像的位置信息相同的位置信息;响应于确定存在,停止采集编码图像。In the determined position information of the positioning image, it is determined whether there is the same position information as the position information of the positioning image determined in the current frame; in response to the determination, the acquisition of the encoded image is stopped.
  12. 根据权利要求6-10中任一所述的方法,其中,所述根据各帧确定的定位图像的位置信息,得到位置信息序列之前,所述方法还包括:The method according to any one of claims 6 to 10, wherein before obtaining the position information sequence based on the position information of the positioning image determined according to each frame, the method further comprises:
    确定当前采集时长是否达到预设时长;响应于确定达到,停止采集编码图像。It is determined whether the current acquisition time reaches the preset time; in response to the determination, the acquisition of the encoded image is stopped.
  13. 一种电子设备,包括:An electronic device includes:
    一个或多个处理器;One or more processors;
    存储装置,其上存储有一个或多个程序;A storage device on which one or more programs are stored;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-12.
  14. 一种计算机可读介质,其上存储有计算机程序,其中,所述计算 机程序被处理器执行时实现如权利要求1-12中任一所述的方法。A computer-readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any one of claims 1-12.
PCT/CN2019/100521 2018-08-14 2019-08-14 Method for generating encoded information and method for recognizing encoded information WO2020034981A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810920526.XA CN108985421B (en) 2018-08-14 2018-08-14 Method for generating and identifying coded information
CN201810920526.X 2018-08-14

Publications (1)

Publication Number Publication Date
WO2020034981A1 true WO2020034981A1 (en) 2020-02-20

Family

ID=64552969

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100521 WO2020034981A1 (en) 2018-08-14 2019-08-14 Method for generating encoded information and method for recognizing encoded information

Country Status (2)

Country Link
CN (1) CN108985421B (en)
WO (1) WO2020034981A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985421B (en) * 2018-08-14 2021-05-07 上海掌门科技有限公司 Method for generating and identifying coded information
CN112533014B (en) * 2020-11-26 2023-06-09 Oppo广东移动通信有限公司 Method, device and equipment for processing and displaying target object information in live video broadcast
CN114169353B (en) * 2021-12-08 2023-07-04 福建正孚软件有限公司 Microcode decryption method and microcode decryption system
CN114202047B (en) * 2021-12-14 2023-07-07 福建正孚软件有限公司 Microscopic code-based traceability application method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160342875A1 (en) * 2014-09-15 2016-11-24 Paypal, Inc. Combining a qr code and an image
CN106548499A (en) * 2016-10-27 2017-03-29 网易(杭州)网络有限公司 A kind of generation of coding pattern, recognition methodss and device
CN106570546A (en) * 2016-10-18 2017-04-19 网易(杭州)网络有限公司 Method and device for generating coding pattern and method and device for recognizing coding pattern
CN106570549A (en) * 2016-10-28 2017-04-19 网易(杭州)网络有限公司 Coding pattern generation and identification methods and coding pattern generation and identification devices
CN108985421A (en) * 2018-08-14 2018-12-11 上海掌门科技有限公司 The generation method and recognition methods of encoded information

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE523700C2 (en) * 2001-06-26 2004-05-11 Anoto Ab Method, device and memory medium for position determination
KR100746641B1 (en) * 2005-11-11 2007-08-06 주식회사 칼라짚미디어 Image code based on moving picture, apparatus for generating/decoding image code based on moving picture and method therefor
US7978363B2 (en) * 2006-02-15 2011-07-12 Seiko Epson Corporation Printing apparatus and printing method
KR20090128751A (en) * 2008-06-11 2009-12-16 박문수 Rotary auto code
WO2013027234A1 (en) * 2011-08-22 2013-02-28 Zak株式会社 Satellite dot type two-dimensional code and method for reading same
CN106529635B (en) * 2016-10-18 2019-05-07 网易(杭州)网络有限公司 A kind of generation of coding pattern, recognition methods and device
CN110390375B (en) * 2018-04-17 2022-12-13 银河联动信息技术(北京)有限公司 Dynamic two-dimensional code and identification synthesis system and method and dynamic two-dimensional code display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160342875A1 (en) * 2014-09-15 2016-11-24 Paypal, Inc. Combining a qr code and an image
CN106570546A (en) * 2016-10-18 2017-04-19 网易(杭州)网络有限公司 Method and device for generating coding pattern and method and device for recognizing coding pattern
CN106548499A (en) * 2016-10-27 2017-03-29 网易(杭州)网络有限公司 A kind of generation of coding pattern, recognition methodss and device
CN106570549A (en) * 2016-10-28 2017-04-19 网易(杭州)网络有限公司 Coding pattern generation and identification methods and coding pattern generation and identification devices
CN108985421A (en) * 2018-08-14 2018-12-11 上海掌门科技有限公司 The generation method and recognition methods of encoded information

Also Published As

Publication number Publication date
CN108985421A (en) 2018-12-11
CN108985421B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN107633218B (en) Method and apparatus for generating image
WO2020006961A1 (en) Image extraction method and device
WO2020034981A1 (en) Method for generating encoded information and method for recognizing encoded information
US11270099B2 (en) Method and apparatus for generating facial feature
CN110058685B (en) Virtual object display method and device, electronic equipment and computer-readable storage medium
US11436863B2 (en) Method and apparatus for outputting data
WO2019242222A1 (en) Method and device for use in generating information
JP2020507850A (en) Method, apparatus, equipment, and storage medium for determining the shape of an object in an image
CN110517214B (en) Method and apparatus for generating image
CN108734185B (en) Image verification method and device
WO2020062493A1 (en) Image processing method and apparatus
CN109583389B (en) Drawing recognition method and device
US10970938B2 (en) Method and apparatus for generating 3D information
WO2021082801A1 (en) Augmented reality processing method and apparatus, system, storage medium and electronic device
WO2020029466A1 (en) Image processing method and apparatus
WO2020248900A1 (en) Panoramic video processing method and apparatus, and storage medium
WO2018133692A1 (en) Method for achieving augmented reality, computer device and storage medium
WO2020062494A1 (en) Image processing method and apparatus
WO2020211573A1 (en) Method and device for processing image
CA2898668A1 (en) Realization method and device for two-dimensional code augmented reality
CN108388889B (en) Method and device for analyzing face image
WO2019080702A1 (en) Image processing method and apparatus
CN109754464B (en) Method and apparatus for generating information
CN110059623B (en) Method and apparatus for generating information
WO2018113339A1 (en) Projection image construction method and device

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: 19850567

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: 19850567

Country of ref document: EP

Kind code of ref document: A1