WO2023155477A1 - 画作展示方法、装置、电子设备、存储介质和程序产品 - Google Patents

画作展示方法、装置、电子设备、存储介质和程序产品 Download PDF

Info

Publication number
WO2023155477A1
WO2023155477A1 PCT/CN2022/128247 CN2022128247W WO2023155477A1 WO 2023155477 A1 WO2023155477 A1 WO 2023155477A1 CN 2022128247 W CN2022128247 W CN 2022128247W WO 2023155477 A1 WO2023155477 A1 WO 2023155477A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
virtual character
electronic device
painting
information
Prior art date
Application number
PCT/CN2022/128247
Other languages
English (en)
French (fr)
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 WO2023155477A1 publication Critical patent/WO2023155477A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Definitions

  • the present disclosure relates to but not limited to the field of computer technology, and in particular relates to a painting display method, device, electronic equipment, storage medium and program product.
  • An embodiment of the present disclosure provides a technical solution for painting display.
  • a method for displaying paintings including:
  • a virtual character corresponding to the target user is displayed in the target painting area displayed by the electronic device, wherein the target painting area represents the target painting area displayed by the electronic device In the real scene image, the area where the target painting is located; in response to the distance between the virtual character and any target object in the target painting area being less than or equal to the preset distance, displaying the virtual character corresponding to the target object information.
  • a virtual character corresponding to the target user is shown, and in response to any connection between the virtual character and the target painting area
  • the distance between a target object is less than or equal to the preset distance, and the virtual information corresponding to the target object is displayed, so that after the target painting enters the field of view of the electronic device used by the target user, through augmented reality, the While displaying the real scene image in the electronic device, the virtual character corresponding to the target user is displayed, and according to the positional relationship between the virtual character and the target object in the target painting, the virtual information corresponding to the target object is displayed, so that as the virtual
  • the change of the position of the character in the target painting area vividly displays the relevant information of the target painting, so that the target user can obtain rich introduction information of the target painting while experiencing the fun of viewing the exhibition.
  • a painting display device which is applied to electronic equipment, and the device includes:
  • the first presentation part is configured to display a virtual character corresponding to the target user in the target painting area displayed on the electronic device in response to the target painting being included in the real scene image collected by the electronic device, wherein the target painting area represents The area where the target painting is located in the real-scene image displayed by the electronic device;
  • the second display part is configured to display virtual information corresponding to the target object in response to a distance between the virtual character and any target object in the target painting area being less than or equal to a preset distance.
  • an electronic device comprising: one or more processors; a memory configured to store executable instructions; wherein the one or more processors are configured to call the memory to store executable instructions to perform the above method.
  • a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented.
  • a computer program product including computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in an electronic device During operation, the processor in the electronic device executes the above method.
  • the virtual character corresponding to the target user is displayed in the target painting area displayed on the electronic device, and in response to the virtual character and the The distance between any target object in the target painting area is less than or equal to the preset distance, and the virtual information corresponding to the target object is displayed, so that after the target painting enters the field of view of the electronic device used by the target user, by enhancing In a realistic way, while displaying the real scene image on the electronic device, the virtual character corresponding to the target user is displayed, and the virtual information corresponding to the target object is displayed according to the positional relationship between the virtual character and the target object in the target painting , so that as the position of the virtual character in the target painting area changes, the relevant information of the target painting can be displayed vividly, so that the target user can obtain the richness of the target painting while experiencing the fun of viewing the exhibition. introductory information.
  • FIG. 1 shows a flowchart of a painting display method provided by an embodiment of the present disclosure.
  • Fig. 2 shows a block diagram of a painting display device provided by an embodiment of the present disclosure.
  • Fig. 3 shows a block diagram of an electronic device provided by an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a painting display method, by responding to the target painting included in the real scene image collected by the electronic device, displaying the virtual character corresponding to the target user in the target painting area displayed by the electronic device, and responding to the The distance between the virtual character and any target object in the target painting area is less than or equal to the preset distance, and the virtual information corresponding to the target object is displayed, so that when the target painting enters the electronic device used by the target user After the field of view, through augmented reality, while displaying the real scene image in the electronic device, the virtual character corresponding to the target user is displayed, and the target user is displayed according to the positional relationship between the virtual character and the target object in the target painting.
  • the virtual information corresponding to the object so that with the change of the position of the virtual character in the target painting area, the relevant information of the target painting can be displayed vividly, so that the target user can experience the fun of viewing the exhibition and at the same time, Get rich introductory information for the target painting.
  • FIG. 1 shows a flowchart of a painting display method provided by an embodiment of the present disclosure.
  • the painting display method can be executed by an electronic device.
  • the electronic device may be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device or wearable device, etc.
  • the painting display method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the painting display method includes steps S11 to S12.
  • step S11 in response to the target painting being included in the real scene image collected by the electronic device, a virtual character corresponding to the target user is shown in the target painting area displayed on the electronic device, wherein the target painting area represents the In the real scene image displayed by the electronic device, the area where the target painting is located.
  • step S12 in response to the distance between the virtual character and any target object in the target painting area being less than or equal to a preset distance, virtual information corresponding to the target object is displayed.
  • the electronic device may be an electronic device that can be operated and used by the exhibitor.
  • the electronic device may be an electronic device of an exhibitor.
  • the electronic device may be a mobile phone, a tablet computer, etc. of an exhibitor.
  • exhibitors can conveniently obtain relevant information about paintings through their mobile phones and other electronic devices, without renting equipment such as explainers from the exhibitor.
  • the electronic device may also be an electronic device provided by the exhibition to the exhibitors.
  • the exhibitor can provide electronic devices such as tablet computers to visitors without mobile phones, so that visitors without mobile phones can obtain information about paintings.
  • the electronic device may acquire at least one of images, image sequences, videos, etc. from real scenes.
  • the image sequence may include at least two images.
  • the real-scene image may be the latest image of the real scene collected by the electronic device.
  • the real-scene image may be a latest image frame in a sequence of images collected by the electronic device for a real scene.
  • the real scene image may be the latest video frame image in the video collected by the electronic device for the real scene.
  • the electronic device can collect real-scene images through the image collection module.
  • the electronic device is a mobile phone
  • the image collection module of the electronic device includes a camera module
  • the mobile phone can collect real-scene images through the camera module.
  • real-scene images may also be collected through an image collection device connected to the electronic device.
  • the electronic device is a mobile phone
  • the image collection device connected to the mobile phone is a camera, which can collect real-scene images.
  • the image acquisition device and the electronic device may be connected in a wireless or wired manner, which is not limited here.
  • painting recognition may be performed based on the real-scene image to determine whether the real-scene image includes a target painting.
  • the electronic device may send a painting recognition request to the server, where the painting recognition request includes the first image.
  • the real-scene image may be used as the first image, or the real-scene image may be compressed to obtain the first image.
  • the server may perform painting recognition on the first image to determine whether the first image includes the target painting, so as to determine whether the real-scene image includes the target painting.
  • the electronic device may perform painting recognition on the real-scene image to determine whether the real-scene image includes a target painting.
  • the target painting area may display part or all of the target painting.
  • the target painting area may occupy part or all of the real scene image, that is, the real scene image may only include the target painting area, or may include areas other than the target painting area, such as the background area. As the field of view of the electronic device changes, the target painting area can display different parts of the target painting.
  • the displaying the virtual character corresponding to the target user includes: displaying the virtual character corresponding to the target user according to the creation background information of the target painting, wherein the dress information of the virtual character is based on The creation background information is determined, and the creation background information includes age information and/or location information of the target painting.
  • the dress-up information may represent information used to dress up the virtual character. Dressing information may include at least one of clothing, accessories, hairstyles, makeup, and the like.
  • the costume information of the virtual character may be determined according to the age information of the target painting.
  • the information about the costumes of the virtual characters corresponding to the target users displayed in the target painting area may be different.
  • the clothing corresponding to target paintings of different ages may be different.
  • the costume information of the virtual character may be determined according to the location information of the target painting.
  • the information about the costume of the virtual character corresponding to the target user displayed in the target painting area may be different.
  • the clothing corresponding to the target painting created in different countries may be different.
  • the costume information of the virtual character may be determined according to the age information and location information of the target painting.
  • the target user by determining the costume information of the virtual character corresponding to the target user according to the creative background information of the target painting, the target user can be given the feeling of being in the age and/or place of the target painting, and the target user While gaining an immersive experience, learn the creation background information of the target painting.
  • the displaying the virtual character corresponding to the target user according to the creation background information of the target painting includes: displaying the virtual character corresponding to the target user according to the creation background information of the target painting and the user information of the target user.
  • the costume information of the virtual character corresponding to the target user is determined, thereby not only giving the target user the feeling of traveling to the age and/or place of the target painting, but also It helps the target user to understand the costumes of people of the same gender and/or similar age as himself in the age and/or place of the target painting, thereby helping the target user to further learn the creation background information of the target painting.
  • the gender and/or age of the virtual character can also be selected by the target user, thus helping the target user to understand the costumes of people of different genders and ages in the age and/or place of the target painting, thereby helping Further learn the creation background information of the target painting from the target user.
  • the costume information of the virtual character corresponding to the target user may not be determined according to the creation background information of the target painting.
  • the target user can actively select the dress-up information of the virtual character.
  • the preference information of the target user may be obtained, and the costume information of the virtual character corresponding to the target user is determined according to the preference information.
  • the displaying the virtual character corresponding to the target user includes: displaying the virtual character corresponding to the target user according to the face image of the target user, wherein the image of the face area of the virtual character is determined based on the face image.
  • the face image of the target user can be used as the image of the face area of the virtual character, or the face image of the target user can be beautified and used as the image of the face area of the virtual character in the This is not limited.
  • the image of the face region of the virtual character corresponding to the target user may not be determined according to the face image of the target user.
  • a plurality of facial images of different genders and ages can be preset, and corresponding facial images can be acquired according to the target user's gender and age as the image of the facial region of the virtual character corresponding to the target user.
  • the target object may represent any type of object in the target painting that has virtual information to be displayed.
  • the target object may be a person, an animal, a house, a bridge, a ship, etc. in a target painting.
  • the preset distance corresponding to any target object may represent a distance used to trigger the display of virtual information corresponding to the target object.
  • the preset distances corresponding to different target objects may be the same or different.
  • the preset distances corresponding to different characters may be the same; for another example, the preset distances corresponding to ships may be greater than the preset distances corresponding to characters, and so on.
  • Those skilled in the art can flexibly set the preset distances corresponding to different target objects according to the density of the target objects in the target painting, the distance between the target objects and the preset path, etc., which are not limited here.
  • the virtual information may represent virtual information for display after being fused with information of a real scene.
  • Virtual information may include one or more of text, pictures, audio, video, etc.
  • the virtual information corresponding to any target object may include: virtual information for introducing the target object, and/or virtual information for introducing the target painting.
  • the virtual information corresponding to the character may include text and/or video for introducing the character, and/or text and/or video for introducing the target painting .
  • the displaying the virtual character corresponding to the target user in the target painting area displayed on the electronic device includes: on a preset path in the target painting area displayed on the electronic device, Display the virtual character corresponding to the target user.
  • the information of the AR (Augmented Reality, augmented reality) scene corresponding to the target painting can be obtained, and the AR scene corresponding to the target painting can be displayed according to the information of the AR scene.
  • the AR scene corresponding to the target painting may include a preset path.
  • the virtual character corresponding to the target user may be located anywhere in the target painting area.
  • the method further includes: in response to the movement of the electronic device, controlling the virtual character to move in the target painting area according to the displacement of the electronic device.
  • the displacement of the electronic device may be acquired in response to the movement of the electronic device.
  • the displacement of the electronic device can be mapped to the plane coordinate system corresponding to the target painting to obtain a first target vector, and the virtual character is controlled to move in the target painting area according to the first target vector.
  • the movement of the virtual character in the target painting area is controlled by controlling the movement of the electronic device, thereby improving the convenience of moving the virtual character, so that it is convenient for the target user to watch different parts of the target painting and obtain different parts of the target painting
  • the displaying the virtual character corresponding to the target user in the target painting area displayed on the electronic device includes: displaying A virtual character corresponding to the target user; the responding to the movement of the electronic device, and controlling the movement of the virtual character in the target painting area according to the displacement of the electronic device includes: responding to the movement of the electronic device, according to the The displacement of the electronic device is controlled to move the virtual character along the preset path.
  • the displacement of the electronic device may be obtained in response to the movement of the electronic device.
  • the displacement of the electronic device may be mapped to the coordinate system corresponding to the preset path to obtain a second target vector, and the virtual character is controlled to move in the target painting area according to the second target vector.
  • the responding to the movement of the electronic device, and controlling the virtual character to move along the preset path according to the displacement of the electronic device includes: determining a movement mode corresponding to the virtual character; responding When the electronic device moves, the virtual character is controlled to move along the preset path according to the displacement of the electronic device and the moving manner.
  • the moving manner corresponding to the virtual character may be walking, running, jumping, riding in a car, riding in a boat, etc., which is not limited here.
  • the determining the movement mode corresponding to the virtual character includes: according to at least one of the moving speed of the electronic device, the character characteristics of the virtual character and the creative background information of the target painting, A movement manner corresponding to the virtual character is determined.
  • the movement manner corresponding to the virtual character may be determined according to the movement speed of the electronic device. For example, if the moving speed of the electronic device is greater than or equal to a preset speed, it can be determined that the moving mode corresponding to the virtual character is running; if the moving speed of the electronic device is lower than the preset speed, it can be determined that the virtual character The corresponding movement mode of the character is walking.
  • the movement manner corresponding to the virtual character may be determined according to the character characteristics of the virtual character. For example, if the virtual character is a child, the corresponding moving method of the virtual character may be jumping; if the virtual character is an adult, the corresponding moving method of the virtual character may be walking.
  • the movement manner corresponding to the virtual character may be determined according to the character characteristics of the virtual character and the moving speed of the electronic device. For example, if the virtual character is a child, and the moving speed of the electronic device is greater than or equal to a preset speed, it may be determined that the corresponding moving mode of the virtual character is running; if the virtual character is a child, and the If the moving speed of the electronic device is less than the preset speed, it can be determined that the corresponding moving mode of the virtual character is jumping; if the virtual character is an adult, and the moving speed of the electronic device is greater than or equal to the preset speed, it can be determined that The movement mode corresponding to the virtual character is running; if the virtual character is an adult, and the moving speed of the electronic device is lower than a preset speed, it can be determined that the movement mode corresponding to the virtual character is walking.
  • the movement mode corresponding to the virtual character may be determined according to the creation background information of the target painting.
  • the movement mode corresponding to the virtual character may be determined according to the year of creation of the target painting and/or the technical level of the vehicle corresponding to the location.
  • the creative background information of the target painting it can be determined that the corresponding moving mode of the virtual character is riding a carriage, riding a sedan chair, riding a bicycle, and so on.
  • the movement mode corresponding to the virtual character may be determined according to the movement speed of the electronic device and the creation background information of the target painting.
  • the corresponding moving mode of the virtual character is determined, thereby having It helps the target user to obtain an immersive experience, thereby helping the target user to learn the relevant information of the target painting with high concentration.
  • the target user may select the movement mode corresponding to the virtual character.
  • the method further includes: controlling the virtual character to move along a preset path in response to the movement control being triggered.
  • the movement control may represent a control used by the electronic device to control the movement of the virtual character.
  • the mobile control can be a virtual control or a physical control, which is not limited here. For example, it may be determined that the mobile control is triggered in response to detecting that the mobile control is clicked; for another example, it may be determined that the mobile control is triggered in response to detecting that the mobile control is long-pressed; Double click, make sure the move control is triggered; and so on.
  • the movement of the virtual character can still be controlled through the movement control, thereby improving the flexibility of controlling the virtual character.
  • the target object includes at least one of the following: non-player characters corresponding to characters in the target painting, non-player characters corresponding to animals in the target painting, and non-player characters corresponding to plants in the target painting , the non-player character corresponding to the building in the target artwork.
  • non-player characters Non-Player Character, NPC
  • the target user can interact with the non-player Character interaction to obtain relevant information of the target painting, which can improve the fun of painting learning.
  • the virtual information corresponding to the non-player character includes an interactive control corresponding to the non-player character; after displaying the interactive control corresponding to the non-player character, the method further includes: responding to the The interaction control is triggered to display the interaction information between the non-player character and the virtual character.
  • an interactive control for any non-player character may be displayed near the non-player character.
  • the interactive control corresponding to any non-player character may be displayed on the top, right side or left side of the non-player character, etc., which is not limited here.
  • the interactive control is triggered in response to detecting that the interactive control is clicked; for another example, it may be determined that the interactive control is triggered in response to detecting that the interactive control is long pressed; Double-click, confirm that the interactive control is triggered; and so on.
  • the interaction information between the non-player character and the virtual character may be any information used for the interaction between the non-player character and the virtual character.
  • the interaction information between the non-player character and the virtual character may be used for at least one of the following: introducing relevant information of the non-player character to the virtual character, introducing information about the target painting to the virtual character For related information, greet the avatar.
  • the interaction information between the non-player character and the virtual character may be in the form of dialogue, assignment of tasks, and the like.
  • the non-player character may introduce relevant information of the target painting to the virtual character by having a dialogue with the virtual character.
  • the non-player character can issue a question-and-answer task to the virtual character, so that the target user can learn relevant knowledge about the target painting through the question-and-answer task.
  • the interaction information between the non-player character and the virtual character is displayed, thus based on the active operation of the target user, the non-player character is triggered to send to the target
  • the user introduces relevant information of the target painting, thereby helping the target user absorb relevant knowledge of the target painting.
  • the displaying the interaction information between the non-player character and the virtual character includes: obtaining progress information of the target user viewing the target painting; displaying the non-player character according to the progress information. Interaction information between the player character and the virtual character.
  • the target user can choose a non-player character to interact with, and different non-player characters in the target painting can sequentially introduce different knowledge about the target painting to the target user. For example, after displaying the virtual character corresponding to the target user in the preset path, in response to the distance between the virtual character and the non-player character A being less than or equal to the preset distance, the non-player character A introduces the Knowledge about the target painting.
  • the virtual character walks forward along the preset path and encounters a non-player character B (the distance between the virtual character and the non-player character B is less than or equal to the preset distance), and can continue to introduce the virtual character to the virtual character through the non-player character B.
  • Knowledge about the target painting In the above example, by obtaining the progress information of the target user viewing the target painting, and displaying the interaction information between the non-player character and the virtual character according to the progress information, it is possible to pass two of the target painting.
  • the above non-player characters according to the progress information of the target user watching the target painting, sequentially introduce different knowledge of the target painting to the virtual character, thereby helping the target user to learn the relevant knowledge of the target painting in a more reasonable order.
  • the virtual information corresponding to the non-player character includes interaction information between the non-player character and the virtual character;
  • the distance between any target object is less than or equal to the preset distance
  • displaying the virtual information corresponding to the target object includes: responding to the fact that the distance between the virtual character and the non-player character is less than or equal to the preset distance, Displaying interaction information between the non-player character and the virtual character.
  • the interaction information between the non-player character and the virtual character can be directly displayed, thereby When the virtual character passes by each non-player character, the corresponding interactive information is displayed respectively, so that when the virtual character moves in the target painting, richer painting knowledge can be obtained without the target user actively operating.
  • the virtual information corresponding to the target object includes introduction information corresponding to the target object.
  • the introduction information corresponding to the target object may include any information introducing the identity, work, etc. of the person.
  • the introduction information corresponding to the target object may include any information introducing the function, history, owner, etc. of the house.
  • the target object is a bridge
  • the introduction information corresponding to the target object may include any information introducing the name of the bridge, construction history, and the like.
  • the introduction information corresponding to the target object is displayed, thereby in the virtual
  • the target object is introduced, so that as the virtual character moves in the target painting, the target user can learn relevant knowledge about each target object in the target painting.
  • the electronic device may be a mobile phone of an exhibitor.
  • the mobile phone can collect real-scene images through the camera module.
  • the mobile phone may display the virtual character corresponding to the visitor on a preset path in the target painting area displayed on the display screen of the mobile phone in response to the target painting included in the real-scene image.
  • the image of the face area of the virtual character can be the face image of the visitor, and the dress information of the virtual character can be determined according to the age and location of the target painting and the gender and age of the visitor.
  • the mobile phone can control the virtual character to move along a preset path according to the displacement of the mobile phone in response to the movement of the mobile phone.
  • the mobile phone may display virtual information corresponding to the target object in response to a distance between the virtual character and any target object in the target painting area being less than or equal to a preset distance. As the virtual character moves along the preset path, the virtual character may encounter each target object, so that the visitor can obtain the introduction information corresponding to each target object.
  • this disclosure also provides a painting display device, electronic equipment, computer-readable storage media, and computer program products, all of which can be used to implement any of the painting display methods provided by this disclosure.
  • a painting display device electronic equipment, computer-readable storage media, and computer program products, all of which can be used to implement any of the painting display methods provided by this disclosure.
  • Fig. 2 shows a block diagram of a painting display device provided by an embodiment of the present disclosure.
  • the painting display device is applied to electronic equipment.
  • the painting display device includes:
  • the first presentation part 21 is configured to display the virtual character corresponding to the target user in the target painting area displayed on the electronic device in response to the real scene image collected by the electronic device, wherein the target painting area Indicates the area where the target painting is located in the real-scene image displayed by the electronic device;
  • the second display part 22 is configured to display virtual information corresponding to the target object in response to a distance between the virtual character and any target object in the target painting area being less than or equal to a preset distance.
  • the device further includes:
  • the first control part is configured to control the virtual character to move in the target painting area according to the displacement of the electronic device in response to the movement of the electronic device.
  • the first display part 21 is further configured to: display the virtual character corresponding to the target user on a preset path in the target painting area displayed by the electronic device;
  • the first control part is configured to: in response to the movement of the electronic device, control the virtual character to move along the preset path according to the displacement of the electronic device.
  • the first control part is further configured to:
  • the virtual character In response to the movement of the electronic device, the virtual character is controlled to move along the preset path according to the displacement of the electronic device and the movement manner.
  • the first control part is further configured to:
  • the corresponding moving manner of the virtual character is determined.
  • the device further includes:
  • the second control part is configured to control the virtual character to move along a preset path in response to the movement control being triggered.
  • the target object includes at least one of the following: non-player characters corresponding to characters in the target painting, non-player characters corresponding to animals in the target painting, and non-player characters corresponding to plants in the target painting , the non-player character corresponding to the building in the target artwork.
  • the virtual information corresponding to the non-player character includes an interactive control corresponding to the non-player character
  • the device further includes: a third display part configured to display interaction information between the non-player character and the virtual character in response to the interaction control being triggered.
  • the third presentation part is further configured as:
  • interaction information between the non-player character and the virtual character is displayed.
  • the virtual information corresponding to the non-player character includes interaction information between the non-player character and the virtual character;
  • the second display part 22 is configured to display interaction information between the non-player character and the virtual character in response to the distance between the virtual character and the non-player character being less than or equal to a preset distance.
  • the virtual information corresponding to the target object includes introduction information corresponding to the target object.
  • the first display part 21 is configured as:
  • the creative background information of the target painting display the virtual character corresponding to the target user, wherein the dress information of the virtual character is determined according to the creative background information, and the creative background information includes the age information of the target painting and/or location information.
  • the first display part 21 is configured as:
  • the creative background information of the target painting and the user information of the target user display the virtual character, wherein the dress information of the virtual character is determined according to the creative background information and the user information, the The user information includes at least the gender and/or age of the target user.
  • the first display part 21 is configured as:
  • a virtual character corresponding to the target user is displayed, wherein the image of the face area of the virtual character is determined according to the face image.
  • the virtual character corresponding to the target user is displayed in the target painting area displayed on the electronic device, and in response to the virtual character and the The distance between any target object in the target painting area is less than or equal to the preset distance, and the virtual information corresponding to the target object is displayed, so that after the target painting enters the field of view of the electronic device used by the target user, by enhancing In a realistic way, while displaying the real scene image on the electronic device, the virtual character corresponding to the target user is displayed, and the virtual information corresponding to the target object is displayed according to the positional relationship between the virtual character and the target object in the target painting , so that as the position of the virtual character in the target painting area changes, the relevant information of the target painting can be displayed vividly, so that the target user can obtain the richness of the target painting while experiencing the fun of viewing the exhibition. introductory information.
  • the functions or parts included in the device provided by the embodiments of the present disclosure can be configured to execute the methods described in the above method embodiments, and for its specific implementation and technical effects, refer to the descriptions of the above method embodiments.
  • An embodiment of the present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • An embodiment of the present disclosure also proposes a computer program, including computer readable codes.
  • a processor in the electronic device executes the above method.
  • An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are run in an electronic device , the processor in the electronic device executes the above method.
  • An embodiment of the present disclosure also provides an electronic device, including: one or more processors; a memory configured to store executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory instruction to perform the above method.
  • Electronic devices may be provided as terminals, servers, or other forms of devices.
  • Fig. 3 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • an electronic device may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.
  • the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (Input/Output, I/O) interface 812 , sensor component 814 and communication component 816 .
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more components that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia portion to facilitate interaction between multimedia component 808 and processing component 802 .
  • the memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
  • Memory 804 can be realized by any type of volatile or nonvolatile storage device or their combination, such as Static Random Access Memory (SRAM, Static Random-Access Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM) , Static Random-Access Memory), Erasable Programmable Read-Only Memory (EPROM, Electrically Erasable Programmable Read-Only Memory), Programmable Read-Only Memory (PROM, Programmable Read-Only Memory), Read-Only Memory (ROM, Read-Only Memory) Only Memory), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Electrically Erasable Programmable Read-Only Memory
  • PROM Programmable Read-
  • the power supply component 806 provides power to various components of the electronic device 800 .
  • Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
  • the multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD, Liquid Crystal Display) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC, Microphone), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as calling mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 .
  • the audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface part, which may be a keyboard, a click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 .
  • the sensor component 814 can detect the open/close state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • the sensor component 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS, Complementary Metal-Oxide-Semiconductor) or a charge coupled device (CCD, Charge Coupled Device) image sensor, configured for use in imaging applications.
  • CMOS complementary metal oxide semiconductor
  • CCD Charge Coupled Device
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access wireless networks based on communication standards, such as wireless networks (Wi-Fi, Wireless Fidelity), second-generation mobile communication technologies (2G, The 2nd Generation) or third-generation mobile communication technologies (3G, The 3rd Generation) Generation), or a combination of them.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC, Near Field Communication) part to facilitate short-range communication.
  • NFC Near Field Communication
  • the NFC part can be based on radio frequency identification (RFID, Radio Frequency Identification) technology, infrared data association (IrDA, Infrared Data Association) technology, ultra-wideband (UWB, Ultra Wide Band) technology, Bluetooth (BT, Blue Tooth) technology and other techniques to achieve.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC, Application Specific Integrated Circuit), digital signal processors (DSP, Digital Signal Processor), digital signal processing devices (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array (FPGA, Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic components to implement the above method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components to implement the above method.
  • a non-volatile computer-readable storage medium such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.
  • This disclosure relates to the field of augmented reality.
  • acquiring the image information of the target painting in the real environment and then using various visual correlation algorithms to detect or identify the relevant features, states and attributes of the target painting, and thus obtain the matching specific application.
  • AR effect combining virtual and reality.
  • Vision-related algorithms can involve visual positioning, SLAM, 3D reconstruction, image registration, background segmentation, object key point extraction and tracking, object pose or depth detection, etc.
  • Specific applications can involve interactive scenarios such as tours, navigation, explanations, reconstructions, virtual effect overlays and display related to real scenes or objects.
  • the relevant features, status and attributes of the target painting can be detected or identified through the convolutional neural network.
  • the above-mentioned convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
  • Embodiments of the present disclosure may be systems, methods and/or computer program products.
  • a computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of embodiments of the present disclosure.
  • a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
  • a computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • the computer-readable storage medium may include: portable computer disk, hard disk, random access memory (RAM, Random Access Memory), read-only memory, erasable programmable read-only memory (EPROM or flash memory), static random access memory, Portable Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disk (DVD, Digital Video Disc), memory sticks, floppy disks, mechanically encoded devices such as punched cards with instructions stored thereon Or the protrusion structure in the groove, and any suitable combination of the above.
  • RAM random access memory
  • EPROM or flash memory erasable programmable read-only memory
  • static random access memory Portable Compact Disc Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • DVD Digital Versatile Disk
  • memory sticks floppy disks
  • mechanically encoded devices such as punched cards with instructions stored thereon Or the protrusion structure in the groove, and any suitable combination of the above.
  • computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
  • Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA, Industry Standard Architecture) instructions, machine instructions, machine-related instructions, pseudocode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., as well as conventional procedural programming languages such as "C" or similar programming languages.
  • Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer via any kind of network, including a local area network (LAN, Local Area Network) or a wide area network (WAN, Wide Area Network), or may be connected to an external computer (e.g., using Internet Service Provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • electronic circuits such as programmable logic circuits, field programmable gate arrays, or programmable logic arrays, can execute computer-readable program instructions by using state information of computer-readable program instructions to personalize electronic circuits , so as to achieve various aspects of the present disclosure.
  • These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
  • each block in a flowchart or block diagram may represent a portion, a program segment, or a portion of an instruction that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the computer program product can be realized by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in other embodiments, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
  • the products applying the disclosed technical solution have clearly notified the personal information processing rules and obtained the individual's independent consent before processing personal information.
  • the disclosed technical solution involves sensitive personal information the products applying the disclosed technical solution have obtained individual consent before processing sensitive personal information, and at the same time meet the requirement of "express consent". For example, at a personal information collection device such as a camera, a clear and prominent sign is set up to inform that it has entered the scope of personal information collection, and personal information will be collected.
  • the personal information processing rules may include Information such as the information processor, the purpose of personal information processing, the method of processing, and the type of personal information processed.
  • the virtual character corresponding to the target user is shown in the target painting area displayed on the electronic device, and in response to the virtual character and the The distance between any target object in the target painting area is less than or equal to the preset distance, and the virtual information corresponding to the target object is displayed, so that after the target painting enters the field of view of the electronic device used by the target user, through augmented reality
  • the virtual character corresponding to the target user is displayed, and according to the positional relationship between the virtual character and the target object in the target painting, the virtual information corresponding to the target object is displayed, Therefore, with the change of the position of the virtual character in the target painting area, the relevant information of the target painting can be displayed vividly, so that the target user can obtain rich information about the target painting while experiencing the fun of viewing the exhibition. Introduce information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开涉及一种画作展示方法、装置、电子设备、存储介质和程序产品。所述方法包括:响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。

Description

画作展示方法、装置、电子设备、存储介质和程序产品
相关申请的交叉引用
本公开基于申请号为202210141789.7、申请日为2022年02月16日、申请名称为“画作展示方法、装置、电子设备、存储介质和程序产品”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以全文引入的方式引入本公开。
技术领域
本公开涉及但不限于计算机技术领域,尤其涉及一种画作展示方法、装置、电子设备、存储介质和程序产品。
背景技术
随着社会的发展,人们的生活水平不断提高,物质文化需求逐渐增长。目前,博物馆或者美术馆等场馆在展览画作的同时,为了向观展者介绍所展示的画作的相关信息,通常通过印刷在画作旁边的墙上或纸上的文字进行介绍,或者向观展者发放讲解器,以由观展者通过讲解器获得画作的讲解信息。
发明内容
本公开实施例提供了一种画作展示技术方案。
根据本公开实施例的一方面,提供了一种画作展示方法,包括:
响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
通过响应于电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,并响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,由此在目标画作进入目标用户所使用的电子设备的视野后,通过增强现实的方式,在所述电子设备中展示实景图像的同时,展示目标用户对应的虚拟角色,并根据所述虚拟角色与目标画作中的目标对象之间的位置关系,展示目标对象对应的虚拟信息,从而随着所述虚拟角色在目标画作区域中的位置的变化,生动地进行目标画作的相关信息的展示,进而能够使目标用户在体会到观展的趣味性的同时,获得目标画作的丰富的介绍信息。
根据本公开实施例的一方面,提供了一种画作展示装置,应用于电子设备,所述装置包括:
第一展示部分,配置为响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画 作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;
第二展示部分,配置为响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
根据本公开的一方面,提供了一种电子设备,包括:一个或多个处理器;配置为存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。
根据本公开的一方面,提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。
在本公开实施例中,通过响应于电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,并响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,由此在目标画作进入目标用户所使用的电子设备的视野后,通过增强现实的方式,在所述电子设备中展示实景图像的同时,展示目标用户对应的虚拟角色,并根据所述虚拟角色与目标画作中的目标对象之间的位置关系,展示目标对象对应的虚拟信息,从而随着所述虚拟角色在目标画作区域中的位置的变化,生动地进行目标画作的相关信息的展示,进而能够使目标用户在体会到观展的趣味性的同时,获得目标画作的丰富的介绍信息。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。
图1示出本公开实施例提供的画作展示方法的流程图。
图2示出本公开实施例提供的画作展示装置的框图。
图3示出本公开实施例提供的一种电子设备的框图。
具体实施方式
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种 情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。
相关技术中,在通过印刷在画作旁边的墙上或纸上的文字介绍画作的相关信息的方式中,为了保持博物馆或者美术馆的整体展示效果,通常所展示的文字量较小,导致观展者所能获得的信息量较小。在通过讲解器获得讲解信息的方式中,观展者通常只能获得音频形式的讲解信息,而听觉上的讲解信息有时对于观展者而言理解难度较大。
本公开实施例提供了一种画作展示方法,通过响应于电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,并响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,由此在目标画作进入目标用户所使用的电子设备的视野后,通过增强现实的方式,在所述电子设备中展示实景图像的同时,展示目标用户对应的虚拟角色,并根据所述虚拟角色与目标画作中的目标对象之间的位置关系,展示目标对象对应的虚拟信息,从而随着所述虚拟角色在目标画作区域中的位置的变化,生动地进行目标画作的相关信息的展示,进而能够使目标用户在体会到观展的趣味性的同时,获得目标画作的丰富的介绍信息。
下面结合附图对本公开实施例提供的画作展示方法进行详细的说明。
图1示出本公开实施例提供的画作展示方法的流程图。所述画作展示方法可以由电子设备执行。其中,电子设备可以是用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备或者可穿戴设备等。在一些可能的实现方式中,所述画作展示方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。如图1所示,所述画作展示方法包括步骤S11至步骤S12。
在步骤S11中,响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域。
在步骤S12中,响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
在本公开实施例中,所述电子设备可以是能够被观展者操作使用的电子设备。在一种可能的实现方式中,所述电子设备可以是观展者的电子设备。例如,所述电子设备可以是观展者的手机、平板电脑等。在该实现方式中,观展者可以通过自己的手机等电子设备便捷地获取画作的相关信息,而无需向展览方租借讲解器等设备。当然,在一些可能的实现方式中,所述电子设备也可以是展览方向观展者提供的电子设备。例如,展览方可以向没有手机的小朋友等观展者提供平板电脑等电子设备,以方便没有手机的观展者获得画作的相关信息。
所述电子设备可以对真实场景采集得到图像、图像序列、视频等中的至少之一。其中,图像序列可以包括至少两个图像。在一种可能的实现方式中,所述实景图像可以为所述电子设备对真实场景采集的最新图像。在另一种可能的实现方式中,所述实景图像可以为所述电子设备对真实场景采集的图像序列中最新的一帧图像。在另一种可能的实现方式中,所述实景图像可以为所述电子设备对真实场景采集的视频中最新的一个视频 帧图像。所述电子设备可以通过图像采集模组采集实景图像。在一个例子中,所述电子设备为手机,所述电子设备的图像采集模组包括摄像头模组,所述手机可以通过所述摄像头模组采集实景图像。当然,也可以通过与所述电子设备连接的图像采集设备采集实景图像。例如,所述电子设备为手机,与所述手机连接的图像采集设备为相机,可以通过相机采集实景图像。其中,所述图像采集设备与所述电子设备可以通过无线或有线的方式连接,在此不作限定。
在本公开实施例中,可以基于所述实景图像进行画作识别,以判断所述实景图像是否包括目标画作。在一种可能的实现方式中,所述电子设备可以向服务端发送画作识别请求,其中,所述画作识别请求包括第一图像。其中,可以将所述实景图像作为第一图像,或者,可以对所述实景图像进行压缩,得到第一图像。服务端可以响应于所述画作识别请求,对第一图像进行画作识别,以判断第一图像是否包括目标画作,从而可以判断所述实景图像中是否包括目标画作。在另一种可能的实现方式中,可以由所述电子设备对所述实景图像进行画作识别,判断所述实景图像是否包括目标画作。
所述电子设备在所述实景图像中包括目标画作的情况下,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色。其中,目标画作区域可以显示目标画作的部分或全部。目标画作区域可以占实景图像的部分或全部区域,即,实景图像中可以仅包括目标画作区域,也可以包括目标画作区域以外的区域,如背景区域。随着所述电子设备的视野范围的改变,目标画作区域可以显示目标画作的不同部分。
在一种可能的实现方式中,所述展示目标用户对应的虚拟角色,包括:根据所述目标画作的创作背景信息,展示目标用户对应的虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息确定的,所述创作背景信息包括所述目标画作的年代信息和/或地点信息。其中,装扮信息可以表示用于装扮虚拟角色的信息。装扮信息可以包括服装、饰品、发型、妆容等中的至少之一。
作为该实现方式的一个示例,可以根据目标画作的年代信息,确定虚拟角色的装扮信息。在该示例中,目标用户在观看不同年代的目标画作时,展示在目标画作区域中的目标用户对应的虚拟角色的装扮信息可以不同。例如,不同年代的目标画作对应的服装可以不同。
作为该实现方式的另一个示例,可以根据目标画作的地点信息,确定虚拟角色的装扮信息。在该示例中,目标用户在观看在不同地点创作的目标画作时,展示在目标画作区域中的目标用户对应的虚拟角色的装扮信息可以不同。例如,在不同国家创作的目标画作对应的服装可以不同。
作为该实现方式的另一个示例,可以根据目标画作的年代信息和地点信息,确定虚拟角色的装扮信息。
在该实现方式中,通过根据目标画作的创作背景信息,确定目标用户对应的虚拟角色的装扮信息,由此能够给目标用户带来置身于目标画作的年代和/或地点的感觉,使目标用户在获得沉浸式体验的同时,学习到目标画作的创作背景信息。
作为该实现方式的一个示例,所述根据所述目标画作的创作背景信息,展示目标用户对应的虚拟角色,包括:根据所述目标画作的创作背景信息和所述目标用户的用户信息,展示所述虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息和所述用户信息确定的,所述用户信息至少包括所述目标用户的性别和/或年龄。在该示例中,通过结合目标用户的性别和/或年龄,确定目标用户对应的虚拟角色的装扮信息,由此不仅能给目标用户带来穿越到目标画作的年代和/或地点的感觉,还有助于目标用户了解在目标画作的年代和/或地点与自己相同的性别和/或相似的年龄的人们的装扮,从而有助于目标用户进一步学习目标画作的创作背景信息。
在其他示例中,还可以由目标用户选择虚拟角色的性别和/或年龄,由此有助于目标用户了解在目标画作的年代和/或地点,不同性别、年龄的人们的装扮,从而有助于目标用户进一步学习目标画作的创作背景信息。
在其他可能的实现方式中,目标用户对应的虚拟角色的装扮信息也可以不根据目标画作的创作背景信息确定。例如,目标用户可以主动选择虚拟角色的装扮信息。又如,可以获取目标用户的偏好信息,根据所述偏好信息确定目标用户对应的虚拟角色的装扮信息。
在一种可能的实现方式中,所述展示目标用户对应的虚拟角色,包括:根据目标用户的人脸图像,展示所述目标用户对应的虚拟角色,其中,所述虚拟角色的面部区域的图像是根据所述人脸图像确定的。在该实现方式中,可以将目标用户的人脸图像作为所述虚拟角色的面部区域的图像,或者,可以将目标用户的人脸图像美化后,作为所述虚拟角色的面部区域的图像,在此不做限定。通过根据目标用户的人脸图像确定所述虚拟角色的面部区域的图像,由此有助于目标用户获得沉浸式体验,从而有助于目标用户以较高的专注力学习目标画作的相关信息。
在其他可能的实现方式中,目标用户对应的虚拟角色的面部区域的图像,也可以不根据目标用户的人脸图像确定。例如,可以预先设置多个不同性别、年龄的面部图像,并可以根据目标用户的性别和年龄,获取相应的面部图像,作为目标用户对应的虚拟角色的面部区域的图像。
在本公开实施例中,目标对象可以表示目标画作中具有待展示的虚拟信息的任意类型的对象。例如,目标对象可以是目标画作中的人物、动物、房屋、桥梁、船只等等。
在本公开实施例中,任一目标对象对应的预设距离,可以表示用于触发展示该目标对象对应的虚拟信息的距离。不同目标对象对应的预设距离可以相同,也可以不同。例如,不同人物对应的预设距离可以相同;又如,船只对应的预设距离可以大于人物对应的预设距离,等等。本领域技术人员可以根据目标画作中的目标对象的密度、目标对象与预设路径之间的距离等,灵活设置不同目标对象对应的预设距离,在此不做限定。
在本公开实施例中,虚拟信息可以表示用于与真实场景的信息融合后显示的虚拟的信息。虚拟信息可以包括文字、图片、音频、视频等中的一种或两种以上。任一目标对象对应的虚拟信息,可以包括:用于介绍该目标对象的虚拟信息,和/或,用于介绍目标画作的虚拟信息。例如,目标画作中的某一目标对象为人物,则该人物对应的虚拟信息可以包括用于介绍该人物的文字和/或视频,和/或,用于介绍该目标画作的文字和/或视频。
在一种可能的实现方式中,所述在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,包括:在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色。在该实现方式中,可以基于目标画作的标识信息,获取目标画作对应的AR(Augmented Reality,增强现实)场景的信息,并根据所述AR场景的信息,展示目标画作对应的AR场景。其中,目标画作对应的AR场景可以包括预设路径。通过在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色,由此能够引导目标用户对应的虚拟角色接近目标画作中具有待展示的虚拟信息的目标对象,从而有助于目标用户更快速地获得目标画作的介绍信息。
在另一种可能的实现方式中,目标用户对应的虚拟角色可以处于目标画作区域的任意位置。
在一种可能的实现方式中,所述方法还包括:响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色在所述目标画作区域中移动。在该实现方式中,可以响应于所述电子设备移动,获取所述电子设备的位移。可以将所述电子设备的位移映 射到所述目标画作对应的平面坐标系上,得到第一目标向量,并根据第一目标向量控制虚拟角色在目标画作区域中移动。在该实现方式中,通过控制电子设备移动来控制虚拟角色在目标画作区域中移动,由此能够提高移动虚拟角色的便捷性,从而能够方便目标用户观看目标画作的不同部分,获得目标画作的不同部分的目标对象对应的虚拟信息。
作为该实现方式的一个示例,所述在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,包括:在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色;所述响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色在所述目标画作区域中移动,包括:响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着所述预设路径移动。在该示例中,可以响应于所述电子设备移动,获取所述电子设备的位移。可以将所述电子设备的位移映射到预设路径对应的坐标系上,得到第二目标向量,并根据第二目标向量控制虚拟角色在目标画作区域中移动。在该示例中,通过在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色,并响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着预设路径移动,由此能够引导目标用户对应的虚拟角色接近目标画作中具有待展示的虚拟信息的目标对象,从而有助于目标用户更快速地获得目标画作的介绍信息。
在一个示例中,所述响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着所述预设路径移动,包括:确定所述虚拟角色对应的移动方式;响应于所述电子设备移动,根据所述电子设备的位移和所述移动方式,控制所述虚拟角色沿着所述预设路径移动。其中,虚拟角色对应的移动方式可以为走、跑、跳、坐车、坐船等等,在此不做限定。通过根据所述虚拟角色对应的移动方式,控制所述虚拟角色在目标画作区域中沿着预设路径移动,由此能够进一步提高目标用户观看目标画作的趣味性。
在一个例子中,所述确定所述虚拟角色对应的移动方式,包括:根据所述电子设备的移动速度、所述虚拟角色的角色特征和所述目标画作的创作背景信息中的至少之一,确定所述虚拟角色对应的移动方式。
例如,可以根据所述电子设备的移动速度,确定所述虚拟角色对应的移动方式。例如,若所述电子设备的移动速度大于或等于预设速度,则可以确定所述虚拟角色对应的移动方式为跑;若所述电子设备的移动速度小于预设速度,则可以确定所述虚拟角色对应的移动方式为走。
又如,可以根据所述虚拟角色的角色特征,确定所述虚拟角色对应的移动方式。例如,若所述虚拟角色为小孩,则所述虚拟角色对应的移动方式可以为跳;若所述虚拟角色为成人,则所述虚拟角色对应的移动方式可以为走。
又如,可以根据所述虚拟角色的角色特征和所述电子设备的移动速度,确定所述虚拟角色对应的移动方式。例如,若所述虚拟角色为小孩,且所述电子设备的移动速度大于或等于预设速度,则可以确定所述虚拟角色对应的移动方式为跑;若所述虚拟角色为小孩,且所述电子设备的移动速度小于预设速度,则可以确定所述虚拟角色对应的移动方式为跳;若所述虚拟角色为成人,且所述电子设备的移动速度大于或等于预设速度,则可以确定所述虚拟角色对应的移动方式为跑;若所述虚拟角色为成人,且所述电子设备的移动速度小于预设速度,则可以确定所述虚拟角色对应的移动方式为走。
又如,可以根据目标画作的创作背景信息,确定所述虚拟角色对应的移动方式。例如,可以根据目标画作的创作年代和/或地点对应的交通工具的技术水平,确定所述虚拟角色对应的移动方式。例如,根据目标画作的创作背景信息,可以确定所述虚拟角色对应的移动方式为坐马车、坐轿子、骑自行车等等。
又如,可以根据所述电子设备的移动速度和所述目标画作的创作背景信息,确定所 述虚拟角色对应的移动方式。
在上述例子中,通过根据所述电子设备的移动速度、所述虚拟角色的角色特征和所述目标画作的创作背景信息中的至少之一,确定所述虚拟角色对应的移动方式,由此有助于目标用户获得沉浸式体验,从而有助于目标用户以较高的专注力学习目标画作的相关信息。
在另一个例子中,可以由目标用户选择所述虚拟角色对应的移动方式。
在一种可能的实现方式中,所述方法还包括:响应于移动控件被触发,控制所述虚拟角色沿着预设路径移动。在该实现方式中,移动控件可以表示电子设备用于控制所述虚拟角色移动的控件。移动控件可以是虚拟控件,也可以是实体控件,在此不做限定。例如,可以响应于检测到移动控件被单击,确定移动控件被触发;又如,可以响应于检测到移动控件被长按,确定移动控件被触发;又如,可以响应于检测到移动控件被双击,确定移动控件被触发;等等。在该实现方式中,在所述电子设备的视野范围固定不变的情况下,仍然能够通过移动控件控制所述虚拟角色移动,从而能够提高虚拟角色控制的灵活性。
在一种可能的实现方式中,所述目标对象包括下列至少一个:目标画作中的人物对应的非玩家角色,目标画作中的动物对应的非玩家角色,目标画作中的植物对应的非玩家角色,目标画作中的建筑物对应的非玩家角色。在该实现方式中,通过将目标画作中的人物、动物、植物、建筑物设置为能够与目标用户互动的非玩家角色(Non–Player Character,NPC),由此使目标用户能够通过与非玩家角色交互获得目标画作的相关信息,从而能够提高画作学习的趣味性。
作为该实现方式的一个示例,所述非玩家角色对应的虚拟信息包括所述非玩家角色对应的互动控件;在展示所述非玩家角色对应的互动控件之后,所述方法还包括:响应于所述互动控件被触发,展示所述非玩家角色与所述虚拟角色之间的互动信息。在该示例中,任一非玩家角色对应的互动控件可以显示在该非玩家角色的附近。例如,任一非玩家角色对应的互动控件可以显示在该非玩家角色的上方、右侧或者左侧等,在此不做限定。例如,可以响应于检测到互动控件被单击,确定互动控件被触发;又如,可以响应于检测到互动控件被长按,确定互动控件被触发;又如,可以响应于检测到互动控件被双击,确定互动控件被触发;等等。
在该示例中,所述非玩家角色与所述虚拟角色之间的互动信息可以为用于所述非玩家角色与所述虚拟角色之间互动的任意信息。例如,所述非玩家角色与所述虚拟角色之间的互动信息可以用于以下至少之一:向所述虚拟角色介绍所述非玩家角色的相关信息,向所述虚拟角色向介绍目标画作的相关信息,向所述虚拟角色打招呼。
所述非玩家角色与所述虚拟角色之间的互动信息可以为对话、发放任务等形式。例如,非玩家角色可以通过与所述虚拟角色对话,向所述虚拟角色介绍目标画作的相关信息。又如,非玩家角色可以向虚拟角色发放问答任务,以使目标用户通过问答任务了解目标画作的相关知识。
在该示例中,通过响应于非玩家角色对应的互动控件被触发,展示所述非玩家角色与所述虚拟角色之间的互动信息,由此基于目标用户的主动操作,触发非玩家角色向目标用户介绍目标画作的相关信息,从而有助于目标用户吸收目标画作的相关知识。
在一个例子中,所述展示所述非玩家角色与所述虚拟角色之间的互动信息,包括:获取所述目标用户观看所述目标画作的进度信息;根据所述进度信息,展示所述非玩家角色与所述虚拟角色之间的互动信息。在这个例子中,目标用户可以选择进行互动的非玩家角色,目标画作中的不同非玩家角色可以依次向目标用户介绍目标画作的不同知识。例如,在预设路径中展示目标用户对应的虚拟角色之后,可以响应于所述虚拟角色与非 玩家角色A之间的距离小于或等于预设距离,通过非玩家角色A向所述虚拟角色介绍目标画作的相关知识。虚拟角色沿着预设路径向前走,遇到非玩家角色B(虚拟角色与非玩家角色B之间的距离小于或等于预设距离),可以继续通过非玩家角色B向所述虚拟角色介绍目标画作的相关知识。在上述例子中,通过获取目标用户观看目标画作的进度信息,并根据所述进度信息,展示所述非玩家角色与所述虚拟角色之间的互动信息,由此可以通过目标画作中的两个以上非玩家角色,根据目标用户观看目标画作的进度信息,依次向虚拟角色介绍目标画作的不同知识,从而有助于目标用户按照更合理的顺序进行目标画作的相关知识的学习。
作为该实现方式的一个示例,所述非玩家角色对应的虚拟信息包括所述非玩家角色与所述虚拟角色之间的互动信息;所述响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,包括:响应于所述虚拟角色与所述非玩家角色之间的距离小于或等于预设距离,展示所述非玩家角色与所述虚拟角色之间的互动信息。在该示例中,可以响应于所述虚拟角色与所述非玩家角色之间的距离小于或等于预设距离,直接展示所述非玩家角色与所述虚拟角色之间的互动信息,由此在虚拟角色路过各个非玩家角色时,分别展示相应的互动信息,从而在虚拟角色在目标画作中移动的过程中,能够在目标用户不主动操作的情况下,获得更丰富的画作知识。
在一种可能的实现方式中,所述目标对象对应的虚拟信息包括所述目标对象对应的介绍信息。例如,目标对象为人物,则该目标对象对应的介绍信息可以包括介绍该人物的身份、工作等的任意信息。又如,目标对象为房屋,则该目标对象对应的介绍信息可以包括介绍该房屋的作用、历史、主人等的任意信息。又如,目标对象为桥梁,则该目标对象对应的介绍信息可以包括介绍该桥梁的名称、修建历史等的任意信息。在该实现方式中,通过响应于所述虚拟角色与目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的介绍信息,由此在所述虚拟角色路过目标对象时,对目标对象进行介绍,从而随着虚拟角色在目标画作中移动,能够使目标用户学习目标画作中的各个目标对象的相关知识。
下面通过一个具体的应用场景说明本公开实施例提供的画作展示方法。在该应用场景中,所述电子设备可以为观展者的手机。所述手机可以通过摄像头模组,采集实景图像。所述手机可以响应于所述实景图像中包括目标画作,在所述手机的显示屏显示的目标画作区域中的预设路径上,显示所述观展者对应的虚拟角色。其中,所述虚拟角色的面部区域的图像可以为所述观展者的人脸图像,所述虚拟角色的装扮信息可以根据目标画作的年代、地点以及所述观展者的性别、年龄确定。所述手机可以响应于所述手机移动,根据所述手机的位移,控制所述虚拟角色沿着预设路径移动。所述手机可以响应于所述虚拟角色与目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。随着所述虚拟角色沿着预设路径移动,所述虚拟角色可以遇到各个目标对象,从而使观展者可以获得各个目标对象对应的介绍信息。
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。
此外,本公开还提供了画作展示装置、电子设备、计算机可读存储介质、计算机程序产品,上述均可用来实现本公开提供的任一种画作展示方法,相应技术方案和技术效果可参见方法部分的相应记载。
图2示出本公开实施例提供的画作展示装置的框图。所述画作展示装置应用于电子设备。如图2所示,所述画作展示装置包括:
第一展示部分21,配置为响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;
第二展示部分22,配置为响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
在一种可能的实现方式中,所述装置还包括:
第一控制部分,配置为响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色在所述目标画作区域中移动。
在一种可能的实现方式中,
所述第一展示部分21还配置为:在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色;
所述第一控制部分配置为:响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着所述预设路径移动。
在一种可能的实现方式中,所述第一控制部分还配置为:
确定所述虚拟角色对应的移动方式;
响应于所述电子设备移动,根据所述电子设备的位移和所述移动方式,控制所述虚拟角色沿着所述预设路径移动。
在一种可能的实现方式中,所述第一控制部分还配置为:
根据所述电子设备的移动速度、所述虚拟角色的角色特征和所述目标画作的创作背景信息中的至少之一,确定所述虚拟角色对应的移动方式。
在一种可能的实现方式中,所述装置还包括:
第二控制部分,配置为响应于移动控件被触发,控制所述虚拟角色沿着预设路径移动。
在一种可能的实现方式中,所述目标对象包括下列至少一个:目标画作中的人物对应的非玩家角色,目标画作中的动物对应的非玩家角色,目标画作中的植物对应的非玩家角色,目标画作中的建筑物对应的非玩家角色。
在一种可能的实现方式中,所述非玩家角色对应的虚拟信息包括所述非玩家角色对应的互动控件;
所述装置还包括:第三展示部分,配置为响应于所述互动控件被触发,展示所述非玩家角色与所述虚拟角色之间的互动信息。
在一种可能的实现方式中,所述第三展示部分还配置为:
获取所述目标用户观看所述目标画作的进度信息;
根据所述进度信息,展示所述非玩家角色与所述虚拟角色之间的互动信息。
在一种可能的实现方式中,所述非玩家角色对应的虚拟信息包括所述非玩家角色与所述虚拟角色之间的互动信息;
所述第二展示部分22配置为:响应于所述虚拟角色与所述非玩家角色之间的距离小于或等于预设距离,展示所述非玩家角色与所述虚拟角色之间的互动信息。
在一种可能的实现方式中,所述目标对象对应的虚拟信息包括所述目标对象对应的介绍信息。
在一种可能的实现方式中,所述第一展示部分21配置为:
根据所述目标画作的创作背景信息,展示目标用户对应的虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息确定的,所述创作背景信息包括所述目标画作的年代信息和/或地点信息。
在一种可能的实现方式中,所述第一展示部分21配置为:
根据所述目标画作的创作背景信息和所述目标用户的用户信息,展示所述虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息和所述用户信息确定的,所述用户信息至少包括所述目标用户的性别和/或年龄。
在一种可能的实现方式中,所述第一展示部分21配置为:
根据目标用户的人脸图像,展示所述目标用户对应的虚拟角色,其中,所述虚拟角色的面部区域的图像是根据所述人脸图像确定的。
在本公开实施例中,通过响应于电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,并响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,由此在目标画作进入目标用户所使用的电子设备的视野后,通过增强现实的方式,在所述电子设备中展示实景图像的同时,展示目标用户对应的虚拟角色,并根据所述虚拟角色与目标画作中的目标对象之间的位置关系,展示目标对象对应的虚拟信息,从而随着所述虚拟角色在目标画作区域中的位置的变化,生动地进行目标画作的相关信息的展示,进而能够使目标用户在体会到观展的趣味性的同时,获得目标画作的丰富的介绍信息。
在一些实施例中,本公开实施例提供的装置具有的功能或包含的部分可以配置为执行上文方法实施例描述的方法,其具体实现和技术效果可以参照上文方法实施例的描述。
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。其中,所述计算机可读存储介质可以是非易失性计算机可读存储介质,或者可以是易失性计算机可读存储介质。
本公开实施例还提出一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行上述方法。
本公开实施例还提供一种电子设备,包括:一个或多个处理器;配置为存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。
电子设备可以被提供为终端、服务器或其它形态的设备。
图3示出根据本公开实施例的一种电子设备的框图。例如,电子设备可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等终端。
参照图3,电子设备800可以包括以下一个或多个组件:处理组件802、存储器804、电源组件806、多媒体组件808、音频组件810、输入/输出(Input/Output,I/O)的接口812,传感器组件814以及通信组件816。
处理组件802通常控制电子设备800的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个部分,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体部分,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM,Static Random-Access  Memory),电可擦除可编程只读存储器(EEPROM,Static Random-Access Memory),可擦除可编程只读存储器(EPROM,Electrically Erasable Programmable Read-Only Memory),可编程只读存储器(PROM,Programmable Read-Only Memory),只读存储器(ROM,Read Only Memory),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD,Liquid Crystal Display)和触摸面板(TP,Touch Panel)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC,Microphone),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口部分之间提供接口,上述外围接口部分可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态、组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS,Complementary Metal-Oxide-Semiconductor)或电荷耦合装置(CCD,Charge Coupled Device)图像传感器,配置为在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi,Wireless Fidelity),第二代移动通信技术(2G,The 2nd Generation)或第三代移动通信技术(3G,The 3nd Generation),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC,Near Field Communication)部分,以促进短程通信。例如,在NFC部分可基于射频识别(RFID,Radio Frequency Identification)技术,红外数据协会(IrDA,Infrared Data Association)技术,超宽带(UWB,Ultra Wide Band)技术,蓝牙(BT,Blue Tooth)技术和其他技术来实现。
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC, Application Specific Integrated Circuit)、数字信号处理器(DSP,Digital Signal Processor)、数字信号处理设备(DSPD,Digital Signal Processing Device)、可编程逻辑器件(PLD,Programmable Logic Device)、现场可编程门阵列(FPGA,Field Programmable Gate Array)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。
本公开涉及增强现实领域,通过获取现实环境中的目标画作的图像信息,进而借助各类视觉相关算法实现对目标画作的相关特征、状态及属性进行检测或识别处理,从而得到与具体应用匹配的虚拟与现实相结合的AR效果。视觉相关算法可涉及视觉定位、SLAM、三维重建、图像注册、背景分割、对象的关键点提取及跟踪、对象的位姿或深度检测等。具体应用可以涉及跟真实场景或物品相关的导览、导航、讲解、重建、虚拟效果叠加展示等交互场景。可通过卷积神经网络,实现对目标画作的相关特征、状态及属性进行检测或识别处理。上述卷积神经网络是基于深度学习框架进行模型训练而得到的网络模型。
本公开实施例可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开实施例的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质可以包括:便携式计算机盘、硬盘、随机存取存储器(RAM,Random Access Memory)、只读存储器、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器、便携式压缩盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD,Digital Video Disc)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA,Industry Standard Architecture)指令、机器指令、机器相关指令、伪代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言诸如Smalltalk、C++等,以及常规的过程式编程语言如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN,Local Area Network)或广域网(WAN,Wide Area Network)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程 序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列或可编程逻辑阵列,该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个部分、程序段或指令的一部分,所述部分、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
该计算机程序产品可以通过硬件、软件或其结合的方式实现。在一些实施例中,所述计算机程序产品体现为计算机存储介质,在另一些实施例中,计算机程序产品体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。
上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考。
若本公开技术方案涉及个人信息,应用本公开技术方案的产品在处理个人信息前,已明确告知个人信息处理规则,并取得个人自主同意。若本公开技术方案涉及敏感个人信息,应用本公开技术方案的产品在处理敏感个人信息前,已取得个人单独同意,并且同时满足“明示同意”的要求。例如,在摄像头等个人信息采集装置处,设置明确显著的标识告知已进入个人信息采集范围,将会对个人信息进行采集,若个人自愿进入采集范围即视为同意对其个人信息进行采集;或者在个人信息处理的装置上,利用明显的标识/信息告知个人信息处理规则的情况下,通过弹窗信息或请个人自行上传其个人信息等方式获得个人授权;其中,个人信息处理规则可包括个人信息处理者、个人信息处理目的、处理方式以及处理的个人信息种类等信息。
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领 域的其它普通技术人员能理解本文披露的各实施例。
工业实用性
本公开实施例中,通过响应于电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,并响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,由此在目标画作进入目标用户所使用的电子设备的视野后,通过增强现实的方式,在所述电子设备中展示实景图像的同时,展示目标用户对应的虚拟角色,并根据所述虚拟角色与目标画作中的目标对象之间的位置关系,展示目标对象对应的虚拟信息,从而随着所述虚拟角色在目标画作区域中的位置的变化,生动地进行目标画作的相关信息的展示,进而能够使目标用户在体会到观展的趣味性的同时,获得目标画作的丰富的介绍信息。

