CN111669495A - Photographing method, photographing device and electronic equipment - Google Patents

Photographing method, photographing device and electronic equipment Download PDF

Info

Publication number
CN111669495A
CN111669495A CN202010478589.1A CN202010478589A CN111669495A CN 111669495 A CN111669495 A CN 111669495A CN 202010478589 A CN202010478589 A CN 202010478589A CN 111669495 A CN111669495 A CN 111669495A
Authority
CN
China
Prior art keywords
photographing
images
input
image
shooting
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
CN202010478589.1A
Other languages
Chinese (zh)
Other versions
CN111669495B (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 CN202010478589.1A priority Critical patent/CN111669495B/en
Publication of CN111669495A publication Critical patent/CN111669495A/en
Application granted granted Critical
Publication of CN111669495B publication Critical patent/CN111669495B/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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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

Abstract

The application discloses a photographing method, a photographing device and electronic equipment. The photographing method comprises the steps of receiving first input of a user to a first photographing control in a first area of a photographing preview interface; responding to the first input, and controlling a camera to shoot an image; under the condition that N images are obtained through shooting by the camera and in a duplicate removal shooting mode, carrying out duplicate removal processing on the N images, and storing target images in the N images; n is an integer greater than 1. In the shooting process, the generated image is subjected to duplicate removal processing, so that a large number of repeated images are prevented from being stored in a large range. And the user is not required to duplicate the saved image after taking the picture.

Description

Photographing method, photographing device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a photographing method, a photographing device and electronic equipment.
Background
With the development of the intelligent terminal technology, the photographing function of the intelligent terminal (such as a mobile phone, a tablet and the like) is more and more powerful, so that a user can often photograph with the intelligent terminal in various scenes to record a good life.
Sometimes, users may worry about not shooting well enough by themselves, so that users often press the shooting key for the same scene for multiple times. Of course, this may be due to a false trigger, resulting in multiple presses of the take button. This results in many duplicate photos in the album, and it is inconvenient to find the photos while occupying a large amount of storage space.
At present, for such a situation, a manual viewing and selective deletion mode is usually adopted to perform deduplication processing on a large number of repeated pictures. That is, the user determines the repeated pictures in the photo album by observation, and then selects part of the pictures to delete.
Disclosure of Invention
The embodiment of the application aims to provide a photographing method, a photographing device and electronic equipment, and the problem that in the prior art, the whole duplication removing process is time-consuming, labor-consuming and inconvenient due to the manual duplication removing mode can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a photographing method, where the photographing method includes:
receiving a first input of a user to a first photographing control in a first area of a photographing preview interface;
responding to the first input, and controlling a camera to shoot an image;
under the condition that N images are obtained through shooting by the camera and in a duplicate removal shooting mode, carrying out duplicate removal processing on the N images, and storing target images in the N images;
wherein N is an integer greater than 1.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the first receiving module is used for receiving first input of a user on a first photographing control in a first area of the photographing preview interface;
the first response module is used for responding to the first input and controlling the camera to shoot images;
the duplication removing module is used for carrying out duplication removing processing on the N images and storing target images in the N images under the condition that the N images are obtained through shooting of the camera and in the duplication removing shooting mode; wherein N is an integer greater than 1.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, after a user inputs a first photographing control of a photographing preview interface to obtain a plurality of images, if a photographing mode is a deduplication photographing mode, deduplication processing is performed on the obtained plurality of images, and only target images are stored. In the shooting process, the generated image can be automatically subjected to duplicate removal, so that repeated images shot by a user and the memory space occupied by the images are effectively reduced; meanwhile, the user can conveniently search the images in the photo album, so that the user does not need to clean repeated images in the photo album, and time and labor are saved.
Drawings
Fig. 1 is a schematic step diagram of a photographing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of area division of a shooting preview interface provided in an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a step of setting a first photographing control according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a division of a first region and a second region according to an embodiment of the present application;
fig. 5 is an operation diagram of setting a photographing control according to an embodiment of the present application;
FIG. 6 is one of the schematic diagrams of an interface provided by an embodiment of the present application for responding to a second input;
FIG. 7 is a second schematic view of an interface provided by an embodiment of the present application for responding to a second input;
FIG. 8 is a third schematic diagram of an interface provided by an embodiment of the present application for responding to a second input;
fig. 9 is a schematic diagram of setting of a shooting time interval provided by an embodiment of the present application;
fig. 10 is a schematic view of a setting interface of a first photographing control provided in an embodiment of the present application;
fig. 11 is a block diagram of a photographing apparatus according to an embodiment of the present application;
fig. 12 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, 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.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein.
The photographing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
According to an aspect of an embodiment of the present application, there is provided a photographing method. In the embodiment of the present application, the photographing method may be applied to electronic devices, including but not limited to mobile phones, tablet computers, notebook computers, palm computers, vehicle-mounted terminals, wearable devices, pedometers, and the like.
As shown in fig. 1, the photographing method includes:
step 101, receiving a first input of a user to a first photographing control in a first area of a photographing preview interface.
Here, the photographing preview interface is a photographing interface in a photographing application of the electronic device. Referring to fig. 2, the photographing preview interface includes a preview window 211 and a control display area located around the preview window 211; the preview window 211 is used for displaying a picture shot by the camera; the control display area displays a shooting control and a shooting parameter setting control; the control display area is an area where a flash mark, a High-Dynamic Range (HDR) image, and a Dynamic photo are located above the preview window 211 in fig. 2, and an area where a photographing, beautifying, professional, video recording, photographing control, a de-rephotography control, and a general photographing control are located below the preview window 211. The first area is a partial area in the control display area, and as shown in fig. 2, the first area 212 may be located below the preview window, but is not limited thereto. The first photographing control can trigger the camera to photograph images, and the first input can be clicking, sliding, long pressing and other operations; of course the first input may also be a continuous plurality of operations, for example a continuous plurality of clicks.
And 102, responding to the first input, and controlling the camera to shoot the image.
Since the first photographing control can trigger the camera to photograph the image, the camera is triggered to photograph the image after the first input is performed on the first photographing control. Preferably, in response to the first input, the camera is controlled to capture images to obtain at least two images.
And 103, in the case that N images are obtained through camera shooting and in the duplication elimination shooting mode, carrying out duplication elimination processing on the N images, and storing the target image in the N images.
In this step, N is an integer greater than 1. After the N images are captured, there may be duplicate images in the N images, and at this time, if the capturing mode is the duplicate removal capturing mode, the N images are subjected to the duplicate removal processing, so as to remove the duplicate images. The stored target image is a part or all of the N images after the repeated images are removed. The shooting mode comprises a common shooting mode, a repeated shooting mode and a shooting mode. In the normal photographing mode, in response to a first input, the camera is controlled to photograph images, and the N images photographed by the camera are all stored. And in the shooting mode, responding to the first input, controlling the camera to record the video image, and saving the recorded video image after the recording is finished.
In the embodiment of the application, after a user inputs a first photographing control of a photographing preview interface to obtain a plurality of images, if a photographing mode is a duplicate removal photographing mode, the obtained plurality of images are subjected to duplicate removal processing, and only target images are stored. In the shooting process, the generated image can be automatically subjected to duplicate removal, so that repeated images shot by a user and the memory space occupied by the images are effectively reduced; meanwhile, the user can conveniently search the images in the photo album, so that the user does not need to clean repeated images in the photo album, and time and labor are saved.
Optionally, the step of performing deduplication processing on the N images includes:
acquiring the image content of each image in the N images and the target parameter corresponding to each image;
in the embodiment of the present application, the image content includes a person, a scene, and the like recorded in an image. The scene and the person therein can be recognized by an image recognition technique. The target parameters include at least one of: shooting environment parameters, shooting parameters and shooting angle information. The shooting environment parameters, the shooting parameters and the shooting angle information can influence the final image presentation effect and can reflect whether the user has repeated shooting behaviors or not. Preferably, the shooting environment parameters include at least one of: light intensity, altitude.
And determining a target image in the N images according to the image content of each image and the target parameter corresponding to each image.
Due to multiple images having the same image content, the effects presented may not be the same. For example, when the user photographs the same subject a plurality of times, since the photographing angle, the photographing parameters, and the like are different at each photographing. A plurality of images with completely different presentation effects will be obtained. This is usually the case that the user intends to capture images with different presentation effects, and later selects the favorite images for retention according to the presentation effects. In this case, if the deduplication processing is performed only based on the image content, it is clear that an image is deleted by mistake. That is, a plurality of images with different presentation effects but the same image content are regarded as repeated images, only one image is reserved, and all the rest images are deleted. Thus, in the deduplication process, the image content is considered at the same time; target parameters are also considered. And for any two images, when the image contents are the same, determining whether the shooting behavior of the user is the repeated shooting behavior according to the target parameters. And if the two images are not repeated shooting behaviors, the two images are not repeated images, otherwise, the two images are regarded as the repeated images. If there is no duplicate image in the N images captured, all of the N images may be used as target images. If there is a duplicate image in the N captured images, a part or all of the N captured images excluding the duplicate image may be captured as a target image.
In the embodiment of the application, when the image is subjected to the duplicate removal processing, the image content is considered; and determining whether the shooting behavior of the user is repeated shooting or not according to the target parameter corresponding to each image. And determining repeated images according to whether the shooting behavior of the user is repeated shooting or not, and taking different images as target images. The image content and the target parameter are used as a basis for judging whether the image is a repeated image. The situation of deleting wrong images can be avoided to a great extent.
Optionally, the step of determining a target image of the N images according to the image content of each image and the target parameter corresponding to each image includes:
respectively determining similarity values of two adjacent images according to the image content of each image and the target parameter corresponding to each image and the shooting sequence of the images;
in the embodiment of the application, the similarity between different images is calculated according to the image content and the target parameter. The degree of similarity between different images is represented by a numerical value of the degree of similarity. Different weights may be assigned to the image content and the target parameter in advance, preferably, a weight with a larger value may be assigned to the image content, and the image content is used as a main judgment basis for the similarity, but the invention is not limited thereto.
When the similarity values between different images are determined, the image contents can be used as a precondition for calculating the similarity values, and when the image contents are the same, the similarity values are calculated according to the target parameters; when the image contents are different, the similarity value is directly determined to be a lower value, such as 0, but not limited thereto.
The following describes a calculation process of the similarity value when the electronic device is a mobile phone. The target parameters include: the mobile phone displacement condition, the angle of the mobile phone in the horizontal plane direction and the height information in the vertical direction; the mobile phone parameter setting condition is that when a photo is taken, the setting parameters are selected on a setting interface of a camera, such as the setting of the size, the exposure and the focus of the photo; light intensity condition, light intensity of the environment where the mobile phone is located when taking a picture.
When a user shoots a picture through a camera, the target parameter corresponding to the picture is generated while the picture is generated. For example, when a picture is generated, the displacement condition of the mobile phone is obtained through a gyroscope in the mobile phone; acquiring the setting condition of the mobile phone parameters through a camera in the mobile phone; and acquiring the light intensity condition through light sensing equipment in the mobile phone.
Taking the calculation of the similarity values of the two pictures as an example, firstly, comparing the picture contents of the two pictures; and if the picture contents are not consistent, the similarity value of the two pictures is 0. If the picture contents are consistent, comparing the mobile phone displacement condition, the mobile phone parameter setting condition and the light intensity condition respectively. And calculating to obtain the similarity value of the two pictures according to weights which are distributed to the mobile phone displacement condition, the mobile phone parameter setting condition and the light intensity condition in advance. The pre-assigned weight can be set according to the requirement. For example, the weights assigned to the mobile phone displacement condition, the mobile phone parameter setting condition and the light intensity condition are 0.5, 0.3 and 0.2, respectively. The specific process of calculating the similarity values of the two pictures according to the weights may be as follows: and acquiring a first comparison value obtained when the mobile phone displacement conditions are compared, wherein the larger the first comparison value is, the more consistent the mobile phone displacement conditions when the two pictures are shot are. And similarly, a second comparison numerical value obtained when the mobile phone parameter setting conditions are compared and a third comparison numerical value obtained when the light intensity conditions are compared are obtained. The larger the second comparison numerical value is, the more consistent the mobile phone parameter setting conditions are when the two pictures are shot; the larger the third comparison numerical value is, the more consistent the light intensity conditions are when the two pictures are shot; and the first comparison numerical value, the second comparison numerical value and the third comparison numerical value are all positioned in the same numerical value interval. The similarity values of the two pictures are equal to the first alignment value × 0.5+ the second alignment value × 0.3+ the third alignment value × 0.2.
The N images obtained by shooting may be sorted in the order of the shooting time from morning to evening. In consideration of the fact that when a user takes a plurality of images in an actual situation, if a false triggering action exists, the false triggering action usually causes adjacent images to be overlapped. That is, when the user takes an image, the probability that the adjacent images are overlapped is large, and therefore, when calculating the similarity value, only the similarity value between the adjacent two images can be calculated. A mode of calculating similarity values between each image and all the rest images in the N images is not needed, so that the calculation efficiency can be improved, and the calculation time and the response time can be shortened. It is of course also possible to calculate the similarity value again for all combinations of two images for which no similarity value has been calculated after calculating the similarity value between two adjacent images.
And deleting the ith image when the similarity value of the adjacent ith image and the (i + 1) th image is greater than or equal to the preset similarity value.
In the embodiment of the application, i is an integer which is greater than or equal to 1 and less than N. The shooting time of the ith image is earlier than that of the (i + 1) th image. The preset similarity value may be set by the user, for example, but not limited to, the preset similarity value may be 90%.
At least one image which is not deleted in the N images is taken as a target image
In the embodiment of the application, in the deduplication processing process, only two adjacent images in the N images need to be compared to a mode of comparing each image in the N images with all the remaining images. The method and the device simplify the comparison process, save the time of reprocessing, and therefore improve the efficiency of reprocessing.
As shown in fig. 3, before the step of receiving a first input of a user to a first photographing control of the photographing preview interface, the photographing method further includes:
step 301, receiving a second input of the user to the second photographing control.
In the embodiment of the application, the second photographing control is located in the first area or the third area of the photographing preview interface. The third area is located in the control display area and, with continued reference to fig. 2, the third area 213 may be located above the preview window 211, but is not so limited. The first photographing control corresponds to a duplicate shooting removal mode of the photographing application program; the second photographing control may be a control corresponding to a specific photographing mode, for example, a photographing mode corresponding to a photographing application program or a general photographing mode. The second input may be, but is not limited to, a long press, a click, a slide, a drag, and the like.
And 302, responding to a second input, and displaying at least one photographing control in a second area of the photographing preview interface.
In the embodiment of the application, the at least one photographing control comprises a first photographing control, and each photographing control corresponds to one photographing mode. As shown in fig. 4, the second area 412 is located around the first area 411. The photographing control displayed in the second region 412 may be located at two sides of the first region 411, but is not limited thereto. Optionally, as shown in fig. 4, the second photographing control may also be a common photographing control 421 located in the first area 411, and the operation of triggering and displaying the first photographing control is completed by using the common photographing control 421 currently displayed in the first area 411. Certainly, a target control can be additionally arranged for completing the operation of triggering and displaying the first photographing control. With continued reference to fig. 4, the second photographing control can be the target control 422 in the third region 413. For example, the display of a first photographing control is triggered by the target control 422.
Step 303, receiving a third input from the user.
The third input here may be a slide, drag, or the like operation, but is not limited thereto. Of course, a slide input or drag input of a different slide or drag direction belongs to a different third input.
Step 304, in response to the third input, displaying the first photographing control in the first area.
Preferably, after the first photographing control is displayed in the first region, the display position of the second photographing control is adjusted, and then the second photographing control and at least one of the photographing controls except the first photographing control are hidden.
Of course, when the first photographing control is displayed in the photographing preview interface of the photographing application program, the second photographing control can be displayed around the first photographing control by long-pressing the first photographing control. Referring to fig. 5, when the first photographing control is a duplicate removal photographing control and the second photographing control is a common photographing control, the long press of the duplicate removal photographing control causes the common photographing control and the photographing control to appear on the left and right sides of the duplicate removal photographing control. And then sliding to the right according to the arrow direction, so that the shooting control is displayed at the middle position of the repeated shooting control and the common shooting control, and the common shooting control and the repeated shooting control can be hidden after that.
In the embodiment of the application, when the duplicate removal processing of the shot image is not needed, the common shooting requirement can be completed by using the second shooting control in the shooting interface. When the image obtained by shooting needs to be subjected to duplicate removal processing, the first shooting control can be called out by operating the second shooting control in the shooting interface. The first photographing control is displayed in the first area of the photographing preview interface, and then dual functions of photographing and duplicate removal are completed through the first photographing control, so that the use of a user is facilitated.
Optionally, receiving a third input from the user includes:
a first swipe input in a first direction by a user is received.
In response to a third input, updating the first photographing control to the first area for display, including:
in response to a first slide input, moving a first photographing control into the first region.
In the embodiment of the present invention, the first direction may be any direction parallel to the screen of the electronic device. As shown in fig. 6, the second photographing control in the first region 611 is the ordinary photographing control 612, and a second input to the second photographing control, for example, a long press operation on the ordinary photographing control 612, displays the first photographing control in the second region 613, where the first photographing control is the de-rephoto photographing control 614. Preferably, the photographing control 615 is also displayed in the second region 613 at the same time as the first photographing control is displayed. The first direction is now the right direction, i.e. the direction of the ordinary shooting control 611 towards the shooting control 615. By sliding to the right, the de-rephotography control 614 is moved to the middle position for display, and the photographing control 615 and the common photographing control 611 are respectively located at two sides of the de-rephotography control 614. Of course, after the de-reprinting control 614 is moved to the middle position and displayed, the photographing control 615 and the normal photographing control 611 may be hidden.
Referring to fig. 7, the second photographing control in the first region 711 is the ordinary photographing control 712, and a second input to the second photographing control, for example, a long press operation on the ordinary photographing control 712, displays a re-photographing removing control 714 and a photographing control 715 in the second region 713, where the re-photographing removing control 714 is the first photographing control. The first direction at this time is the upper left direction, i.e., the direction in which the normal photographing control 712 faces the deduplication photographing control 714. The display positions of the deduplication photographing control 714 and the ordinary photographing control 712 are interchanged by a first slide input in the first direction. Of course, after the display positions of the de-rephoto control 714 and the normal shooting control 712 are interchanged, the shooting control 715 and the normal shooting control 712 may also be hidden.
Referring to fig. 8, the second photographing control in the first area 811 is a normal photographing control 812, and a floating window may be displayed in the second area 813 by a second input to the second photographing control, for example, pressing the normal photographing control 812 for a long time, using a stereoscopic touch technology such as 3D touch. The floating window includes at least two shooting mode options, a deduplication option 814 and a photography option 815. Wherein the reselection item 814 is a first photographing control. The first direction is now the direction of the normal capture control 812 towards the reselection item 814, and the sliding input eventually settles where the reselection item 814 is located. Specifically, after the user presses the normal capture control 812 for a long time, the user slides up and finally stays at the location of the reselection item 814. When the screen is released, the de-rephotography control can be displayed in the first area 811, and the original common shooting control 812 and the floating window are hidden.
Optionally, in response to the first input, controlling the camera to capture an image includes: responding to the first input, updating the shooting mode to a duplicate shooting mode under the condition that the first input is touch input and the touch frequency of the touch input in the preset time length is greater than a preset threshold value, and controlling the camera to shoot the image
In the embodiment of the present invention, if the current shooting mode is the duplicate shooting removal mode, the shooting mode may be kept unchanged. The touch input may be, but is not limited to, a click and a slide. The following description will take a touch input as an example of a click. Each click generates one corresponding image, and under the condition that the number of clicks within the preset time is greater than the preset threshold value, a plurality of images are generated. Wherein the number of generated images is equal to the number of clicks. The preset duration and the preset times can be set as default values, and of course, can also be set by the user through a setting interface. As shown in fig. 9, the user sets the shooting time interval, i.e., the preset time duration, in the setting interface, and the preset time duration is set to 3 seconds (Second, abbreviated as S) in fig. 9, but is not limited thereto.
Optionally, before the step of receiving a first input of the user to the first photographing control of the photographing preview interface, the photographing method further includes:
and receiving a fourth input of the user, wherein the fourth input is used for triggering and adjusting the shooting mode to be the de-duplication shooting mode.
The setting interface is an interface for setting a shooting application in the electronic device, that is, the setting interface is not a page in the shooting application. Referring to fig. 10, the external setting interface can be passed without entering the photographing application.
And in response to a fourth input, updating a control in the first area of the shooting preview interface to be a first shooting control.
In the embodiment of the application, the setting of the repeated shooting removing mode can be started without entering the shooting application program. The operation of the user is convenient.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution main body may be a photographing device, or a control module in the photographing device for executing the loading photographing method. In the embodiment of the present application, a photographing method implemented by a photographing apparatus is taken as an example to describe the photographing method provided in the embodiment of the present application.
As shown in fig. 11, according to still another aspect of the embodiments of the present application, there is provided a photographing apparatus including:
the first receiving module 1101 is configured to receive a first input of a user to a first photographing control in a first area of the photographing preview interface;
a first response module 1102, configured to control the camera to capture an image in response to a first input;
a duplicate removal module 1103, configured to perform duplicate removal processing on the N images and store a target image in the N images when the N images are obtained by shooting with the camera and in a duplicate removal shooting mode; wherein N is an integer greater than 1.
Optionally, the de-weighting module 1103 includes:
the acquisition unit is used for acquiring the image content of each image in the N images and the target parameter corresponding to each image;
the determining unit is used for determining a target image in the N images according to the image content of each image and the target parameter corresponding to each image;
wherein the target parameters include at least one of: shooting environment parameters, shooting parameters and shooting angle information.
Optionally, the determining unit includes:
the comparison subunit is used for respectively determining the similarity values of two adjacent images according to the image content of each image and the target parameter corresponding to each image and the shooting sequence of the images;
a deletion subunit, configured to delete the ith image if the similarity value between the adjacent ith image and the (i + 1) th image is greater than or equal to a preset similarity value; wherein i is an integer of 1 or more and less than N.
And the determining subunit is used for taking at least one of the images which are not deleted in the N images as the target image.
Optionally, the shooting environment parameters include at least one of: light intensity, altitude.
Optionally, the photographing apparatus further comprises:
the second receiving module is used for receiving second input of a user to a second photographing control, and the second photographing control is located in the first area or a third area of the photographing preview interface;
the second response module is used for displaying at least one photographing control in a second area of the photographing preview interface, the at least one photographing control comprises a first photographing control, and each photographing control corresponds to one photographing mode;
the third receiving module is used for receiving a third input of the user;
the third response module is used for responding to a third input and updating the first photographing control to the first area for displaying;
wherein, the first photographing control corresponds to a de-rephotography mode.
Optionally, the third receiving module is specifically configured to receive a first sliding input of a user in a first direction;
the third response module is specifically configured to move the first photographing control into the first area in response to the first sliding input.
Optionally, the first response module is specifically configured to respond to the first input, update the shooting mode to the duplicate shooting mode when the first input is a touch input and the number of times of touch input within a preset time period is greater than a preset threshold, and control the camera to shoot an image.
Optionally, the apparatus further comprises:
a fourth receiving module, configured to receive a fourth input of the user, where the fourth input is used to trigger adjustment of the shooting mode to the de-duplication shooting mode
And the fourth response module is used for responding to a fourth input and updating the control in the first area of the shooting preview interface into the first shooting control.
The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The photographing device in the embodiment of the present application may be a 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 application are not limited specifically.
The photographing device provided by the embodiment of the application can realize each process in the photographing method embodiment, and is not repeated here to avoid repetition.
In the embodiment of the application, after a user inputs a first photographing control of a photographing preview interface to obtain a plurality of images, if a photographing mode is a duplicate removal photographing mode, the obtained plurality of images are subjected to duplicate removal processing, and only target images are stored. In the shooting process, the generated image can be automatically subjected to duplicate removal, so that repeated images shot by a user and the memory space occupied by the images are effectively reduced; meanwhile, the user can conveniently search the images in the photo album, so that the user does not need to clean repeated images in the photo album, and time and labor are saved.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of being executed on the processor, where the program or the instruction is executed by the processor to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio unit, network module, audio output unit, input unit 1204, sensors, display unit 1206, user input unit 1207, interface unit, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1207 is configured to receive a first input of a first photographing control in a first area of the photographing preview interface from a user;
and a processor 1210 for controlling the camera to capture an image in response to the first input.
And a processor 1210 for performing a deduplication process on the N images in a case where the N images are captured by the camera and in a deduplication photographing mode.
And a memory 1209 for storing the target image among the N images.
In the embodiment of the application, after a user inputs a first photographing control of a photographing preview interface to obtain a plurality of images, if a photographing mode is a duplicate removal photographing mode, the obtained plurality of images are subjected to duplicate removal processing, and only target images are stored. In the shooting process, the generated image can be automatically subjected to duplicate removal, so that repeated images shot by a user and the memory space occupied by the images are effectively reduced; meanwhile, the user can conveniently search the images in the photo album, so that the user does not need to clean repeated images in the photo album, and time and labor are saved.
Optionally, the user input unit 1207 is further configured to receive a second input from the user to a second photographing control, where the second photographing control is located in the first area or a third area of the photographing preview interface.
The display unit 1206 is configured to display at least one photographing control in a second area of the shooting preview interface in response to a second input, where the at least one photographing control includes a first photographing control, and each photographing control corresponds to one of the shooting modes.
A user input unit 1207, further configured to receive a third input from the user;
the display unit 1206 is further configured to update the first photographing control to the first area for displaying in response to a third input; wherein, the first photographing control corresponds to a de-rephotography mode.
The user input unit 1207 is further configured to receive a fourth input from the user, where the fourth input is used to trigger the adjustment of the shooting mode to the de-duplication shooting mode.
The display unit 1206 is further configured to update the control in the first area of the shooting preview interface to be the first shooting control.
In the embodiment of the application, when the duplicate removal processing of the shot image is not needed, the common shooting requirement can be completed by using the second shooting control in the shooting interface. When the image obtained by shooting needs to be subjected to duplicate removal processing, the first shooting control can be called out by operating the second shooting control in the shooting interface. The first photographing control is displayed in the first area of the photographing preview interface, and then dual functions of photographing and duplicate removal are completed through the first photographing control, so that the use of a user is facilitated.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the graphics processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210. The video unit, the network module, the interface unit, the audio output unit and the sensor are conventional functional modules of the electronic device, and are not described herein again.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing photographing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present 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 (10)

1. A photographing method, comprising:
receiving a first input of a user to a first photographing control in a first area of a photographing preview interface;
responding to the first input, and controlling a camera to shoot an image;
under the condition that N images are obtained through shooting by the camera and in a duplicate removal shooting mode, carrying out duplicate removal processing on the N images, and storing target images in the N images;
wherein N is an integer greater than 1.
2. The photographing method according to claim 1, wherein the performing of the de-duplication process on the N images comprises:
acquiring the image content of each image in the N images and the target parameter corresponding to each image;
determining a target image in the N images according to the image content of each image and the target parameter corresponding to each image;
wherein the target parameters include at least one of: shooting environment parameters, shooting parameters and shooting angle information.
3. The photographing method according to claim 2, wherein the determining the target image of the N images according to the image content of each image and the target parameter corresponding to each image comprises:
respectively determining similarity values of two adjacent images according to the image content of each image and the target parameter corresponding to each image and the shooting sequence of the images;
deleting the ith image under the condition that the similarity value of the adjacent ith image and the (i + 1) th image is greater than or equal to the preset similarity value; wherein i is an integer of 1 or more and less than N;
and taking at least one of the images which are not deleted in the N images as a target image.
4. The photographing method according to claim 2, wherein the photographing environment parameter includes at least one of: light intensity, altitude.
5. The method of claim 1, wherein prior to receiving a first user input to the first photographing control in the first region of the photograph preview interface, the method further comprises:
receiving a second input of a user to a second photographing control, wherein the second photographing control is located in the first area or a third area of the photographing preview interface;
responding to the second input, and displaying at least one photographing control in a second area of the photographing preview interface, wherein the at least one photographing control comprises the first photographing control, and each photographing control corresponds to a photographing mode;
receiving a third input of the user;
updating the first photographing control to the first area for display in response to the third input;
and the first photographing control corresponds to the duplicate shooting removal mode.
6. The photographing method according to claim 5, wherein the receiving of a third input by the user comprises:
receiving a first sliding input of a first direction of a user;
the updating the first photographing control to the first area for display in response to the third input includes:
moving the first photographing control into the first region in response to the first slide input.
7. The photographing method of claim 1, wherein the controlling a camera to take an image in response to the first input comprises:
and responding to the first input, updating the shooting mode to a duplicate shooting removal mode and controlling the camera to shoot images under the condition that the first input is touch input and the touch frequency of the touch input in a preset time length is greater than a preset threshold value.
8. The method of claim 1, wherein prior to the receiving a first user input to the first photographing control in the first region of the photograph preview interface, the method further comprises:
receiving a fourth input of a user, wherein the fourth input is used for triggering and adjusting a shooting mode to be a duplicate shooting removal mode;
and responding to the fourth input, and updating a control in the first area of the shooting preview interface to be a first shooting control.
9. A photographing apparatus, comprising:
the first receiving module is used for receiving first input of a user on a first photographing control in a first area of the photographing preview interface;
the first response module is used for responding to the first input and controlling the camera to shoot images;
the duplication removing module is used for carrying out duplication removing processing on the N images and storing target images in the N images under the condition that the N images are obtained through shooting of the camera and in the duplication removing shooting mode; wherein N is an integer greater than 1.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1-8.
CN202010478589.1A 2020-05-29 2020-05-29 Photographing method, photographing device and electronic equipment Active CN111669495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010478589.1A CN111669495B (en) 2020-05-29 2020-05-29 Photographing method, photographing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010478589.1A CN111669495B (en) 2020-05-29 2020-05-29 Photographing method, photographing device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111669495A true CN111669495A (en) 2020-09-15
CN111669495B CN111669495B (en) 2021-11-12

Family

ID=72385244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010478589.1A Active CN111669495B (en) 2020-05-29 2020-05-29 Photographing method, photographing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111669495B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486390A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Display control method and device and electronic equipment
CN112650881A (en) * 2020-12-22 2021-04-13 深圳市子瑜杰恩科技有限公司 Monitoring data processing method and device and storage medium
CN114500837A (en) * 2022-01-21 2022-05-13 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114500837B (en) * 2022-01-21 2024-04-05 维沃移动通信有限公司 Shooting method and device and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060188176A1 (en) * 2005-02-18 2006-08-24 Fuji Photo Film Co., Ltd. Apparatus and method for photography, apparatus and method for setting weight, and programs therefor
JP2006260256A (en) * 2005-03-17 2006-09-28 Fuji Photo Film Co Ltd Portable information terminal, image recording device, and file management method and program for portable information terminal
CN104346796A (en) * 2013-07-30 2015-02-11 比亚迪股份有限公司 Image-similarity computing method
CN105005598A (en) * 2015-07-02 2015-10-28 成都亿邻通科技有限公司 Method for processing continuously shot photos
CN105205181A (en) * 2015-10-28 2015-12-30 上海斐讯数据通信技术有限公司 Photo management method and management system
CN105989599A (en) * 2015-02-15 2016-10-05 西安酷派软件科技有限公司 Image processing method and apparatus, and terminal
CN106570110A (en) * 2016-10-25 2017-04-19 北京小米移动软件有限公司 De-overlapping processing method and apparatus of image
CN108270959A (en) * 2016-12-30 2018-07-10 华为技术有限公司 Method, terminal device and the panoramic imaging device of panoramic imagery
CN110442738A (en) * 2019-07-31 2019-11-12 北京明略软件系统有限公司 Picture De-weight method and device, storage medium and electronic device
CN110704712A (en) * 2019-09-20 2020-01-17 武汉大学 Scene picture shooting position range identification method and system based on image retrieval
CN110765874A (en) * 2019-09-20 2020-02-07 深圳云天励飞技术有限公司 Monitoring method based on unmanned aerial vehicle and related product

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060188176A1 (en) * 2005-02-18 2006-08-24 Fuji Photo Film Co., Ltd. Apparatus and method for photography, apparatus and method for setting weight, and programs therefor
JP2006260256A (en) * 2005-03-17 2006-09-28 Fuji Photo Film Co Ltd Portable information terminal, image recording device, and file management method and program for portable information terminal
CN104346796A (en) * 2013-07-30 2015-02-11 比亚迪股份有限公司 Image-similarity computing method
CN105989599A (en) * 2015-02-15 2016-10-05 西安酷派软件科技有限公司 Image processing method and apparatus, and terminal
CN105005598A (en) * 2015-07-02 2015-10-28 成都亿邻通科技有限公司 Method for processing continuously shot photos
CN105205181A (en) * 2015-10-28 2015-12-30 上海斐讯数据通信技术有限公司 Photo management method and management system
CN106570110A (en) * 2016-10-25 2017-04-19 北京小米移动软件有限公司 De-overlapping processing method and apparatus of image
CN108270959A (en) * 2016-12-30 2018-07-10 华为技术有限公司 Method, terminal device and the panoramic imaging device of panoramic imagery
CN110442738A (en) * 2019-07-31 2019-11-12 北京明略软件系统有限公司 Picture De-weight method and device, storage medium and electronic device
CN110704712A (en) * 2019-09-20 2020-01-17 武汉大学 Scene picture shooting position range identification method and system based on image retrieval
CN110765874A (en) * 2019-09-20 2020-02-07 深圳云天励飞技术有限公司 Monitoring method based on unmanned aerial vehicle and related product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄凯奇 等: "《图像物体分类与检测算法综述》", 《计算机学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486390A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Display control method and device and electronic equipment
CN112650881A (en) * 2020-12-22 2021-04-13 深圳市子瑜杰恩科技有限公司 Monitoring data processing method and device and storage medium
CN114500837A (en) * 2022-01-21 2022-05-13 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114500837B (en) * 2022-01-21 2024-04-05 维沃移动通信有限公司 Shooting method and device and electronic equipment

Also Published As

Publication number Publication date
CN111669495B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
EP3057304B1 (en) Method and apparatus for generating image filter
CN112954210B (en) Photographing method and device, electronic equipment and medium
CN109040474B (en) Photo display method, device, terminal and storage medium
CN112954196B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
EP4109878A1 (en) Content operation method and device, terminal, and storage medium
CN112954214B (en) Shooting method, shooting device, electronic equipment and storage medium
CN113794834B (en) Image processing method and device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
WO2023143531A1 (en) Photographing method and apparatus, and electronic device
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112486390A (en) Display control method and device and electronic equipment
CN112738403A (en) Photographing method, photographing apparatus, electronic device, and medium
CN113747072A (en) Shooting processing method and electronic equipment
CN112330728A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
WO2023143529A1 (en) Photographing method and apparatus, and electronic device
CN113794833B (en) Shooting method and device and electronic equipment
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN113271378B (en) Image processing method and device and electronic equipment
CN112367467B (en) Display control method, display control device, electronic apparatus, and medium
CN113127425B (en) Picture processing method and device and electronic equipment
CN112653841B (en) Shooting method and device 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