CN113473012A - Virtualization processing method and device and electronic equipment - Google Patents

Virtualization processing method and device and electronic equipment Download PDF

Info

Publication number
CN113473012A
CN113473012A CN202110734080.3A CN202110734080A CN113473012A CN 113473012 A CN113473012 A CN 113473012A CN 202110734080 A CN202110734080 A CN 202110734080A CN 113473012 A CN113473012 A CN 113473012A
Authority
CN
China
Prior art keywords
camera
display size
cameras
target
distance
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.)
Pending
Application number
CN202110734080.3A
Other languages
Chinese (zh)
Inventor
刘练
蒋敏叶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110734080.3A priority Critical patent/CN113473012A/en
Publication of CN113473012A publication Critical patent/CN113473012A/en
Pending legal-status Critical Current

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/67Focus control based on electronic image sensor signals
    • 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/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Landscapes

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

Abstract

The application discloses a virtualization processing method, a virtualization processing device and electronic equipment, which belong to the technical field of communication, wherein the method comprises the following steps: acquiring a first display size of a shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras; under the condition that the first display size is smaller than a preset display size, selecting a target second camera from the at least two cameras, wherein a second display size of a shot object collected by the target second camera is larger than the first display size; and carrying out photographing blurring treatment according to the distance between the target second camera and the first camera.

Description