Claims (18)

  1. 一种画作展示方法,应用于电子设备,所述方法包括:
    响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;
    响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色在所述目标画作区域中移动。
  3. 根据权利要求2所述的方法,其中,
    所述在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,包括:在所述电子设备显示的目标画作区域中的预设路径上,展示目标用户对应的虚拟角色;
    所述响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色在所述目标画作区域中移动,包括:响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着所述预设路径移动。
  4. 根据权利要求3所述的方法,其中,所述响应于所述电子设备移动,根据所述电子设备的位移,控制所述虚拟角色沿着所述预设路径移动,包括:
    确定所述虚拟角色对应的移动方式;
    响应于所述电子设备移动,根据所述电子设备的位移和所述移动方式,控制所述虚拟角色沿着所述预设路径移动。
  5. 根据权利要求4所述的方法,其中,所述确定所述虚拟角色对应的移动方式,包括:
    根据所述电子设备的移动速度、所述虚拟角色的角色特征和所述目标画作的创作背景信息中的至少之一,确定所述虚拟角色对应的移动方式。
  6. 根据权利要求1至5中任意一项所述的方法,其中,所述方法还包括:
    响应于移动控件被触发,控制所述虚拟角色沿着预设路径移动。
  7. 根据权利要求1至6中任意一项所述的方法,其中,所述目标对象包括下列至少一个:目标画作中的人物对应的非玩家角色,目标画作中的动物对应的非玩家角色,目标画作中的植物对应的非玩家角色,目标画作中的建筑物对应的非玩家角色。
  8. 根据权利要求7所述的方法,其中,所述非玩家角色对应的虚拟信息包括所述非玩家角色对应的互动控件;
    在展示所述非玩家角色对应的互动控件之后,所述方法还包括:响应于所述互动控件被触发,展示所述非玩家角色与所述虚拟角色之间的互动信息。
  9. 根据权利要求8所述的方法,其中,所述展示所述非玩家角色与所述虚拟角色的互动信息,包括:
    获取所述目标用户观看所述目标画作的进度信息;
    根据所述进度信息,展示所述非玩家角色与所述虚拟角色之间的互动信息。
  10. 根据权利要求7所述的方法,其中,所述非玩家角色对应的虚拟信息包括所述非玩家角色与所述虚拟角色之间的互动信息;
    所述响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息,包括:响应于所述虚拟角色与所述非玩家角色之间的距离小于或等于所述预设距离,展示所述非玩家角色与所述虚拟角 色之间的互动信息。
  11. 根据权利要求1至10中任意一项所述的方法,其中,所述目标对象对应的虚拟信息包括所述目标对象对应的介绍信息。
  12. 根据权利要求1至11中任意一项所述的方法,其中,所述展示目标用户对应的虚拟角色,包括:
    根据所述目标画作的创作背景信息,展示目标用户对应的虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息确定的,所述创作背景信息包括所述目标画作的年代信息和/或地点信息。
  13. 根据权利要求12所述的方法,其中,所述根据所述目标画作的创作背景信息,展示目标用户对应的虚拟角色,包括:
    根据所述目标画作的创作背景信息和所述目标用户的用户信息,展示所述虚拟角色,其中,所述虚拟角色的装扮信息是根据所述创作背景信息和所述用户信息确定的,所述用户信息至少包括所述目标用户的性别和/或年龄。
  14. 根据权利要求1至13中任意一项所述的方法,其中,所述展示目标用户对应的虚拟角色,包括:
    根据目标用户的人脸图像,展示所述目标用户对应的虚拟角色,其中,所述虚拟角色的面部区域的图像是根据所述人脸图像确定的。
  15. 一种画作展示装置,应用于电子设备,所述装置包括:
    第一展示部分,配置为响应于所述电子设备采集的实景图像中包括目标画作,在所述电子设备显示的目标画作区域中,展示目标用户对应的虚拟角色,其中,所述目标画作区域表示所述电子设备显示的所述实景图像中、所述目标画作所在的区域;
    第二展示部分,配置为响应于所述虚拟角色与所述目标画作区域中的任一目标对象之间的距离小于或等于预设距离,展示所述目标对象对应的虚拟信息。
  16. 一种电子设备,包括:
    一个或多个处理器;
    配置为存储可执行指令的存储器;
    其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行权利要求1至14中任意一项所述的方法。
  17. 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至14中任意一项所述的方法。
  18. 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行权利要求1至14中任意一项所述的方法。
