CN110896451A - Preview picture display method and electronic equipment - Google Patents

Preview picture display method and electronic equipment Download PDF

Info

Publication number
CN110896451A
CN110896451A CN201911139852.8A CN201911139852A CN110896451A CN 110896451 A CN110896451 A CN 110896451A CN 201911139852 A CN201911139852 A CN 201911139852A CN 110896451 A CN110896451 A CN 110896451A
Authority
CN
China
Prior art keywords
target
target object
preview
electronic device
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911139852.8A
Other languages
Chinese (zh)
Other versions
CN110896451B (en
Inventor
周伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911139852.8A priority Critical patent/CN110896451B/en
Publication of CN110896451A publication Critical patent/CN110896451A/en
Priority to PCT/CN2020/128719 priority patent/WO2021098603A1/en
Application granted granted Critical
Publication of CN110896451B publication Critical patent/CN110896451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a preview picture display method and electronic equipment, which are applied to the technical field of communication and are used for solving the problem that specific detail information of a target object is inconvenient to observe in the conventional electronic equipment. The method comprises the following steps: under the condition that a first preview picture of a camera contains a target object, acquiring a first parameter of the target object; if the first parameter meets a preset condition, displaying a second preview picture of the target object in a target display area; the resolution of the second preview image is greater than the resolution of the first preview image.

Description

Preview picture display method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a preview picture display method and electronic equipment.
Background
With the development of electronic device technology, electronic devices have various functions, such as: and the user can record scenery and life anytime and anywhere through the shooting function of the electronic equipment.
Currently, when a user uses an electronic device to shoot a large scene, the target object is unclear in a preview picture, and the user is inconvenient to observe specific detail information of the target object.
Disclosure of Invention
The embodiment of the invention provides a preview picture display method and electronic equipment, and aims to solve the problem that specific detail information of a target object is inconvenient to observe in the conventional electronic equipment.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for displaying a preview screen, where the method includes:
under the condition that a first preview picture of a camera contains a target object, acquiring a first parameter of the target object;
if the first parameter meets a preset condition, displaying a second preview picture of the target object in a target display area; the resolution of the second preview image is greater than the resolution of the first preview image.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first parameter of a target object under the condition that a first preview picture of a camera of the electronic equipment contains the target object;
the display module is used for displaying a second preview picture of the target object in a target display area if the first parameter meets a preset condition; the resolution of the second preview image is greater than the resolution of the first preview image.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and when the computer program is executed by the processor, the steps of the preview screen display method according to the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the preview screen display method according to the first aspect.
In the embodiment of the present invention, when the first preview screen of the camera of the electronic device includes the target object, if the first parameter of the target object satisfies the predetermined condition, the electronic device may display the second preview screen of the target object in the target display area. Because the resolution of the preview picture of the second preview picture is greater than that of the preview picture of the first preview picture, a user can observe a target object with higher resolution through the second preview picture while viewing the first preview picture, and the problems of the existing electronic equipment are avoided.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a preview screen display method according to an embodiment of the present invention;
fig. 3 is a schematic view of an interface applied by a preview screen display method according to an embodiment of the present invention;
fig. 4 is a second schematic view of an interface applied by a preview screen display method according to an embodiment of the present invention;
fig. 5 is a third schematic view of an interface applied by a preview screen display method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
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 application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, for the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions or actions, and those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order. For example, the first parameter and the second parameter are for distinguishing different parameters, and are not for describing a specific order of the parameters.
In the embodiment of the invention, the super-resolution refers to that the resolution of the original image is improved by a hardware or software method. The process of obtaining a high-resolution image through one or more low-resolution images is super-resolution reconstruction, low-resolution videos can be reconstructed into high-resolution video blurred images through artificial intelligence deep learning, and videos can be instantly changed to be high-definition, so that extremely high video experience is brought to users.
The execution main body of the preview screen display method provided in the embodiment of the present invention may be the electronic device (including a mobile electronic device and a non-mobile electronic device) described above, or may also be a functional module and/or a functional entity capable of implementing the preview screen display method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe a preview screen display method provided by an embodiment of the present invention.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the preview screen display method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the preview screen display method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the preview screen display method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the preview screen display method provided by the embodiment of the present invention by running the software program in the android operating system.
The preview screen display method according to the embodiment of the present invention is described below with reference to the flowchart of the preview screen display method shown in fig. 2, where fig. 2 is a flowchart of the preview screen display method according to the embodiment of the present invention, and the method includes steps 201 to 202:
step 201: the electronic equipment acquires a first parameter of a target object when a first preview screen of a camera of the electronic equipment contains the target object.
In an embodiment of the invention, the first parameter is used to characterize a distance between the target object and the electronic device.
In one example, the camera of the electronic device may be a wide-angle lens or a super wide-angle lens.
Optionally, in an embodiment of the present invention, the first parameter may include at least one of: the area of the target object in the first preview picture is the ratio of the area of the target object in the first preview picture, and the first distance between the target object and the electronic equipment.
Optionally, in this embodiment of the present invention, the first preview screen may be a preview screen of a front camera of the electronic device, may also be a preview screen of a rear camera of the electronic device, and may also be preview screens of the front camera and the rear camera of the electronic device, which may be specifically determined according to actual use requirements, and this is not limited in this embodiment of the present invention.
Optionally, in this embodiment of the present invention, the first preview screen may be a preview screen of a camera of the electronic device in any shooting scene. For example, the first preview screen may be a preview screen in a scene captured by a landscape, may also be a first preview screen in a scene captured by a person, and may also be a preview screen in any other possible captured scene, which may be determined according to actual use requirements, and the embodiment of the present invention does not limit this.
For example, the target object may be a certain landscape in a landscape shooting scene, or may be a certain person in a person shooting scene, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited. One or more target objects may be used.
Step 202: and if the first parameter meets a preset condition, the electronic equipment displays a second preview picture of the target object in a target display area.
In this embodiment of the present invention, the target display area may be all or a part of a display area of a screen of an electronic device, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, there may be one or more target display areas, which is not limited in the embodiment of the present invention.
In an embodiment of the present invention, the second preview screen is a preview screen of a target object in the first preview screen, and a resolution of the second preview screen is greater than a resolution of the first preview screen.
In an embodiment of the present invention, the target display area may be a display area in a preview window, where the preview window may be displayed on the first preview screen.
For example, the preview window may be displayed in a floating manner on the first preview screen. For example, when the user drags the preview window on the first preview screen, the preview window may move on the first preview screen along with the user's drag operation.
For example, the preview window may be displayed in the first preview screen in a superimposed manner with a preset transparency, for example, if the preset transparency is T1, the value range of T1 may be 0% < T1< 100%. In addition, the preview window may also be displayed on the first preview screen with high brightness or low brightness, which is not limited in the embodiment of the present invention.
For example, in the embodiment of the present invention, the electronic device may display one preview window on the first preview screen, or may display a plurality of preview windows, which is not limited in the embodiment of the present invention.
For example, the preview window may display a part or all of the preview screen (i.e., the second preview screen) of the area where the target object is located in the first preview screen, which is not limited in the embodiment of the present invention. For example: the preview window may display a preview screen of the upper body area of the person a (i.e., the above-described target object) in the first preview screen, or may display a preview screen of the entire body area of the person a in the first preview screen.
It should be noted that, when the size of the area where the character a is located in the first preview image is smaller than the size of the preview window, and the electronic device displays the preview image of the area where the character a is located in the first preview image in the preview window, the length of the area where the character a is located may be mapped to the length of the preview window, and then the width of the area where the character a is located may be mapped to the width of the preview window in the same ratio, and for the preview image of the area where the character a is located which exceeds the width of the preview window, the preview image is not displayed in the preview window temporarily.
For example, the electronic device may display one target object in the target display area, or may display a plurality of target objects in the target display area. In one example, the electronic device may sequentially display in the target display area according to the display priorities of the plurality of target objects.
For example, when the electronic device displays a target object in the target display area, when a first preview screen of the electronic device contains an object, the target object is the object; when the first preview screen of the electronic device includes a plurality of objects, the target object may be any one of the plurality of objects. For example, taking the target object as one person as an example, when 3 persons, namely, person a, person b and person c, are displayed in the first preview screen of the electronic device, the electronic device may prompt the user to select the target object, and the user may click an area where person a is located in the 3 persons in the screen, select person a as the target object, and display the selected person a in the target display area.
It should be noted that, after the target object is selected, the electronic device may track and display the target object. For example: if the character a is the target object, when the area of the character a in the first preview image changes, the electronic device may lock the viewing angle on the character a through an Artificial Intelligence (AI) portrait tracking technology, that is, the second preview image of the character a is only displayed in the target display area.
It should be noted that, the embodiment of the present invention is exemplified by a target display area, and a target object is displayed in the target display area.
Optionally, in an embodiment of the present invention, when the first parameter includes a ratio of an area of the first preview screen where the target object is located in the first preview screen, the predetermined condition may include: the duty ratio is less than or equal to a first threshold.
For example, the above-mentioned ratio may be determined by calculating a ratio of the number of pixels of the region where the target object is located to the total number of pixels of the first preview screen.
Illustratively, the above-mentioned proportion is used for characterizing the distance between the above-mentioned target object and the electronic device. When the target object is closer to the electronic device, the area where the target object is located in the first preview screen is larger, and when the target object is farther from the electronic device, the area where the target object is located in the first preview screen is smaller. Therefore, the electronic device can determine whether the target object is far away from the electronic device by using the ratio of the area of the target object in the first preview screen.
In one example, the first threshold may be a preset value. For example: the electronic device sets the first threshold value to 2/16.
In another example, the first threshold value is a ratio of the target display area in the first preview screen. For example: if the default length of the target display area is 1/4 in the first preview screen and the default width of the target display area is 3/4 in the first preview screen, the first threshold value is 3/16.
For example, as shown in fig. 3, a person a (i.e., the target object, such as 32 in fig. 3) is displayed in the first preview screen (31 in fig. 3) of the electronic device, and the electronic device calculates the ratio of the number of pixels in the area where the person a32 is located to the total number of pixels in the first preview screen to be 1/56, since 1/56 is smaller than 3/16 (i.e., the first threshold value), the electronic device may display the target display area (i.e., 33 in fig. 3) on the first preview screen and enlarge and display the second preview screen in the target display area 33, which is the upper half of the body area of the person a32 in the first preview screen 31.
It should be noted that the electronic device may identify the person included in the first preview screen through AI portrait detection; the electronic equipment can also enlarge the area where the target object is located in the first preview picture to be displayed in the target display area through AI super-resolution sampling, so that the preview picture of the target object has higher resolution and is clearer.
Optionally, in an embodiment of the present invention, in a case that the first parameter includes a first distance between the target object and the electronic device, the predetermined condition may include: the first distance is greater than or equal to a second threshold.
For example, when the electronic device is equipped with a depth camera, a first distance (i.e., a depth value) between the target object and the electronic device may be calculated by the depth camera.
For example, the depth camera may obtain the first distance by a time of flight (TOF) method, a structured light method, and a binocular stereo method.
For example, the electronic device calculates a first distance between the target object and the electronic device, and when the first distance is greater than or equal to a second threshold (e.g., 3 meters), the electronic device may enlarge and display a second preview screen of the area where the target object is located in the first preview screen in the target display area.
In the preview screen display method provided by the embodiment of the present invention, when a first preview screen of a camera of an electronic device includes a target object, if a first parameter of the target object satisfies a predetermined condition, the electronic device may display a second preview screen of the target object in a target display area. Because the resolution of the preview picture of the second preview picture is greater than that of the preview picture of the first preview picture, a user can observe a target object with higher resolution through the second preview picture while viewing the first preview picture, and the problems of the existing electronic equipment are avoided.
Optionally, in the embodiment of the present invention, the target display area may be divided into a magnification fixing mode and a field fixing mode. That is, the user may adjust the size of the target display area, further enlarge the area where the target object is displayed, or increase the display content.
Illustratively, after the step 202, the method may further include the following steps 203a1 and 203a 2:
step 203a 1: the electronic device receives a first input directed to a target display area.
For example, the first input to the target display area may specifically include: specifically, the click input of the user to the target display area, or the slide input of the user to the target display area, or the drag input of the user to the target display area, or other feasibility inputs of the user to the target display area may be determined according to actual use requirements, which is not limited in the embodiment of the present invention.
In an example, the target display area may be a display area of the preview window, and the first input by the electronic device to the target display area may be: user input to the preview window.
For example, the click input in the present application may be a single click input, a double click input, or any number of click inputs; the click input may be a long-press input or a short-press input. The slide input in the present application may be a slide input in any direction, for example, an upward slide, a downward slide, a leftward slide, or a rightward slide, and the slide trajectory of the slide input may be a straight line or a curved line. The dragging input in the present application may be a dragging input to any direction, for example, dragging clockwise, dragging counterclockwise, dragging upward, dragging downward, dragging leftward, or dragging rightward, and the like, and may be specifically set according to actual requirements.
Step 203a 2: in response to the first input, the electronic device adjusts the size of the target display area.
In one example, the target display area is in a fixed field of view mode. That is, the content of the image displayed in the target display area is not changed, and the resolution of the second preview image is proportional to the size of the target display area.
Illustratively, the resolution of the second preview screen increases as the size of the target display area is enlarged, and the resolution of the second preview screen decreases as the size of the target display area is reduced.
For example, when the target display area is in the fixed field of view mode, with reference to fig. 3, the user may hold the lower right corner of the target display area 33 and drag the target display area to the lower right (i.e., the first input described above), and may further enlarge the size of the target display area 33, as shown in fig. 4, the second preview screen of the target display area (i.e., 33 in fig. 4) still displays the upper half area of the character a (i.e., 32 in fig. 4) in the first preview screen (i.e., 31 in fig. 4), but the screen is enlarged as the size of the target display area 33 is enlarged.
In another example, the target display area is in a fixed magnification mode. That is, the content of the second preview screen displayed in the target display area is proportional to the size of the target display area.
Illustratively, the content of the second preview screen displayed in the target display area increases as the size of the target display area is enlarged, and the content of the second preview screen in the target display area decreases as the size of the target display area is reduced.
For example, when the target display area is in the fixed magnification mode, with reference to fig. 3, the user may press and drag the lower right corner of the target display area 33 downward (i.e., the first input described above), and may further enlarge the size of the target display area 33, as shown in fig. 5, the magnification of the screen in the target display area (i.e., 33 in fig. 5) is unchanged, and a second preview screen of the entire body area of the person a (i.e., 32 in fig. 5) in the first preview screen (i.e., 31 in fig. 5) is displayed.
In this way, the user can further zoom the second preview screen in the target display area or control the content of the second preview screen displayed in the target display area by adjusting the size of the target display area as required.
Optionally, in the embodiment of the present invention, when the target object is close to the electronic device, the user may clearly observe the target object in the first preview screen of the electronic device, and at this time, the electronic device may cancel displaying the second preview screen.
Illustratively, after the step 202, the method may further include the following steps 203b1 and 203b 2:
step 203b 1: and under the condition that the target display area displays the second preview picture, the electronic equipment acquires the second parameter.
Step 203b 2: and if the second parameter does not meet the preset condition, the electronic equipment cancels the display of the target display area.
Illustratively, the second parameter is used for characterizing the distance between the target object and the electronic device.
For example, the electronic device may acquire the second parameter while the target display area displays the second preview screen, or may acquire the second parameter after the target display area displays the second preview screen, which is not limited in this embodiment of the present invention.
Illustratively, the second parameter may include at least one of: the area of the target object in the first preview picture is the ratio of the area of the target object in the first preview picture, and the second distance between the target object and the electronic equipment.
For example, in a case where the second parameter includes a proportion of an area of the first preview screen where the target object is located, the predetermined condition may include: the duty ratio is less than or equal to a first threshold. In a case where the second parameter includes a second distance between the target object and the electronic device, the predetermined condition may include: the second distance is greater than or equal to a second threshold.
For example, referring to fig. 3, after the electronic device displays the second preview screen of the area where the person a32 is located in the first preview screen in the target display area 33 in an enlarged manner, when the person a32 starts to approach the electronic device, the electronic device may retrieve that the ratio of the number of pixels in the area where the person a32 is located to the total number of pixels in the first preview screen is 5/16, and since 5/16 is greater than 3/16 (i.e., the first threshold value mentioned above), the electronic device cancels the display of the second preview screen.
In this way, when the electronic device detects that the target object is closer to the electronic device, that is, when the user can clearly observe the target object in the first preview screen, the electronic device may cancel displaying the second preview screen, and further, the first preview screen does not need to be occupied to display the second preview screen.
It should be noted that, if the second parameter does not satisfy the predetermined condition, in addition to canceling the display of the second preview screen, the present solution may also directly display the second preview screen in the area where the target object is located in the first preview screen in the target display area without performing an enlargement process, that is, the resolution of the second preview screen is the same as the resolution of the first preview screen.
Optionally, in the embodiment of the present invention, in order to highlight the target object, the electronic device may blur an area of the second preview screen other than the area where the target object is located.
Illustratively, the step 202 may include the step 202 a:
step 202 a: and the electronic equipment displays a second preview picture of the target object in the target display area and blurs the target area of the second preview picture.
Illustratively, the target area is an area other than the area where the target object is located in the second preview screen.
For example, the electronic device may blur the target area of the second preview screen by using a blurring algorithm, and it is understood that blurring the target area of the second preview screen is a blurring process for the target area of the second preview screen.
Illustratively, the above-mentioned blurring algorithm includes at least one of: the gaussian fuzzy filtering algorithm, the mean fuzzy filtering algorithm and the laplacian fuzzy filtering algorithm can be set according to actual requirements, and the method is not limited to this.
For example, referring to fig. 3, the second preview screen of the upper body area of the person a32 in the first preview screen 31 is displayed in the target display area 33 of the electronic device, and the area other than the area where the person a32 is located in the second preview screen is blurred.
In this way, the electronic device may highlight the target area by blurring an area of the second preview screen other than the area where the target object is located, so that the user may observe the target object in the second preview screen more conveniently.
Fig. 6 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 400 includes: an acquisition module 401 and a display module 402, wherein: an obtaining module 401, configured to obtain a first parameter of a target object when a first preview screen of a camera includes the target object; a displaying module 402, configured to display a second preview screen of the target object in a target display area if the first parameter acquired by the acquiring module 401 meets a predetermined condition, where a resolution of the second preview screen is greater than a resolution of the first preview screen.
Optionally, the first parameter includes: the ratio of the area of the target object in the first preview picture; wherein the predetermined condition includes: the duty ratio is less than or equal to a first threshold.
Optionally, the first parameter includes: a first distance between the target object and the electronic device; wherein the predetermined condition includes: the first distance is greater than or equal to a second threshold.
Optionally, as shown in fig. 6, the electronic device 400 further includes: a receiving module 403 and an adjusting module 404, wherein: the receiving module 403 is configured to receive a first input for the target display area; the adjusting module 404, configured to adjust a size of the target display area in response to the first input received by the receiving module 403; the resolution of the second preview image is proportional to the size of the target display area.
Optionally, the obtaining module 401 is further configured to obtain a second parameter when the second preview screen is displayed in the target display area; the display module 402 is further configured to cancel displaying the second preview screen if the second parameter acquired by the acquisition module 401 does not satisfy the predetermined condition.
Optionally, the display module 402 is specifically configured to display a second preview screen of the target object in the target display area, and blurring the target area of the second preview screen; wherein the target area is an area other than the area where the target object is located in the second preview screen.
It should be noted that, as shown in fig. 6, modules that are necessarily included in the electronic device 400 are indicated by solid line boxes, such as the obtaining module 401; modules that may or may not be included in the electronic device 400 are illustrated with dashed boxes, such as the adjustment module 404.
In the electronic device provided by the embodiment of the present invention, when the first preview screen of the camera of the electronic device includes the target object, if the first parameter of the target object satisfies the predetermined condition, the electronic device may display the second preview screen of the target object in the target display area. Because the resolution of the preview picture of the second preview picture is greater than that of the preview picture of the first preview picture, a user can observe a target object with higher resolution through the second preview picture while viewing the first preview picture, and the problems of the existing electronic equipment are avoided.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device 100 for implementing various embodiments of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in fig. 7 does not constitute a limitation of the electronic device, and that electronic device 100 may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The processor 110 is configured to, when a first preview screen of the camera includes a target object, obtain a first parameter of the target object; a display unit 106, configured to display a second preview screen of the target object in a target display area if the first parameter acquired by the processor 110 satisfies a predetermined condition; the resolution of the second preview image is greater than the resolution of the first preview image.
In the electronic device provided by the embodiment of the present invention, when the first preview screen of the camera of the electronic device includes the target object, if the first parameter of the target object satisfies the predetermined condition, the electronic device may display the second preview screen of the target object in the target display area. Because the resolution of the preview picture of the second preview picture is greater than that of the preview picture of the first preview picture, a user can observe a target object with higher resolution through the second preview picture while viewing the first preview picture, and the problems of the existing electronic equipment are avoided.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, 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 the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 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); the sensors 105 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.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 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 apparatus 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 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 the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 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.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. 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. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program 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, the memory 109 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.
The processor 110 is a control center of the electronic device 100, connects various parts of the entire electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 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 the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the above-mentioned preview screen display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
An 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 preview screen display 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 application 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 an electronic device (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 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 preview screen display method is applied to electronic equipment, and is characterized by comprising the following steps:
under the condition that a first preview picture of a camera contains a target object, acquiring a first parameter of the target object;
if the first parameter meets a preset condition, displaying a second preview picture of the target object in a target display area; the resolution of the second preview picture is greater than the resolution of the first preview picture.
2. The method of claim 1, wherein the first parameter comprises: the proportion of the area of the target object in the first preview picture is;
wherein the predetermined condition includes: the duty ratio is less than or equal to a first threshold.
3. The method of claim 1, wherein the first parameter comprises: a first distance of the target object from the electronic device;
wherein the predetermined condition includes: the first distance is greater than or equal to a second threshold.
4. The method according to claim 1, wherein if the first parameter satisfies a predetermined condition, after displaying a second preview screen of the target object in a target display area, the method further comprises:
receiving a first input for the target display area;
adjusting a size of the target display area in response to the first input;
wherein the resolution of the second preview screen is proportional to the size of the target display area.
5. The method of claim 1, further comprising:
acquiring a second parameter under the condition that the second preview picture is displayed in the target display area;
and if the second parameter does not meet the preset condition, canceling to display the second preview picture.
6. The method according to claim 1, wherein the displaying a second preview screen of the target object in a target display area comprises:
displaying a second preview picture of the target object in the target display area, and blurring a target area of the second preview picture;
and the target area is an area except the area where the target object is located in the second preview picture.
7. An electronic device, characterized in that the electronic device comprises:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first parameter of a target object under the condition that a first preview picture of a camera contains the target object;
the display module is used for displaying a second preview picture of the target object in a target display area if the first parameter acquired by the acquisition module meets a preset condition; the resolution of the second preview picture is greater than the resolution of the first preview picture.
8. The electronic device of claim 7, wherein the first parameter comprises: the proportion of the area of the target object in the first preview picture is;
wherein the predetermined condition includes: the duty ratio is less than or equal to a first threshold.
9. The electronic device of claim 7, wherein the first parameter comprises: a first distance of the target object from the electronic device;
wherein the predetermined condition includes: the first distance is greater than or equal to a second threshold.
10. The electronic device of claim 7, further comprising: receiving module and regulation module, wherein:
the receiving module is used for receiving a first input aiming at the target display area;
the adjusting module is used for responding to the first input received by the receiving module and adjusting the size of the target display area;
wherein the resolution of the second preview screen is proportional to the size of the target display area.
11. The electronic device according to claim 7, wherein the obtaining module is further configured to obtain a second parameter when the target display area displays the second preview screen; the display module is further configured to cancel displaying the second preview screen if the second parameter acquired by the acquisition module does not satisfy the predetermined condition.
12. The electronic device according to claim 7, wherein the display module is specifically configured to display a second preview screen of the target object in the target display area, and blurring a target area of the second preview screen;
and the target area is an area except the area where the target object is located in the second preview picture.
13. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the preview screen display method of any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the preview screen display method according to any one of claims 1 to 6.
CN201911139852.8A 2019-11-20 2019-11-20 Preview picture display method, electronic device and computer readable storage medium Active CN110896451B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911139852.8A CN110896451B (en) 2019-11-20 2019-11-20 Preview picture display method, electronic device and computer readable storage medium
PCT/CN2020/128719 WO2021098603A1 (en) 2019-11-20 2020-11-13 Preview picture display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911139852.8A CN110896451B (en) 2019-11-20 2019-11-20 Preview picture display method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110896451A true CN110896451A (en) 2020-03-20
CN110896451B CN110896451B (en) 2022-01-28

Family

ID=69788263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911139852.8A Active CN110896451B (en) 2019-11-20 2019-11-20 Preview picture display method, electronic device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110896451B (en)
WO (1) WO2021098603A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637528A (en) * 2020-12-21 2021-04-09 维沃移动通信有限公司 Picture processing method and device
WO2021098603A1 (en) * 2019-11-20 2021-05-27 维沃移动通信有限公司 Preview picture display method and electronic device
CN113018854A (en) * 2021-03-05 2021-06-25 南京雷鲨信息科技有限公司 Real-time AI (Artificial Intelligence) over-scoring method, system and computer-readable storage medium for game interested target
CN113038008A (en) * 2021-03-08 2021-06-25 维沃移动通信有限公司 Imaging method, imaging device, electronic equipment and storage medium
CN113452895A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Shooting method and equipment
WO2022135475A1 (en) * 2020-12-25 2022-06-30 维沃移动通信(杭州)有限公司 Image generation method and apparatus, and electronic device
CN116074620A (en) * 2022-05-27 2023-05-05 荣耀终端有限公司 Shooting method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245018A (en) * 2021-12-22 2022-03-25 维沃移动通信有限公司 Image shooting method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019537A (en) * 2012-11-19 2013-04-03 广东欧珀移动通信有限公司 Image preview method and image preview device
CN103428423A (en) * 2012-05-24 2013-12-04 联发科技股份有限公司 Preview system and preview method
CN104333701A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method and device for displaying camera preview pictures as well as terminal
CN105554372A (en) * 2015-10-30 2016-05-04 东莞酷派软件技术有限公司 Photographing method and device
CN107124543A (en) * 2017-02-20 2017-09-01 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
US20180041711A1 (en) * 2016-08-04 2018-02-08 Motorola Mobility Llc Selective Partial View Enlargement for Image and Preview
CN107800910A (en) * 2016-09-02 2018-03-13 京瓷办公信息***株式会社 The control method of image processing system and image processing system
CN109257538A (en) * 2018-09-10 2019-01-22 Oppo(重庆)智能科技有限公司 Camera control method and relevant apparatus
CN110099218A (en) * 2019-05-31 2019-08-06 努比亚技术有限公司 Interaction control method, equipment and computer readable storage medium in a kind of shooting process

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102018887B1 (en) * 2013-02-21 2019-09-05 삼성전자주식회사 Image preview using detection of body parts
CN106375596B (en) * 2016-10-17 2020-04-24 瑞安市任想科技有限责任公司 Device and method for prompting focusing object
KR102666977B1 (en) * 2017-01-09 2024-05-20 삼성전자주식회사 Electronic device and method for photographing image thereof
CN110896451B (en) * 2019-11-20 2022-01-28 维沃移动通信有限公司 Preview picture display method, electronic device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428423A (en) * 2012-05-24 2013-12-04 联发科技股份有限公司 Preview system and preview method
US20170034448A1 (en) * 2012-05-24 2017-02-02 Mediatek Inc. Preview system for concurrently displaying multiple preview images generated based on input image generated by image capture apparatus and related preview method thereof
CN103019537A (en) * 2012-11-19 2013-04-03 广东欧珀移动通信有限公司 Image preview method and image preview device
CN104333701A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method and device for displaying camera preview pictures as well as terminal
CN105554372A (en) * 2015-10-30 2016-05-04 东莞酷派软件技术有限公司 Photographing method and device
US20180041711A1 (en) * 2016-08-04 2018-02-08 Motorola Mobility Llc Selective Partial View Enlargement for Image and Preview
CN107800910A (en) * 2016-09-02 2018-03-13 京瓷办公信息***株式会社 The control method of image processing system and image processing system
CN107124543A (en) * 2017-02-20 2017-09-01 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN109257538A (en) * 2018-09-10 2019-01-22 Oppo(重庆)智能科技有限公司 Camera control method and relevant apparatus
CN110099218A (en) * 2019-05-31 2019-08-06 努比亚技术有限公司 Interaction control method, equipment and computer readable storage medium in a kind of shooting process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李璇: "基于Android的趣味图像软件的设计与实现", 《科技展望》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021098603A1 (en) * 2019-11-20 2021-05-27 维沃移动通信有限公司 Preview picture display method and electronic device
CN113452895A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Shooting method and equipment
CN112637528A (en) * 2020-12-21 2021-04-09 维沃移动通信有限公司 Picture processing method and device
CN112637528B (en) * 2020-12-21 2023-12-29 维沃移动通信有限公司 Picture processing method and device
WO2022135475A1 (en) * 2020-12-25 2022-06-30 维沃移动通信(杭州)有限公司 Image generation method and apparatus, and electronic device
CN113018854A (en) * 2021-03-05 2021-06-25 南京雷鲨信息科技有限公司 Real-time AI (Artificial Intelligence) over-scoring method, system and computer-readable storage medium for game interested target
CN113038008A (en) * 2021-03-08 2021-06-25 维沃移动通信有限公司 Imaging method, imaging device, electronic equipment and storage medium
WO2022188763A1 (en) * 2021-03-08 2022-09-15 维沃移动通信有限公司 Imaging method and apparatus, and electronic device and storage medium
CN116074620A (en) * 2022-05-27 2023-05-05 荣耀终端有限公司 Shooting method and electronic equipment
CN116074620B (en) * 2022-05-27 2023-11-07 荣耀终端有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
CN110896451B (en) 2022-01-28
WO2021098603A1 (en) 2021-05-27

Similar Documents

Publication Publication Date Title
CN110896451B (en) Preview picture display method, electronic device and computer readable storage medium
CN110719402B (en) Image processing method and terminal equipment
CN110891144B (en) Image display method and electronic equipment
CN109002243B (en) Image parameter adjusting method and terminal equipment
CN110908558B (en) Image display method and electronic equipment
CN110505400B (en) Preview image display adjustment method and terminal
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN111562896B (en) Screen projection method and electronic equipment
CN111010512A (en) Display control method and electronic equipment
CN111050109B (en) Electronic equipment control method and electronic equipment
CN110769174B (en) Video viewing method and electronic equipment
CN110830713A (en) Zooming method and electronic equipment
CN111010511B (en) Panoramic body-separating image shooting method and electronic equipment
CN110968229A (en) Wallpaper setting method and electronic equipment
CN110769156A (en) Picture display method and electronic equipment
CN110868546B (en) Shooting method and electronic equipment
CN110769154B (en) Shooting method and electronic equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN111124227A (en) Image display method and electronic equipment
CN111064896A (en) Device control method and electronic device
CN110851098A (en) Video window display method and electronic equipment
CN110913133B (en) Shooting method and electronic equipment
CN111147754B (en) Image processing method and electronic device
CN111131706B (en) Video picture processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant