Data Processing Method, Apparatus, Electronic Device, and Computer Storage Medium
By acquiring and processing VR images, static files are generated to indicate the correspondence between seats and VR images, the problem that the audience cannot feel the seat perspective when choosing seats, and achieves better seat selection experience and data security.
Patent Information
- Application Number
- CN202010760883.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2040-07-31
AI Technical Summary
In the prior art, when viewers purchase tickets and seat selection online, they cannot actually feel the perspective and scenes that the selected seat can be viewed, resulting in poor seat selection experience.
By acquiring the collected VR image, binding data is determined based on the information of the VR image and the information of the seat. The binding data is used to indicate the correspondence between the seat and the VR image, and compress the binding data to generate a static file so as to determine the VR image corresponding to the selected seat based on the static file when selecting the seat.
It realizes that you can intuitively feel the perspective and scene of the selected seat when selecting seats, improves the seat selection experience, and at the same time, through compressing data transmission, reduces bandwidth usage and improves data security.
Smart Images

Figure CN114066548B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technologies, and in particular, to a data processing method, apparatus, electronic device, and computer storage medium. Background Art
[0002] With the progress of technology, people's lives have become more and more intelligent. Taking online ticket purchase and seat selection as an example, in the prior art, audiences can purchase tickets and select seats through the network from the ticketing platform or the website of the ticket seller. However, the problem with this ticket purchase and seat selection method is that audiences can only view the seat positions through a planar schematic diagram, and cannot actually feel the viewing angles, scenes, etc. that the selected seats can offer when selecting seats, resulting in audiences having difficulty choosing relatively satisfactory seats and thus a poor seat selection experience. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a data processing solution to at least partially solve the above problems.
[0004] According to a first aspect of embodiments of the present invention, there is provided a data processing method including: acquiring a collected VR image; determining binding data according to information of the VR image and information of seats in a target venue, where the binding data is used to indicate a corresponding relationship between the seats and the VR image; performing compression processing on the binding data and obtaining a static file, so as to determine a VR image corresponding to a selected seat according to the binding data in the static file when selecting a seat.
[0005] According to a second aspect of embodiments of the present invention, there is provided a data processing method including: calling a seat selection interface to send a seat selection request; receiving a compressed static file returned through the seat selection interface, where the static file contains binding data, and the binding data is used to indicate a corresponding relationship between at least some seats in a target venue and VR images; determining a VR image corresponding to a selected seat according to the binding data obtained by decompressing the static file, and displaying the corresponding VR image.
[0006] According to a third aspect of embodiments of the present invention, there is provided a data processing apparatus including: a first acquisition module, configured to acquire a collected VR image; a first determination module, configured to determine binding data according to information of the VR image and information of seats in a target venue, where the binding data is used to indicate a corresponding relationship between the seats and the VR image; a second acquisition module, configured to perform compression processing on the binding data and obtain a static file, so as to determine a VR image corresponding to a selected seat according to the binding data in the static file when selecting a seat.
[0007] According to a fourth aspect of an embodiment of the present invention, a data processing device is provided, including: a calling module for calling a seat selection interface to send a seat selection request; a receiving module for receiving a compressed static file returned through the seat selection interface, where the static file contains binding data for indicating the correspondence between at least some seats in a target venue and VR images; a second determination module for determining a VR image corresponding to a selected seat according to the binding data obtained by decompressing the static file, and displaying the corresponding VR image.
[0008] According to a fifth aspect of an embodiment of the present invention, an electronic device is provided, including: a processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete communication with each other through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the data processing method described in the first aspect or the second aspect.
[0009] According to a sixth aspect of an embodiment of the present invention, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, it implements the data processing method described in the first aspect or the second aspect.
[0010] According to the data processing solution provided by the embodiment of the present invention, the collected VR images are obtained, and the binding data for indicating the correspondence between the seats and the VR images is determined according to the information of the VR images and the information of the seats, and the binding data is compressed to obtain a static file, so that the terminal device can display the VR image corresponding to the selected seat according to the static file. The binding data contained in the static file is used to indicate the correspondence, so that the server does not need to send the complete VR image to the terminal device, reducing the data transmission volume and thus reducing the bandwidth occupancy; moreover, the server directly transmits the static file obtained by compression processing, so that the VR image cannot be correctly obtained without using the corresponding decompression algorithm to decompress the static file, thereby improving the data security and effectively preventing the VR image from being tampered with. Description of the Drawings
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings according to these drawings.
[0012] Figure 1a It is a flowchart of the steps of a data processing method according to Embodiment 1 of the present invention;
[0013] Figure 1b ForFigure 1a Schematic diagram of a scenario example in the illustrated embodiment;
[0014] Figure 2 Flowchart of steps of a data processing method according to Embodiment 2 of the present invention;
[0015] Figure 3a Flowchart of steps of a data processing method according to Embodiment 3 of the present invention;
[0016] Figure 3b Schematic diagram of a determined acquisition area and acquisition position according to Embodiment 3 of the present invention;
[0017] Figure 4 Flowchart of steps of a data processing method according to Embodiment 4 of the present invention;
[0018] Figure 5a Flowchart of steps of a data processing method according to Embodiment 5 of the present invention;
[0019] Figure 5b For Figure 5a Schematic diagram of a scenario example in the illustrated embodiment;
[0020] Figure 5c Schematic diagram of an interface for VR image display according to Embodiment 5 of the present invention;
[0021] Figure 6 Block diagram of a structure of a data processing device according to Embodiment 6 of the present invention;
[0022] Figure 7 Block diagram of a structure of a data processing device according to Embodiment 7 of the present invention;
[0023] Figure 8 Schematic diagram of a structure of an electronic device according to Embodiment 8 of the present invention. Detailed implementation manners
[0024] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art shall fall within the scope of protection of the embodiments of the present invention.
[0025] The following further illustrates the specific implementation of the embodiments of the present invention with reference to the accompanying drawings of the embodiments of the present invention.
[0026] Embodiment 1
[0027] Refer toFigure 1a shows a flowchart of the steps of a data processing method according to Embodiment 1 of the present invention.
[0028] In this embodiment, the data processing method is configured in a server (the server includes a server and / or the cloud), and the server is communicatively connected to a terminal device. When the audience selects seats online, the server sends a static file containing the correspondence between seats and VR images to the terminal device, so that the terminal device can display the VR image corresponding to the selected seat, so that the audience can experience the actual viewing effect on the selected seat according to the VR image, thereby improving the seat selection experience and enabling the audience to more conveniently select seats that meet their needs.
[0029] Of course, in other embodiments, this data processing method can also be configured on other devices, and this embodiment does not limit this.
[0030] The data processing method of this embodiment includes the following steps:
[0031] Step S102: Obtain the collected VR images.
[0032] VR (Virtual Reality) images can be collected by any suitable image collection device, and this embodiment does not limit this.
[0033] When specifically collecting VR images, they can be collected in different collection areas of the target venue, in order to enable the audience to feel the scene that can be seen when sitting in the seats within the collection area through the VR images. Through the VR images, the audience can have a sense of immersive experience, so that when the audience selects seats, they can conveniently know the scene that can be seen when sitting in the selected seat through the VR images.
[0034] Step S104: Determine binding data according to the information of the VR images and the information of the seats in the target venue, where the binding data is used to indicate the correspondence between the seats and the VR images.
[0035] In a specific implementation, the collection area corresponding to the VR image can be determined according to the information of the VR image, and then, according to the information of the seats, the collection area to which the seats belong can be determined, and thus the correspondence between the seats and the VR images can be determined, and the binding data can be determined based on this correspondence.
[0036] The binding data includes the correspondence between one or more seats in the target venue and VR images. For example, the target venue is Screening Hall A in a cinema, which can be divided into 9 acquisition areas, namely Acquisition Areas 1-9, and each acquisition area corresponds to a VR image. There are 10 rows of seats in Screening Hall A, with 10 seats in each row, and these 100 seats are distributed in Acquisition Areas 1-9. For each seat, according to the acquisition area it belongs to, the correspondence between the seat and the VR image is determined. For example, the first seat in the first row (denoted as Seat 1-1) belongs to Acquisition Area 1, so Seat 1-1 corresponds to VR image a. In this way, the binding data can be determined according to the correspondence between each seat and the VR image.
[0037] Step S106: Compress the binding data and obtain a static file to determine the VR image corresponding to the selected seat according to the binding data in the static file when selecting a seat.
[0038] To reduce the amount of data exchanged between the server and the terminal device, thereby reducing the data transmission load of the server, the binding data is compressed to obtain a static file. The compression process can use any appropriate compression algorithm in the prior art, and this embodiment does not limit it.
[0039] By compressing the binding data, the storage space occupied and the bandwidth during data transmission can be reduced, and the data transmission pressure on the server can be lowered. In addition, by compressing the binding data, encryption of the binding data can also be achieved. Even if a third party obtains the static file, they cannot decompress the static file using the correct decompression algorithm, thereby making the anti-tampering ability of this method stronger and the data security better.
[0040] The data processing method of this embodiment is described below in combination with a specific usage scenario as follows:
[0041] As Figure 1b shown, taking Screening Hall A in a cinema as the target venue as an example, multiple VR images are collected in Screening Hall A, and each VR image corresponds to an acquisition area. As Figure 1b shown, Acquisition Area 1 corresponds to VR image a, Acquisition Area 2 corresponds to VR image b, and so on. The VR images are used to indicate the scenes that the audience can see when in the corresponding acquisition area.
[0042] After obtaining the VR images, for each seat, the binding data indicating the correspondence between the seat and the VR image is determined. For example, according to the position of each seat, the acquisition area to which the seat belongs is determined, and the VR image corresponding to the acquisition area to which it belongs is determined as the VR image corresponding to the seat, thereby determining the correspondence. For example, the seat in the first row and the first seat (denoted as Seat 1-1) belongs to Acquisition Area 1, so it corresponds to VR image a.
[0043] For the obtained binding data, perform compression processing on the binding data to obtain a static file. In this way, the static file contains the correspondence between at least some seats in the target venue and the VR images. In this way, when the user selects a seat through the terminal device, the static file can be sent to the terminal device, so that the terminal device determines the VR image corresponding to the selected seat according to the static file and displays the VR image to the user.
[0044] Through this embodiment, collect the acquired VR images, determine the binding data for indicating the correspondence between the seats and the VR images according to the information of the VR images and the information of the seats, and perform compression processing on the binding data to obtain a static file, so that the terminal device can display the VR image corresponding to the selected seat according to the static file. On the one hand, the binding data contained in the static file is used to indicate the correspondence, so that the server does not need to send the complete VR image to the terminal device, reducing the data transmission volume and thus reducing the bandwidth occupancy; moreover, what the server directly transmits is the static file obtained by compression processing, so that the VR image cannot be correctly obtained without using the corresponding decompression algorithm to decompress the static file, thereby enhancing the data security and effectively preventing the VR image from being tampered with.
[0045] The data processing method of this embodiment can be executed by any suitable electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as mobile phones, PADs, etc.) and PC machines, etc.
[0046] Embodiment Two
[0047] Refer to Figure 2 , which shows a flowchart of the steps of a data processing method according to Embodiment Two of the present invention.
[0048] In this embodiment, it is still described by taking the data processing method configured in the server as an example. Among them, the data processing method includes the aforementioned steps S102 to step S106. And in order to determine the binding data more conveniently and efficiently, in a specific implementation of this embodiment, step S104 can be implemented as: determine the binding data according to the correspondence between the VR image and the acquisition area in the information of the VR image and the belonging relationship between the seat and the acquisition area in the information of the seat.
[0049] For example, the correspondence between the VR image and the acquisition area can be obtained by marking the acquisition area corresponding to the VR image during VR image acquisition. For example, when acquiring the VR image a in the acquisition area 1, mark the identifier of the acquisition area 1 on the VR image a. Alternatively, other appropriate methods can also be used to determine the correspondence, and this embodiment does not limit this. For example, VR images of each acquisition area are acquired in the target venue, and information such as the target venue, session, and acquisition area where each VR image is acquired is marked. The acquisition area can be manually selected or obtained through algorithm analysis, and this embodiment does not limit this.
[0050] Specifically, according to the correspondence between the VR image and the acquisition area in the information of the VR image, and the belonging relationship between the seat and the acquisition area in the information of the seat, determining the binding data includes the following process:
[0051] Process I: Determine the belonging relationship between the seat and the acquisition area according to the first position information of the seat and the second position information of the acquisition area.
[0052] The belonging relationship between the seat and the acquisition area can be determined according to the first position information of the seat and the second position information of the acquisition area. For example, for each acquisition area, its second position includes seats at at least some boundary points on the boundary of the acquisition area. Taking the acquisition area as a rectangle as an example, its corresponding second position information can be represented by the upper left corner coordinates (x1, y1) and the lower right corner coordinates (x2, y2), or it can also be represented by the coordinates of the 4 vertices of the rectangle. When the acquisition area is other polygons, they can all be represented by the coordinates of their vertices. When the acquisition area is a circle, the second position information can be represented by the coordinates of 3 points on the circumference. When the acquisition area is an ellipse, the second position information can be represented by the 2 long axis vertices and 2 short axis vertices of the ellipse.
[0053] Correspondingly, the first position information of each seat can also be represented in the form of the coordinates (x3, y3) of a certain reference point on the seat, or in the form of the upper left corner coordinates (x4, y4) and the lower right corner coordinates (x5, y5) of the area occupied by the seat. In this embodiment, the first position information of the seat can be determined according to the preset seat map of the target venue. The seat map is made for the target venue and is a picture formed by mapping the seat distribution therein to a two-dimensional space. The seat map contains the first position information of one or more sessions in the target venue.
[0054] When the positions of the seats in the target venue are adjusted (such as adding, reducing, or adjusting positions, etc.), only the identifiers of the seats and the corresponding first position information in the seat map need to be updated.
[0055] For a certain seat, by matching its first position information with the second position information of each collection area, the belonging relationship between the seat and the collection area can be determined. For example, seats 1 to 3 in row 1 belong to collection area 1.
[0056] Process II: According to the corresponding relationship, determine that the VR image corresponding to the collection area to which the seat belongs is the VR image corresponding to the seat.
[0057] Still taking the belonging relationship of seat 1 in row 1 indicating that it belongs to collection area 1 as an example, according to the corresponding relationship, it can be determined that the VR image corresponding to collection area 1 is VR image a. Then, it can be determined that VR image a is the VR image corresponding to the seat of seat 1 in row 1.
[0058] Process III: Determine the binding data based at least on the identifier of the seat and the download link of the corresponding VR image.
[0059] In a specific implementation, in order to reduce the size of the binding data and thus reduce the data transmission pressure, for a certain seat, after determining the corresponding VR image, store the identifier of the seat and the download link of the corresponding VR image into the binding data to indicate the corresponding relationship between the seat and the VR image.
[0060] The download link can be a URL address or other forms of links, and this embodiment does not limit this.
[0061] In another specific implementation, while ensuring that the size of the binding data can be reduced, in order to enhance data security, Process III can be implemented as: perform a hash calculation on the VR image to obtain the hash value corresponding to the VR image; determine the binding data based at least on the identifier of the seat, the download link of the VR image corresponding to the seat, and the hash value.
[0062] By adding the hash value to the binding data, the terminal device can verify the VR image through the hash value after obtaining the VR image according to the binding data, so as to identify whether the obtained VR image has been tampered with, and quickly determine the tampered VR image, thereby enhancing data security.
[0063] In this embodiment, the collected VR images are obtained, and binding data for indicating the correspondence between the seats and the VR images is determined based on the information of the VR images and the information of the seats, and the binding data is compressed to obtain a static file, so that the terminal device can display the VR images corresponding to the selected seats according to the static file. On the one hand, the binding data included in the static file is used to indicate the correspondence, so that the server does not need to send the complete VR images to the terminal device, reducing the data transmission volume and thus reducing the bandwidth occupation; moreover, the server directly transmits the static file obtained by compression processing, so that the VR images cannot be correctly obtained without decompressing the static file using the corresponding decompression algorithm, thereby enhancing the data security and effectively preventing the VR images from being tampered with.
[0064] By determining the association between the VR images and the second position information of the corresponding acquisition areas, the coverage range of the VR images is determined, greatly saving manpower. By determining whether the seats belong to the acquisition areas based on the first position information of the seats and the second position information of the acquisition areas, and then determining the association relationship between the seats and the VR images, when the positions or identifiers of the seats change, only the correspondence between the identifiers of the seats and the first position information needs to be updated, and there is no need to repeatedly update the association relationship between the seats and the VR images each time, reducing the repetitive binding work. For the binding of seats and VR images in different sessions, the binding can be performed by copying the first position information of the seats, making the binding simpler and more efficient. It fully solves the problem of consuming a large amount of man-hours caused by re-binding with VR images every time in the scenario where the positions of the seats need to be frequently adjusted.
[0065] The data processing method of this embodiment can be executed by any suitable electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as mobile phones, PADs, etc.) and PC machines, etc.
[0066] Embodiment III
[0067] Refer to Figure 3a , which shows a flowchart of the steps of a data processing method according to Embodiment III of the present invention.
[0068] In this embodiment, before step S102, the method further includes step S100.
[0069] Step S100: Determine at least one acquisition area for collecting VR images and the acquisition positions in the acquisition area according to the first position information of multiple seats in the target venue and the position information of the stage reference point of the stage.
[0070] To achieve a better VR seat selection effect, it is necessary to collect VR images on-site at the target venue. In order for the collected VR images to provide a better seat selection experience for users, it is necessary to determine the collection positions in the target venue before collecting the VR images.
[0071] In this embodiment, step S100 includes the following processes:
[0072] Process A: According to the first position information of multiple seats in the target venue and the position information of the stage reference point of the stage, determine the first distance between the seat and the stage reference point, and the second distance between two adjacent seats.
[0073] The stage reference point can be the center of the stage or any appropriate reference point on the stage. The position information of the stage reference point can be its coordinates. The first position information of the seat can be the coordinates of the seat.
[0074] The first distance can be determined by calculating the Euclidean distance based on the coordinates of each seat and the coordinates of the stage reference point. This distance is used to reflect the viewing distance of the user.
[0075] The second distance can be determined by calculating the Euclidean distance based on the coordinates of two adjacent seats. This distance is used to reflect the proximity between two adjacent seats, and thus can determine whether two adjacent seats belong to the same area.
[0076] It should be noted that two adjacent seats in this embodiment can be determined according to the seat identification. For example, seat 1 in row 1 and seat 2 in row 1 are adjacent, seat 2 in row 1 and seat 3 in row 1 are adjacent, etc.
[0077] Process B: According to multiple first distances and multiple second distances, determine at least one first threshold range and at least one second threshold range.
[0078] Among them, the first threshold range is used to indicate the value range of the distance between the seats included in the collection area and the stage reference point, and the second threshold range is used to indicate the spacing between adjacent seats in the same collection area.
[0079] The first threshold range and the second threshold range can be determined according to experience. After the first threshold range and the second threshold range are determined, they can be applied to multiple target venues and sessions, so that different target venues and sessions use the same basis to determine the collection area and collection positions, thus avoiding the problem of inconsistent collection quality caused by different collection personnel collecting VR images based on different experiences.
[0080] The first threshold range and the second threshold range can be used as parameters for subsequent seat clustering. For example, since the area of a target venue is large and multiple VR images may be required to fully cover the viewing perspective, it is necessary to determine multiple different distance intervals based on the distance between the seats and the stage reference point. These distance intervals determine the first threshold range. For example, the distance from a part of the seats to the stage reference point is 0 - 5m, and the distance from another part of the seats to the stage reference point is 5 - 10m, etc.
[0081] Since the seat range that a single VR image can cover is fixed, it is necessary to determine the second threshold range, that is, the distance between adjacent seats, to ensure that relatively adjacent seats correspond to the acquisition area of the same VR image.
[0082] Process C: Cluster the multiple seats according to the first threshold range, the second threshold range, and the position information of the multiple seats.
[0083] In this embodiment, this clustering can adopt the CHAMELEON clustering algorithm, and the first threshold range and the second threshold range are used to determine the parameters in the algorithm.
[0084] A specific execution process is as follows: For the seats in the target venue, construct a K-nearest neighbor graph according to the first position information of each seat, that is, connect the current seat with the K nearest seats. K can be determined as needed, such as 1, 2, 3, etc.
[0085] Use the multi-level graph partitioning algorithm to partition the K-nearest neighbor graph. In this way, clusters composed of multiple adjacent seats are obtained.
[0086] For these clusters, merge the clusters that best maintain the self-similarity of the clusters in terms of relative interconnectivity (RI) and relative closeness (RC). That is, calculate the RI and RC between two clusters respectively, and when both RI and RC meet the set thresholds (determined as needed), merge the two clusters. Repeat this step until there are no more clusters that can be merged, thereby obtaining the clustering result of the seats.
[0087] To obtain the acquisition positions, the K-means algorithm can be used to calculate the center points of the clusters obtained by clustering.
[0088] A specific execution process is as follows: Randomly select k points as the initial centroids. K can be determined as needed, and this embodiment does not limit it. For example, it can be 2, 3, 4, etc.
[0089] For each seat, according to the coordinates of the seat, the seat is assigned to the nearest centroid to form k sets. Calculate the centroid of each set respectively. Then, according to the coordinates of each seat, the seat is assigned to the calculated centroid to form k new sets, and calculate the centroid of each new set respectively. Repeat this process until the centroid does not change, thereby obtaining the positions of k centroids.
[0090] Process D: Determine at least one of the acquisition areas and the acquisition positions in the acquisition areas according to the clustering result.
[0091] In the aforementioned Process C, each cluster merged is an acquisition area, such as Figure 3b the shaded part in. The seat closest to the calculated centroid can be determined according to the centroid, and this seat is used as the acquisition position, Figure 3b the shooting point in.
[0092] In this way, based on the graph clustering algorithm and historical data accumulation, the acquisition areas and acquisition positions of VR images are automatically determined, avoiding the man-hour consumption of manually selecting shooting points. Moreover, since the acquisition positions and acquisition areas are based on the same algorithm, the calculated acquisition positions of each target venue conform to the user's real viewing perspective, and the acquisition effect will not be affected by differences in the experience of the shooters.
[0093] Embodiment 4
[0094] Refer to Figure 4 , which shows a flowchart of the steps of a data processing method according to Embodiment 4 of the present invention.
[0095] In this embodiment, taking the data processing method configured in the terminal device as an example, it is described. The data processing method of this embodiment includes the following steps:
[0096] Step S402: Call the seat selection interface to send a seat selection request.
[0097] The audience can purchase tickets through the application on the terminal device. During the ticket purchase process, the application can obtain the target venue where the audience chooses to watch the performance work, and accordingly display the seat distribution schematic diagram of the target venue to the audience for seat selection.
[0098] After receiving the seat selection operation of the audience, determine the seat selection request according to the seat selection operation, and call the seat selection interface to send the seat selection request to the server, and the server returns the static file corresponding to the target venue to the terminal device through the seat selection interface.
[0099] The seat selection interface can be a call interface provided by the server to return the static file for the terminal data.
[0100] Step S404: Receive the compressed static file returned through the seat selection interface.
[0101] The static file contains bound data.
[0102] In this embodiment, the static file returned by the seat selection interface contains bound data, and the bound data is used to indicate the correspondence between at least some seats in the target venue and the VR images.
[0103] In this way, it is not necessary for the audience to re - call the seat selection interface every time they change the selected seat. For a target venue, during the entire seat selection process of an audience, the terminal device only needs to call the seat selection interface once or a few times at most. This reduces the number of requests received by the seat selection interface, solving the problems of a large number of seat selection requests, excessive server load, and slow response speed that exist in the way of obtaining the VR photo corresponding to the seat by calling the seat selection interface in real time when the audience selects a certain seat.
[0104] In this embodiment, for a target venue, the bound data contained in the static file is used to indicate the correspondence between all seats in the target venue and the VR images. In this way, no matter how many times the selected seat is changed during seat selection by the audience, only one request for the static file needs to be sent to the server, greatly reducing the data transmission and bandwidth pressure on the server.
[0105] Step S406: Determine the VR image corresponding to the selected seat according to the bound data obtained by decompressing the static file, and display the corresponding VR image.
[0106] After obtaining the static file, use a preset decompression algorithm to decompress the static file to obtain the bound data. The preset decompression algorithm corresponds to the compression algorithm used when compressing the bound data.
[0107] According to the correspondence indicated by the obtained bound data, determine the VR image corresponding to the selected seat, and then obtain and display the VR image. In this way, the audience can conveniently view the VR image corresponding to the selected seat when selecting a seat, so as to intuitively feel the scene seen when sitting on the selected seat through the VR image, making seat selection more intuitive and intelligent.
[0108] In this embodiment, a compressed static file is obtained through the seat selection interface, so that the amount of data transmitted by the seat selection interface is small, which can reduce the data transmission pressure. The binding data included in the static file is used to indicate the correspondence between at least some seats in the target venue and the VR images. In this way, the VR images are not directly included in the static file, which can reduce the size of the static file, thereby reducing the data transmission pressure, and there is no need to send a seat selection request through the seat selection interface every time the selected seat is changed, reducing the load on the seat selection interface. The VR image corresponding to the selected seat can be determined and displayed through the binding data in the static file, so that the audience can intuitively feel the scene seen from the selected seat, improving the seat selection experience.
[0109] The data processing method of this embodiment can be executed by any suitable electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as mobile phones, PADs, etc.) and PC machines, etc.
[0110] Embodiment Five
[0111] Refer to Figure 5a , which shows a flowchart of the steps of a data processing method according to Embodiment Five of the present invention.
[0112] In this embodiment, it is still described by taking this method configured in the terminal device as an example. The data processing method of this embodiment includes the aforementioned steps S402 to S406. Among them, step 406 includes the following sub-steps:
[0113] Sub-step S4061: Determine the download link of the VR image corresponding to the selected seat from the obtained binding data after decompression.
[0114] The download link can be the URL of the VR image, etc. Since the binding data does not contain the original VR image but the download link of the VR image, the size of the binding data itself is relatively small, so the data transmission pressure on the server side can be reduced.
[0115] Sub-step S4062: Obtain and display the VR image corresponding to the selected seat according to the download link.
[0116] In a specific implementation, the download link is a link corresponding to the encrypted VR image. Sub-step S4062 can be implemented through the following process:
[0117] Process a: Download the encrypted VR image according to the download link, and perform decryption processing on the encrypted VR image using a preset decryption algorithm to obtain the decrypted VR image.
[0118] After obtaining the download link, the terminal device can download and obtain the VR image through the download link. In this embodiment, in order to enhance the security of data, the downloaded VR image is an encrypted VR image, which makes it difficult for a third party to tamper with the VR image and helps to improve the security of data.
[0119] Process b: Calculate the hash value of the decrypted VR image.
[0120] The terminal device uses a preset decryption algorithm to decrypt the encrypted VR image to obtain the decrypted VR image. In order to be able to verify whether the VR image has been tampered with, the hash value of the decrypted VR image can be calculated through an appropriate algorithm. For example, it is determined using algorithms such as MD5 and HASH. It should be noted that in order to ensure successful verification, the algorithm used to calculate the hash value of the decrypted VR image should be the same as the algorithm used by the server when calculating the hash value, so as to ensure that the security of the VR image can be correctly verified.
[0121] By comparing the hash value of the decrypted VR image with the hash value of the VR image saved in the bound data, it is determined whether the two hash values are the same. If they are the same, it means that the decrypted VR image has not been tampered with, and process c can be executed; otherwise, if they are different, it means that the decrypted VR image may have been tampered with, and a request can be made to the server again or an alarm message can be sent.
[0122] Process c: If the calculated hash value is the same as the hash value of the corresponding VR image in the bound data, then render and display the decrypted VR image.
[0123] When the two hash values are the same, the decrypted VR image can be rendered and displayed for the audience to view, so as to provide a better seat selection experience for the audience.
[0124] Optionally, in this embodiment, the method further includes step 408 and step S410.
[0125] Step S408: Obtain a seat selection change operation.
[0126] If the audience is not satisfied after selecting seat A, they can choose another seat. At this time, the terminal device receives the seat selection change operation of the audience. According to this seat selection change operation, the seat after the audience's change can be determined, that is, the newly selected seat.
[0127] Step 410: According to the decompressed bound data obtained, obtain the VR image corresponding to the changed selected seat, and display the obtained VR image.
[0128] Since the terminal device has obtained the binding data, when the audience changes the selected seat, there is no need to call the seat selection interface again. Instead, the binding data obtained by decompression can be directly used to determine the VR image corresponding to the new selected seat, and the VR image can be obtained through the download link of the corresponding VR image and the obtained VR image can be displayed. In this way, there is no need to send a request to the call interface every time the audience changes the selected seat, reducing the load on the call interface.
[0129] The implementation process of the data processing method is described below in conjunction with a specific usage scenario as follows:
[0130] As Figure 5b shown, in this usage scenario, to improve the seat selection experience of the audience, a VR seat selection function is added to the ticket purchasing application program in the terminal device. In the VR seat selection function, it is necessary to prevent the VR image from being stolen, enhance security, and ensure the performance of the terminal device and the server, so as to ensure a smooth seat selection experience for the audience.
[0131] To implement this function, the server generates a static file to send the static file to the terminal device later, so that the terminal device can obtain and display the VR image of the selected seat according to the static file, realizing VR seat selection.
[0132] Among them, the process of the server generating the static file is as follows:
[0133] Collect VR images in the target venue, and for each collected VR image, its corresponding relationship with the collection area can be determined. For example, collection area 1 corresponds to VR image a, collection area 2 corresponds to VR image b, etc.
[0134] After determining the corresponding relationship between the VR image and the collection area, according to the first position information of each seat and the second position information of the collection area, calculate the collection area to which each seat belongs, and then determine the corresponding relationship between each seat and the VR image.
[0135] To enhance security, calculate the HASH value of the VR image for subsequent comparison when the terminal device decrypts the VR image to determine whether the VR image has been tampered with.
[0136] The binding data includes the corresponding relationship between the seat and the VR image, for example, the corresponding relationship is indicated by the seat identifier, the download link of the corresponding VR image, and the hash value.
[0137] Perform compression processing on the binding data and obtain the static file, thus completing the generation of the static file. Different static files can be generated for different target venues.
[0138] When using the static file:
[0139] The audience calls the seat selection interface through the terminal device and sends a seat selection request. The seat selection request carries the target venue to which the selected seat belongs.
[0140] Based on the seat selection request, the server returns the static file corresponding to the target venue to the terminal device through the seat selection interface. Among them, the binding data of the static file is used to indicate the correspondence between all seats in the target venue and the VR images. In this way, for a viewer to select a seat in a target venue, only one request for the static file is needed, solving the problem that when a viewer selects a certain seat, it is necessary to call the VR image of the corresponding seat in real time. For popular target venues, the seat selection requests are large, resulting in heavy load pressure and a sharp decline in the ticket purchase experience of the audience.
[0141] Moreover, since the seat selection interface does not directly include the VR images corresponding to each seat in the data returned by the seat selection interface to the terminal device, the problem that the data of the seat selection interface is large and the VR image data is directly exposed in the request and is easily stolen and tampered with is avoided.
[0142] After the terminal device obtains the static file, it decompresses the static file through a preset decompression algorithm to obtain the binding data. And it obtains the download link of the VR image corresponding to the selected seat from the binding data.
[0143] Download the encrypted VR image to the local through the download link, decrypt the VR image through a preset decryption algorithm, and verify the decrypted VR image according to the hash value in the binding data and the hash value of the decrypted VR image. After determining that the VR image has not been tampered with, render and display the VR image.
[0144] Through the above process, the VR image can be safely and smoothly rendered and displayed in front of the audience. The audience can refer to the VR real scene image for seat selection. The seat selection interface displayed on the terminal device is as Figure 5c shown.
[0145] In this usage scenario, since all VR images are not directly exposed in the data transmitted by the seat selection interface, and the seat selection interface returns the corresponding static file, the data returned by the seat selection interface is controllable. The static file is compressed through a preset compression algorithm. It is necessary to know the compression algorithm to decompress the static file. After decompression, the VR image download link is obtained. The VR image downloaded according to the download link is also encrypted, so that it is necessary to know a specific decryption algorithm to obtain the real original VR image when stealing. In this way, it not only ensures that the number of seat selection interfaces will not increase sharply, the performance of the seat selection interface is guaranteed, but also the data security is strengthened.
[0146] In addition, when the audience selects seats, they only need to request the seat selection interface once to obtain the binding data. Based on the binding data, they can obtain the VR images corresponding to all seats without the need to request data interaction for each selected seat. In this way, the performance is guaranteed, and the seat selection operation can also be ensured to be smooth when the audience grabs tickets.
[0147] Through this embodiment, a compressed static file is obtained through the seat selection interface, so that the amount of data transmitted by the seat selection interface is small, which can reduce the data transmission pressure. The binding data included in the static file is used to indicate the correspondence between at least some seats and VR images in the target venue. In this way, the static file does not directly include VR images, which can reduce the size of the static file, thereby reducing the data transmission pressure, and there is no need to send a seat selection request through the seat selection interface every time the selected seat is changed, reducing the load on the seat selection interface. The VR image corresponding to the selected seat can be determined and displayed through the binding data in the static file, enabling the audience to intuitively feel the scene seen from the selected seat and enhancing the seat selection experience.
[0148] The data processing method of this embodiment can be executed by any suitable electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as mobile phones, PADs, etc.) and PC machines, etc.
[0149] Embodiment Six
[0150] Refer to Figure 6 , which shows a structural block diagram of a data processing device according to Embodiment Six of the present invention.
[0151] In this embodiment, the data processing device includes:
[0152] The first acquisition module 602 is used to acquire the collected VR images;
[0153] The first determination module 604 is used to determine binding data according to the information of the VR images and the information of the seats in the target venue, and the binding data is used to indicate the correspondence between the seats and the VR images;
[0154] The second acquisition module 606 is used to perform compression processing on the binding data and obtain a static file to determine the VR image corresponding to the selected seat according to the binding data in the static file when selecting seats.
[0155] Optionally, the first determination module 604 is used to determine the binding data according to the correspondence between the VR images and the acquisition area in the information of the VR images and the belonging relationship between the seats and the acquisition area in the information of the seats.
[0156] Optionally, when determining the binding data according to the correspondence between the VR image and the acquisition area in the information of the VR image and the belonging relationship between the seat and the acquisition area in the information of the seat, the first determination module 604 determines the belonging relationship between the seat and the acquisition area according to the first position information of the seat and the second position information of the acquisition area; determines the VR image corresponding to the acquisition area to which the seat belongs as the VR image corresponding to the seat according to the correspondence; and determines the binding data at least according to the identifier of the seat and the download link of the corresponding VR image.
[0157] Optionally, the second position relationship of the acquisition area includes the coordinates of at least some boundary points on the boundary of the acquisition area.
[0158] Optionally, the apparatus further includes: a fifth determination module 608, configured to determine at least one acquisition area for acquiring a VR image and an acquisition position in the acquisition area according to the first position information of a plurality of seats in the target venue and the position information of the stage reference point of the stage before the first acquisition module 602 acquires the acquired VR image.
[0159] Optionally, the fifth determination module 608 is configured to determine a first distance between the seat and the stage reference point and a second distance between two adjacent seats according to the first position information of a plurality of seats in the target venue and the position information of the stage reference point of the stage; determine at least one first threshold range and at least one second threshold range according to the plurality of first distances and the plurality of second distances, where the first threshold range is used to indicate the value range of the distance between the seats included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the distance between adjacent seats in the same acquisition area; cluster the plurality of seats according to the first threshold range, the second threshold range, and the first position information of the plurality of seats; and determine at least one of the acquisition areas and the acquisition position in the acquisition area according to the clustering result.
[0160] The data processing apparatus in this embodiment is used to implement the corresponding data processing methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated herein. In addition, the function implementation of each module in the data processing apparatus in this embodiment can refer to the description of the corresponding part in the foregoing method embodiments, which will not be elaborated herein either.
[0161] Embodiment Seven
[0162] Referring to Figure 7 , a structural block diagram of a data processing apparatus according to Embodiment Seven of the present invention is shown.
[0163] In this embodiment, the data processing device includes: a calling module 702, configured to call a seat selection interface to send a seat selection request; a receiving module 704, configured to receive a compressed static file returned through the seat selection interface, where the static file contains binding data for indicating the correspondence between at least some seats in a target venue and VR images; and a second determination module 706, configured to determine a VR image corresponding to a selected seat according to the binding data obtained by decompressing the static file, and display the corresponding VR image.
[0164] Optionally, the second determination module 706 includes: a fourth determination module 7061, configured to determine a download link of a VR image corresponding to a selected seat from the binding data obtained by decompression; and a third acquisition module 7062, configured to acquire and display a VR image corresponding to the selected seat according to the download link.
[0165] Optionally, the download link is a link corresponding to an encrypted VR image, the binding data includes a hash value corresponding to the VR image, and the third acquisition module 7062 is configured to download the encrypted VR image according to the download link, perform decryption processing on the encrypted VR image using a preset decryption algorithm to obtain a decrypted VR image; calculate a hash value of the decrypted VR image; and if the calculated hash value is consistent with the hash value of the corresponding VR image in the binding data, render and display the decrypted VR image.
[0166] Optionally, the device further includes: a fourth acquisition module 708, configured to acquire a seat selection change operation; and a fifth acquisition module 710, configured to obtain a VR image corresponding to the changed selected seat according to the binding data obtained by decompression, and display the obtained VR image.
[0167] The data processing device in this embodiment is used to implement the corresponding data processing methods in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here. In addition, the function implementation of each module in the data processing device in this embodiment can refer to the corresponding part of the description in the foregoing method embodiments, which will not be elaborated here either.
[0168] Embodiment Eight
[0169] Referring to Figure 8 , a schematic structural diagram of an electronic device according to Embodiment Eight of the present invention is shown. The specific implementation of the electronic device in the specific embodiment of the present invention is not limited.
[0170] As Figure 8As shown in the figure, the electronic device may include: a processor 802, a communications interface 804, a memory 806, and a communication bus 808.
[0171] Wherein:
[0172] The processor 802, the communications interface 804, and the memory 806 communicate with each other through the communication bus 808.
[0173] The communications interface 804 is used to communicate with other electronic devices or servers.
[0174] The processor 802 is used to execute the program 810, and specifically may execute the relevant steps in the above-mentioned data processing method embodiments.
[0175] Specifically, the program 810 may include program code, and the program code includes computer operation instructions.
[0176] The processor 82 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the intelligent device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0177] The memory 806 is used to store the program 810. The memory 806 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
[0178] The program 810 is specifically used to cause the processor 802 to perform the following operations: acquire the collected VR image; determine the binding data according to the information of the VR image and the information of the seats in the target venue, where the binding data is used to indicate the correspondence between the seats and the VR image; perform compression processing on the binding data and obtain a static file, so as to determine the VR image corresponding to the selected seat according to the binding data in the static file when selecting a seat.
[0179] In an alternative embodiment, the program 810 is further used to cause the processor 802 to determine the binding data according to the correspondence between the VR image and the acquisition area in the information of the VR image and the belonging relationship between the seat and the acquisition area in the information of the seat when determining the binding data according to the information of the VR image and the information of the seats in the target venue.
[0180] In an alternative embodiment, the program 810 is further configured to cause the processor 802 to, when determining the binding data according to the correspondence between the VR image and the acquisition area in the information of the VR image and the belonging relationship between the seat and the acquisition area in the information of the seat, determine the belonging relationship between the seat and the acquisition area according to the first position information of the seat and the second position information of the acquisition area; determine, according to the correspondence, the VR image corresponding to the acquisition area to which the seat belongs as the VR image corresponding to the seat; and determine the binding data at least according to the identifier of the seat and the download link of the corresponding VR image.
[0181] In an alternative embodiment, the second position relationship of the acquisition area includes the coordinates of at least some of the boundary points on the boundary of the acquisition area.
[0182] In an alternative embodiment, the program 810 is further configured to cause the processor 802 to, before acquiring the acquired VR image, determine at least one acquisition area for acquiring the VR image and the acquisition positions in the acquisition area according to the first position information of the plurality of seats in the target venue and the position information of the stage reference point of the stage.
[0183] In an alternative embodiment, when the program 810 is further configured to cause the processor 802 to determine at least one acquisition area for acquiring the VR image and the acquisition positions in the acquisition area according to the first position information of the plurality of seats in the target venue and the stage reference point information of the stage, the processor 802 determines the first distance between the seat and the stage reference point, and the second distance between two adjacent seats according to the first position information of the plurality of seats in the target venue and the position information of the stage reference point of the stage; determines at least one first threshold range and at least one second threshold range according to the plurality of first distances and the plurality of second distances, wherein the first threshold range is used to indicate the value range of the distance between the seat included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the distance between adjacent seats in the same acquisition area; clusters the plurality of seats according to the first threshold range, the second threshold range, and the first position information of the plurality of seats; and determines at least one of the acquisition areas and the acquisition positions in the acquisition area according to the clustering result.
[0184] Or,
[0185] The program 810 can specifically be used to cause the processor 802 to perform the following operations: call the seat selection interface to send a seat selection request; receive the compressed static file returned through the seat selection interface, where the static file contains binding data for indicating the correspondence between at least some seats in the target venue and VR images; determine the VR image corresponding to the selected seat according to the binding data obtained by decompressing the static file, and display the corresponding VR image.
[0186] In an alternative embodiment, the program 810 is further used to cause the processor 802, when determining the VR image corresponding to the selected seat according to the binding data obtained by decompressing the static file and displaying the corresponding VR image, to determine the download link of the VR image corresponding to the selected seat from the decompressed binding data; and obtain and display the VR image corresponding to the selected seat according to the download link.
[0187] In an alternative embodiment, the program 810 is further used to cause the processor 802, when the download link is a link corresponding to an encrypted VR image, the binding data includes a hash value corresponding to the VR image, and when obtaining and displaying the VR image corresponding to the selected seat according to the download link, to download the encrypted VR image according to the download link, perform decryption processing on the encrypted VR image using a preset decryption algorithm to obtain the decrypted VR image; calculate the hash value of the decrypted VR image; and if the calculated hash value is consistent with the hash value of the corresponding VR image in the binding data, render and display the decrypted VR image.
[0188] In an alternative embodiment, the program 810 is further used to cause the processor 802 to obtain a seat selection change operation; obtain the VR image corresponding to the changed selected seat according to the decompressed binding data, and display the obtained VR image.
[0189] For the specific implementation of each step in the program 810, reference can be made to the corresponding steps and descriptions in the corresponding units in the above data processing method embodiments, which will not be elaborated here. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding process descriptions in the foregoing method embodiments, which will not be elaborated here.
[0190] It should be noted that according to the needs of implementation, each component / step described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0191] The method according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or be implemented as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (such as RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the data processing method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the data processing method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the data processing method shown herein.
[0192] Those of ordinary skill in the art can realize that the units and method steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.
[0193] The above embodiments are only used to illustrate the embodiments of the present invention, rather than to limit the embodiments of the present invention. Those of ordinary skill in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention shall be defined by the claims.
Claims
1. A data processing method, comprising: obtaining the collected VR images; determining binding data according to the information of the VR images and the information of the seats in the target venue, where the binding data is used to indicate the corresponding relationship between the seats and the VR images; performing compression processing on the binding data and obtaining a static file to determine the VR image corresponding to the selected seat according to the binding data in the static file when selecting a seat; wherein, before obtaining the collected VR images, the method further comprises: determining a first distance between the seat and the stage reference point of the stage, and a second distance between two adjacent seats according to the first position information of multiple seats in the target venue and the position information of the stage reference point of the stage; determining at least one first threshold range and at least one second threshold range according to multiple first distances and multiple second distances, wherein the first threshold range is used to indicate the value range of the distance between the seats included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the distance between adjacent seats in the same acquisition area; clustering the multiple seats according to the first threshold range, the second threshold range and the first position information of the multiple seats; determining at least one acquisition area and the acquisition position in the acquisition area according to the clustering result.
2. The method according to claim 1, wherein, the determining the binding data according to the information of the VR images and the information of the seats in the target venue includes: determining the binding data according to the corresponding relationship between the VR images and the acquisition area in the information of the VR images and the belonging relationship between the seats and the acquisition area in the information of the seats.
3. The method according to claim 2, wherein, the determining the binding data according to the corresponding relationship between the VR images and the acquisition area in the information of the VR images and the belonging relationship between the seats and the acquisition area in the information of the seats includes: determining the belonging relationship between the seat and the acquisition area according to the first position information of the seat and the second position information of the acquisition area; determining the VR image corresponding to the acquisition area to which the seat belongs as the VR image corresponding to the seat according to the corresponding relationship; determining the binding data at least according to the identifier of the seat and the download link of the corresponding VR image.
4. The method according to claim 3, wherein, the second position relationship of the acquisition area includes the coordinates of at least some boundary points on the boundary of the acquisition area.
5. A data processing method, comprising: invoking a seat selection interface to send a seat selection request; receiving the compressed static file returned through the seat selection interface, where the static file contains binding data, and the binding data is used to indicate the corresponding relationship between at least some seats in the target venue and VR images; determining the VR image corresponding to the selected seat according to the binding data obtained by decompressing the static file, and displaying the corresponding VR image; Wherein, the VR image is a VR image collected at a determined acquisition position, and the acquisition position is determined by the following method: according to the first position information of multiple seats in the target venue and the position information of the stage reference point of the stage, determine the first distance between the seat and the stage reference point, and the second distance between two adjacent seats; according to the multiple first distances and the multiple second distances, determine at least one first threshold range and at least one second threshold range, wherein the first threshold range is used to indicate the value range of the distance between the seats included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the spacing between adjacent seats in the same acquisition area; according to the first threshold range, the second threshold range and the first position information of the multiple seats, cluster the multiple seats; determine at least one of the acquisition areas and the acquisition positions in the acquisition area according to the clustering result.
6. The method according to claim 5, wherein, determining a VR image corresponding to the selected seat according to the binding data obtained by decompressing the static file, and displaying the corresponding VR image, including: determining a download link of the VR image corresponding to the selected seat from the binding data obtained by decompression; acquiring and displaying the VR image corresponding to the selected seat according to the download link.
7. The method according to claim 6, wherein, the download link is a link corresponding to the encrypted VR image, and the binding data includes a hash value corresponding to the VR image. The acquiring and displaying the VR image corresponding to the selected seat according to the download link includes: downloading the encrypted VR image according to the download link, and performing decryption processing on the encrypted VR image using a preset decryption algorithm to obtain the decrypted VR image; calculating the hash value of the decrypted VR image; if the calculated hash value is consistent with the hash value of the corresponding VR image in the binding data, rendering and displaying the decrypted VR image.
8. The method according to claim 5, wherein, the method further includes: acquiring a seat selection change operation; obtaining a VR image corresponding to the changed selected seat according to the binding data obtained by decompression, and displaying the obtained VR image.
9. A data processing device, including: a first acquisition module, configured to acquire the collected VR image; a first determination module, configured to determine binding data according to the information of the VR image and the information of the seats in the target venue, where the binding data is used to indicate the correspondence between the seats and the VR images; a second acquisition module, configured to perform compression processing on the binding data and obtain a static file, so as to determine a VR image corresponding to the selected seat according to the binding data in the static file during seat selection; Before the first acquisition module acquires the collected VR images, the first acquisition module is further configured to: determine a first distance between the seat and the stage reference point, and a second distance between two adjacent seats according to the first position information of a plurality of seats in the target venue and the position information of the stage reference point of the stage; determine at least one first threshold range and at least one second threshold range according to the plurality of first distances and the plurality of second distances, wherein the first threshold range is used to indicate the value range of the distance between the seats included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the distance between adjacent seats in the same acquisition area; cluster the plurality of seats according to the first threshold range, the second threshold range, and the first position information of the plurality of seats; and determine at least one of the acquisition areas and the acquisition positions in the acquisition area according to the clustering result.
10. A data processing device comprising: a calling module, configured to call a seat selection interface to send a seat selection request; a receiving module, configured to receive a compressed static file returned through the seat selection interface, where the static file includes binding data for indicating the correspondence between at least some seats in the target venue and VR images; wherein the VR images are VR images acquired at the determined acquisition positions, and the acquisition positions are determined as follows: determine a first distance between the seat and the stage reference point, and a second distance between two adjacent seats according to the first position information of a plurality of seats in the target venue and the position information of the stage reference point of the stage; determine at least one first threshold range and at least one second threshold range according to the plurality of first distances and the plurality of second distances, wherein the first threshold range is used to indicate the value range of the distance between the seats included in the acquisition area and the stage reference point, and the second threshold range is used to indicate the distance between adjacent seats in the same acquisition area; cluster the plurality of seats according to the first threshold range, the second threshold range, and the first position information of the plurality of seats; and determine at least one of the acquisition areas and the acquisition positions in the acquisition area according to the clustering result; a second determination module, configured to determine a VR image corresponding to the selected seat according to the binding data obtained by decompressing the static file, and display the corresponding VR image.
11. An electronic device comprising: a processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the data processing method according to any one of claims 1-4 or any one of claims 5-8.
12. A computer storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the data processing method according to any one of claims 1-4 or any one of claims 5-8.
Citation Information
Patent Citations
Online seat picking method, system and device
CN106528154A
VR ticket buying seat preview system
TWM573024U