CN111177420B - Multimedia file display method, electronic equipment and medium - Google Patents

Multimedia file display method, electronic equipment and medium Download PDF

Info

Publication number
CN111177420B
CN111177420B CN201911410827.9A CN201911410827A CN111177420B CN 111177420 B CN111177420 B CN 111177420B CN 201911410827 A CN201911410827 A CN 201911410827A CN 111177420 B CN111177420 B CN 111177420B
Authority
CN
China
Prior art keywords
target object
multimedia file
image
shooting
angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911410827.9A
Other languages
Chinese (zh)
Other versions
CN111177420A (en
Inventor
陈文智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911410827.9A priority Critical patent/CN111177420B/en
Publication of CN111177420A publication Critical patent/CN111177420A/en
Application granted granted Critical
Publication of CN111177420B publication Critical patent/CN111177420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/432Query formulation
    • G06F16/434Query formulation using image data, e.g. images, photos, pictures taken by a user

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a multimedia file display method, electronic equipment and a medium, wherein the multimedia file display method is applied to the electronic equipment and comprises the following steps: acquiring a first image of a target object displayed in a shooting preview interface; displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object. The user aims the camera of the electronic equipment at the target object, namely the first multimedia file associated with the target object can be called, so that the first multimedia file can be quickly obtained.

Description

Multimedia file display method, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a multimedia file display method, electronic equipment and a medium.
Background
Currently, in order to acquire multimedia files, an application program is generally opened first, keywords are input in a search box, multimedia files related to the keywords are displayed, and a user finds out a multimedia file of interest from among the displayed multimedia files. For example, the multimedia file is music, and the music application program is opened first; inputting song names in a search box; displaying music associated with the song title in the form of a list; the user may select music of interest to play. When the multimedia file is a picture or video, the manner in which the picture or video is acquired is similar to the manner in which music is acquired.
Therefore, the existing mode for acquiring the multimedia file is complicated in user operation.
Disclosure of Invention
The embodiment of the invention provides a multimedia file display method, electronic equipment and a medium, which are used for solving the problem that the acquisition of multimedia files is complicated.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for displaying a multimedia file, which is applied to an electronic device, where the method includes:
acquiring a first image of a target object displayed in a shooting preview interface;
displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image;
wherein the first region is a region associated with the target object.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first image acquisition module is used for acquiring a first image of a target object displayed in a shooting preview interface;
the first file display module is used for displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program when executed by the processor implements the steps of the multimedia file display method.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored thereon, the computer program implementing the steps of the multimedia file displaying method when executed by a processor.
In the embodiment of the invention, the first multimedia file associated with the target object is displayed in the first area in the shooting preview interface by shooting the first image of the target object. Therefore, the user aims the camera of the electronic equipment at the target object, namely the first multimedia file associated with the target object can be called, and the first multimedia file can be quickly obtained.
Drawings
FIG. 1 is a flow chart of a method for displaying multimedia files according to an embodiment of the present invention;
FIG. 2 shows a schematic diagram of an interface for adding a multimedia file associated with object A in accordance with one embodiment of the invention;
FIG. 3 shows a schematic diagram of an interface with an audio list displayed in accordance with one embodiment of the invention;
FIG. 4 shows a schematic diagram of an interface of object A with an audio file according to one embodiment of the invention;
FIG. 5 shows a schematic diagram of an interface of playing an audio file associated with object A in accordance with one embodiment of the invention;
FIG. 6 shows a schematic diagram of an interface displaying an identification of a multimedia file in accordance with one embodiment of the invention;
FIG. 7 illustrates a schematic diagram of an interface displaying an identification of audio selected in accordance with one embodiment of the invention;
FIG. 8 shows a schematic diagram of an interface for playing an audio file associated with object A in accordance with another embodiment of the present invention;
FIG. 9 shows a schematic diagram of an interface for adding a multimedia file associated with object A in accordance with another embodiment of the invention;
FIG. 10 shows a schematic drawing of dragging an identification of text to a first area of an object A in accordance with an embodiment of the invention;
FIG. 11 shows a schematic diagram of displaying text in a first area of an object A in accordance with an embodiment of the invention;
FIG. 12 shows a schematic diagram of displaying an image of an object A on a shooting preview interface in accordance with an embodiment of the present invention;
FIG. 13 shows a schematic diagram of an interface displaying an identification of a multimedia file in accordance with an embodiment of the invention;
FIG. 14 illustrates a schematic diagram of an interface displaying text with an identification of the text selected, in accordance with an embodiment of the present invention;
FIG. 15 shows a schematic diagram of displaying text in a first area of an object B in accordance with an embodiment of the invention;
FIG. 16 shows a schematic structural diagram of an electronic device of an embodiment of the invention;
fig. 17 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow chart illustrating a multimedia file displaying method according to an embodiment of the present invention. The multimedia file display method is applied to the electronic device, as shown in fig. 1, and includes:
step 102, acquiring a first image of a target object displayed in a shooting preview interface.
In this step, the first image may be a frame of preview image of the target object acquired by the camera, and the first image may also be an image of the target object captured by the camera in the background.
Step 104, displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object.
Wherein the first multimedia file is opened before the first multimedia file associated with the target object is displayed to enable display of the first multimedia file. The first multimedia file may include at least one of: text, pictures, video, audio.
In the case that the first multimedia file comprises text, step 104 comprises: and opening the text, and displaying the content of the text in a first area in the shooting preview interface.
In the case that the first multimedia file comprises a picture, step 104 comprises: and opening the picture, and displaying the picture in a first area in the shooting preview interface.
In the case where the first multimedia file comprises video, step 104 comprises: and playing the video in a first area in the shooting preview interface.
In the case where the first multimedia file comprises audio, step 104 comprises: and displaying the identification of the audio in a first area in the shooting preview interface, and playing the audio.
The first region may be a region around a certain range of the region where the target object is located, or a region where the target object is located.
Prior to step 104, the multimedia file displaying method further includes: extracting characteristics of a target object in the first image; calculating the similarity between the first image and the second image according to the characteristics of the target object in the first image and the characteristics of the target object in the preset second image; in the case that the similarity of the first image and the second image is greater than the predetermined similarity threshold, the first image and the second image are indicated to be matched. Wherein the characteristics of the target object include, but are not limited to, shape, color, size, pattern, etc. of the object a.
In the embodiment of the invention, the first multimedia file associated with the target object is displayed in the first area in the shooting preview interface by shooting the first image of the target object. Therefore, the user aims the camera of the electronic equipment at the target object, namely the first multimedia file associated with the target object can be called, and the first multimedia file can be quickly obtained. In addition, the first multimedia file is displayed in a first area associated with the target object in the shooting preview interface, so that a user can conveniently view the first multimedia file.
Optionally, before acquiring the first image of the target object displayed in the shooting preview interface, the multimedia file display method further includes:
receiving a first input of a user to a first multimedia file and a target object; and responding to the first input, and establishing the association relation between the target object and the first multimedia file.
In the embodiment of the invention, the first multimedia file associated with the target object can be displayed by establishing the association relation between the target object and the first multimedia file, so that a user can conveniently view the first multimedia file.
Optionally, before receiving the first input of the user to the first multimedia file and the target object, the multimedia file display method further comprises: acquiring a second image of the target object; receiving a multimedia file selection input of a user on an interface displaying a second image; displaying a multimedia file option in response to the multimedia file selection input; receiving an input from a user selecting a first multimedia file; in response to the input, an identification of the first multimedia file and the target object are displayed.
As one example, establishing the association relationship between the target object and the first multimedia file includes: and establishing an association relation between the characteristics of the target object and the first multimedia file.
For example, the target object is an object a, and the camera of the electronic device is aimed at the object a to take a picture, so as to obtain a second image 001 of the object a. Referring to fig. 2, the electronic device displays a second image 001, and displays a control 002 to add a picture, a control 003 to add a video, a control 004 to add a text, and a control 005 to add audio on an interface where the second image 001 is displayed. The electronic device receives input from the user's finger 006 to control 005.
Referring to fig. 3, the electronic device displays an audio list including audio file MUSIC01, audio file MUSIC 02, audio file MUSIC 03, and so on, in response to input of control 005 by the user's finger 006. The electronic device receives an input of the user's finger 006 selecting the audio file MUSIC 01. The audio files include one or more of music, audio files recorded by a user, audio files derived from video clips.
Referring to fig. 4, the electronic device displays an object a with the audio file MUSIC01 in response to an input selecting the audio file MUSIC01, associates the object a in the second image with the audio file MUSIC01 (i.e., the first multimedia file described above), and saves the second image.
In addition, after associating the object a in the second image with the audio file MUSIC01 (i.e., the first multimedia file described above), the interface shown in fig. 2 may be returned, and the steps of fig. 2, 3 and 4 are repeatedly performed, so as to implement associating the object a with a plurality of multimedia files.
Because the number of the multimedia files associated with the object a is different, when the electronic device scans the object a again, the displayed results are different, and the following two situations are specifically distinguished:
case one: object a is associated with a multimedia file (i.e. audio file MUSIC 01)
Referring to fig. 5, the electronic device again photographs the object a, resulting in a first image 007 of the object a. In the case where the first image matches the second image, the name 008 of the audio file MUSIC 01 is displayed above the object a in the photographing preview interface (i.e., the first area), and the audio file MUSIC 01 is played.
And a second case: the object A is associated with a plurality of multimedia files, wherein the plurality of multimedia files comprises an audio file MUSIC 01
Referring to fig. 6, the electronic device photographs an object B to obtain a first image of the object B. Since the object B and the object a are the same object, for example, the object B and the object a are the same object, or the object B and the object a are two objects having the same appearance and the same size. Thus, the first image matches the second image, and the identifications of the plurality of multimedia files associated with the object a are displayed around the object B in the photographing preview interface. That is, an identifier 008 of an image is displayed above the object B in the shooting preview interface, an identifier 009 of a text is displayed below the object B, an identifier 010 of a video is displayed on the left side of the object B, and an identifier 011 of an audio is displayed on the right side of the object B.
The electronic device receives an input selected by a user for the identifier 011 of the audio, and in response to the input, displays an interface as shown in fig. 7, in which the identifier 011 of the audio is displayed in an enlarged manner, to indicate that the audio is selected.
After the audio is selected, since the audio file associated with the object a is MUSIC 01, referring to fig. 8, the name 008 of the audio file MUSIC 01 is displayed above (i.e., the first area of) the object B in the photographing preview interface, and the audio file MUSIC 01 is played.
The embodiment of the invention can be applied to the scene of gift gifting.
For example, the object a is a cup, the user M purchases the cup, the user M captures a second image of the cup through the electronic device, extracts characteristics of the cup in the second image, the characteristics of the cup include color values, shapes, patterns, length, width and height and brands of red, green and blue (red, green, blue, RGB) of the cup, and the second image of the cup is stored in the cloud server in association with a piece of music.
The user M gives the cup to the user N, and after the user N receives the cup, the first image of the cup is shot through the electronic device. And the electronic equipment determines whether the first image is matched with the second image according to the characteristics of the cup in the first image and the characteristics of the cup in the second image. In the event that the first image matches the second image, the electronic device reads and plays music associated with the cup from the cloud server and plays music associated with the cup.
Optionally, the first image is an image obtained by shooting the target object at a first angle; after step 104, the multimedia file displaying method further includes:
the electronic equipment acquires a third image of the target object;
when the third image is an image obtained by shooting the target object at a second angle and the third image is matched with a preset fourth image, the electronic equipment displays a second multimedia file associated with the target object in a second area in a shooting preview interface; wherein the second angle is different from the first angle; the second region is a region associated with the target object. The second area may be an area surrounding a certain range of the area where the target object is located, or an area where the target object is located.
In the embodiment of the invention, the multimedia files displayed in a switching way can be realized by shooting the target object at different angles. For example, the target object is shot from a first angle, song a is played, the target object is shot from a second angle, and song B is switched to, so that song cutting is realized without clicking a song cutting button.
Optionally, the electronic device acquires a third image of the target object, including:
under the condition that the target object rotates to a second angle, the electronic equipment acquires a third image obtained by shooting the target object at the second angle;
Or,
and under the condition that the shooting angle of the camera of the electronic equipment is updated to the second angle, the electronic equipment acquires a third image obtained by shooting the target object at the second angle by the camera.
In the embodiment of the invention, after the electronic equipment shoots the first image of the target object, the position and the angle of the camera of the electronic equipment are unchanged, and the user manually rotates the target object, so that the camera and the target object relatively move. Or the position and the angle of the target object are unchanged, and the camera of the electronic equipment is moved, so that the camera and the target object perform relative movement. Aiming at the condition that the two cameras and the target object move relatively, the electronic equipment is convenient for a user to shoot a third image with different shooting angles from the first image.
Optionally, the first image is an image obtained by shooting a first face of the target object at a first angle, and the first multimedia file is a multimedia file associated with the first face of the target object; the third image is an image obtained by photographing a second side of the target object at a second angle, and the second multimedia file is a multimedia file associated with the second side of the target object.
For example, the target object is a cube object, the cube object has six faces, a first face of the cube object is associated with music, and a second face of the cube object is associated with video. In the case of photographing a first image of a first face of a square object at a first angle, music associated with the first face of the square object is played. And playing the video associated with the second face of the cube object when the third image obtained by the second face of the cube object is shot at the second angle.
In the embodiment of the invention, different faces of the target object are associated with different multimedia files, so that the electronic equipment shoots the different faces of the target object and can switch and display the different multimedia files, thereby providing richer multimedia files for users. Moreover, the user can switch and display different multimedia files by adjusting the display state of the target object or by adjusting the shooting angle, so that the user operation is more convenient.
Optionally, the electronic device receives a first input of a user to the first multimedia file and the target object, including: the electronic device receives a first input by a user dragging a first multimedia file to a first region of a target object.
Establishing an association relationship between the target object and the first multimedia file, including: and establishing an association relation between the first area of the target object and the first multimedia file.
Thus, after the electronic device acquires the first image, the first image is displayed on the photographing preview interface. Since the target object is included in the first image, a first region of the target object in the first image is identified, and thus the first multimedia file associated with the target object is displayed in the first region of the target object in the first image.
In this example, for example, the target object is a cube object, and the electronic device displays the first multimedia file and a second image of the cube object on the capture preview interface; the electronic device receives a first input that a user drags a first multimedia file to a first region of a cube object. And the electronic equipment responds to the first input and establishes the association relation between the first area of the cube object and the first multimedia file. After that, the electronic device acquires a first image of the cube object, and in the case where the first image matches the second image, displays a first multimedia file associated with the cube object in a first area of the cube object in the first image.
In the embodiment of the invention, the user can drag the first multimedia file to the first area of the target object according to the requirement of the user. In this way, when the target object is scanned or photographed again to obtain the first image, the first multimedia file is displayed in the first area of the target object in the first image. Therefore, the display of the first multimedia file is combined with the target object, a novel display mode of the multimedia file is provided, and the interestingness of a user is enhanced.
Optionally, before the first area in the preview interface is photographed and the first multimedia file associated with the target object is displayed, the multimedia file method further includes:
displaying at least one multimedia file in a third area in the shooting preview interface, the at least one multimedia file comprising the first multimedia file;
receiving a second input of a user, wherein the second input is input of the mobile electronic equipment of the user;
in response to the second input, updating the first multimedia file to a target display state according to the moving direction of the electronic device, the target display state indicating that the first multimedia file is selected; for example, the target display state is a state of enlarged display or highlighted display;
wherein displaying a first multimedia file associated with a target object in a first area in a shooting preview interface, comprises:
and opening the first multimedia file under the condition that the duration time from the first multimedia file to the target display state is greater than a preset threshold value, and displaying the first multimedia file in a first area in the shooting preview interface.
In the embodiment of the invention, the target object can be associated with a plurality of multimedia files, and the first multimedia file of target display can be selected according to the moving direction of the electronic equipment. The displayed multiple multimedia files can be selected without touch operation of the user on the displayed multiple multimedia files, so that the user operation is facilitated.
For example, the multimedia files are displayed in four directions, i.e., up, down, left and right, respectively, and when the electronic device moves downward, the multimedia file displayed below is selected, and the multimedia file displayed below is in the target display state. In the case where the electronic device moves rightward, the multimedia file displayed on the right side is selected, and the multimedia file displayed on the right side is in the target display state.
For example, the target object is an object a, and the camera of the electronic device is aimed at the object a to take a picture, so as to obtain a second image 001 of the object a. Referring to fig. 9, the electronic device displays a second image 001, and displays a control 002 to add a picture, a control 003 to add a video, a control 004 to add a text, and a control 005 to add audio on an interface where the second image 001 is displayed. The electronic device receives input from the user's finger 006 to a control 004 that adds text, and in response to the input, a text entry box is displayed. Through which the user enters text.
After the user has entered text within the input box, the electronic device displays an interface as shown in FIG. 10. On the interface of the electronic device shown in fig. 10, an identification 009 of the text input by the user and an object a are displayed. The electronic device receives a first input that the user's finger 006 drags the identification 009 of the text to the first area 012 of the object a, and in response to the first input, establishes an association of the first area of the object a with the text input by the user.
In addition, after the association relationship between the first area of the object a and the text input by the user is established, the interface shown in fig. 9 may be returned, and the steps of fig. 9 and 10 are repeatedly performed, so as to implement association of the object a with a plurality of multimedia files.
Because the number of the multimedia files associated with the object a is different, when the electronic device scans the object a again, the displayed results are different, and the following two situations are specifically distinguished:
case one: object a is associated with a multimedia file (i.e. text entered by the user)
Referring to fig. 11, the electronic apparatus photographs the object a again, resulting in a first image 013 of the object a. In the case where the first image 013 matches the second image, the content of the text input by the user is displayed in the first area 012 of the object a in the photographing preview interface. Referring to fig. 12, a first image 013 of the object a is displayed on the photographing preview interface.
And a second case: object a is associated with a plurality of multimedia files, wherein the plurality of multimedia files includes text entered by a user, video, audio, and images selected by the user
Referring to fig. 13, the electronic device photographs an object B, resulting in a first image of the object B. Since the object B and the object a are the same object, for example, the object B and the object a are the same object, or the object B and the object a are two objects having the same appearance and the same size. Thus, the first image matches the second image, and the identifications of the plurality of multimedia files associated with the object a are displayed around the object B in the photographing preview interface (i.e., the third region in the above description). That is, an identifier 008 of an image is displayed above the object B in the shooting preview interface, an identifier 009 of a text is displayed below the object B, an identifier 010 of a video is displayed on the left side of the object B, and an identifier 011 of an audio is displayed on the right side of the object B.
The electronic device receives a second input from the user moving the electronic device downward, the second input being that the user moves the electronic device downward. The electronic device updates the identity 009 of the text displayed underneath the object B to the target display state according to the electronic device moving downwards in response to the second input. That is, as shown in fig. 14, the identification 009 of the display text is selected.
In the case where the duration of the identification 009 of the text to the target display state is longer than the preset threshold, the text is opened, and referring to fig. 15, the content of the text input by the user is displayed in the first area 012 of the object B.
The embodiment of the invention provides another multimedia file display method which is applied to electronic equipment and comprises the following steps:
displaying a second image obtained by shooting a target object and a first multimedia file selected by a user; receiving a first input that a user drags a first multimedia file to a first region of a target object in a second image; and responding to the first input, and establishing an association relation between a first area of the target object in the second image and the first multimedia file.
And similarly, establishing an association relationship between a second area of the target object in the fourth image and the second multimedia file.
After the association relation is established, under the condition that a first image is obtained by shooting a target object, displaying the first image in a shooting preview interface; and displaying at least one multimedia file associated with the target object in a third area in the shooting preview interface in case that the first image is matched with a preset second image, wherein the at least one multimedia file comprises the first multimedia file.
Receiving a second input of a user, wherein the second input is input of the mobile electronic equipment of the user; in response to the second input, updating a first multimedia file of the at least one multimedia file to a target display state according to a movement direction of the electronic device, the target display state indicating that the first multimedia file is selected;
and opening the first multimedia file under the condition that the duration time from the first multimedia file to the target display state is greater than a preset threshold value, and displaying the first multimedia file in a first area in the shooting preview interface.
Acquiring a third image obtained by shooting the target object under the condition that the target object rotates to a second angle or the shooting angle of a camera of the electronic equipment is updated to the second angle; the first image is an image obtained by shooting a first surface of the target object at a first angle, and the third image is an image obtained by shooting a second surface of the target object at a second angle, wherein the second angle is different from the first angle.
And displaying a second multimedia file associated with the target object in a second area associated with the target object in the shooting preview interface when the third image is matched with the fourth image.
In an embodiment of the present invention, a plurality of multimedia files associated with a target object are displayed by capturing a first image of the target object. The user can move the electronic equipment, so that the multimedia files to be opened are selected, the user does not need to perform touch operation on the displayed multimedia files, and the displayed multimedia files can be selected, so that the user operation is facilitated. The multimedia file may be displayed in an area in the photographing preview interface after the selected multimedia file is opened. Therefore, a user shoots the camera of the electronic equipment aiming at the target object, and the multimedia file associated with the target object can be retrieved, so that the multimedia file can be quickly acquired. In addition, before the association relationship is established, the user can drag the multimedia file to the first area of the target object according to the requirement of the user. In this way, in the case of scanning or photographing the target object again, the multimedia file is displayed in the first area of the target object. Therefore, the display of the multimedia file is combined with the area of the target object, a novel display mode of the multimedia file is provided, and the interestingness of a user is enhanced. The user can also rotate the target object or the camera of the mobile electronic device, so that the camera and the target object perform relative movement, and further shooting of different angles is performed on the target object. Different shooting results can realize switching display of different multimedia files, so that the operation of a user is more convenient.
Fig. 16 shows a schematic structural diagram of an electronic device of an embodiment of the invention. As shown in fig. 16, the electronic apparatus 200 includes:
a first image obtaining module 202, configured to obtain a first image of a target object displayed in a shooting preview interface;
a first file display module 204, configured to display, in a first area in the shooting preview interface, a first multimedia file associated with the target object if the first image matches a preset second image; wherein the first region is a region associated with the target object.
In the embodiment of the invention, the first multimedia file associated with the target object is displayed in the first area in the shooting preview interface by shooting the first image of the target object. Therefore, the user aims the camera of the electronic equipment at the target object, namely the first multimedia file associated with the target object can be called, and the first multimedia file can be quickly obtained. In addition, the first multimedia file is displayed in a first area associated with the target object in the shooting preview interface, so that a user can conveniently view the first multimedia file.
Optionally, the first image is an image obtained by shooting the target object at a first angle; the electronic device 200 further includes:
The second image acquisition module is used for acquiring a third image of the target object;
the second file display module is used for displaying a second multimedia file associated with the target object in a second area in the shooting preview interface when the third image is an image obtained by shooting the target object at a second angle and the third image is matched with a preset fourth image;
wherein the second angle is different from the first angle; the second region is a region associated with the target object.
In the embodiment of the invention, the multimedia files displayed in a switching way can be realized by shooting the target object at different angles. For example, the target object is shot from a first angle, song a is played, the target object is shot from a second angle, and song B is switched to, so that song cutting is realized without clicking a song cutting button.
Optionally, the second image acquisition module includes:
the first acquisition sub-module is used for acquiring the third image obtained by shooting the target object at the second angle under the condition that the target object rotates to the second angle;
or,
the second obtaining sub-module is configured to obtain the third image obtained by the camera capturing the target object at the second angle when the capturing angle of the camera of the electronic device is updated to the second angle.
In the embodiment of the invention, after the electronic equipment shoots the first image of the target object, the position and the angle of the camera of the electronic equipment are unchanged, and the user manually rotates the target object, so that the camera and the target object relatively move. Or the position and the angle of the target object are unchanged, and the camera of the electronic equipment is moved, so that the camera and the target object perform relative movement. Aiming at the condition that the two cameras and the target object move relatively, the electronic equipment is convenient for a user to shoot a third image with different shooting angles from the first image.
Optionally, the first image is an image obtained by shooting a first surface of the target object at the first angle, and the first multimedia file is a multimedia file associated with the first surface of the target object; the third image is an image obtained by shooting a second face of the target object at the second angle, and the second multimedia file is a multimedia file associated with the second face of the target object.
In the embodiment of the invention, different faces of the target object are associated with different multimedia files, so that the electronic equipment shoots the different faces of the target object and can switch and display the different multimedia files, thereby providing richer multimedia files for users. Moreover, the user can switch and display different multimedia files by adjusting the display state of the target object or by adjusting the shooting angle, so that the user operation is more convenient.
Optionally, the electronic device 200 further includes:
the first input receiving module is used for receiving first input of a user on the first multimedia file and the target object;
and the association relation establishing module is used for responding to the first input and establishing the association relation between the target object and the first multimedia file.
In the embodiment of the invention, the first multimedia file associated with the target object can be displayed by establishing the association relation between the target object and the first multimedia file, so that a user can conveniently view the first multimedia file.
Optionally, the first input receiving module is used for receiving a first input that a user drags the first multimedia file to the first area of the target object;
and the association relation establishing module is used for establishing the association relation between the first area of the target object and the first multimedia file.
In the embodiment of the invention, the user can drag the first multimedia file to the first area of the target object according to the requirement of the user. In this way, when the target object is scanned or photographed again to obtain the first image, the first multimedia file is displayed in the first area of the target object in the first image. Therefore, the display of the first multimedia file is combined with the target object, a novel display mode of the multimedia file is provided, and the interestingness of a user is enhanced.
Optionally, the electronic device 200 further includes:
a third file display module, configured to display at least one multimedia file in a third area in the shooting preview interface, where the at least one multimedia file includes the first multimedia file;
the second input receiving module is used for receiving a second input of a user, wherein the second input is input of the electronic equipment moved by the user;
a state updating module, configured to respond to the second input, and update the first multimedia file to a target display state according to a movement direction of the electronic device, where the target display state indicates that the first multimedia file is selected;
the first file display module 204 includes:
and the file display sub-module is used for opening the first multimedia file and displaying the first multimedia file in a first area in the shooting preview interface under the condition that the duration time from the first multimedia file to the target display state is larger than a preset threshold value.
In the embodiment of the invention, the target object can be associated with a plurality of multimedia files, and the first multimedia file of target display can be selected according to the moving direction of the electronic equipment. The displayed multiple multimedia files can be selected without touch operation of the user on the displayed multiple multimedia files, so that the user operation is facilitated.
Fig. 17 is a schematic hardware structure of an electronic device implementing an embodiment of the present invention, where the electronic device 300 includes, but is not limited to: the device comprises a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, a power supply 311, a shooting module 312 and the like. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 17 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, 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. But also electronic devices with augmented reality (Augmented Reality, AR) functionality.
The processor 310 is configured to obtain a first image of a target object displayed in the shooting preview interface; displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object. The first image may be captured by the capturing module 312.
In the embodiment of the invention, the first multimedia file associated with the target object is displayed in the first area in the shooting preview interface by shooting the first image of the target object. Therefore, the user aims the camera of the electronic equipment at the target object, namely the first multimedia file associated with the target object can be called, and the first multimedia file can be quickly obtained. In addition, the first multimedia file is displayed in a first area associated with the target object in the shooting preview interface, so that a user can conveniently view the first multimedia file.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 310; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 301 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 301 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 302, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 300. The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive an audio or video signal. The input unit 304 may include a graphics processor (Graphics Processing Unit, GPU) 3041 and a microphone 3042, the graphics processor 3041 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 301 in the case of a telephone call mode.
The electronic device 300 further comprises at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 305 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 306 is used to display information input by a user or information provided to the user. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 3071 or thereabout the touch panel 3071 using any suitable object or accessory such as a finger, stylus, or the like). The touch panel 3071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 310 to determine a type of touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of touch event. Although in fig. 17, the touch panel 3071 and the display panel 3061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface to which an external device is connected to the electronic apparatus 300. For example, the external devices may include a wired or wireless headset port, an external power (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 308 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 300 or may be used to transmit data between the electronic apparatus 300 and an external device.
Memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 309 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 310 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 309, and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may also include a power supply 311 (e.g., a battery) for powering the various components, and preferably the power supply 311 may be logically coupled to the processor 310 via a power management system that performs functions such as managing charge, discharge, and power consumption.
In addition, the electronic device 300 includes some functional modules, which are not shown, and will not be described herein.
The embodiment of the invention also provides an electronic device, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the processes of the embodiment of the multimedia file display method when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, so that the description is omitted.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiment of the multimedia file display method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A multimedia file display method applied to an electronic device, the method comprising:
acquiring a first image of a target object displayed in a shooting preview interface; the first image is an image obtained by shooting the target object at a first angle;
displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object;
the displaying, in the first area in the shooting preview interface, the first multimedia file associated with the target object further includes:
acquiring a third image of the target object;
When the third image is an image obtained by shooting the target object at a second angle and the third image is matched with a preset fourth image, displaying a second multimedia file associated with the target object in a second area in the shooting preview interface;
wherein the second angle is different from the first angle; the second region is a region associated with the target object.
2. The method of claim 1, wherein the acquiring the third image of the target object comprises:
acquiring the third image obtained by shooting the target object at the second angle under the condition that the target object rotates to the second angle;
or,
and under the condition that the shooting angle of the camera of the electronic equipment is updated to the second angle, acquiring the third image obtained by shooting the target object at the second angle by the camera.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the first image is an image obtained by shooting a first surface of the target object at the first angle, and the first multimedia file is a multimedia file associated with the first surface of the target object;
The third image is an image obtained by shooting a second face of the target object at the second angle, and the second multimedia file is a multimedia file associated with the second face of the target object.
4. The method of claim 1, wherein prior to the capturing the first image of the target object displayed in the capture preview interface, the method further comprises:
receiving a first input of a user to a first multimedia file and a target object;
and responding to the first input, and establishing an association relation between the target object and the first multimedia file.
5. The method of claim 4, wherein receiving a first user input for a first multimedia file and a target object comprises:
receiving a first input that a user drags the first multimedia file to a first region of the target object;
wherein the establishing the association relationship between the target object and the first multimedia file includes:
and establishing an association relation between the first area of the target object and the first multimedia file.
6. The method of claim 1, wherein the method further comprises, prior to displaying the first multimedia file associated with the target object in the first area in the capture preview interface:
Displaying at least one multimedia file in a third area in the shooting preview interface, wherein the at least one multimedia file comprises the first multimedia file;
receiving a second input of a user, wherein the second input is input of the electronic equipment moved by the user;
in response to the second input, updating the first multimedia file to a target display state according to a movement direction of the electronic device, the target display state indicating that the first multimedia file is selected;
wherein the displaying, in the first area in the shooting preview interface, a first multimedia file associated with the target object includes:
and opening the first multimedia file under the condition that the duration time from the first multimedia file to the target display state is greater than a preset threshold value, and displaying the first multimedia file in a first area in the shooting preview interface.
7. An electronic device, comprising:
the first image acquisition module is used for acquiring a first image of a target object displayed in a shooting preview interface;
the first file display module is used for displaying a first multimedia file associated with the target object in a first area in the shooting preview interface under the condition that the first image is matched with a preset second image; wherein the first region is a region associated with the target object;
The first image is an image obtained by shooting the target object at a first angle; the electronic device further includes:
the second image acquisition module is used for acquiring a third image of the target object;
the second file display module is used for displaying a second multimedia file associated with the target object in a second area in the shooting preview interface when the third image is an image obtained by shooting the target object at a second angle and the third image is matched with a preset fourth image;
wherein the second angle is different from the first angle; the second region is a region associated with the target object.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the method for displaying a multimedia file as claimed in any one of claims 1 to 6 when executed by the processor.
9. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the multimedia file display method according to any one of claims 1 to 6.
CN201911410827.9A 2019-12-31 2019-12-31 Multimedia file display method, electronic equipment and medium Active CN111177420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911410827.9A CN111177420B (en) 2019-12-31 2019-12-31 Multimedia file display method, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911410827.9A CN111177420B (en) 2019-12-31 2019-12-31 Multimedia file display method, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN111177420A CN111177420A (en) 2020-05-19
CN111177420B true CN111177420B (en) 2023-10-20

Family

ID=70655959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911410827.9A Active CN111177420B (en) 2019-12-31 2019-12-31 Multimedia file display method, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN111177420B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794833B (en) * 2021-08-16 2023-05-26 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN113949815A (en) * 2021-11-17 2022-01-18 维沃移动通信有限公司 Shooting preview method and device and electronic equipment
CN114125290A (en) * 2021-11-22 2022-03-01 维沃移动通信有限公司 Shooting method and device
CN114339050B (en) * 2021-12-31 2023-10-31 西安维沃软件技术有限公司 Display method and device and electronic equipment
CN114968463B (en) * 2022-05-31 2024-07-16 北京字节跳动网络技术有限公司 Entity display method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62145464A (en) * 1985-12-20 1987-06-29 Ricoh Co Ltd Assessment device for car damage
CN105989628A (en) * 2015-02-06 2016-10-05 北京网梯科技发展有限公司 Method and system device for obtaining information through mobile terminal
CN107766432A (en) * 2017-09-18 2018-03-06 维沃移动通信有限公司 A kind of data interactive method, mobile terminal and server
WO2019206316A1 (en) * 2018-04-28 2019-10-31 华为技术有限公司 Photographic method and terminal device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101417808B1 (en) * 2007-12-06 2014-07-09 삼성전자주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
US9323784B2 (en) * 2009-12-09 2016-04-26 Google Inc. Image search using text-based elements within the contents of images
CN104765795A (en) * 2015-03-25 2015-07-08 天脉聚源(北京)传媒科技有限公司 Information prompting method and device
CN105740454A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Display method and device of picture folder and electronic equipment
CN105959550A (en) * 2016-05-27 2016-09-21 深圳天珑无线科技有限公司 Intelligent searching and shooting real-time display method for camera and system
CN107835366B (en) * 2017-11-07 2019-12-10 Oppo广东移动通信有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN110149475B (en) * 2018-06-21 2021-09-21 腾讯科技(深圳)有限公司 Image shooting method and device, electronic device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62145464A (en) * 1985-12-20 1987-06-29 Ricoh Co Ltd Assessment device for car damage
CN105989628A (en) * 2015-02-06 2016-10-05 北京网梯科技发展有限公司 Method and system device for obtaining information through mobile terminal
CN107766432A (en) * 2017-09-18 2018-03-06 维沃移动通信有限公司 A kind of data interactive method, mobile terminal and server
WO2019206316A1 (en) * 2018-04-28 2019-10-31 华为技术有限公司 Photographic method and terminal device

Also Published As

Publication number Publication date
CN111177420A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN110740259B (en) Video processing method and electronic equipment
CN111177420B (en) Multimedia file display method, electronic equipment and medium
CN109361865B (en) Shooting method and terminal
CN109040643B (en) Mobile terminal and remote group photo method and device
CN108495029B (en) Photographing method and mobile terminal
CN108989672B (en) Shooting method and mobile terminal
CN108090126B (en) Image processing method and device, mobile terminal, image identification method and server
US11778304B2 (en) Shooting method and terminal
CN110602401A (en) Photographing method and terminal
CN111416940A (en) Shooting parameter processing method and electronic equipment
CN110933306A (en) Method for sharing shooting parameters and electronic equipment
CN111597370B (en) Shooting method and electronic equipment
CN109862266B (en) Image sharing method and terminal
CN108174109B (en) Photographing method and mobile terminal
CN111159449B (en) Image display method and electronic equipment
CN107730460B (en) Image processing method and mobile terminal
CN109361874B (en) Photographing method and terminal
CN109922294B (en) Video processing method and mobile terminal
CN109495616B (en) Photographing method and terminal equipment
CN111669503A (en) Photographing method and device, electronic equipment and medium
CN110719527A (en) Video processing method, electronic equipment and mobile terminal
WO2020011080A1 (en) Display control method and terminal device
CN110825897A (en) Image screening method and device and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111447365B (en) Shooting 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
GR01 Patent grant
GR01 Patent grant