Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a video processing method applied to electronic devices, which include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of Mobile Stations (MSs), Terminal devices (Terminal devices), and so on.
The method comprises the following steps:
step 101, determining characteristic parameters of an object in a first video frame of a video to be processed, and determining a target object and a non-target object according to the characteristic parameters.
The video to be processed is a pre-recorded video or a video acquired in real time in the process of a video call between the sending end and the receiving end. After being processed, the video to be processed is sent to a receiving end by a sending end.
And performing image recognition on the first video frame in the video to be processed, and identifying an object in the video, wherein the object can be a person, an animal or a still object. After identifying the object, extracting characteristic parameters of the object; the characteristic parameters include the type of the object, the distance to the photographing apparatus, the distance to another object, and the like. Object types such as people, animals, or still, etc.
And determining a target object according to the characteristic parameters, wherein the target object is a main object in the first video frame. Optionally, or objects pre-labeled as target objects; or the characteristic parameter of the target object may be an object closest to the shooting device, for example, if the object is a person, the person closest to the call device may be determined to be a subject person in a video call scene or a live network scene.
Wherein the characteristic parameters include at least one of: a first distance between an entity object corresponding to the object and the electronic equipment, a second distance between the entity object corresponding to the object and a main target entity object, a single occurrence time of the object in the video to be processed, and a preset mark of the object; wherein the primary target entity object corresponds to a primary target object of the target objects; the object may be an object in a video frame of a video to be processed, and may be a person, an animal, a still object, or the like, and the entity object is a real object in a real environment corresponding to the object, such as a person corresponding to the person, and an object real object corresponding to the object.
It is understood that, in the embodiment of the present invention, the distance-related parameters, such as the first distance and the second distance, are physical distances between the physical objects or between the physical objects and the electronic device; and the target object and the non-target object refer to the image of each entity object in the video.
As a first example, referring to fig. 2, the above characteristic parameters are introduced in the scene of fig. 2, where M denotes a photographing device which is a photographing device of a video to be processed, A, B, C are three solid objects within the photographing range of the photographing device, respectively; d is the entity object outside the shooting range, and the shooting equipment cannot shoot the entity object D; da is a first distance between the physical object a and the photographing apparatus, db is a first distance between the physical object B and the photographing apparatus, and dc is a first distance between the physical object C and the photographing apparatus; if the entity object a is the main target entity object of the main target object, the second distance of the entity object B is the distance between the entity object B and the main target entity object a, i.e. d1 in fig. 2; the second distance of the entity object C is the distance between the entity object C and the main target entity object a, i.e. d2 in fig. 2.
Alternatively, in the process of determining the target object by the shooting device, a filtering range may be set, as shown in fig. 2, in a range with the shooting device M as the center and the radius R as a circle, and objects in the range are preferentially selected as the identified objects.
Specifically, during the process of recording the video to be processed, the shooting device may determine, by using a target detection technology, a first distance of each entity object relative to the shooting device and a second distance between each entity object and a main target entity object, or take a difference between the first distances of the two as the second distance of the two; when the shooting device obtains the first distance and/or the second distance of each object, the first distance and/or the second distance can be carried in the first video frame as a characteristic parameter.
And if the object appears in the video to be processed for multiple times, the single-appearing time length is not accumulated.
The objects may have a preset tag, for example, some objects may be pre-tagged as target objects or non-target objects.
Step 102, replacing or overlaying the non-target object in the first video frame.
The non-target object, i.e. the non-subject object in the first video frame, may be determined according to a characteristic parameter of the object, for example, an object farther from the shooting device, or an object that is pre-marked as a non-target object.
In addition, after determining at least one target object, further searching for other target objects in the first video frame based on the characteristic parameters of other objects; such as an object that is closer to the target object.
After the non-target object is determined, performing replacement or coverage processing on the non-target object; for example, taking the covering process as an example, the mosaic process is performed on the non-target object, so that the details of the color level of the region where the non-target object is located are degraded, the color blocks are disturbed, and the covering is performed through the mosaic; taking replacement processing as an example, replacing the area where the non-target object is located by using a preset mark, for example, firstly performing matting processing on pixel points of the area where the non-target object is located, and then filling the preset mark in the area subjected to the matting processing to complete the replacement processing, so as to avoid the situation that the privacy of a video call user or the non-target object is revealed because the non-target object is displayed in a video to be processed.
Alternatively, for a video frame to be processed, a processing period may be set, such as several seconds each; in a processing period, a frame of image is selected as a first video frame, after a target object and a non-target object are identified based on the first video frame, the non-target object in the video frame in the processing period is replaced or covered, and the identification of each frame of image is not needed, so that the image processing operation amount of the electronic equipment is reduced.
In order to ensure the image processing precision, each frame of image in the video to be processed can be identified; the specific identification manner may be set by a user, and the embodiment of the present invention is not limited herein.
And sending the processed video frame or the complete video to a receiving end, so that a receiving end user cannot check the non-target object when checking the video frame or the video, and the privacy of the user is effectively protected.
In the embodiment of the invention, a characteristic parameter of an object in a first video frame of a video to be processed is determined, a target object and a non-target object are determined according to the characteristic parameter, and the non-target object in the first video frame is replaced or covered; and performing replacement or covering processing on the non-target object to replace or cover the non-target object in the first video frame, so that the non-target object is prevented from being displayed in the first video frame and the processed complete video, and privacy disclosure of a user is prevented in the processes of video calling, live broadcasting, recorded broadcasting and the like. The embodiment of the invention solves the problem that in the prior art, the privacy of a user is poor in the video call process.
Optionally, in an embodiment of the present invention, the step of determining the target object according to the feature parameter includes:
if the characteristic parameter of the object meets at least one of the following identification conditions, determining that the object is a target object, wherein the identification conditions include:
condition one, the first distance is less than a first distance threshold or the first distance of the object is the smallest value of the first distances.
For example, a first distance threshold is set, for example, the first distance threshold is 1 meter, and then objects corresponding to physical objects less than 1 meter away from the shooting device are all taken as target objects; it can be understood that there may be one or more target objects, and if the number of the target objects is one, the object closest to the shooting device may be selected as the target object, that is, the object with the smallest value in the first distance is the main target entity object, see fig. 2, and the object with the smallest first distance is the entity object a.
Conditional two, the second distance is less than a second distance threshold.
If the first video frame has a target object which is marked as a target object in advance or is identified, further searching a new target object according to the target object; specifically, searching for an object whose second distance from the main target entity object is smaller than a second distance threshold, referring to fig. 2, if the entity object a is identified as a target object, further searching for a second distance between each object to be identified and the main target entity object of the known target object, and if the second distance is smaller than the second distance threshold, determining that the object to be identified is the target object; alternatively, the second distance threshold may be a distance value of less than 1 meter, such as 0.5 meter.
And thirdly, the single-occurrence time length is larger than or equal to the first time length threshold.
For example, if an object to be identified exists in the to-be-processed video, where the single-occurrence time length of the object is greater than or equal to the first time length threshold, for example, the first time length threshold is 2 minutes, after the single-occurrence time length in the current to-be-processed video reaches 2 minutes, the object is marked as a target object. Taking the electronic equipment as shooting equipment as an example, when a lens captures a distinguishable object in the process of video call, the electronic equipment extracts object features and establishes a unique number, such as M, for the object; when the accumulated staying time of the object M in the unit time t exceeds s (for example, within 30 seconds, the accumulated staying time exceeds 20 seconds), the object M is determined as a participant, namely the target object, otherwise, the object M is determined as a non-participant.
Conditional four, the preset mark includes a mark of the target object.
If the object to be identified in the first video frame is marked as the target object in other video frames of the video to be processed, the object is directly determined as the target object.
Optionally, in this embodiment of the present invention, after determining that the target object is the target object according to the characteristic parameter, the method further includes:
detecting that a first object disappears from a video frame of the video to be processed, and recording the disappearance duration of the first object, wherein the first object is the target object;
determining a target characteristic parameter of the first object under the condition that the first object appears in the video to be processed again and the disappearance duration is greater than or equal to a second duration threshold, and determining that the first object is a target object or a non-target object according to the target characteristic parameter;
and under the condition that the first object appears in the video to be processed again and the disappearance duration is less than a second duration threshold, determining that the first object is a target object.
The first object disappears from the video frame of the video to be processed, for example, in the video call process, if the first object leaves the video call picture, the disappearance duration of the first object is recorded; if the single-disappearance duration is greater than or equal to the second duration threshold, for example, the second duration threshold is 10 minutes, the characteristic parameters of the object are identified again if the first object disappears for more than 10 minutes.
Specifically, taking the electronic device as a shooting device as an example, when a lens captures a recognizable object in the process of video call, the electronic device extracts object features and establishes a unique number, such as M, for the object; when the accumulated staying time of the object M in the unit time t exceeds s (for example, within 30 seconds, the accumulated staying time exceeds 20 seconds), the object M is determined as a participant, namely the target object, otherwise, the object M is determined as a non-participant. After the target object identity of M is identified, the identity of a participant has a period of validity h, and h is a second duration threshold; when the M leaves the lens, timing is started, when the M returns to the lens within the validity period h, the identity of a participant is automatically obtained, re-identification is not needed, timing returns to zero, and timing is re-performed when the M leaves next time; and when the time that M leaves the lens exceeds h, losing the identity of the participant, changing the participant into a non-target object, and identifying according to the characteristic parameters such as the stay time, the first distance or the second distance and the like.
Optionally, in an embodiment of the present invention, the step of replacing or overlaying the non-target object in the first video frame includes:
determining a region to be processed of the non-target object in the first video frame;
replacing or overlaying the non-target object in the first video frame with a target image; the target image is a first image or a preset second image, the first image is an image of a second video frame in the video to be processed at the same position as the area to be processed, for example, by acquiring other image frames in the video to be processed, if the object does not exist in the same area or a corresponding area and only a background area exists, the same area of the image is intercepted as an overlay image to replace or overlay the area to be processed in the first video frame.
The preset second image can be a cartoon image or other preset images, and the second image directly covers the area to be processed.
In addition, the mosaic processing can be carried out on the area to be processed so as to cover the non-target object.
Optionally, in the embodiment of the present invention, if the electronic device is a sending end or a server of the to-be-processed video;
after the step of replacing or overlaying the non-target object in the first video frame, the method comprises:
and sending the target video subjected to the replacement or the coverage processing to a receiving end of the video to be processed.
As a second example, referring to fig. 3, if the electronic device is a sending end of a to-be-processed video, such as one end of a video call, or a live webcast anchor, fig. 3 shows an application process in which the electronic device is a sending end, and mainly includes the following steps:
and step 301, acquiring a video image.
Step 302, the sending end analyzes each frame of image in the video to be processed.
Step 303, extracting a target object and a non-target object in each frame of image.
Step 304, replacing or covering the area in which the non-target object is located.
Step 305, the processed video is sent to the receiving end.
Optionally, in a case that the electronic device is a sending end, a display interface of the sending end may display a video to be processed, may also display a processed video, or provide a switch key for a user to switch.
If the electronic equipment is a server, namely, the to-be-processed video sent by the sending end is received, the electronic equipment executes the video processing method in the embodiment of the invention on the to-be-processed video, and then sends the processed video to the receiving end; as a third example, referring to fig. 4, fig. 4 shows an application process in which the electronic device is a server, and mainly includes the following steps:
step 401, a video image at a sending end is acquired to obtain a video to be processed, and the video to be processed is sent to a server (i.e. the electronic device).
Instep 402, the server analyzes each frame of image in the video to be processed.
And step 403, extracting a target object and a non-target object in each frame of image.
Step 404, replacing or covering the area in which the non-target object is located.
Step 405, the processed video is sent to the receiving end.
In the embodiment of the invention, the characteristic parameters of an object in a first video frame of a video to be processed are determined, a target object and a non-target object are determined according to the characteristic parameters, and the non-target object in the first video frame is replaced or covered; and performing replacement or covering processing on the non-target object to replace or cover the non-target object in the first video frame, so that the non-target object is prevented from being displayed in the first video frame and the processed complete video, and privacy disclosure of a user is prevented in the processes of video calling, live broadcasting, recorded broadcasting and the like.
With the above description of the video processing method according to the embodiment of the present invention, an electronic device according to the embodiment of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 5, an embodiment of the present invention further provides anelectronic device 500, including:
theparameter determining module 501 is configured to determine a feature parameter of an object in a first video frame of a video to be processed, and determine a target object and a non-target object according to the feature parameter.
The video to be processed is a pre-recorded video or a video acquired in real time in the process of a video call between the sending end and the receiving end. After being processed, the video to be processed is sent to a receiving end by a sending end.
And performing image recognition on the first video frame in the video to be processed, and identifying an object in the video, wherein the object can be a person, an animal or a still object. After identifying the object, extracting characteristic parameters of the object; the characteristic parameters include the type of the object, the distance to the photographing apparatus, the distance to another object, and the like. Object types such as people, animals, or still, etc.
And determining a target object according to the characteristic parameters, wherein the target object is a main object in the first video frame. Optionally, or objects pre-labeled as target objects; or the characteristic parameter of the target object may be an object closest to the shooting device, for example, if the object is a person, the person closest to the call device may be determined to be a subject person in a video call scene or a live network scene.
Wherein the characteristic parameters include at least one of: the first distance between the entity object corresponding to the object and the electronic device, the object may be an object in a video frame of a video to be processed, and may be a person, an animal, a still object, or the like, and the entity object is a real object in a real environment corresponding to the object, such as a person corresponding to a portrait, an object corresponding to a portrait, and a real object.
A second distance between an entity object corresponding to the object and a main target entity object, a single occurrence time of the object in the video to be processed, and a preset mark of the object; wherein the primary target entity object corresponds to a primary target object of the target objects.
As a first example, referring to fig. 2, the above characteristic parameters are introduced in the scene of fig. 2, where M denotes a photographing device which is a photographing device of a video to be processed, A, B, C are three solid objects within the photographing range of the photographing device, respectively; d is the entity object outside the shooting range, and the shooting equipment cannot shoot the entity object D; da is a first distance between the physical object a and the photographing apparatus, db is a first distance between the physical object B and the photographing apparatus, and dc is a first distance between the physical object C and the photographing apparatus; if the entity object a is the main target entity object of the main target object, the second distance of the entity object B is the distance between the entity object B and the main target entity object a, i.e. d1 in fig. 2; the second distance of the entity object C is the distance between the entity object C and the main target entity object a, i.e. d2 in fig. 2.
Alternatively, in the process of determining the target object by the shooting device, a filtering range may be set, as shown in fig. 2, in a range with the shooting device M as the center and the radius R as a circle, and objects in the range are preferentially selected as the identified objects.
Specifically, during the process of recording the video to be processed, the shooting device may determine, by using a target detection technology, a first distance of each entity object relative to the shooting device and a second distance between each entity object and a main target entity object, or take a difference between the first distances of the two as the second distance of the two; when the shooting device obtains the first distance and/or the second distance of each object, the first distance and/or the second distance can be carried in the first video frame as a characteristic parameter.
And if the object appears in the video to be processed for multiple times, the single-appearing time length is not accumulated.
The objects may have a preset tag, for example, some objects may be pre-tagged as target objects or non-target objects.
Aprocessing module 502 for replacing or overlaying the non-target object in the first video frame.
The non-target object, i.e. the non-subject object in the first video frame, may be determined according to a characteristic parameter of the object, for example, an object farther from the shooting device, or an object that is pre-marked as a non-target object.
In addition, after determining at least one target object, further searching for other target objects in the first video frame based on the characteristic parameters of other objects; such as an object that is closer to the target object.
After the non-target object is determined, performing replacement or coverage processing on the non-target object; for example, taking the covering process as an example, the mosaic process is performed on the non-target object, so that the details of the color level of the region where the non-target object is located are degraded, the color blocks are disturbed, and the covering is performed through the mosaic; taking replacement processing as an example, replacing the area where the non-target object is located by using a preset mark, for example, firstly performing matting processing on pixel points of the area where the non-target object is located, and then filling the preset mark in the area subjected to the matting processing to complete the replacement processing, so as to avoid the situation that the privacy of a video call user or the non-target object is revealed because the non-target object is displayed in a video to be processed.
Alternatively, for a video frame to be processed, a processing period may be set, such as several seconds each; in a processing period, a frame of image is selected as a first video frame, after a target object and a non-target object are identified based on the first video frame, the non-target object in the video frame in the processing period is replaced or covered, and the identification of each frame of image is not needed, so that the image processing operation amount of the electronic equipment is reduced.
In order to ensure the image processing precision, each frame of image in the video to be processed can be identified; the specific identification manner may be set by a user, and the embodiment of the present invention is not limited herein.
And sending the processed video frame or the complete video to a receiving end, so that a receiving end user cannot check the non-target object when checking the video frame or the video, and the privacy of the user is effectively protected.
Optionally, in this embodiment of the present invention, theparameter determining module 501 includes:
an identification submodule, configured to determine that the object is a target object if the characteristic parameter of the object satisfies at least one of the following identification conditions, where the identification conditions include:
the first distance is less than a first distance threshold or the first distance of the object is the smallest value of the first distances;
the second distance is less than a second distance threshold;
the single-occurrence duration is greater than or equal to a first duration threshold;
the preset mark comprises a mark of the target object.
Optionally, in this embodiment of the present invention, theelectronic device 500 further includes:
the recording module is used for detecting that a first object disappears from a video frame of the video to be processed and recording the disappearance duration of the first object, wherein the first object is the target object;
determining a target characteristic parameter of the first object under the condition that the first object appears in the video to be processed again and the disappearance duration is greater than or equal to a second duration threshold, and determining that the first object is a target object or a non-target object according to the target characteristic parameter; and under the condition that the first object appears in the video to be processed again and the disappearance duration is less than a second duration threshold, determining that the first object is a target object.
Optionally, in this embodiment of the present invention, theprocessing module 502 includes:
the region determining submodule is used for determining a region to be processed of the non-target object in the first video frame;
an overlay sub-module for replacing or overlaying the non-target object in the first video frame with a target image; the target image is a first image or a preset second image, and the first image is an image at the same position as the region to be processed in a second video frame in the video to be processed.
Optionally, in this embodiment of the present invention, if theelectronic device 500 is a sending end or a server of the to-be-processed video;
theelectronic device 500 includes:
and the sending module is used for sending the target video subjected to the replacement or the coverage processing to a receiving end of the video to be processed.
Theelectronic device 500 provided in the embodiment of the present invention can implement each process implemented by theelectronic device 500 in the method embodiments of fig. 1 to fig. 4, and for avoiding repetition, details are not described here again.
In the embodiment of the present invention, theparameter determining module 501 determines a feature parameter of an object in a first video frame of a video to be processed, and determines a target object and a non-target object according to the feature parameter; theprocessing module 502 replaces or covers the non-target object in the first video frame, avoids the non-target object from being displayed in the first video frame and the processed complete video, and prevents privacy of the user from being leaked in the process of video call or live broadcast, recorded broadcast and the like.
FIG. 6 is a diagram illustrating a hardware configuration of an electronic device implementing various embodiments of the invention;
theelectronic device 600 includes, but is not limited to: aradio frequency unit 601, anetwork module 602, anaudio output unit 603, aninput unit 604, asensor 605, adisplay unit 606, auser input unit 607, aninterface unit 608, amemory 609, aprocessor 610, and apower supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theprocessor 610 is configured to determine a feature parameter of an object in a first video frame of a video to be processed, and determine a target object and a non-target object according to the feature parameter; wherein the characteristic parameters include at least one of: a first distance between an entity object corresponding to the object and the electronic equipment, a second distance between the entity object corresponding to the object and a main target entity object, a single occurrence time of the object in the video to be processed, and a preset mark of the object; wherein the primary target entity object corresponds to a primary target object of the target objects;
replacing or overlaying the non-target object in the first video frame.
In the embodiment of the invention, the characteristic parameters of an object in a first video frame of a video to be processed are determined, a target object and a non-target object are determined according to the characteristic parameters, and the non-target object in the first video frame is replaced or covered; and performing replacement or covering processing on the non-target object to replace or cover the non-target object in the first video frame, so that the non-target object is prevented from being displayed in the first video frame and the processed complete video, and privacy disclosure of a user is prevented in the processes of video calling, live broadcasting, recorded broadcasting and the like.
It should be noted that, in this embodiment, theelectronic device 600 may implement each process in the method embodiment of the present invention and achieve the same beneficial effects, and for avoiding repetition, details are not described here.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 610; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, theradio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 603 may convert audio data received by theradio frequency unit 601 or thenetwork module 602 or stored in thememory 609 into an audio signal and output as sound. Also, theaudio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 604 is used to receive audio or video signals. Theinput Unit 604 may include a Graphics Processing Unit (GPU) 6041 and amicrophone 6042, and theGraphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on thedisplay unit 606. The image frames processed by thegraphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via theradio frequency unit 601 or thenetwork module 602. Themicrophone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 601 in case of the phone call mode.
Theelectronic device 600 also includes at least onesensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 6061 and/or the backlight when theelectronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 606 is used to display information input by the user or information provided to the user. TheDisplay unit 606 may include aDisplay panel 6061, and theDisplay panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 607 includes atouch panel 6071 andother input devices 6072.Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or neartouch panel 6071 using a finger, stylus, or any suitable object or accessory). Thetouch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 610, receives a command from theprocessor 610, and executes the command. In addition, thetouch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. Theuser input unit 607 may includeother input devices 6072 in addition to thetouch panel 6071. Specifically, theother input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, thetouch panel 6071 can be overlaid on thedisplay panel 6061, and when thetouch panel 6071 detects a touch operation on or near thetouch panel 6071, the touch operation is transmitted to theprocessor 610 to determine the type of the touch event, and then theprocessor 610 provides a corresponding visual output on thedisplay panel 6061 according to the type of the touch event. Although thetouch panel 6071 and thedisplay panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 6071 and thedisplay panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
Theinterface unit 608 is an interface for connecting an external device to theelectronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within theelectronic device 600 or may be used to transmit data between theelectronic device 600 and external devices.
Thememory 609 may be used to store software programs as well as various data. Thememory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in thememory 609, and calling data stored in thememory 609, thereby performing overall monitoring of the electronic device.Processor 610 may include one or more processing units; preferably, theprocessor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 610.
Theelectronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, thepower supply 611 may be logically connected to theprocessor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, theelectronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes aprocessor 610, amemory 609, and a computer program stored in thememory 609 and capable of running on theprocessor 610, where the computer program, when executed by theprocessor 610, implements each process of the above-mentioned video processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.