CN111028313B - Table distribution image generation method and device - Google Patents

Table distribution image generation method and device Download PDF

Info

Publication number
CN111028313B
CN111028313B CN201911365863.8A CN201911365863A CN111028313B CN 111028313 B CN111028313 B CN 111028313B CN 201911365863 A CN201911365863 A CN 201911365863A CN 111028313 B CN111028313 B CN 111028313B
Authority
CN
China
Prior art keywords
image
drawn
block
size
number marker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911365863.8A
Other languages
Chinese (zh)
Other versions
CN111028313A (en
Inventor
金凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201911365863.8A priority Critical patent/CN111028313B/en
Publication of CN111028313A publication Critical patent/CN111028313A/en
Application granted granted Critical
Publication of CN111028313B publication Critical patent/CN111028313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a method and a device for generating a distribution image of a table. The method comprises the following steps: acquiring a table image containing a table; obtaining a table identifier of at least one table, a table size and a relative position relationship among the tables through image recognition of the table image, and drawing a mapping diagram of the at least one table in the canvas according to the table size and the relative position relationship among the tables; distributing table identification obtained by identification for the mapping chart of the table; and generating a table distribution image based on the mapping diagram drawn in the canvas and the table identification allocated to the mapping diagram. According to the scheme, the table distribution diagram can be automatically generated, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution diagram is improved; in addition, the table distribution image generated by the scheme can reflect the real table distribution condition, and the drawing precision of the table distribution map is further improved.

Description

Table distribution image generation method and device
Technical Field
The invention relates to the technical field of image processing, in particular to a method and a device for generating a distribution image of a table.
Background
With the continuous development of science and technology and society, various life service industries (such as catering industry) have also been developed rapidly. Currently, many stores in the life service industry are generally managed based on table profiles. For example, in a dining store, the reservation status of tables and order information and the like are generally managed based on a table profile.
However, the inventor finds that the following defects exist in the prior art in the implementation process: in the prior art, a table position distribution diagram is drawn manually. However, the table map drawing method has low drawing efficiency and poor accuracy of the generated table map. Moreover, the drawn table map strongly depends on the drawing level of the drawing person, and is not suitable for large-scale application and implementation. The labor cost is high.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a table distribution image generation method and apparatus that overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided a table distribution image generation method including:
acquiring a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
obtaining a table identification of the at least one table, a table size and a relative position relationship among the tables through image recognition of the table images, and drawing a mapping diagram of the at least one table in a canvas according to the table size and the relative position relationship among the tables;
allocating a table identifier obtained according to the identification to the mapping chart of the at least one table;
and generating a table distribution image based on the mapping chart drawn in the canvas and the table identification distributed to the mapping chart.
Optionally, the obtaining the table identifier of the at least one table by image recognition of the table image further includes:
performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
Optionally, the identifying the table number marker block to identify the table identifier corresponding to the table number marker block further includes:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
Optionally, obtaining the table size of the at least one table by performing image recognition on the table image specifically includes: calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and an image size of the at least one table.
Optionally, the calculating the table size of the at least one table according to the image size of the table number marker block of the at least one table, the physical size of the table number marker, and the image size of the at least one table included in the table image further includes:
performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
Optionally, the method further includes: marking a table size of a table corresponding to the map in the canvas.
Optionally, the method further includes: extracting a table profile of at least one table in the table image through image recognition of the table image;
the shape of the table map matches the table profile of the table.
Optionally, the drawing the map of the at least one table in the canvas according to the table sizes and the relative position relationship between the tables further includes:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
Optionally, the obtaining of the relative position relationship between the tables of the at least one table by the image recognition of the table image specifically includes:
performing image recognition on the table image to extract the at least one table block without the drawn table and the at least one table block with the drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
Optionally, the obtaining a relative position relationship between the at least one undrawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table further includes:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
Optionally, the image recognition includes: contour extraction and/or edge detection.
Optionally, the acquiring a table image including at least one table further comprises:
a table image including at least one table acquired by an image acquisition device is acquired.
According to another aspect of the embodiments of the present invention, there is provided a table distribution image generating apparatus including:
an acquisition module adapted to acquire a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
the image recognition module is suitable for obtaining the table identification, the table size and the relative position relation among the tables of the at least one undrawn table through the image recognition of the table image;
the drawing module is suitable for drawing the mapping chart of the at least one table in the canvas according to the table sizes and the relative position relation between the tables;
the distribution module is suitable for distributing the table identification obtained by identification to the mapping chart of the at least one table;
and the generation module is suitable for generating a table distribution image based on the mapping chart drawn in the canvas and the table identification allocated to the mapping chart.
Optionally, the image recognition module is further adapted to: performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
Optionally, the image recognition module is further adapted to:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
Optionally, the image recognition module is further adapted to: calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and the image size of the at least one table.
Optionally, the image recognition module is further adapted to: performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
Optionally, the apparatus further comprises: a marking module adapted to mark a table size of a table corresponding to the map in the canvas.
Optionally, the image recognition module is further adapted to: extracting a table profile of at least one table in the table image through image recognition of the table image;
the shape of the table map matches the table profile of the table.
Optionally, the rendering module is further adapted to:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
Optionally, the rendering module is further adapted to:
performing image recognition on the table image to extract at least one table block without a drawn table and at least one table block with a drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
Optionally, the rendering module is further adapted to:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
Optionally, the image recognition includes: contour extraction and/or edge detection.
Optionally, the obtaining module is further adapted to: a table image including at least one table acquired by an image acquisition device is acquired.
According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the table distribution image generation method.
According to a further aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the table distribution image generating method.
According to the table distribution image generation method and device provided by the embodiment of the invention, a table image containing a table is obtained; acquiring a table image comprising at least one table; wherein the table image comprises at least one table number marker block of the table; obtaining a table identification of at least one table, a table size and a relative position relationship among the tables through image recognition of the table images, and drawing a mapping diagram of the at least one table in the canvas according to the table size and the relative position relationship among the tables; distributing the table identification obtained by identification to the mapping chart of at least one table; and generating a table distribution image based on the mapping chart drawn in the canvas and the table identification distributed to the mapping chart. According to the scheme, the table distribution diagram can be automatically generated, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution diagram is improved; in addition, the table distribution image generated by the scheme can reflect the real table distribution condition, and the drawing precision of the table distribution map is further improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a table distribution image generation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a table distribution image generation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a table distribution image generation apparatus according to a third embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a computing device according to a fourth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example one
Fig. 1 shows a flowchart of a table distribution image generation method according to an embodiment of the present invention. The method provided by the embodiment can be applied to various devices, such as mobile phones, tablets, computers, readers, and/or POS terminals.
As shown in fig. 1, the method comprises the steps of:
step S110: acquiring a table image comprising at least one table; wherein the table image comprises at least one table number marker block of the table.
In a specific implementation, the table image can be acquired by a corresponding image acquisition device. The image acquisition device may be disposed in a device that executes the table distribution image generation method of the present embodiment, such as a camera in a mobile phone terminal that executes the table distribution image generation method, for acquiring a table image; alternatively, the image capturing apparatus may be a monitoring camera or the like provided in a store. The embodiment does not limit the specific type and setting manner of the image capturing device.
In performing the table distribution image generation method, a table image acquired by the image acquisition device may be acquired. The table image comprises at least one table, and the table image further comprises a table number marker block of the at least one table. The table number marker can be a table sticker stuck on a table, and the table sticker contains table number information; alternatively, the table number marker may be a number plate located on the table, and corresponding table number information can be obtained through the number plate.
In an optional implementation manner, in order to avoid processing invalid data in subsequent steps, after the table image is acquired, the table image may be further subjected to filtering processing to remove the invalid image in the acquired table image, so that the computing resource of the device is saved, and the overall execution efficiency of the table distribution image generation method is favorably improved. In this embodiment, the specific filtering processing manner is not limited, for example, the image recognition may be performed on the table image, and whether the table image includes at least one closed polygon is determined according to the image recognition result; if not, it is indicated that the obtained table image does not include a complete table, and if subsequent table distribution image generation is performed based on the table image, accuracy of the generated table distribution image is reduced, so that the embodiment mode can determine the table image not including a closed polygon as an invalid image, and remove the invalid image from the obtained table image, thereby further improving accuracy of the generated table distribution image on the basis of saving device computing resources.
Step S120: and obtaining the table identification of at least one table, the table size and the relative position relationship among the tables through the image recognition of the table image, and drawing a mapping diagram of the at least one table in the canvas according to the table size and the relative position relationship among the tables.
In the embodiment, the table identification and the table size of the table included in the image can be accurately obtained by image recognition of the table image. Wherein the table identifier is obtained by a table number marker block included in the table image. In a specific implementation process, through the identification processing of the table number marker block in the table image, the table identifier of the table contained in the table image can be automatically acquired without manual marking, so that on one hand, the labor cost is saved, and on the other hand, the generation efficiency of the table distribution image is improved.
Then, the relative positional relationship between the actual tables can be determined from the positional relationship between the tables in the image. And then drawing a mapping diagram of at least one table in the canvas according to the sizes of the tables and the relative position relationship between the tables, so that the sizes of the mapping diagrams in the canvas correspond to the actual sizes of the tables, and the position relationship between the mapping diagrams in the canvas is matched with the relative position relationship between the tables in the actual situation, so that the table distribution image automatically generated by the embodiment can reflect the real table distribution condition, and the accuracy of the generated table distribution image is improved.
Step S130: and allocating the table identification obtained by identification to the mapping chart of the table.
By the processing in steps S120 and S130, the distribution of the map generated in the canvas can be matched with the distribution of the actual table. To further identify the generated maps and thereby facilitate management of the various tables. The present embodiment assigns a table identifier to the mapping of the table in the canvas.
Step S140: and generating a table distribution image based on the mapping diagram drawn in the canvas and the table identification allocated to the mapping diagram.
In this embodiment, finally, a corresponding table distribution image may be generated according to the mapping map drawn in the canvas and the table identifier allocated to the mapping map.
Therefore, in the embodiment, the table distribution image is generated based on the image recognition processing of the acquired table image, and in the process, manual drawing is not needed, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution image is improved; in addition, in the embodiment, the table size and the relative position relationship between the tables are determined according to the table image, and the corresponding position relationship and size relationship are accurately restored in the canvas, so that the table distribution image generated by the embodiment can reflect the real table distribution condition, and the accuracy of the generated table distribution image is further improved; in addition, each mapping map in the table distribution image generated in the embodiment has a corresponding table identifier, so that a user can conveniently and accurately manage the table based on the generated table distribution image, and the table identifier corresponding to the mapping map is determined in an image recognition mode, so that the labor cost is further saved, and the generation efficiency of the table distribution image is improved; in addition, when the actual table position map of the table distribution image provided by the embodiment is changed, the table distribution image can be quickly updated only by acquiring the changed table position image, so that the table distribution image can be quickly updated conveniently.
Example two
Fig. 2 shows a flowchart of a table distribution image generation method according to a second embodiment of the present invention. The method provided by the embodiment can be applied to various devices, such as mobile phones, tablets, computers, readers, and/or POS terminals. Specifically, the table distribution image generation method provided in this embodiment is a further optimization of the table distribution image generation method in the first embodiment.
As shown in fig. 2, the method includes:
step S210: and acquiring a table image containing an undrawn table, and performing image recognition on the table image to acquire the table size and the table number identification of the undrawn table.
In a specific implementation, a table image of an unpainted table may be randomly selected. And performing image recognition on the acquired table image. In this embodiment, the image recognition method for the table image may be contour extraction and/or edge detection.
In this embodiment, the table number identifier of the table included in the table image can be obtained by image recognition of the table image. In a specific implementation process, the table image is first subjected to image recognition to extract a table number marker block of at least one table included in the table image. The table marker is usually located on the table surface, and the table marker and the table surface have corresponding boundaries, so that in the table image, a significant color value difference may occur at the edge of the table marker block, and therefore, in the embodiment, the table marker block can be quickly and accurately extracted from the table image in a manner of contour extraction and/or edge detection. Further, the extracted table number marker block is identified to identify a table identifier corresponding to the table number marker block. In an optional implementation manner, the table number marker may be a table code attached to the surface of the table, and the table code is bound to the corresponding table number information, so that the table identifier corresponding to the marker block can be identified in a two-dimensional code identification manner for the table number marker block; in another alternative embodiment, the table number markers may be characters or numbers that identify the table number, so that the table identifications corresponding to the marker blocks can be identified by performing OCR recognition on the table number marker blocks. In an actual implementation process, the table code is usually composed of a specific geometric figure, and the recognition efficiency and the recognition accuracy for the specific geometric figure are greater than those for characters or numbers, so when the table number markers include the table code and the characters or numbers identifying the table number, the embodiment preferentially adopts a two-dimensional code recognition method to identify the table number marker blocks so as to improve the extraction efficiency and the extraction accuracy of the table identification.
In addition, the present embodiment can also obtain the table size of the table included in the table image (specifically, the table size is the physical size of the table) by recognizing the table image. Since the image size ratio of the table number markers to the table in the same table image is consistent with the actual physical size ratio of the table number markers to the table, the present embodiment can accurately calculate the table size of at least one table according to the image size of the table number marker block of at least one table included in the table image, the physical size of the table number markers, and the image size of the table. Specifically, firstly, performing image recognition on the table image to extract at least one table number marker block of the table and at least one table block of the table from the table image; calculating the image size of the table number marker block of at least one table and the image size of the table block of at least one table; further calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table; and finally, obtaining the table size of the at least one table according to the scale and the image size of the table area of the at least one table.
Step S220: and drawing the mapping chart of the undrawn table in the canvas, allocating corresponding table number identifications to the mapping chart, and marking the table size of the table corresponding to the mapping chart.
In the created canvas, a map of the undrawn table in step S210 is generated, and the table identification of the undrawn table determined in step S210 is assigned to the map.
Optionally, in order to facilitate a user to subsequently implement accurate management of the table according to the generated table position distribution map, in this embodiment, a table size of the table corresponding to the map may be further marked in the canvas. Therefore, the user can accurately know the size of each table according to the generated table distribution diagram, so that the user can conveniently master the number of consumers borne by each table, and the rotating table and the combining efficiency are further improved.
Further optionally, in order to make the generated table distribution map reflect the real table distribution condition, the shape of the mapping map drawn in this embodiment is matched with the table profile of the table corresponding to the mapping map. In a specific implementation process, a table profile of the table in the table image can be extracted through image recognition of the table image, and a corresponding mapping map is drawn based on the table profile, so that the shape of the mapping map of the table is matched with the table profile of the table. For example, if the table profile of the table a is a circle, the map corresponding to the table may also be a circle, so that the shape information of the table is presented in a table distribution diagram in a visual topographic form, which is convenient for the user to quickly acquire the shape information of the table based on the table distribution diagram, thereby improving the user experience.
Step S230: the method comprises the steps of obtaining a table image comprising at least one undrawn table and at least one drawn table, carrying out image recognition on the table image to obtain the relative position relation between the at least one undrawn table and the at least one drawn table, and obtaining the table size and the table number identification of the undrawn table.
After at least one mapping map has been rendered in the canvas, a table image including the undrawn table and the drawn table may be further acquired, and image recognition may be performed on the table image to obtain a relative positional relationship between the undrawn table and the drawn table.
In a specific implementation process, in order to accurately obtain the relative position relationship between the undrawn table and the drawn table, the table image is subjected to image recognition, and at least one table block of the undrawn table and at least one table block of the drawn table in the table image are extracted; respectively calculating the block center of at least one table block not drawing the table and the block center of at least one table block drawing the table; generating a connecting line for connecting the block center of at least one table block without a drawn table and the block center of at least one table block with a drawn table; and finally, obtaining the relative position relation between at least one undrawn table and at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of at least one drawn table. Specifically, the relative distance between the at least one undrawn table and the at least one drawn table may be determined according to the length of the connecting line (for example, the image length of the connecting line may be calculated, and the relative distance between the undrawn table and the drawn table may be obtained according to the scale calculated in step S210); determining the relative angle between at least one undrawn table and at least one drawn table according to the angle between the connecting line and the table block of at least one drawn table; and finally, obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
Further, in this embodiment, the table size and the table number identifier of the undrawn image included in the table image are obtained by image recognition of the table image. The table size and the table number identifier of the un-drawn image may be obtained in a manner described with reference to the corresponding part in step S210, which is not described herein again.
Step S240: and drawing a mapping diagram of the at least one undrawn table in the canvas according to the relative position relation between the at least one undrawn table and the at least one drawn table and the table size of the at least one undrawn table, allocating corresponding table number identifications to the mapping diagram, and marking the table size of the table corresponding to the mapping diagram.
According to the relative position relationship between the undrawn table and the drawn table determined in step S230, the drawn table is taken as a reference point in the canvas, the position of the mapping map of the undrawn table relative to the drawn table mapping map is determined, and the mapping map of the undrawn table is drawn at the position. And can assign corresponding table number identification to the mapping chart and mark the table size of the table corresponding to the mapping chart. Alternatively, the shape of the corresponding map is determined from the outline of the unmapped table.
In this embodiment, the execution sequence in steps S210 to S240 is not limited, for example, the table images may be uniformly acquired, the table images may be subjected to image recognition, and the mapping map may be uniformly generated according to the recognition result; or performing single image recognition on each acquired table image, and generating a corresponding mapping map according to the single image recognition result.
Step S250: judging whether a drawing end condition is met; if yes, go to step S260; otherwise, step S230 is performed.
Judging whether the drawing end condition is met or not at present, and executing the step S260 to generate a table distribution image under the condition that the drawing end condition is met; in the case where the rendering end condition is not satisfied, step S230 is further executed.
In an optional implementation manner, it may be determined whether a drawing end instruction triggered by a user is received, and if yes, step S260 is executed; otherwise, step S230 is executed, and in this embodiment, the drawing of the table position distribution map may be finished in real time according to the user operation, so as to meet the personalized requirements of the user and improve the user experience.
In another optional embodiment, it may be determined whether the number of the maps drawn in the current canvas is greater than or equal to a preset threshold, if so, step S260 is performed; otherwise, step S230 is performed. The preset threshold is the number of tables to be drawn, such as the total number of tables in a store or a conference place. In the embodiment, the drawing of the table position distribution diagram can be automatically finished according to the preset number of the table positions to be drawn, so that the condition of missing drawing of the table positions is avoided, and the comprehensiveness of the drawn table position distribution diagram is ensured.
Step S260: and generating a table distribution image based on the mapping chart drawn in the canvas, the table identification allocated to the mapping chart and the marked table size.
Therefore, the table distribution diagram can be automatically generated based on the image recognition processing of the table image, so that the labor cost is reduced, and the drawing efficiency of the table distribution diagram is improved; moreover, the table distribution map generated by the embodiment can reflect the real table distribution condition, so that the accuracy of the generated table distribution image is improved; in addition, each mapping map in the table distribution image generated in the embodiment has a corresponding table identifier, so that a user can conveniently and accurately manage the table based on the generated table distribution image, and the table identifier corresponding to the mapping map is determined in an image recognition mode, so that the labor cost is further saved, and the generation efficiency of the table distribution image is improved; in addition, the table size of the table is marked in the table distribution map generated by the embodiment, so that a user can conveniently realize accurate management of the table based on the table distribution map, and the turntable and the combining efficiency are conveniently improved; moreover, the shape of the mapping diagram generated in the embodiment is matched with the table profile extracted from the table image, so that the shape information of the table is displayed in a table distribution diagram in an intuitive form, a user can conveniently and rapidly acquire the shape information of the table based on the table distribution diagram, and the user experience is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a table distribution image generation apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: an acquisition module 31, an image recognition module 32, a rendering module 33, an assignment module 34 and a generation module 35,
an acquisition module 31 adapted to acquire a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
an image recognition module 32, adapted to obtain a table identifier, a table size, and a relative position relationship between tables of the at least one table through image recognition of the table image;
a drawing module 33 adapted to draw a map of the at least one table in the canvas according to the table sizes and the relative positional relationship between the tables;
an assigning module 34 adapted to assign the identified table identifier to the map of the at least one table;
the generating module 35 is adapted to generate a table distribution image based on the map drawn in the canvas and the table identifier assigned to the map.
Optionally, the image recognition module is further adapted to: performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
Optionally, the image recognition module is further adapted to: and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
Optionally, the image recognition module is further adapted to: and calculating the table size of the at least one table according to the image size of the table number marker block of the at least one table included in the table image and the physical size of the table number marker.
Optionally, the image recognition module is further adapted to: performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
Optionally, the apparatus further comprises: a marking module (not shown) adapted to mark a physical size of a table corresponding to the map in the canvas.
Optionally, the image recognition module is further adapted to extract a table profile of at least one table in the table image by image recognition of the table image;
the shape of the table map matches the table profile of the table.
Optionally, the rendering module is further adapted to: if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
Optionally, the rendering module is further adapted to: performing image recognition on the table image to extract at least one table block without a drawn table and at least one table block with a drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
Optionally, the rendering module is further adapted to:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
Optionally, the image recognition includes: contour extraction and/or edge detection.
Optionally, the obtaining module is further adapted to: a table image including at least one table acquired by an image acquisition device is acquired.
In this embodiment, the specific implementation process of each module may refer to the description in the corresponding method embodiment, which is not described herein again.
Therefore, in the embodiment, the table distribution image is generated based on the image recognition processing of the acquired table image, and in the process, manual drawing is not needed, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution image is improved; in addition, in the embodiment, the table size and the relative position relationship between the tables are determined according to the table image, and the corresponding position relationship and size relationship are accurately restored in the canvas, so that the table distribution image generated by the embodiment can reflect the real table distribution condition, and the accuracy of the generated table distribution image is further improved; in addition, each mapping map in the table distribution image generated in the embodiment has a corresponding table identifier, so that a user can conveniently and accurately manage the table based on the generated table distribution image, and the table identifier corresponding to the mapping map is determined in an image recognition mode, so that the labor cost is further saved, and the generation efficiency of the table distribution image is improved; in addition, when the actual table position map of the table distribution image provided by the embodiment is changed, the table distribution image can be quickly updated only by acquiring the changed table position image, so that the table distribution image can be quickly updated conveniently.
Example four
A fourth embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method in any of the method embodiments.
The executable instructions may be specifically configured to cause the processor to:
acquiring a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
obtaining a table identification of the at least one table, a table size and a relative position relationship among the tables through image recognition of the table image, and drawing a mapping diagram of the at least one table in a canvas according to the table size and the relative position relationship among the tables;
distributing the table identification obtained by identification to the mapping chart of the at least one table;
and generating a table distribution image based on the mapping chart drawn in the canvas and the table identification distributed to the mapping chart.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and the image size of the at least one table.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
marking a table size of a table corresponding to the map in the canvas.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
extracting a table profile of at least one table in the table image through image recognition of the table image;
the shape of the table map matches the table profile of the table.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
performing image recognition on the table image to extract the at least one table block without the drawn table and the at least one table block with the drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle
In an alternative embodiment, the image recognition comprises: contour extraction and/or edge detection.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
a table image including at least one table acquired by an image acquisition device is acquired.
Therefore, in the embodiment, the table distribution image is generated based on the image recognition processing of the acquired table image, and in the process, manual drawing is not needed, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution image is improved; in addition, in the embodiment, the table size and the relative position relationship between the tables are determined according to the table image, and the corresponding position relationship and size relationship are accurately restored in the canvas, so that the table distribution image generated by the embodiment can reflect the real table distribution condition, and the accuracy of the generated table distribution image is further improved; in addition, each mapping map in the table distribution image generated in the embodiment has a corresponding table identifier, so that a user can conveniently and accurately manage the table based on the generated table distribution image, and the table identifier corresponding to the mapping map is determined in an image recognition mode, so that the labor cost is further saved, and the generation efficiency of the table distribution image is improved; in addition, when the actual table position map of the table distribution image provided by the embodiment is changed, the table distribution image can be quickly updated only by acquiring the changed table position image, so that the table distribution image can be quickly updated conveniently.
EXAMPLE five
Fig. 4 is a schematic structural diagram of an embodiment of a computing device according to a fifth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402, configured to execute the program 410, may specifically perform the relevant steps described above for the above method embodiments.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
acquiring a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
obtaining a table identification of the at least one table, a table size and a relative position relationship among the tables through image recognition of the table image, and drawing a mapping diagram of the at least one table in a canvas according to the table size and the relative position relationship among the tables;
distributing table identification obtained by identification for the mapping chart of the table;
and generating a table distribution image based on the mapping chart drawn in the canvas and the table identification distributed to the mapping chart.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and the image size of the at least one table.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
marking a table size of a table corresponding to the map in the canvas.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
extracting a table profile of at least one of the table images by image recognition of the table image;
the shape of the table map matches the table profile of the table.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
performing image recognition on the table image to extract the at least one table block without the drawn table and the at least one table block with the drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
In an alternative embodiment, the image recognition comprises: contour extraction and/or edge detection.
In an alternative embodiment, the program 410 may be specifically configured to cause the processor 402 to perform the following operations:
a table image including at least one table acquired by an image acquisition device is acquired.
Therefore, in the embodiment, the table distribution image is generated based on the image recognition processing of the acquired table image, and in the process, manual drawing is not needed, so that the labor cost is greatly reduced, and the drawing efficiency of the table distribution image is improved; in addition, in the embodiment, the table size and the relative position relationship between the tables are determined according to the table image, and the corresponding position relationship and size relationship are accurately restored in the canvas, so that the table distribution image generated by the embodiment can reflect the real table distribution condition, and the accuracy of the generated table distribution image is further improved; in addition, each mapping map in the table distribution image generated in the embodiment has a corresponding table identifier, so that a user can conveniently and accurately manage the table based on the generated table distribution image, and the table identifier corresponding to the mapping map is determined in an image recognition mode, so that the labor cost is further saved, and the generation efficiency of the table distribution image is improved; in addition, when the actual table position map of the table distribution image provided by the embodiment is changed, the table distribution image can be quickly updated only by acquiring the changed table position image, so that the table distribution image can be quickly updated conveniently.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (26)

1. A table distribution image generation method, comprising:
acquiring a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
obtaining a table identification of the at least one table, a table size and a relative position relationship between the tables through image recognition of the table image, and drawing a mapping diagram of the at least one table in a canvas according to the table size and the relative position relationship between the tables; wherein the table identification is obtained by a table number marker block included in the table image;
distributing the table identification obtained by identification to the mapping chart of the at least one table;
and generating a table distribution image based on the mapping chart drawn in the canvas and the table identification distributed to the mapping chart.
2. The method of claim 1, wherein the deriving a table identification for the at least one table by image recognition of the table image further comprises:
performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
3. A method as claimed in claim 2, wherein the identifying the table marker zone to identify a table identification to which the table marker zone corresponds further comprises:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
4. A method according to any of claims 1-3, wherein deriving the table size of the at least one table by image recognition of the table image comprises in particular:
calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and the image size of the at least one table.
5. A method according to claim 4, wherein the calculating a table size for the at least one table from an image size of a table number marker section of the at least one table, a physical size of the table number marker, and an image size of the at least one table included in a table image further comprises:
performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
6. The method of claim 5, wherein the method further comprises:
marking a table size of a table corresponding to the map in the canvas.
7. The method according to any one of claims 1-3, wherein the method further comprises: extracting a table profile of at least one table in the table image through image recognition of the table image;
the shape of the table map matches the table profile of the table.
8. The method of any of claims 1-3, wherein the mapping the at least one table in the canvas according to the table size and relative positional relationship between tables further comprises:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
9. The method according to claim 8, wherein the obtaining of the relative positional relationship between the tables of the at least one table by the image recognition of the table image comprises:
performing image recognition on the table image to extract at least one table block without a drawn table and at least one table block with a drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
10. The method of claim 9, wherein the obtaining a relative positional relationship of the at least one undrawn table and the at least one drawn table based on the length of the connecting line and the angle of the connecting line to the table section of the at least one drawn table further comprises:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
11. The method of any of claims 1-3, wherein the image recognition comprises: contour extraction and/or edge detection.
12. The method of any of claims 1-3, wherein the acquiring a table image comprising at least one table further comprises:
a table image including at least one table acquired by an image acquisition device is acquired.
13. A table distribution image generation apparatus comprising:
an acquisition module adapted to acquire a table image comprising at least one table; wherein the table image comprises a table number marker block of the at least one table;
the image recognition module is suitable for obtaining the table identification, the table size and the relative position relation among the tables of the at least one table through the image recognition of the table image; wherein the table identification is obtained by a table number marker block included in the table image;
the drawing module is suitable for drawing the mapping chart of the at least one table in the canvas according to the table sizes and the relative position relation between the tables;
the distribution module is suitable for distributing the table identification obtained by identification to the mapping chart of the at least one table;
and the generation module is suitable for generating a table distribution image based on the mapping chart drawn in the canvas and the table identification allocated to the mapping chart.
14. The apparatus of claim 13, wherein the image recognition module is further adapted to:
performing image recognition on the table image to extract a table number marker block of the at least one table included in the table image;
and identifying the table number marker block to identify a table identifier corresponding to the table number marker block.
15. The apparatus of claim 14, wherein the image recognition module is further adapted to:
and performing two-dimensional code recognition and/or OCR recognition on the table number marker block to recognize the table identification corresponding to the table number marker block.
16. The apparatus of any of claims 13-15, wherein the image recognition module is further adapted to:
calculating a table size of the at least one table according to an image size of a table number marker block of the at least one table included in a table image, a physical size of the table number marker, and the image size of the at least one table.
17. The apparatus of claim 16, wherein the image recognition module is further adapted to:
performing image recognition on the table image to extract a table number marker block of the at least one table and a table block of the at least one table included in the table image;
calculating an image size of a table number marker block of the at least one table and an image size of a table block of the at least one table;
calculating a scale according to the image size of the table number marker block of the at least one table and the physical size of the table number marker of the at least one table;
and obtaining the table size of the at least one table according to the scale and the image size of the table block of the at least one table.
18. The apparatus of claim 17, wherein the apparatus further comprises: a marking module adapted to mark a table size of a table corresponding to the map in the canvas.
19. The apparatus of any of claims 13-15, wherein the image recognition module is further adapted to: extracting a table profile of at least one table in the table image through image recognition of the table image;
the shape of the table map matches the table profile of the table.
20. The apparatus of any one of claims 13-15, wherein the rendering module is further adapted to:
if the table image comprises an undrawn table, drawing a mapping map of the undrawn table in the canvas according to the table size of the undrawn table;
and if the table image comprises at least one non-drawn table and at least one drawn table, drawing a mapping diagram of the at least one non-drawn table in the canvas according to the relative position relation between the at least one non-drawn table and the at least one drawn table and the table size of the at least one non-drawn table.
21. The apparatus of claim 20, wherein the rendering module is further adapted to:
performing image recognition on the table image to extract at least one table block without a drawn table and at least one table block with a drawn table in the table image;
respectively calculating the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
generating a connecting line connecting the block center of the at least one table block without the drawn table and the block center of the at least one table block with the drawn table;
and obtaining the relative position relation between the at least one non-drawn table and the at least one drawn table according to the length of the connecting line and the angle between the connecting line and the table block of the at least one drawn table.
22. The apparatus of claim 21, wherein the rendering module is further adapted to:
determining a relative distance between the at least one undrawn table and the at least one drawn table according to the length of the connecting line;
determining a relative angle of the at least one undrawn table and the at least one drawn table according to the angle of the connecting line and the table block of the at least one drawn table;
and obtaining the relative position relation between the at least one undrawn table and the at least one drawn table according to the relative distance and the relative angle.
23. The apparatus of any of claims 13-15, wherein the image recognition comprises: contour extraction and/or edge detection.
24. The apparatus of any one of claims 13-15, wherein the acquisition module is further adapted to: a table image including at least one table acquired by an image acquisition device is acquired.
25. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the table distribution image generation method according to any one of claims 1-12.
26. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the table distribution image generation method as claimed in any one of claims 1 to 12.
CN201911365863.8A 2019-12-26 2019-12-26 Table distribution image generation method and device Active CN111028313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911365863.8A CN111028313B (en) 2019-12-26 2019-12-26 Table distribution image generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911365863.8A CN111028313B (en) 2019-12-26 2019-12-26 Table distribution image generation method and device

Publications (2)

Publication Number Publication Date
CN111028313A CN111028313A (en) 2020-04-17
CN111028313B true CN111028313B (en) 2020-10-09

Family

ID=70213708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911365863.8A Active CN111028313B (en) 2019-12-26 2019-12-26 Table distribution image generation method and device

Country Status (1)

Country Link
CN (1) CN111028313B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111724195B (en) * 2020-05-09 2024-02-27 时时同云科技(成都)有限责任公司 Bench layout generation and display method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593811A (en) * 2013-09-17 2014-02-19 乐山创与信息技术有限公司 System and method for turning handheld mobile terminal into self-service ordering terminal
CN108133220A (en) * 2016-11-30 2018-06-08 北京市商汤科技开发有限公司 Model training, crucial point location and image processing method, system and electronic equipment
CN109934834A (en) * 2017-12-19 2019-06-25 北京京东尚科信息技术有限公司 Image outline extracting method and system
CN110322505A (en) * 2018-03-30 2019-10-11 北京红马传媒文化发展有限公司 Seat image labeling method, seat image labelling apparatus and electronic equipment
CN110390703A (en) * 2018-04-19 2019-10-29 北京红马传媒文化发展有限公司 Generation method, device and the electronic equipment of venue seating maps

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2720459B1 (en) * 2011-06-08 2020-07-08 Omron Corporation Distributed image processing system
CN107516095A (en) * 2016-06-16 2017-12-26 阿里巴巴集团控股有限公司 A kind of image-recognizing method and device
CN108447106B (en) * 2018-03-12 2022-08-05 北京红马传媒文化发展有限公司 Generation method and device of venue seat map

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593811A (en) * 2013-09-17 2014-02-19 乐山创与信息技术有限公司 System and method for turning handheld mobile terminal into self-service ordering terminal
CN108133220A (en) * 2016-11-30 2018-06-08 北京市商汤科技开发有限公司 Model training, crucial point location and image processing method, system and electronic equipment
CN109934834A (en) * 2017-12-19 2019-06-25 北京京东尚科信息技术有限公司 Image outline extracting method and system
CN110322505A (en) * 2018-03-30 2019-10-11 北京红马传媒文化发展有限公司 Seat image labeling method, seat image labelling apparatus and electronic equipment
CN110390703A (en) * 2018-04-19 2019-10-29 北京红马传媒文化发展有限公司 Generation method, device and the electronic equipment of venue seating maps

Also Published As

Publication number Publication date
CN111028313A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN110874594B (en) Human body appearance damage detection method and related equipment based on semantic segmentation network
CN107403424B (en) Vehicle loss assessment method and device based on image and electronic equipment
CN112016551B (en) Text detection method and device, electronic equipment and computer storage medium
CN111275730A (en) Method, device and equipment for determining map area and storage medium
CN111862205A (en) Visual positioning method, device, equipment and storage medium
CN105608699B (en) A kind of image processing method and electronic equipment
CN109726678B (en) License plate recognition method and related device
CN108334879B (en) Region extraction method, system and terminal equipment
CN110503682B (en) Rectangular control identification method and device, terminal and storage medium
CN113223013B (en) Method, device, equipment and storage medium for pulmonary vessel segmentation positioning
CN113920117B (en) Panel defect area detection method and device, electronic equipment and storage medium
CN104951440B (en) Image processing method and electronic equipment
CN111028313B (en) Table distribution image generation method and device
CN106384071A (en) Two-dimensional code scanning recognition processing method and device
CN116168351A (en) Inspection method and device for power equipment
CN110991357A (en) Answer matching method and device and electronic equipment
CN111462164A (en) Foreground segmentation method and data enhancement method based on image synthesis
CN112132892A (en) Target position marking method, device and equipment
CN116721246B (en) Continuous frame point cloud rapid labeling method and system
CN113378958A (en) Automatic labeling method, device, equipment, storage medium and computer program product
CN109101973B (en) Character recognition method, electronic device and storage medium
CN116661786A (en) Design page generation method and device
CN111967460B (en) Text detection method and device, electronic equipment and computer storage medium
CN108304838B (en) Picture information identification method and terminal
CN114936610A (en) Electronic fence splitting method and device

Legal Events

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