PCT/CN2022/128247 2022-02-16 2022-10-28 画作展示方法、装置、电子设备、存储介质和程序产品 WO2023155477A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210141789.7 2022-02-16
CN202210141789.7A CN114549797A (zh) 2022-02-16 2022-02-16 画作展示方法、装置、电子设备、存储介质和程序产品

Publications (1)

Publication Number Publication Date
WO2023155477A1 true WO2023155477A1 (zh) 2023-08-24

Family

ID=81675103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/128247 WO2023155477A1 (zh) 2022-02-16 2022-10-28 画作展示方法、装置、电子设备、存储介质和程序产品

Country Status (2)

Country Link
CN (1) CN114549797A (zh)
WO (1) WO2023155477A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549797A (zh) * 2022-02-16 2022-05-27 深圳市商汤科技有限公司 画作展示方法、装置、电子设备、存储介质和程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004145657A (ja) * 2002-10-24 2004-05-20 Space Tag Inc バーチャル博物館システム
CN111627117A (zh) * 2020-06-01 2020-09-04 上海商汤智能科技有限公司 画像展示特效的调整方法、装置、电子设备及存储介质
CN112991553A (zh) * 2021-03-11 2021-06-18 深圳市慧鲤科技有限公司 信息展示方法及装置、电子设备和存储介质
US20220044480A1 (en) * 2020-08-06 2022-02-10 At&T Intellectual Property I, L.P. System for three dimensional extension with multiscreen extended reality
CN114549797A (zh) * 2022-02-16 2022-05-27 深圳市商汤科技有限公司 画作展示方法、装置、电子设备、存储介质和程序产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004145657A (ja) * 2002-10-24 2004-05-20 Space Tag Inc バーチャル博物館システム
CN111627117A (zh) * 2020-06-01 2020-09-04 上海商汤智能科技有限公司 画像展示特效的调整方法、装置、电子设备及存储介质
US20220044480A1 (en) * 2020-08-06 2022-02-10 At&T Intellectual Property I, L.P. System for three dimensional extension with multiscreen extended reality
CN112991553A (zh) * 2021-03-11 2021-06-18 深圳市慧鲤科技有限公司 信息展示方法及装置、电子设备和存储介质
CN114549797A (zh) * 2022-02-16 2022-05-27 深圳市商汤科技有限公司 画作展示方法、装置、电子设备、存储介质和程序产品

