CN112929561B - Multimedia data processing method and device, electronic equipment and storage medium - Google Patents

Multimedia data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112929561B
CN112929561B CN202110071296.6A CN202110071296A CN112929561B CN 112929561 B CN112929561 B CN 112929561B CN 202110071296 A CN202110071296 A CN 202110071296A CN 112929561 B CN112929561 B CN 112929561B
Authority
CN
China
Prior art keywords
multimedia data
state
mirror image
target
mirror
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
CN202110071296.6A
Other languages
Chinese (zh)
Other versions
CN112929561A (en
Inventor
谢彤
李倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110071296.6A priority Critical patent/CN112929561B/en
Publication of CN112929561A publication Critical patent/CN112929561A/en
Application granted granted Critical
Publication of CN112929561B publication Critical patent/CN112929561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a multimedia data processing method, a device, an electronic device and a storage medium, comprising: responding to an opening instruction of a front camera, displaying a preview interface corresponding to the front camera, wherein the preview interface displays a mirror image switch capable of switching states, and the states of the mirror image switch comprise an opening state or a closing state; responding to shooting operation, acquiring shooting data by using the front-facing camera, and acquiring a target state of the mirror switch corresponding to the shooting data; and if the target state is an on state, taking the shooting data as target multimedia data, and if the target state is an off state, carrying out mirror image overturning on the shooting data, and taking the shooting data after the mirror image overturning as target multimedia data. Therefore, the image turning of the shot data is carried out, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.

Description

Multimedia data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of short videos, and in particular, to a method and apparatus for processing multimedia data, an electronic device, and a storage medium.
Background
In the short video field, when the front camera is used, the direction of the shot video picture is consistent with that of the preview picture when the shot video picture is mirrored, for example, if the front camera is used for shooting characters, the characters in the shot video picture show a mirrored state and are difficult to be identified by a user.
At present, short video processing software generally does not have a video mirror function, if a user needs to mirror a video shot by a front-end camera, the user needs to rely on the function of the user equipment, on one hand, the requirement on the user equipment is higher, on the other hand, the entrance of a mirror switch arranged in the user equipment is deeper, the user operation path is longer, and the operation is more inconvenient.
Disclosure of Invention
The disclosure provides a multimedia data processing method, a device, an electronic device and a storage medium, which are used for at least solving the problems that a process of creating a new task in the related technology is complicated, the operation cost of a user is high and the operation is not convenient enough. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a multimedia data processing method, including:
Responding to an opening instruction of a front camera, displaying a preview interface corresponding to the front camera, wherein the preview interface displays a mirror image switch capable of switching states, and the states of the mirror image switch comprise an opening state or a closing state;
responding to shooting operation, acquiring shooting data by using the front-facing camera, and acquiring a target state of the mirror switch corresponding to the shooting data;
and if the target state is an on state, taking the shooting data as target multimedia data, and if the target state is an off state, carrying out mirror image overturning on the shooting data, and taking the shooting data after the mirror image overturning as target multimedia data.
Optionally, the method further comprises:
judging whether the acquired shooting data comprise a plurality of segmented shooting data, if so, determining segmented target multimedia data corresponding to the segmented shooting data according to the target state of a mirror switch corresponding to the segmented shooting data for each segmented shooting data;
and splicing the plurality of segmented target multimedia data corresponding to the segmented shooting data to obtain target multimedia data.
Optionally, after the responding to the opening instruction of the front camera and displaying the preview interface corresponding to the front camera, the method further includes:
Text recognition is carried out on the background captured by the front camera in the preview interface;
if the background comprises a text area, acquiring the current state of the mirror switch;
and under the condition that the current state of the mirror image switch is an on state, mirror image prompt information is displayed, and the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
Optionally, if the target state is a closed state, performing image inversion on the shot data, and taking the shot data after the image inversion as target multimedia data, including:
judging whether the acquired background of the shooting data comprises a text area or not;
if the background comprises a text region, carrying out mirror image overturning on the text region in the background to obtain a mirror image overturned background, and taking the mirror image overturned background as target multimedia data.
Optionally, the method further comprises:
judging whether the acquired shooting data comprise a foreground or not, if so, judging whether the foreground comprises a text region or not;
if the foreground comprises a text region, not carrying out mirror image overturn on the foreground, taking the foreground and the mirror image overturned background as target multimedia data, or overturning other foreground regions except the text region to obtain the mirror image overturned foreground, and taking the mirror image overturned foreground and the mirror image overturned background as target multimedia data.
Optionally, the responding to the opening instruction of the front camera displays a preview interface corresponding to the front camera, including:
and responding to an opening instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and setting the mirror switch to be gray.
Optionally, the method further comprises:
and responding to a re-starting instruction of the front camera, and recovering the state of the mirror switch to the state of the mirror switch when the front camera is started last time.
Optionally, after obtaining the target multimedia data, the method further includes:
displaying the editing page of the target multimedia data, and responding to the operation of the editing control in the editing page to edit the target multimedia data.
According to a second aspect of embodiments of the present disclosure, there is provided a multimedia data processing apparatus comprising:
the camera opening unit is configured to execute an opening instruction responding to the front camera, and display a preview interface corresponding to the front camera, wherein the preview interface displays a mirror switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state;
A photographing unit configured to perform a photographing operation in response to a photographing operation, acquiring photographing data using the front-end camera, and acquiring a target state of the mirror switch corresponding to the photographing data;
and the multimedia data processing unit is configured to execute image turnover on the shooting data to serve as target multimedia data if the target state is an on state, and to serve as target multimedia data after the image turnover if the target state is an off state.
Optionally, the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprise a plurality of segmented shooting data, if so, determining segmented target multimedia data corresponding to the segmented shooting data according to the target state of a mirror switch corresponding to the segmented shooting data for each segmented shooting data;
and splicing the plurality of segmented target multimedia data corresponding to the segmented shooting data to obtain target multimedia data.
Optionally, the camera opening unit is further configured to perform:
text recognition is carried out on the background captured by the front camera in the preview interface;
If the background comprises a text area, acquiring the current state of the mirror switch;
and under the condition that the current state of the mirror image switch is an on state, mirror image prompt information is displayed, and the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
Optionally, the multimedia data processing unit is further configured to perform:
judging whether the acquired background of the shooting data comprises a text area or not;
if the background comprises a text region, carrying out mirror image overturning on the text region in the background to obtain a mirror image overturned background, and taking the mirror image overturned background as target multimedia data.
Optionally, the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprise a foreground or not, if so, judging whether the foreground comprises a text region or not;
if the foreground comprises a text region, not carrying out mirror image overturn on the foreground, taking the foreground and the mirror image overturned background as target multimedia data, or overturning other foreground regions except the text region to obtain the mirror image overturned foreground, and taking the mirror image overturned foreground and the mirror image overturned background as target multimedia data.
Optionally, the camera opening unit is further configured to perform:
and responding to an opening instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and setting the mirror switch to be gray.
Optionally, the camera opening unit is further configured to perform:
and responding to a re-starting instruction of the front camera, and recovering the state of the mirror switch to the state of the mirror switch when the front camera is started last time.
Optionally, the multimedia data processing unit is further configured to perform:
displaying the editing page of the target multimedia data, and responding to the operation of the editing control in the editing page to edit the target multimedia data.
According to a third aspect of embodiments of the present disclosure, there is provided a multimedia data processing electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the multimedia data processing method of any of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of a multimedia data processing electronic device, enables the multimedia data processing electronic device to perform the multimedia data processing method of any one of the above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program/instruction, characterized in that the computer program/instruction, when executed by a processor, implements the multimedia data processing method of any of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
and judging whether the shot data shot by the front camera needs to be subjected to mirror image overturning according to the state of a mirror image switch corresponding to the shot data, and carrying out mirror image overturning on the shot data under the condition that the mirror image switch is in a closed state to obtain target multimedia data. Therefore, the image turning of the shot data is carried out, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flowchart illustrating a multimedia data processing method according to an exemplary embodiment.
FIG. 2 is a screenshot of a preview interface corresponding to a front camera, according to an example embodiment.
FIG. 3 is a screenshot of an edit page of target multimedia data when the state of the mirror switch is an on state, according to an example embodiment.
Fig. 4 is a screenshot of an edit page of target multimedia data when the state of the mirror switch is an off state, according to an exemplary embodiment.
Fig. 5 shows a block diagram of a multimedia data processing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device for multimedia data processing, according to an example embodiment.
Fig. 7 is a block diagram illustrating an apparatus for multimedia data processing according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating a multimedia data processing method for use in a user equipment that can interact with a user, as shown in fig. 1, according to an exemplary embodiment, the multimedia data processing method comprising the following steps.
In step S11, in response to an on command to the front camera, a preview interface corresponding to the front camera is displayed, and the preview interface displays a mirror switch capable of switching states, where the states of the mirror switch include an on state or an off state.
The multimedia data processing method in the embodiment of the disclosure can be applied to user equipment such as mobile phones and computers, and a user can acquire and process multimedia data through interaction with the user equipment. Typically, the user device has two cameras, a front camera and a rear camera, respectively, the data captured by the cameras, i.e. the background of the preview interface. The background in the preview interface corresponding to the rear camera is consistent with the picture observed by the human eye, and the background in the preview interface corresponding to the front camera is generally mirror image with the picture observed by the human eye, so that a user can start the front camera or the rear camera according to the self requirement.
One or more function switches or controls can be further included in the preview interface, and a user can process data captured by the camera through corresponding operation of the function switches or controls. For example, the preview interface may include a mirror switch, where the state of the mirror switch includes an on state or an off state, and the user may switch the state of the mirror switch, so as to control whether the user device performs mirror-turning on the data captured by the camera.
As shown in fig. 2, in an exemplary embodiment, the screenshot of the preview interface corresponding to the front camera may be seen, where the background in the preview interface is mirrored with the image observed by the human eye, and the text is difficult to be identified due to the mirror image turning, and the screenshot further includes a "turning" function control capable of controlling the lens switching, a "speed changing" control capable of controlling the speed change of the shot data, a "countdown" function control capable of controlling the countdown shooting, a "mirror image" function control capable of controlling the mirror image turning of the shot data, a proportional adjustment function control capable of controlling the proportion of the shot data, and a function switch or control for controlling the flash switch.
In the disclosure, the lens opening instruction received by the user equipment includes an opening instruction for the rear camera and an opening instruction for the front camera, and in response to the opening instruction for the rear camera, a preview interface corresponding to the rear camera is displayed, and the mirror switch is set to be gray, that is, the state of the mirror switch is closed and cannot be modified at this time, in this state, if a clicking operation for the mirror switch control is received, the user can be prompted that the rear camera temporarily does not support mirror.
And if the lens opening instruction is an opening instruction for the front camera, displaying a preview interface corresponding to the front camera. If the starting instruction of the front camera is a re-starting instruction, the state of the mirror switch can be restored to the state of the mirror switch when the front camera is started last time, and the state of the mirror switch is defaulted to be the starting state under the condition that the front camera is started for the first time.
The shot opening instruction may be a clicking operation of a shot switching control in the current page, or may be any preset gesture operation in the current page, which is not particularly limited.
In the preview interface, different states of the mirror switch can be embodied according to different display forms of the mirror switch control. For example, the mirror switch may be in the form of a sliding switch button, which indicates that the state of the mirror switch is on when the button is near the left side, whereas indicates that the state of the mirror switch is off when the button is near the right side. Alternatively, the mirror switch may be in the form of an icon, where the icon of the mirror switch is colored, the state of the mirror switch is an on state, whereas the icon of the mirror switch is a gray scale, where the state of the mirror switch is an off state, and so on, and is not specifically limited.
In some scenes, when a front camera is started to shoot the text object, if the shot data mirror image shows that the content of the shot data mirror image is difficult to be recognized by a user, in this case, text recognition can be performed on a background captured by the front camera in a preview interface, if the background includes a text area, the current state of a mirror image switch is obtained, if the current state of the mirror image switch is an on state, mirror image prompt information is displayed, the mirror image prompt information is used for prompting the user to switch the state of the mirror image switch, and the state of the switch is switched to an off state.
In step S12, in response to the photographing operation, photographing data is acquired using the front-end camera, and a target state of a mirror switch corresponding to the photographing data is acquired.
In the present disclosure, a user performs a corresponding photographing operation through interaction with a user device, so that photographing data, which may be video or image, is obtained by using a front camera, which is not particularly limited.
In one implementation, a capture control may be included in the preview interface, and a user may begin or end the capture process by different preset operations on the capture control. The specific steps may include, in response to a first preset operation on a video shooting control in a preview interface, acquiring shooting data from a last detection of a second preset operation to a detection of a current first preset operation by using a front camera, and simultaneously acquiring a target state of a mirror switch corresponding to the shooting data. Wherein the first preset operation may include a pause operation or an end operation, and the second preset operation may include a continue operation or a start operation.
For example, the start operation may be a single click operation or a long press operation on the shooting control, the pause operation may be a double click operation on the shooting control, the continue operation may be a double click operation again on the shooting control, the end operation may be a single click operation again or a long press operation again on the video shooting control, and the like, which is not particularly limited.
In step S13, if the target state is the on state, the shooting data is regarded as target multimedia data.
In this step, if the state of the mirror switch control is an on state, which indicates that the video mirror is turned on, the shooting data obtained by shooting with the front camera may be used as the target multimedia data, that is, the direction of the target multimedia data is consistent with the direction of the preview interface, and the target multimedia data is mirror image with the image actually observed by the human eye.
In step S14, if the target state is the off state, the shot data is mirror-flipped, and the mirror-flipped shot data is used as the target multimedia data.
In this step, if the state of the mirror switch control is the off state, it indicates that the video mirror is turned off, and mirror-turning needs to be performed on the shooting data obtained by shooting with the front camera, so as to obtain the target multimedia data, that is, the target multimedia data is mirror-imaged with the preview interface, and is consistent with the direction of the picture actually observed by the human eye.
In the shooting data, the background captured by the front-end camera is included, and if the target state is the closed state, mirror image overturning can be carried out on the background captured by the front-end camera to obtain target multimedia data. In one implementation manner, whether the background of the acquired shooting data includes a text region or not can be judged first, if the background includes the text region, the text region in the background is subjected to mirror image overturn so as to obtain a mirror image overturn background, and then the mirror image overturn background is used as target multimedia data. That is, only the text region with higher recognition difficulty after mirror image in the background is subjected to mirror image overturning, so that on one hand, the recognition difficulty of the text in the target multimedia data is reduced, and on the other hand, the calculated amount during mirror image overturning can be reduced. If the background layer does not include the text region, the image of the whole background layer can be turned over, and the shooting data after the image turning over is used as target multimedia data. The text includes words, numbers, letters or symbols.
The shooting data can also comprise a foreground, wherein the foreground comprises one or more special effect layers added by a user for a background captured by a front camera in a preview interface, such as a color matching filter, a magic expression, a dynamic sticker and the like, and the special effect layers are not particularly limited.
In one implementation manner, under the condition that the target state is the closed state, whether the acquired shooting data comprises a foreground or not can be judged, if yes, whether the foreground comprises a text region or not is judged, if the foreground comprises the text region, in one case, image overturning is not required to be carried out on the foreground, the foreground and the background after the image overturning are used as target multimedia data, or in another case, other foreground regions except the text region can be overturned to obtain the foreground after the image overturning, and then the foreground after the image overturning and the background after the image overturning are used as target multimedia data. Therefore, characters in the foreground cannot be overturned by the mirror image, and the identification of the text in the target multimedia data is facilitated. If the foreground does not include the text region, the whole foreground can be subjected to mirror image overturning, and the foreground after mirror image overturning and the background after mirror image overturning are used as target multimedia data.
In the present disclosure, the photographing operation may include a pause operation and a continuous photographing operation, so that the acquired photographing data includes a plurality of segmented photographing data, and then, for each segmented photographing data, the segmented target multimedia data corresponding to the segmented photographing data may be determined according to the target state of the mirror switch corresponding to the segmented photographing data, and then, the plurality of segmented target multimedia data corresponding to the plurality of segmented photographing data are spliced to obtain the target multimedia data.
In one implementation, when the front camera does not currently take video, the state of the mirror switch may be adjusted in response to a switching operation of the mirror switch. That is, when the front camera does not start shooting or pauses shooting, the state of the mirror switch can be adjusted at any time, and the target state of the mirror switch corresponding to the shooting data is changed, so that whether the shooting data needs to be subjected to mirror image overturning is determined, and for the shooting data comprising a plurality of segmented shooting data, mirror image overturning of any one or more segmented shooting data can be realized without affecting other segmented shooting data, so that the flexibility of multimedia data processing can be improved.
When the mirror switch is switched from the on state to the off state, the user can be prompted that the self-timer is turned left and right on the editing page, and when the mirror switch is switched from the off state to the on state, the user can be prompted that the self-timer picture is consistent with the shooting direction. In this way, the user is more convenient to understand the function of the mirror image switch control.
In one implementation, after the target multimedia data is obtained, an editing page of the target multimedia data may be displayed, and editing is performed on the target multimedia data in response to an operation on an editing control in the editing page. The editing controls can comprise magic expression controls, addition of music controls, image beautifying controls and the like, and the editing controls can provide rich functions so as to meet the use requirements of users.
As shown in fig. 3, when the state of the mirror switch is in the on state, the text is mirrored because the mirror-inverted is not performed, and as shown in fig. 4, when the state of the mirror switch is in the off state, the text is normally displayed because the mirror-inverted is performed.
From the above, it can be seen that, according to the technical scheme provided by the embodiment of the present disclosure, according to the state of the mirror switch corresponding to the shot data, it is determined whether to need to mirror-turn the shot data shot by the front camera, and if the mirror switch is in the off state, the shot data is mirror-turned to obtain the target multimedia data. Therefore, the image turning of the shot data is carried out, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.
Fig. 5 is a block diagram of a multimedia data processing apparatus according to an exemplary embodiment, the apparatus comprising:
the camera opening unit 501 is configured to execute an opening instruction for responding to the front camera, and display a preview interface corresponding to the front camera, wherein the preview interface displays a mirror switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state;
A photographing unit 502 configured to perform capturing of photographing data using the front camera in response to a photographing operation, and capturing a target state of the mirror switch corresponding to the photographing data;
the multimedia data processing unit 503 is configured to execute image inversion on the shooting data, and take the image inverted shooting data as target multimedia data if the target state is an on state and take the shooting data as target multimedia data if the target state is an off state.
In an implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the acquired shooting data comprise a plurality of segmented shooting data, if so, determining segmented target multimedia data corresponding to the segmented shooting data according to the target state of a mirror switch corresponding to the segmented shooting data for each segmented shooting data;
and splicing the plurality of segmented target multimedia data corresponding to the segmented shooting data to obtain target multimedia data.
In an implementation manner, the camera opening unit 501 is further configured to perform:
text recognition is carried out on the background captured by the front camera in the preview interface;
If the background comprises a text area, acquiring the current state of the mirror switch;
and under the condition that the current state of the mirror image switch is an on state, mirror image prompt information is displayed, and the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
In an implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the acquired background of the shooting data comprises a text area or not;
if the background comprises a text region, carrying out mirror image overturning on the text region to obtain mirror image overturned shooting data, and taking the mirror image overturned shooting data as target multimedia data.
In an implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the acquired shooting data comprise a foreground or not, if so, judging whether the foreground comprises a text region or not;
if the foreground comprises a text region, the foreground is not subjected to mirror image overturn, the foreground and the background subjected to mirror image overturn are used as target multimedia data, or other foreground regions except the text region are overturned, and the foreground subjected to mirror image overturn and the background subjected to mirror image overturn are used as target multimedia data.
In an implementation manner, the camera opening unit 501 is further configured to perform:
and responding to an opening instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and setting the mirror switch to be gray.
In an implementation manner, the camera opening unit 501 is further configured to perform:
and responding to a re-starting instruction of the front camera, and recovering the state of the mirror switch to the state of the mirror switch when the front camera is started last time.
In an implementation, the multimedia data processing unit 503 is further configured to perform:
displaying the editing page of the target multimedia data, and responding to the operation of the editing control in the editing page to edit the target multimedia data.
From the above, it can be seen that, according to the technical scheme provided by the embodiment of the present disclosure, according to the state of the mirror switch corresponding to the shot data, it is determined whether to need to mirror-turn the shot data shot by the front camera, and if the mirror switch is in the off state, the shot data is mirror-turned to obtain the target multimedia data. Therefore, the image turning of the shot data is carried out, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram of an electronic device for multimedia data processing, according to an example embodiment.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory, comprising instructions executable by a processor of an electronic device to perform the above-described method. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, a computer program product is also provided which, when run on a computer, causes the computer to carry out the method of multimedia data processing described above.
From the above, it can be seen that, according to the technical scheme provided by the embodiment of the present disclosure, according to the state of the mirror switch corresponding to the shot data, it is determined whether to need to mirror-turn the shot data shot by the front camera, and if the mirror switch is in the off state, the shot data is mirror-turned to obtain the target multimedia data. Therefore, the image turning of the shot data is carried out, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.
Fig. 7 is a block diagram illustrating an apparatus 800 for multimedia data processing according to an exemplary embodiment.
For example, apparatus 800 may be a mobile phone, computer, digital broadcast electronic device, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Power supply component 807 provides power to the various components of device 800. Power supply component 807 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or one component of the apparatus 800, the presence or absence of user contact with the apparatus 800, an orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described in the first and second aspects.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. Alternatively, for example, the storage medium may be a non-transitory computer-readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product comprising instructions which, when run on a computer, causes the computer to perform the multimedia data processing method of any of the above embodiments is also provided.
From the above, it can be seen that, according to the technical scheme provided by the embodiment of the present disclosure, whether the video captured by the front camera needs to be mirror-inverted in the left-right direction is determined according to the state of the mirror switch control, and if the mirror switch control is in the off state, the video captured by the front camera is mirror-inverted to obtain the target video. Therefore, the video shot by the front camera is subjected to mirror image overturning, the self-contained function of the user equipment is not needed, the application scene is wider, the operation path of a user is shortened, and the method is convenient and fast.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method of multimedia data processing, comprising:
responding to an opening instruction of a front camera, displaying a preview interface corresponding to the front camera, wherein the preview interface displays a mirror image switch capable of switching states, and the states of the mirror image switch comprise an opening state or a closing state;
responding to shooting operation, acquiring shooting data by using the front-facing camera, and acquiring a target state of the mirror switch corresponding to the shooting data; the shooting data is consistent with the direction of the preview interface and forms a mirror image with a shot target object;
if the target state is an on state, taking the shooting data as target multimedia data, if the target state is an off state, carrying out mirror image overturning on the shooting data, and taking the shooting data after the mirror image overturning as target multimedia data;
the shooting data comprise a foreground and a background captured by the front-facing camera, and the foreground comprises a special effect layer;
If the target state is the closed state, performing image inversion on the shooting data, and taking the shooting data after the image inversion as target multimedia data, wherein the method comprises the following steps:
judging whether the acquired shooting data comprise a foreground or not, if so, judging whether the foreground comprises a text region or not;
if the foreground comprises a text region, not carrying out mirror image overturn on the foreground, taking the foreground and a mirror image overturned background as target multimedia data, or overturning other foreground regions except the text region to obtain a mirror image overturned foreground, and taking the mirror image overturned foreground and the mirror image overturned background as target multimedia data.
2. The method of multimedia data processing according to claim 1, wherein the method further comprises:
judging whether the acquired shooting data comprise a plurality of segmented shooting data, if so, determining segmented target multimedia data corresponding to the segmented shooting data according to the target state of a mirror switch corresponding to the segmented shooting data for each segmented shooting data;
and splicing the plurality of segmented target multimedia data corresponding to the segmented shooting data to obtain target multimedia data.
3. The method according to claim 1, wherein after the displaying of the preview interface corresponding to the front camera in response to the open instruction to the front camera, the method further comprises:
text recognition is carried out on the background captured by the front camera in the preview interface;
if the background comprises a text area, acquiring the current state of the mirror switch;
and under the condition that the current state of the mirror image switch is an on state, mirror image prompt information is displayed, and the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
4. The method according to claim 1, wherein if the target state is an off state, performing image inversion on the shot data, and taking the image-inverted shot data as target multimedia data, comprises:
judging whether the acquired background of the shooting data comprises a text area or not;
if the background comprises a text region, carrying out mirror image overturning on the text region in the background to obtain a mirror image overturned background, and taking the mirror image overturned background as target multimedia data.
5. The method according to claim 1, wherein the displaying the preview interface corresponding to the front camera in response to the start instruction of the front camera includes:
and responding to an opening instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and setting the mirror switch to be gray.
6. The method of multimedia data processing according to claim 1, wherein the method further comprises:
and responding to a re-starting instruction of the front camera, and recovering the state of the mirror switch to the state of the mirror switch when the front camera is started last time.
7. The method of multimedia data processing according to claim 1, wherein after obtaining the target multimedia data, the method further comprises:
displaying the editing page of the target multimedia data, and responding to the operation of the editing control in the editing page to edit the target multimedia data.
8. A multimedia data processing apparatus, comprising:
the camera opening unit is configured to execute an opening instruction responding to the front camera, and display a preview interface corresponding to the front camera, wherein the preview interface displays a mirror switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state;
A photographing unit configured to perform a photographing operation in response to a photographing operation, acquiring photographing data using the front-end camera, and acquiring a target state of the mirror switch corresponding to the photographing data; the shooting data is consistent with the direction of the preview interface and forms a mirror image with a shot target object;
the multimedia data processing unit is configured to execute image turnover on the shooting data to serve as target multimedia data if the target state is an on state, and to serve as target multimedia data after the image turnover if the target state is an off state;
the shooting data comprise a foreground and a background captured by the front-facing camera, and the foreground comprises a special effect layer;
the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprise a foreground or not, if so, judging whether the foreground comprises a text region or not;
if the foreground comprises a text region, not carrying out mirror image overturn on the foreground, taking the foreground and a mirror image overturned background as target multimedia data, or overturning other foreground regions except the text region to obtain a mirror image overturned foreground, and taking the mirror image overturned foreground and the mirror image overturned background as target multimedia data.
9. The multimedia data processing apparatus of claim 8, wherein the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprise a plurality of segmented shooting data, if so, determining segmented target multimedia data corresponding to the segmented shooting data according to the target state of a mirror switch corresponding to the segmented shooting data for each segmented shooting data;
and splicing the plurality of segmented target multimedia data corresponding to the segmented shooting data to obtain target multimedia data.
10. The multimedia data processing apparatus of claim 8, wherein the camera opening unit is further configured to perform:
text recognition is carried out on the background captured by the front camera in the preview interface;
if the background comprises a text area, acquiring the current state of the mirror switch;
and under the condition that the current state of the mirror image switch is an on state, mirror image prompt information is displayed, and the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
11. The multimedia data processing apparatus of claim 8, wherein the multimedia data processing unit is further configured to perform:
Judging whether the acquired background of the shooting data comprises a text area or not;
if the background comprises a text region, carrying out mirror image overturning on the text region in the background to obtain a mirror image overturned background, and taking the mirror image overturned background as target multimedia data.
12. The multimedia data processing apparatus of claim 8, wherein the camera opening unit is further configured to perform:
and responding to an opening instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and setting the mirror switch to be gray.
13. The multimedia data processing apparatus of claim 8, wherein the camera opening unit is further configured to perform:
and responding to a re-starting instruction of the front camera, and recovering the state of the mirror switch to the state of the mirror switch when the front camera is started last time.
14. The multimedia data processing apparatus of claim 8, wherein the multimedia data processing unit is further configured to perform:
displaying the editing page of the target multimedia data, and responding to the operation of the editing control in the editing page to edit the target multimedia data.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the multimedia data processing method of any of claims 1 to 7.
16. A computer readable storage medium, which when executed by a processor of a multimedia data processing electronic device, causes the multimedia data processing electronic device to perform the multimedia data processing method of any of claims 1 to 7.
CN202110071296.6A 2021-01-19 2021-01-19 Multimedia data processing method and device, electronic equipment and storage medium Active CN112929561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110071296.6A CN112929561B (en) 2021-01-19 2021-01-19 Multimedia data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110071296.6A CN112929561B (en) 2021-01-19 2021-01-19 Multimedia data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112929561A CN112929561A (en) 2021-06-08
CN112929561B true CN112929561B (en) 2023-04-28

Family

ID=76163558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110071296.6A Active CN112929561B (en) 2021-01-19 2021-01-19 Multimedia data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112929561B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840086A (en) * 2021-09-06 2021-12-24 联想(北京)有限公司 Information processing method and electronic equipment
CN115034948B (en) * 2021-12-30 2023-06-16 荣耀终端有限公司 Image processing method and electronic equipment
CN114979471B (en) * 2022-05-12 2023-10-10 北京达佳互联信息技术有限公司 Interface display method, device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020582A (en) * 2012-09-20 2013-04-03 苏州两江科技有限公司 Method for computer to identify vehicle type by video image
CN105959564A (en) * 2016-06-15 2016-09-21 维沃移动通信有限公司 Photographing method and mobile terminal
CN106961558A (en) * 2016-01-08 2017-07-18 中兴通讯股份有限公司 One kind is taken pictures treating method and apparatus
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10254845B2 (en) * 2016-01-05 2019-04-09 Intel Corporation Hand gesture recognition for cursor control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020582A (en) * 2012-09-20 2013-04-03 苏州两江科技有限公司 Method for computer to identify vehicle type by video image
CN106961558A (en) * 2016-01-08 2017-07-18 中兴通讯股份有限公司 One kind is taken pictures treating method and apparatus
CN105959564A (en) * 2016-06-15 2016-09-21 维沃移动通信有限公司 Photographing method and mobile terminal
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device

Also Published As

Publication number Publication date
CN112929561A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN112929561B (en) Multimedia data processing method and device, electronic equipment and storage medium
CN108108418B (en) Picture management method, device and storage medium
CN109557999B (en) Bright screen control method and device and storage medium
US11372516B2 (en) Method, device, and storage medium for controlling display of floating window
CN113206948B (en) Image effect previewing method and device, electronic equipment and storage medium
CN111611034A (en) Screen display adjusting method and device and storage medium
CN112269525B (en) Small screen window display method and device and storage medium
CN111461950B (en) Image processing method and device
CN108650412B (en) Display method, display device and computer readable storage medium
CN107967233B (en) Electronic work display method and device
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN112423092A (en) Video recording method and video recording device
CN114356476B (en) Content display method, content display device, electronic equipment and storage medium
CN113360708B (en) Video playing method and device, electronic equipment and storage medium
CN115914721A (en) Live broadcast picture processing method and device, electronic equipment and storage medium
CN114282022A (en) Multimedia editing method and device, electronic equipment and storage medium
CN114125528B (en) Video special effect processing method and device, electronic equipment and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN110737373B (en) Application interface control method, device, terminal and storage medium
CN112346606A (en) Picture processing method and device and storage medium
CN112000250B (en) Information processing method, device, electronic equipment and storage medium
CN109144342B (en) Game guessing interaction method and device
CN111538450B (en) Theme background display method and device and storage medium
CN114125545B (en) Video information processing method, device, electronic equipment and storage medium
CN113766115B (en) Image acquisition method, mobile terminal, device and storage medium

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