Virtualization processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a virtualization processing method and device and electronic equipment.
Background
With the popularization of smart phones and the continuous development of mobile phone photographing technologies, mobile phones become common devices for common people to photograph. At present, when a smart phone is used for double-shot blurring, because a base line between cameras is short and cannot be automatically adjusted according to actual conditions, a good blurring effect is difficult to obtain when double-shot blurring is performed on a shooting object beyond a certain distance.
Disclosure of Invention
The embodiment of the application aims to provide a blurring processing method and device and electronic equipment, and can solve the problem that a good blurring effect is difficult to obtain when an existing mobile phone carries out double-shot blurring shooting on a long-distance shooting object.
In a first aspect, an embodiment of the present application provides a blurring processing method, which is applied to an electronic device, where the electronic device includes at least two cameras, and different cameras correspond to different focal segments, and the method includes:
acquiring a first display size of a shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras;
under the condition that the first display size is smaller than a first preset display size, selecting a target second camera from the at least two cameras, wherein a second display size of a shot object collected by the target second camera is larger than the first display size;
and carrying out photographing blurring treatment according to the distance between the target second camera and the first camera.
In a second aspect, an embodiment of the present application provides a blurring processing apparatus, which is applied to an electronic device, where the electronic device includes at least two cameras, and different cameras correspond to different focal segments, and the apparatus includes:
the first acquisition module is used for acquiring a first display size of a shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras;
the first selection module is used for selecting a target second camera from the at least two cameras under the condition that the first display size is smaller than a first preset display size, wherein the second display size of a shot object acquired by the target second camera is larger than the first display size;
and the first processing module is used for carrying out photographing blurring processing according to the distance between the target second camera and the first camera.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first display size of a shot object acquired by a first camera is acquired, a target second camera with a proper focal length is selected to amplify the shot object according to the first display size, and shooting blurring processing is performed based on the distance between the selected second camera and the first camera. Therefore, the cameras with different focal sections can be selected for blurring processing according to different shooting distances, blurring processing of a long-distance shooting object can be achieved, and a good blurring effect can be obtained.
Drawings
FIG. 1 is a schematic flow chart illustrating a blurring processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an arrangement of cameras in the embodiment of the present application;
FIG. 3 is one of schematic diagrams illustrating a display effect of an image captured by a camera in an embodiment of the present application;
fig. 4 is a second schematic view illustrating a display effect of an image acquired by a camera in an embodiment of the present application;
fig. 5 is a third schematic view illustrating a display effect of an image acquired by a camera in an embodiment of the present application;
FIG. 6 is a block diagram of a blurring processing apparatus according to an embodiment of the present application;
FIG. 7 is one of block diagrams of the electronic device of the embodiment of the present invention;
fig. 8 is a second block diagram of the electronic device according to the embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The blurring processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The embodiment of the application provides a blurring processing method, which is applied to electronic equipment, wherein the electronic equipment comprises at least two cameras, and different cameras correspond to different focal segments, as shown in fig. 1, the method comprises the following steps:
step 101: and acquiring a first display size of the shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras.
As shown in fig. 2, the electronic device of the embodiment of the present application includes a plurality of cameras 210 with different focal lengths, optionally a plurality of the cameras are arranged in two rows, the uppermost camera in each row of cameras is the main camera, and the focal lengths of the cameras arranged below the main cameras are gradually increased. Of course, the plurality of cameras may be arranged in other arrangement manners, and is not limited in particular here.
Here, by providing a plurality of cameras of different focal lengths on the electronic apparatus, a variable double shooting baseline can be realized. The base line between the main camera and the lowest camera in each row of cameras is longest, and double-shooting blurring can be performed on objects with long distances. The base line refers to the distance between two cameras when the two cameras are used for shooting.
In this step, the first camera may be a preset camera, that is, a user sets a camera in advance among the plurality of cameras to take a picture.
For example, as shown in fig. 3, a user opens a camera and clicks a blurring mode, at this time, a main shooting picture (a shooting preview interface corresponding to a first camera) is displayed on a main interface, and a picture (a sub-shooting picture) shot by another camera is displayed on an upper right corner of the main interface, where a display area corresponding to the sub-shooting picture is smaller than a display area corresponding to the main shooting picture, at this time, a first display size of a shooting object in the main shooting picture is obtained, where the first display size is used to indicate area information occupied by the shooting object in the shooting preview interface, and a distance between the shooting object and the electronic device can be determined by the first display size, and the distance between the shooting object and the electronic device is inversely proportional to the first display size, that is, the farther the first display size is smaller.
Step 102: and under the condition that the first display size is smaller than a first preset display size, selecting a target second camera from the at least two cameras, wherein the second display size of the shot object collected by the target second camera is larger than the first display size.
Here, if the first display size is smaller than the first preset display size, which indicates that the object to be shot is far from the electronic device, that is, the object with a long distance is subjected to double shooting blurring at this time, a target second camera with a proper focal length is selected from the at least two cameras, so that the double shooting blurring processing is performed on the target second camera.
The second display size of the shot object collected by the target second camera is larger than the first display size of the shot object collected by the first camera, so that the shot object can be amplified, and the shot object with better details can be obtained.
Step 103: and carrying out photographing blurring treatment according to the distance between the target second camera and the first camera.
Here, a sub-shot (second camera) having an appropriate focal length is automatically selected according to the first display size of the subject, and the subject is enlarged, so that relatively accurate depth data can be obtained based on the distance between the second camera and the second camera, and a good blurring effect can be obtained.
According to the method, the first display size of the shot object collected by the first camera is obtained, the target second camera with the proper focal length is selected to amplify the shot object according to the first display size, and shooting blurring processing is carried out based on the distance between the selected target second camera and the first camera. Therefore, the cameras with different focal sections can be selected for blurring processing according to different shooting distances, blurring processing of a long-distance shooting object can be achieved, and a good blurring effect can be obtained.
Optionally, the selecting a target second camera from the at least two cameras includes:
determining a second focal length and a second field angle corresponding to the second display size according to the corresponding relation between the focal length and the field angle and the display size of the shot image;
and determining a second target camera according to the second focal length and the second field angle.
In the embodiment of the present application, in order to obtain a better blurring effect, a camera with a proper focal length needs to be selected to zoom in on a photographic subject (since after the photographic subject is zoomed in, more details of the photographic subject, the outline of the photographic subject, and the like can be obtained, and thus the photographic subject is conveniently distinguished from a background image), that is, a camera with a display size of a photographic image larger than the first display size needs to be selected. Here, the display size of the image captured by each camera may be determined in advance from the focal length and the angle of view of each camera, and a correspondence relationship between the focal length, the angle of view, and the display size of the captured image may be established, and then, based on the correspondence relationship, the second focal length and the second angle of view corresponding to the second display size may be determined, and the target second camera corresponding to the second focal length and the second angle of view may be selected.
Optionally, selecting a target second camera among the at least two cameras includes:
and under the condition that a plurality of second cameras exist in the at least two cameras, selecting a second camera with the largest distance from the first camera from the plurality of second cameras as the target second camera, wherein the second display size of the shot object collected by the second camera is larger than the first display size.
In the embodiment of the application, the larger the base line between the two cameras is, the larger the parallax is, and the more favorable the blurring of the remote object is, so that the second camera with the largest base line is selected as the target second camera under the condition that a plurality of second cameras exist, and the better blurring effect is favorably obtained.
Optionally, after acquiring the first display size of the photographic subject, the method further includes:
and displaying prompt information under the condition that the first display size is smaller than a second preset display size, wherein the prompt information is used for prompting the replacement of the first camera.
Here, under the condition that the display size shot by the first camera is smaller, the user is prompted to better select the first camera, namely, the first camera is reselected, so that the size of the shot object collected by the main camera is ensured to be larger than a second preset display size.
Optionally, the larger the focal length corresponding to the second camera is, the farther the distance between the second camera and the first camera is.
In the embodiment of the application, when the camera to different focal length carries out the position and arranges, arrange the focal length of the camera of main camera below and increase gradually, this moment, the distance from main camera also increases gradually, the second camera corresponds the focal length is big more promptly, the distance between second camera and the first camera is far away more, the base line between two cameras is big more promptly, and then is favorable to two blurring more.
Optionally, the second display size is smaller than or equal to a third display size, and a ratio of the second display size to the third display size is greater than a preset threshold;
and the third display size is determined according to the size of the photographing preview interface corresponding to the target second camera.
In the embodiment of the present invention, when the target second camera is selected, the selection is performed based on the size (third display size) of the sub-shooting screen (shooting preview interface corresponding to the target second camera) and the first display size. As shown in fig. 4, the subject is located at the center of the main shooting picture, and at this time, a suitable target second camera is selected so that the subject is fully spread over the sub-shooting picture, and a better detail image is obtained. As shown in fig. 5, the subject is located at a non-central position of the main shooting picture, and at this time, an appropriate target second camera is selected so that the subject occupies the sub-shooting picture, and a better detail image can be obtained. That is to say, in the embodiment of the present application, no matter whether the object captured by the first camera is located at the center of the main shooting picture, an appropriate target second camera can be selected to amplify the object, and then the distance between the object and the electronic device can be better calculated based on the target second camera, so that a better blurring effect can be obtained.
Optionally, the performing the photographing blurring processing according to the distance between the second camera and the first camera includes:
determining the distance between the shooting object and the electronic equipment according to the distance between the second camera and the first camera;
and performing photographing blurring processing according to the distance between the photographing object and the electronic equipment.
In the embodiment of the application, the distance between the cameras is known, and according to the distance between the target second camera and the target first camera, the distance between the shot object and the electronic equipment, namely the depth distance, can be accurately determined, so that the shot object and the background can be distinguished according to the depth distance, the foreground and the background are subjected to blurring treatment, and a better double-shot blurring effect is obtained.
Optionally, the determining a distance between the photographic object and the electronic device according to a distance between the target second camera and the first camera includes:
obtaining a baseline distance between the first camera and the second camera according to the distance between the target second camera and the first camera;
and determining the distance between the shooting object and the electronic equipment according to the baseline distance between the first camera and the target second camera, the focal length of the first camera and the focal length of the target second camera.
Here, the distance between the target second camera and the first camera is taken as a baseline distance between the first camera and the target second camera, and the distance between the subject and the electronic device is obtained based on the baseline distance, the focal lengths of the two cameras, and the parallax in a conventional manner.
According to the method, the multiple under-screen cameras are arranged in the electronic equipment, the multiple cameras have different focal sections, and the second cameras with proper focal lengths can be automatically matched according to the distance between the shooting object and the electronic equipment, so that blurring of multiple camera combinations can be achieved according to different shooting distances, and blurring processing of remote objects can be achieved.
It should be noted that in the virtualization processing method provided in the embodiment of the present application, the execution main body may be a virtualization processing device, or a control module used in the virtualization processing device to execute the virtualization processing method. In the embodiment of the present application, a virtualization processing device is described as an example of a virtualization processing method executed by a virtualization processing device.
As shown in fig. 6, an embodiment of the present application provides a blurring processing apparatus 600 applied to an electronic device, where the electronic device includes at least two cameras, and different cameras correspond to different focal segments, and the apparatus includes:
a first obtaining module 601, configured to obtain a first display size of a photographic object, where the first display size is a display size of the photographic object acquired by a first camera of the at least two cameras;
a first selecting module 602, configured to select a target second camera from the at least two cameras when the first display size is smaller than a first preset display size, where a second display size of a photographic object acquired by the target second camera is larger than the first display size;
the first processing module 603 is configured to perform blurring processing according to a distance between the target second camera and the first camera.
Optionally, the first selection module includes:
the first determining submodule is used for determining a second focal length and a second field angle corresponding to the second display size according to the corresponding relation between the focal length and the field angle and the display size of the shot image;
and the second determining submodule is used for determining a second target camera according to the second focal length and the second field angle.
Optionally, the second display size is smaller than or equal to a third display size, and a ratio of the second display size to the third display size is greater than a preset threshold;
and the third display size is determined according to the size of the photographing preview interface corresponding to the target second camera.
Optionally, the first selecting module is configured to, when there are multiple second cameras in the at least two cameras, select, as the target second camera, a second camera with a largest distance from the first camera from the multiple second cameras, where a second display size of the photographic object acquired by the second camera is larger than the first display size.
Optionally, the apparatus according to the embodiment of the present application further includes:
the first display module is used for displaying prompt information under the condition that the first display size is smaller than a second preset display size after the first acquisition module acquires the first display size of the shooting object, and the prompt information is used for prompting the replacement of the first camera.
Optionally, the larger the focal length corresponding to the second camera is, the farther the distance between the second camera and the first camera is.
The blurring processing device obtains a first display size of a shot object collected by a first camera, selects a target second camera with a proper focal length to amplify the shot object according to the first display size, and performs shooting blurring processing based on the distance between the selected second camera and the first camera. Therefore, the cameras with different focal sections can be selected for blurring processing according to different shooting distances, blurring processing of a long-distance shooting object can be achieved, and a good blurring effect can be obtained.
The blurring processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The blurring processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The blurring processing device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the blurring processing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810. In addition, the electronic equipment comprises at least two cameras, and different cameras correspond to different focal sections.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to obtain a first display size of the photographic subject, where the first display size is a display size of the photographic subject acquired by a first camera of the at least two cameras; under the condition that the first display size is smaller than a first preset display size, selecting a target second camera from the at least two cameras, wherein a second display size of a shot object collected by the target second camera is larger than the first display size; and carrying out photographing blurring treatment according to the distance between the target second camera and the first camera.
The electronic equipment obtains a first display size of a shot object collected by the first camera, selects the target second camera with a proper focal length to amplify the shot object according to the first display size, and performs shooting blurring processing based on the distance between the selected target second camera and the first camera. Therefore, the cameras with different focal sections can be selected for blurring processing according to different shooting distances, blurring processing of a long-distance shooting object can be achieved, and a good blurring effect can be obtained.
Optionally, the processor 810 is further configured to determine a second focal length and a second field angle corresponding to the second display size according to the corresponding relationship between the focal length and the field angle and the display size of the captured image; and determining a second target camera according to the second focal length and the second field angle.
Optionally, the second display size is smaller than or equal to a third display size, and a ratio of the second display size to the third display size is greater than a preset threshold;
and the third display size is determined according to the size of the photographing preview interface corresponding to the target second camera.
Optionally, the processor 810 is further configured to, when there are multiple second cameras in the at least two cameras, select a second camera with a largest distance from the first camera from the multiple second cameras as the target second camera, where a second display size of the photographic object acquired by the second camera is larger than the first display size.
Optionally, after the processor 810 obtains the first display size of the photographic subject, the processor is further configured to control the display unit 806 to display a prompt message when the first display size is smaller than a second preset display size, where the prompt message is used to prompt to replace the first camera.
Optionally, the larger the focal length corresponding to the second camera is, the farther the distance between the second camera and the first camera is.
The electronic equipment obtains a first display size of a shot object collected by the first camera, selects the target second camera with a proper focal length to amplify the shot object according to the first display size, and performs shooting blurring processing based on the distance between the selected target second camera and the first camera. Therefore, the cameras with different focal sections can be selected for blurring processing according to different shooting distances, blurring processing of a long-distance shooting object can be achieved, and a good blurring effect can be obtained.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 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 processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the blurring processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the virtualization processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a computer 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, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A blurring processing method is applied to electronic equipment, and is characterized in that the electronic equipment comprises at least two cameras, and different cameras correspond to different focal segments, and the method comprises the following steps:
acquiring a first display size of a shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras;
under the condition that the first display size is smaller than a first preset display size, selecting a target second camera from the at least two cameras, wherein a second display size of a shot object collected by the target second camera is larger than the first display size;
and carrying out photographing blurring treatment according to the distance between the target second camera and the first camera.
2. The method of claim 1, wherein selecting the target second camera among the at least two cameras comprises:
determining a second focal length and a second field angle corresponding to the second display size according to the corresponding relation between the focal length and the field angle and the display size of the shot image;
and determining a second target camera according to the second focal length and the second field angle.
3. The method according to claim 2, wherein the second display size is smaller than or equal to a third display size, and a ratio of the second display size to the third display size is larger than a preset threshold;
and the third display size is determined according to the size of the photographing preview interface corresponding to the target second camera.
4. The method of claim 1, wherein selecting a target second camera among the at least two cameras comprises:
and under the condition that a plurality of second cameras exist in the at least two cameras, selecting a second camera with the largest distance from the first camera from the plurality of second cameras as the target second camera, wherein the second display size of the shot object collected by the second camera is larger than the first display size.
5. The method according to claim 1, wherein after acquiring the first display size of the photographic subject, the method further comprises:
and displaying prompt information under the condition that the first display size is smaller than a second preset display size, wherein the prompt information is used for prompting the replacement of the first camera.
6. The method of claim 1, wherein the larger the focal segment to which the second camera corresponds, the further the distance between the second camera and the first camera.
7. A blurring processing device applied to an electronic device, wherein the electronic device comprises at least two cameras, and different cameras correspond to different focal sections, and the device comprises:
the first acquisition module is used for acquiring a first display size of a shot object, wherein the first display size is the display size of the shot object acquired by a first camera in the at least two cameras;
the first selection module is used for selecting a target second camera from the at least two cameras under the condition that the first display size is smaller than a first preset display size, wherein the second display size of a shot object acquired by the target second camera is larger than the first display size;
and the first processing module is used for carrying out photographing blurring processing according to the distance between the target second camera and the first camera.
8. The apparatus of claim 7, wherein the first selection module comprises:
the first determining submodule is used for determining a second focal length and a second field angle corresponding to the second display size according to the corresponding relation between the focal length and the field angle and the display size of the shot image;
and the second determining submodule is used for determining a second target camera according to the second focal length and the second field angle.
9. The apparatus of claim 8, wherein the second display size is smaller than or equal to a third display size, and a ratio of the second display size to the third display size is greater than a preset threshold;
and the third display size is determined according to the size of the photographing preview interface corresponding to the target second camera.
10. The apparatus according to claim 7, wherein the first selecting module is configured to select, as the target second camera, a second camera with a largest distance from the first camera from among the plurality of second cameras in a case where the plurality of second cameras exist among the at least two cameras, and a second display size of the photographic subject captured by the second camera is larger than the first display size.
11. The apparatus of claim 7, further comprising:
the first display module is used for displaying prompt information under the condition that the first display size is smaller than a second preset display size after the first acquisition module acquires the first display size of the shooting object, and the prompt information is used for prompting the replacement of the first camera.
12. The apparatus of claim 7, wherein the larger the focal segment corresponding to the second camera, the further the distance between the second camera and the first camera.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the blurring processing method according to any of claims 1 to 6.
14. A readable storage medium, on which a program or instructions are stored, which, when executed by a processor, implement the steps of the blurring processing method according to any of claims 1 to 6.
CN202110734080.3A 2021-06-30 2021-06-30 Virtualization processing method and device and electronic equipment Pending CN113473012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110734080.3A CN113473012A (en) 2021-06-30 2021-06-30 Virtualization processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110734080.3A CN113473012A (en) 2021-06-30 2021-06-30 Virtualization processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113473012A true CN113473012A (en) 2021-10-01

