CN111970435A - Method and device for macro photography - Google Patents

Method and device for macro photography Download PDF

Info

Publication number
CN111970435A
CN111970435A CN202010765712.8A CN202010765712A CN111970435A CN 111970435 A CN111970435 A CN 111970435A CN 202010765712 A CN202010765712 A CN 202010765712A CN 111970435 A CN111970435 A CN 111970435A
Authority
CN
China
Prior art keywords
photographing
target
terminal
user
definition
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
CN202010765712.8A
Other languages
Chinese (zh)
Other versions
CN111970435B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202010765712.8A priority Critical patent/CN111970435B/en
Publication of CN111970435A publication Critical patent/CN111970435A/en
Application granted granted Critical
Publication of CN111970435B publication Critical patent/CN111970435B/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/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for macro photography, wherein the method for macro photography comprises the following steps: after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object; in the process that a user moves a camera of the photographing terminal, whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value is judged in real time; if so, photographing the target photographing object to obtain a first target picture, and storing the first target picture to a specified address; and comparing the definition of the first target picture with that of a second target picture obtained by shooting at the previous time, and reserving the picture with the maximum definition. The method and the device can solve the problem that the user cannot shoot clear photos at a micro distance due to hand trembling and the like, and also save the step that the user manually clicks to shoot or shoots with voice, thereby improving the micro distance shooting experience of the user.

Description

