CN111103983A - AR musical instrument playing method and electronic equipment - Google Patents

AR musical instrument playing method and electronic equipment Download PDF

Info

Publication number
CN111103983A
CN111103983A CN201911405008.5A CN201911405008A CN111103983A CN 111103983 A CN111103983 A CN 111103983A CN 201911405008 A CN201911405008 A CN 201911405008A CN 111103983 A CN111103983 A CN 111103983A
Authority
CN
China
Prior art keywords
user
target
information
musical instrument
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911405008.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911405008.5A priority Critical patent/CN111103983A/en
Publication of CN111103983A publication Critical patent/CN111103983A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an AR musical instrument playing method and electronic equipment, wherein the method comprises the following steps: under the condition that a preview picture of a camera comprises a target AR musical instrument, acquiring first action information of a first user in the preview picture; playing first audio associated with the target AR musical instrument and the motion information based on the first motion information. Therefore, the cost of equipment purchase is not needed, the first action information can be automatically played, and the purposes of saving cost and time can be achieved.

Description

AR musical instrument playing method and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to an AR musical instrument playing method and electronic equipment.
Background
As society develops, more and more users enjoy music and also want to play some musical instruments. However, in the prior art, the user needs to learn the relevant professional knowledge and then purchase the corresponding equipment, which results in high cost and time consumption.
Disclosure of Invention
The embodiment of the invention provides an AR musical instrument playing method and electronic equipment, and aims to solve the problems that a user needs to learn relevant professional knowledge first and then purchases corresponding equipment to perform music playing, so that the cost is high and the time consumption is large.
In a first aspect, an embodiment of the present invention provides an AR musical instrument playing method, including:
under the condition that a preview picture of a camera comprises a target AR musical instrument, acquiring first action information of a first user in the preview picture;
playing first audio associated with the target AR musical instrument and the motion information based on the first motion information.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first action information of a first user in a preview picture of a camera under the condition that the preview picture of the camera comprises a target AR musical instrument;
a first playing module for playing a first audio associated with the target AR musical instrument and the motion information based on the first motion information.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the AR musical instrument playing method described above.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the AR musical instrument playing method described above.
In the embodiment of the invention, under the condition that a preview picture of a camera comprises a target AR musical instrument, first action information of a first user in the preview picture is acquired; playing first audio associated with the target AR musical instrument and the motion information based on the first motion information. Therefore, the cost of equipment purchase is not needed, the first action information can be automatically played, and the purposes of saving cost and time can be achieved.
Drawings
Fig. 1 is a flowchart of an AR musical instrument playing method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a display of a performance interface of an electronic device according to an embodiment of the present invention;
fig. 3 is a second schematic display diagram of a performance interface of the electronic device according to the embodiment of the present invention;
fig. 4 is a third schematic diagram of a display of a performance interface of the electronic device according to the embodiment of the present invention;
FIG. 5 is a fourth schematic view of a display of a performance interface of the electronic device according to the embodiment of the present invention;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a second structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a playing method of an AR musical instrument according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, acquiring first action information of a first user in a preview picture of a camera under the condition that the preview picture comprises a target AR musical instrument.
In the embodiment of the present invention, the target AR (Augmented Reality) musical instrument may be a virtual guitar, a virtual piano, a virtual drum set, or the like. Of course, other virtual instruments may be used, and the embodiment of the present invention is not limited thereto. The first motion information may be motion information of a palm of the first user, or motion information of a whole arm and a palm of the first user moving together.
And 102, playing first audio associated with the target AR musical instrument and the action information based on the first action information.
In an embodiment of the present invention, based on the first motion information, a first audio associated with the target AR musical instrument and the motion information is played. For example, a virtual guitar may have virtual playing strings on which the user may play through the first motion information; or the virtual piano may have virtual keys on which the user can play through the first action information. Of course, during playing, the electronic device may also display some visual effects, such as a bouncing note, a sound effect, and so on.
Because the electronic device can play the first audio associated with the target AR musical instrument and the motion information based on the first motion information, the user can play without touching the electronic device, so that the user can have more playing space.
In an embodiment of the present invention, the electronic Device may be a Mobile phone, a Tablet personal Computer (Tablet personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
Optionally, before the obtaining of the first action information of the first user in the preview screen, the method further includes:
receiving a first input by a second user to a target AR instrument of the at least one alternative AR instrument;
in response to the first input, displaying the target AR instrument at a first position in a preview screen of a camera.
In this embodiment, the second user and the first user may be the same user or different users. When the second user is different from the first user, other users except the first user select the target AR musical instrument for the first user, and the first user only needs to play; when the second user is the same user as the first user, then the first user may stand before the camera after selecting the target AR instrument, so that the performance may be started.
In this embodiment, the first input may be a click input, a long-press input, a slide input, or the like, the first input may also be a first operation, and the first input may also be a voice input, or some other input, or the like, and the present embodiment is not limited thereto.
In this embodiment, the first position may be an upper left corner, an upper right corner, a lower left corner, a lower right corner, or the like, or may be a preset position in addition, which is not limited in this embodiment.
For better understanding of the above process, please refer to fig. 2 and fig. 3, and fig. 2 and fig. 3 are schematic display diagrams of a performance interface of an electronic device according to an embodiment of the present invention. First, as shown in FIG. 2, a plurality of alternative AR instruments may be displayed in the preview interface, and the user may click on an instrument selection and select guitar 1 of the plurality of alternative AR instruments. After selecting guitar 1, guitar 1 is now displayed in the upper right corner of the preview interface as shown in FIG. 3. The user can directly click the guitar 1 at the upper right corner, and directly enlarge the guitar 1 to be directly the playing instrument in the picture, and then the user enters playing. The sound produced by the performance is the sound of the selected instrument, i.e. the guitar 1.
Therefore, the user can conveniently and quickly select the required musical instrument through the first input, and the musical instrument is played. And displaying the target AR musical instrument at the first position in the preview picture of the camera, and well prompting the current playing musical instrument of the user.
Optionally, before the obtaining of the first action information of the first user in the preview screen, the method further includes:
acquiring second action information of the first user in the preview picture;
displaying a target AR musical instrument matched with the second action information at a second position corresponding to the second action information;
the second position is a position within a preset range of the hand of the first user, or the second position is a position determined according to the gesture action of the first user.
In the present embodiment, the second motion information may be motion information of a palm motion of the first user, or motion information of a palm and an entire arm of the first user moving together. There may be various ways to display the target AR instrument matched with the second motion information at the second position corresponding to the second motion information. When the second position is a position within a preset range of the hand of the first user, the AR instrument displayed within the preset range of the hand of the user may be taken as a target AR instrument; when the second position is the position determined according to the gesture action of the first user, the user can determine different positions through different gestures, so that the target AR musical instrument is displayed at the position.
Thus, the user can flexibly and conveniently adjust the display position of the musical instrument.
Optionally, before the obtaining of the first action information of the first user in the preview screen, the method further includes:
acquiring third action information of the first user in the preview picture;
performing a target control operation if the third motion information indicates that the hand of the first user is in contact with a target AR instrument.
In the present embodiment, the third motion information may be motion information of the palm of the first user, or motion information of the entire arm and the palm of the first user moving together. Performing a target control operation if the third motion information indicates that the hand of the first user is in contact with a target AR instrument. The target control operation may include at least one of: updating a display of the target AR instrument; controlling a camera to execute shooting operation; and starting to detect the action information of the first user in the preview picture.
For example, after the player touches the virtual musical instrument, the musical instrument changes to a shaking and flashing state to prompt that the object is picked up, and then the recording can be started. Of course, the target control operation may include other operations, and this embodiment is not limited thereto. In this way, the user can quickly execute the target control operation through the third action information, thereby performing corresponding control.
Optionally, the target control operation includes at least one of:
updating a display of the target AR instrument;
controlling a camera to execute shooting operation;
and starting to detect the action information of the first user in the preview picture.
In the present embodiment, the display of the target AR musical instrument is updated, and the target AR musical instrument can be replaced with another target AR musical instrument. The shooting operation may be shooting or recording. The target control operation may further include starting to detect motion information of the first user in the preview screen, so that corresponding control may be performed according to the motion information of the first user. In this way, the target control operation may include a plurality of operations, thereby facilitating diversified control of the electronic device.
Optionally, before the obtaining of the first action information of the first user in the preview screen, the method further includes:
receiving a second input of a third user;
in response to the second input, generating a target AR instrument based on an input trajectory of the second input.
In this embodiment, the third user may be the first user or a user holding an electronic device. For better understanding of the process of this embodiment, reference may be made to fig. 4, where fig. 4 is a schematic display diagram of a performance interface of an electronic device according to an embodiment of the present invention.
As shown in fig. 4, the electronic device may turn on the camera, the camera views the display scene, and the user may hold the electronic device horizontally or vertically. The preview interface can be provided with setting menus such as a painting brush thickness, instrument selection, color selection, storage, cancel operation, exit and the like besides loading a picture shot by a camera and a painting brush 2 (moving along with a finger, and the finger disappears after being touched by the finger, so that the finger of a user is implied, namely the painting brush). The user may first draw some instruments on the electronic device and match the corresponding virtual instruments according to the instruments drawn by the user. The virtual instrument may be a virtual guitar, a virtual piano, a virtual drum kit, and so forth. Of course, other virtual instruments may be used, and the embodiment of the present invention is not limited thereto.
Certainly, the user can also click on a musical instrument for selection, after the virtual musical instrument is selected, the virtual musical instrument is hung at the upper right corner of the preview interface, so that the user can refer to copying, click and store the virtual musical instrument to be set as a playing musical instrument in the picture after the virtual musical instrument is drawn, and a target AR musical instrument is generated according to the content drawn by the user.
In this embodiment, a second input of a third user may be received; in response to the second input, generating a target AR instrument based on an input trajectory of the second input. Therefore, the user can customize the AR musical instrument to obtain the AR musical instrument desired by the user.
Optionally, the acquiring first action information of the first user in the preview screen includes:
acquiring a human body characteristic image of the first user;
determining at least one skeletal keypoint in the human feature image;
monitoring the change of the position of the at least one bone key point to obtain the position change information of the at least one bone key point;
obtaining the first action information based on the position change information of the at least one bone key point.
In this embodiment, the acquiring of the human body feature image of the first user may be by acquiring the human body feature image through a front-facing camera, or may be by acquiring the human body feature image through a rear-facing camera. When the human body characteristic image of the user is collected through the front camera, the user can fix the electronic equipment by using one support, so that the electronic equipment can normally collect the human body characteristic information of the user by facing the front camera of the electronic equipment. At this time, the electronic device may also prompt the orientation of the virtual musical instrument and the body feature image.
When the human body characteristic image is collected through the rear camera, another user can shoot a user to be played by using the rear camera through the handheld electronic equipment. During the shooting, another user can prompt the user to be played where to move to smoothly select the virtual musical instrument. When the target virtual musical instrument is selected, the target virtual musical instrument may flash in a shaking manner in the display screen, prompting the user that the target virtual musical instrument has been played.
In this embodiment, the bone key points may include a start point and an end point of the bone. And whether a certain virtual musical instrument is touched or not can be judged through the key point position of the human body characteristic image. According to the data of the key points of the limbs obtained by the human skeleton key point inspection technology, the amplitude and the frequency of the action of the person can be obtained by monitoring the change degree of the data. For example, the change of the corresponding key point on the arm can calculate the corresponding motion of the arm, thereby triggering the instrument to make relevant response.
In this embodiment, a human body feature image of the first user is acquired; determining at least one skeletal keypoint in the human feature image; monitoring the change of the position of the at least one bone key point to obtain the position change information of the at least one bone key point; obtaining the first action information based on the position change information of the at least one bone key point. Therefore, the first action information of the first user can be determined quickly and accurately, and corresponding control is performed.
Optionally, after the playing the target audio associated with the AR musical instrument and the motion information based on the motion information, the method further includes:
receiving a third input of the first user;
in response to the third input, determining a second audio selected by the third input;
and stopping playing the first audio and playing the second audio.
In this embodiment, the third input may be a click input, a long-press input, a slide input, or the like, the third input may also be a third operation, and the third input may also be a voice input, or some other input, or the like, and the present embodiment is not limited thereto.
When the third input is voice input of the user, a microphone of the mobile phone can be started through voice recognition and semantic recognition technologies, the voice of a player is recognized, and the user semantics are analyzed. When the user says "i want to play XX song", "open the accompaniment of XX music", or "the accompaniment of XX song", etc., the accompaniment, i.e., the second audio, can be opened while stopping playing the first audio. The performance action of the virtual user is preserved, and the accompaniment is matched according to the rhythm of the user performance.
In this embodiment, when the playing effect of the user is poor or the playing level of the user is low, the playing sound of the user may not be played, and only the second audio selected by the user may be played. Therefore, even if the playing effect of the user is poor, the video matched with the hand motion of the user and the played second audio can be recorded, and the playing effect is optimized.
Optionally, the first action information includes amplitude information and frequency information of the action of the first user;
after the first action information of the first user in the preview screen is acquired, the method further includes:
and playing special effect information matched with the first audio.
In this embodiment, the first motion information includes amplitude information and frequency information of the motion of the first user, so that the first audio can also be associated with the amplitude information and the frequency information. For example, when amplitude information and frequency information of the action of the first user are large, the first audio may be excited appropriately; when the amplitude information and the frequency information of the motion of the first user are small, the first audio may be appropriately moderated, and so on.
In this embodiment, the special effect information may include special effects such as a beating note or a sound wave. For better understanding of the above manner, please refer to fig. 5, and fig. 5 is a schematic display diagram of a performance interface of an electronic device according to an embodiment of the present invention.
As shown in fig. 5, the effect information matched with the first audio has a beating note 3 and a sound wave 4. After the virtual player in the display screen picks up the musical instrument, the picture can enter a video recording state. According to the limb action amplitude and frequency of the virtual player, the target virtual musical instrument responds along with the action of the virtual player, corresponding music is automatically matched and matched, special effects such as jumping notes and sound waves can be displayed in the playing process, and shooting personnel can pause and stop recording at any time. And the video is automatically triggered according to the action of the user, so that the operation of the user is simplified.
Optionally, after the obtaining of the first action information of the first user in the preview screen, the method further includes:
updating display of a target area on the AR instrument based on the first motion information.
In the present embodiment, updating the display of the target area on the AR musical instrument can be understood as described above. For example, the user may press a key, thereby displaying the effect of the press. Therefore, the display can be more vivid, and the display effect of the electronic equipment is improved. Of course, other display effects are also possible, and this embodiment is not limited to this.
In the method for playing the AR musical instrument, under the condition that a preview picture of a camera comprises a target AR musical instrument, first action information of a first user in the preview picture is acquired; playing first audio associated with the target AR musical instrument and the motion information based on the first motion information. Therefore, the cost of equipment purchase is not needed, the first action information can be automatically played, and the purposes of saving cost and time can be achieved.
Referring to fig. 6, fig. 6 is a structural diagram of an electronic device according to an embodiment of the present invention, which can implement details of the AR musical instrument playing method in the above-described embodiment, and achieve the same effects. As shown in fig. 6, the electronic device 600 includes an obtaining module 601 and a playing module 602, where the obtaining module 601 is connected to the playing module 602, where:
a first obtaining module 601, configured to obtain first action information of a first user in a preview picture of a camera when the preview picture includes a target AR musical instrument;
a first playing module 602, configured to play a first audio associated with the target AR musical instrument and the motion information based on the first motion information.
Optionally, the electronic device further includes:
a first receiving module, configured to receive a first input of a target AR instrument of the at least one alternative AR instrument by a second user;
and the first display module is used for responding to the first input and displaying the target AR musical instrument at a first position in a preview picture of the camera.
Optionally, the electronic device further includes:
the second acquisition module is used for acquiring second action information of the first user in the preview picture;
the second display module is used for displaying the target AR musical instrument matched with the second action information at a second position corresponding to the second action information;
the second position is a position within a preset range of the hand of the first user, or the second position is a position determined according to the gesture action of the first user.
Optionally, the electronic device further includes:
the third acquisition module is used for acquiring third action information of the first user in the preview picture;
an execution module to execute a target control operation if the third motion information indicates that the hand of the first user is in contact with a target AR instrument.
Optionally, the target control operation includes at least one of:
updating a display of the target AR instrument;
controlling a camera to execute shooting operation;
and starting to detect the action information of the first user in the preview picture.
Optionally, the electronic device further includes:
the second receiving module is used for receiving a second input of a third user;
a generating module for generating a target AR musical instrument based on an input trajectory of a second input in response to the second input.
Optionally, the first obtaining module includes:
the acquisition sub-module is used for acquiring a human body characteristic image of the first user;
a determining submodule for determining at least one skeletal keypoint in the human feature image;
the monitoring submodule is used for monitoring the change of the position of the at least one bone key point to obtain the position change information of the at least one bone key point;
and the obtaining submodule is used for obtaining the first action information based on the position change information of the at least one bone key point.
Optionally, the electronic device further includes:
the third receiving module is used for receiving a third input of the first user;
a determining module, responsive to the third input, for determining a second audio selected by the third input;
and the stopping module is used for stopping playing the first audio and playing the second audio.
Optionally, the first action information includes amplitude information and frequency information of the action of the first user;
the electronic device further includes:
and the second playing module is used for playing the special effect information matched with the first audio.
Optionally, the electronic device further includes:
an update module to update a display of a target area on the AR instrument based on the first action information.
The electronic device 600 can implement the processes implemented by the electronic device in the above method embodiments, and details are not repeated here to avoid repetition.
In the electronic device 600 of the embodiment of the present invention, the first obtaining module 601 is configured to obtain first action information of a first user in a preview picture of a camera under the condition that the preview picture includes a target AR musical instrument; a first playing module 602, configured to play a first audio associated with the target AR musical instrument and the motion information based on the first motion information. Therefore, the cost of equipment purchase is not needed, the first action information can be automatically played, and the purposes of saving cost and time can be achieved.
Referring to fig. 7, fig. 7 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, where the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and a camera 712. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to, when a preview screen of a camera includes a target AR instrument, acquire first action information of a first user in the preview screen; playing first audio associated with the target AR musical instrument and the motion information based on the first motion information. Therefore, the cost of equipment purchase is not needed, the first action information can be automatically played, and the purposes of saving cost and time can be achieved.
Optionally, the processor 710 is further configured to control the user input unit 707 to receive a first input of a target AR instrument of the at least one alternative AR instrument by a second user; the control display unit 706 displays the target AR musical instrument at a first position in a preview screen of the camera in response to the first input.
Optionally, the processor 710 is further configured to obtain second action information of the first user in the preview screen; controlling the display unit 706 to display the target AR musical instrument matched with the second motion information at a second position corresponding to the second motion information; the second position is a position within a preset range of the hand of the first user, or the second position is a position determined according to the gesture action of the first user.
Optionally, the processor 710 is further configured to obtain third action information of the first user in the preview screen; performing a target control operation if the third motion information indicates that the hand of the first user is in contact with a target AR instrument.
Optionally, the target control operation includes at least one of: updating a display of the target AR instrument; controlling a camera to execute shooting operation; and starting to detect the action information of the first user in the preview picture.
Optionally, the processor 710 is further configured to control the user input unit 707 to receive a second input of a third user; in response to the second input, generating a target AR instrument based on an input trajectory of the second input.
Optionally, the processor 710 is further configured to obtain a human body feature image of the first user; determining at least one skeletal keypoint in the human feature image; monitoring the change of the position of the at least one bone key point to obtain the position change information of the at least one bone key point; obtaining the first action information based on the position change information of the at least one bone key point.
Optionally, the processor 710 is further configured to control the user input unit 707 to receive a third input of the first user; in response to the third input, determining a second audio selected by the third input; and stopping playing the first audio and playing the second audio.
Optionally, the first action information includes amplitude information and frequency information of the action of the first user; the processor 710 is further configured to play special effect information matched with the first audio.
Optionally, the processor 710 is further configured to control the display unit 706 to update the display of the target area on the AR musical instrument based on the first motion information.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement the processes of the above-mentioned AR musical instrument playing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned AR musical instrument playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. An AR musical instrument playing method, comprising:
under the condition that a preview picture of a camera comprises a target AR musical instrument, acquiring first action information of a first user in the preview picture;
playing first audio associated with the target AR musical instrument and the motion information based on the first motion information.
2. The method according to claim 1, wherein before the obtaining the first action information of the first user in the preview screen, the method further comprises:
receiving a first input by a second user to a target AR instrument of the at least one alternative AR instrument;
in response to the first input, displaying the target AR instrument at a first position in a preview screen of a camera.
3. The method according to claim 1, wherein before the obtaining the first action information of the first user in the preview screen, the method further comprises:
acquiring second action information of the first user in the preview picture;
displaying a target AR musical instrument matched with the second action information at a second position corresponding to the second action information;
the second position is a position within a preset range of the hand of the first user, or the second position is a position determined according to the gesture action of the first user.
4. The method according to claim 1, wherein before the obtaining the first action information of the first user in the preview screen, the method further comprises:
acquiring third action information of the first user in the preview picture;
performing a target control operation if the third motion information indicates that the hand of the first user is in contact with a target AR instrument.
5. The method of claim 4, wherein the target control operation comprises at least one of:
updating a display of the target AR instrument;
controlling a camera to execute shooting operation;
and starting to detect the action information of the first user in the preview picture.
6. The method according to claim 1, wherein before the obtaining the first action information of the first user in the preview screen, the method further comprises:
receiving a second input of a third user;
in response to the second input, generating a target AR instrument based on an input trajectory of the second input.
7. The method according to claim 1, wherein the acquiring first action information of the first user in the preview screen comprises:
acquiring a human body characteristic image of the first user;
determining at least one skeletal keypoint in the human feature image;
monitoring the change of the position of the at least one bone key point to obtain the position change information of the at least one bone key point;
obtaining the first action information based on the position change information of the at least one bone key point.
8. The method of claim 1, wherein after the playing of the target audio associated with the AR instrument and the motion information based on the motion information, the method further comprises:
receiving a third input of the first user;
in response to the third input, determining a second audio selected by the third input;
and stopping playing the first audio and playing the second audio.
9. The method of claim 1, wherein the first action information comprises amplitude information and frequency information of an action of the first user;
after the first action information of the first user in the preview screen is acquired, the method further includes:
and playing special effect information matched with the first audio.
10. The method according to claim 1, wherein after the acquiring the first action information of the first user in the preview screen, the method further comprises:
updating display of a target area on the AR instrument based on the first motion information.
11. An electronic device, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first action information of a first user in a preview picture of a camera under the condition that the preview picture of the camera comprises a target AR musical instrument;
a first playing module for playing a first audio associated with the target AR musical instrument and the motion information based on the first motion information.
12. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the AR musical instrument playing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the AR musical instrument playing method according to any one of claims 1 to 10.
CN201911405008.5A 2019-12-31 2019-12-31 AR musical instrument playing method and electronic equipment Pending CN111103983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911405008.5A CN111103983A (en) 2019-12-31 2019-12-31 AR musical instrument playing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911405008.5A CN111103983A (en) 2019-12-31 2019-12-31 AR musical instrument playing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111103983A true CN111103983A (en) 2020-05-05

Family

ID=70424732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911405008.5A Pending CN111103983A (en) 2019-12-31 2019-12-31 AR musical instrument playing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111103983A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019910A (en) * 2020-08-27 2020-12-01 深圳创维-Rgb电子有限公司 Musical instrument playing method and device, television and storage medium
CN114115528A (en) * 2021-11-02 2022-03-01 深圳市雷鸟网络传媒有限公司 Virtual object control method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060084218A1 (en) * 2004-10-14 2006-04-20 Samsung Electronics Co., Ltd. Method and apparatus for providing an instrument playing service
CN106601217A (en) * 2016-12-06 2017-04-26 北京邮电大学 Interactive-type musical instrument performing method and device
CN106648083A (en) * 2016-12-09 2017-05-10 广州华多网络科技有限公司 Playing scene synthesis enhancement control method and device
CN107248407A (en) * 2017-06-30 2017-10-13 武汉理工大学 A kind of gesture musical performance device
CN109166565A (en) * 2018-08-23 2019-01-08 百度在线网络技术(北京)有限公司 Virtual musical instrument processing method, device, virtual musical instrument equipment and storage medium
CN109799903A (en) * 2018-12-21 2019-05-24 段新 Percussion music method, terminal device and system based on virtual reality

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060084218A1 (en) * 2004-10-14 2006-04-20 Samsung Electronics Co., Ltd. Method and apparatus for providing an instrument playing service
CN106601217A (en) * 2016-12-06 2017-04-26 北京邮电大学 Interactive-type musical instrument performing method and device
CN106648083A (en) * 2016-12-09 2017-05-10 广州华多网络科技有限公司 Playing scene synthesis enhancement control method and device
CN107248407A (en) * 2017-06-30 2017-10-13 武汉理工大学 A kind of gesture musical performance device
CN109166565A (en) * 2018-08-23 2019-01-08 百度在线网络技术(北京)有限公司 Virtual musical instrument processing method, device, virtual musical instrument equipment and storage medium
CN109799903A (en) * 2018-12-21 2019-05-24 段新 Percussion music method, terminal device and system based on virtual reality

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019910A (en) * 2020-08-27 2020-12-01 深圳创维-Rgb电子有限公司 Musical instrument playing method and device, television and storage medium
CN114115528A (en) * 2021-11-02 2022-03-01 深圳市雷鸟网络传媒有限公司 Virtual object control method and device, computer equipment and storage medium
CN114115528B (en) * 2021-11-02 2024-01-19 深圳市雷鸟网络传媒有限公司 Virtual object control method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110740259B (en) Video processing method and electronic equipment
CN109343759B (en) Screen-turning display control method and terminal
CN109078319B (en) Game interface display method and terminal
CN108334272B (en) Control method and mobile terminal
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
CN110097872B (en) Audio processing method and electronic equipment
CN108124059B (en) Recording method and mobile terminal
CN111010523B (en) Video recording method and electronic equipment
CN108668024B (en) Voice processing method and terminal
CN111163224B (en) Voice message playing method and electronic equipment
CN111124179A (en) Information processing method and electronic equipment
CN111026305A (en) Audio processing method and electronic equipment
CN110796918A (en) Training method and device and mobile terminal
CN108073405B (en) Application program unloading method and mobile terminal
CN109960456B (en) Virtual key layout generation method and terminal equipment
CN111103983A (en) AR musical instrument playing method and electronic equipment
CN110780751A (en) Information processing method and electronic equipment
CN108270928B (en) Voice recognition method and mobile terminal
CN108735194B (en) Beat prompting method and device
CN108388459B (en) Message display processing method and mobile terminal
CN111443824B (en) Touch screen control method and electronic equipment
CN110456959B (en) Terminal control method and terminal
CN108418961B (en) Audio playing method and mobile terminal
CN110928616A (en) Shortcut icon management method and electronic equipment
CN111445929A (en) Voice information processing method and electronic 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