Multimedia processing method and apparatus based on artificial intelligence, and electronic device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsGui Huang, Shuai Tang
Life of this patent
Estimating the term…
Abstract
A multimedia processing method includes: obtaining, in response to an editing operation for a multimedia file, a material editing mode and an interaction template corresponding to a type of a material in the multimedia file; identifying the material in the multimedia file according to the material editing mode, and applying the interaction template to the identified material; and displaying the multimedia file after the interaction template is applied.
Claims16
A multimedia processing method, performed by an electronic device, the method comprising:
- obtaining, in response to an editing operation for a multimedia file, a plurality of material editing modes and an interaction template corresponding to a type of a material in the multimedia file;
- identifying, for one of the material editing modes, a candidate material in the multimedia file according to the material editing mode;
- using the one of the material editing modes as a material editing mode to be applied in response to the candidate material meeting a material interaction condition corresponding to the material editing mode, comprising:
- in a non-real-time scenario, determining a first matching degree between the candidate material and the multimedia file, and determining that the candidate material meets the material interaction condition in response to the first matching degree being greater than a first matching degree threshold;
- in a real-time scenario, compressing the multimedia file and determining a second matching degree between the candidate material and the compressed multimedia file, and determining that the candidate material meets the material interaction condition in response to the second matching degree being greater than a second matching degree threshold, wherein the first matching degree threshold is greater than the second matching degree threshold;
- identifying the material in the multimedia file according to the material editing mode to be applied, and applying the interaction template to the identified material;
- and
- displaying the multimedia file after the interaction template is applied.
A multimedia processing apparatus, comprising:
- a memory, configured to store executable instructions;
- and
- a processor, configured, when executing the executable instructions stored in the memory, to implement:
- obtaining, in response to an editing operation for a multimedia file, a plurality of material editing modes and an interaction template corresponding to a type of a material in the multimedia file;
- identifying, for one of the material editing modes, a candidate material in the multimedia file according to the material editing mode;
- using the one of the material editing modes as a material editing mode to be applied in response to the candidate material meeting a material interaction condition corresponding to the material editing mode, comprising:
- in a non-real-time scenario, determining a first matching degree between the candidate material and the multimedia file, and determining that the candidate material meets the material interaction condition in response to the first matching degree being greater than a first matching degree threshold;
- in a real-time scenario, compressing the multimedia file and determining a second matching degree between the candidate material and the compressed multimedia file, and determining that the candidate material meets the material interaction condition in response to the second matching degree being greater than a second matching degree threshold, wherein the first matching degree threshold is greater than the second matching degree threshold;
- identifying the material in the multimedia file according to the material editing mode to be applied, and applying the interaction template to the identified material;
- and
- displaying the multimedia file after the interaction template is applied.
A non-transitory computer-readable storage medium, storing executable instructions, the executable instructions, when executed by a processor, cause the processor to perform:
- obtaining, in response to an editing operation for a multimedia file, a plurality of material editing modes and an interaction template corresponding to a type of a material in the multimedia file;
- identifying, for one of the material editing modes, a candidate material in the multimedia file according to the material editing mode;
- using the one of the material editing modes as a material editing mode to be applied in response to the candidate material meeting a material interaction condition corresponding to the material editing mode, comprising:
- in a non-real-time scenario, determining a first matching degree between the candidate material and the multimedia file, and determining that the candidate material meets the material interaction condition in response to the first matching degree being greater than a first matching degree threshold;
- in a real-time scenario, compressing the multimedia file and determining a second matching degree between the candidate material and the compressed multimedia file, and determining that the candidate material meets the material interaction condition in response to the second matching degree being greater than a second matching degree threshold, wherein the first matching degree threshold is greater than the second matching degree threshold;
- identifying the material in the multimedia file according to the material editing mode to be applied, and applying the interaction template to the identified material;
- and
- displaying the multimedia file after the interaction template is applied.
Dependencies are inferred from the claim text.