Method and device for macro photography
Technical Field
The invention relates to the technical field of terminal equipment shooting, in particular to a macro shooting method and device.
Background
Macro photography is one of the popular photographing modes at present, because the macro photography can magnify the small details of the photographed object and photograph more microscopic objects even objects invisible to human eyes, so that the macro photography has strong attraction and is increasingly applied to electronic products. However, because the photographing distance of the macro photographing is short, the photographing range is narrow, and the visual field range is small, the picture definition is affected by slight movement compared with the ordinary photographing. We find that the instant clear moment actually appears in the focusing process of the macro/micro photographing, but the clear moment is too quick and difficult to grasp due to the short photographing distance, and even if the clear focusing point is reached, the shaking is caused due to the fact that a photographing command needs to be operated, and the like, so that a user misses a clear image again. In addition, the portable terminal device often does not have fixed conditions for professional camera devices such as a tripod, and for a common photographing mode, even if a user sees that a photographed object is clear in a photographing frame, and clicks a photographing button with a finger or uses voice to photograph, the mode of clicking with the finger or voice may bring about small movement of the handheld device, which is not beneficial to photographing clear pictures. Therefore, for macro photography, even though the terminal device can increase the focusing speed, the shooting button is pointed by a hand or the shooting is performed faster by voice, which is not beneficial to taking clear pictures.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for macro photography to solve the problem that when a user performs macro photography, the user often cannot take a clear photo because of slight hand shake and instantaneous loss of the image definition.
The first technical scheme of the embodiment of the invention is as follows:
a method of macro photography, comprising: after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object; in the process that a user moves a camera of the photographing terminal, whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value is judged in real time; if so, photographing the target photographing object to obtain a first target picture, and storing the first target picture to a specified address; and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture last time, reserving the picture with the maximum definition, and deleting the other residual picture.
The second technical scheme of the embodiment of the invention is as follows:
an apparatus for macro photography, comprising: the prompting module is used for prompting a user to move a camera of the photographing terminal relative to a target photographing object after entering a macro photographing mode and locking the target photographing object; the judging module is used for judging whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold value in real time in the process that a user moves the camera of the photographing terminal; the photographing module is used for photographing the target photographing object to obtain a first target photo when the definition of the target photographing object on the photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value, and storing the first target photo to a designated address; and the comparison module is used for comparing the definition of the first target picture with that of a second target picture obtained by shooting at the previous time, reserving the picture with the maximum definition and deleting the other residual picture.
The third technical scheme of the embodiment of the invention is as follows:
a computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object; in the process that a user moves a camera of the photographing terminal, whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value is judged in real time; if so, photographing the target photographing object to obtain a first target picture, and storing the first target picture to a specified address; and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture last time, reserving the picture with the maximum definition, and deleting the other residual picture.
The fourth technical scheme of the embodiment of the invention is as follows:
a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object; in the process that a user moves a camera of the photographing terminal, whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value is judged in real time; if so, photographing the target photographing object to obtain a first target picture, and storing the first target picture to a specified address; and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture last time, reserving the picture with the maximum definition, and deleting the other residual picture.
The embodiment of the invention has the following beneficial effects:
the invention prompts the user to move the camera of the photographing terminal relative to the target photographing object after entering the macro photographing mode and locking the target photographing object, judges whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to the preset definition threshold value in real time in the process that the user moves the camera of the photographing terminal, photographs the target photographing object to obtain a first target photo if the definition of the target photographing object is greater than or equal to the preset definition threshold value, stores the first target photo to a designated address, compares the definition of the first target photo with the definition of a second target photo obtained by previous photographing, retains one photo with the maximum definition, deletes the other residual photo, solves the problem that the user cannot photograph the clear photo at a micro distance due to hand shake and the like in the prior art, and also saves the step that the user clicks the photographing or voices manually, the clearest photo can be obtained without the need of the user to spend time and effort for screening, and the macro photographing experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart illustrating an implementation of an embodiment of a method for macro photography in one embodiment;
FIG. 2 is a flow diagram illustrating another implementation of an embodiment of a method for macro photography in accordance with an embodiment;
FIG. 3 is a block diagram of an embodiment of an apparatus for macro photography in accordance with an embodiment;
FIG. 4 is a block diagram illustrating an embodiment of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating an implementation of a macro photography method in an embodiment, and referring to fig. 1, the macro photography method in the embodiment includes the following steps:
step S101: after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object.
The mobile terminal with the photographing function can be selected as a mobile terminal with the photographing function such as a mobile phone or a camera, the photographing mode of the photographing terminal can be selected as two modes, one mode is to click to photograph through fingers of a user or to photograph through voice, the photographing mode is a common photographing mode, a clear photographing picture is easily missed due to shaking of hands of the user or slow photographing speed, and a clear photo is difficult to photograph; the other shooting mode is the macro shooting mode of the invention, and the shooting terminal can automatically shoot without using fingers to click to shoot or using voice to shoot when entering the macro shooting mode. The target photographic object is locked in the embodiment of the invention, which means that the whole target photographic object completely enters the photographic frame, and the target photographic object cannot be photographed before the target photographic object is not locked.
The method comprises the steps of prompting a user to move a camera of a photographing terminal relative to a target photographing object, wherein the prompting includes prompting the user to move the camera of the photographing terminal close to or away from the target photographing object instead of translational motion, the user is required to keep relatively stable speed in the moving process, and the photographing terminal can be enabled to keep locking the target photographing object.
Step S102: and in the process that the user moves the camera of the photographing terminal, judging whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold value in real time.
The preset definition threshold is an empirical threshold obtained from the previous definitions of a plurality of photographs. When the definition of the target photographic object on the photographic interface of the photographic terminal is greater than or equal to a preset definition threshold value, the target photographic object forms a clear picture on the photographic interface of the photographic terminal at the moment, and a picture with higher definition can be photographed by photographing at the moment. The sharpness of the photograph can be expressed in, but is not limited to, the gray value of the photograph. In addition, the preset definition threshold set by the user can also be a numerical value with lower definition, and can be set according to actual needs. And when the preset definition threshold is lower, the photographing terminal is equivalently used for continuous photographing operation.
Step S103: and when the definition of the target photographic object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold, photographing the target photographic object to obtain a first target picture, and storing the first target picture to a designated address.
Wherein, when the terminal of shooing detects that the target object of shooing is in when the definition on the terminal interface of shooing is greater than or equal to and predetermines the definition threshold value, the terminal of shooing can shoot the target object of shooing automatically simultaneously, does not need the user to click with own finger and shoot or the pronunciation is shot, has avoided the problem that the user hand trembled for the degree of difficulty greatly reduced that the microspur was shot, and can shoot out the higher photo of definition. In addition, the invention can ensure that the photographing terminal only photographs clearly and stores the photographs clearly, thereby avoiding the user from selecting and storing the photographs per se and greatly improving the photographing experience of the user.
Step S104: and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture of the previous time, and after comparing the two pictures of the first target picture and the second target picture, reserving the picture with the maximum definition, and deleting the other picture which is remained, wherein the reserved picture can be the first target picture or the second target picture. After the operation, the picture obtained by each shooting can be compared with the picture shot at the previous time in definition, and finally, only the clearest picture is left, so that the clearest picture can be screened out, and the storage space of the shooting terminal can not be occupied. In addition, in order to reserve a plurality of clear photos, optionally, photos with definition exceeding the target definition may be reserved, and the gray value corresponding to the target definition is greater than the preset definition threshold.
In this embodiment, optionally, when the definition of the target photo object on the photo interface of the photo terminal is less than or equal to a preset definition threshold, the target photo object is not photographed, and whether the definition of the target photo object on the photo interface of the photo terminal is greater than or equal to the preset definition threshold is continuously determined in real time.
When the definition of the target photographing object on the photographing interface of the photographing terminal is smaller than or equal to the preset definition threshold, it is indicated that the definition of the target photographing object on the photographing interface of the photographing terminal is low, and a user is required to continuously adjust the distance between the camera of the photographing terminal and the target photographing object and improve the stability of the handheld photographing terminal.
As shown in fig. 2, in another embodiment, a macro photography method is provided, and referring to fig. 2, the macro photography method may be applied to a terminal or a server, and this embodiment is exemplified by being applied to a terminal, where the macro photography method specifically includes the following steps:
step 201: the macro photography mode is entered when a signal is detected when the macro photography mode is triggered, for example, a signal when a macro photography button is clicked.
The click of the macro shooting button is only one of the ways of triggering the entry into the macro shooting mode, and the embodiment of the invention does not limit the way of triggering the entry into the macro shooting mode, and the user can enter the macro shooting mode through a voice mode.
Step 202: and after entering the macro photographing mode, prompting a user to lock the target photographing object by a camera of the photographing terminal, and judging whether the target photographing object is completely positioned in the photographing frame.
And prompting the user to lock the camera of the photographing terminal with the target photographing object in a manner including but not limited to voice prompt or subtitle prompt. And judging whether the target photographic object is completely positioned in the photographic frame or not, wherein the judgment means that the outer edge of the target photographic object is completely positioned in the photographic frame and part of the outer edge cannot leak out of the photographic frame.
In this embodiment, optionally, the determining whether the target photo object is already located in the photo frame includes:
firstly, target object confirmation information which requires a user to judge whether the target photographing object is located in the photographing frame is displayed in the photographing frame.
And secondly, prompting a user to confirm the target object confirmation information, and judging whether the user confirms that the target photographing object is completely positioned in the photographing frame.
Thirdly, if the user confirms that the target photographing object is completely positioned in the photographing frame, the user judges that the target photographing object is completely positioned in the photographing frame, otherwise, the user is continuously prompted to movably adjust the camera of the photographing terminal relative to the target photographing object.
Step 203: and if the target photographic object is located in the photographic frame, judging that the target photographic object is locked and recording, otherwise, continuously prompting the user to lock the target photographic object by the camera of the photographic terminal.
The method and the device have the advantages that the locked target photographic objects are recorded, so that only complete target photographic objects can be photographed in subsequent steps, only a part of the target photographic objects in the photographic frame are not photographed, a user does not need to delete incomplete pictures of the target photographic objects, and time of the user is saved.
Step 204: after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object.
The method comprises the steps of prompting a user to move a camera of a photographing terminal relative to a target photographing object, wherein the prompting includes prompting the user to move the camera of the photographing terminal close to or away from the target photographing object instead of translational motion, the user is required to keep relatively stable speed in the moving process, and the photographing terminal can be enabled to keep locking the target photographing object.
Step 205: and in the process that the user moves the camera of the photographing terminal, judging whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold value in real time.
In this embodiment, optionally, in the process that the user moves the camera of the photographing terminal, determining whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold in real time includes:
firstly, in the process that a user moves the photographing terminal, a target gray value of the target photographing object on a photographing interface of the photographing terminal is detected in real time.
Secondly, judging whether the target gray value is larger than or equal to a preset gray threshold value, wherein the picture with the gray value larger than or equal to the preset gray threshold value is a clear picture, and the picture is clearer when the gray value is larger. The preset grayscale threshold is an empirical threshold obtained by summarizing a plurality of previous photographs through calculation.
Thirdly, if the target gray value is greater than or equal to a preset gray threshold, judging that the definition of the target photographic object on the photographic interface of the photographic terminal is greater than or equal to the preset definition threshold, and otherwise, judging that the definition of the target photographic object on the photographic interface of the photographic terminal is less than the preset definition threshold.
Step S206: and when the definition of the target photographic object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold, photographing the target photographic object to obtain a first target picture, and storing the first target picture to a designated address.
Step S207: and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture of the previous time, and after comparing the two pictures of the first target picture and the second target picture, reserving the picture with the maximum definition, and deleting the other picture which is remained, wherein the reserved picture can be the first target picture or the second target picture. After the operation, the picture obtained by each shooting can be compared with the picture shot at the previous time in definition, and finally, only the clearest picture is left, so that the clearest picture can be screened out, and the storage space of the shooting terminal can not be occupied.
In this embodiment, optionally, if the definition of the target photo object on the photo interface of the photo terminal is smaller than a preset definition threshold, the target photo object is not photographed, and whether the definition of the target photo object on the photo interface of the photo terminal is greater than or equal to the preset definition threshold is continuously determined in real time.
In this embodiment, optionally, in the process that the user moves the photographing terminal, the method further includes:
and judging whether the target straight-line distance between the camera of the photographing terminal and the target photographing object is greater than a first distance and smaller than a second distance in real time.
And if the target linear distance between the camera of the photographing terminal and the target photographing object is not more than a first distance and less than a second distance, prompting a user to adjust the target linear distance to be more than the first distance and less than the second distance.
When the target linear distance is smaller than the first distance, the photographing terminal cannot lock all the target photographing objects in the photographing frame; and when the target straight-line distance is greater than the second distance, the photographing terminal cannot clearly photograph all parts of the target photographing object.
In this embodiment, optionally, after entering the macro photography mode and locking the target photographic object, prompting the user to move the camera of the photographing terminal relative to the target photographic object, and then including:
firstly, whether the speed of the user moving the photographing terminal relative to the target photographing object is smaller than or equal to a preset speed threshold value is judged. When the speed of the user moving the photographing terminal relative to the target photographing object is greater than a preset speed threshold, the photographing terminal cannot lock the target photographing object and is difficult to photograph clear photos.
Secondly, if the speed of the photographing terminal moving relative to the target photographing object is smaller than or equal to a preset speed threshold value, entering a step of judging whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to the preset definition threshold value in real time, otherwise prompting the user to adjust the speed of a camera of the photographing terminal moving relative to the target photographing object, namely prompting the user to reduce the speed of the photographing terminal moving relative to the target photographing object.
In this embodiment, optionally, in the process that the user moves the camera of the photographing terminal, the method includes:
firstly, calculating the target moving speed of the camera of the photographing terminal moving relative to the target photographing object in real time.
Secondly, adjusting the target parameters of the photographing aperture, the photographing frame rate and the exposure time of the photographing terminal in real time according to the target moving speed, so that the photo photographed by the photographing terminal after the target parameters are adjusted is a clear photo without smear, or the smear problem caused by the movement of a camera of the photographing terminal is reduced.
The real-time adjustment of the target parameters of the photographing aperture, the photographing frame rate and the exposure time of the photographing terminal is carried out according to the target moving speed, namely the faster the moving speed of the photographing terminal is, the photographing frame rate of the photographing terminal is improved in a matching mode, meanwhile, light supplement is increased (aperture is increased or light supplement is enhanced) for the photographing terminal, and if the photographing terminal deviates in the horizontal direction, the focusing of a frame selection object is tracked by combining a focus tracking technology.
In this embodiment, optionally, after entering the macro photography mode and locking the target photography object, when receiving a signal that the user manually clicks the photography button or takes a picture by voice, the target photography object may be photographed and stored, that is, the macro photography method of the present invention may be switched from the macro photography mode to the general photography mode at any time, and the user may take a picture by clicking the photography mode or taking a picture by voice at any time, so that the user may take a picture at any time when seeing a favorite picture. Optionally, after the user takes a picture by clicking or voice, the photographing terminal automatically returns to the macro photographing mode.
As shown in fig. 3, in another embodiment, a macro photography apparatus 100 is provided, which can be obtained with reference to fig. 4, and specifically includes:
the prompting module 10 is configured to prompt a user to move a camera of the photographing terminal relative to a target photographing object after entering a macro photographing mode and locking the target photographing object.
The mobile terminal with the photographing function can be selected as a mobile terminal with the photographing function such as a mobile phone or a camera, the photographing mode of the photographing terminal can be selected as two modes, one mode is to click to photograph through fingers of a user or to photograph through voice, the photographing mode is a common photographing mode, a clear photographing picture is easily missed due to shaking of hands of the user or slow photographing speed, and a clear photo is difficult to photograph; the other shooting mode is the macro shooting mode of the invention, and the shooting terminal can automatically shoot without using fingers to click to shoot or using voice to shoot when entering the macro shooting mode. The target photographic object is locked in the embodiment of the invention, which means that the whole target photographic object completely enters the photographic frame, and the target photographic object cannot be photographed before the target photographic object is not locked.
The method comprises the steps of prompting a user to move a camera of a photographing terminal relative to a target photographing object, wherein the prompting includes prompting the user to move the camera of the photographing terminal close to or away from the target photographing object instead of translational motion, the user is required to keep relatively stable speed in the moving process, and the photographing terminal can be enabled to keep locking the target photographing object.
The judging module 20 is configured to judge whether the definition of the target photographic object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold in real time in a process that a user moves the camera of the photographing terminal.
The preset definition threshold is an empirical threshold obtained from the previous definitions of a plurality of photographs. When the definition of the target photographic object on the photographic interface of the photographic terminal is greater than or equal to a preset definition threshold value, the target photographic object forms a clear picture on the photographic interface of the photographic terminal at the moment, and a picture with higher definition can be photographed by photographing at the moment. The sharpness of the photograph can be expressed in, but is not limited to, the gray value of the photograph.
And the photographing module 30 is configured to photograph the target photographic object to obtain a first target photo when the definition of the target photographic object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold, and store the first target photo to a designated address.
Wherein, when the terminal of shooing detects that the target object of shooing is in when the definition on the terminal interface of shooing is greater than or equal to and predetermines the definition threshold value, the terminal of shooing can shoot the target object of shooing automatically simultaneously, does not need the user to click with own finger and shoot or the pronunciation is shot, has avoided the problem that the user hand trembled for the degree of difficulty greatly reduced that the microspur was shot, and can shoot out the higher photo of definition. In addition, the invention can ensure that the photographing terminal only photographs clearly and stores the photographs clearly, thereby avoiding the user from selecting and storing the photographs per se and greatly improving the photographing experience of the user. When the definition of the target photographing object on the photographing interface of the photographing terminal is smaller than or equal to the preset definition threshold, it is indicated that the definition of the target photographing object on the photographing interface of the photographing terminal is low, and a user is required to continuously adjust the distance between the camera of the photographing terminal and the target photographing object and improve the stability of the handheld photographing terminal.
A comparing module 40, configured to compare sharpness of the first target photo and a second target photo obtained by previous shooting, after comparing the two first target photos and the second target photo, retain one photo with the highest sharpness, and delete the remaining other photo, where the retained photo may be the first target photo or the second target photo. After the operation, the picture obtained by each shooting can be compared with the picture shot at the previous time in definition, and finally, only the clearest picture is left, so that the clearest picture can be screened out, and the storage space of the shooting terminal can not be occupied.
FIG. 4 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the age identification method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the age identification method. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In another embodiment, a computer device is presented, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
firstly, after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object.
Secondly, in the process that the user moves the camera of the photographing terminal, whether the definition of the target photographing object on the photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value or not is judged in real time.
Thirdly, if the definition of the target photographic object on the photographic interface of the photographic terminal is greater than or equal to a preset definition threshold, photographing the target photographic object and storing the target photographic object to a designated address.
In another embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
firstly, after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object.
Secondly, in the process that the user moves the camera of the photographing terminal, whether the definition of the target photographing object on the photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value or not is judged in real time.
Thirdly, if the definition of the target photographic object on the photographic interface of the photographic terminal is greater than or equal to a preset definition threshold, photographing the target photographic object and storing the target photographic object to a designated address.
The invention prompts the user to move the camera of the photographing terminal relative to the target photographing object after entering the macro photographing mode and locking the target photographing object, judges whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to the preset definition threshold value in real time in the process that the user moves the camera of the photographing terminal, photographs the target photographing object if the definition is greater than or equal to the preset definition threshold value, and stores the photographed image to the designated address, thereby solving the problem that the user cannot photograph a clear picture at a micro distance due to hand shake and the like in the prior art, saving the step of manually clicking for photographing or voice photographing by the user, obtaining the clearest picture without the time screening of the user, solving the problems that the macro lens cannot find the photographing distance well, is not easy to focus, and the picture is not clear due to slight shake caused by actions such as clicking for photographing after focusing and the like, the photographing time is shortened, the macro/micro photographing difficulty is reduced, and the macro photographing experience of a user is improved. In addition, the embodiment of the invention also calculates the speed of the photographing terminal in the moving process through a gyroscope, an accelerometer and the like which are arranged on the photographing terminal so as to match different frame rates, apertures and exposure time, solves the problems of smear and the like caused by the moving process, and obtains better clear images.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of macro photography, comprising:
after entering a macro photographing mode and locking a target photographing object, prompting a user to move a camera of a photographing terminal relative to the target photographing object;
in the process that a user moves a camera of the photographing terminal, whether the definition of the target photographing object on a photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value is judged in real time;
if so, photographing the target photographing object to obtain a first target picture, and storing the first target picture to a specified address;
and comparing the definition of the first target picture with that of a second target picture obtained by taking the picture last time, reserving the picture with the maximum definition, and deleting the other residual picture.
2. The method of macro photography according to claim 1, wherein the entering of the macro photography mode and the locking of the target photographic subject previously comprises:
entering a macro photographing mode when a signal that the macro photographing mode is triggered is detected;
after entering the macro photographing mode, prompting a user to lock the target photographing object by a camera of the photographing terminal, and judging whether the target photographing object is completely positioned in a photographing frame;
if so, judging that the target photographing object is locked and recording the target photographing object, and prompting a user to move a camera of the photographing terminal relative to the target photographing object;
if not, continuing to prompt the user to lock the camera of the photographing terminal to the target photographing object.
3. The method of claim 2, wherein said determining whether the target photographic subject is already fully within the photographic frame comprises:
displaying target object confirmation information in the photographing frame, wherein the target object confirmation information requires a user to judge whether the target photographing object is completely positioned in the photographing frame;
prompting a user to confirm the target object confirmation information, and judging whether the user confirms that the target photographing object is completely positioned in the photographing frame;
if so, judging that the target photographing object is located in the photographing frame, and if not, continuously prompting the user to movably adjust the camera of the photographing terminal relative to the target photographing object.
4. The method for macro photography according to claim 1, wherein during the process of the user moving the photographing terminal, further comprising:
judging whether a target straight-line distance between a camera of the photographing terminal and the target photographing object is greater than a first distance and smaller than a second distance in real time;
if not, prompting the user to adjust the target straight-line distance to be greater than the first distance and smaller than the second distance;
when the target linear distance is smaller than the first distance, the photographing terminal cannot lock all the target photographing objects in the photographing frame; and when the target straight-line distance is greater than the second distance, the photographing terminal cannot clearly photograph all parts of the target photographing object.
5. The method of claim 1, wherein the step of determining whether the definition of the target photographic object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold in real time during the process of moving the camera of the photographing terminal by the user comprises:
detecting a target gray value of the target photographing object on a photographing interface of the photographing terminal in real time in the process that a user moves the photographing terminal;
judging whether the target gray value is greater than or equal to a preset gray threshold value or not, wherein the picture with the gray value greater than or equal to the preset gray threshold value is a clear picture;
and if so, judging that the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to the preset definition threshold.
6. The method according to claim 1, wherein after entering the macro photography mode and locking the target photographic subject, prompting the user to move the camera of the photographing terminal relative to the target photographic subject, and then comprising:
judging whether the speed of the user moving the photographing terminal relative to the target photographing object is less than or equal to a preset speed threshold value or not;
if so, entering a step of judging whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to the preset definition threshold in real time, otherwise prompting a user to adjust the moving speed of the camera of the photographing terminal relative to the target photographing object.
7. The method for macro photography according to claim 1, wherein in the process that the user moves the camera of the photographing terminal, the method comprises:
calculating the target moving speed of the camera of the photographing terminal moving relative to the target photographing object in real time;
and adjusting the target parameters of the photographing aperture, the photographing frame rate and the exposure time of the photographing terminal in real time according to the target moving speed, so that the photo photographed by the photographing terminal after the target parameters are adjusted is a clear photo without smear, or the smear problem caused by the movement of a camera of the photographing terminal is reduced.
8. An apparatus for macro photography, comprising:
the prompting module is used for prompting a user to move a camera of the photographing terminal relative to a target photographing object after entering a macro photographing mode and locking the target photographing object;
the judging module is used for judging whether the definition of the target photographing object on the photographing interface of the photographing terminal is greater than or equal to a preset definition threshold value in real time in the process that a user moves the camera of the photographing terminal;
the photographing module is used for photographing the target photographing object to obtain a first target photo when the definition of the target photographing object on the photographing interface of the photographing terminal is larger than or equal to a preset definition threshold value, and storing the first target photo to a designated address;
and the comparison module is used for comparing the definition of the first target picture with that of a second target picture obtained by shooting at the previous time, reserving the picture with the maximum definition and deleting the other residual picture.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of macro photography according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of macro photography as claimed in any one of claims 1 to 7.
CN202010765712.8A 2020-08-03 2020-08-03 Method and device for macro photography Active CN111970435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010765712.8A CN111970435B (en) 2020-08-03 2020-08-03 Method and device for macro photography

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010765712.8A CN111970435B (en) 2020-08-03 2020-08-03 Method and device for macro photography