Also Published As

Publication number Publication date
CN114549797A (zh) 2022-05-27

Similar Documents

Publication Publication Date Title
CN110348524B (zh) 一种人体关键点检测方法及装置、电子设备和存储介质
KR101894021B1 (ko) Vr 공간에서 컨텐트를 제공하는 방법, 디바이스 및 기록매체
CN107948708B (zh) 弹幕展示方法及装置
KR20190107167A (ko) 공유된 관심사를 갖는 메시지들의 갤러리
US20210081985A1 (en) Advertisement interaction methods and apparatuses, electronic devices and storage media
WO2022188305A1 (zh) 信息展示方法及装置、电子设备、存储介质及计算机程序
EP4246963A1 (en) Providing shared augmented reality environments within video calls
WO2022151686A1 (zh) 场景图像展示方法、装置、设备、存储介质、程序及产品
CN110826361A (zh) 体育比赛的解说方法及装置
CN111626183A (zh) 一种目标对象展示方法及装置、电子设备和存储介质
WO2023155477A1 (zh) 画作展示方法、装置、电子设备、存储介质和程序产品
WO2023051356A1 (zh) 一种虚拟对象的显示方法及装置、电子设备和存储介质
CN112783316A (zh) 基于增强现实的控制方法及装置、电子设备和存储介质
Tsepapadakis et al. Are you talking to me? An Audio Augmented Reality conversational guide for cultural heritage
CN110929616A (zh) 一种人手识别方法、装置、电子设备和存储介质
WO2022151687A1 (zh) 合影图像生成方法、装置、设备、存储介质、计算机程序及产品
WO2023050598A1 (zh) 访客引导方法及装置、电子设备和存储介质
CN117010965A (zh) 基于信息流广告的互动方法、装置、设备及介质
CN112927293A (zh) Ar场景展示方法及装置、电子设备和存储介质
CN113961133A (zh) 电子设备的显示控制方法及装置、电子设备和存储介质
CN114266305A (zh) 对象识别方法及装置、电子设备和存储介质
CN113625874A (zh) 基于增强现实的交互方法及装置、电子设备和存储介质
CN106775245B (zh) 基于虚拟现实的用户属性设置方法及装置
US11922587B2 (en) Dynamic augmented reality experience
US20230316675A1 (en) Traveling in time and space continuum

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: 22926781

Country of ref document: EP

Kind code of ref document: A1