CN112929561A - 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
CN112929561A
CN112929561A CN202110071296.6A CN202110071296A CN112929561A CN 112929561 A CN112929561 A CN 112929561A CN 202110071296 A CN202110071296 A CN 202110071296A CN 112929561 A CN112929561 A CN 112929561A
Authority
CN
China
Prior art keywords
mirror image
state
multimedia data
data
switch
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.)
Granted
Application number
CN202110071296.6A
Other languages
Chinese (zh)
Other versions
CN112929561B (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

Abstract

The present disclosure relates to a multimedia data processing method, apparatus, electronic device and storage medium, 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 switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state; responding to shooting operation, acquiring shooting data by using the front camera, and acquiring a target state of the mirror image switch corresponding to the shooting data; and if the target state is an open state, the shot data is used as target multimedia data, and if the target state is a closed state, the shot data is subjected to mirror image overturning, and the shot data subjected to mirror image overturning is used as the target multimedia data. Therefore, the shot data is subjected to mirror image turning without depending on the self-carried functions of the user equipment, 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 multimedia data processing method and apparatus, 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 the direction of the shot preview picture, and the shot video picture is a mirror image.
At present, short video processing software does not usually have a video mirroring function, and if a user needs to mirror a video shot by a front camera, the user needs to rely on a function of the user equipment, so that on one hand, the requirement on the user equipment is high, and on the other hand, an entrance for setting a mirroring switch in the user equipment is deep, a user operation path is long, and the operation is inconvenient.
Disclosure of Invention
The present disclosure provides a multimedia data processing method, an apparatus, an electronic device, and a storage medium, to at least solve the problems of a complicated process of creating a new task, a high user operation cost, and inconvenience. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments 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 switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state;
responding to shooting operation, acquiring shooting data by using the front camera, and acquiring a target state of the mirror image switch corresponding to the shooting data;
and if the target state is an open state, the shot data is used as target multimedia data, and if the target state is a closed state, the shot data is subjected to mirror image overturning, and the shot data subjected to mirror image overturning is used as the target multimedia data.
Optionally, the method further includes:
judging whether the acquired shooting data comprises a plurality of sectional shooting data, if so, determining sectional target multimedia data corresponding to the sectional shooting data according to the target state of a mirror switch corresponding to the sectional shooting data aiming at each sectional shooting data;
and splicing a plurality of segmented target multimedia data corresponding to the plurality of segmented shooting data to obtain target multimedia data.
Optionally, after the preview interface corresponding to the front camera is displayed in response to the opening instruction for the front camera, the method further includes:
performing text recognition 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 image switch;
and displaying mirror image prompt information under the condition that the current state of the mirror image switch is in the opening state, wherein 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 the closed state, performing mirror image flipping on the shot data, and taking the shot data after the mirror image flipping as target multimedia data, including:
judging whether the background of the acquired shooting data comprises a text area or not;
and if the background comprises a text area, carrying out mirror image turning on the text area in the background to obtain a mirror image turned background, and taking the mirror image turned background as target multimedia data.
Optionally, the method further includes:
judging whether the acquired shooting data comprises a foreground or not, if so, judging whether the foreground comprises a text area or not;
and if the foreground comprises a text area, not performing mirror image turning on the foreground, and taking the foreground and the background after mirror image turning as target multimedia data, or turning other foreground areas except the text area to obtain the foreground after mirror image turning, and taking the foreground after mirror image turning and the background after mirror image turning as the target multimedia data.
Optionally, the displaying a preview interface corresponding to the front camera in response to the opening instruction of the front camera includes:
and responding to a starting instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and graying the mirror image switch.
Optionally, the method further includes:
and responding to a re-starting instruction of the front camera, and restoring the state of the mirror image switch to the state of the mirror image switch when the front camera is started last time.
Optionally, after obtaining the target multimedia data, the method further includes:
and 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 the embodiments of the present disclosure, there is provided a multimedia data processing apparatus including:
the camera starting unit is configured to execute a starting instruction responding to a front camera and display a preview interface corresponding to the front camera, the preview interface displays a mirror switch capable of switching states, and the states of the mirror switch comprise a starting state or a closing state;
a shooting unit configured to execute acquiring shooting data by using the front camera in response to a shooting operation and acquiring a target state of the mirror switch corresponding to the shooting data;
and the multimedia data processing unit is configured to execute the steps of taking the shot data as target multimedia data if the target state is an open state, performing mirror image turning on the shot data if the target state is a closed state, and taking the shot data after the mirror image turning as the target multimedia data.
Optionally, the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprises a plurality of sectional shooting data, if so, determining sectional target multimedia data corresponding to the sectional shooting data according to the target state of a mirror switch corresponding to the sectional shooting data aiming at each sectional shooting data;
and splicing a plurality of segmented target multimedia data corresponding to the plurality of segmented shooting data to obtain target multimedia data.
Optionally, the camera opening unit is further configured to perform:
performing text recognition 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 image switch;
and displaying mirror image prompt information under the condition that the current state of the mirror image switch is in the opening state, wherein 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 background of the acquired shooting data comprises a text area or not;
and if the background comprises a text area, carrying out mirror image turning on the text area in the background to obtain a mirror image turned background, and taking the mirror image turned background as target multimedia data.
Optionally, the multimedia data processing unit is further configured to perform:
judging whether the acquired shooting data comprises a foreground or not, if so, judging whether the foreground comprises a text area or not;
and if the foreground comprises a text area, not performing mirror image turning on the foreground, and taking the foreground and the background after mirror image turning as target multimedia data, or turning other foreground areas except the text area to obtain the foreground after mirror image turning, and taking the foreground after mirror image turning and the background after mirror image turning as the target multimedia data.
Optionally, the camera opening unit is further configured to perform:
and responding to a starting instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and graying the mirror image switch.
Optionally, the camera opening unit is further configured to perform:
and responding to a re-starting instruction of the front camera, and restoring the state of the mirror image switch to the state of the mirror image switch when the front camera is started last time.
Optionally, the multimedia data processing unit is further configured to perform:
and 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 the 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 any one of the above multimedia data processing methods.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions which, when executed by a processor of a multimedia data processing electronic device, enable the multimedia data processing electronic device to perform any one of the above-mentioned multimedia data processing methods.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer programs/instructions, wherein the computer programs/instructions, when executed by a processor, implement the multimedia data processing method of any one of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
and judging whether mirror image overturning is needed to be carried out on the shot data shot by the front camera 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 shot data is subjected to mirror image turning without depending on the self-carried functions of the user equipment, 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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow chart illustrating a multimedia data processing method according to an exemplary embodiment.
Fig. 2 is a screenshot of a preview interface corresponding to a front facing camera in accordance with an exemplary 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 with the state of the mirror switch in the off state, according to an example embodiment.
FIG. 5 illustrates a block diagram of a multimedia data processing apparatus, according to an example embodiment.
FIG. 6 is a block diagram illustrating an electronic device for multimedia data processing in accordance with an exemplary embodiment.
Fig. 7 is a block diagram illustrating an apparatus for multimedia data processing according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a multimedia data processing method according to an exemplary embodiment, which is used in a user equipment, and the user equipment can interact with a user, as shown in fig. 1, and the multimedia data processing method includes the following steps.
In step S11, in response to an opening instruction for 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 state of the mirror switch includes an open state or a closed state.
The multimedia data processing method in the embodiment of the disclosure can be applied to user equipment such as a mobile phone and a computer, and a user acquires multimedia data and processes the multimedia data through interaction with the user equipment. Typically, the user device has two cameras, a front camera and a rear camera, and the data captured by the cameras is the background of the preview interface. The background in the preview interface corresponding to the rear camera is consistent with the picture observed by human eyes, the background in the preview interface corresponding to the front camera is usually a mirror image of the picture observed by human eyes, and a user can start the front camera or the rear camera according to the requirement of the user.
One or more function switches or controls can be further included in the preview interface, and the user can process the data captured by the camera through corresponding operations on 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 a user may switch the state of the mirror switch, so as to control whether the user equipment performs mirror inversion on data captured by the camera.
As shown in fig. 2, in an exemplary embodiment, it can be seen that a screenshot of a preview interface corresponding to a front-facing camera, a background in the preview interface is a mirror image of a picture observed by human eyes, and text is difficult to recognize due to mirror image inversion, and in the upper right of the preview interface, the screenshot preview interface further includes a "flip" function control that can control lens switching, a "shift" control that can control shot data shift, a "countdown" function control that can control countdown shooting, a "mirror" function control that can control shot data mirror inversion, a ratio adjustment function control that can control shot data ratio, and a function switch or control that controls a flash switch.
In this disclosure, a lens opening instruction received by a user equipment includes an opening instruction for a rear camera and an opening instruction for a front camera, and in response to the opening instruction for the rear camera, a preview interface corresponding to the rear camera is displayed, and a mirror switch is grayed, that is, the state of the mirror switch is off and cannot be modified, and in this state, if a click operation on a mirror switch control is received, a user can be prompted that "the rear camera temporarily does not support mirroring".
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 recovered to the state of the mirror switch when the front camera is started last time, and the state of the mirror switch is acquiescent to be the starting state under the condition that the front camera is started for the first time.
The lens opening instruction may be a click operation on a lens switching control in the current page, or may be any preset gesture operation in the current page, and is not limited specifically.
In the preview interface, different states of the mirror image switch can be embodied according to different display forms of the mirror image switch control. For example, the mirror switch may be in the form of a sliding switch button, which indicates that the mirror switch is in an on state when the button is close to the left side, and conversely, indicates that the mirror switch is in an off state when the button is close to the right side. Or, the mirror switch may be in the form of an icon, and when the icon of the mirror switch is colored, the state of the mirror switch is represented as an on state, whereas when the icon of the mirror switch is a gray scale, the state of the mirror switch is represented as an off state, and so on, which is not limited in particular.
In some scenes, a shot object comprises a character object, when a front camera is started to shoot the character object, if the shot data is displayed in a mirror image mode, the content of the shot data is difficult to identify by a user, under the condition, text identification can be carried out on a background captured by the front camera in a preview interface, if the background comprises a text area, the current state of a mirror image switch is obtained, if the current state of the mirror image switch is in the on state, mirror image prompt information is displayed and used for prompting the user to switch the state of the mirror image switch, and the state of the mirror image switch is switched to the off state.
In step S12, in response to a photographing operation, photographing data is acquired using the front 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 shooting operation through interaction with a user device, so as to obtain shooting data by using a front-facing camera, where the shooting data may be a video or an image, and is not limited specifically.
In one implementation, a shooting control may be included in the preview interface, and a user may start or end a shooting process through different preset operations on the shooting control. The method comprises the specific steps that in response to a first preset operation on a video shooting control in a preview interface, shooting data between the last detection of a second preset operation and the detection of the current first preset operation are obtained by using a front-facing camera, and meanwhile, a target state of a mirror image switch corresponding to the shooting data is obtained. 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 on the shooting control again, and the end operation may be a single-click operation or a long-press operation on the video shooting control again, and the like, which is not limited specifically.
In step S13, if the target state is the on state, the shooting data is set as the target multimedia data.
In this step, if the state of the mirror image switch control is the on state, it indicates that the video mirror image is turned on, and the shooting data obtained by shooting with the front camera may be used as the target multimedia data, that is, the target multimedia data is consistent with the direction of the preview interface and is a mirror image of the picture actually observed by the human eyes.
In step S14, if the target state is the off state, the image data is mirror-flipped, and the mirror-flipped image data is used as the target multimedia data.
In this step, if the state of the mirror image switch control is the off state, it indicates that the video mirror image is turned off, and the shot data shot by the front camera needs to be mirror-inverted to obtain the target multimedia data, that is, the target multimedia data is mirror-imaged with the preview interface and is in accordance with the direction of the picture actually observed by the human eyes.
And if the target state is the closed state, mirror image overturning can be carried out on the background captured by the front camera to obtain target multimedia data. In an implementation manner, it may also be determined whether the background of the acquired shooting data includes a text region, if the background includes the text region, mirror image flipping is performed on the text region in the background to obtain a background after mirror image flipping, and then the background after mirror image flipping is used as the target multimedia data. That is to say, only the text region with high identification difficulty after mirroring in the background is mirrored and flipped, so that on one hand, the identification difficulty of the text in the target multimedia data is reduced, and on the other hand, the calculation amount during mirroring flipping can be reduced. If the background layer does not include the text area, the image inversion can be performed on all the backgrounds, and the shot data after the image inversion is used as target multimedia data. The text includes words, numbers, letters, or symbols.
In the shooting data, a foreground may be further included, where the foreground includes one or more special effect layers added by the user to the background captured by the front camera in the preview interface, such as a color-mixing filter, a magic expression, a dynamic sticker, and the like, which is not limited specifically.
In one implementation, when the target state is the closed state, it may be determined whether the acquired shooting data includes a foreground, if so, it may be determined whether the foreground includes a text region, and if the foreground includes the text region, then, in one case, the foreground may not be mirror-flipped, and the foreground and the background after mirror-flipping may be used as the target multimedia data, or, in another case, other foreground regions except the text region may be flipped to obtain the foreground after mirror-flipping, and then, the foreground after mirror-flipping and the background after mirror-flipping may be used as the target multimedia data. Therefore, characters in the foreground cannot be turned over by the mirror image, and the identification of texts in the target multimedia data is facilitated. If the foreground does not include the text area, the image turning can be performed on all the foreground, and the foreground after the image turning and the background after the image turning are used as target multimedia data.
In this disclosure, the shooting operation may include a pause operation and a continue shooting operation, such that the obtained shooting data includes a plurality of pieces of segmented shooting data, and then, for each piece of segmented shooting data, the segmented target multimedia data corresponding to the piece of segmented shooting data may be determined according to a target state of a mirror switch corresponding to the piece of segmented shooting data, and then, the plurality of segmented target multimedia data corresponding to the plurality of pieces of segmented shooting data may be spliced to obtain the target multimedia data.
In one implementation, the state of the mirror switch may be adjusted in response to a switching operation of the mirror switch in a case where the front-facing camera is not currently performing video shooting. That is to say, when the front camera does not start to shoot or pause shooting, the state of the mirror image switch can be adjusted at any time, and the target state of the mirror image switch corresponding to the shot data is changed, so that whether the shot data needs to be subjected to mirror image overturning or not is determined.
When the mirror switch is switched from the off state to the on state, the user can be prompted that the picture is closed and the self-timer picture is turned left and right on the editing page. In this way, the user can more conveniently understand the functions of the mirror switch control.
In one implementation, after the target multimedia data is obtained, an editing page of the target multimedia data can be displayed, and the target multimedia data is edited in response to an operation on an editing control in the editing page. The editing controls can comprise magic expression controls, music adding controls, image beautifying controls and the like, and the editing controls can provide rich functions and further meet the use requirements of users.
As shown in fig. 3, the screenshot of the editing page of the target multimedia data is a screenshot of the editing page of the target multimedia data when the state of the mirror switch is the on state, and the text is a mirror image because the mirror image is not turned over, as shown in fig. 4, the screenshot of the editing page of the target multimedia data is a screenshot of the editing page of the target multimedia data when the state of the mirror switch is the off state, and the text is normally displayed because the mirror image is turned over.
As can be seen from the above, according to the technical scheme provided by the embodiment of the disclosure, it is determined whether mirror image inversion needs to be performed on the shot data shot by the front camera according to the state of the mirror image switch corresponding to the shot data, and when the mirror image switch is in the off state, the mirror image inversion is performed on the shot data to obtain the target multimedia data. Therefore, the shot data is subjected to mirror image turning without depending on the self-carried functions of the user equipment, 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 illustrating a multimedia data processing apparatus according to an exemplary embodiment, the apparatus comprising:
the camera starting unit 501 is configured to execute a starting instruction for responding to a 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 include a starting state or a closing state;
a shooting unit 502 configured to perform acquisition of shooting data by the front camera in response to a shooting operation, and acquisition of a target state of the mirror switch corresponding to the shooting data;
the multimedia data processing unit 503 is configured to execute, if the target state is an on state, taking the shot data as target multimedia data, and if the target state is an off state, performing mirror image flipping on the shot data, and taking the shot data after the mirror image flipping as the target multimedia data.
In one implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the acquired shooting data comprises a plurality of sectional shooting data, if so, determining sectional target multimedia data corresponding to the sectional shooting data according to the target state of a mirror switch corresponding to the sectional shooting data aiming at each sectional shooting data;
and splicing a plurality of segmented target multimedia data corresponding to the plurality of segmented shooting data to obtain target multimedia data.
In one implementation, the camera opening unit 501 is further configured to perform:
performing text recognition 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 image switch;
and displaying mirror image prompt information under the condition that the current state of the mirror image switch is in the opening state, wherein the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
In one implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the background of the acquired shooting data comprises a text area or not;
and if the background comprises a text area, carrying out mirror image turning on the text area to obtain the shot data after mirror image turning, and taking the shot data after mirror image turning as target multimedia data.
In one implementation, the multimedia data processing unit 503 is further configured to perform:
judging whether the acquired shooting data comprises a foreground or not, if so, judging whether the foreground comprises a text area or not;
and if the foreground comprises a text area, not performing mirror image turning on the foreground, and taking the foreground and the background after mirror image turning as target multimedia data, or turning other foreground areas except the text area, and taking the foreground after mirror image turning and the background after mirror image turning as the target multimedia data.
In one implementation, the camera opening unit 501 is further configured to perform:
and responding to a starting instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and graying the mirror image switch.
In one implementation, the camera opening unit 501 is further configured to perform:
and responding to a re-starting instruction of the front camera, and restoring the state of the mirror image switch to the state of the mirror image switch when the front camera is started last time.
In one implementation, the multimedia data processing unit 503 is further configured to perform:
and 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.
As can be seen from the above, according to the technical scheme provided by the embodiment of the disclosure, it is determined whether mirror image inversion needs to be performed on the shot data shot by the front camera according to the state of the mirror image switch corresponding to the shot data, and when the mirror image switch is in the off state, the mirror image inversion is performed on the shot data to obtain the target multimedia data. Therefore, the shot data is subjected to mirror image turning without depending on the self-carried functions of the user equipment, the application scene is wider, the operation path of the user is shortened, and the method is convenient and fast.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 6 is a block diagram illustrating an electronic device for multimedia data processing in accordance with an exemplary embodiment.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an electronic device to perform the above-described method is also provided. Alternatively, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product which, when run on a computer, causes the computer to implement the method of multimedia data processing described above.
As can be seen from the above, according to the technical scheme provided by the embodiment of the disclosure, it is determined whether mirror image inversion needs to be performed on the shot data shot by the front camera according to the state of the mirror image switch corresponding to the shot data, and when the mirror image switch is in the off state, the mirror image inversion is performed on the shot data to obtain the target multimedia data. Therefore, the shot data is subjected to mirror image turning without depending on the self-carried functions of the user equipment, 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 example embodiment.
For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, the 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 device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction 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 operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power supply components 807 provide power to the various components of device 800. The power components 807 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating 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 a focal length and optical zoom capability.
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 apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in memory 404 or transmitted via communications component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the 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 a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an 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, micro-controllers, microprocessors or other electronic components for performing the methods of the first and second aspects.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. Alternatively, for example, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the multimedia data processing method described in any of the above embodiments.
As can be seen from the above, according to the technical scheme provided by the embodiment of the disclosure, whether mirror image turning in the left-right direction needs to be performed on the video captured by the front camera is determined according to the state of the mirror image switch control, and when the mirror image switch control is in the off state, the mirror image turning is performed on the video captured by the front camera to obtain the target video. Therefore, the video shot by the front camera is subjected to mirror image turning, the function of the user equipment is not required, the application scene is wider, the operation path of the 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing multimedia data, 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 switch capable of switching states, and the states of the mirror switch comprise an opening state or a closing state;
responding to shooting operation, acquiring shooting data by using the front camera, and acquiring a target state of the mirror image switch corresponding to the shooting data;
and if the target state is an open state, the shot data is used as target multimedia data, and if the target state is a closed state, the shot data is subjected to mirror image overturning, and the shot data subjected to mirror image overturning is used as the target multimedia data.
2. The method according to claim 1, wherein after the displaying the preview interface corresponding to the front camera in response to the opening instruction of the front camera, the method further comprises:
performing text recognition 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 image switch;
and displaying mirror image prompt information under the condition that the current state of the mirror image switch is in the opening state, wherein the mirror image prompt information is used for prompting a user to switch the state of the mirror image switch.
3. The method according to claim 1, wherein if the target state is an off state, performing mirror image inversion on the shot data, and using the shot data after mirror image inversion as target multimedia data comprises:
judging whether the background of the acquired shooting data comprises a text area or not;
and if the background comprises a text area, carrying out mirror image turning on the text area in the background to obtain a mirror image turned background, and taking the mirror image turned background as target multimedia data.
4. The method of claim 3, further comprising:
judging whether the acquired shooting data comprises a foreground or not, if so, judging whether the foreground comprises a text area or not;
and if the foreground comprises a text area, not performing mirror image turning on the foreground, and taking the foreground and the background after mirror image turning as target multimedia data, or turning other foreground areas except the text area to obtain the foreground after mirror image turning, and taking the foreground after mirror image turning and the background after mirror image turning as the target multimedia data.
5. The method for processing multimedia data according to claim 1, wherein the displaying a preview interface corresponding to a front camera in response to an instruction to turn on the front camera comprises:
and responding to a starting instruction of the rear camera, displaying a preview interface corresponding to the rear camera, and graying the mirror image switch.
6. The method of claim 1, further comprising:
and responding to a re-starting instruction of the front camera, and restoring the state of the mirror image switch to the state of the mirror image switch when the front camera is started last time.
7. A multimedia data processing apparatus, comprising:
the camera starting unit is configured to execute a starting instruction responding to a front camera and display a preview interface corresponding to the front camera, the preview interface displays a mirror switch capable of switching states, and the states of the mirror switch comprise a starting state or a closing state;
a shooting unit configured to execute acquiring shooting data by using the front camera in response to a shooting operation and acquiring a target state of the mirror switch corresponding to the shooting data;
and the multimedia data processing unit is configured to execute the steps of taking the shot data as target multimedia data if the target state is an open state, performing mirror image turning on the shot data if the target state is a closed state, and taking the shot data after the mirror image turning as the target multimedia data.
8. 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 6.
9. A computer readable storage medium having instructions which, when executed by a processor of a multimedia data processing electronic device, enable the multimedia data processing electronic device to perform the multimedia data processing method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the multimedia data processing method of any of claims 1-6 when executed by a processor.
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 true CN112929561A (en) 2021-06-08
CN112929561B 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)