Publications (2)

Publication Number Publication Date
CN111970435A true CN111970435A (en) 2020-11-20
CN111970435B CN111970435B (en) 2022-03-11

Family

ID=73363790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010765712.8A Active CN111970435B (en) 2020-08-03 2020-08-03 Method and device for macro photography

Country Status (1)

Country Link
CN (1) CN111970435B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542605A (en) * 2021-07-13 2021-10-22 深圳传音控股股份有限公司 Camera shooting control method, mobile terminal and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580907A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Anti-shake photographing method and device
CN105187719A (en) * 2015-08-21 2015-12-23 深圳市金立通信设备有限公司 Shooting method and terminal
CN105391942A (en) * 2015-12-02 2016-03-09 小米科技有限责任公司 Automatic shooting method and device
CN105467741A (en) * 2015-12-16 2016-04-06 魅族科技(中国)有限公司 Panoramic shooting method and terminal
WO2017020423A1 (en) * 2015-07-31 2017-02-09 宇龙计算机通信科技(深圳)有限公司 Intelligent camera method and intelligent terminal
CN106506967A (en) * 2016-11-30 2017-03-15 努比亚技术有限公司 A kind of image capturing method and device
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
CN106851112A (en) * 2017-03-21 2017-06-13 惠州Tcl移动通信有限公司 The photographic method and system of a kind of mobile terminal
CN107155067A (en) * 2017-07-10 2017-09-12 珠海市魅族科技有限公司 Camera control method and device, terminal and storage medium
CN107734250A (en) * 2017-09-28 2018-02-23 惠州Tcl移动通信有限公司 A kind of photographic method based on dynamic environment, mobile terminal and storage medium
CN208028953U (en) * 2018-03-21 2018-10-30 苏州科技城医院 Tablet filming apparatus
CN110266952A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium
CN110738142A (en) * 2019-09-26 2020-01-31 广州广电卓识智能科技有限公司 method, system and storage medium for self-adaptively improving face image acquisition

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580907A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Anti-shake photographing method and device
WO2017020423A1 (en) * 2015-07-31 2017-02-09 宇龙计算机通信科技(深圳)有限公司 Intelligent camera method and intelligent terminal
CN105187719A (en) * 2015-08-21 2015-12-23 深圳市金立通信设备有限公司 Shooting method and terminal
CN105391942A (en) * 2015-12-02 2016-03-09 小米科技有限责任公司 Automatic shooting method and device
CN105467741A (en) * 2015-12-16 2016-04-06 魅族科技(中国)有限公司 Panoramic shooting method and terminal
CN106506967A (en) * 2016-11-30 2017-03-15 努比亚技术有限公司 A kind of image capturing method and device
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
CN106851112A (en) * 2017-03-21 2017-06-13 惠州Tcl移动通信有限公司 The photographic method and system of a kind of mobile terminal
CN107155067A (en) * 2017-07-10 2017-09-12 珠海市魅族科技有限公司 Camera control method and device, terminal and storage medium
CN107734250A (en) * 2017-09-28 2018-02-23 惠州Tcl移动通信有限公司 A kind of photographic method based on dynamic environment, mobile terminal and storage medium
CN208028953U (en) * 2018-03-21 2018-10-30 苏州科技城医院 Tablet filming apparatus
CN110266952A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium
CN110738142A (en) * 2019-09-26 2020-01-31 广州广电卓识智能科技有限公司 method, system and storage medium for self-adaptively improving face image acquisition

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542605A (en) * 2021-07-13 2021-10-22 深圳传音控股股份有限公司 Camera shooting control method, mobile terminal and storage medium
WO2023284218A1 (en) * 2021-07-13 2023-01-19 深圳传音控股股份有限公司 Photographing control method, and mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111970435B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN107950018B (en) Image generation method and system, and computer readable medium
WO2017008353A1 (en) Capturing method and user terminal
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
CN108632536B (en) Camera control method and device, terminal and storage medium
US9888176B2 (en) Video apparatus and photography method thereof
CN107800951B (en) Electronic device and lens switching method thereof
WO2021169686A1 (en) Photo capture control method and apparatus and computer readable storage medium
CN108600610A (en) Shoot householder method and device
KR100926133B1 (en) Method and apparatus for producing and taking digital contents
CN112887610A (en) Shooting method, shooting device, electronic equipment and storage medium
CN111970435B (en) Method and device for macro photography
KR20080109519A (en) Device and method for image photographing
CN113453022B (en) Image display method and device, television and storage medium
KR20210053121A (en) Method and apparatus for training image processing model, and storage medium
CN108833786B (en) Mode control method and electronic equipment
CN104601883B (en) A kind of method and device of image taking
CN110047115B (en) Star image shooting method and device, computer equipment and storage medium
CN111225144A (en) Video shooting method and device, electronic equipment and computer storage medium
CN114390219B (en) Shooting method, shooting device, electronic equipment and storage medium
CN113507549B (en) Camera, photographing method, terminal and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN113014820A (en) Processing method and device and electronic equipment
CN112911148B (en) Image processing method and device and electronic equipment
CN114339015B (en) Photographing processing method, photographing processing device and storage medium

Legal Events

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