CN109086097B - Method and device for starting small program, server and storage medium - Google Patents

Method and device for starting small program, server and storage medium Download PDF

Info

Publication number
CN109086097B
CN109086097B CN201810719672.6A CN201810719672A CN109086097B CN 109086097 B CN109086097 B CN 109086097B CN 201810719672 A CN201810719672 A CN 201810719672A CN 109086097 B CN109086097 B CN 109086097B
Authority
CN
China
Prior art keywords
applet
target object
client
target
identification result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810719672.6A
Other languages
Chinese (zh)
Other versions
CN109086097A (en
Inventor
陈都
王莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810719672.6A priority Critical patent/CN109086097B/en
Publication of CN109086097A publication Critical patent/CN109086097A/en
Application granted granted Critical
Publication of CN109086097B publication Critical patent/CN109086097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the invention discloses a method and a device for starting an applet, a server and a storage medium. The method comprises the following steps: receiving an Augmented Reality (AR) recognition result corresponding to a target object sent by a client; determining an applet corresponding to the target object according to the AR identification result corresponding to the target object; and controlling the client to start the small program corresponding to the target object. The small program can be started by identifying the real object, and the maintenance cost is low.

Description

Method and device for starting small program, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a method and a device for starting an applet, a server and a storage medium.
Background
In the prior art, methods for starting an applet by a client include the following two methods: firstly, a client receives a starting instruction corresponding to a current small program sent by a user; starting the current applet in response to a starting instruction corresponding to the current applet; secondly, the client scans the two-dimensional code corresponding to the current small program to obtain the scanning result of the current small program; and starting the current applet according to the scanning result corresponding to the current applet.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing first method for starting the applet, the applet is directly started by a user, and the capability of automatic identification of a client is lacked; in the second existing method for starting the applets, the client determines the one-to-one correspondence between each applet and each two-dimensional code in advance, so that the perception capability of the client on a real object is lacked, and the maintenance cost is high.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a server, and a storage medium for starting an applet, which can start the applet by identifying a real object, and therefore the maintenance cost is low.
In a first aspect, an embodiment of the present invention provides a method for starting an applet, where the method includes:
receiving an Augmented Reality (AR) recognition result corresponding to a target object sent by a client;
determining an applet corresponding to the target object according to the AR identification result corresponding to the target object;
and controlling the client to start the small program corresponding to the target object.
In the above embodiment, the receiving an AR identification result corresponding to a target object sent by a client includes:
if the current state of the target object is a static state, receiving a static AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the static state;
and if the current state of the target object is a motion state, receiving a dynamic AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the motion state.
In the above embodiment, the determining, according to the recognition result corresponding to the target object, the applet corresponding to the target object includes:
determining the small program category corresponding to the target object according to the identification result corresponding to the target object;
searching an applet corresponding to the AR identification result in an applet library associated with the applet category;
if the small program corresponding to the AR identification result is found in the small program library, determining the small program corresponding to the found AR identification result as the small program corresponding to the target object; and if the applet corresponding to the AR identification result is not found in the applet library, the preset applet is really the applet corresponding to the target object.
In the above embodiment, the determining, according to the recognition result corresponding to the target object, the applet type corresponding to the target object includes:
dividing the target object into corresponding object categories according to the identification result corresponding to the target object;
searching an applet category matched with the real object category corresponding to the target object in a predetermined applet category library;
if the small program category matched with the real object category corresponding to the target object is found in the predetermined small program category library, determining the small program category matched with the real object category corresponding to the target object as the small program category corresponding to the target object; and if the small program category matched with the real object category corresponding to the target object is not found in the predetermined small program category library, determining the preset small program category as the small program category corresponding to the target object.
In the above embodiment, the controlling the client to start the applet corresponding to the target object includes:
if the number of the small programs corresponding to the target object is one, sending a starting protocol corresponding to the small programs to the client so that the client starts the small programs by using the starting protocol corresponding to the small programs;
if the number of the small programs corresponding to the target object is multiple, sending small program identifications corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifications corresponding to the small programs; and sending a starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
In a second aspect, an embodiment of the present invention provides an apparatus for starting an applet, where the apparatus includes: the device comprises a receiving module, a determining module and a control module; wherein the content of the first and second substances,
the receiving module is used for receiving an AR identification result corresponding to the target object sent by the client;
the determining module is used for determining the small program corresponding to the target object according to the AR identification result corresponding to the target object;
and the control module is used for controlling the client to start the small program corresponding to the target object.
In the foregoing embodiment, the receiving module is specifically configured to receive, if the current state of the target object is a static state, a static AR identification result that is sent by the client and is obtained by scanning and identifying the target object in an AR identification mode of the static state by an AR camera, where the static AR identification result corresponds to the target object; and if the current state of the target object is a motion state, receiving a dynamic AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the motion state.
In the above embodiment, the determining module includes: determining a submodule and a searching submodule; wherein the content of the first and second substances,
the determining submodule is used for determining the small program category corresponding to the target object according to the identification result corresponding to the target object;
the searching sub-module is used for searching the applet corresponding to the AR identification result in the applet library associated with the applet category;
the determining sub-module is further configured to determine, if the applet corresponding to the AR identification result is found in the applet library, the applet corresponding to the found AR identification result as the applet corresponding to the target object; and if the applet corresponding to the AR identification result is not found in the applet library, the preset applet is really the applet corresponding to the target object.
In the above embodiment, the determining sub-module is specifically configured to divide the target object into the corresponding object categories according to the identification result corresponding to the target object; searching an applet category matched with the real object category corresponding to the target object in a predetermined applet category library; if the small program category matched with the real object category corresponding to the target object is found in the predetermined small program category library, determining the small program category matched with the real object category corresponding to the target object as the small program category corresponding to the target object; and if the small program category matched with the real object category corresponding to the target object is not found in the predetermined small program category library, determining the preset small program category as the small program category corresponding to the target object.
In the above embodiment, the control module is specifically configured to send, to the client, a start protocol corresponding to the applet if the number of the applet one corresponding to the target object is one, so that the client starts the applet by using the start protocol corresponding to the applet; if the number of the applets corresponding to the target object is multiple, sending an applet identifier corresponding to each applet to the client, so that the client determines the target applet corresponding to the target object according to the applet identifier corresponding to each applet; and sending the starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
In a third aspect, an embodiment of the present invention provides a server, including:
one or more processors;
a memory for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the applet starting method according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, which when executed by a processor implements a method for starting an applet as described in any of the embodiments of the present invention.
The embodiment of the invention provides a method, a device, a server and a storage medium for starting an applet, which are characterized by firstly receiving an AR (augmented reality) identification result corresponding to a target object sent by a client; then determining the small program corresponding to the target object according to the AR identification result corresponding to the target object; and finally, controlling the client to start the small program corresponding to the target object. That is to say, in the technical solution of the present invention, the corresponding applet can be started through the recognition result of the client for the target object. In the existing starting method of the small program, the user directly starts the small program, and the automatic identification capability of a client is lacked; or the client determines the one-to-one corresponding relation between each applet and each two-dimensional code in advance, and the perception capability of the client on real objects is lacked. Therefore, compared with the prior art, the method, the device, the server and the storage medium for starting the applet, which are provided by the embodiment of the invention, can start the applet by identifying a real object, so that the maintenance cost is lower; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Drawings
Fig. 1 is a schematic flowchart of a method for starting an applet according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for starting an applet according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for starting an applet according to a third embodiment of the present invention;
FIG. 4 is a first structural diagram of an applet starting apparatus according to a fourth embodiment of the present invention;
fig. 5 is a second structural diagram of a starting apparatus of an applet according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant elements of the present invention are shown in the drawings.
Example one
Fig. 1 is a schematic flowchart of a method for starting an applet according to an embodiment of the present invention. As shown in fig. 1, the start-up method of the applet may include the steps of:
s101, receiving an AR identification result corresponding to the target object sent by the client.
In a specific embodiment of the present invention, the server may receive an AR recognition result corresponding to the target object sent by the client. Specifically, if the current state of the target object is a static state, the server may receive a static AR recognition result, which is sent by the client and corresponds to the target object and obtained by scanning and recognizing the target object in an AR recognition mode of the static state by the AR camera; if the current state of the target object is a motion state, the server may receive a dynamic AR recognition result, which is sent by the client and obtained by scanning and recognizing the target object through the AR camera in the AR recognition mode of the motion state, and corresponds to the target object. That is to say, in the specific embodiment of the present invention, if the current state of the target object is a static state, the client may scan and identify the target object in an AR identification mode of the static state through the AR camera; then sending a static AR identification result corresponding to the target object to a server; if the current state of the target object is a motion state, the client can scan and identify the target object through the AR camera in an AR identification mode of the motion state; and then sending the dynamic AR identification result corresponding to the target object to a server.
And S102, determining the small program corresponding to the target object according to the AR identification result corresponding to the target object.
In a specific embodiment of the present invention, the server may determine the applet corresponding to the target object according to the AR recognition result corresponding to the target object. Specifically, the server may determine the applet type corresponding to the target object according to the identification result corresponding to the target object; then searching the applet corresponding to the AR identification result in the applet library associated with the applet type; if the applet corresponding to the AR identification result is found in the applet library, the server can determine the applet corresponding to the found AR identification result as the applet corresponding to the target object; if the applet corresponding to the AR identification result is not found in the applet library, the server may actually set the preset applet as the applet corresponding to the target object.
And S103, controlling the client to start the small program corresponding to the target object.
In a specific embodiment of the present invention, after the server determines the applet corresponding to the target object, the server may control the client to start the applet corresponding to the target object. Specifically, if the number of the applets corresponding to the target object is one, the server may send a start protocol corresponding to the applets to the client, so that the client starts the applets using the start protocol corresponding to the applets; if the number of the small programs corresponding to the target object is multiple, the server can send small program identifiers corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifiers corresponding to the small programs; and sending the starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
The method for starting the small program provided by the embodiment of the invention comprises the steps of firstly receiving an AR identification result corresponding to a target object sent by a client; then determining a small program corresponding to the target object according to the AR identification result corresponding to the target object; and finally, controlling the client to start the small program corresponding to the target object. That is to say, in the technical solution of the present invention, the corresponding applet can be started through the recognition result of the client for the target object. In the existing starting method of the small program, the user directly starts the small program, and the automatic identification capability of a client is lacked; or the client determines the one-to-one correspondence between each applet and each two-dimensional code in advance, and the perception capability of the client on real objects is lacked. Therefore, compared with the prior art, the method for starting the small program provided by the embodiment of the invention can start the small program by identifying a real object, and has lower maintenance cost; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 2 is a flowchart illustrating a method for starting an applet according to a second embodiment of the present invention. As shown in fig. 2, the start-up method of the applet may include the steps of:
s201, receiving an AR identification result corresponding to the target object sent by the client.
In a specific embodiment of the present invention, the server may receive an AR identification result corresponding to the target object sent by the client. Specifically, if the current state of the target object is a static state, the server may receive a static AR recognition result, which is sent by the client and corresponds to the target object and obtained by scanning and recognizing the target object in an AR recognition mode of the static state by the AR camera; if the current state of the target object is a motion state, the server may receive a dynamic AR recognition result, which is sent by the client and obtained by scanning and recognizing the target object through the AR camera in the AR recognition mode of the motion state, and corresponds to the target object. That is to say, in the specific embodiment of the present invention, if the current state of the target object is a static state, the client may scan and identify the target object in an AR identification mode of the static state through the AR camera; then sending a static AR identification result corresponding to the target object to a server; if the current state of the target object is a motion state, the client can scan and identify the target object in an AR identification mode of the motion state through the AR camera; and then sending the dynamic AR identification result corresponding to the target object to a server.
S202, determining the small program type corresponding to the target object according to the identification result corresponding to the target object.
In a specific embodiment of the present invention, the server may determine the applet type corresponding to the target object according to the identification result corresponding to the target object. Specifically, the server may classify the target object into a real object category corresponding to the target object according to the identification result corresponding to the target object; then the server can search the small program category matched with the real object category corresponding to the target object in a predetermined small program category library; if the applet type matched with the physical type corresponding to the target object is found in the predetermined applet type library, the server can determine the applet type matched with the physical type corresponding to the target object as the applet type corresponding to the target object; if the applet category matched with the real object category corresponding to the target object is not found in the predetermined applet category library, the server may determine the preset applet category as the applet category corresponding to the target object.
S203, searching the applet corresponding to the AR identification result in the applet category library.
In a specific embodiment of the present invention, the server may search the applet corresponding to the AR identification result in the applet class library. For example, if the AR recognition result corresponding to the target object 1 is a panda, the server may search for an applet corresponding to the panda in the applet library of the animal; for another example, assuming that the AR recognition result corresponding to the target object 2 is a big tree, the server may search for a small program corresponding to the big tree in the small program library of the plant class.
S204, if the applet corresponding to the AR identification result is found in the applet library, determining the applet corresponding to the found AR identification result as the applet corresponding to the target object; and if the applet corresponding to the AR identification result is not found in the applet library, the preset applet is really the applet corresponding to the target object.
In the specific embodiment of the present invention, if the server finds the applet corresponding to the AR identification result in the applet library, the server may determine the applet corresponding to the found AR identification result as the applet corresponding to the target object; if the server does not find the applet corresponding to the AR identification result in the applet library, the server can actually use the preset applet as the applet corresponding to the target object. For example, assuming that the AR identification result corresponding to the target object 1 is a panda, if the server finds the applet corresponding to the panda in the applet library of the animal, the server may determine the applet corresponding to the found panda as the applet corresponding to the target object 1; for another example, assuming that the AR identification result corresponding to the target object 2 is a big tree, if the server finds the applet corresponding to the big tree in the applet library of the plant, the server may determine the applet corresponding to the found big tree as the applet corresponding to the target object 2.
And S205, controlling the client to start the small program corresponding to the target object.
In a specific embodiment of the present invention, after the server determines the applet corresponding to the target object, the server may control the client to start the applet corresponding to the target object. Specifically, if the number of the applets corresponding to the target object is one, the server may send a start protocol corresponding to the applets to the client, so that the client starts the applets using the start protocol corresponding to the applets; if the number of the small programs corresponding to the target object is multiple, the server can send small program identifiers corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifiers corresponding to the small programs; and sending the starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
The method for starting the small program provided by the embodiment of the invention comprises the steps of firstly receiving an AR identification result corresponding to a target object sent by a client; then determining the small program corresponding to the target object according to the AR identification result corresponding to the target object; and finally, controlling the client to start the small program corresponding to the target object. That is to say, in the technical solution of the present invention, the corresponding applet can be started through the recognition result of the client for the target object. In the existing starting method of the small program, the user directly starts the small program, and the automatic identification capability of the client is lacked; or the client determines the one-to-one corresponding relation between each applet and each two-dimensional code in advance, and the perception capability of the client on real objects is lacked. Therefore, compared with the prior art, the method for starting the small program provided by the embodiment of the invention can start the small program by identifying a real object, and has lower maintenance cost; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
EXAMPLE III
Fig. 3 is a flowchart illustrating a method for starting an applet according to a third embodiment of the present invention. As shown in fig. 3, the start-up method of the applet may include the steps of:
s301, receiving an AR identification result corresponding to the target object sent by the client.
In a specific embodiment of the present invention, the server may receive an augmented reality AR recognition result corresponding to the target object sent by the client. Specifically, if the current state of the target object is a static state, the server may receive a static AR recognition result, which is sent by the client and corresponds to the target object and obtained by scanning and recognizing the target object in an AR recognition mode of the static state by the AR camera; if the current state of the target object is a motion state, the server may receive a dynamic AR identification result, which is sent by the client and obtained by scanning and identifying the target object in the AR identification mode of the motion state through the AR camera, and corresponds to the target object. That is to say, in the embodiment of the present invention, if the current state of the target object is a static state, the client may scan and recognize the target object through the AR camera in the AR recognition mode of the static state; then sending a static AR identification result corresponding to the target object to a server; if the current state of the target object is a motion state, the client can scan and identify the target object through the AR camera in an AR identification mode of the motion state; and then sending the dynamic AR identification result corresponding to the target object to a server.
S302, dividing the target object into corresponding object categories according to the identification result corresponding to the target object.
In a specific embodiment of the present invention, the server may classify the target object into a real object category corresponding to the target object according to the identification result corresponding to the target object. For example, assuming that the AR recognition result corresponding to the target object 1 is a panda, the server may classify the target object 1 into animal categories; for another example, assuming that the AR recognition result corresponding to the target object 2 is a large tree, the server may classify the target object 1 into a plant category.
And S303, searching an applet type matched with the real object type corresponding to the target object in a predetermined applet type library.
In a specific embodiment of the present invention, the server may search a library of predetermined applet categories for an applet category matching the physical category corresponding to the target object. For example, if the AR recognition result corresponding to the target object 1 is a panda, the server may search for an applet class matching the animal class in a predetermined applet class library; for another example, assuming that the AR recognition result corresponding to the target object 2 is a big tree, the server may search a predetermined applet class library for an applet class matching the plant class.
S304, if the small program category matched with the object category corresponding to the target object is found in the predetermined small program category library, determining the small program category matched with the object category corresponding to the target object as the small program category corresponding to the target object; and if the small program category matched with the real object category corresponding to the target object is not found in the predetermined small program category library, determining the preset small program category as the small program category corresponding to the target object.
In a specific embodiment of the present invention, if the server finds the applet class matched with the entity class corresponding to the target object in the predetermined applet class library, the server may determine the applet class matched with the entity class corresponding to the target object as the applet class corresponding to the target object; if the server does not find the applet type matched with the real object type corresponding to the target object in the predetermined applet type library, the server may determine the preset applet type as the applet type corresponding to the target object. For example, assuming that the server finds the applet class matched with the animal class corresponding to the target object 1 in a predetermined applet class library, the server may determine the applet class matched with the animal class corresponding to the target object 1 as the applet class corresponding to the target object 1; for another example, assuming that the server finds the applet class matching the plant class corresponding to the target object 2 in a predetermined applet class library, the server determines the applet class matching the plant class corresponding to the target object 2 as the applet class corresponding to the target object 2.
S305, searching the small program corresponding to the AR identification result in the small program library associated with the small program category.
In a specific embodiment of the present invention, the server may search the applet corresponding to the AR identification result in the applet library associated with the applet type. For example, if the AR recognition result corresponding to the target object 1 is a panda, the server may search for an applet corresponding to the panda in the applet library of the animal; for another example, if the AR recognition result corresponding to the target object 2 is a big tree, the server may search for a small program corresponding to the big tree in the small program library of the plant class.
S306, if the applet corresponding to the AR identification result is found in the applet library, determining the applet corresponding to the found AR identification result as the applet corresponding to the target object; and if the applet corresponding to the AR identification result is not found in the applet library, the preset applet is really the applet corresponding to the target object.
In the specific embodiment of the present invention, if the server finds the applet corresponding to the AR identification result in the applet library, the server may determine the applet corresponding to the found AR identification result as the applet corresponding to the target object; if the server does not find the applet corresponding to the AR identification result in the applet library, the server can actually use the preset applet as the applet corresponding to the target object.
And S307, controlling the client to start the small program corresponding to the target object.
In a specific embodiment of the present invention, after the server determines the applet corresponding to the target object, the server may control the client to start the applet corresponding to the target object. Specifically, if the number of the applets corresponding to the target object is one, the server may send a start protocol corresponding to the applets to the client, so that the client starts the applets using the start protocol corresponding to the applets; if the number of the small programs corresponding to the target object is multiple, the server can send small program identifiers corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifiers corresponding to the small programs; and sending the starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
The method for starting the small program provided by the embodiment of the invention comprises the steps of firstly receiving an AR identification result corresponding to a target object sent by a client; then determining the small program corresponding to the target object according to the AR identification result corresponding to the target object; and finally, controlling the client to start the small program corresponding to the target object. That is to say, in the technical solution of the present invention, the corresponding applet can be started through the recognition result of the client for the target object. In the existing starting method of the small program, the user directly starts the small program, and the automatic identification capability of a client is lacked; or the client determines the one-to-one corresponding relation between each applet and each two-dimensional code in advance, and the perception capability of the client on real objects is lacked. Therefore, compared with the prior art, the method for starting the small program provided by the embodiment of the invention can start the small program by identifying a real object, and has lower maintenance cost; moreover, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example four
Fig. 4 is a first structural diagram of a starting apparatus of an applet according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus for starting an applet according to an embodiment of the present invention may include: a receiving module 401, a determining module 402 and a control module 403; wherein, the first and the second end of the pipe are connected with each other,
the receiving module 401 is configured to receive an AR identification result corresponding to a target object sent by a client;
the determining module 402 is configured to determine an applet corresponding to the target object according to the AR identification result corresponding to the target object;
the control module 403 is configured to control the client to start an applet corresponding to the target object.
Further, the receiving module 401 is specifically configured to receive, if the current state of the target object is a static state, a static AR identification result that is sent by the client and corresponds to the target object and obtained by scanning and identifying the target object in an AR identification mode of the static state by an AR camera; and if the current state of the target object is a motion state, receiving a dynamic AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the motion state.
Fig. 5 is a second structural diagram of a starting apparatus of an applet according to a fourth embodiment of the present invention. As shown in fig. 5, the determining module 402 includes: a determining sub-module 4021 and a searching sub-module 4022; wherein the content of the first and second substances,
the determining submodule 4021 is configured to determine an applet category corresponding to the target object according to the identification result corresponding to the target object;
the search sub-module 4022 is configured to search an applet corresponding to the AR identification result in the applet library associated with the applet type;
the determining sub-module 4021 is further configured to determine, if the applet corresponding to the AR identification result is found in the applet library, the applet corresponding to the found AR identification result as the applet corresponding to the target object; and if the applet corresponding to the AR identification result is not found in the applet library, the preset applet is really the applet corresponding to the target object.
Further, the determining sub-module 4021 is specifically configured to classify the target object into a corresponding object category according to the identification result corresponding to the target object; searching an applet type matched with the real type corresponding to the target object in a predetermined applet type library; if the small program category matched with the real object category corresponding to the target object is found in the predetermined small program category library, determining the small program category matched with the real object category corresponding to the target object as the small program category corresponding to the target object; and if the small program category matched with the real object category corresponding to the target object is not found in the predetermined small program category library, determining the preset small program category as the small program category corresponding to the target object.
Further, the control module 403 is specifically configured to send, to the client, a start protocol corresponding to the applet if the number of the applets corresponding to the target object is one, so that the client starts the applet by using the start protocol corresponding to the applet; if the number of the small programs corresponding to the target object is multiple, sending small program identifications corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifications corresponding to the small programs; and sending a starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
The starting device of the small program can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technology not described in detail in this embodiment, reference may be made to the method for starting the applet provided in any embodiment of the present invention.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a server according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more applets, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing the start-up method of the applet provided by the embodiment of the present invention.
EXAMPLE six
The sixth embodiment of the invention provides a computer storage medium.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (6)

1. A method for initiating an applet, the method comprising:
receiving an Augmented Reality (AR) recognition result corresponding to a target object sent by a client;
determining an applet corresponding to the target object according to the AR identification result corresponding to the target object; wherein, the small program corresponding to the target object comprises: an applet corresponding to the augmented reality AR identification result in the applet library or a preset applet;
determining a target applet in at least one applet corresponding to the target object, and controlling the client to start the target applet by using a starting protocol of the target applet through sending the starting protocol of the target applet to the client;
the receiving of the AR recognition result corresponding to the target object sent by the client includes:
if the current state of the target object is a static state, receiving a static AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the static state;
if the current state of the target object is a motion state, receiving a dynamic AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the motion state;
the determining the applet corresponding to the target object according to the identification result corresponding to the target object includes:
determining the small program category corresponding to the target object according to the identification result corresponding to the target object;
searching an applet corresponding to the AR identification result in an applet library associated with the applet category;
if the small program corresponding to the AR identification result is found in the small program library, determining the small program corresponding to the found AR identification result as the small program corresponding to the target object; if the applet corresponding to the AR identification result is not found in the applet library, determining a preset applet as the applet corresponding to the target object;
the determining a target applet in at least one applet corresponding to the target object, and controlling the client to start the target applet by using a start protocol of the target applet by sending the start protocol to the client, includes:
if the number of the small programs corresponding to the target object is one, sending a starting protocol corresponding to the small programs to the client so that the client starts the small programs by using the starting protocol corresponding to the small programs;
if the number of the small programs corresponding to the target object is multiple, sending small program identifications corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifications corresponding to the small programs; and sending a starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
2. The method according to claim 1, wherein the determining the applet class corresponding to the target object according to the recognition result corresponding to the target object comprises:
dividing the target object into a real object category corresponding to the target object according to the identification result corresponding to the target object;
searching an applet category matched with the real object category corresponding to the target object in a predetermined applet category library;
if the applet type matched with the entity type corresponding to the target object is found in the predetermined applet type library, determining the applet type matched with the entity type corresponding to the target object as the applet type corresponding to the target object; and if the applet type matched with the entity type corresponding to the target object is not found in the predetermined applet type library, determining the preset applet type as the applet type corresponding to the target object.
3. An applet starting device, characterized in that the device comprises: the device comprises a receiving module, a determining module and a control module; wherein, the first and the second end of the pipe are connected with each other,
the receiving module is used for receiving an AR identification result corresponding to the target object sent by the client;
the determining module is used for determining the small program corresponding to the target object according to the AR identification result corresponding to the target object; wherein, the small program corresponding to the target object comprises: an applet corresponding to the augmented reality AR identification result in the applet library or a preset applet;
the control module is used for determining a target applet in at least one applet corresponding to the target object, and controlling the client to start the target applet by using a starting protocol of the target applet through sending the starting protocol of the target applet to the client;
the receiving module is specifically configured to receive, if the current state of the target object is a static state, a static AR recognition result that is sent by the client and corresponds to the target object, where the static AR recognition result is obtained by scanning and recognizing the target object in an AR recognition mode of the static state by an AR camera; if the current state of the target object is a motion state, receiving a dynamic AR identification result which is sent by the client and corresponds to the target object and is obtained by scanning and identifying the target object through an AR camera in an AR identification mode of the motion state;
the determining module comprises: determining a sub-module and searching the sub-module; wherein the content of the first and second substances,
the determining submodule is used for determining the small program category corresponding to the target object according to the identification result corresponding to the target object;
the searching sub-module is used for searching the applet corresponding to the AR identification result in the applet library associated with the applet type;
the determining submodule is further configured to determine, if the applet corresponding to the AR identification result is found in the applet library, the applet corresponding to the found AR identification result as the applet corresponding to the target object; if the applet corresponding to the AR identification result is not found in the applet library, determining a preset applet as the applet corresponding to the target object;
the control module is specifically configured to send a start protocol corresponding to the applet to the client if the number of the applets corresponding to the target object is one, so that the client starts the applet by using the start protocol corresponding to the applet; if the number of the small programs corresponding to the target object is multiple, sending small program identifications corresponding to the small programs to the client, so that the client determines the target small programs corresponding to the target object according to the small program identifications corresponding to the small programs; and sending a starting protocol corresponding to the target applet to the client so that the client starts the target applet by using the starting protocol corresponding to the target applet.
4. The apparatus of claim 3, wherein:
the determining submodule is specifically configured to divide the target object into corresponding object categories according to the identification result corresponding to the target object; searching an applet type matched with the real type corresponding to the target object in a predetermined applet type library; if the small program category matched with the real object category corresponding to the target object is found in the predetermined small program category library, determining the small program category matched with the real object category corresponding to the target object as the small program category corresponding to the target object; and if the applet type matched with the entity type corresponding to the target object is not found in the predetermined applet type library, determining the preset applet type as the applet type corresponding to the target object.
5. A server, comprising:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of initiating an applet as claimed in any one of claims 1 to 2.
6. A storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of starting an applet as claimed in any one of claims 1 to 2.
CN201810719672.6A 2018-07-03 2018-07-03 Method and device for starting small program, server and storage medium Active CN109086097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810719672.6A CN109086097B (en) 2018-07-03 2018-07-03 Method and device for starting small program, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810719672.6A CN109086097B (en) 2018-07-03 2018-07-03 Method and device for starting small program, server and storage medium

Publications (2)

Publication Number Publication Date
CN109086097A CN109086097A (en) 2018-12-25
CN109086097B true CN109086097B (en) 2023-02-28

Family

ID=64837178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810719672.6A Active CN109086097B (en) 2018-07-03 2018-07-03 Method and device for starting small program, server and storage medium

Country Status (1)

Country Link
CN (1) CN109086097B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960540A (en) * 2019-03-06 2019-07-02 上海连尚网络科技有限公司 Small routine triggering method, computer equipment and storage medium
CN109960541B (en) * 2019-03-15 2022-07-29 上海连尚网络科技有限公司 Method, apparatus and computer storage medium for starting an applet
CN112650601B (en) * 2020-12-25 2023-08-11 百度在线网络技术(北京)有限公司 Method, apparatus, device, storage medium, and program for opening applet across hosts

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094975A (en) * 2015-09-29 2015-11-25 北京奇艺世纪科技有限公司 Method and device for calling application program
CN105930835A (en) * 2016-04-13 2016-09-07 无锡东游华旅文化传媒有限公司 Enhanced image identification system and method
CN105929945A (en) * 2016-04-18 2016-09-07 展视网(北京)科技有限公司 Augmented reality interaction method and device, mobile terminal and mini-computer
CN106569671A (en) * 2016-11-09 2017-04-19 唐雪松 AR technology-based method and device for displaying instruction information of consumer goods
CN106774913A (en) * 2016-12-26 2017-05-31 上海今尚数码科技有限公司 A kind of method on the real-time transform date for showing entity desk calendar by AR
CN107526443A (en) * 2017-09-29 2017-12-29 北京金山安全软件有限公司 Augmented reality method, device, system, electronic equipment and storage medium
US20180053351A1 (en) * 2016-08-19 2018-02-22 Intel Corporation Augmented reality experience enhancement method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942049B (en) * 2014-04-14 2018-09-07 百度在线网络技术(北京)有限公司 Implementation method, client terminal device and the server of augmented reality
CN104834382B (en) * 2015-05-21 2018-03-02 上海斐讯数据通信技术有限公司 Application program for mobile terminal response system and method
CN107426272A (en) * 2017-03-30 2017-12-01 阿里巴巴集团控股有限公司 A kind of small routine method for pushing, device and computer-readable storage medium
CN107918955A (en) * 2017-11-15 2018-04-17 百度在线网络技术(北京)有限公司 Augmented reality method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094975A (en) * 2015-09-29 2015-11-25 北京奇艺世纪科技有限公司 Method and device for calling application program
CN105930835A (en) * 2016-04-13 2016-09-07 无锡东游华旅文化传媒有限公司 Enhanced image identification system and method
CN105929945A (en) * 2016-04-18 2016-09-07 展视网(北京)科技有限公司 Augmented reality interaction method and device, mobile terminal and mini-computer
US20180053351A1 (en) * 2016-08-19 2018-02-22 Intel Corporation Augmented reality experience enhancement method and apparatus
CN106569671A (en) * 2016-11-09 2017-04-19 唐雪松 AR technology-based method and device for displaying instruction information of consumer goods
CN106774913A (en) * 2016-12-26 2017-05-31 上海今尚数码科技有限公司 A kind of method on the real-time transform date for showing entity desk calendar by AR
CN107526443A (en) * 2017-09-29 2017-12-29 北京金山安全软件有限公司 Augmented reality method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109086097A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109144695B (en) Method, device, equipment and medium for processing task topological relation
CN109086097B (en) Method and device for starting small program, server and storage medium
CN110134869B (en) Information pushing method, device, equipment and storage medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN110929128A (en) Data crawling method, device, equipment and medium
CN110110236B (en) Information pushing method, device, equipment and storage medium
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
CN109284108B (en) Unmanned vehicle data storage method and device, electronic equipment and storage medium
CN109151033B (en) Communication method and device based on distributed system, electronic equipment and storage medium
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
CN109460511B (en) Method and device for acquiring user portrait, electronic equipment and storage medium
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
CN112966671A (en) Contract detection method and device, electronic equipment and storage medium
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
CN108872999B (en) Object identification method, device, identification equipment and storage medium
CN113885998A (en) Page rendering method and device, electronic equipment and storage medium
CN108092875B (en) Expression providing method, medium, device and computing equipment
CN112163879A (en) User rights pushing method, device, server and storage medium
CN111309575A (en) Method, device, server and storage medium for starting and stopping test tool
CN111262727A (en) Service capacity expansion method, device, equipment and storage medium
CN110781234A (en) TRS database retrieval method, device, equipment and storage medium
CN111600944B (en) Data processing method, device, equipment and storage medium
CN111124862A (en) Intelligent equipment performance testing method and device and intelligent equipment

Legal Events

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