WO2019109828A1 - Ar service processing method, device, server, mobile terminal, and storage medium - Google Patents

Ar service processing method, device, server, mobile terminal, and storage medium Download PDF

Info

Publication number
WO2019109828A1
WO2019109828A1 PCT/CN2018/117486 CN2018117486W WO2019109828A1 WO 2019109828 A1 WO2019109828 A1 WO 2019109828A1 CN 2018117486 W CN2018117486 W CN 2018117486W WO 2019109828 A1 WO2019109828 A1 WO 2019109828A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
mobile terminal
data
location information
image data
Prior art date
Application number
PCT/CN2018/117486
Other languages
French (fr)
Chinese (zh)
Inventor
王晓振
Original Assignee
广州市动景计算机科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2019109828A1 publication Critical patent/WO2019109828A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/65Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition
    • A63F13/655Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition by importing photos, e.g. of the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/69Involving elements of the real world in the game world, e.g. measurement in live races, real video
    • A63F2300/695Imported photos, e.g. of the player

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to an AR service processing method, apparatus, server, mobile terminal, and storage medium.
  • AR Augmented Reality
  • real world information for example, Visual information, sound information, etc.
  • virtual world information for example, Visual information, sound information, etc.
  • AR technology With the development of AR technology, it is becoming a trend to apply AR technology to various application scenarios. In all applications, game applications account for a large proportion of them, so how to deal with AR technology related data, so that AR technology can be effectively applied to some game applications, for example, location-related In game applications, to enhance the user's gaming experience, it is becoming a research hotspot of AR technology applications.
  • an embodiment of the present invention provides an AR service processing method, apparatus, server, mobile terminal, and storage medium, so that AR technology can be effectively applied to location-related processing by processing data related to AR technology.
  • AR technology can be effectively applied to location-related processing by processing data related to AR technology.
  • game class application In the game class application.
  • an AR service processing method includes: receiving geographic location information sent by a mobile terminal, and if it is determined that an AR service location information that matches the geographical location information is locally stored, Sending an image acquisition instruction to the mobile terminal; receiving image data collected by the mobile terminal according to the image acquisition instruction; and if the returned image data matches image data corresponding to the AR service location information, And transmitting, to the mobile terminal, AR service data corresponding to the AR service location information.
  • another AR service processing method including: acquiring geographic location information of a mobile terminal, transmitting the geographical location information to a server; and receiving the server to confirm that the storage is An image acquisition instruction sent after the geographic location information matches the geographical location information of the AR service; collecting image data according to the image acquisition instruction, transmitting the image data to the server; and receiving the image data by the server The AR service data sent after the image data corresponding to the AR geographic location information is matched; and the AR service display is performed according to the AR service data.
  • an AR service processing apparatus includes: a first receiving module, configured to receive geographic location information sent by a mobile terminal, and if it is determined that the local storage is matched with the geographic location information, The AR service location information is sent to the mobile terminal, and the second receiving module is configured to receive the image data collected by the mobile terminal according to the image collection instruction; the first sending module is configured to: And if the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
  • another AR service processing apparatus including: a first acquiring module, configured to acquire geographic location information of a mobile terminal, and send the geographical location information to a server; a module, configured to receive an image collection instruction sent by the server after confirming that the geographic location information of the AR service that matches the geographical location information is stored; and a second sending module, configured to collect image data according to the image collection instruction, Sending the image data to the server; the fourth receiving module is configured to receive the AR service data that is sent by the server after confirming that the image data matches the image data corresponding to the AR geographic location information; And a module, configured to perform AR service presentation according to the AR service data.
  • a server including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete each other through the communication bus
  • the memory is configured to store at least one executable instruction that causes the processor to perform an operation corresponding to the AR service processing method of the first aspect.
  • a mobile terminal including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete each other through the communication bus
  • the memory is configured to store at least one executable instruction that causes the processor to perform an operation corresponding to the AR service processing method of the second aspect.
  • a computer readable storage medium carrying one or more computer instruction programs, the computer instruction program being executed by one or more processors, the one or A plurality of processors execute the AR service processing method as described in the first aspect.
  • a computer readable storage medium carrying one or more computer instruction programs, the computer instruction program being executed by one or more processors, the one or A plurality of processors execute the AR service processing method as described in the second aspect.
  • the geographical location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographical location information, such as an image of an office foreground, and the image can be described.
  • Implementation scenario of the AR service If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 1 is a flow chart showing the steps of an AR service processing method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flow chart showing the steps of an AR service processing method according to Embodiment 2 of the present invention.
  • FIG. 3 is a flow chart showing the steps of an AR service processing method according to Embodiment 3 of the present invention.
  • FIG. 4 is a flow chart showing the steps of an AR service processing method according to Embodiment 4 of the present invention.
  • FIG. 5 is a flowchart of steps of an AR service processing method according to Embodiment 5 of the present invention.
  • FIG. 6 is a structural block diagram of an AR service processing apparatus according to Embodiment 6 of the present invention.
  • FIG. 7 is a structural block diagram of an AR service processing apparatus according to Embodiment 7 of the present invention.
  • Embodiment 8 is a schematic structural diagram of a server according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to Embodiment 9 of the present invention.
  • FIG. 1 a flow chart of steps of an AR service processing method according to a first embodiment of the present invention is shown.
  • This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the server.
  • the AR service processing method in this embodiment includes the following steps:
  • Step S102 Receive geographic location information sent by the mobile terminal, and if it is determined that the AR service location information that matches the geographical location information is stored locally, send an image collection instruction to the mobile terminal.
  • the mobile terminal needs to report the geographical location information to the server first.
  • the server can determine whether the mobile terminal is currently in the use scenario position of the AR service.
  • the accuracy of the geographic location information can be controlled within 10 meters, and more preferably, within 3 meters.
  • the AR service may be any suitable service that can display the AR effect and/or interact with the AR virtual object.
  • the AR service location information that is locally stored by the server and matches the geographic location information may be the same information as the geographic location information, such as latitude and longitude coordinates, or may be specific location information generated according to the geographic location information, for example, the XX company front desk (this In this case, when the server receives the geographical location information of the mobile terminal, the server needs to convert the geographic location information into a corresponding specific location, and the like.
  • the image acquisition instruction is sent to the mobile terminal to instruct the mobile terminal to collect the image of the current location for subsequent scene comparison.
  • Step S104 Receive image data collected by the mobile terminal according to the image acquisition instruction.
  • the mobile terminal controls the camera in the mobile terminal to perform image collection at the current location, and uploads the collected image data to the server.
  • the server receives the image data uploaded by the mobile terminal, and performs subsequent comparison of the usage scenarios.
  • Step S106 If the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
  • the server stores, in addition to the AR service location information, image data corresponding to the AR service location information, where the image data is image data of the usage scenario of the AR service, and may include one or more sheets (two and two) The image data of the image of the scene is used.
  • the server also stores logic code for processing the AR service to implement functions such as receiving, processing, and transmitting information and data.
  • the AR service data includes but is not limited to: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 2 a flow chart of steps of an AR service processing method according to Embodiment 2 of the present invention is shown.
  • This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the server.
  • Step S202 The server receives the geographical location information sent by the mobile terminal, and if it determines that the AR service location information that matches the geographical location information is stored locally, sends an image collection instruction to the mobile terminal.
  • the server locally stores data required for performing the AR service, including but not limited to: AR service location information, image data corresponding to the AR service location information, AR service data, user information, AR service progress information, and the like.
  • the mobile terminal user uses the AR service for the first time, the foregoing data may not exist.
  • the user may be prompted to set the AR service, and the location and the usage scene image of the AR service are set by the mobile terminal. Save the set information and data upload server. Among them, it is recommended to use the scene image to collect multiple images from different angles, or to use a video stream to provide a more flexible acquisition angle for the user in subsequent image comparison.
  • the server compares the geographical location information with the locally stored AR service location information to determine whether the current location of the mobile terminal is an AR service location, and if it is an AR service. And sending an image collection instruction to the mobile terminal, instructing the mobile terminal to perform image collection of the usage scenario of the AR service; if not for the AR service location, returning the prompt information to the mobile terminal to prompt the user of the mobile terminal to make an error or prompt
  • the AR service is set up.
  • the AR service location is not, that is, the server determines that the AR service location information that matches the geographical location information is not locally stored, the AR service location information is searched and stored.
  • the geographical location information is closest to the AR service location information; the prompt information including the closest AR service location information is sent to the mobile terminal. This is because although there is no AR service at the current location where the mobile terminal is located, when there is a possibility that there is an AR service within a certain distance range, the mobile terminal can choose to participate. Therefore, the corresponding location information of the AR service can be sent to the mobile terminal, and the user of the mobile terminal is guided to participate in the AR service at the location.
  • the navigation application may be invoked on the mobile terminal side to navigate the user of the mobile terminal according to the current geographic location information of the mobile terminal and the closest AR service location information.
  • Step S204 The server receives the image data collected by the mobile terminal according to the image acquisition instruction.
  • the mobile terminal collects an image of the location according to the image acquisition instruction and uploads corresponding image data, and the server receives the image data uploaded by the mobile terminal.
  • Step S206 The server determines whether the image data returned by the mobile terminal matches the locally stored image data corresponding to the AR service location information; if yes, step S208 is performed; if not, step S214 is performed.
  • the image data of the usage scenario of the AR service is stored locally, that is, the image data corresponding to the AR service location information, and the comparison with the image data returned by the mobile terminal can determine whether the mobile terminal is currently in the usage scenario of the AR service. .
  • the server performs image description processing on the image data returned by the mobile terminal to obtain a text description of the image data.
  • the image data stored locally by the server corresponding to the AR service location information is also a textual description of the stored image data, that is, an image description.
  • the server compares the text description returned by the mobile terminal with the stored image description.
  • the following steps may be used to determine whether the image data returned by the mobile terminal matches the image data corresponding to the AR service location information:
  • the image description process includes: after segmenting the image, the image is divided into several regions, including objects and backgrounds of different features, which may include certain shapes, such as rectangles, circles, curves, and regions of any shape; after the segmentation is completed, Data, symbols, formal languages are used to represent these regions with different characteristics, and a textual description of the image is generated.
  • the description of the image area can be divided into a description of the area itself and a relationship and structure between the areas, including descriptions of various forms such as lines, curves, regions, and geometric features.
  • a person skilled in the art may perform image description processing on the image represented by the image data returned by the mobile terminal by using any suitable image description model and algorithm, which is not limited in the embodiment of the present invention.
  • Step S208 If the server determines that the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
  • the AR service data includes: AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the AR virtual object may be any suitable two-dimensional image and/or special effect, three-dimensional image and/or special effect that can be displayed in the mobile terminal, or may be a video or the like, such as a three-dimensional virtual plant or a virtual animal;
  • the AR virtual item may be Any suitable props capable of operating on the AR virtual object, such as a virtual kettle for watering virtual plants, a virtual shovel for shoveling virtual plants, and a virtual de-worm for de-worming virtual plants Insecticide, etc.;
  • the operational data for the AR virtual object is related to the operation and current state of the AR virtual object.
  • the initial corresponding to the watering is performed every day.
  • the operational data is 5, when a user waters the virtual plant 1 time, the operational data is updated to 4, and so on.
  • the AR service characteristic data may further set other suitable feature data according to actual needs by the person skilled in the art; and, in addition to the foregoing AR service feature data, the AR service data may further include, but not limited to, AR service progress data, AR business user data, and so on.
  • the mobile terminal After receiving the corresponding AR service data, the mobile terminal performs rendering and display of the AR virtual object based on the image acquired by the image acquisition device in real time.
  • the AR virtual props can also be synchronously rendered and displayed, and the corresponding information prompts can be performed according to the operable data for the AR virtual object.
  • Step S210 The server receives operation information that the user sends the AR virtual object through the AR virtual item in the AR service data, and updates the operable data of the AR virtual object according to the operation information.
  • the user of the mobile terminal can operate the AR virtual object through the AR virtual item, and feedback the operation information to the server in real time.
  • the server will update the operational data of the AR virtual object according to these operations.
  • the AR virtual object and/or the AR virtual tool may also be updated according to the updated operational data, and the updated AR virtual object and/or the AR virtual tool is sent to the mobile terminal for updating by the mobile terminal.
  • a social game application multiple users participate in the same application through their respective mobile terminals, and these users can operate the same AR virtual object simultaneously or non-simultaneously through their respective mobile terminals, such as simultaneous use.
  • the virtual kettle waters the same virtual plant; or, while one user waters the virtual plant using a virtual kettle through its mobile terminal, another user uses the virtual shovel to move the same virtual plant through its mobile terminal.
  • the operation information is reported to the server, and the server updates the state of the virtual plant in real time according to the operation information and feeds back to the plurality of mobile terminals.
  • the server receives operation information of at least one operation performed by the at least one of the plurality of mobile terminals on the AR virtual object by the AR virtual item, according to the at least one operation.
  • the operation information updates the operational data of the corresponding AR virtual object.
  • the AR virtual object and/or the AR virtual item can also be updated simultaneously.
  • the plurality of mobile terminals may be a plurality of mobile terminals that simultaneously participate in the AR service.
  • Step S212 The server synchronizes the updated operable data to the mobile terminal, and returns to step S210 to continue the execution.
  • the server may update the operable data for the AR virtual object according to the operation information uploaded by the mobile terminal, and then synchronize the updated operational data to the mobile terminal.
  • the AR virtual object and/or the AR virtual prop can be updated.
  • the updated AR virtual object and/or the synchronously updated AR virtual object and/or The updated AR virtual item to the mobile terminal may be updated.
  • the updated AR virtual object and/or the updated AR virtual item are synchronized to the plurality of mobile terminals while the updated operational data is synchronized to the plurality of mobile terminals.
  • the plurality of mobile terminals display operation information of an operation performed on the AR virtual object, and user information of the mobile terminal corresponding to the operation. For example, user XX waters the XX plant once, user YY fertilizes the XX plant once, and so on.
  • the mobile terminal includes a plurality of mobile terminals that can simultaneously participate in the AR service.
  • Step S214 If the server determines that the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, the image data corresponding to the AR service location information is sent to the mobile terminal, to prompt the mobile terminal to send the image according to the image. Data is used for image acquisition.
  • the angle of the image captured by the user of the mobile terminal may be incorrect. Therefore, the image data stored in the server may be sent to the mobile terminal for the mobile terminal. After the user's reference, shoot from the correct angle. By transmitting image data for user reference, the accuracy of the image acquisition by the user using the mobile terminal can be improved, and the user experience is improved.
  • the server determines that the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, other appropriate processing, such as a prompt error, may be performed.
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 3 a flow chart of steps of an AR service processing method according to Embodiment 3 of the present invention is shown.
  • This embodiment describes an AR service processing method provided by an embodiment of the present invention from the perspective of a mobile terminal.
  • Step S302 Acquire geographical location information of the mobile terminal, and send the geographical location information to the server.
  • the mobile terminal When the mobile terminal wants to trigger the AR service, it needs to first send its own geographical location information to the server, so that the server can determine whether the mobile terminal is currently in the use scenario of the AR service.
  • Step S304 Receive an image collection instruction sent by the server after confirming the geographical location information.
  • determining, in step S304, the geographic location information may be whether the AR service geographic location information that matches the geographic location information is stored in the confirmation server.
  • the server stores information related to the AR service, including but not limited to: AR service location information, image data corresponding to the AR service location information, AR service data, user information, AR service progress information, and the like.
  • the server After receiving the geographical location information sent by the mobile terminal, and determining that the geographical location information matches the AR service location information stored in the server, the server sends an image collection instruction to the mobile terminal.
  • the location and image of the usage scenario of the AR service can be set by the mobile terminal, and the information or data of the set location and image is sent to the server for storage.
  • the server determines whether it is a setting type message or an application type message according to a message sent by the mobile terminal, thereby determining a subsequent operation. For example, if the message of the setting type is used, the corresponding information or data uploaded by the mobile terminal is saved; if the message of the application type is used, the solution described in this embodiment is executed.
  • Step S306 Collect image data according to the image acquisition instruction, and send the collected image data to the server.
  • the mobile terminal controls the image capturing device in the mobile terminal, such as the camera, to capture the scene at the current location, and uploads the captured image to the server for the server to identify the usage scene of the AR service.
  • the image capturing device such as the camera
  • Step S308 Receive AR service data sent by the server after confirming the image data.
  • the confirmation image data may be to confirm whether the image data matches the image data corresponding to the AR geographic location information.
  • both the geographical location information and the image data are confirmed by the server, it indicates that the current location and scene of the mobile terminal are matched with the corresponding AR service, and then the AR service data is sent to the mobile terminal, so that the mobile terminal can be based on the local image acquisition device in real time.
  • the captured images are used to render, display, and interact with AR business data.
  • the AR service data received by the mobile terminal from the server includes, but is not limited to, AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and an operable for the AR virtual object. data.
  • the AR service characteristic data may further set other suitable feature data according to actual needs by the person skilled in the art; and, in addition to the foregoing AR service feature data, the AR service data may further include, but not limited to, AR service progress data, AR business user data, and so on.
  • Step S310 Perform AR service display according to the AR service data.
  • performing AR service display according to the AR service data specifically includes:
  • the AR service data is rendered and rendered on the real scene image currently collected by the mobile terminal to implement the AR service display.
  • the mobile terminal After receiving the AR service data, the mobile terminal will render and draw corresponding AR service data, such as AR virtual objects and AR virtual items, based on the collected real-time images, and display them.
  • AR service data such as AR virtual objects and AR virtual items
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 4 a flow chart of steps of an AR service processing method according to Embodiment 4 of the present invention is shown.
  • This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the mobile terminal.
  • Step S402 The mobile terminal receives a trigger instruction of the AR service.
  • the triggering instruction may be a triggering instruction triggered by an AR application when the mobile terminal is started in the mobile terminal, or may be a triggering instruction generated when the AR service option in the conventional application is triggered, or may be an instruction generated by other appropriate manners to trigger the generated instruction.
  • the embodiment of the present invention does not limit the triggering manner, the generating manner and the specific form of the triggering instruction.
  • Step S404 The mobile terminal acquires the geographic location information of the mobile terminal according to the triggering instruction, and sends the geographical location information to the server.
  • the accuracy of setting the geographic location information of the mobile terminal is within 10 meters, and preferably within 3 meters.
  • Step S406 The mobile terminal receives an image collection instruction sent by the server after confirming the geographical location information.
  • determining, in step S406, the geographic location information may be whether the AR service geographic location information matching the geographic location information is stored in the confirmation server.
  • the server may further search for the AR service location information that is closest to the geographical location information from the stored AR service location information; and send the most The prompt information of the proximity AR service location information is used to guide the user of the mobile terminal to participate in the AR service at the location.
  • the mobile terminal can invoke the navigation application to navigate the user of the mobile terminal according to the current geographic location information of the mobile terminal and the closest AR service location information.
  • the server may also prompt an error message or prompt the user to set information about the AR service, and the like.
  • Step S408 The mobile terminal collects image data according to the image acquisition instruction, and sends the collected image data to the server.
  • Step S410 The mobile terminal receives the AR service data that is sent by the server after confirming the image data.
  • the confirmation image data may be to confirm whether the image data matches the image data corresponding to the AR geographic location information.
  • the AR service data includes: AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • Step S412 The mobile terminal performs AR service presentation according to the AR service data.
  • the mobile terminal performs the AR service display according to the AR service data, and specifically includes:
  • the AR service data is rendered and rendered on the real scene image currently collected by the mobile terminal to implement the AR service display.
  • the AR virtual object and the AR virtual item are rendered and drawn on the image captured by the mobile terminal in real time, and the like.
  • Step S414 The mobile terminal receives the update data sent by the server after updating the AR service data, updates the local AR service data according to the update data, and performs AR service display.
  • the AR virtual object is operated by using the AR virtual prop according to the operable data, and the operation information of the operation is sent to the server; and further, the receiving server is configured according to the operation information.
  • the updated data stored in the server is updated, and the AR service is displayed according to the updated data.
  • the server may also update the AR virtual object and/or the AR virtual item according to the updated operational data.
  • the mobile terminal may receive the updated AR virtual object and/or the AR virtual prop in addition to the updated operable data, and perform AR service display according to the updated data.
  • the AR service for multi-user participation needs to send corresponding update data to multiple mobile terminals to update the AR service data and update the AR service presentation.
  • the current mobile terminal may receive the update data sent by the server, and the update data may include only the updated operational data, or may include the updated AR virtual object and the updated operational data.
  • the update data is generated by the server according to the operation information of the operation of the AR virtual object by using the AR virtual item by the plurality of mobile terminals including the current mobile terminal; and performing the AR service according to the updated data. Show.
  • the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data may be at least by the server according to at least one of the plurality of mobile terminals participating in the AR service including the mobile terminal.
  • each mobile terminal may display operation information of operations performed by a plurality of mobile terminals participating in the AR service on the AR virtual object, and user information of the mobile terminal corresponding to the operation. For example, user A fertilizes the XX plant once, user B waters the XX plant once, user C waters the XX plant once, and so on.
  • operation information of an operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation may be displayed on each mobile terminal.
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 5 a flow chart of steps of an AR service processing method according to Embodiment 5 of the present invention is shown.
  • This embodiment describes an AR service processing method provided by an embodiment of the present invention by taking an AR game of a virtual plant as an example from the perspective of interaction between the mobile terminal and the server.
  • Step S502 The mobile terminal A sets the use location and usage scenario of the AR game for breeding the virtual plant, and uploads the corresponding geographical location information and the scene image data to the server.
  • the mobile terminal A starts or enters the AR game through the corresponding account.
  • the server does not store any data related to the AR game, and the mobile terminal needs to be uploaded and uploaded to the server.
  • the mobile terminal A After the mobile terminal A starts up, it sends its GPS data to the server, and then starts the camera according to the image acquisition instruction sent by the server, and sends the camera video stream to the server.
  • Step S504 The server receives and saves the geographical location information and image data uploaded by the mobile terminal A, generates initialization data of the AR game, and sends the initialization data to the mobile terminal A.
  • the server first checks whether the GPS data is stored. In the case of the first use, the GPS data does not exist in the server, saves the GPS data, and sends the image collection to the mobile terminal A.
  • the instruction instructs the mobile terminal A to upload image data; after waiting for the mobile terminal A to upload the video stream, the data of the video stream is associated with the GPS data; after the server obtains sufficient image data from the video stream, the image data and the GPS data are correspondingly
  • the initialization data of the AR game for breeding the virtual plant is generated and generated, and the initialization data is transmitted to the mobile terminal A.
  • the saved image data may be an original image, or feature information of the image, or a textual description of the image.
  • the initialization data of the AR game includes at least an AR virtual object and an AR virtual item.
  • the initialization data of the AR game for breeding the virtual plant in this embodiment may include: an initial 3D model of the plant image, and an interactive setting such as a watering kettle. .
  • the server may further search for the location closest to the current location of the mobile terminal A according to the stored GPS data and the GPS data of the mobile terminal A, and the GPS data according to the location.
  • a prompt message is sent to the mobile terminal A to prompt the mobile terminal A to the location of the nearest AR game to guide the user to participate in the AR game.
  • the AR game data corresponding to each GPS data is also stored in the server, wherein the AR game data includes the user id, the AR game progress, the AR game feature data, and the like.
  • the AR game feature data may be AR game virtual objects, virtual items, AR game operational data, for example, how many pests are on the virtual plant, how much nutrients the plant needs, how much water the plant needs, and the like.
  • Step S506 The mobile terminal A receives the initialization data of the AR game, and displays the AR game interface according to the initialization data.
  • the AR game for breeding the virtual plant in the mobile terminal A draws the initialization data onto the image based on the image currently captured by the camera to display the AR game interface for the user.
  • a plurality of mobile terminals including the mobile terminal A can directly enter the AR game for breeding the virtual plant through the GPS data and the image data of the use scene.
  • Step S508 The mobile terminal B triggers the AR game, acquires the geographical location information of the mobile terminal B, and sends the information to the server.
  • the mobile terminal B transmits GPS data to the server.
  • the mobile terminal B is taken as an example to describe the process of performing AR games by other mobile terminals except the mobile terminal A that performs the initialization described above in the case of multiple mobile terminals, and those skilled in the art should understand that In actual use, any mobile terminal participating in the AR game including the mobile terminals A and B can perform the AR game operation of the present embodiment with reference to the operation of the mobile terminal B.
  • Step S510 The server receives the geographical location information of the mobile terminal B, and matches the geographical location information stored in the server. If the matching is successful, step S512 is performed; if the matching fails, the prompt information is sent to the mobile terminal B, indicating an error.
  • Step S512 The server sends an image acquisition instruction to the mobile terminal B.
  • the server After receiving the GPS data of the mobile terminal B, the server checks whether the GPS data exists in the server, and if so, whether the GPS data has corresponding image data. If there is image data corresponding to the GPS data, the server sends the data to the mobile terminal B.
  • the image acquisition instruction instructs the mobile terminal B to acquire an image, and waits for the mobile terminal B to transmit the acquired image, such as an image in the collected video stream.
  • Step S514 The mobile terminal B collects an image of the location according to the image acquisition instruction, and sends the image to the server.
  • the mobile terminal B After receiving the image acquisition instruction, the mobile terminal B starts the camera and sends the camera video stream to the server.
  • Step S516 The server receives the image data of the image sent by the mobile terminal B, and matches the image data corresponding to the geographical location information stored in the server. If the matching is successful, step S518 is performed; if the matching fails, the mobile terminal B is performed. Sending a prompt message prompting the user of the mobile terminal B whether there is an AR game usage scenario.
  • the server After waiting for the mobile terminal B to return the video stream, the server compares the image data in the video stream with the stored image data.
  • the operation of the subsequent step S518 is performed; if the comparison fails, the scene prompt is sent to the mobile terminal B.
  • the company front desk is the game entrance
  • the user of the mobile terminal B does not recognize the server after the company front desk is photographed, but the GPS data of the mobile terminal B has been matched, then the server will prompt the user of the mobile terminal B to take a closer shot, or the server
  • the image data of the company front desk stored in the middle is extracted from the user of the mobile terminal B by a few frames, and the user of the mobile terminal B is prompted to photograph the company front desk according to the angle in the image data.
  • Step S518 The server sends the AR game data to the mobile terminal B.
  • the AR game data transmitted to the mobile terminal B is the AR game data corresponding to the geographical location information.
  • the game data stored in the server is transmitted back to the mobile terminal B.
  • Step S520 The mobile terminal B presents the AR game interface according to the AR game data.
  • the mobile terminal B After waiting for the server to pass back the game data, the mobile terminal B presents the game interface to the user according to the game data.
  • the AR game interface is an interface combining an AR virtual object and a real scene, wherein the AR virtual object is from the AR game data sent by the server, and the real scene is from the camera framing of the mobile terminal B.
  • Step S522 The mobile terminal B receives the AR game operation performed by the user through the AR game interface, and transmits the operation information to the server.
  • Step S524 The server updates the AR game data according to the information of the operation, and transmits to the mobile terminals A and B.
  • Step S526 The mobile terminals A and B receive the updated AR game data and update the game interface.
  • the AR virtual object responds according to the operation of the user of the mobile terminal B, and the mobile terminal B receives the operation of the user. If the operation is an effective operation of the AR game, the information corresponding to the operation is uploaded to the server, and the server receives the corresponding information. Thereafter, the AR game data is updated and transmitted to the mobile terminal A while being transmitted back to the mobile terminal B. After receiving the updated data, the mobile terminals A and B update the respective AR game data based on the updated data.
  • the user clicks on the kettle icon to water the virtual plant; the AR game receives the information that the kettle icon is clicked, and sends an event corresponding to the click of the kettle icon to the server, for example, “ The server receives the "water” event. If the virtual plant lacks water for the AR game at this time, the virtual plant water shortage is 4 after clicking the kettle image; the server sends the water shortage to the mobile terminal A and B.
  • Corresponding virtual plant 3d model; AR game receives 3d model change message, acquires new 3d model data, and draws in the game interface of mobile terminal A and B respectively.
  • the server will send the updated AR game data to a plurality of mobile terminals that are simultaneously accessed.
  • an AR game for an office plant is constructed.
  • a user uploads the location data of the AR game using the mobile terminal, and starts a camera to scan a specific location corresponding to the location data, such as a company front desk, to initialize the entire AR game.
  • other users use their respective mobile terminals to upload location data and launch the camera to scan the location again, such as the company front desk, to enter the AR game.
  • the AR game has the characteristics of multi-person collaboration and sociality, which can effectively meet the social needs of users and enhance the user experience.
  • the AR service processing solution provided by the embodiment of the present invention is applicable not only to the game application scenario, but also to other AR service scenarios related to the geographic location information.
  • FIG. 6 a block diagram of a structure of an AR service processing apparatus according to Embodiment 6 of the present invention is shown.
  • the AR service processing apparatus of this embodiment may be configured in a server, where the AR service processing apparatus includes: a first receiving module 602, configured to receive geographical location information sent by the mobile terminal, and if it is determined that the local geographical location information is stored The matched AR service location information is sent to the mobile terminal, and the second receiving module 604 is configured to receive the image data collected by the mobile terminal according to the image collection instruction.
  • the first sending module 606 is configured to return When the image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is transmitted to the mobile terminal.
  • the apparatus provided by the embodiment of the present invention further includes:
  • a judging module configured to perform image description processing on the image data returned by the mobile terminal, and obtain a text description corresponding to the image data; if the text description matches an image description corresponding to the AR service location information, determine the returned image The data matches the image data corresponding to the AR service location information.
  • the AR service data includes: AR service feature data
  • the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the AR service processing apparatus of this embodiment further includes: a first update module 608, configured to: after the first sending module 606 sends the AR service data to the mobile terminal, receive the user sent by the mobile terminal by using the AR virtual item to the AR The operation information of the virtual object is operated, and the operable data of the AR virtual object is updated according to the operation information; the synchronization module 610 is configured to synchronize the updated operational data to the mobile terminal.
  • a first update module 608 configured to: after the first sending module 606 sends the AR service data to the mobile terminal, receive the user sent by the mobile terminal by using the AR virtual item to the AR
  • the operation information of the virtual object is operated, and the operable data of the AR virtual object is updated according to the operation information
  • the synchronization module 610 is configured to synchronize the updated operational data to the mobile terminal.
  • the first update module 608 is further configured to update the AR virtual object and/or the AR virtual item according to the updated operational data;
  • the synchronization module 610 is further configured to synchronize the updated operational data to the mobile terminal, Synchronize the updated AR virtual object and/or the updated AR virtual item to the mobile terminal.
  • the mobile terminal includes a plurality of;
  • the first update module 608 is configured to receive, by using at least one of the plurality of mobile terminals, operation information of the at least one operation performed by the user on the AR virtual object by using the AR virtual item, according to The operation information of the at least one operation updates the operable data of the corresponding AR virtual object;
  • the synchronization module 610 is configured to synchronize the updated AR virtual object and/or while synchronizing the updated operational data to the plurality of mobile terminals. Or updated AR virtual items to multiple mobile terminals.
  • the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time.
  • the first sending module 606 is further configured to: if the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, send the image data corresponding to the AR service location information to the mobile terminal to prompt the mobile The terminal performs image acquisition based on the transmitted image data.
  • the first sending module 606 is further configured to: if it is determined that the AR service location information that matches the geographic location information is not locally stored, look up the stored AR service location information and the closest to the geographic location information. AR service location information; sending prompt information including the closest AR service location information to the mobile terminal.
  • the AR service processing apparatus in this embodiment is used to implement the corresponding server-side AR service processing method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 7 a block diagram of a structure of an AR service processing apparatus according to Embodiment 7 of the present invention is shown.
  • the AR service processing apparatus of this embodiment may be disposed in any suitable mobile terminal, and the AR service processing apparatus includes: a first obtaining module 702, configured to acquire geographic location information of the mobile terminal, and send the geographical location information to the server.
  • the third receiving module 704 is configured to receive an image collection instruction sent by the server after confirming the geographical location information;
  • the second sending module 706 is configured to collect image data according to the image collection instruction, and send the image data to the server;
  • the fourth receiving module 708 is configured to receive AR service data that is sent by the server after confirming the image data, and the display module 710 is configured to perform AR service display according to the AR service data.
  • the confirming the geographic location may be: determining whether the AR service geographic location information that matches the geographical location information is stored in the server; the determining the image data may be determining whether the image data corresponds to the AR geographic location information. The image data matches.
  • the display module 710 is configured to render and render the AR service data on the real application scene image currently collected by the mobile terminal to implement the AR service display.
  • the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the AR service processing apparatus of this embodiment further includes: a third sending module 712, configured to use the AR virtual prop to the AR according to the operable data after the displaying module 710 performs the AR service display according to the AR service data.
  • the virtual object operates and sends operational information of the operation to the server.
  • the AR data processing apparatus of the embodiment further includes: a fifth receiving module 714, configured to: after the third sending module 712 sends the operation information of the operation to the server, receive the update data sent by the server, where
  • the update data includes, in addition to the updated operational data, an updated AR virtual object and/or an updated AR virtual item, the update data being performed by the server according to multiple movements including the current mobile terminal.
  • the operation information generated by the terminal to operate the AR virtual object by using the AR virtual item is generated.
  • the second update module 716 is configured to perform the AR service display according to the update data.
  • the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data is used by the server according to the multiple mobile terminals that refer to the AR service, including the current mobile terminal.
  • the operation information generated by the at least one mobile terminal to operate the AR virtual object using the AR virtual item is generated.
  • the display module 710 is further configured to display operation information of operations performed by the multiple mobile terminals on the AR virtual object on the mobile terminal, and user information of the mobile terminal corresponding to the operation.
  • the display module 710 may display, on the mobile terminal, operation information of the operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation.
  • the AR service processing apparatus of this embodiment is used to implement the AR service processing method of the corresponding mobile terminal in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
  • FIG. 8 a schematic structural diagram of a server according to Embodiment 8 of the present invention is shown.
  • the specific embodiment of the present invention does not limit the specific implementation of the server.
  • the server may include a processor 802, a Communications Interface 804, a memory 806, and a communication bus 808.
  • Processor 802, communication interface 804, and memory 806 complete communication with one another via communication bus 808.
  • the communication interface 804 is configured to communicate with other servers or mobile terminals.
  • the processor 802 is configured to execute the program 810. Specifically, the related steps in the foregoing embodiment of the AR service processing method on the server side may be performed.
  • program 810 can include program code, the program code including computer operating instructions.
  • the processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • the mobile terminal includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 806 is configured to store the program 810.
  • Memory 806 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 810 may be specifically configured to: the processor 802: receive the geographic location information sent by the mobile terminal, and if it is determined that the AR service location information that matches the geographic location information is stored locally, send an image collection instruction to the mobile terminal. Receiving image data collected according to the image acquisition instruction returned by the mobile terminal; if the returned image data matches the image data corresponding to the AR service location information, transmitting the AR corresponding to the AR service location information to the mobile terminal Business data.
  • the program 810 is further configured to cause the processor 802 to determine whether the returned image data matches the image data corresponding to the AR service location information by:
  • the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the program 810 is further configured to: the processor 802 is configured to receive, by the mobile terminal, operation information that is operated by the user by using the AR virtual item to operate the AR virtual object, and update the AR virtual object according to the operation information. Operation data; synchronously updated operational data to the mobile terminal.
  • the program 810 is further configured to cause the processor 802 to update the AR virtual object and/or the AR virtual item according to the updated operational data; and the operational data after the synchronization update to the mobile terminal At the same time, the updated AR virtual object and/or the updated AR virtual item are synchronized to the mobile terminal.
  • the mobile terminal includes multiple; the program 810 is further configured to enable the processor 802 to receive an operation of the AR virtual object by the AR virtual prop by the mobile terminal, and update the AR virtual object according to the operation.
  • the data is operable, receiving operation information of at least one operation performed by the at least one of the plurality of mobile terminals by the user on the AR virtual object by the AR virtual item, and updating the corresponding AR virtual according to the operation information of the at least one operation
  • the operable data of the object is further configured to cause the processor 802 to synchronize the updated AR virtual object and/or the updated AR virtual prop to the synchronously updated operational data to the plurality of mobile terminals The plurality of mobile terminals.
  • the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time.
  • the program 810 is further configured to: when the processor 802 does not match the image data corresponding to the returned AR and the AR service location information, send the image data corresponding to the AR service location information to The mobile terminal is configured to prompt the mobile terminal to perform image collection according to the transmitted image data.
  • the program 810 is further configured to enable the processor 802 to search from the stored AR service location information if it is determined that the AR service location information that matches the geographic location information is not stored locally.
  • the AR service location information closest to the geographic location information; the prompt information including the closest AR service location information is sent to the mobile terminal.
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • FIG. 9 a schematic structural diagram of a mobile terminal according to Embodiment 9 of the present invention is shown.
  • the specific embodiment of the present invention does not limit the specific implementation of the mobile terminal.
  • the mobile terminal can include a processor 902, a communications interface 904, a memory 906, and a communications bus 908.
  • Processor 902, communication interface 904, and memory 906 complete communication with one another via communication bus 908.
  • Communication interface 904 is for communicating with other mobile terminals or servers.
  • the processor 902 is configured to execute the program 910, and specifically, the related steps in the foregoing embodiment of the AR service processing method on the mobile terminal side.
  • program 910 can include program code, the program code including computer operating instructions.
  • the processor 902 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • the mobile terminal includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 906 is configured to store the program 910.
  • Memory 906 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 910 may be specifically configured to enable the processor 902 to: obtain geographic location information of the mobile terminal, send the geographic location information to the server, and receive an image collection instruction sent by the server after confirming the geographical location information;
  • the acquisition instruction collects image data, and sends the image data to the server; the AR service data sent by the server after confirming the image data; and the AR service presentation according to the AR service data.
  • the confirming the geographic location may be: determining whether the AR service geographic location information that matches the geographical location information is stored in the server; the determining the image data may be determining whether the image data corresponds to the AR geographic location information. The image data matches.
  • the performing the AR service display according to the AR service data includes: rendering and rendering the AR service data on the real application scene image currently collected by the mobile terminal to implement the AR service display.
  • the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
  • the program 910 is further configured to: after the processor 902 performs the AR service presentation according to the AR service data, use the AR virtual item to operate the AR virtual object according to the operable data, and The operational information of the operation is sent to the server.
  • the program 910 is further configured to: after receiving the AR service presentation according to the AR service data, the processor 902 receives the update data sent by the server, where the update data includes the updated operation.
  • the updated AR virtual object and/or the updated AR virtual item are further included, and the update data is operated by the server to use the AR virtual item to operate the AR virtual object according to the plurality of mobile terminals including the current mobile terminal.
  • the operation information is generated; and the AR service is displayed according to the update data.
  • the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data is used by the server according to the multiple mobile terminals that refer to the AR service, including the current mobile terminal.
  • the operation information generated by the at least one mobile terminal to operate the AR virtual object using the AR virtual item is generated.
  • the program 910 is further configured to enable the processor 902 to display operation information of operations performed by the plurality of mobile terminals on the AR virtual object on the mobile terminal, and the user of the mobile terminal corresponding to the operation. information.
  • the display module 710 may display, on the mobile terminal, operation information of the operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation.
  • the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR.
  • the implementation scenario of the business If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist.
  • the scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
  • the embodiment of the present specification further provides a computer readable storage medium carrying one or more computer instruction programs thereon, the one or more processors executing when the computer instruction program is executed by one or more processors
  • the above method according to an embodiment of the present invention may be implemented in hardware, firmware, or implemented as software or computer code that may be stored in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or implemented by
  • the network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable
  • Such software processing on a recording medium of dedicated hardware such as an ASIC or an FPGA.
  • a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is
  • storage components eg, RAM, ROM, flash memory, etc.
  • the two-dimensional code data processing method described herein is implemented when the processor or hardware accesses and executes.
  • execution of the code converts the general purpose computer into a special purpose computer for executing the two-dimensional code data processing method shown herein.

Abstract

An AR service processing method, a device, a server, a mobile terminal, and a storage medium. The AR service processing method comprises: receiving geographic location information sent by a mobile terminal, and if it is determined that AR service location information matching the geographic location information has been stored locally, sending an image acquisition instruction to the mobile terminal; receiving image data acquired and returned by the mobile terminal according to the image acquisition instruction; and if the returned image data matches image data corresponding to the AR service location information, sending to the mobile terminal AR service data corresponding to the AR service location information. The invention associates a geographic location, an AR service scene image, and an AR service, such that the AR technology is effectively applied to location-related game applications, thereby improving the user experience.

Description

AR业务处理方法、装置、服务器、移动终端及存储介质AR service processing method, device, server, mobile terminal and storage medium
交互参考Cross reference
本申请要求以下优先权:2017年12月04日提出的申请号:201711261596.0,名称:“AR业务处理方法、装置、服务器及移动终端”的中国专利,本申请参考引用了如上所述申请的全部内容。The present application claims the following priority: Application No.: 201711261596.0, entitled: "AR Business Processing Method, Apparatus, Server, and Mobile Terminal", Chinese Patent Application, which is incorporated herein by reference. content.
技术领域Technical field
本发明实施例涉及计算机技术领域,尤其涉及一种AR业务处理方法、装置、服务器、移动终端及存储介质。The embodiments of the present invention relate to the field of computer technologies, and in particular, to an AR service processing method, apparatus, server, mobile terminal, and storage medium.
背景技术Background technique
AR(Augmented Reality,增强现实)技术是一种将真实世界信息和虚拟世界信息“无缝”集成的新技术,其把原本在现实世界的一定时间空间范围内很难体验到的信息(如,视觉信息、声音信息等),模拟仿真后叠加到真实的信息中,真实的环境和虚拟的物体实时地叠加到了同一个画面或空间同时存在。AR (Augmented Reality) technology is a new technology that integrates real world information and virtual world information "seamlessly", which is difficult to experience in a certain time and space of the real world (for example, Visual information, sound information, etc.), superimposed on the real information after the simulation, the real environment and the virtual object are superimposed in the same picture or space at the same time.
随着AR技术的发展,将AR技术应用于各种应用场景中正成为一种趋势。在所有应用中,游戏类应用占据了其中很大比例,因此,如何通过对与AR技术相关的数据进行处理,以使得AR技术可以有效应用于某些游戏类应用中,例如,与位置有关的游戏类应用中,以提升用户的游戏体验,正成为AR技术应用的一个研究热点。With the development of AR technology, it is becoming a trend to apply AR technology to various application scenarios. In all applications, game applications account for a large proportion of them, so how to deal with AR technology related data, so that AR technology can be effectively applied to some game applications, for example, location-related In game applications, to enhance the user's gaming experience, it is becoming a research hotspot of AR technology applications.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种AR业务处理方法、装置、服务器、移动终端及存储介质,以实现通过对与AR技术相关的数据进行处理,使得AR技术可以有效应用于与位置有关的游戏类应用中。In view of this, an embodiment of the present invention provides an AR service processing method, apparatus, server, mobile terminal, and storage medium, so that AR technology can be effectively applied to location-related processing by processing data related to AR technology. In the game class application.
根据本发明实施例的第一方面,提供了一种AR业务处理方法,包括:接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向所述移动终端发送图像采集指令;接 收所述移动终端返回的根据所述图像采集指令所采集的图像数据;若返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配,则向所述移动终端发送与所述AR业务位置信息所对应的AR业务数据。According to a first aspect of the present invention, an AR service processing method includes: receiving geographic location information sent by a mobile terminal, and if it is determined that an AR service location information that matches the geographical location information is locally stored, Sending an image acquisition instruction to the mobile terminal; receiving image data collected by the mobile terminal according to the image acquisition instruction; and if the returned image data matches image data corresponding to the AR service location information, And transmitting, to the mobile terminal, AR service data corresponding to the AR service location information.
根据本发明实施例的第二方面,提供了另一种AR业务处理方法,包括:获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;接收所述服务器在确认存储有与所述地理位置信息相匹配的AR业务地理位置信息后发送的图像采集指令;根据所述图像采集指令采集图像数据,将所述图像数据发送给所述服务器;接收所述服务器在确认所述图像数据与所述AR地理位置信息所对应的图像数据相匹配后发送的AR业务数据;根据所述AR业务数据进行AR业务展示。According to a second aspect of the embodiments of the present invention, another AR service processing method is provided, including: acquiring geographic location information of a mobile terminal, transmitting the geographical location information to a server; and receiving the server to confirm that the storage is An image acquisition instruction sent after the geographic location information matches the geographical location information of the AR service; collecting image data according to the image acquisition instruction, transmitting the image data to the server; and receiving the image data by the server The AR service data sent after the image data corresponding to the AR geographic location information is matched; and the AR service display is performed according to the AR service data.
根据本发明实施例的第三方面,提供了一种AR业务处理装置,包括:第一接收模块,用于接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向所述移动终端发送图像采集指令;第二接收模块,用于接收所述移动终端返回的根据所述图像采集指令所采集的图像数据;第一发送模块,用于若返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配,则向所述移动终端发送所述AR业务位置信息所对应的AR业务数据。According to a third aspect of the present invention, an AR service processing apparatus includes: a first receiving module, configured to receive geographic location information sent by a mobile terminal, and if it is determined that the local storage is matched with the geographic location information, The AR service location information is sent to the mobile terminal, and the second receiving module is configured to receive the image data collected by the mobile terminal according to the image collection instruction; the first sending module is configured to: And if the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
根据本发明实施例的第四方面,提供了另一种AR业务处理装置,包括:第一获取模块,用于获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;第三接收模块,用于接收所述服务器在确认存储有与所述地理位置信息相匹配的AR业务地理位置信息后发送的图像采集指令;第二发送模块,用于根据所述图像采集指令采集图像数据,将所述图像数据发送给所述服务器;第四接收模块,用于接收所述服务器在确认所述图像数据与所述AR地理位置信息所对应的图像数据相匹配后发送的AR业务数据;展示模块,用于根据所述AR业务数据进行AR业务展示。According to a fourth aspect of the present invention, there is provided another AR service processing apparatus, including: a first acquiring module, configured to acquire geographic location information of a mobile terminal, and send the geographical location information to a server; a module, configured to receive an image collection instruction sent by the server after confirming that the geographic location information of the AR service that matches the geographical location information is stored; and a second sending module, configured to collect image data according to the image collection instruction, Sending the image data to the server; the fourth receiving module is configured to receive the AR service data that is sent by the server after confirming that the image data matches the image data corresponding to the AR geographic location information; And a module, configured to perform AR service presentation according to the AR service data.
根据本发明实施例的第五方面,提供了一种服务器,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如第一方面所述的AR业务处理 方法对应的操作。According to a fifth aspect of the embodiments of the present invention, a server is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete each other through the communication bus The memory is configured to store at least one executable instruction that causes the processor to perform an operation corresponding to the AR service processing method of the first aspect.
根据本发明实施例的第五方面,提供了一种移动终端,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如第二方面所述的AR业务处理方法对应的操作。According to a fifth aspect of the embodiments of the present invention, a mobile terminal is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete each other through the communication bus The memory is configured to store at least one executable instruction that causes the processor to perform an operation corresponding to the AR service processing method of the second aspect.
根据本发明实施例的第六方面,提供了一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行如第一方面所述的AR业务处理方法。According to a sixth aspect of the present invention, there is provided a computer readable storage medium carrying one or more computer instruction programs, the computer instruction program being executed by one or more processors, the one or A plurality of processors execute the AR service processing method as described in the first aspect.
根据本发明实施例的第六方面,提供了一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行如第二方面所述的AR业务处理方法。According to a sixth aspect of the present invention, there is provided a computer readable storage medium carrying one or more computer instruction programs, the computer instruction program being executed by one or more processors, the one or A plurality of processors execute the AR service processing method as described in the second aspect.
由以上技术方案可见,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本发明实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。It can be seen from the above technical solution that when the AR service is implemented, the geographical location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographical location information, such as an image of an office foreground, and the image can be described. Implementation scenario of the AR service. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the embodiments of the present invention, and other drawings can be obtained according to the drawings for those skilled in the art.
图1为根据本发明实施例一的一种AR业务处理方法的步骤流程图;1 is a flow chart showing the steps of an AR service processing method according to Embodiment 1 of the present invention;
图2为根据本发明实施例二的一种AR业务处理方法的步骤流程图;2 is a flow chart showing the steps of an AR service processing method according to Embodiment 2 of the present invention;
图3为根据本发明实施例三的一种AR业务处理方法的步骤流程图;3 is a flow chart showing the steps of an AR service processing method according to Embodiment 3 of the present invention;
图4为根据本发明实施例四的一种AR业务处理方法的步骤流程图;4 is a flow chart showing the steps of an AR service processing method according to Embodiment 4 of the present invention;
图5为根据本发明实施例五的一种AR业务处理方法的步骤流程图;FIG. 5 is a flowchart of steps of an AR service processing method according to Embodiment 5 of the present invention; FIG.
图6为根据本发明实施例六的一种AR业务处理装置的结构框图;FIG. 6 is a structural block diagram of an AR service processing apparatus according to Embodiment 6 of the present invention; FIG.
图7为根据本发明实施例七的一种AR业务处理装置的结构框图;FIG. 7 is a structural block diagram of an AR service processing apparatus according to Embodiment 7 of the present invention; FIG.
图8为根据本发明实施例八的一种服务器的结构示意图;8 is a schematic structural diagram of a server according to Embodiment 8 of the present invention;
图9为根据本发明实施例九的一种移动终端的结构示意图。FIG. 9 is a schematic structural diagram of a mobile terminal according to Embodiment 9 of the present invention.
具体实施方式Detailed ways
为了使本领域的人员更好地理解本发明实施例中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本发明实施例保护的范围。For a better understanding of the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments are only a part of the embodiments of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art should be within the scope of protection of the embodiments of the present invention based on the embodiments in the embodiments of the present invention.
下面结合本发明实施例附图进一步说明本发明实施例具体实现。The specific implementation of the embodiments of the present invention is further described below in conjunction with the accompanying drawings.
实施例一Embodiment 1
参照图1,示出了根据本发明实施例一的一种AR业务处理方法的步骤流程图。Referring to FIG. 1, a flow chart of steps of an AR service processing method according to a first embodiment of the present invention is shown.
本实施例从服务器的角度对本发明实施例提供的AR业务处理方法进行说明,本实施例的AR业务处理方法包括以下步骤:This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the server. The AR service processing method in this embodiment includes the following steps:
步骤S102:接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向移动终端发送图像采集指令。Step S102: Receive geographic location information sent by the mobile terminal, and if it is determined that the AR service location information that matches the geographical location information is stored locally, send an image collection instruction to the mobile terminal.
本实施例中,移动终端若想触发AR业务,需要先向服务器上报地理位置信息,通过地理位置信息,服务器可以判断移动终端当前是否在AR业务的使用场景位置。地理位置信息的精度越高,效果越好。较优地,地 理位置信息的精度可控制在10米以内,更优地,可以控制在3米以内。In this embodiment, if the mobile terminal wants to trigger the AR service, the mobile terminal needs to report the geographical location information to the server first. Through the geographical location information, the server can determine whether the mobile terminal is currently in the use scenario position of the AR service. The higher the accuracy of the geographic location information, the better the effect. Preferably, the accuracy of the geographic location information can be controlled within 10 meters, and more preferably, within 3 meters.
其中,AR业务可以是任意适当的可显示AR效果和/或与AR虚拟对象进行交互的业务。The AR service may be any suitable service that can display the AR effect and/or interact with the AR virtual object.
服务器本地存储的与地理位置信息相匹配的AR业务位置信息,可以是与地理位置信息相同的信息,如经纬度坐标,也可以是依据地理位置信息生成的具体位置信息,如,XX公司前台(此种情况下,服务器在接收到移动终端的地理位置信息时,需要将该地理位置信息对应转换为相应的具体位置)等。The AR service location information that is locally stored by the server and matches the geographic location information may be the same information as the geographic location information, such as latitude and longitude coordinates, or may be specific location information generated according to the geographic location information, for example, the XX company front desk (this In this case, when the server receives the geographical location information of the mobile terminal, the server needs to convert the geographic location information into a corresponding specific location, and the like.
若服务器判定移动终端当前位于AR业务的使用场景位置,则会向移动终端发送图像采集指令,以指示移动终端采集当前位置的图像,进行后续场景比对。If the server determines that the mobile terminal is currently located in the use scenario of the AR service, the image acquisition instruction is sent to the mobile terminal to instruct the mobile terminal to collect the image of the current location for subsequent scene comparison.
步骤S104:接收移动终端返回的根据图像采集指令所采集的图像数据。Step S104: Receive image data collected by the mobile terminal according to the image acquisition instruction.
移动终端在接收到图像采集指令后,会控制移动终端中的摄像头进行当前位置处的图像采集,并将采集的图像数据上传给服务器。服务器接收移动终端上传的图像数据,进行后续的使用场景比对判断。After receiving the image acquisition instruction, the mobile terminal controls the camera in the mobile terminal to perform image collection at the current location, and uploads the collected image data to the server. The server receives the image data uploaded by the mobile terminal, and performs subsequent comparison of the usage scenarios.
步骤S106:若返回的图像数据与AR业务位置信息对应的图像数据相匹配,则向移动终端发送该AR业务位置信息所对应的AR业务数据。Step S106: If the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
服务器中除存储有AR业务位置信息外,还存储有与AR业务位置信息相对应的图像数据,该图像数据为AR业务的使用场景的图像数据,可以包括一张或多张(两张及两张以上)使用场景的图像的图像数据。此外,服务器中还存储有用于处理AR业务的逻辑代码,以实现对信息和数据的接收、处理和发送等功能。The server stores, in addition to the AR service location information, image data corresponding to the AR service location information, where the image data is image data of the usage scenario of the AR service, and may include one or more sheets (two and two) The image data of the image of the scene is used. In addition, the server also stores logic code for processing the AR service to implement functions such as receiving, processing, and transmitting information and data.
若根据移动终端发送的地理位置信息和图像数据,确定移动终端当前的地理位置和使用场景均与AR业务相匹配,则向移动终端发送AR业务数据。其中,AR业务数据包括但不限于:AR虚拟对象、AR虚拟道具、针对AR虚拟对象的可操作数据。And determining, according to the geographic location information and the image data sent by the mobile terminal, that the current geographic location and the usage scenario of the mobile terminal match the AR service, and sending the AR service data to the mobile terminal. The AR service data includes but is not limited to: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办 公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例二Embodiment 2
参照图2,示出了根据本发明实施例二的一种AR业务处理方法的步骤流程图。Referring to FIG. 2, a flow chart of steps of an AR service processing method according to Embodiment 2 of the present invention is shown.
本实施例仍从服务器的角度,对本发明实施例提供的AR业务处理方法进行说明。This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the server.
本实施例的AR业务处理方法包括以下步骤:The AR service processing method in this embodiment includes the following steps:
步骤S202:服务器接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向移动终端发送图像采集指令。Step S202: The server receives the geographical location information sent by the mobile terminal, and if it determines that the AR service location information that matches the geographical location information is stored locally, sends an image collection instruction to the mobile terminal.
服务器本地存储有进行AR业务所需的数据,包括但不限于:AR业务位置信息、与AR业务位置信息对应的图像数据、AR业务数据、用户信息、AR业务进度信息,等等。The server locally stores data required for performing the AR service, including but not limited to: AR service location information, image data corresponding to the AR service location information, AR service data, user information, AR service progress information, and the like.
需要说明的是,在移动终端用户首次使用AR业务时,可能不存在上述数据,此种情况下,可以提示用户对该AR业务进行设置,通过移动终端设置该AR业务的位置和使用场景图像并将设置好的信息和数据上传服务器进行保存。其中,使用场景图像建议从不同角度采集多张,也可以采用视频流的形式,以在后续进行图像比对时为用户提供更灵活的采集角度。It should be noted that, when the mobile terminal user uses the AR service for the first time, the foregoing data may not exist. In this case, the user may be prompted to set the AR service, and the location and the usage scene image of the AR service are set by the mobile terminal. Save the set information and data upload server. Among them, it is recommended to use the scene image to collect multiple images from different angles, or to use a video stream to provide a more flexible acquisition angle for the user in subsequent image comparison.
本步骤中,服务器在接收到移动终端的地理位置信息后,将该地理位置信息与本地存储的AR业务位置信息进行比对,以判断移动终端当前所在位置是否为AR业务位置,若为AR业务位置,则向移动终端发送图像采集指令,指示移动终端进行AR业务的使用场景的图像采集;若不为AR 业务位置,则向移动终端返回提示信息,以向移动终端的用户提示错误或提示对AR业务进行设置。在另一种可行方式中,若不为AR业务位置,即服务器确定本地未存储有与所述地理位置信息相匹配的AR业务位置信息时,则从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;向移动终端发送包括最接近的AR业务位置信息的提示信息。这是因为虽然移动终端所处的当前位置没有AR业务,当有可能一定距离范围内有AR业务,移动终端可选择参与其中。因此,可以向移动终端发送该AR业务的相应位置信息,指导移动终端的用户去该位置参与AR业务。可选地,在移动终端侧还可以调用导航应用,根据移动终端的当前地理位置信息和最接近的AR业务位置信息,为该移动终端的用户进行导航。In this step, after receiving the geographical location information of the mobile terminal, the server compares the geographical location information with the locally stored AR service location information to determine whether the current location of the mobile terminal is an AR service location, and if it is an AR service. And sending an image collection instruction to the mobile terminal, instructing the mobile terminal to perform image collection of the usage scenario of the AR service; if not for the AR service location, returning the prompt information to the mobile terminal to prompt the user of the mobile terminal to make an error or prompt The AR service is set up. In another possible manner, if the AR service location is not, that is, the server determines that the AR service location information that matches the geographical location information is not locally stored, the AR service location information is searched and stored. The geographical location information is closest to the AR service location information; the prompt information including the closest AR service location information is sent to the mobile terminal. This is because although there is no AR service at the current location where the mobile terminal is located, when there is a possibility that there is an AR service within a certain distance range, the mobile terminal can choose to participate. Therefore, the corresponding location information of the AR service can be sent to the mobile terminal, and the user of the mobile terminal is guided to participate in the AR service at the location. Optionally, the navigation application may be invoked on the mobile terminal side to navigate the user of the mobile terminal according to the current geographic location information of the mobile terminal and the closest AR service location information.
步骤S204:服务器接收移动终端返回的根据图像采集指令所采集的图像数据。Step S204: The server receives the image data collected by the mobile terminal according to the image acquisition instruction.
移动终端根据图像采集指令采集所处位置的图像并上传相应的图像数据,服务器接收移动终端上传的图像数据。The mobile terminal collects an image of the location according to the image acquisition instruction and uploads corresponding image data, and the server receives the image data uploaded by the mobile terminal.
步骤S206:服务器判断移动终端返回的图像数据与本地存储的、与AR业务位置信息对应的图像数据是否匹配;若匹配,则执行步骤S208;若不匹配,则执行步骤S214。Step S206: The server determines whether the image data returned by the mobile terminal matches the locally stored image data corresponding to the AR service location information; if yes, step S208 is performed; if not, step S214 is performed.
服务器本地存储有AR业务的使用场景的图像数据,即与AR业务位置信息对应的图像数据,通过与移动终端返回的图像数据的比对,即可判定移动终端当前是否处于AR业务的使用场景中。The image data of the usage scenario of the AR service is stored locally, that is, the image data corresponding to the AR service location information, and the comparison with the image data returned by the mobile terminal can determine whether the mobile terminal is currently in the usage scenario of the AR service. .
在一种可行方式中,服务器对移动终端返回的图像数据进行图像描述处理,获得所述图像数据的文本描述。服务器本地存储的与AR业务位置信息对应的图像数据也为已存储的图像数据的文本描述,即,图像描述。服务器比对移动终端返回的文本描述与存储的图像描述是否匹配。通过对图像数据进行图像描述处理,减轻了服务器端数据存储负担,也提高了图像数据的比对效率。In a feasible manner, the server performs image description processing on the image data returned by the mobile terminal to obtain a text description of the image data. The image data stored locally by the server corresponding to the AR service location information is also a textual description of the stored image data, that is, an image description. The server compares the text description returned by the mobile terminal with the stored image description. By performing image description processing on the image data, the data storage burden on the server side is alleviated, and the comparison efficiency of the image data is also improved.
具体的,可以通过如下步骤判断移动终端返回的图像数据与AR业务位置信息所对应的图像数据是否相匹配:Specifically, the following steps may be used to determine whether the image data returned by the mobile terminal matches the image data corresponding to the AR service location information:
对返回的图像数据进行图像描述处理,获取该图像数据所对应的文本描述;若上述文本描述与AR业务位置信息对应的图像描述相匹配,则判断返回的图像数据与AR业务位置信息对应的图像数据相匹配。Performing image description processing on the returned image data to obtain a text description corresponding to the image data; if the text description matches the image description corresponding to the AR service location information, determining the image corresponding to the returned image data and the AR service location information The data matches.
图像描述过程包括:对图像进行分割后,将图像分成了若干个区域,包括不同特征的物体和背景,其中可能包含某些形状,如长方形、圆、曲线及任意形状的区域;分割完成后,用数据、符号、形式语言来表示这些具有不同特征的区域,生成该图像的文本描述。其中,图像区域的描述可以分为对区域本身的描述和区域之间的关系、结构进行描述,包括对线、曲线、区域、几何特征等各种形式的描述。本发明实施例中,本领域技术人员可以采用任意适当的图像描述模型和算法对移动终端返回的图像数据所表示的图像进行图像描述处理,本发明实施例对此不作限制。The image description process includes: after segmenting the image, the image is divided into several regions, including objects and backgrounds of different features, which may include certain shapes, such as rectangles, circles, curves, and regions of any shape; after the segmentation is completed, Data, symbols, formal languages are used to represent these regions with different characteristics, and a textual description of the image is generated. The description of the image area can be divided into a description of the area itself and a relationship and structure between the areas, including descriptions of various forms such as lines, curves, regions, and geometric features. In the embodiment of the present invention, a person skilled in the art may perform image description processing on the image represented by the image data returned by the mobile terminal by using any suitable image description model and algorithm, which is not limited in the embodiment of the present invention.
步骤S208:若服务器判断返回的图像数据与AR业务位置信息对应的图像数据相匹配,则向移动终端发送该AR业务位置信息所对应的AR业务数据。Step S208: If the server determines that the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
其中,AR业务数据包括:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对AR虚拟对象的可操作数据。AR虚拟对象可以为任意适当的、能够在移动终端中显示的二维图像和/或特效、三维图像和/或特效,也可以是视频等,如三维虚拟植物或虚拟动物;AR虚拟道具可以为任意适当的、能够对AR虚拟对象进行操作的道具,如,用于对虚拟植物浇水的虚拟水壶、用于对虚拟植物进行铲土的虚拟铲子、用于对虚拟植物进行除虫的虚拟除虫剂,等等;针对AR虚拟对象的可操作数据与对AR虚拟对象进行的操作和当前状态有关,如,一天内对虚拟植物浇水上限为五次,则每天初始时与浇水对应的可操作数据为5,当有用户为虚拟植物浇水1次,则该可操作数据更新为4,等等。通过AR虚拟对象、AR虚拟道具、和针对AR虚拟对象的可操作数据,可以实现AR业务中,用户与虚拟对象的有效交互和虚拟对象的状态更新与查看等功能。The AR service data includes: AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object. The AR virtual object may be any suitable two-dimensional image and/or special effect, three-dimensional image and/or special effect that can be displayed in the mobile terminal, or may be a video or the like, such as a three-dimensional virtual plant or a virtual animal; the AR virtual item may be Any suitable props capable of operating on the AR virtual object, such as a virtual kettle for watering virtual plants, a virtual shovel for shoveling virtual plants, and a virtual de-worm for de-worming virtual plants Insecticide, etc.; the operational data for the AR virtual object is related to the operation and current state of the AR virtual object. For example, if the virtual plant is watered up to five times a day, the initial corresponding to the watering is performed every day. The operational data is 5, when a user waters the virtual plant 1 time, the operational data is updated to 4, and so on. Through the AR virtual object, the AR virtual prop, and the operable data for the AR virtual object, functions such as effective interaction between the user and the virtual object and status update and viewing of the virtual object can be realized in the AR service.
但不限于此,AR业务特征数据还可以由本领域技术人员根据实际需求设置其它适当的特征数据;并且,除上述AR业务特征数据外,AR业务 数据还可以包括但不限于:AR业务进度数据、AR业务用户数据,等等。However, the AR service characteristic data may further set other suitable feature data according to actual needs by the person skilled in the art; and, in addition to the foregoing AR service feature data, the AR service data may further include, but not limited to, AR service progress data, AR business user data, and so on.
移动终端在接收到相应的AR业务数据后,会基于图像采集设备实时采集的图像,进行AR虚拟对象的渲染和展示。当然,AR虚拟道具也可以进行同步渲染和展示,并且,可根据针对AR虚拟对象的可操作数据进行相应的信息提示等操作。After receiving the corresponding AR service data, the mobile terminal performs rendering and display of the AR virtual object based on the image acquired by the image acquisition device in real time. Of course, the AR virtual props can also be synchronously rendered and displayed, and the corresponding information prompts can be performed according to the operable data for the AR virtual object.
步骤S210:服务器接收移动终端发送的用户通过AR业务数据中的AR虚拟道具对AR虚拟对象进行操作的操作信息,根据所述操作信息更新AR虚拟对象的可操作数据。Step S210: The server receives operation information that the user sends the AR virtual object through the AR virtual item in the AR service data, and updates the operable data of the AR virtual object according to the operation information.
在移动终端根据AR业务数据进行了相应的AR业务展示后,移动终端的用户可以通过AR虚拟道具对AR虚拟对象进行操作,并将操作信息实时反馈给服务器。服务器在接收到这些操作信息后,将根据这些操作更新AR虚拟对象的可操作数据。可选地,还可以根据更新后的可操作数据更新AR虚拟对象和/或AR虚拟工具,并向移动终端发送更新后的AR虚拟对象和/或AR虚拟工具,以供移动终端进行更新。After the mobile terminal performs the corresponding AR service presentation according to the AR service data, the user of the mobile terminal can operate the AR virtual object through the AR virtual item, and feedback the operation information to the server in real time. After receiving the operation information, the server will update the operational data of the AR virtual object according to these operations. Optionally, the AR virtual object and/or the AR virtual tool may also be updated according to the updated operational data, and the updated AR virtual object and/or the AR virtual tool is sent to the mobile terminal for updating by the mobile terminal.
需要说明的是,对于社交游戏类应用,有多个用户通过各自的移动终端参与到同一应用中,这些用户可以通过各自的移动终端同时或非同时地对同一AR虚拟对象进行操作,如同时使用虚拟水壶对相同的虚拟植物进行了浇水;或者,在一个用户通过其移动终端使用虚拟水壶对虚拟植物进行了浇水的同时,另一个用户通过其移动终端使用虚拟铲子对相同的虚拟植物进行了铲土操作,这些操作信息都将上报给服务器,服务器根据这些操作信息实时更新虚拟植物的状态并反馈给多个移动终端。It should be noted that, for a social game application, multiple users participate in the same application through their respective mobile terminals, and these users can operate the same AR virtual object simultaneously or non-simultaneously through their respective mobile terminals, such as simultaneous use. The virtual kettle waters the same virtual plant; or, while one user waters the virtual plant using a virtual kettle through its mobile terminal, another user uses the virtual shovel to move the same virtual plant through its mobile terminal. The operation information is reported to the server, and the server updates the state of the virtual plant in real time according to the operation information and feeds back to the plurality of mobile terminals.
也即,当移动终端包括多个时,服务器接收多个移动终端中的至少一个移动终端发送的用户通过AR虚拟道具对AR虚拟对象进行的至少一项操作的操作信息,根据该至少一项操作的操作信息更新对应的AR虚拟对象的可操作数据。可选地,还可以同时更新AR虚拟对象和/或AR虚拟道具。That is, when the mobile terminal includes a plurality of, the server receives operation information of at least one operation performed by the at least one of the plurality of mobile terminals on the AR virtual object by the AR virtual item, according to the at least one operation. The operation information updates the operational data of the corresponding AR virtual object. Alternatively, the AR virtual object and/or the AR virtual item can also be updated simultaneously.
根据上述内容能够理解,上述多个移动终端可以是同时参与AR业务的多个移动终端。It can be understood from the above that the plurality of mobile terminals may be a plurality of mobile terminals that simultaneously participate in the AR service.
步骤S212:服务器同步更新后的可操作数据到移动终端,返回步骤 S210继续执行。Step S212: The server synchronizes the updated operable data to the mobile terminal, and returns to step S210 to continue the execution.
如前所述,针对某一个移动终端,服务器可以根据该移动终端上传的操作信息更新针对AR虚拟对象的可操作数据,进而将更新后的可操作数据同步到移动终端。但除此之外,还可以更新AR虚拟对象和/或AR虚拟道具,此种情况下,在同步更新后的可操作数据到移动终端的同时,还会同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到移动终端。As described above, for a certain mobile terminal, the server may update the operable data for the AR virtual object according to the operation information uploaded by the mobile terminal, and then synchronize the updated operational data to the mobile terminal. However, in addition to this, the AR virtual object and/or the AR virtual prop can be updated. In this case, the updated AR virtual object and/or the synchronously updated AR virtual object and/or The updated AR virtual item to the mobile terminal.
而当移动终端包括多个时,会在同步更新后的可操作数据到多个移动终端的同时,也同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到多个移动终端。多个移动终端显示对AR虚拟对象进行的操作的操作信息,以及,所述操作对应的移动终端的用户信息。例如,用户XX为XX植物浇水一次,用户YY为XX植物施肥一次,等等。When the mobile terminal includes more than one, the updated AR virtual object and/or the updated AR virtual item are synchronized to the plurality of mobile terminals while the updated operational data is synchronized to the plurality of mobile terminals. The plurality of mobile terminals display operation information of an operation performed on the AR virtual object, and user information of the mobile terminal corresponding to the operation. For example, user XX waters the XX plant once, user YY fertilizes the XX plant once, and so on.
根据上述内容能够理解,上述移动终端包括多个可以是同时参与AR业务的移动终端的数目为多个。It can be understood from the above that the mobile terminal includes a plurality of mobile terminals that can simultaneously participate in the AR service.
由此,实现多人参与的AR业务之间的同步性。Thereby, synchronization between AR services in which multiple people participate is achieved.
步骤S214:若服务器判断移动终端返回的图像数据与AR业务位置信息对应的图像数据不匹配,则将与AR业务位置信息对应的图像数据发送给移动终端,以提示移动终端根据发送的所述图像数据进行图像采集。Step S214: If the server determines that the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, the image data corresponding to the AR service location information is sent to the mobile terminal, to prompt the mobile terminal to send the image according to the image. Data is used for image acquisition.
当移动终端返回的图像数据与服务器本地存储的图像数据不匹配时,有可能是移动终端的用户拍摄图像的角度不正确,因此,可以将服务器中存储的图像数据发送给移动终端,供移动终端用户参考后,从正确角度拍摄。通过发送图像数据供用户参考,可以提高用户使用移动终端进行图像采集的准确度,提升用户使用体验。When the image data returned by the mobile terminal does not match the image data stored locally by the server, the angle of the image captured by the user of the mobile terminal may be incorrect. Therefore, the image data stored in the server may be sent to the mobile terminal for the mobile terminal. After the user's reference, shoot from the correct angle. By transmitting image data for user reference, the accuracy of the image acquisition by the user using the mobile terminal can be improved, and the user experience is improved.
但本领域技术人员应当明了的是,在实际使用中,若服务器判断移动终端返回的图像数据与AR业务位置信息对应的图像数据不匹配,也可以进行其它适当处理,如提示错误等。However, it should be understood by those skilled in the art that, in actual use, if the server determines that the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, other appropriate processing, such as a prompt error, may be performed.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位 置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例三Embodiment 3
参照图3,示出了根据本发明实施例三的一种AR业务处理方法的步骤流程图。Referring to FIG. 3, a flow chart of steps of an AR service processing method according to Embodiment 3 of the present invention is shown.
本实施例从移动终端的角度,对本发明实施例提供的AR业务处理方法进行说明。This embodiment describes an AR service processing method provided by an embodiment of the present invention from the perspective of a mobile terminal.
本实施例的AR业务处理方法包括以下步骤:The AR service processing method in this embodiment includes the following steps:
步骤S302:获取移动终端的地理位置信息,将所述地理位置信息发送给服务器。Step S302: Acquire geographical location information of the mobile terminal, and send the geographical location information to the server.
移动终端在想要触发AR业务时,需要先将自身的地理位置信息发送给服务器,以供服务器判断移动终端当前是否处于AR业务的使用场景中。地理位置信息的精度越高,效果越好。When the mobile terminal wants to trigger the AR service, it needs to first send its own geographical location information to the server, so that the server can determine whether the mobile terminal is currently in the use scenario of the AR service. The higher the accuracy of the geographic location information, the better the effect.
步骤S304:接收服务器在确认所述地理位置信息后发送的图像采集指令。Step S304: Receive an image collection instruction sent by the server after confirming the geographical location information.
具体的,在步骤S304中确定所述地理位置信息可以是确认服务器中是否存储有与该地理位置信息相匹配的AR业务地理位置信息。Specifically, determining, in step S304, the geographic location information may be whether the AR service geographic location information that matches the geographic location information is stored in the confirmation server.
服务器中存储有与AR业务相关的信息,包括但不限于:AR业务位置信息、与AR业务位置信息对应的图像数据、AR业务数据、用户信息、AR业务进度信息,等等。The server stores information related to the AR service, including but not limited to: AR service location information, image data corresponding to the AR service location information, AR service data, user information, AR service progress information, and the like.
服务器在接收到移动终端发送的地理位置信息,并确定该地理位置信息与服务器中存储的AR业务位置信息相匹配后,将向移动终端发送图像采集指令。After receiving the geographical location information sent by the mobile terminal, and determining that the geographical location information matches the AR service location information stored in the server, the server sends an image collection instruction to the mobile terminal.
对于初次使用AR业务的移动终端的用户,可以通过移动终端对AR业务的使用场景的位置和图像进行设置,并将设置好的位置和图像的信息 或数据发送至服务器保存。服务器会根据移动终端发送的消息判断是设置类型的消息还是应用类型的消息,进而确定后续操作。如,若为设置类型的消息则保存移动终端上传的相应信息或数据;若为应用类型的消息,则执行本实施例中所述的方案。For the user of the mobile terminal that uses the AR service for the first time, the location and image of the usage scenario of the AR service can be set by the mobile terminal, and the information or data of the set location and image is sent to the server for storage. The server determines whether it is a setting type message or an application type message according to a message sent by the mobile terminal, thereby determining a subsequent operation. For example, if the message of the setting type is used, the corresponding information or data uploaded by the mobile terminal is saved; if the message of the application type is used, the solution described in this embodiment is executed.
步骤S306:根据图像采集指令采集图像数据,将采集的图像数据发送给服务器。Step S306: Collect image data according to the image acquisition instruction, and send the collected image data to the server.
移动终端在接收到图像采集指令后,控制移动终端中的图像采集设备如摄像头对当前所处位置的场景进行拍摄,并将拍摄的图像上传给服务器,供服务器进行AR业务的使用场景的识别和判断。After receiving the image capturing instruction, the mobile terminal controls the image capturing device in the mobile terminal, such as the camera, to capture the scene at the current location, and uploads the captured image to the server for the server to identify the usage scene of the AR service. Judge.
步骤S308:接收服务器在确认图像数据后发送的AR业务数据。Step S308: Receive AR service data sent by the server after confirming the image data.
具体的,在步骤S308中,确认图像数据可以是确认该图像数据与上述AR地理位置信息所对应的图像数据是否相匹配。Specifically, in step S308, the confirmation image data may be to confirm whether the image data matches the image data corresponding to the AR geographic location information.
若地理位置信息和图像数据均被服务器确认,表示移动终端当前所处的位置和场景均与相应的AR业务相匹配,进而向移动终端发送AR业务数据,以供移动终端基于本地图像采集设备实时采集的图像,进行AR业务数据的渲染、展示,以及交互。If both the geographical location information and the image data are confirmed by the server, it indicates that the current location and scene of the mobile terminal are matched with the corresponding AR service, and then the AR service data is sent to the mobile terminal, so that the mobile terminal can be based on the local image acquisition device in real time. The captured images are used to render, display, and interact with AR business data.
其中,移动终端从服务器接收的AR业务数据包括但不限于:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。但不限于此,AR业务特征数据还可以由本领域技术人员根据实际需求设置其它适当的特征数据;并且,除上述AR业务特征数据外,AR业务数据还可以包括但不限于:AR业务进度数据、AR业务用户数据,等等。The AR service data received by the mobile terminal from the server includes, but is not limited to, AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and an operable for the AR virtual object. data. However, the AR service characteristic data may further set other suitable feature data according to actual needs by the person skilled in the art; and, in addition to the foregoing AR service feature data, the AR service data may further include, but not limited to, AR service progress data, AR business user data, and so on.
步骤S310:根据AR业务数据进行AR业务展示。Step S310: Perform AR service display according to the AR service data.
具体的,在上述步骤S310中,根据AR业务数据进行AR业务展示,具体包括:Specifically, in the foregoing step S310, performing AR service display according to the AR service data, specifically includes:
在移动终端当前采集的真实场景图像上,渲染和绘制上述AR业务数据,以实现AR业务展示。The AR service data is rendered and rendered on the real scene image currently collected by the mobile terminal to implement the AR service display.
在接收到AR业务数据后,移动终端将在采集的实时图像的基础上,渲染和绘制相应的AR业务数据,如AR虚拟对象和AR虚拟道具,并进 行展示。After receiving the AR service data, the mobile terminal will render and draw corresponding AR service data, such as AR virtual objects and AR virtual items, based on the collected real-time images, and display them.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例四Embodiment 4
参照图4,示出了根据本发明实施例四的一种AR业务处理方法的步骤流程图。Referring to FIG. 4, a flow chart of steps of an AR service processing method according to Embodiment 4 of the present invention is shown.
本实施例仍从移动终端的角度,对本发明实施例提供的AR业务处理方法进行说明。This embodiment describes the AR service processing method provided by the embodiment of the present invention from the perspective of the mobile terminal.
本实施例的AR业务处理方法包括以下步骤:The AR service processing method in this embodiment includes the following steps:
步骤S402:移动终端接收到AR业务的触发指令。Step S402: The mobile terminal receives a trigger instruction of the AR service.
其中,该触发指令可以是移动终端中的AR应用启动时触发生成的触发指令,也可以是常规应用中的AR业务选项被触发时生成的触发指令,还可以是其它适当方式触发生成的指令,本发明实施例对触发指令的触发方式及生成方式和具体形式均不作限制。The triggering instruction may be a triggering instruction triggered by an AR application when the mobile terminal is started in the mobile terminal, or may be a triggering instruction generated when the AR service option in the conventional application is triggered, or may be an instruction generated by other appropriate manners to trigger the generated instruction. The embodiment of the present invention does not limit the triggering manner, the generating manner and the specific form of the triggering instruction.
步骤S404:移动终端根据触发指令,获取移动终端自身的地理位置信息,将所述地理位置信息发送给服务器。Step S404: The mobile terminal acquires the geographic location information of the mobile terminal according to the triggering instruction, and sends the geographical location information to the server.
本实施例中,设定移动终端的地理位置信息的精度在10米以内,较优地,可以在3米以内。In this embodiment, the accuracy of setting the geographic location information of the mobile terminal is within 10 meters, and preferably within 3 meters.
步骤S406:移动终端接收服务器在确认所述地理位置信息后发送的图像采集指令。Step S406: The mobile terminal receives an image collection instruction sent by the server after confirming the geographical location information.
具体的,在步骤S406中确定所述地理位置信息可以是确认服务器中 是否存储有与该地理位置信息相匹配的AR业务地理位置信息。Specifically, determining, in step S406, the geographic location information may be whether the AR service geographic location information matching the geographic location information is stored in the confirmation server.
可选地,服务器若确定不存在移动终端发送的地理位置信息时,还可以从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;并向移动终端发送包括最接近的AR业务位置信息的提示信息,以指导移动终端的用户去该位置参与AR业务。此种情况下,移动终端可以调用导航应用,根据移动终端的当前地理位置信息和最接近的AR业务位置信息,为该移动终端的用户进行导航。当然,服务器若确定不存在移动终端发送的地理位置信息时,也可以提示错误信息或提示用户对AR业务进行设置的信息,等。Optionally, if the server determines that there is no geographical location information sent by the mobile terminal, the server may further search for the AR service location information that is closest to the geographical location information from the stored AR service location information; and send the most The prompt information of the proximity AR service location information is used to guide the user of the mobile terminal to participate in the AR service at the location. In this case, the mobile terminal can invoke the navigation application to navigate the user of the mobile terminal according to the current geographic location information of the mobile terminal and the closest AR service location information. Certainly, if the server determines that there is no geographical location information sent by the mobile terminal, the server may also prompt an error message or prompt the user to set information about the AR service, and the like.
步骤S408:移动终端根据图像采集指令采集图像数据,将采集的图像数据发送给服务器。Step S408: The mobile terminal collects image data according to the image acquisition instruction, and sends the collected image data to the server.
步骤S410:移动终端接收服务器在确认所述图像数据后发送的AR业务数据。Step S410: The mobile terminal receives the AR service data that is sent by the server after confirming the image data.
具体的,在步骤S410中,确认图像数据可以是确认该图像数据与上述AR地理位置信息所对应的图像数据是否相匹配。Specifically, in step S410, the confirmation image data may be to confirm whether the image data matches the image data corresponding to the AR geographic location information.
其中,AR业务数据包括:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对AR虚拟对象的可操作数据。The AR service data includes: AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
步骤S412:移动终端根据AR业务数据进行AR业务展示。Step S412: The mobile terminal performs AR service presentation according to the AR service data.
具体的,在上述步骤S412中,移动终端根据AR业务数据进行AR业务展示,具体包括:Specifically, in the foregoing step S412, the mobile terminal performs the AR service display according to the AR service data, and specifically includes:
在移动终端当前采集的真实场景图像上,渲染和绘制上述AR业务数据,以实现AR业务展示。The AR service data is rendered and rendered on the real scene image currently collected by the mobile terminal to implement the AR service display.
例如,在接收到服务器发送的AR业务数据后,在移动终端实时采集的图像上渲染和绘制AR虚拟对象和AR虚拟道具,等等。For example, after receiving the AR service data sent by the server, the AR virtual object and the AR virtual item are rendered and drawn on the image captured by the mobile terminal in real time, and the like.
步骤S414:移动终端接收服务器对AR业务数据进行更新后发送的更新数据,根据更新数据更新本地的AR业务数据并进行AR业务展示。Step S414: The mobile terminal receives the update data sent by the server after updating the AR service data, updates the local AR service data according to the update data, and performs AR service display.
一方面,针对当前移动终端,其可以根据所述可操作数据,使用AR虚拟道具对AR虚拟对象进行操作,并将所述操作的操作信息发送给服务 器;进而,接收服务器根据所述操作信息对服务器中存储的可操作数据进行更新后的数据,根据更新后的数据进行AR业务展示。In one aspect, for the current mobile terminal, the AR virtual object is operated by using the AR virtual prop according to the operable data, and the operation information of the operation is sent to the server; and further, the receiving server is configured according to the operation information. The updated data stored in the server is updated, and the AR service is displayed according to the updated data.
可选地,服务器还可以根据更新后的可操作数据更新AR虚拟对象和/或AR虚拟道具。基于此,移动终端在接收更新后的可操作数据之外,还可以接收更新后的AR虚拟对象和/或AR虚拟道具,根据更新后的数据进行AR业务展示。Optionally, the server may also update the AR virtual object and/or the AR virtual item according to the updated operational data. Based on this, the mobile terminal may receive the updated AR virtual object and/or the AR virtual prop in addition to the updated operable data, and perform AR service display according to the updated data.
另一方面,针对多个移动终端的情况,有可能当前移动终端的用户并没有对AR虚拟对象进行操作,但其它移动终端的用户进行了操作,又或者,当前移动终端的用户和其它移动终端的用户均对AR虚拟对象进行了操作。但无论是哪种情况,对于多用户参与的AR业务需要向多个移动终端均发送相应的更新数据以更新AR业务数据及更新AR业务展示。基于此,当前移动终端会接收服务器发送的更新数据,所述更新数据可以仅包括更新后的可操作数据,也可以除包括更新后的可操作数据之外,还包括更新后的AR虚拟对象和/或更新后的AR虚拟道具,所述更新数据由服务器根据包括当前移动终端在内的多个移动终端使用AR虚拟道具对AR虚拟对象进行操作的操作信息生成;根据所述更新数据进行AR业务展示。On the other hand, for the case of multiple mobile terminals, it is possible that the user of the current mobile terminal does not operate the AR virtual object, but the user of the other mobile terminal performs the operation, or the user of the current mobile terminal and other mobile terminals. The user has operated on the AR virtual object. In either case, the AR service for multi-user participation needs to send corresponding update data to multiple mobile terminals to update the AR service data and update the AR service presentation. Based on this, the current mobile terminal may receive the update data sent by the server, and the update data may include only the updated operational data, or may include the updated AR virtual object and the updated operational data. And/or the updated AR virtual item, the update data is generated by the server according to the operation information of the operation of the AR virtual object by using the AR virtual item by the plurality of mobile terminals including the current mobile terminal; and performing the AR service according to the updated data. Show.
具体的,上述多个移动终端可以是同时参与上述AR业务的多个移动终端;相应的,上述更新数据可以由服务器根据包括上述移动终端在内的同时参与AR业务的多个移动终端中的至少一个移动终端使用AR虚拟道具对AR虚拟对象进行操作的操作信息生成。Specifically, the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data may be at least by the server according to at least one of the plurality of mobile terminals participating in the AR service including the mobile terminal. An operation information generated by a mobile terminal to operate an AR virtual object using an AR virtual prop.
除此之外,各个移动终端可以显示参与该AR业务的多个移动终端对AR虚拟对象进行的操作的操作信息,以及,所述操作对应的移动终端的用户信息。如,用户A对XX植物施肥一次,用户B对XX植物浇水一次,用户C对XX植物浇水一次,等等。In addition, each mobile terminal may display operation information of operations performed by a plurality of mobile terminals participating in the AR service on the AR virtual object, and user information of the mobile terminal corresponding to the operation. For example, user A fertilizes the XX plant once, user B waters the XX plant once, user C waters the XX plant once, and so on.
具体的,可以在每个移动终端上显示多个移动终端中的任意移动终端对AR虚拟对象进行的操作的操作信息,以及,该操作对应的移动终端的用户信息。Specifically, operation information of an operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation may be displayed on each mobile terminal.
由此,实现了多用户参考的AR业务的更新和展示。Thereby, the update and display of the AR service of the multi-user reference is realized.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据 相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment, the geographic location, the AR service scene image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例五Embodiment 5
参照图5,示出了根据本发明实施例五的一种AR业务处理方法的步骤流程图。Referring to FIG. 5, a flow chart of steps of an AR service processing method according to Embodiment 5 of the present invention is shown.
本实施例从移动终端和服务器交互的角度,以养殖虚拟植物的AR游戏为实例,对本发明实施例提供的AR业务处理方法进行说明。This embodiment describes an AR service processing method provided by an embodiment of the present invention by taking an AR game of a virtual plant as an example from the perspective of interaction between the mobile terminal and the server.
本实施例的AR业务处理方法包括以下步骤:The AR service processing method in this embodiment includes the following steps:
步骤S502:移动终端A设置养殖虚拟植物的AR游戏的使用位置和使用场景,并将对应的地理位置信息和场景图像数据上传服务器。Step S502: The mobile terminal A sets the use location and usage scenario of the AR game for breeding the virtual plant, and uploads the corresponding geographical location information and the scene image data to the server.
移动终端A通过相应的账号启动或进入AR游戏,首次使用AR游戏如养殖虚拟植物的AR游戏时,服务器中没有保存过与该AR游戏相关的任何数据,需要移动终端设置后上传至服务器。The mobile terminal A starts or enters the AR game through the corresponding account. When the AR game is used for the first time, such as the AR game of the virtual plant, the server does not store any data related to the AR game, and the mobile terminal needs to be uploaded and uploaded to the server.
例如,移动终端A启动后,发送其GPS数据到服务器,然后根据服务器发送的图像采集指令启动摄像头,发送摄像头视频流到服务器。For example, after the mobile terminal A starts up, it sends its GPS data to the server, and then starts the camera according to the image acquisition instruction sent by the server, and sends the camera video stream to the server.
步骤S504:服务器接收并保存移动终端A上传的地理位置信息和图像数据,生成AR游戏的初始化数据并发送给移动终端A。Step S504: The server receives and saves the geographical location information and image data uploaded by the mobile terminal A, generates initialization data of the AR game, and sends the initialization data to the mobile terminal A.
例如,服务器在接收到移动终端A的GPS数据后,首先查看是否存储有该GPS数据,在首次使用的情况下,服务器中不存在该GPS数据,保存该GPS数据并向移动终端A发送图像采集指令指示移动终端A上传图像数据;等待移动终端A上传视频流后,将该视频流的数据与该GPS数据建立关联;服务器从视频流中获取足够的图像数据后,将图像数据和GPS 数据对应保存,并生成养殖虚拟植物的AR游戏的初始化数据,并将该初始化数据发送给移动终端A。可选地,保存的图像数据可以是原始图像,或者,图像的特征信息,或者,图像的文本描述。For example, after receiving the GPS data of the mobile terminal A, the server first checks whether the GPS data is stored. In the case of the first use, the GPS data does not exist in the server, saves the GPS data, and sends the image collection to the mobile terminal A. The instruction instructs the mobile terminal A to upload image data; after waiting for the mobile terminal A to upload the video stream, the data of the video stream is associated with the GPS data; after the server obtains sufficient image data from the video stream, the image data and the GPS data are correspondingly The initialization data of the AR game for breeding the virtual plant is generated and generated, and the initialization data is transmitted to the mobile terminal A. Alternatively, the saved image data may be an original image, or feature information of the image, or a textual description of the image.
一般来说,由于视频流中的图像是用来生成AR游戏的入口的,因此,需要通过图像获取足够的AR游戏的使用场景的数据。例如,使用公司前台做AR游戏入口,则需要公司前台从左至右连续的图像,便于参与AR游戏的用户从不同角度拍摄公司前台的图像的时候都能正常地进入游戏。AR游戏的初始化数据至少包括AR虚拟对象及AR虚拟道具,例如,本实施例中养殖虚拟植物的AR游戏的初始化数据可以包括:植物形象的初始3D模型.以及交互设置如浇水用的水壶等。In general, since the image in the video stream is used to generate an entry for the AR game, it is necessary to acquire sufficient data of the use scene of the AR game through the image. For example, if you use the company front desk to make an AR game portal, you need a continuous image from the left to the right of the company's front desk, so that users who participate in the AR game can normally enter the game when they take images of the company's front desk from different angles. The initialization data of the AR game includes at least an AR virtual object and an AR virtual item. For example, the initialization data of the AR game for breeding the virtual plant in this embodiment may include: an initial 3D model of the plant image, and an interactive setting such as a watering kettle. .
此外,若服务器中不存在移动终端A发送的GPS数据,服务器还可以根据存储的GPS数据和移动终端A的GPS数据,查找与移动终端A的当前位置距离最近的位置,根据该位置的GPS数据向移动终端A发送提示信息,提示移动终端A距离其最近的AR游戏的位置,以指导用户参与AR游戏。In addition, if there is no GPS data sent by the mobile terminal A in the server, the server may further search for the location closest to the current location of the mobile terminal A according to the stored GPS data and the GPS data of the mobile terminal A, and the GPS data according to the location. A prompt message is sent to the mobile terminal A to prompt the mobile terminal A to the location of the nearest AR game to guide the user to participate in the AR game.
除此之外,服务器中还会保存每个GPS数据对应的AR游戏数据,其中,AR游戏数据包括用户id、AR游戏进度、AR游戏特征数据等。AR游戏特征数据可以是AR游戏虚拟对象、虚拟道具、AR游戏可操作数据,例如,虚拟植物上面有多少害虫、植物需要多少养分、植物需要多少水,等等。In addition, the AR game data corresponding to each GPS data is also stored in the server, wherein the AR game data includes the user id, the AR game progress, the AR game feature data, and the like. The AR game feature data may be AR game virtual objects, virtual items, AR game operational data, for example, how many pests are on the virtual plant, how much nutrients the plant needs, how much water the plant needs, and the like.
步骤S506:移动终端A接收AR游戏的初始化数据,根据初始化数据展示AR游戏界面。Step S506: The mobile terminal A receives the initialization data of the AR game, and displays the AR game interface according to the initialization data.
移动终端A中养殖虚拟植物的AR游戏接收到服务器返回的初始化数据后,会基于摄像头当前拍摄的图像,将初始化数据绘制到图像上,以便为用户展示AR游戏界面。After receiving the initialization data returned by the server, the AR game for breeding the virtual plant in the mobile terminal A draws the initialization data onto the image based on the image currently captured by the camera to display the AR game interface for the user.
当AR游戏的初始化过程完成后,后续包括移动终端A在内的多个移动终端可直接通过GPS数据和使用场景的图像数据进入养殖虚拟植物的AR游戏。After the initialization process of the AR game is completed, a plurality of mobile terminals including the mobile terminal A can directly enter the AR game for breeding the virtual plant through the GPS data and the image data of the use scene.
步骤S508:移动终端B触发AR游戏,获取移动终端B的地理位置信 息并发送给服务器。Step S508: The mobile terminal B triggers the AR game, acquires the geographical location information of the mobile terminal B, and sends the information to the server.
例如,移动终端B发送GPS数据到服务器。For example, the mobile terminal B transmits GPS data to the server.
需要说明的是,本实施例以移动终端B为例,说明多个移动终端情况下,除实施前述初始化的移动终端A外的其它移动终端进行AR游戏的过程,本领域技术人员应当明了的是,在实际使用中,包括移动终端A和B在内的任意参与AR游戏的移动终端均可参照移动终端B的操作进行本实施例的AR游戏操作。It should be noted that, in this embodiment, the mobile terminal B is taken as an example to describe the process of performing AR games by other mobile terminals except the mobile terminal A that performs the initialization described above in the case of multiple mobile terminals, and those skilled in the art should understand that In actual use, any mobile terminal participating in the AR game including the mobile terminals A and B can perform the AR game operation of the present embodiment with reference to the operation of the mobile terminal B.
步骤S510:服务器接收移动终端B的地理位置信息,并与服务器中存储的地理位置信息进行匹配,若匹配成功,则执行步骤S512;若匹配失败,则向移动终端B发送提示信息,提示错误。Step S510: The server receives the geographical location information of the mobile terminal B, and matches the geographical location information stored in the server. If the matching is successful, step S512 is performed; if the matching fails, the prompt information is sent to the mobile terminal B, indicating an error.
步骤S512:服务器向移动终端B发送图像采集指令。Step S512: The server sends an image acquisition instruction to the mobile terminal B.
服务器接收到移动终端B的GPS数据后,查看该GPS数据是否在服务器中存在,若存在,再查看该GPS数据是否有对应的图像数据.存在对应GPS数据的图像数据时,向移动终端B发送图像采集指令,指示移动终端B采集图像,并等待移动终端B发送采集的图像,如采集的视频流中的图像。After receiving the GPS data of the mobile terminal B, the server checks whether the GPS data exists in the server, and if so, whether the GPS data has corresponding image data. If there is image data corresponding to the GPS data, the server sends the data to the mobile terminal B. The image acquisition instruction instructs the mobile terminal B to acquire an image, and waits for the mobile terminal B to transmit the acquired image, such as an image in the collected video stream.
步骤S514:移动终端B根据图像采集指令采集所在位置的图像,并发送给服务器。Step S514: The mobile terminal B collects an image of the location according to the image acquisition instruction, and sends the image to the server.
例如,移动终端B接收到图像采集指令后,启动摄像头,发送摄像头视频流到服务器。For example, after receiving the image acquisition instruction, the mobile terminal B starts the camera and sends the camera video stream to the server.
步骤S516:服务器接收移动终端B发送的图像的图像数据,并与服务器中存储的与地理位置信息对应的图像数据进行匹配,若匹配成功,则执行步骤S518;若匹配失败,则向移动终端B发送提示信息,提示移动终端B的用户是否存在AR游戏使用场景。Step S516: The server receives the image data of the image sent by the mobile terminal B, and matches the image data corresponding to the geographical location information stored in the server. If the matching is successful, step S518 is performed; if the matching fails, the mobile terminal B is performed. Sending a prompt message prompting the user of the mobile terminal B whether there is an AR game usage scenario.
服务器等待移动终端B传回视频流后,将视频流中的图像数据与存储的图像数据进行对比。After waiting for the mobile terminal B to return the video stream, the server compares the image data in the video stream with the stored image data.
若对比成功,则进行后续步骤S518的操作;若对比失败,则向移动终端B发送场景提示。例如,公司前台为游戏入口,移动终端B的用户拍摄公司前台以后服务器并没有识别出来,但是移动终端B的GPS数据已经匹配,那么服务器会提示移动终端B的用户更近一些拍摄,或者将服务器中 保存的公司前台的图像数据中抽取几帧画面发送给移动终端B的用户,提示移动终端B的用户可以根据图像数据中的角度拍摄公司前台。If the comparison is successful, the operation of the subsequent step S518 is performed; if the comparison fails, the scene prompt is sent to the mobile terminal B. For example, the company front desk is the game entrance, the user of the mobile terminal B does not recognize the server after the company front desk is photographed, but the GPS data of the mobile terminal B has been matched, then the server will prompt the user of the mobile terminal B to take a closer shot, or the server The image data of the company front desk stored in the middle is extracted from the user of the mobile terminal B by a few frames, and the user of the mobile terminal B is prompted to photograph the company front desk according to the angle in the image data.
步骤S518:服务器向移动终端B发送AR游戏数据。Step S518: The server sends the AR game data to the mobile terminal B.
其中,上述步骤S518中,向移动终端B发送的AR游戏数据为上述地理位置信息所对应的AR游戏数据。In the above step S518, the AR game data transmitted to the mobile terminal B is the AR game data corresponding to the geographical location information.
若视频流中的图像数据与存储的图像数据对比成功,将存储在服务器中的游戏数据回传给移动终端B。If the image data in the video stream is successfully compared with the stored image data, the game data stored in the server is transmitted back to the mobile terminal B.
步骤S520:移动终端B根据AR游戏数据展示AR游戏界面。Step S520: The mobile terminal B presents the AR game interface according to the AR game data.
移动终端B等待服务器传递回游戏数据后,根据游戏数据为用户展现游戏界面。After waiting for the server to pass back the game data, the mobile terminal B presents the game interface to the user according to the game data.
AR游戏界面为AR虚拟对象和现实场景结合的界面,其中,AR虚拟对象来自服务器发送的AR游戏数据,现实场景来自移动终端B的摄像头取景。The AR game interface is an interface combining an AR virtual object and a real scene, wherein the AR virtual object is from the AR game data sent by the server, and the real scene is from the camera framing of the mobile terminal B.
步骤S522:移动终端B接收用户通过AR游戏界面进行的AR游戏操作,并将操作的信息发送给服务器。Step S522: The mobile terminal B receives the AR game operation performed by the user through the AR game interface, and transmits the operation information to the server.
步骤S524:服务器根据所述操作的信息更新AR游戏数据,并向移动终端A和B发送。Step S524: The server updates the AR game data according to the information of the operation, and transmits to the mobile terminals A and B.
步骤S526:移动终端A和B接收更新后的AR游戏数据,并更新游戏界面。Step S526: The mobile terminals A and B receive the updated AR game data and update the game interface.
AR虚拟对象根据移动终端B的用户的操作做出响应,移动终端B接收用户的操作,如果该操作为AR游戏的有效操作,则将该操作对应的信息上传到服务器,服务器接收到相应的信息后,更新AR游戏数据并在回传给移动终端B的同时也发送给移动终端A,移动终端A和B接收到更新后的数据后,会根据更新后的数据更新各自的AR游戏数据。The AR virtual object responds according to the operation of the user of the mobile terminal B, and the mobile terminal B receives the operation of the user. If the operation is an effective operation of the AR game, the information corresponding to the operation is uploaded to the server, and the server receives the corresponding information. Thereafter, the AR game data is updated and transmitted to the mobile terminal A while being transmitted back to the mobile terminal B. After receiving the updated data, the mobile terminals A and B update the respective AR game data based on the updated data.
例如,本实施例的养殖虚拟植物的AR游戏中,用户点击水壶图标对虚拟植物进行浇水;AR游戏接收到水壶图标被点击的信息,向服务器发送该水壶图标点击后对应的事件,例如“water”;服务器接收到“water”事件,若此时AR游戏对应的虚拟植物缺水为5,点击水壶图像以后,则虚拟植物缺水为4;服务器向移动终端A和B发送缺水为4对应的虚拟植物的3d 模型;AR游戏接收到3d模型变化的消息,获取新的3d模型的数据,分别绘制在移动终端A和B的游戏界面中。For example, in the AR game for breeding virtual plants in this embodiment, the user clicks on the kettle icon to water the virtual plant; the AR game receives the information that the kettle icon is clicked, and sends an event corresponding to the click of the kettle icon to the server, for example, “ The server receives the "water" event. If the virtual plant lacks water for the AR game at this time, the virtual plant water shortage is 4 after clicking the kettle image; the server sends the water shortage to the mobile terminal A and B. Corresponding virtual plant 3d model; AR game receives 3d model change message, acquires new 3d model data, and draws in the game interface of mobile terminal A and B respectively.
若还有其它用户参与该AR游戏,则服务器会将更新后的AR游戏数据发送至同时接入的多个移动终端。If there are other users participating in the AR game, the server will send the updated AR game data to a plurality of mobile terminals that are simultaneously accessed.
通过本实施例,构建了一个办公室种植物的AR游戏。首先由一个用户使用移动终端上传AR游戏的位置数据,并启动摄像头扫描该位置数据对应的一个具体的位置,例如公司前台,来初始化整个AR游戏。然后,其他的用户使用各自的移动终端上传位置数据并启动摄像头再次扫描该位置如公司前台即可进入AR游戏。同时,该AR游戏具有多人共同协同的特性以及社交性,可以有效满足用户的社交需要,提升用户使用体验。Through the present embodiment, an AR game for an office plant is constructed. First, a user uploads the location data of the AR game using the mobile terminal, and starts a camera to scan a specific location corresponding to the location data, such as a company front desk, to initialize the entire AR game. Then, other users use their respective mobile terminals to upload location data and launch the camera to scan the location again, such as the company front desk, to enter the AR game. At the same time, the AR game has the characteristics of multi-person collaboration and sociality, which can effectively meet the social needs of users and enhance the user experience.
需要说明的是,本发明实施例提供的AR业务处理方案不仅可适用于游戏类应用场景,同样适用于其它与地理位置信息有关的AR业务场景。It should be noted that the AR service processing solution provided by the embodiment of the present invention is applicable not only to the game application scenario, but also to other AR service scenarios related to the geographic location information.
实施例六Embodiment 6
参照图6,示出了根据本发明实施例六的一种AR业务处理装置的结构框图。Referring to FIG. 6, a block diagram of a structure of an AR service processing apparatus according to Embodiment 6 of the present invention is shown.
本实施例的AR业务处理装置可以设置于服务器中,该AR业务处理装置包括:第一接收模块602,用于接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向移动终端发送图像采集指令;第二接收模块604,用于接收移动终端返回的根据图像采集指令所采集的图像数据;第一发送模块606,用于若返回的图像数据与AR业务位置信息对应的图像数据相匹配,则向移动终端发送上述AR业务位置信息所对应的AR业务数据。The AR service processing apparatus of this embodiment may be configured in a server, where the AR service processing apparatus includes: a first receiving module 602, configured to receive geographical location information sent by the mobile terminal, and if it is determined that the local geographical location information is stored The matched AR service location information is sent to the mobile terminal, and the second receiving module 604 is configured to receive the image data collected by the mobile terminal according to the image collection instruction. The first sending module 606 is configured to return When the image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is transmitted to the mobile terminal.
可选地,本发明实施例提供的装置还包括:Optionally, the apparatus provided by the embodiment of the present invention further includes:
判断模块,用于对移动终端返回的图像数据进行图像描述处理,获取所述图像数据所对应的文本描述;若所述文本描述与AR业务位置信息对应的图像描述相匹配,则判断返回的图像数据与AR业务位置信息对应的图像数据相匹配。a judging module, configured to perform image description processing on the image data returned by the mobile terminal, and obtain a text description corresponding to the image data; if the text description matches an image description corresponding to the AR service location information, determine the returned image The data matches the image data corresponding to the AR service location information.
可选地,AR业务数据包括:AR业务特征数据,AR业务特征数据包 括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。Optionally, the AR service data includes: AR service feature data, and the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
可选地,本实施例的AR业务处理装置还包括:第一更新模块608,用于在第一发送模块606向移动终端发送AR业务数据之后,接收移动终端发送的用户通过AR虚拟道具对AR虚拟对象进行操作的操作信息,根据所述操作信息更新AR虚拟对象的可操作数据;同步模块610,用于同步更新后的可操作数据到移动终端。Optionally, the AR service processing apparatus of this embodiment further includes: a first update module 608, configured to: after the first sending module 606 sends the AR service data to the mobile terminal, receive the user sent by the mobile terminal by using the AR virtual item to the AR The operation information of the virtual object is operated, and the operable data of the AR virtual object is updated according to the operation information; the synchronization module 610 is configured to synchronize the updated operational data to the mobile terminal.
可选地,第一更新模块608还用于根据更新后的可操作数据更新AR虚拟对象和/或AR虚拟道具;同步模块610还用于在同步更新后的可操作数据到移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到移动终端。Optionally, the first update module 608 is further configured to update the AR virtual object and/or the AR virtual item according to the updated operational data; the synchronization module 610 is further configured to synchronize the updated operational data to the mobile terminal, Synchronize the updated AR virtual object and/or the updated AR virtual item to the mobile terminal.
可选地,移动终端包括多个;第一更新模块608用于接收多个移动终端中的至少一个移动终端发送的用户通过AR虚拟道具对AR虚拟对象进行的至少一项操作的操作信息,根据所述至少一项操作的操作信息更新对应的AR虚拟对象的可操作数据;同步模块610用于在同步更新后的可操作数据到多个移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到多个移动终端。Optionally, the mobile terminal includes a plurality of; the first update module 608 is configured to receive, by using at least one of the plurality of mobile terminals, operation information of the at least one operation performed by the user on the AR virtual object by using the AR virtual item, according to The operation information of the at least one operation updates the operable data of the corresponding AR virtual object; the synchronization module 610 is configured to synchronize the updated AR virtual object and/or while synchronizing the updated operational data to the plurality of mobile terminals. Or updated AR virtual items to multiple mobile terminals.
具体的,上述多个移动终端可以是同时参与AR业务的多个移动终端。Specifically, the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time.
可选地,第一发送模块606还用于若移动终端返回的图像数据与AR业务位置信息对应的图像数据不匹配,则将与AR业务位置信息对应的图像数据发送给移动终端,以提示移动终端根据发送的图像数据进行图像采集。Optionally, the first sending module 606 is further configured to: if the image data returned by the mobile terminal does not match the image data corresponding to the AR service location information, send the image data corresponding to the AR service location information to the mobile terminal to prompt the mobile The terminal performs image acquisition based on the transmitted image data.
可选地,第一发送模块606还用于若确定本地未存储有与所述地理位置信息相匹配的AR业务位置信息,则从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;向移动终端发送包括最接近的AR业务位置信息的提示信息。Optionally, the first sending module 606 is further configured to: if it is determined that the AR service location information that matches the geographic location information is not locally stored, look up the stored AR service location information and the closest to the geographic location information. AR service location information; sending prompt information including the closest AR service location information to the mobile terminal.
本实施例的AR业务处理装置用于实现前述多个方法实施例中相应的服务器端的AR业务处理方法,并具有相应的方法实施例的有益效果,在此不再赘述。The AR service processing apparatus in this embodiment is used to implement the corresponding server-side AR service processing method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
实施例七Example 7
参照图7,示出了根据本发明实施例七的一种AR业务处理装置的结构框图。Referring to FIG. 7, a block diagram of a structure of an AR service processing apparatus according to Embodiment 7 of the present invention is shown.
本实施例的AR业务处理装置可以设置在任意适当的移动终端中,该AR业务处理装置包括:第一获取模块702,用于获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;第三接收模块704,用于接收服务器在确认所述地理位置信息后发送的图像采集指令;第二发送模块706,用于根据图像采集指令采集图像数据,将所述图像数据发送给服务器;第四接收模块708,用于接收服务器在确认所述图像数据后发送的AR业务数据;展示模块710,用于根据AR业务数据进行AR业务展示。The AR service processing apparatus of this embodiment may be disposed in any suitable mobile terminal, and the AR service processing apparatus includes: a first obtaining module 702, configured to acquire geographic location information of the mobile terminal, and send the geographical location information to the server. The third receiving module 704 is configured to receive an image collection instruction sent by the server after confirming the geographical location information; the second sending module 706 is configured to collect image data according to the image collection instruction, and send the image data to the server; The fourth receiving module 708 is configured to receive AR service data that is sent by the server after confirming the image data, and the display module 710 is configured to perform AR service display according to the AR service data.
具体的,上述确认地理位置,可以是确认服务器中是否存储有与上述地理位置信息相匹配的AR业务地理位置信息;上述确定图像数据,可以是确定该图像数据是否与上述AR地理位置信息所对应的图像数据相匹配。Specifically, the confirming the geographic location may be: determining whether the AR service geographic location information that matches the geographical location information is stored in the server; the determining the image data may be determining whether the image data corresponds to the AR geographic location information. The image data matches.
可选地,上述展示模块710,用于在所述移动终端当前采集的真实应用场景图像上,渲染和绘制所述AR业务数据,以实现所述AR业务展示。Optionally, the display module 710 is configured to render and render the AR service data on the real application scene image currently collected by the mobile terminal to implement the AR service display.
可选地,AR业务数据包括:AR业务特征数据,AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。Optionally, the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
可选地,本实施例的AR业务处理装置还包括:第三发送模块712,用于在展示模块710根据AR业务数据进行AR业务展示之后,根据所述可操作数据,使用AR虚拟道具对AR虚拟对象进行操作,并将所述操作的操作信息发送给服务器。Optionally, the AR service processing apparatus of this embodiment further includes: a third sending module 712, configured to use the AR virtual prop to the AR according to the operable data after the displaying module 710 performs the AR service display according to the AR service data. The virtual object operates and sends operational information of the operation to the server.
可选地,本实施例的AR数据处理装置还包括:第五接收模块714,用于在第三发送模块712将所述操作的操作信息发送给服务器之后,接收服务器发送的更新数据,其中,所述更新数据除包括更新后的可操作数据之外,还包括更新后的AR虚拟对象和/或更新后的AR虚拟道具,所述更新数据由服务器根据包括当前移动终端在内的多个移动终端使用AR虚拟 道具对AR虚拟对象进行操作的操作信息生成;第二更新模块716,用于根据所述更新数据进行AR业务展示。Optionally, the AR data processing apparatus of the embodiment further includes: a fifth receiving module 714, configured to: after the third sending module 712 sends the operation information of the operation to the server, receive the update data sent by the server, where The update data includes, in addition to the updated operational data, an updated AR virtual object and/or an updated AR virtual item, the update data being performed by the server according to multiple movements including the current mobile terminal. The operation information generated by the terminal to operate the AR virtual object by using the AR virtual item is generated. The second update module 716 is configured to perform the AR service display according to the update data.
具体的,上述多个移动终端可以为同时参与上述AR业务的多个移动终端;相应的,上述更新数据由服务器根据包括当前移动终端在内的同时参所述AR业务的多个移动终端中的至少一个移动终端使用所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息生成。Specifically, the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data is used by the server according to the multiple mobile terminals that refer to the AR service, including the current mobile terminal. The operation information generated by the at least one mobile terminal to operate the AR virtual object using the AR virtual item is generated.
可选地,展示模块710还用于在移动终端上显示多个移动终端对AR虚拟对象进行的操作的操作信息,以及,所述操作对应的移动终端的用户信息。Optionally, the display module 710 is further configured to display operation information of operations performed by the multiple mobile terminals on the AR virtual object on the mobile terminal, and user information of the mobile terminal corresponding to the operation.
具体的,上述展示模块710可以在移动终端上显示多个移动终端中的任意移动终端对所述AR虚拟对象进行的所述操作的操作信息,以及,所述操作对应的移动终端的用户信息。Specifically, the display module 710 may display, on the mobile terminal, operation information of the operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation.
本实施例的AR业务处理装置用于实现前述多个方法实施例中相应的移动终端的AR业务处理方法,并具有相应的方法实施例的有益效果,在此不再赘述。The AR service processing apparatus of this embodiment is used to implement the AR service processing method of the corresponding mobile terminal in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
实施例八Example eight
参照图8,示出了根据本发明实施例八的一种服务器的结构示意图,本发明具体实施例并不对服务器的具体实现做限定。Referring to FIG. 8, a schematic structural diagram of a server according to Embodiment 8 of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the server.
如图8所示,该服务器可以包括:处理器(processor)802、通信接口(Communications Interface)804、存储器(memory)806、以及通信总线808。As shown in FIG. 8, the server may include a processor 802, a Communications Interface 804, a memory 806, and a communication bus 808.
其中:among them:
处理器802、通信接口804、以及存储器806通过通信总线808完成相互间的通信。Processor 802, communication interface 804, and memory 806 complete communication with one another via communication bus 808.
通信接口804,用于与其它服务器或移动终端进行通信。The communication interface 804 is configured to communicate with other servers or mobile terminals.
处理器802,用于执行程序810,具体可以执行上述服务器侧的AR业务处理方法实施例中的相关步骤。The processor 802 is configured to execute the program 810. Specifically, the related steps in the foregoing embodiment of the AR service processing method on the server side may be performed.
具体地,程序810可以包括程序代码,该程序代码包括计算机操作指令。In particular, program 810 can include program code, the program code including computer operating instructions.
处理器802可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。移动终端包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The mobile terminal includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
存储器806,用于存放程序810。存储器806可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 806 is configured to store the program 810. Memory 806 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
程序810具体可以用于使得处理器802执行以下操作:接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向移动终端发送图像采集指令;接收移动终端返回的根据所述图像采集指令所采集的图像数据;若返回的图像数据与AR业务位置信息对应的图像数据相匹配,则向移动终端发送所述AR业务位置信息所对应的AR业务数据。The program 810 may be specifically configured to: the processor 802: receive the geographic location information sent by the mobile terminal, and if it is determined that the AR service location information that matches the geographic location information is stored locally, send an image collection instruction to the mobile terminal. Receiving image data collected according to the image acquisition instruction returned by the mobile terminal; if the returned image data matches the image data corresponding to the AR service location information, transmitting the AR corresponding to the AR service location information to the mobile terminal Business data.
在一种可选的实施方式中,程序810还用于使得处理器802通过如下步骤判断返回的所述图像数据与所述AR业务位置信息对应的图像数据是否相匹配:In an optional implementation manner, the program 810 is further configured to cause the processor 802 to determine whether the returned image data matches the image data corresponding to the AR service location information by:
对返回的所述图像数据进行图像描述处理,获取所述图像数据所对应的文本描述;若所述文本描述与AR业务位置信息对应的图像描述相匹配,则判断返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配。Performing image description processing on the returned image data, and acquiring a text description corresponding to the image data; if the text description matches an image description corresponding to the AR service location information, determining the returned image data and the The image data corresponding to the AR service location information is matched.
在一种可选的实施方式中,AR业务数据包括:AR业务特征数据,AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。In an optional implementation manner, the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
在一种可选的实施方式中,程序810还用于使得处理器802接收移动终端发送的用户通过AR虚拟道具对AR虚拟对象进行操作的操作信息,根据所述操作信息更新AR虚拟对象的可操作数据;同步更新后的可操作数据到移动终端。In an optional implementation manner, the program 810 is further configured to: the processor 802 is configured to receive, by the mobile terminal, operation information that is operated by the user by using the AR virtual item to operate the AR virtual object, and update the AR virtual object according to the operation information. Operation data; synchronously updated operational data to the mobile terminal.
在一种可选的实施方式中,程序810还用于使得处理器802根据更新 后的可操作数据更新AR虚拟对象和/或AR虚拟道具;在同步更新后的可操作数据到所述移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述移动终端。In an optional implementation, the program 810 is further configured to cause the processor 802 to update the AR virtual object and/or the AR virtual item according to the updated operational data; and the operational data after the synchronization update to the mobile terminal At the same time, the updated AR virtual object and/or the updated AR virtual item are synchronized to the mobile terminal.
在一种可选的实施方式中,移动终端包括多个;程序810还用于使得处理器802在接收移动终端通过AR虚拟道具对AR虚拟对象进行的操作,根据所述操作更新AR虚拟对象的可操作数据时,接收多个移动终端中的至少一个移动终端发送的用户通过AR虚拟道具对AR虚拟对象进行的至少一项操作的操作信息,根据至少一项操作的操作信息更新对应的AR虚拟对象的可操作数据;程序810还用于使得处理器802在同步更新后的可操作数据到所述多个移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述多个移动终端。In an optional implementation manner, the mobile terminal includes multiple; the program 810 is further configured to enable the processor 802 to receive an operation of the AR virtual object by the AR virtual prop by the mobile terminal, and update the AR virtual object according to the operation. When the data is operable, receiving operation information of at least one operation performed by the at least one of the plurality of mobile terminals by the user on the AR virtual object by the AR virtual item, and updating the corresponding AR virtual according to the operation information of the at least one operation The operable data of the object; the program 810 is further configured to cause the processor 802 to synchronize the updated AR virtual object and/or the updated AR virtual prop to the synchronously updated operational data to the plurality of mobile terminals The plurality of mobile terminals.
具体的,上述多个移动终端可以是同时参与AR业务的多个移动终端。Specifically, the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time.
在一种可选的实施方式中,程序810还用于使得处理器802在若返回的图像数据与AR业务位置信息对应的图像数据不匹配,则将与AR业务位置信息对应的图像数据发送给移动终端,以提示移动终端根据发送的图像数据进行图像采集。In an optional implementation manner, the program 810 is further configured to: when the processor 802 does not match the image data corresponding to the returned AR and the AR service location information, send the image data corresponding to the AR service location information to The mobile terminal is configured to prompt the mobile terminal to perform image collection according to the transmitted image data.
在一种可选的实施方式中,程序810还用于使得处理器802在若确定本地未存储有与所述地理位置信息相匹配的AR业务位置信息,则从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;向移动终端发送包括最接近的AR业务位置信息的提示信息。In an optional implementation, the program 810 is further configured to enable the processor 802 to search from the stored AR service location information if it is determined that the AR service location information that matches the geographic location information is not stored locally. The AR service location information closest to the geographic location information; the prompt information including the closest AR service location information is sent to the mobile terminal.
程序810中各步骤的具体实现可以参见上述服务器侧的AR业务处理方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。For the specific implementation of the steps in the program 810, refer to the corresponding steps in the foregoing embodiment of the AR service processing method on the server side and the corresponding description in the unit, and details are not described herein. A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the module described above may be referred to the corresponding process description in the foregoing method embodiment, and details are not described herein again.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位 置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本发明实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例九Example nine
参照图9,示出了根据本发明实施例九的一种移动终端的结构示意图,本发明具体实施例并不对移动终端的具体实现做限定。Referring to FIG. 9, a schematic structural diagram of a mobile terminal according to Embodiment 9 of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the mobile terminal.
如图9所示,该移动终端可以包括:处理器(processor)902、通信接口(Communications Interface)904、存储器(memory)906、以及通信总线908。As shown in FIG. 9, the mobile terminal can include a processor 902, a communications interface 904, a memory 906, and a communications bus 908.
其中:among them:
处理器902、通信接口904、以及存储器906通过通信总线908完成相互间的通信。Processor 902, communication interface 904, and memory 906 complete communication with one another via communication bus 908.
通信接口904,用于与其它移动终端或服务器进行通信。 Communication interface 904 is for communicating with other mobile terminals or servers.
处理器902,用于执行程序910,具体可以执行上述移动终端侧的AR业务处理方法实施例中的相关步骤。The processor 902 is configured to execute the program 910, and specifically, the related steps in the foregoing embodiment of the AR service processing method on the mobile terminal side.
具体地,程序910可以包括程序代码,该程序代码包括计算机操作指令。In particular, program 910 can include program code, the program code including computer operating instructions.
处理器902可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。移动终端包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 902 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The mobile terminal includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
存储器906,用于存放程序910。存储器906可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 906 is configured to store the program 910. Memory 906 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
程序910具体可以用于使得处理器902执行以下操作:获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;接收服务器在确认 所述地理位置信息后发送的图像采集指令;根据图像采集指令采集图像数据,将所述图像数据发送给服务器;接收服务器在确认所述图像数据后发送的AR业务数据;根据AR业务数据进行AR业务展示。The program 910 may be specifically configured to enable the processor 902 to: obtain geographic location information of the mobile terminal, send the geographic location information to the server, and receive an image collection instruction sent by the server after confirming the geographical location information; The acquisition instruction collects image data, and sends the image data to the server; the AR service data sent by the server after confirming the image data; and the AR service presentation according to the AR service data.
具体的,上述确认地理位置,可以是确认服务器中是否存储有与上述地理位置信息相匹配的AR业务地理位置信息;上述确定图像数据,可以是确定该图像数据是否与上述AR地理位置信息所对应的图像数据相匹配。Specifically, the confirming the geographic location may be: determining whether the AR service geographic location information that matches the geographical location information is stored in the server; the determining the image data may be determining whether the image data corresponds to the AR geographic location information. The image data matches.
具体的,上述根据AR业务数据进行AR业务展示,包括:在所述移动终端当前采集的真实应用场景图像上,渲染和绘制所述AR业务数据,以实现所述AR业务展示。Specifically, the performing the AR service display according to the AR service data includes: rendering and rendering the AR service data on the real application scene image currently collected by the mobile terminal to implement the AR service display.
在一种可选的实施方式中,AR业务数据包括:AR业务特征数据,AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。In an optional implementation manner, the AR service data includes: AR service feature data, where the AR service feature data includes at least one of the following: an AR virtual object, an AR virtual item, and operable data for the AR virtual object.
在一种可选的实施方式中,程序910还用于使得处理器902在根据AR业务数据进行AR业务展示之后,根据所述可操作数据,使用AR虚拟道具对AR虚拟对象进行操作,并将所述操作的操作信息发送给服务器。In an optional implementation manner, the program 910 is further configured to: after the processor 902 performs the AR service presentation according to the AR service data, use the AR virtual item to operate the AR virtual object according to the operable data, and The operational information of the operation is sent to the server.
在一种可选的实施方式中,程序910还用于使得处理器902在根据AR业务数据进行AR业务展示之后,接收服务器发送的更新数据,其中,所述更新数据除包括更新后的可操作数据之外,还包括更新后的AR虚拟对象和/或更新后的AR虚拟道具,所述更新数据由服务器根据包括当前移动终端在内的多个移动终端使用AR虚拟道具对AR虚拟对象进行操作的操作信息生成;根据所述更新数据进行AR业务展示。In an optional implementation, the program 910 is further configured to: after receiving the AR service presentation according to the AR service data, the processor 902 receives the update data sent by the server, where the update data includes the updated operation. In addition to the data, the updated AR virtual object and/or the updated AR virtual item are further included, and the update data is operated by the server to use the AR virtual item to operate the AR virtual object according to the plurality of mobile terminals including the current mobile terminal. The operation information is generated; and the AR service is displayed according to the update data.
具体的,上述多个移动终端可以为同时参与上述AR业务的多个移动终端;相应的,上述更新数据由服务器根据包括当前移动终端在内的同时参所述AR业务的多个移动终端中的至少一个移动终端使用所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息生成。Specifically, the multiple mobile terminals may be multiple mobile terminals that participate in the AR service at the same time; correspondingly, the update data is used by the server according to the multiple mobile terminals that refer to the AR service, including the current mobile terminal. The operation information generated by the at least one mobile terminal to operate the AR virtual object using the AR virtual item is generated.
在一种可选的实施方式中,程序910还用于使得处理器902在移动终端上显示多个移动终端对AR虚拟对象进行的操作的操作信息,以及,所述操作对应的移动终端的用户信息。In an optional implementation manner, the program 910 is further configured to enable the processor 902 to display operation information of operations performed by the plurality of mobile terminals on the AR virtual object on the mobile terminal, and the user of the mobile terminal corresponding to the operation. information.
具体的,上述展示模块710可以在移动终端上显示多个移动终端中的任意移动终端对所述AR虚拟对象进行的所述操作的操作信息,以及,所述操作对应的移动终端的用户信息。Specifically, the display module 710 may display, on the mobile terminal, operation information of the operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation.
程序910中各步骤的具体实现可以参见上述移动终端侧的AR业务处理方法实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。For the specific implementation of the steps in the program 910, reference may be made to the corresponding steps in the foregoing embodiment of the AR service processing method on the mobile terminal side, and the corresponding description in the unit is not described herein. A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the module described above may be referred to the corresponding process description in the foregoing method embodiment, and details are not described herein again.
通过本实施例,在实现AR业务时,需要将地理位置信息和图像数据相结合,其中,图像数据应当是地理位置信息所指示的位置的图像,如办公室前台的图像等,该图像可以描述AR业务的实现场景。若地理位置信息所指示的地理位置不属于可进行设定AR业务的位置,或者,若地理位置信息所指示的地理位置虽然属于可进行设定AR业务的位置,但不存在该AR业务的实现场景(没有匹配的图像数据),均无法实现相应的AR业务。可见,通过本发明实施例,将地理位置、AR业务场景图像和AR业务关联起来,使得AR技术可以有效应用于与位置有关的游戏类应用中,提升用户使用体验。With the embodiment, when the AR service is implemented, the geographic location information and the image data need to be combined, wherein the image data should be an image of a location indicated by the geographic location information, such as an image of an office foreground, and the image can describe the AR. The implementation scenario of the business. If the geographical location indicated by the geographical location information does not belong to a location where the AR service can be set, or if the geographical location indicated by the geographical location information belongs to a location where the AR service can be set, the implementation of the AR service does not exist. The scenario (without matching image data) cannot implement the corresponding AR service. It can be seen that, by using the embodiment of the present invention, the geographic location, the AR service scenario image, and the AR service are associated, so that the AR technology can be effectively applied to the game-related application related to the location, thereby improving the user experience.
实施例十Example ten
本说明书实施例还提供了一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行任一上述实施例所述的AR业务处理方法。The embodiment of the present specification further provides a computer readable storage medium carrying one or more computer instruction programs thereon, the one or more processors executing when the computer instruction program is executed by one or more processors The AR service processing method described in any of the above embodiments.
需要指出,根据实施的需要,可将本发明实施例中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本发明实施例的目的。It should be noted that the various components/steps described in the embodiments of the present invention may be split into more components/steps according to the needs of the implementation, or two or more components/steps or partial operations of the components/steps may be combined into one. New components/steps to achieve the objectives of embodiments of the present invention.
上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或 非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的二维码数据处理方法。此外,当通用计算机访问用于实现在此示出的二维码数据处理方法的代码时,代码的执行将通用计算机转换为用于执行在此示出的二维码数据处理方法的专用计算机。The above method according to an embodiment of the present invention may be implemented in hardware, firmware, or implemented as software or computer code that may be stored in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or implemented by The network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable Such software processing on a recording medium of dedicated hardware such as an ASIC or an FPGA. It will be understood that a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is The two-dimensional code data processing method described herein is implemented when the processor or hardware accesses and executes. Moreover, when a general purpose computer accesses code for implementing the two-dimensional code data processing method shown herein, execution of the code converts the general purpose computer into a special purpose computer for executing the two-dimensional code data processing method shown herein.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。Those of ordinary skill in the art will appreciate that the elements and method steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
以上实施方式仅用于说明本发明实施例,而并非对本发明实施例的限制,有关技术领域的普通技术人员,在不脱离本发明实施例的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明实施例的范畴,本发明实施例的专利保护范围应由权利要求限定。The above embodiments are only used to illustrate the embodiments of the present invention, and are not intended to limit the embodiments of the present invention, and those skilled in the art can also make various kinds without departing from the spirit and scope of the embodiments of the present invention. Variations and modifications, therefore, all equivalent technical solutions are also within the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (32)

  1. 一种增强现实AR业务处理方法,包括:An augmented reality AR service processing method, comprising:
    接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向所述移动终端发送图像采集指令;Receiving geographical location information sent by the mobile terminal, if it is determined that the AR service location information that matches the geographical location information is stored locally, sending an image collection instruction to the mobile terminal;
    接收所述移动终端返回的根据所述图像采集指令所采集的图像数据;Receiving image data collected by the mobile terminal according to the image acquisition instruction;
    若返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配,则向所述移动终端发送所述AR业务位置信息所对应的AR业务数据。And if the returned image data matches the image data corresponding to the AR service location information, the AR service data corresponding to the AR service location information is sent to the mobile terminal.
  2. 根据权利要求1所述的方法,其中,通过如下步骤判断返回的所述图像数据与所述AR业务位置信息对应的图像数据是否相匹配:The method according to claim 1, wherein it is judged whether the returned image data matches the image data corresponding to the AR service location information by:
    对返回的所述图像数据进行图像描述处理,获取所述图像数据所对应的文本描述;Performing image description processing on the returned image data, and acquiring a text description corresponding to the image data;
    若所述文本描述与所述AR业务位置信息对应的图像描述相匹配,则判断返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配。And if the text description matches the image description corresponding to the AR service location information, determining that the returned image data matches the image data corresponding to the AR service location information.
  3. 根据权利要求1或2所述的方法,其中,所述AR业务数据包括:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。The method according to claim 1 or 2, wherein the AR service data comprises: AR service feature data, the AR service feature data comprising at least one of: an AR virtual object, an AR virtual item, and the AR virtual The actionable data of the object.
  4. 根据权利要求3所述的方法,其中,在向所述移动终端发送所述AR业务位置信息所对应的AR业务数据之后,所述方法还包括:The method of claim 3, wherein after the sending the AR service data corresponding to the AR service location information to the mobile terminal, the method further comprises:
    接收所述移动终端发送的用户通过所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息,根据所述操作信息更新所述AR虚拟对象的可操作数据;Receiving, by the mobile terminal, operation information that the user operates the AR virtual object by using the AR virtual item, and updating the operable data of the AR virtual object according to the operation information;
    同步更新后的可操作数据到所述移动终端。Synchronizing the updated operational data to the mobile terminal.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method of claim 4 wherein the method further comprises:
    根据更新后的可操作数据更新所述AR虚拟对象和/或AR虚拟道具;Updating the AR virtual object and/or the AR virtual item according to the updated operational data;
    在同步更新后的可操作数据到所述移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述移动终端。Simultaneously updating the updated AR virtual object and/or the updated AR virtual item to the mobile terminal while synchronizing the updated operational data to the mobile terminal.
  6. 根据权利要求5所述的方法,其中,同时参与AR业务的所述移动终端的数目为多个;The method according to claim 5, wherein the number of the mobile terminals participating in the AR service simultaneously is plural;
    所述接收所述移动终端发送的用户通过所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息,根据所述操作信息更新所述AR虚拟对象的可操作数据,包括:And the receiving, by the mobile terminal, the operation information that is performed by the user by using the AR virtual item to operate the AR virtual object, and updating the operable data of the AR virtual object according to the operation information, including:
    接收多个移动终端中的至少一个移动终端发送的所述用户通过所述AR虚拟道具对所述AR虚拟对象进行的至少一项操作的操作信息,根据所述至少一项操作的操作信息更新对应的所述AR虚拟对象的可操作数据;Receiving, by the at least one of the plurality of mobile terminals, operation information of the at least one operation performed by the user on the AR virtual object by using the AR virtual item, and updating the operation information according to the operation information of the at least one operation Operational data of the AR virtual object;
    所述在同步更新后的可操作数据到所述移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述移动终端,包括:And the synchronizing the updated AR virtual object and/or the updated AR virtual item to the mobile terminal, including:
    在同步更新后的可操作数据到所述多个移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述多个移动终端。Simultaneously updating the updated AR virtual object and/or the updated AR virtual item to the plurality of mobile terminals while synchronizing the updated operational data to the plurality of mobile terminals.
  7. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    若返回的所述图像数据与所述AR业务位置信息对应的图像数据不匹配,则将与所述AR业务位置信息对应的图像数据发送给所述移动终端,以提示所述移动终端根据发送的所述图像数据进行图像采集。And if the returned image data does not match the image data corresponding to the AR service location information, sending image data corresponding to the AR service location information to the mobile terminal, to prompt the mobile terminal to send according to the The image data is subjected to image acquisition.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    若确定本地未存储有与所述地理位置信息相匹配的AR业务位置信息,则从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;If it is determined that the AR service location information that matches the geographical location information is not stored locally, the AR service location information that is closest to the geographic location information is searched from the stored AR service location information;
    向所述移动终端发送包括所述最接近的AR业务位置信息的提示信息。Sending prompt information including the closest AR service location information to the mobile terminal.
  9. 一种增强现实AR业务处理方法,包括:An augmented reality AR service processing method, comprising:
    获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;Obtaining geographic location information of the mobile terminal, and sending the geographical location information to the server;
    接收所述服务器在确认存储有与所述地理位置信息相匹配的AR业务地理位置信息后发送的图像采集指令;Receiving an image collection instruction sent by the server after confirming that the geographic location information of the AR service matching the geographical location information is stored;
    根据所述图像采集指令采集图像数据,将所述图像数据发送给所述服务器;Acquiring image data according to the image acquisition instruction, and transmitting the image data to the server;
    接收所述服务器在确认所述图像数据与所述AR地理位置信息所对应的图像数据相匹配后发送的AR业务数据;Receiving, by the server, AR service data that is sent after confirming that the image data matches image data corresponding to the AR geographic location information;
    根据所述AR业务数据进行AR业务展示。Performing an AR service display according to the AR service data.
  10. 如权利要求9所述的方法,其中,所述根据所述AR业务数据进行AR业务展示,包括:The method of claim 9, wherein the performing the AR service presentation according to the AR service data comprises:
    在所述移动终端当前采集的真实场景图像上,渲染和绘制所述AR业务数据,以实现所述AR业务展示。The AR service data is rendered and rendered on the real scene image currently collected by the mobile terminal to implement the AR service display.
  11. 根据权利要求9所述的方法,其中,所述AR业务数据包括:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。The method according to claim 9, wherein the AR service data comprises: AR service feature data, the AR service feature data comprising at least one of: an AR virtual object, an AR virtual item, and an AR virtual object. Operational data.
  12. 根据权利要求11所述的方法,其中,在所述根据所述AR业务数据进行AR业务展示之后,所述方法还包括:The method of claim 11, wherein after the performing the AR service presentation according to the AR service data, the method further comprises:
    根据所述可操作数据,使用所述AR虚拟道具对所述AR虚拟对象进行操作,并将所述操作的操作信息发送给所述服务器。And operating, according to the operable data, the AR virtual object by using the AR virtual item, and transmitting operation information of the operation to the server.
  13. 根据权利要求11所述的方法,其中,在所述将所述操作的操作信息发送给所述服务器之后,所述方法还包括:The method according to claim 11, wherein after the transmitting the operation information of the operation to the server, the method further comprises:
    接收所述服务器发送的更新数据,其中,所述更新数据除包括更新后的可操作数据之外,还包括更新后的AR虚拟对象和/或更新后的AR虚拟道具,所述更新数据由所述服务器根据包括所述移动终端在内的同时参与所述AR业务的多个移动终端中的至少一个移动终端使用所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息生成;Receiving update data sent by the server, where the update data includes an updated AR virtual object and/or an updated AR virtual item, in addition to the updated operational data, the update data is Generating, by the server, operation information for operating the AR virtual object by using the AR virtual prop by at least one of the plurality of mobile terminals that participate in the AR service, including the mobile terminal;
    根据所述更新数据进行AR业务展示。The AR service is displayed according to the updated data.
  14. 根据权利要求13所述的方法,其中,所述方法还包括:The method of claim 13 wherein the method further comprises:
    在所述移动终端上显示所述多个移动终端中的任意移动终端对所述AR虚拟对象进行的所述操作的操作信息,以及,所述操作对应的移动终端的用户信息。And displaying, on the mobile terminal, operation information of the operation performed by any one of the plurality of mobile terminals on the AR virtual object, and user information of the mobile terminal corresponding to the operation.
  15. 一种增强现实AR业务处理装置,包括:An augmented reality AR service processing device, comprising:
    第一接收模块,用于接收移动终端发送的地理位置信息,若确定本地存储有与所述地理位置信息相匹配的AR业务位置信息,则向所述移动终端发送图像采集指令;The first receiving module is configured to receive the geographic location information sent by the mobile terminal, and if it is determined that the AR service location information that matches the geographic location information is stored locally, send an image collection instruction to the mobile terminal;
    第二接收模块,用于接收所述移动终端返回的根据所述图像采集指令所采集的图像数据;a second receiving module, configured to receive image data collected by the mobile terminal according to the image capturing instruction;
    第一发送模块,用于若返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配,则向所述移动终端发送所述AR业务位置信息所对应的AR业务数据。The first sending module is configured to: if the returned image data matches the image data corresponding to the AR service location information, send the AR service data corresponding to the AR service location information to the mobile terminal.
  16. 根据权利要求15所述的装置,其中,所述装置还包括:The apparatus of claim 15 wherein said apparatus further comprises:
    判断模块,用于对返回的所述图像数据进行图像描述处理,获取所述图像数据所对应的文本描述;若所述文本描述与所述AR业务位置信息对应的图像描述相匹配,则判断返回的所述图像数据与所述AR业务位置信息对应的图像数据相匹配。a judging module, configured to perform image description processing on the returned image data, and obtain a text description corresponding to the image data; if the text description matches an image description corresponding to the AR service location information, determine the return The image data matches the image data corresponding to the AR service location information.
  17. 根据权利要求15或16所述的装置,其中,所述AR业务数据包括:AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。The apparatus according to claim 15 or 16, wherein the AR service data comprises: AR service feature data, the AR service feature data comprising at least one of: an AR virtual object, an AR virtual item, and the AR virtual The actionable data of the object.
  18. 根据权利要求17所述的装置,其中,所述装置还包括:The apparatus of claim 17 wherein said apparatus further comprises:
    第一更新模块,用于在所述第一发送模块向所述移动终端发送AR业务数据之后,接收所述移动终端发送的用户通过所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息,根据所述操作信息更新所述AR虚拟对象的可操作数据;a first update module, configured to: after the first sending module sends the AR service data to the mobile terminal, receive operation information that the user sent by the mobile terminal to operate the AR virtual object by using the AR virtual item Updating the operable data of the AR virtual object according to the operation information;
    同步模块,用于同步更新后的可操作数据到所述移动终端。And a synchronization module, configured to synchronize the updated operational data to the mobile terminal.
  19. 根据权利要求18所述的装置,其中,The device according to claim 18, wherein
    所述第一更新模块,还用于根据更新后的可操作数据更新所述AR虚拟对象和/或AR虚拟道具;The first update module is further configured to update the AR virtual object and/or the AR virtual item according to the updated operational data;
    所述同步模块,还用于在同步更新后的可操作数据到所述移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述移动终端。The synchronization module is further configured to synchronize the updated AR virtual object and/or the updated AR virtual item to the mobile terminal while synchronizing the updated operational data to the mobile terminal.
  20. 根据权利要求19所述的装置,其中,同时参与AR业务的所述移动终端的数目为多个;The apparatus according to claim 19, wherein the number of the mobile terminals participating in the AR service simultaneously is plural;
    所述第一更新模块,用于接收多个移动终端中的至少一个移动终端发送的所述用户通过所述AR虚拟道具对所述AR虚拟对象进行的至少一项 操作的操作信息,根据所述至少一项操作的操作信息更新对应的所述AR虚拟对象的可操作数据;The first update module is configured to receive, by using at least one of the plurality of mobile terminals, operation information of the at least one operation performed by the user on the AR virtual object by using the AR virtual item, according to the The operation information of the at least one operation updates the operable data of the corresponding AR virtual object;
    所述同步模块,用于在同步更新后的可操作数据到所述多个移动终端的同时,同步更新后的AR虚拟对象和/或更新后的AR虚拟道具到所述多个移动终端。The synchronization module is configured to synchronize the updated AR virtual object and/or the updated AR virtual item to the plurality of mobile terminals while synchronizing the updated operational data to the plurality of mobile terminals.
  21. 根据权利要求15所述的装置,其中,所述第一发送模块,还用于若返回的所述图像数据与所述AR业务位置信息对应的图像数据不匹配,则将与所述AR业务位置信息对应的图像数据发送给所述移动终端,以提示所述移动终端根据发送的所述图像数据进行图像采集。The device according to claim 15, wherein the first sending module is further configured to: if the returned image data does not match the image data corresponding to the AR service location information, The image data corresponding to the information is sent to the mobile terminal to prompt the mobile terminal to perform image collection according to the transmitted image data.
  22. 根据权利要求15所述的装置,其中,所述第一发送模块,还用于若确定本地未存储有与所述地理位置信息相匹配的AR业务位置信息,则从存储的AR业务位置信息中查找与所述地理位置信息最接近的AR业务位置信息;向所述移动终端发送包括所述最接近的AR业务位置信息的提示信息。The device according to claim 15, wherein the first sending module is further configured to: if it is determined that the AR service location information that matches the geographical location information is not stored locally, from the stored AR service location information Finding AR service location information that is closest to the geographic location information; and transmitting, to the mobile terminal, prompt information including the closest AR service location information.
  23. 一种增强现实AR业务处理装置,包括:An augmented reality AR service processing device, comprising:
    第一获取模块,用于获取移动终端的地理位置信息,将所述地理位置信息发送给服务器;a first acquiring module, configured to acquire geographic location information of the mobile terminal, and send the geographical location information to a server;
    第三接收模块,用于接收所述服务器在确认存储有与所述地理位置信息相匹配的AR业务地理位置信息后发送的图像采集指令;a third receiving module, configured to receive an image collection instruction sent by the server after confirming that the geographic location information of the AR service that matches the geographical location information is stored;
    第二发送模块,用于根据所述图像采集指令采集图像数据,将所述图像数据发送给所述服务器;a second sending module, configured to collect image data according to the image capturing instruction, and send the image data to the server;
    第四接收模块,用于接收所述服务器在确认所述图像数据与所述AR地理位置信息所对应的图像数据相匹配后发送的AR业务数据;a fourth receiving module, configured to receive, by the server, AR service data that is sent after confirming that the image data matches image data corresponding to the AR geographic location information;
    展示模块,用于根据所述AR业务数据进行AR业务展示。And a display module, configured to perform AR service presentation according to the AR service data.
  24. 根据权利要求23所述的装置,其中,The device according to claim 23, wherein
    所述展示模块,用于在所述移动终端当前采集的真实场景图像上,渲染和绘制所述AR业务数据,以实现所述AR业务展示。The display module is configured to render and render the AR service data on the real scene image currently collected by the mobile terminal to implement the AR service display.
  25. 根据权利要求23所述的装置,其中,所述AR业务数据包括: AR业务特征数据,所述AR业务特征数据包括以下至少之一:AR虚拟对象、AR虚拟道具、针对所述AR虚拟对象的可操作数据。The apparatus according to claim 23, wherein the AR service data comprises: AR service feature data, the AR service feature data comprising at least one of: an AR virtual object, an AR virtual item, and an AR virtual object. Operational data.
  26. 根据权利要求25所述的装置,其中,所述装置还包括:The device of claim 25, wherein the device further comprises:
    第三发送模块,用于在所述展示模块根据所述AR业务数据进行AR业务展示之后,根据所述可操作数据,使用所述AR虚拟道具对所述AR虚拟对象进行操作,并将所述操作的操作信息发送给所述服务器。a third sending module, configured to: after the displaying module performs AR service presentation according to the AR service data, perform operation on the AR virtual object by using the AR virtual item according to the operable data, and Operational information of the operation is sent to the server.
  27. 根据权利要求25所述的装置,其中,所述装置还包括:The device of claim 25, wherein the device further comprises:
    第五接收模块,用于在所述第三发送模块将所述操作的操作信息发送给所述服务器之后,接收所述服务器发送的更新数据,其中,所述更新数据除包括更新后的可操作数据之外,还包括更新后的AR虚拟对象和/或更新后的AR虚拟道具,所述更新数据由所述服务器根据包括所述移动终端在内的同时参与所述AR业务的多个移动终端中的至少一个移动终端使用所述AR虚拟道具对所述AR虚拟对象进行操作的操作信息生成;a fifth receiving module, configured to: after the third sending module sends the operation information of the operation to the server, receive update data sent by the server, where the update data includes an updated operation In addition to the data, the updated AR virtual object and/or the updated AR virtual item are further included, and the update data is used by the server according to the plurality of mobile terminals including the mobile terminal and simultaneously participating in the AR service. Operation information generated by the at least one mobile terminal operating the AR virtual object using the AR virtual item;
    第二更新模块,用于根据所述更新数据进行AR业务展示。The second update module is configured to perform AR service presentation according to the update data.
  28. 根据权利要求27所述的装置,其中,所述展示模块,还用于在所述移动终端上显示所述多个移动终端中的任意移动终端对所述AR虚拟对象进行的所述操作的操作信息,以及,所述操作对应的移动终端的用户信息。The device according to claim 27, wherein the display module is further configured to display, on the mobile terminal, an operation of the operation performed by any one of the plurality of mobile terminals on the AR virtual object Information, and user information of the mobile terminal corresponding to the operation.
  29. 一种服务器,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;A server includes: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete communication with each other through the communication bus;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求1-8任一项所述的AR业务处理方法对应的操作。The memory is configured to store at least one executable instruction, the executable instruction causing the processor to perform an operation corresponding to the AR service processing method according to any one of claims 1-8.
  30. 一种移动终端,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;A mobile terminal includes: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface complete communication with each other through the communication bus;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理 器执行如权利要求9-14任一项所述的AR业务处理方法对应的操作。The memory is for storing at least one executable instruction that causes the processor to perform an operation corresponding to the AR service processing method of any one of claims 9-14.
  31. 一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行权利要求1-8任一项所述的AR业务处理方法。A computer readable storage medium carrying one or more computer program programs, executed by one or more processors, the one or more processors executing any one of claims 1-8 The AR service processing method described in the item.
  32. 一种计算机可读存储介质,其上承载一个或多个计算机指令程序,所述计算机指令程序被一个或多个处理器执行时,所述一个或多个处理器执行权利要求9-14任一项所述的AR业务处理方法。A computer readable storage medium carrying one or more computer program programs, executed by one or more processors, the one or more processors executing any one of claims 9-14 The AR service processing method described in the item.
PCT/CN2018/117486 2017-12-04 2018-11-26 Ar service processing method, device, server, mobile terminal, and storage medium WO2019109828A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711261596.0A CN108114471B (en) 2017-12-04 2017-12-04 AR service processing method and device, server and mobile terminal
CN201711261596.0 2017-12-04

Publications (1)

Publication Number Publication Date
WO2019109828A1 true WO2019109828A1 (en) 2019-06-13

Family

ID=62228892

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117486 WO2019109828A1 (en) 2017-12-04 2018-11-26 Ar service processing method, device, server, mobile terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN108114471B (en)
WO (1) WO2019109828A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108114471B (en) * 2017-12-04 2020-05-22 广州市动景计算机科技有限公司 AR service processing method and device, server and mobile terminal
CN109003317A (en) * 2018-07-04 2018-12-14 百度在线网络技术(北京)有限公司 Virtual information processing method, device, equipment and storage medium
CN108905199A (en) * 2018-07-24 2018-11-30 合肥爱玩动漫有限公司 A kind of game skill acquisition and game skill upgrade method based on AR
US10854004B2 (en) * 2018-08-24 2020-12-01 Facebook, Inc. Multi-device mapping and collaboration in augmented-reality environments
CN111953849A (en) * 2020-08-28 2020-11-17 深圳市慧鲤科技有限公司 Method and device for displaying message board, electronic equipment and storage medium
CN112422680A (en) * 2020-11-18 2021-02-26 中国联合网络通信集团有限公司 Communication method and device
CN113398577B (en) * 2021-05-13 2024-04-09 杭州易现先进科技有限公司 Multi-person AR interaction method and system for offline space

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891915A (en) * 2011-07-18 2013-01-23 上海盛畅网络科技有限公司 Actual and virtual interactive entertainment system and method for mobile terminal
US20130303285A1 (en) * 2012-05-11 2013-11-14 Sony Computer Entertainment Europe Limited Apparatus and method for augmented reality
US20150231503A1 (en) * 2013-09-23 2015-08-20 Empire Technology Development Llc Location graph adapted video games
CN106582016A (en) * 2016-12-05 2017-04-26 湖南简成信息技术有限公司 Augmented reality-based motion game control method and control apparatus
CN106730814A (en) * 2016-11-22 2017-05-31 深圳维京人网络科技有限公司 Marine fishing class game based on AR and face recognition technology
CN108114471A (en) * 2017-12-04 2018-06-05 广州市动景计算机科技有限公司 AR method for processing business, device, server and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891915A (en) * 2011-07-18 2013-01-23 上海盛畅网络科技有限公司 Actual and virtual interactive entertainment system and method for mobile terminal
US20130303285A1 (en) * 2012-05-11 2013-11-14 Sony Computer Entertainment Europe Limited Apparatus and method for augmented reality
US20150231503A1 (en) * 2013-09-23 2015-08-20 Empire Technology Development Llc Location graph adapted video games
CN106730814A (en) * 2016-11-22 2017-05-31 深圳维京人网络科技有限公司 Marine fishing class game based on AR and face recognition technology
CN106582016A (en) * 2016-12-05 2017-04-26 湖南简成信息技术有限公司 Augmented reality-based motion game control method and control apparatus
CN108114471A (en) * 2017-12-04 2018-06-05 广州市动景计算机科技有限公司 AR method for processing business, device, server and mobile terminal

Also Published As

Publication number Publication date
CN108114471B (en) 2020-05-22
CN108114471A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
WO2019109828A1 (en) Ar service processing method, device, server, mobile terminal, and storage medium
US9947139B2 (en) Method and apparatus for providing hybrid reality environment
US10241565B2 (en) Apparatus, system, and method of controlling display, and recording medium
WO2019096027A1 (en) Communication processing method, terminal, and storage medium
CN106683195B (en) AR scene rendering method based on indoor positioning
US20180130259A1 (en) System, Device or Method for Collaborative Augmented Reality
US10022626B2 (en) Information processing system, information processing apparatus, storage medium having stored therein information processing program, and information processing method, for performing augmented reality
US10084986B2 (en) System and method for video call using augmented reality
CN112074797A (en) System and method for anchoring virtual objects to physical locations
WO2016114930A2 (en) Systems and methods for augmented reality art creation
US20220382051A1 (en) Virtual reality interaction method, device and system
US9733896B2 (en) System, apparatus, and method for displaying virtual objects based on data received from another apparatus
TW201229962A (en) Augmenting image data based on related 3D point cloud data
CN112070906A (en) Augmented reality system and augmented reality data generation method and device
WO2020048441A1 (en) Communication connection method, terminal device and wireless communication system
KR102402580B1 (en) Image processing system and method in metaverse environment
CN108352086A (en) It determines and solar flux information is presented
WO2019119815A1 (en) Ar service processing method, apparatus, device and computer readable storage medium
KR20160139633A (en) An system and method for providing experiential contents using augmented reality
US11636662B2 (en) Body normal network light and rendering control
US20230419497A1 (en) Whole body segmentation
CN108959311B (en) Social scene configuration method and device
WO2018103544A1 (en) Method and device for presenting service object data in image
JP6413521B2 (en) Display control method, information processing program, and information processing apparatus
CN114827647B (en) Live broadcast data generation method, device, equipment, medium and program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18886443

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18886443

Country of ref document: EP

Kind code of ref document: A1