Cited By (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
CN114979471A (en) * 2022-05-12 2022-08-30 北京达佳互联信息技术有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN115034948A (en) * 2021-12-30 2022-09-09 荣耀终端有限公司 Image processing method and electronic equipment

Citations (5)

* 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
US20170192515A1 (en) * 2016-01-05 2017-07-06 Intel Corporation Hand gesture recognition for cursor control
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

Patent Citations (5)

* 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
US20170192515A1 (en) * 2016-01-05 2017-07-06 Intel Corporation Hand gesture recognition for cursor control
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

Cited By (4)

* 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
CN115034948A (en) * 2021-12-30 2022-09-09 荣耀终端有限公司 Image processing method and electronic equipment
CN114979471A (en) * 2022-05-12 2022-08-30 北京达佳互联信息技术有限公司 Interface display method and device, electronic equipment and computer readable storage medium
CN114979471B (en) * 2022-05-12 2023-10-10 北京达佳互联信息技术有限公司 Interface display method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112929561B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
US20170344192A1 (en) Method and device for playing live videos
CN110995929B (en) Terminal control method, device, terminal and storage medium
EP3163411A1 (en) Method, device and apparatus for application switching
CN108108418B (en) Picture management method, device and storage medium
EP3454198A1 (en) Method and apparatus for controlling application
CN112929561B (en) Multimedia data processing method and device, electronic equipment and storage medium
EP3136391A1 (en) Method, device and terminal device for video effect processing
CN104317402B (en) Description information display method and device and electronic equipment
CN105786507B (en) Display interface switching method and device
US11372516B2 (en) Method, device, and storage medium for controlling display of floating window
EP3133482A1 (en) Method and device for displaying a target object
CN111611034A (en) Screen display adjusting method and device and storage medium
CN107656694B (en) Display control method and device of user interface
EP2990905A1 (en) Method and device for displaying image
CN109783171B (en) Desktop plug-in switching method and device and storage medium
CN108766427B (en) Voice control method and device
CN110597443B (en) Calendar display method, device and medium
CN108650412B (en) Display method, display device and computer readable storage medium
CN110233927B (en) Call request access interface display method and device
CN108874450B (en) Method and device for waking up voice assistant
CN108965976B (en) Display control method and device for video window
CN110737373B (en) Application interface control method, device, terminal and storage medium
CN107967233B (en) Electronic work display method and device
CN109361959B (en) Bullet screen control method and device

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