Family

ID=77874323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110734080.3A Pending CN113473012A (en) 2021-06-30 2021-06-30 Virtualization processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113473012A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615435A (en) * 2022-03-25 2022-06-10 联想(北京)有限公司 Processing method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516586A (en) * 2015-12-01 2016-04-20 小米科技有限责任公司 Picture shooting method, device and system
CN107071256A (en) * 2017-05-31 2017-08-18 广东欧珀移动通信有限公司 CCD camera assembly and electronic equipment
CN107613203A (en) * 2017-09-22 2018-01-19 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108093159A (en) * 2017-12-19 2018-05-29 信利光电股份有限公司 A kind of image pickup method of multi-cam, filming apparatus, mobile terminal and readable storage medium storing program for executing
CN108156368A (en) * 2017-12-05 2018-06-12 深圳市金立通信设备有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108307106A (en) * 2017-12-29 2018-07-20 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN108419008A (en) * 2018-01-30 2018-08-17 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN110324532A (en) * 2019-07-05 2019-10-11 Oppo广东移动通信有限公司 A kind of image weakening method, device, storage medium and electronic equipment
CN110691193A (en) * 2019-09-03 2020-01-14 RealMe重庆移动通信有限公司 Camera switching method and device, storage medium and electronic equipment
CN111064895A (en) * 2019-12-31 2020-04-24 维沃移动通信有限公司 Virtual shooting method and electronic equipment
CN111885307A (en) * 2020-07-30 2020-11-03 努比亚技术有限公司 Depth-of-field shooting method and device and computer readable storage medium
CN112887602A (en) * 2021-01-26 2021-06-01 Oppo广东移动通信有限公司 Camera switching method and device, storage medium and electronic equipment
CN113014798A (en) * 2021-01-27 2021-06-22 维沃移动通信有限公司 Image display method and device and electronic equipment
WO2021121236A1 (en) * 2019-12-18 2021-06-24 荣耀终端有限公司 Control method, electronic device, computer-readable storage medium, and chip

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516586A (en) * 2015-12-01 2016-04-20 小米科技有限责任公司 Picture shooting method, device and system
CN107071256A (en) * 2017-05-31 2017-08-18 广东欧珀移动通信有限公司 CCD camera assembly and electronic equipment
CN107613203A (en) * 2017-09-22 2018-01-19 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108156368A (en) * 2017-12-05 2018-06-12 深圳市金立通信设备有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108093159A (en) * 2017-12-19 2018-05-29 信利光电股份有限公司 A kind of image pickup method of multi-cam, filming apparatus, mobile terminal and readable storage medium storing program for executing
CN108307106A (en) * 2017-12-29 2018-07-20 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN108419008A (en) * 2018-01-30 2018-08-17 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN110324532A (en) * 2019-07-05 2019-10-11 Oppo广东移动通信有限公司 A kind of image weakening method, device, storage medium and electronic equipment
CN110691193A (en) * 2019-09-03 2020-01-14 RealMe重庆移动通信有限公司 Camera switching method and device, storage medium and electronic equipment
WO2021121236A1 (en) * 2019-12-18 2021-06-24 荣耀终端有限公司 Control method, electronic device, computer-readable storage medium, and chip
CN111064895A (en) * 2019-12-31 2020-04-24 维沃移动通信有限公司 Virtual shooting method and electronic equipment
CN111885307A (en) * 2020-07-30 2020-11-03 努比亚技术有限公司 Depth-of-field shooting method and device and computer readable storage medium
CN112887602A (en) * 2021-01-26 2021-06-01 Oppo广东移动通信有限公司 Camera switching method and device, storage medium and electronic equipment
CN113014798A (en) * 2021-01-27 2021-06-22 维沃移动通信有限公司 Image display method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615435A (en) * 2022-03-25 2022-06-10 联想(北京)有限公司 Processing method and device

Similar Documents

Publication Publication Date Title
CN113132618B (en) Auxiliary photographing method and device, terminal equipment and storage medium
EP3125135A1 (en) Picture processing method and device
CN111698553B (en) Video processing method and device, electronic equipment and readable storage medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN106454086B (en) Image processing method and mobile terminal
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112954212B (en) Video generation method, device and equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN113794834A (en) Image processing method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113866782A (en) Image processing method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN112734661A (en) Image processing method and device
CN113010738A (en) Video processing method and device, electronic equipment and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113891018A (en) Shooting method and device and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN112165584A (en) Video recording method, video recording device, electronic equipment and readable storage medium
CN112765620A (en) Display control method, display control device, electronic device, and medium
CN113157184A (en) Content display method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001

RJ01 Rejection of invention patent application after publication