CN108519901A - Venue map generalization method and device - Google Patents
Venue map generalization method and device Download PDFInfo
- Publication number
- CN108519901A CN108519901A CN201810274091.6A CN201810274091A CN108519901A CN 108519901 A CN108519901 A CN 108519901A CN 201810274091 A CN201810274091 A CN 201810274091A CN 108519901 A CN108519901 A CN 108519901A
- Authority
- CN
- China
- Prior art keywords
- seat
- venue
- row
- area
- setting
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/02—Reservations, e.g. for tickets, services or events
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a kind of venue map generalization method and device, this method includes:Obtain the original image of seat arrangement in reflection venue;Identify the venue feature embodied by the seat arrangement in the original image, wherein the venue feature includes provincial characteristics, row's feature and seat feature;And, the venue figure for generating vector is drawn according to the venue feature identified, wherein, the venue figure includes the section object drawn according to the provincial characteristics identified, according to the row's feature row's object drawn identified and the seat object drawn according to the seat feature identified.
Description
Technical Field
The invention relates to the technical field of computer processing, in particular to a method and a device for generating a stadium map for online seat selection.
Background
Most ticketing systems currently support online seat selection to facilitate self-service ticket purchasing by users through terminal equipment. The visual online seat selection technology can be used for displaying the region setting structure, the row setting structure, the seat setting structure and the like in the venue through the venue drawing, and when the seat selection is performed on the display venue drawing for a user, seats with different prices can be distinguished through different colors during display.
The existing venue map is basically a static map, and specifically provides a venue map in a JPG or PNG format, wherein the venue map displays each area in a venue, and each area is provided with a plurality of price color blocks; and providing seat maps for displaying the seat distribution condition and the stock state of each area so as to enable a user to select seats with required prices, wherein the seat maps and the venue maps are two maps, and the actual arrangement structure of the seats relative to the stage cannot be represented in the seat maps, such as the direction of the seats relative to the stage cannot be represented.
The problems of the static stadium map are as follows: 1) the method is time-consuming to manufacture, pictures in bitmap formats such as JPG, PNG and the like cannot be identified by a program, even if the same stadium is used in each occasion, the distribution of price seats can be changed due to price quantity, price stock and price, so that the stadium map needs to be manually drawn again in each occasion, and the stadium map needs to be manually adjusted when the stock state of the seats is changed in the same occasion; 2) the method has no interactivity and cannot realize interaction with a user.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a new technical solution for generating a stadium map.
According to a first aspect of the present invention, an embodiment of the present invention provides a method for generating a stadium map for online seat selection, including:
acquiring an original image reflecting a seat arrangement structure in a venue;
identifying venue features embodied by the seat arrangement structure in the original image, wherein the venue features include region features, row features, and seat features;
and drawing a venue map of the generated vector according to the identified venue characteristics, wherein the venue map comprises a region object drawn according to the identified region characteristics, an array object drawn according to the identified array characteristics, and a seat object drawn according to the identified seat characteristics.
Optionally, the identifying of the venue feature embodied by the seat arrangement structure in the original image comprises:
identifying a venue shape track represented by the seat arrangement structure in the original image as a flat cable according to the venue shape track model;
identifying a closed path area formed by crossing the flat cable and the area dividing line according to the venue area model as an area feature;
identifying a portion located in the closed path region as a row feature in an annular region between two adjacent flat cables;
seat features in the original image are identified from the venue seat model.
Optionally, the rendering the venue diagram of the generated vector according to the identified venue characteristics includes:
obtaining the position coordinates of the geometric center of the stadium map according to the circumscribed figure of the outmost flat cable;
obtaining the seat direction of the corresponding seat feature according to the position coordinate of each seat feature and the position coordinate of the geometric center;
and drawing to obtain a corresponding seat object according to the position coordinate and the seat direction of the seat feature.
Optionally, the method further comprises:
setting area attributes by taking an area object as a unit, wherein the area attributes comprise an area number and display attributes;
setting row attributes by taking a row object as a unit, wherein the row attributes comprise a row number and display attributes;
setting seat attributes in units of seat objects, wherein the seat attributes include a seat number and a display attribute.
Optionally, the method further comprises:
and associating the seat object with the row object and the area object according to the position coordinate of the seat object.
Optionally, the setting of the region attribute in units of region objects includes:
obtaining the selling price of the area object;
obtaining an identification color mapped with the selling price;
setting the display attribute of the region object according to the identification color; or,
the setting of the region attribute in units of region objects includes:
detecting an inventory status of the area object;
and setting the display attribute of the area object according to the identification color mapped with the corresponding stock state under the condition that the seat objects contained in the area object are sold.
Optionally, the setting of the rank attribute in the unit of the rank object includes:
obtaining the selling price of the row object;
obtaining an identification color mapped with the selling price;
setting the display attribute of the row object according to the identification color; or,
the setting of the rank attribute in units of the rank object includes:
detecting an inventory status of the line object;
and setting the display attribute of the row object according to the identification color mapped with the corresponding stock state under the condition that the seat objects contained in the row object are sold.
Optionally, the setting of the seat attribute in units of seat objects includes:
obtaining a selling price of the seat object;
obtaining an identification color mapped with the selling price;
setting display attributes of the seat object according to the identification color; alternatively, the setting of the seat attribute in units of seat objects includes:
detecting an inventory status of the seating object;
setting a display attribute of the seat object according to the identification color mapped with the corresponding inventory status in a case where the seat object has been sold.
According to a second aspect of the present invention, there is also provided an apparatus for generating a stadium map for on-line seating, comprising:
the system comprises an original image acquisition module, a position arrangement module and a position arrangement module, wherein the original image acquisition module is used for acquiring an original image reflecting a seat arrangement structure in a venue;
the image identification module is used for identifying the stadium characteristics embodied by the seat arrangement structure in the original image, wherein the stadium characteristics comprise region characteristics, row characteristics and seat characteristics; and the number of the first and second groups,
and the drawing module is used for drawing a venue map of the generated vector according to the identified venue characteristics, wherein the venue map comprises an area object drawn according to the identified area characteristics, an arrangement object drawn according to the identified arrangement characteristics and a seat object drawn according to the identified seat characteristics.
According to a third aspect of the present invention, there is also provided a generation apparatus for an on-line seating stadium map, comprising a memory for storing instructions for controlling the processor to operate to perform the generation method according to the first aspect of the present invention and a processor.
One advantage of the embodiments of the present invention is that the method of the embodiments of the present invention draws a venue diagram generating a vector by using an image recognition technology, wherein the graphic elements of the venue diagram include an area object, a row object and a seat object, and the graphic elements are all self-integrated entities, can have attributes such as shape, outline, size and position, and can be set and modified by a computer program, so that for the same venue, the venue diagram does not need to be redrawn even if the selling price, the stock status, etc. change, thereby greatly reducing the drawing workload; on the other hand, the venue diagram generated by the method provided by the embodiment of the invention supports the operation of distinguishing and identifying according to the screening condition of the user so as to improve the identification degree, so that the venue diagram has interchangeability and is beneficial to improving the user experience.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic hardware configuration diagram of a generating apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a generation method according to an embodiment of the invention;
3a-3c are schematic diagrams of a pre-trained stadium shape in a stadium shape trajectory model according to embodiments of the invention;
FIG. 4 is a schematic diagram of a pre-trained closed path region in a venue region model according to an embodiment of the present invention;
FIG. 5 is a schematic view of a seating orientation for determining seating characteristics according to an embodiment of the present invention;
FIG. 6 is a schematic illustration of a stadium map according to one example of the invention;
fig. 7 is a functional block diagram of a generating device according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware Structure >
Fig. 1 is a schematic hardware configuration diagram of a stadium map generation apparatus according to an embodiment of the present invention.
As shown in fig. 1, the generating apparatus 1000 according to the embodiment of the present invention includes one or more processors 1010 and one or more memories 1020.
Processor 1010 may be a desktop processor, a server processor, a mobile version processor, or the like.
The memory 1020 may include a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like.
The memory 1020 is configured to store instructions for controlling the processor 1010 to operate so as to perform a method of generating a stadium map according to an embodiment of the invention. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
Referring to fig. 1, the generating device 1000 according to the embodiment of the present invention may further include an interface device 1030, a communication device 1040, a display device 1050, an input device 1060, a speaker 1070, a microphone 1080, and the like.
The interface unit 1030 includes, for example, a USB interface, an RS232 interface, a headphone interface, and the like. The communication means 1040 is capable of wired or wireless communication, for example, and may specifically include Wifi communication, bluetooth communication, 2G/3G/4G/5G communication, and the like. The input device 1060 may include, for example, a touch screen, a keyboard, a mouse, a motion sensing input, and the like. The generating means may receive inputted voice information through the microphone 1080. The generating apparatus 1000 may output voice information through the speaker 1070.
Although fig. 1 shows a plurality of devices of the generating device 1000, the generating device 1000 according to the embodiment of the present invention may also include only some of the devices, such as the processor 1010, the memory 1020, the display device 1050, the input device 1060, and the like.
The generation device 3000 according to the embodiment of the present invention may be any electronic device, such as a PC, a notebook computer, a workstation, a server, and the like.
< method examples >
Fig. 2 is a flowchart illustrating a method for generating a stadium map according to an embodiment of the invention.
As shown in fig. 2, the display device method according to the embodiment of the present invention may include the steps of:
step S2100, an original image reflecting the arrangement structure of seats in the venue is acquired.
The original image is an aerial view of the venue and reflects the actual seating arrangement in the venue, and may be a construction view of the venue, an aerial photograph of the venue, or the like.
The file format of the original image is, for example, various formats such as JPEG, PNG, bmp, etc., as long as image recognition can be performed based on the original image.
Step S2200 is to identify a venue characteristic represented by the seat arrangement structure in the original image, wherein the venue characteristic includes an area characteristic, a row characteristic, and a seat characteristic.
In this step S2200, since the seat arrangement structure can represent the region setting situation in the venue, the row setting situation in the region, and the seat setting situation in each row, the region feature set corresponding to the region, the row feature set corresponding to the row, and the seat feature set corresponding to the seat can be recognized from the original image by using the image recognition technology.
In the embodiment of the present invention, a model for extracting the features of the venue from the original image can be obtained by pre-training and stored in the generating device 1000, and a plurality of common structures with the features of the venue pre-trained on the model can be identified.
The above model can further extract the stadium characteristics through a convolutional neural network. For example, the network performs convolution processing on an original image by a convolution layer (feature extraction structure) to realize extraction of a stadium feature.
In an example of the present invention, the step S2200 of identifying the stadium feature embodied by the seat arrangement structure in the original image may further include the steps of:
step S2210, identifying a venue-shaped track represented by the seat arrangement structure in the original image as a flat cable according to the venue-shaped track model.
The pre-trained stadium shapes of the stadium shape trajectory model are shown in fig. 3a to 3c, in which fig. 3a is a square stadium, fig. 3b is an oval stadium, and fig. 3c is a circular stadium, for example.
Since at least part of the seats of the venue are annularly arranged around the stage, the shape of the venue can be embodied through the seat arrangement structure, the venue-shaped track model can identify the venue-shaped track as the flat cable according to the projection line formed by the seats in the original image, the projection line formed by the steps where the seats are located, and the like, and each row of seats is located between two adjacent flat cables.
Step S2220, a closed path area formed by the intersection of the flat cable and the area dividing line is identified as an area feature according to the venue area model.
The venue area model is pre-trained with a closed path area representing the area characteristics, which is formed by the intersection of the flat cable CL identified in step S2210 and the area dividing line RL, as shown in fig. 4. For example, the region dividing line RL may correspond to a projection line formed by the seats distributed in the radial direction in the original image.
From the step S2220, the shape and the position coordinates of the region feature, for example, the position coordinates of each corner point of the region feature, can be identified.
In step S2230, a portion located in the closed path region is identified as a bank feature in the annular region between two adjacent banks.
Referring to fig. 5, a row feature r1 is identified that is located within the area of the closed path.
Step S2240, seat features in the original image are identified according to the venue seat model.
The venue area model is pre-trained with the seat features of the venue seats to identify the seat features in the original image from the venue seat model in this step S2240.
From this step S2240, the position coordinates of the seat feature can be identified, for example, the position coordinates of the geometric center of the seat feature.
Step S2300, rendering a venue diagram of the generated vector based on the identified venue characteristics, wherein the venue diagram includes a region object rendered based on the identified region characteristics, an array object rendered based on the identified array characteristics, and a seat object rendered based on the identified seat characteristics.
Because the venue diagram is a vector diagram, the region object, the row object and the seat object in the venue diagram are all the graphic elements forming the vector venue diagram, each graphic element is an entity integrated with itself, and the graphic elements can have attributes such as shape, outline, size and position, and the setting and modification of the attributes can be carried out according to the needs.
In one example of the invention, the vector stadium map may be Scalable Vector Graphics (SVG).
In another example of the present invention, the vector gallery map may be an image file in another format, such as cdr, ai, ps, wmf, or the like.
In step S2300, the seat object may be a simple diagram representing the seat, for example, a circular diagram or the like, or may be a simulation diagram drawn from a top view of the seat.
For the simulation illustration, the seat direction of the seat feature needs to be determined when the seat object is drawn so that the seat object has a correct orientation, so in an example of the present invention, the step S2300 of drawing the venue diagram of the generation vector according to the identified venue feature may further include the following steps:
step S2310, obtaining a position coordinate of a geometric center of the stadium map according to the circumscribed figure of the outermost layer flat cable.
Referring to fig. 5, in an example of the present invention, the venue diagram is a circle, the circumscribed figure OP of the outermost flat cable is a square, the geometric center a of the circumscribed figure OP is the geometric center of the venue diagram, and the position coordinates (x1, y1) of the geometric center a in a set coordinate system can be further calculated, for example, the geometric center a is the origin of the coordinate system.
Step S2320, obtaining the seat direction of the corresponding seat feature according to the position coordinate of each seat feature and the position coordinate of the geometric center.
According to the step S2320, referring to fig. 5, based on the position coordinates (x2, y2) of the seat feature b and the position coordinates (x1, y1) of the geometric center a, the seat direction of the seat feature b with respect to the geometric center a, specifically, the angle θ by which the line connecting the seat feature b and the geometric center a is deflected with respect to the vertical direction in fig. 5, can be obtained, and the angle θ can be used to characterize the seat direction.
θ=tan-1(x2-x1)/(y2-y1) formula (1).
In step S2330, a corresponding seat object is drawn according to the position coordinates and the seat direction of the seat feature.
In an example of the present invention, the generated stadium map drawn according to step S2300 is shown in fig. 6, where the stage P1, the area objects, the row objects, and the seat objects are shown in the stadium map of fig. 6, where each closed path area represents an area object, such as the area object a103 identified in the figure, each of the area objects is divided by a flat cable to form respective row objects, such as the row object L7 in the area object a103 identified in the figure, and black squares in the figure represent seat objects in the row objects/area objects.
Fig. 6 is a diagram illustrating a configuration of graphic elements of a stadium map as black and white lines, and in practical applications, display attributes of the graphic elements may be set as needed.
The display attributes may further include a bezel attribute, a fill attribute, and the like. The border attribute may include whether a border is displayed, a border color, and the like. The fill attribute may include a fill color, and may further include a fill effect, and the like.
For example, the border attribute of each graphic element is set to not display a border, and the fill attribute of a region object is set to fill yellow, and the like.
For another example, in the case where all the seat objects included in one area object are sold, the sold-out inventory status of the area object may be identified by setting the display attribute of the area object to fill the mapped color, for example, gray.
For another example, in the case where all the seat objects included in one row object are sold, the sold-out inventory status of the row object may be identified by setting the display attribute of the row object to fill the mapped color, for example, gray.
For another example, in the case where one area object has seat objects of a plurality of (two or more) selling prices, the distribution of the seat objects of the various selling prices in the area object may be identified by setting the display attribute of each row of objects in the area object to fill a color mapped with the selling price, for example, by mapping different selling prices by yellow, red, blue, or the like, and the stock state of the seat objects available for sale in the area object may be identified.
For another example, in the case where the selling prices of the seat objects in one area object are the same, the selling prices of the seat objects in the area object may be identified by setting the area object or each row of the area object to be filled with a color mapped to the selling price, for example, yellow mapped to the price a, while identifying that the area object has an inventory status of the seat objects available for sale.
The seat objects in each area object can be hidden in the stadium map to display the area setting of the stadium in a panoramic mode, so that a user can select the required area object through the stadium map and then enter the seat map of the displayed seat object of the area object to select the required seat object. Thus, the seating chart and the venue chart of the area object can be one chart, and different image contents are displayed to the user through the setting of the display attribute.
In one example of the present invention, the process of hiding the seat object may be implemented by setting the display properties of the row object and/or the area object as described above.
The method of the embodiment of the invention utilizes the image recognition technology to draw the stadium map of the generated vector, which substantially reduces the drawing workload compared with the current method of manually drawing the stadium map by hands.
According to the method of the embodiment of the invention, the area object, the row object and the seat object in the venue drawing are all self-integrated entities, can have the attributes such as shape, outline, size and position, and can be set and modified through a computer program, so that the venue drawing does not need to be redrawn even if the selling price, the stock state and the like are changed for the same venue, and the drawing workload can be obviously reduced.
According to the method provided by the embodiment of the invention, the generated venue diagram supports the operation of distinguishing and identifying according to the screening condition of the user so as to improve the identification degree, so that the venue diagram has interchangeability and is beneficial to improving the user experience.
According to the method of the embodiment of the invention, since the generated stadium map is drawn as a vector map, a drawing person can perform secondary editing on the stadium map as required, for example, merge two region objects into one region object.
In one embodiment of the present invention, the method of the present invention may further comprise: and setting area attributes by taking the area object as a unit, wherein the area attributes comprise an area number and display attributes.
The area number is used to uniquely mark the corresponding area object, and may be set, for example, according to the real area number of the venue.
In one example of the present invention, a region number input for a region object may be acquired to set the region number for the region object.
The display attributes of the region object include, for example, a border attribute, a fill attribute, and the like.
In this embodiment, the fill attribute by setting the zone object may be used to identify the selling price and/or the stock status of the seat object contained by the zone object.
In the embodiment, the venue map can be automatically and dynamically updated according to the change of the selling price and/or the stock state so as to reflect the latest selling condition of seat tickets in real time, and the seat selection efficiency is improved.
In an example of the present invention, the setting of the region attribute in units of region objects may further include: obtaining the selling price of the regional object; obtaining an identification color mapped with the selling price; and setting the display attribute of the region object according to the identification color.
For example, in the stadium map shown in fig. 6, if the selling prices of the seat objects included in the area object a601 are all the prices B, the display attribute for identifying the selling prices of the included seat objects is set in units of area objects, and the display effect according to the setting is: the region object a601 as a whole presents a color that maps the price B.
In an example of the present invention, the setting of the region attribute in units of region objects may further include: detecting the stock state of the area object; and setting the display attribute of the area object according to the identification color mapped with the corresponding stock state under the condition that all the seat objects contained in the area object are sold.
For example, in the venue diagram shown in fig. 6, seat objects included in the area object a121 are all sold, that is, the area object a121 is in a sold-out inventory state, a display attribute for identifying that all the included seat objects are sold is set in units of area objects, and the display effect presented according to the setting is: the area object a601 as a whole presents a color that maps the sold out.
In one embodiment of the present invention, the method of the present invention may further comprise: and setting row attributes by taking the row object as a unit, wherein the row attributes comprise a row number and a display attribute.
The row number is used to uniquely mark a row object in a region object, and row objects in different region objects may have the same row number.
In one example of the present invention, the rank number of the rank object may be set according to the distance of the rank line from the geometric center a of the stadium map. For example, the row object located between the first row line and the second row line closest to the geometric center a is the first row of seats of each area object, and the row number is set to "one row", and the like.
In an example of the present invention, the rank input for one of the regional objects may be acquired to set the rank of the one of the regional objects, and then the ranks of the remaining regional objects may be set according to the front-back relationship between the regional objects.
In this example, the plotter may click on a row object and input a row number by clicking on a row object in the region object. The row of objects clicked on may be the row of objects closest to the geometric center a among the region objects.
The display attributes of the line object include, for example, a border attribute, a fill attribute, and the like.
In this embodiment, the fill attribute by setting the row object may be used to identify the selling price and/or inventory status of the seat objects contained in the row object.
In an example of the present invention, the setting of the rank attribute in the rank object unit may further include: obtaining the selling price of the row object; obtaining an identification color mapped with the selling price; and setting the display attribute of the row of objects according to the identification color.
For example, in the stadium map shown in fig. 6, when the selling price of the first three-row seat object of the area object a103 is price a and the selling price of the second four-row seat object is price B, the display attribute for identifying the selling price of the first three-row seat object is set in units of row objects, and the display attribute for identifying the selling price of the second four-row seat object is set in units of row objects, the display effect exhibited according to the setting is: the area object a103 presents a color mapping the price a at the position of the first three rows and another color mapping the price B at the position of the last four rows.
In an example of the present invention, the setting of the region attribute in units of the line object may further include: detecting the stock state of the row object; and setting the display attribute of the row of objects according to the identification color mapped with the corresponding inventory state under the condition that all the seat objects contained in the row of objects are sold.
In one embodiment of the present invention, the method of the present invention may further comprise: seat attributes are set in units of seat objects, wherein the seat attributes include a seat number and a display attribute.
The seat number is used to uniquely identify the seating object in a row of objects.
In one example of the present invention, a seat number input for a seat object in a row of objects may be acquired to set the seat number of the seat object; and then seat numbers of the rest seat objects are set according to the adjacent relation between the seat objects in the row of objects. In one example of the present invention, the seat numbers of the seat objects of the other row objects in the same area object may be further set in accordance with the adjacent relationship between the seat objects belonging to the different row objects in the same area object.
The above adjacent relation can be calculated from the position coordinates of the seat object.
The display attributes of the seat object include, for example, a border attribute, a fill attribute, and the like.
In this embodiment, the filling attribute by setting the seat object may be used to identify the selling price and/or the stock status of the seat object.
In an example of the present invention, the setting of the seat attribute in units of the seat object may further include the steps of: obtaining a selling price of the seat object; obtaining an identification color mapped with the selling price; and setting display attributes of the seat object according to the identification color.
In an example of the present invention, the setting of the seat attribute in units of the seat object may further include the steps of: detecting an inventory status of the seat object; and setting a display attribute of the seat object according to the identification color mapped with the corresponding inventory status in a case where the seat object has been sold.
In one embodiment of the present invention, the method of the present invention may further comprise: the seat object is associated with the row object and the area object according to the position coordinates of the seat object.
According to the embodiment of the invention, the row object where the seat object is located and the area object where the seat object is located can be determined, so that the position labels forming the seat object can be automatically linked to be seats with xx area, xx row and xx number.
< apparatus embodiment >
Fig. 7 is a functional block diagram of a stadium map generating apparatus according to an embodiment of the invention.
As shown in fig. 7, the generating apparatus 1000 according to the embodiment of the present invention includes an original image acquiring module 1710, an image recognizing module 1720, and a rendering module 1730. The original image obtaining module 1710 is configured to obtain an original image reflecting the arrangement structure of seats in the venue. The image recognition module 1720 is configured to recognize venue features in the original image that are embodied by the seat arrangement structure, wherein the venue features include region features, row features, and seat features. The rendering module 1730 is configured to render a venue view of the generated vector according to the identified venue characteristics, where the venue view includes a region object rendered according to the identified region characteristics, a row object rendered according to the identified row characteristics, and a seat object rendered according to the identified seat characteristics.
In an embodiment of the present invention, the image recognition module 1720 may be configured to: identifying a venue shape track represented by the seat arrangement structure in the original image as a flat cable according to the venue shape track model; identifying a closed path region formed by crossing the flat cable and the region dividing line according to the venue region model as a region feature; identifying a portion of an annular region between two adjacent flat cables in the closed path region as a row feature; and identifying seat features in the original image according to the venue seat model.
In an embodiment of the present invention, the drawing module 1730 may be configured to: obtaining the position coordinates of the geometric center of the stadium map according to the circumscribed figure of the outmost flat cable; obtaining the seat direction of the corresponding seat feature according to the position coordinate of each seat feature and the position coordinate of the geometric center; and drawing to obtain a corresponding seat object according to the position coordinates and the seat direction of the seat features.
In an embodiment of the present invention, the generating apparatus 1000 of the present invention may further include an attribute setting module (not shown in the figure). The attribute setting module is used for: setting area attributes by taking an area object as a unit, wherein the area attributes comprise an area number and display attributes; setting row attributes by taking a row object as a unit, wherein the row attributes comprise a row number and display attributes; and setting seat attributes in units of seat objects, wherein the seat attributes include a seat number and a display attribute.
In an embodiment of the present invention, the attribute setting module may be further configured to: the seat object is associated with the row object and the area object according to the position coordinates of the seat object.
In an embodiment of the present invention, the attribute setting module may be configured to: obtaining the selling price of the regional object; obtaining an identification color mapped with a selling price; and setting the display attribute of the region object according to the identification color.
In an embodiment of the present invention, the attribute setting module may be configured to: detecting the stock state of the area object; and setting the display attribute of the area object according to the identification color mapped with the corresponding stock state under the condition that all the seat objects contained in the area object are sold.
In an embodiment of the present invention, the attribute setting module may be configured to: obtaining the selling price of the row object; obtaining an identification color mapped with a selling price; and setting the display attribute of the row object according to the identification color.
The embodiments and examples listed above mainly focus on the differences from other embodiments and examples, and the same parts may be referred to each other. It should be clear to those skilled in the art that the above embodiments, examples, can be used alone or in combination as desired.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (10)
1. A method for generating a stadium map for online seat selection is characterized by comprising the following steps:
acquiring an original image reflecting a seat arrangement structure in a venue;
identifying venue features embodied by the seat arrangement structure in the original image, wherein the venue features include region features, row features, and seat features;
and drawing a venue map of the generated vector according to the identified venue characteristics, wherein the venue map comprises a region object drawn according to the identified region characteristics, an array object drawn according to the identified array characteristics, and a seat object drawn according to the identified seat characteristics.
2. The generation method of claim 1, wherein the identifying of the venue feature embodied by the seat arrangement structure in the original image comprises:
identifying a venue shape track represented by the seat arrangement structure in the original image as a flat cable according to the venue shape track model;
identifying a closed path area formed by crossing the flat cable and the area dividing line according to the venue area model as an area feature;
identifying a portion located in the closed path region as a row feature in an annular region between two adjacent flat cables;
seat features in the original image are identified from the venue seat model.
3. The method of claim 2, wherein the generating the venue plot of the vector from the identified venue feature mapping comprises:
obtaining the position coordinates of the geometric center of the stadium map according to the circumscribed figure of the outmost flat cable;
obtaining the seat direction of the corresponding seat feature according to the position coordinate of each seat feature and the position coordinate of the geometric center;
and drawing to obtain a corresponding seat object according to the position coordinate and the seat direction of the seat feature.
4. The generation method according to any one of claims 1 to 3, characterized in that the method further comprises:
setting area attributes by taking an area object as a unit, wherein the area attributes comprise an area number and display attributes;
setting row attributes by taking a row object as a unit, wherein the row attributes comprise a row number and display attributes;
setting seat attributes in units of seat objects, wherein the seat attributes include a seat number and a display attribute.
5. The method of generating as claimed in claim 4, further comprising:
and associating the seat object with the row object and the area object according to the position coordinate of the seat object.
6. The generation method according to claim 4, wherein the setting of the region attribute in units of region objects includes:
obtaining the selling price of the area object;
obtaining an identification color mapped with the selling price;
setting the display attribute of the region object according to the identification color; or,
the setting of the region attribute in units of region objects includes:
detecting an inventory status of the area object;
and setting the display attribute of the area object according to the identification color mapped with the corresponding stock state under the condition that the seat objects contained in the area object are sold.
7. The generation method according to claim 4, wherein the setting of the line attribute in units of line objects includes:
obtaining the selling price of the row object;
obtaining an identification color mapped with the selling price;
setting the display attribute of the row object according to the identification color; or,
the setting of the rank attribute in units of the rank object includes:
detecting an inventory status of the line object;
and setting the display attribute of the row object according to the identification color mapped with the corresponding stock state under the condition that the seat objects contained in the row object are sold.
8. The generation method according to claim 4, wherein the setting of the seat attribute in units of seat objects includes:
obtaining a selling price of the seat object;
obtaining an identification color mapped with the selling price;
setting display attributes of the seat object according to the identification color; alternatively, the setting of the seat attribute in units of seat objects includes:
detecting an inventory status of the seating object;
setting a display attribute of the seat object according to the identification color mapped with the corresponding inventory status in a case where the seat object has been sold.
9. An apparatus for generating a stadium map for on-line seating, comprising:
the system comprises an original image acquisition module, a position arrangement module and a position arrangement module, wherein the original image acquisition module is used for acquiring an original image reflecting a seat arrangement structure in a venue;
the image identification module is used for identifying the stadium characteristics embodied by the seat arrangement structure in the original image, wherein the stadium characteristics comprise region characteristics, row characteristics and seat characteristics; and the number of the first and second groups,
and the drawing module is used for drawing a venue map of the generated vector according to the identified venue characteristics, wherein the venue map comprises an area object drawn according to the identified area characteristics, an arrangement object drawn according to the identified arrangement characteristics and a seat object drawn according to the identified seat characteristics.
10. An apparatus for generating a stadium map for on-line seating, comprising: a memory for storing instructions for controlling the processor to operate to perform the generation method of any of claims 1-8, and a processor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810274091.6A CN108519901A (en) | 2018-03-29 | 2018-03-29 | Venue map generalization method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810274091.6A CN108519901A (en) | 2018-03-29 | 2018-03-29 | Venue map generalization method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108519901A true CN108519901A (en) | 2018-09-11 |
Family
ID=63431357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810274091.6A Pending CN108519901A (en) | 2018-03-29 | 2018-03-29 | Venue map generalization method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108519901A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110334121A (en) * | 2019-07-10 | 2019-10-15 | 中国民航信息网络股份有限公司 | Payment seat manages method and system |
| CN111782740A (en) * | 2019-04-04 | 2020-10-16 | 阿里巴巴集团控股有限公司 | Seat data processing method, computing device and storage medium |
| CN111833414A (en) * | 2019-04-15 | 2020-10-27 | 阿里巴巴集团控股有限公司 | Information processing method, device and storage medium |
| CN112348924A (en) * | 2019-08-07 | 2021-02-09 | 阿里巴巴集团控股有限公司 | Image processing method, computing device and storage medium |
| CN113902820A (en) * | 2020-06-22 | 2022-01-07 | 阿里巴巴集团控股有限公司 | Method and device for drawing seat |
| CN113947447A (en) * | 2020-07-15 | 2022-01-18 | 阿里巴巴集团控股有限公司 | Seat drawing method and device and electronic equipment |
| CN117312300A (en) * | 2022-12-29 | 2023-12-29 | 浙江中控信息产业股份有限公司 | Mysql storage optimization method for performance seat inventory |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103186816A (en) * | 2011-12-28 | 2013-07-03 | 北大方正集团有限公司 | Generation method and generation device for on-line ticket business |
| CN104598976A (en) * | 2015-02-05 | 2015-05-06 | 上海百筹金融信息服务有限公司 | Ticket selecting system of large-scale performance site |
| CN105260781A (en) * | 2015-09-22 | 2016-01-20 | 百度在线网络技术(北京)有限公司 | Method and device for on-line selection of seats at cinema |
| CN106682845A (en) * | 2017-01-06 | 2017-05-17 | 宁波猎票网络技术有限公司 | Method and system for quickly selecting seat in stadium |
-
2018
- 2018-03-29 CN CN201810274091.6A patent/CN108519901A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103186816A (en) * | 2011-12-28 | 2013-07-03 | 北大方正集团有限公司 | Generation method and generation device for on-line ticket business |
| CN104598976A (en) * | 2015-02-05 | 2015-05-06 | 上海百筹金融信息服务有限公司 | Ticket selecting system of large-scale performance site |
| CN105260781A (en) * | 2015-09-22 | 2016-01-20 | 百度在线网络技术(北京)有限公司 | Method and device for on-line selection of seats at cinema |
| CN106682845A (en) * | 2017-01-06 | 2017-05-17 | 宁波猎票网络技术有限公司 | Method and system for quickly selecting seat in stadium |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111782740A (en) * | 2019-04-04 | 2020-10-16 | 阿里巴巴集团控股有限公司 | Seat data processing method, computing device and storage medium |
| CN111833414A (en) * | 2019-04-15 | 2020-10-27 | 阿里巴巴集团控股有限公司 | Information processing method, device and storage medium |
| CN110334121A (en) * | 2019-07-10 | 2019-10-15 | 中国民航信息网络股份有限公司 | Payment seat manages method and system |
| CN112348924A (en) * | 2019-08-07 | 2021-02-09 | 阿里巴巴集团控股有限公司 | Image processing method, computing device and storage medium |
| CN113902820A (en) * | 2020-06-22 | 2022-01-07 | 阿里巴巴集团控股有限公司 | Method and device for drawing seat |
| CN113947447A (en) * | 2020-07-15 | 2022-01-18 | 阿里巴巴集团控股有限公司 | Seat drawing method and device and electronic equipment |
| CN113947447B (en) * | 2020-07-15 | 2024-11-08 | 阿里巴巴集团控股有限公司 | Seat drawing method, device and electronic equipment |
| CN117312300A (en) * | 2022-12-29 | 2023-12-29 | 浙江中控信息产业股份有限公司 | Mysql storage optimization method for performance seat inventory |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108519901A (en) | Venue map generalization method and device | |
| US11042278B2 (en) | Providing graphical indication of label boundaries in digital maps | |
| US12499304B2 (en) | Centralized brand asset management | |
| US10262356B2 (en) | Methods and arrangements including data migration among computing platforms, e.g. through use of steganographic screen encoding | |
| US11126846B2 (en) | Augmented reality, computer vision, and digital ticketing systems | |
| US10210659B2 (en) | Augmented reality system, method, and apparatus for displaying an item image in a contextual environment | |
| CN109478124A (en) | Augmented reality device and its operation | |
| CN109155076B (en) | Automatically identify and display objects of interest in graphic novels | |
| CN103761062B (en) | Method for displaying corresponding material in two-dimensional code area and mobile terminal | |
| US10431122B2 (en) | Systems and methods for smart cartography | |
| US20150317365A1 (en) | Modular search object framework | |
| US10652459B2 (en) | Information processing system, information processing method, and non-transitory computer-readable storage medium | |
| JP2018181321A (en) | Rearogram to Planogram User Interface | |
| KR102421451B1 (en) | Systems and methods for efficient management and modification of images | |
| CN114564131A (en) | A content publishing method, device, computer equipment and storage medium | |
| KR102311567B1 (en) | Method for Offering Perusal Service of Specific Position Information on Plural Layer in Spatial Information through Marker Generated Based on Electronic Map | |
| CN112579083B (en) | Image display method, device, electronic equipment and storage medium | |
| KR20150135707A (en) | Method and apparatus for providing advertisement image by producing in real time | |
| US12159360B2 (en) | Discovery, management and processing of virtual real estate content | |
| CN119376602A (en) | A method for generating QR code posters based on Canvas dragging | |
| JP2021111296A (en) | Information processing device, information processing method, and computer program | |
| JP7677429B2 (en) | Finding the right image space for overlaying media content | |
| CN114450655B (en) | System and method for quantifying augmented reality interactions | |
| Chen et al. | Adaptive multi-resolution labeling in virtual landscapes | |
| CN113569619B (en) | Business interaction method, computer device and readable storage medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180911 |
|
| RJ01 | Rejection of invention patent application after publication |