CN114915730B - Shooting method and shooting device - Google Patents

Shooting method and shooting device Download PDF

Info

Publication number
CN114915730B
CN114915730B CN202210690042.7A CN202210690042A CN114915730B CN 114915730 B CN114915730 B CN 114915730B CN 202210690042 A CN202210690042 A CN 202210690042A CN 114915730 B CN114915730 B CN 114915730B
Authority
CN
China
Prior art keywords
image
images
shooting
input
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210690042.7A
Other languages
Chinese (zh)
Other versions
CN114915730A (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 Shenzhen Co Ltd
Original Assignee
Vivo Mobile Communication Shenzhen 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 Shenzhen Co Ltd filed Critical Vivo Mobile Communication Shenzhen Co Ltd
Priority to CN202210690042.7A priority Critical patent/CN114915730B/en
Publication of CN114915730A publication Critical patent/CN114915730A/en
Application granted granted Critical
Publication of CN114915730B publication Critical patent/CN114915730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The application discloses a shooting method and a shooting device, and belongs to the technical field of image shooting. The shooting method comprises the following steps: if the shooting preview interface is detected to comprise a target object under the condition that the shooting preview interface is displayed, generating a first image set according to the content displayed in the shooting preview interface; under the condition that a first input for shooting by a user is received, if the content of the first image is determined to not meet the preset condition, displaying a second image set, wherein the first image is an image shot according to the first input; wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.

Description

Shooting method and shooting device
Technical Field
The application belongs to the technical field of image shooting, and particularly relates to a shooting method and a shooting device.
Background
In the related art, when photographing objects such as a person, a landscape, etc., if the photographing object is a moving object or needs to be matched with the photographing object, the photographer may respond by pressing the shutter after seeing a suitable scene, and at this time, the most suitable moment may have passed, resulting in a non-optimal timing of photographing, and the user needs to repeatedly photograph for a plurality of times to obtain satisfactory photographing, and photographing efficiency and photographing experience are poor.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a readable storage medium, which can solve the problems of poor shooting efficiency and shooting experience.
In a first aspect, an embodiment of the present application provides a photographing method, including:
if the shooting preview interface is detected to comprise a target object under the condition that the shooting preview interface is displayed, generating a first image set according to the content displayed in the shooting preview interface;
under the condition that a first input for shooting by a user is received, if the content of the first image is determined to not meet the preset condition, displaying a second image set, wherein the first image is an image shot according to the first input;
wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the generation module is used for generating a first image set according to the content displayed in the shooting preview interface if the shooting preview interface is detected to comprise the target object under the condition that the shooting preview interface is displayed;
the display module is used for displaying a second image set if the content of the first image is determined to not meet the preset condition under the condition that the first input used for shooting by the user is received, wherein the first image is an image shot according to the first input;
wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, when a picture is shot through the electronic equipment, a shooting preview interface is displayed on a display screen of the electronic equipment in real time, and a preview image of a picture captured through a lens is displayed in the shooting preview interface. If the preview image is detected to contain the target object set by the user, such as animals, portraits and the like, the frame image part containing the preset object in the currently displayed preview image is saved. After the input of the user touching or pressing the shutter button is detected, if the shooting effect of the first image obtained by shooting is bad, a plurality of stored images before the user presses the shutter are automatically displayed in the form of a second image set for selection by the user, and the user can select satisfactory images as a final slice, so that the situation that the user misses the wonderful moment when pressing the shutter can be effectively avoided, and the shooting slice efficiency and shooting experience are improved.
Drawings
Fig. 1 shows a flowchart of a photographing method according to an embodiment of the present application;
FIG. 2 shows an interface schematic of an electronic device according to an embodiment of the application;
fig. 3 shows a block diagram of a photographing apparatus according to an embodiment of the present application;
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the characters "/" of the connected objects, and generally means a relationship in which the associated objects are one or.
The shooting method, the shooting device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
In some embodiments of the present application, a photographing method is provided for an electronic device, the electronic device including a photographing component for photographing an original image, fig. 1 shows a flowchart of the photographing method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step 102, if a shooting preview interface is displayed, generating a first image set according to content displayed in the shooting preview interface if the shooting preview interface is detected to comprise a target object;
step 104, if the content of the first image is determined to not meet the preset condition under the condition that the first input used for shooting by the user is received, displaying a second image set;
in step 104, the first image is an image obtained by photographing according to the first input;
wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.
In the embodiment of the application, the electronic equipment comprises a mobile phone, a tablet personal computer, a digital camera and the like, and the electronic equipment is provided with a shooting component which can comprise an electronic photosensitive sensor, a lens and the like. After a user starts a shooting program, a shooting preview interface is displayed on a display screen of the electronic device in real time, wherein content displayed in the shooting preview interface is a preview image of an original image shot by a shooting component, and resolutions of the original image and the preview image may be the same or different, and in some embodiments, the preview image may also be an image obtained by compressing the original image.
After the preview image is displayed, the system automatically identifies the image content of the preview image, thereby judging whether the preset object set by the user is contained in the preview image. The preset object may be a general object, such as "person", "animal", "plant", or the like, or may be a specific object, such as "person", "cat", "safflower", or the like, and the user may designate a target object to be photographed, such as inputting a photograph, feature information, or the like, of the preset object in the application program.
If the image displayed in the current preview interface is identified to contain the target object specified by the user, that is, the shooting component captures the object that the user wants to shoot, at this time, the electronic device caches the corresponding original image into a storage medium of the electronic device, such as a random access memory (Random Access Memory, RAM) or a memory, according to the preview image, so as to generate a first image set.
The images in the first image set may be stored as a plurality of photographs or may be stored as one or more video clips. Wherein, when the target object is continuously present in the preview interface, the plurality of photos may be a plurality of frame images that are continuous in time, and the video clip may be a continuous long video clip.
It can be appreciated that the first image set may be a set of all image information captured by the capturing component after the preset object is detected, so as to ensure data integrity. The first image set may also be a set of image information only including a preset object, thereby saving memory costs.
It will be appreciated that the images in the first set of images are automatically saved, not after the user triggered the photographing.
When receiving a shooting input of a user, namely the first input, the electronic device performs image recognition on a first image obtained by shooting by utilizing high-speed processing capabilities of an AI (Artificial Intelligence) chip, a DSP (Digital Signal Processing) chip and the like of the electronic device, so as to judge whether the first image meets a preset condition, specifically, whether the first image is an image with a good shooting effect. It can be understood that if the first image meets the preset condition, the shooting effect of the first image is considered to be better, and if the first image does not meet the preset condition, the shooting effect of the first image is considered to be poor.
The method comprises the steps of determining whether a first image is good in shooting effect or not according to composition proportion of the first image, exposure parameters, focusing information, color saturation, position of a target object in the first image and proportion of occupied area, and judging whether preset conditions are met or not.
In some embodiments, the determination of whether the first image satisfies the preset condition may be performed by a pre-trained neural network model.
In other embodiments, the user may manually input one or more template images that are considered to have better photographing effects as examples, and determine whether the first image is an image having better photographing effects, that is, whether a preset condition is satisfied, according to difference information between the first image and the template image.
In other embodiments, it may be determined that the first image does not satisfy the preset condition according to a subsequent processing manner of the manually taken photograph by the user. For example, when a large number of deletion operations of the first image obtained by manual shooting by the user are detected, the first image is considered not to satisfy the preset condition. Specifically, when the number of the deleted first images exceeds a preset number, the first images are considered to not meet the preset condition, and the preset number can be specifically determined by a user.
When the first image is determined to not meet the preset condition, namely the shooting effect of the photo manually shot by the user is not ideal, the electronic equipment performs image recognition and classification on all the images in the first image set, determines a plurality of images with good shooting effect from the first image set according to preset processing logic, and forms a second image set for display. The user can select photos meeting the self requirements or self preference from the second image set as the final film.
When the embodiment of the application takes a picture through the electronic equipment, if the shooting preview interface displayed on the display screen of the electronic equipment in real time detects that the preview image contains the target object set by the user, the frame image part containing the preset object in the currently displayed preview image is stored. After the input of the user touching or pressing the shutter button is detected, if the shooting effect of the first image obtained by shooting is bad, a plurality of stored images before the user presses the shutter are automatically displayed in the form of a second image set for selection by the user, and the user can select satisfactory images as a final slice, so that the situation that the user misses the wonderful moment when pressing the shutter can be effectively avoided, and the shooting slice efficiency and shooting experience are improved.
In some embodiments of the application, prior to displaying the second set of images, the method further comprises:
according to the similarity between every two images in the first image set, N similar image groups are determined, wherein under the condition that the number of images in one similar image group is greater than 1, the image similarity between any two images in the similar image group is greater than or equal to a similarity threshold value;
determining a target image in each similar image group, wherein the target image is an image in one similar image group;
and generating a second image set according to the N target images, wherein the image similarity between any two images in the second image set is smaller than a similarity threshold value.
In the embodiment of the application, when the images in the first image set are all images stored automatically by the system when the shooting preview interface contains the target object, and when the camera captures the target object for a long time, for example, when a user holds the electronic device and focuses and adjusts the shooting angle, the stored image frames are continuous in time, so that the image contents of the stored image frames can be quite close.
In order to avoid showing a large number of photos with similar contents to a user, the embodiment of the application determines the similarity between every two pictures in the stored first image set, and determines a plurality of images with the similarity greater than or equal to a similarity threshold as the same similar image group.
It can be appreciated that if a photograph exists in the first image set, the photograph is less than the similarity threshold with all other photographs, and the photograph is separated into a group of similar images.
When the second image set is generated, a target image is selected from each similar image group, wherein the target image can be selected randomly from the similar image groups, or can be selected according to the generation time of each photo in the similar image groups, specifically, the similar photos are ordered based on the generation time, and one photo with the earliest or latest generation time is determined as the target image.
According to the N target images selected from the N similar image groups, a second image set is generated, so that the similarity between each image in the second image set and all other images is smaller than a similarity threshold, namely any two images in the second image set are dissimilar, and therefore, the situation that a large number of photos with similar contents are displayed to a user can be avoided, and the user is helped to efficiently select a final film with better shooting effect.
In some embodiments of the present application, the number of the first images whose contents do not satisfy the preset condition is a plurality of sheets; before displaying the second set of images, the method comprises:
and determining a second number of images in the second image set according to the first number of the first images, the content of which does not meet the preset condition, wherein the second number is positively related to the first number.
In the embodiment of the application, when the number of the first images shot by the user is multiple and a plurality of first images with contents not meeting the preset conditions exist, the user is repeatedly shot and does not obtain satisfactory photos, and at the moment, the number of the images in the second image set displayed to the user can be enlarged, so that more choices are provided for the user, and the user is helped to better select the proper photos.
It can be understood that if the number of the first images is smaller, it means that the number of unsatisfactory first images in the photos manually shot by the user is smaller, and at this time, the number of images in the second image set can be reduced, so that the selection time of the user is reduced.
In the embodiment of the application, since the first images with the contents which do not meet the preset conditions are images with unsatisfied shooting effects of the user, the number of the images in the second image set displayed to the user for selection should be related to the number of the first images with the contents which do not meet the preset conditions, namely, if the more the photos with poor effects in photos manually shot by the user, the more the number of the images in the second image set displayed to the user for selection is, so that more choices are provided for the user. If the pictures with poor effects in the pictures manually shot by the user are fewer, the number of the images in the second image set displayed to the user for selection is fewer, and the selection difficulty and the selection time of the user are reduced.
In some embodiments of the application, after displaying the target image set, the method further comprises:
receiving a second input to a second image in the second set of images, the second input for selecting the second image;
in response to the second input, the second image is saved and the images in the first set of images, except for the second image, are deleted.
It can be appreciated that the number of second images may be one or a plurality.
In an embodiment of the application, after the second image set is formed, the second image set is displayed on the screen in a suitable manner according to the number of images in the second image set. The user can select photos meeting the requirements of the user from the images to be used as final slices, and at the moment, the user can save the second image as the final slices by touching the second image, clicking the second image or pressing the second image for a long time.
After the second image with better slicing effect selected by the user is saved, the system automatically deletes the cached first image set and other images except the second image selected by the user, so that occupied memory is released.
In some embodiments of the present application, after receiving the first input for photographing, the method further comprises: determining a target time period according to the moment of receiving the first input and the preset time length; and deleting the first image set, and generating images with the moments outside the target time period.
It can be understood that the images in the first image set are all images automatically saved by the electronic device, and if the saved images are too many, too much memory is occupied, so that the operation condition of the electronic device is further affected.
Therefore, in the embodiment of the present application, the user can set a preset time period to save only the image automatically saved in a predetermined time (i.e., in the target time period) before receiving the input of the user for photographing (input to the shutter control), thereby reducing the operation pressure.
For example, before a user opens a camera application and does not perform a shooting operation, if the electronic device recognizes that a shooting preview interface includes a target object, a plurality of images are automatically generated and stored, taking a preset duration set by the user as an example, when the user presses a shutter, a time of pressing the shutter is recorded, for example, 10 minutes 20 minutes 12 seconds, and then a target time period is 10 minutes 20 minutes 2 seconds to 10 minutes 20 minutes 12 seconds, at this time, only a first image set may be stored, an image with a time between 10 minutes 20 minutes 2 seconds to 10 minutes 20 minutes 12 seconds is generated, and an image with a time outside the target time period is deleted, for example, an image with a time of generating at 10 minutes 19 minutes 40 seconds is generated, so as to save memory expenditure.
In some embodiments of the application, displaying the second set of images further comprises: displaying the image in the second image set when the number of images is one; when the number of images in the second image set is Q, Q images are displayed in Q display areas, respectively, Q being a positive integer greater than 1.
In the embodiment of the application, after the second image set is formed, the images in the second image set can be displayed on the screen in a proper manner according to the number of images in the second image set. The user can select the image meeting the own requirements from the images as the final film.
Specifically, if there is only one image in the second image set, the image may be displayed directly on the display screen of the electronic device. If there are multiple images in the second image set, the display areas of the display screen of the electronic device are divided, for example, fig. 2 shows an interface schematic diagram of the electronic device according to an embodiment of the present application, as shown in fig. 2, and if there are 9 photos in the second image set, the display interface of the current electronic device 200 is divided according to a nine-grid manner, so as to obtain 9 display areas, and one image 202 is displayed in each display area.
In some embodiments of the application, displaying the second set of images further comprises: ordering the images in the second image dataset according to the image characteristics to obtain a target sequence; each image in the second set of images is displayed in turn according to the target sequence.
Specifically, the image features include composition ratio, focusing information, a proportional relation of an area of a preset object to an overall area of the image, and the like, so that the image features can reflect the shooting effect of the image to some extent.
And based on the image characteristics of each image, sequencing the images in the second image set, namely sequencing according to the actual shooting effects of the images, so that the images with better shooting effects are ranked at the front position of the target sequence, and conversely, the images with poorer shooting effects are ranked at the rear position of the target sequence. After the target sequence is obtained, each image in the second image set is sequentially displayed according to the sequence of the target sequence for selection by a user.
In the photographing method provided by the embodiment of the application, the execution subject may be a photographing device, or a control module for executing the photographing method in the photographing device. In the embodiment of the present application, taking an example of a shooting method performed by a shooting device, the shooting device provided by the embodiment of the present application is described
In some embodiments of the present application, there is provided a photographing apparatus for an electronic device including a photographing assembly for photographing an original image, fig. 3 shows a block diagram of the photographing apparatus according to an embodiment of the present application, and as shown in fig. 3, a photographing apparatus 300 includes:
the generating module 302 is configured to, when the shooting preview interface is displayed, generate a first image set according to content displayed in the shooting preview interface if it is detected that the shooting preview interface includes a target object;
the display module 304 is configured to, when receiving a first input for shooting by a user, display a second image set if it is determined that the content of the first image does not meet a preset condition, where the first image is an image obtained by shooting according to the first input;
wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.
When the embodiment of the application takes a picture through the electronic equipment, if the shooting preview interface displayed on the display screen of the electronic equipment in real time detects that the preview image contains the target object set by the user, the frame image part containing the preset object in the currently displayed preview image is stored. After the input of the user touching or pressing the shutter button is detected, if the shooting effect of the first image obtained by shooting is bad, a plurality of stored images before the user presses the shutter are automatically displayed in the form of a second image set for selection by the user, and the user can select satisfactory images as a final slice, so that the situation that the user misses the wonderful moment when pressing the shutter can be effectively avoided, and the shooting slice efficiency and shooting experience are improved.
In some embodiments of the present application, the photographing apparatus further includes:
a first determining module, configured to:
according to the similarity between every two images in the first image set, N similar image groups are determined, wherein under the condition that the number of images in one similar image group is greater than 1, the similarity of images between any two images in the similar image group is greater than or equal to a similarity threshold value, and N is a positive integer; determining a target image in each similar image group, wherein the target image is an image in one similar image group;
the generation module is further used for generating a second image set according to the N target images, wherein the image similarity between any two images in the second image set is smaller than a similarity threshold value.
In the embodiment of the application, the second image set is generated according to the N target images selected from the N similar image groups, so that the similarity between each image in the second image set and all other images is smaller than the similarity threshold, namely, any two images in the second image set are dissimilar, therefore, a large number of photos with similar contents can be prevented from being displayed to a user, and the method is favorable for helping the user to efficiently select the final film with better shooting effect.
In some embodiments of the present application, the number of the first images whose contents do not satisfy the preset condition is a plurality of sheets;
the photographing apparatus further includes:
and the second determining module is used for determining a second number of images in the second image set according to the first number of the first images, the content of which does not meet the preset condition, wherein the second number is positively related to the first number.
In the embodiment of the application, since the first images with the contents which do not meet the preset conditions are images with unsatisfied shooting effects of the user, the number of the images in the second image set displayed to the user for selection should be related to the number of the first images with the contents which do not meet the preset conditions, namely, if the more the photos with poor effects in photos manually shot by the user, the more the number of the images in the second image set displayed to the user for selection is, so that more choices are provided for the user. If the number of the pictures with poor effects in the pictures manually shot by the user is small, the number of the images in the second image set displayed to the user for selection is small, and the selection difficulty of the user is reduced.
In some embodiments of the present application, the photographing apparatus further includes:
the receiving module is used for receiving a second input of a second image in the second image set, and the second input is used for selecting the second image;
a storage module for saving a second image in response to a second input;
and the first deleting module is used for deleting the images except the second image in the first image set.
In the embodiment of the application, after the second image selected by the user is stored, other images except the second image selected by the user in the first image set are automatically deleted, so that occupied memory is released.
In some embodiments of the present application, the photographing apparatus further includes:
the third determining module is used for determining a target time period according to the moment of receiving the first input and the preset duration;
and the second deleting module is used for deleting the first image set and generating images with the moments outside the target time period.
In the embodiment of the application, the user can set a preset time length, and only the images automatically stored in a preset time (namely, in a target time period) before the input of shooting (input of the shutter control) by the user is received are stored, so that the operation pressure is reduced.
The photographing device in the embodiment of the application can be an electronic device, or can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The photographing device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The shooting device provided by the embodiment of the application can realize each process realized by the embodiment of the method, and in order to avoid repetition, the description is omitted.
Optionally, an embodiment of the present application further provides an electronic device, fig. 4 shows a block diagram of an electronic device according to an embodiment of the present application, as shown in fig. 4, an electronic device 400 includes a processor 402, a memory 404, and a program or an instruction stored in the memory 404 and capable of running on the processor 402, where the program or the instruction is executed by the processor 402 to implement each process of the foregoing method embodiment, and the same technical effects are achieved, and are not repeated herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 510 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 510 is configured to, when the shooting preview interface is displayed, generate a first image set according to content displayed in the shooting preview interface if it is detected that the shooting preview interface includes a target object;
the display unit 506 is configured to, when receiving a first input for shooting by a user, display a second image set if it is determined that the content of the first image does not meet a preset condition, where the first image is an image obtained by shooting according to the first input;
wherein the first set of images includes a second set of images, the images in the second set of images being in the first set of images.
In the embodiment of the application, when a picture is shot through the electronic equipment, a shooting preview interface is displayed on a display screen of the electronic equipment in real time, and a preview image of a picture captured through a lens is displayed in the shooting preview interface. If the preview image is detected to contain the target object set by the user, such as animals, portraits and the like, the frame image part containing the preset object in the currently displayed preview image is saved. After the input of the user touching or pressing the shutter button is detected, if the shooting effect of the first image obtained by shooting is bad, a plurality of stored images before the user presses the shutter are automatically displayed in the form of a second image set for selection by the user, and the user can select satisfactory images as a final slice, so that the situation that the user misses the wonderful moment when pressing the shutter can be effectively avoided, and the shooting slice efficiency and shooting experience are improved.
Optionally, the processor 510 is further configured to determine N similar image groups according to the similarity between every two images in the first image set, where, in a case where the number of images in one similar image group is greater than 1, the image similarity between any two images in the similar image group is greater than or equal to a similarity threshold; determining a target image in each similar image group, wherein the target image is an image in one similar image group; and generating a second image set according to the N target images, wherein the image similarity between any two images in the second image set is smaller than a similarity threshold value.
In the embodiment of the application, the second image set is generated according to the N target images selected from the N similar image groups, so that the similarity between each image in the second image set and all other images is smaller than the similarity threshold, namely any two images in the second image set are dissimilar, thereby avoiding showing a large number of photos with similar contents to a user, and being beneficial to helping the user to efficiently select a final film with better shooting effect
Optionally, the number of the first images whose contents do not satisfy the preset condition is a plurality of; before displaying the second set of images, the method comprises: the processor 510 is further configured to determine a second number of images in the second set of images based on the first number of first images whose content does not satisfy the preset condition, wherein the second number is positively correlated with the first number.
Optionally, the display unit 506 is further configured to receive a second input to a second image in the second set of images, where the second input is used to select the second image; in response to the second input, the second image is saved and the images in the first set of images, except for the second image, are deleted.
Optionally, the processor 510 is further configured to determine a target time period according to the time when the first input is received and a preset duration; and deleting the first image set, and generating images with the moments outside the target time period.
It should be appreciated that in embodiments of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen. Touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 509 may include volatile memory or nonvolatile memory, or the memory 509 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 509 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in part in the form of a computer software product stored on a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. A photographing method, comprising:
if the shooting preview interface is detected to comprise a target object under the condition that the shooting preview interface is displayed, generating a first image set according to the content displayed in the shooting preview interface;
under the condition that a first input used for shooting by a user is received, if the content of a first image is determined to not meet a preset condition, N similar image groups are determined according to the similarity between every two images in the first image set; the image similarity between any two images in the similar image group is larger than or equal to a similarity threshold value, and N is a positive integer; the first image is an image obtained by shooting according to the first input;
determining target images in each similar image group;
generating a second image set according to the N target images, wherein the image similarity between any two images in the second image set is smaller than the similarity threshold; wherein, according to the first quantity of the first images of which the content does not meet the preset condition, determining the second quantity of the images in the second image set, wherein the second quantity is positively related to the first quantity;
displaying the second image set; the first set of images includes the second set of images, with images in the second set of images all in the first set of images.
2. The photographing method of claim 1, wherein said target image is an image of one of said similar image groups.
3. The photographing method of claim 1, wherein after said displaying said second image set, said method further comprises:
receiving a second input to a second image in the second set of images, the second input for selecting the second image;
in response to the second input, the second image is saved and images of the first set of images other than the second image are deleted.
4. A shooting method as claimed in any one of claims 1 to 3, wherein after receiving a first input from a user for shooting, the method further comprises:
determining a target time period according to the moment of receiving the first input and a preset duration;
and deleting the first image set, and generating images with moments outside the target time period.
5. A photographing apparatus, comprising:
the generation module is used for generating a first image set according to the content displayed in the shooting preview interface if the shooting preview interface is detected to comprise a target object under the condition that the shooting preview interface is displayed;
the display module is used for determining N similar image groups according to the similarity between every two images in the first image set if the content of the first image is determined to not meet the preset condition under the condition that the first input used for shooting by the user is received; the image similarity between any two images in the similar image group is larger than or equal to a similarity threshold value, and N is a positive integer; the first image is an image obtained by shooting according to the first input; determining target images in each similar image group; generating a second image set according to the N target images, wherein the image similarity between any two images in the second image set is smaller than the similarity threshold; wherein, according to the first quantity of the first images of which the content does not meet the preset condition, determining the second quantity of the images in the second image set, wherein the second quantity is positively related to the first quantity; displaying the second set of images; the first set of images includes the second set of images, with images in the second set of images all in the first set of images.
6. The photographing device of claim 5, wherein said target image is an image of one of said similar image groups.
7. The photographing device of claim 5, wherein said device further comprises:
a receiving module for receiving a second input to a second image in the second set of images, the second input being for selecting the second image;
a storage module for saving the second image in response to the second input;
and the first deleting module is used for deleting the images except the second image in the first image set.
8. The photographing device of any of claims 5 to 7, further comprising:
the third determining module is used for determining a target time period according to the moment of receiving the first input and the preset duration;
and the second deleting module is used for deleting the first image set and generating images with the moments outside the target time period.
CN202210690042.7A 2022-06-17 2022-06-17 Shooting method and shooting device Active CN114915730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210690042.7A CN114915730B (en) 2022-06-17 2022-06-17 Shooting method and shooting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210690042.7A CN114915730B (en) 2022-06-17 2022-06-17 Shooting method and shooting device

Publications (2)

Publication Number Publication Date
CN114915730A CN114915730A (en) 2022-08-16
CN114915730B true CN114915730B (en) 2023-10-27

Family

ID=82772471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210690042.7A Active CN114915730B (en) 2022-06-17 2022-06-17 Shooting method and shooting device

Country Status (1)

Country Link
CN (1) CN114915730B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138962A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Image display method and image display device
CN106528879A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Picture processing method and device
CN108419012A (en) * 2018-03-18 2018-08-17 广东欧珀移动通信有限公司 Photographic method, device, storage medium and electronic equipment
CN109977247A (en) * 2019-03-27 2019-07-05 联想(北京)有限公司 Image processing method and image processing apparatus
CN114125290A (en) * 2021-11-22 2022-03-01 维沃移动通信有限公司 Shooting method and device
CN114372166A (en) * 2021-12-03 2022-04-19 浙江大华技术股份有限公司 Image management method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138962A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Image display method and image display device
CN106528879A (en) * 2016-12-14 2017-03-22 北京小米移动软件有限公司 Picture processing method and device
CN108419012A (en) * 2018-03-18 2018-08-17 广东欧珀移动通信有限公司 Photographic method, device, storage medium and electronic equipment
CN109977247A (en) * 2019-03-27 2019-07-05 联想(北京)有限公司 Image processing method and image processing apparatus
CN114125290A (en) * 2021-11-22 2022-03-01 维沃移动通信有限公司 Shooting method and device
CN114372166A (en) * 2021-12-03 2022-04-19 浙江大华技术股份有限公司 Image management method and device

Also Published As

Publication number Publication date
CN114915730A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN111612873B (en) GIF picture generation method and device and electronic equipment
US20160261796A1 (en) Video Apparatus and Photography Method thereof
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN103780839A (en) Shooting method and terminal
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN114915730B (en) Shooting method and shooting device
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN113271378B (en) Image processing method and device and electronic equipment
CN113794833B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN114286004A (en) Focusing method, shooting device, electronic equipment and medium
CN113923367B (en) Shooting method and shooting device
CN114157810B (en) Shooting method, shooting device, electronic equipment and medium
CN117097982B (en) Target detection method and system
CN114285988B (en) Display method, display device, electronic equipment and storage medium
CN113489901B (en) Shooting method and device thereof
CN114827477B (en) Method, device, electronic equipment and medium for time-lapse photography
CN112492216B (en) Shooting control method and shooting control device
CN116916147A (en) Image processing method, image sending device and electronic equipment
CN117278842A (en) Shooting control method, shooting control device, electronic equipment and readable storage medium
CN117750182A (en) Shooting method and electronic equipment
CN117093746A (en) Video preview method, video preview device and electronic equipment
CN117241137A (en) Shooting method, shooting device, electronic equipment and storage medium
CN115797160A (en) Image generation method and device

Legal Events

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