CN108206910B - Image shooting method and device - Google Patents

Image shooting method and device Download PDF

Info

Publication number
CN108206910B
CN108206910B CN201611181301.4A CN201611181301A CN108206910B CN 108206910 B CN108206910 B CN 108206910B CN 201611181301 A CN201611181301 A CN 201611181301A CN 108206910 B CN108206910 B CN 108206910B
Authority
CN
China
Prior art keywords
image
shooting
layout information
framing
shooting device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611181301.4A
Other languages
Chinese (zh)
Other versions
CN108206910A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611181301.4A priority Critical patent/CN108206910B/en
Publication of CN108206910A publication Critical patent/CN108206910A/en
Application granted granted Critical
Publication of CN108206910B publication Critical patent/CN108206910B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Landscapes

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

Abstract

The present disclosure relates to a method and apparatus for image capture. The method comprises the following steps: acquiring layout information of a characteristic image in a viewfinder lens of a shooting device; adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range; and controlling the shooting device to shoot the image in the view finding range. According to the technical scheme, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.

Description

Image shooting method and device
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to a method and a device for image shooting.
Background
At present, the terminal becomes a daily article for people in daily life. The terminal has multiple functions and is convenient for users to use. For example: photographing, positioning, instant messaging, and the like. Wherein, the terminal can shoot images through the configured shooting device. And can manually adjust the shooting parameters of the shooting device, such as: focal length, zoom factor, etc. to capture an image that more closely meets the user's needs.
Disclosure of Invention
The embodiment of the disclosure provides an image shooting method and device. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of image capturing, which may include:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device;
adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range;
and controlling the shooting device to shoot the image in the view finding range.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.
In one embodiment, the acquiring layout information of the feature image in the viewfinder lens of the photographing device includes:
and carrying out face recognition on a framing image corresponding to a framing lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and the background image.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the facial feature images, so that the intelligent shooting of the figure images is facilitated, and the method is suitable for some special users, such as: children, old man etc. carry out the image shooting, further improve user experience.
In one embodiment, the acquiring layout information of the feature image in the viewfinder lens of the photographing device includes:
and carrying out image recognition and edge enhancement processing on a viewfinder image corresponding to the viewfinder lens of the shooting device to obtain layout information of a second main body characteristic image.
Of course, for images with obvious main features, an intelligent framing shooting function can be adopted, and the application range is further widened.
In one embodiment, the layout information includes: size information and position information in the through-view image.
Therefore, the layout information reflects the characteristic images more comprehensively, so that the shooting parameters of the shooting device can be adjusted according to the characteristic images to obtain the adaptive view finding range, the layout of the characteristic images in the shot images is more reasonable, and the user experience is improved.
In one embodiment, the adjusting the shooting parameters of the shooting device according to the layout information includes:
determining a preset adjustment strategy corresponding to the feature image according to the corresponding relation between the stored preset feature image and the preset adjustment strategy;
and executing the preset adjusting strategy according to the layout information, and adjusting the shooting parameters of the shooting device.
Therefore, the corresponding shooting parameters are adjusted according to the preset adjustment strategy, so that the method is relatively quick and the intelligent framing and shooting speed is increased.
In one embodiment, before the obtaining of the layout information of the feature image in the viewfinder lens of the shooting device, the method further includes:
and when the intelligent framing shooting function is determined to be started, acquiring the layout information of the characteristic images in the framing lens of the shooting device.
Of course, only the terminal has the intelligent view-finding shooting function, the intelligent view-finding shooting can be carried out, the application range is further limited, and the flexibility of the terminal shooting and the autonomous selectivity of the user are improved.
In one embodiment, the determining that the smart framing shooting function is turned on includes:
detecting the state of a preset intelligent framing and shooting function switch;
and when the intelligent framing and shooting function switch is in an on state, the intelligent framing and shooting function is determined to be on.
The embodiment determines the state of the intelligent framing and shooting function by setting the intelligent framing and shooting function switch, and is simple and easy to implement.
In one embodiment, the method further comprises:
and when the intelligent framing and shooting function is determined to be closed, controlling the shooting device to shoot images.
Certainly, when the intelligent framing shooting function is not provided, the shooting parameters of the shooting device can be directly shot without being adjusted, so that the shooting function of the terminal is ensured, and the stability of the terminal application is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for image capturing, which may include:
the acquisition module is used for acquiring layout information of the characteristic images in a viewfinder of the shooting device;
the adjusting module is connected with the obtaining module and used for adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range;
and the first control module is connected with the adjusting module and used for controlling the shooting device to shoot the image in the view finding range.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.
In one embodiment, the obtaining module comprises:
the recognition submodule is used for carrying out face recognition on a framing image corresponding to a framing lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and a background image.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the facial feature images, so that the intelligent shooting of the figure images is facilitated, and the method is suitable for some special users, such as: children, old man etc. carry out the image shooting, further improve user experience.
In one embodiment, the obtaining module comprises:
and the processing submodule is used for carrying out image recognition and edge enhancement processing on the framing image corresponding to the framing lens of the shooting device to obtain the layout information of the second main body characteristic image.
Of course, for images with obvious main features, an intelligent framing shooting function can be adopted, and the application range is further widened.
In one embodiment, the adjustment module comprises:
the strategy determining submodule is used for determining a preset adjusting strategy corresponding to the characteristic image according to the corresponding relation between the stored preset characteristic image and the preset adjusting strategy;
and the adjusting submodule is used for executing the preset adjusting strategy according to the layout information and adjusting the shooting parameters of the shooting device.
Therefore, the shooting parameters are adjusted according to the preset adjusting strategy, so that the method is fast and convenient, and the intelligent framing and shooting speed is improved.
In one embodiment, the apparatus further comprises:
and the calling module is used for calling the acquisition module when the intelligent framing shooting function is determined to be started.
Of course, only the terminal has the intelligent view-finding shooting function, the intelligent view-finding shooting can be carried out, the application range is further limited, and the flexibility of the terminal shooting and the autonomous selectivity of the user are improved.
In one embodiment, the calling module comprises:
the detection submodule is used for detecting the state of a preset intelligent framing and shooting function switch;
and the function determining submodule is used for determining that the intelligent framing and shooting function is started when the intelligent framing and shooting function switch is determined to be in an on state.
The embodiment determines the state of the intelligent framing and shooting function by setting the intelligent framing and shooting function switch, and is simple and easy to implement.
In one embodiment, the apparatus further comprises:
and the second control module is used for controlling the shooting device to shoot images when the intelligent framing shooting function is determined to be closed.
Certainly, when the intelligent framing shooting function is not provided, the shooting parameters of the shooting device can be directly shot without being adjusted, so that the shooting function of the terminal is ensured, and the stability of the terminal application is improved.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for image capturing, for a terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device;
adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range;
and controlling the shooting device to shoot the image in the view finding range.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an image capturing method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating an image capture method according to an exemplary embodiment.
FIG. 3 is a diagram illustrating a viewfinder image according to an exemplary embodiment.
FIG. 4 is a schematic diagram of a captured image according to one illustrative embodiment.
Fig. 5 is a flowchart illustrating an image capturing method according to a second exemplary embodiment.
Fig. 6 is a block diagram illustrating an image capturing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of an image capturing apparatus according to a third exemplary embodiment.
Fig. 8 is a block diagram of an image capturing apparatus according to a fourth exemplary embodiment.
Fig. 9 is a block diagram illustrating an apparatus 1200 for image capture according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
According to the technical scheme provided by the embodiment of the disclosure, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is realized, the intelligence of the terminal is improved, and the user experience is also improved.
Fig. 1 is a flowchart illustrating an image capturing method according to an exemplary embodiment, as shown in fig. 1, including the following steps S101 to S103:
in step S101, layout information of a feature image in a finder lens of a photographing device is acquired.
In the embodiment of the disclosure, image shooting can be performed through a shooting device in the terminal, and in the shooting process, a corresponding view image can be acquired through a view lens of the shooting device, and some images in the view image are characteristic images. Here, the feature image includes: a first face feature image, wherein the first face feature image is located at a boundary of the face image and the background image. For example: when a single person is imaged, the face image is a first face characteristic image; when two or more persons form an image, the face image positioned on the most edge is the first face characteristic image.
Alternatively, the feature image includes: a second subject feature image. For example: when the landscape is imaged, a big tree, a flower, a mountain, an animal, or the like is the subject of imaging, and therefore, the second subject feature image may include: images of trees, flowers, mountains, or animals. The method can be applied to the shooting process with obvious main characteristics.
Thus, acquiring layout information of a feature image in a finder lens of a photographing device includes: and carrying out face recognition on a viewfinder image corresponding to a viewfinder lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and the background image.
Or, the acquiring layout information of the feature image in the viewfinder lens of the photographing device includes: and carrying out image recognition and edge enhancement processing on a viewfinder image corresponding to the viewfinder lens of the shooting device to obtain layout information of the second main body characteristic image.
In the embodiment of the present disclosure, the layout information includes: size information and position information in the through-view image. For example: if the feature image is a first face feature image, the layout information includes: size information of the face image, and position information of the first face feature image in the through-view image. Or, the feature image is a second main body feature image, specifically a dog image, and then the layout information includes: size information of the dog image, and position information of the dog image in the through-view image.
In step S102, the shooting parameters of the shooting device are adjusted according to the layout information, and the corresponding viewing range is obtained.
In the embodiment of the present disclosure, a corresponding relationship between a preset feature image and a preset adjustment policy may be pre-stored, so that the preset adjustment policy corresponding to the feature image is determined according to the stored corresponding relationship between the preset feature image and the preset adjustment policy; and executing a preset adjusting strategy according to the layout information, and adjusting the shooting parameters of the shooting device.
For example: and aiming at the first face characteristic image, the corresponding preset adjustment strategy is expanded outwards by taking the position corresponding to the position information in the layout information as a starting point, and the expanded distance is five times of the width of the face corresponding to the size information in the layout information. Thus, after the preset adjustment strategy is determined, the preset adjustment strategy is executed according to the layout information, the shooting parameters of the shooting device are adjusted, and the corresponding view range is obtained.
Alternatively, for the second subject feature image, for example: and the preset adjustment strategy corresponding to the tree characteristic image is expanded outwards by taking the position corresponding to the position information in the layout information as a starting point, and the expanded distance is 3 times of the width of the tree corresponding to the size information in the layout information. Or, the preset adjustment strategy corresponding to the mountain stone characteristic image is expanded outwards by taking the position corresponding to the position information in the layout information as a starting point, and the expanded distance is 1.5 times of the width of the tree corresponding to the size information in the layout information. Thus, after the preset adjustment strategy is determined, the preset adjustment strategy is executed according to the layout information, the shooting parameters of the shooting device are adjusted, and the corresponding view range is obtained.
Therefore, the corresponding shooting parameters are adjusted according to the preset adjustment strategy, so that the method is relatively quick and the intelligent framing and shooting speed is increased.
Of course, the function of intelligent framing and shooting may be only for imaging a person, and the position corresponding to the position information in the layout information may be directly used as a starting point to be expanded outward, where the expanded distance is n times of the width of the face corresponding to the size information in the layout information, and n may be determined according to the application scene. 5. 6, or 7, etc. Thus, the viewing range determines that the shooting parameters of the corresponding shooting device can be adjusted, for example: the focal length, zoom factor, etc. may be determined. That is, after the shooting parameters of the shooting device are adjusted, the obtained viewing range matches the viewing range determined from the layout information.
In the above embodiments, the preset adjustment policy includes width adjustment, and may further include height adjustment, for example: the preset adjustment strategy is to take the position corresponding to the position information in the layout information as a starting point and expand the position outwards, and the expanded distance is 3 times of the width of the feature image corresponding to the size information in the layout information, 1.5 times of the height of the feature image, and the like, and the specific steps are not listed in a row.
In step S103, the imaging device is controlled to capture an image within the finder range.
After the corresponding viewing range is obtained, the shooting device can be controlled to shoot the image in the viewing range. For example, the shooting device is triggered, and the shooting device shoots according to the adjusted shooting parameters, so that an image in the framing range is obtained.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.
In another embodiment of the present disclosure, an application scenario may be defined in one step, that is, only when the intelligent framing shooting function is turned on, the shooting parameters of the shooting device are adjusted according to the layout information of the feature image, so that the intelligent framing shooting function of the terminal is realized. Therefore, before acquiring the layout information of the feature image in the viewfinder lens of the shooting device, the method further comprises the following steps: and when the intelligent framing shooting function is determined to be started, acquiring the layout information of the characteristic images in the framing lens of the shooting device.
And it is determined that the opening process of the intelligent framing shooting function can be various, for example: through the intelligent shooting function switch that finds a view of predetermineeing, include: detecting the state of a preset intelligent framing and shooting function switch; and when the intelligent framing and shooting function switch is in an on state, the intelligent framing and shooting function is determined to be on. The embodiment determines the state of the intelligent framing and shooting function by setting the intelligent framing and shooting function switch, and is simple and easy to implement.
Of course, in another embodiment of the present disclosure, when it is determined that the smart view shooting function is turned off, the shooting device is controlled to perform image shooting. Therefore, when the intelligent framing shooting function is not available, the shooting parameters of the shooting device can be directly shot without being adjusted, the terminal shooting function is ensured, and the stability of terminal application is improved.
The following operational flows are grouped into specific embodiments to illustrate the methods provided by the embodiments of the present disclosure.
In a first embodiment, the feature image is a first face feature image, where the first face feature image is located at a boundary between the face image and the background image.
Fig. 2 is a flowchart illustrating an image capturing method according to an exemplary embodiment, as shown in fig. 2, including the following steps S201-S207:
in step S201, the state of a preset smart framing shooting function switch is detected.
In step S202, it is determined whether the smart view shooting function switch is in an on state? If yes, go to step S203, otherwise go to step 207.
In step S203, face recognition is performed on a through image corresponding to a through lens of the photographing device, and layout information of at least one first face feature image is obtained.
For example: when a single person is imaged, only the layout information of one first face characteristic image needs to be acquired.
When two or more persons are imaged, the layout information of the leftmost one of the first face feature images and the layout information of the rightmost one of the first face feature images are acquired.
FIG. 3 is a diagram illustrating a viewfinder image according to an exemplary embodiment. As shown in fig. 3, the wire frame is a first face feature image, and the layout information of the first face feature image is acquired.
In step S204, a first preset adjustment policy corresponding to the first facial feature image is determined according to the stored correspondence between the preset feature image and the preset adjustment policy.
For example: the first preset adjustment strategy includes: and taking the position corresponding to the position information in the layout information as a starting point, and expanding outwards, wherein the expanded distance is 5 times of the width of the first face characteristic image corresponding to the size information in the layout information, and the height of the first face characteristic image is 1.5 times.
In step S205, according to the layout information, a first preset adjustment strategy is executed to adjust the shooting parameters of the shooting device, and a corresponding view range is obtained.
In step S206, the imaging device is controlled to capture an image within the finder range. The flow ends.
The focus of the shooting device, the zoom factor and other shooting parameters are adjusted, so that the shooting device is triggered to shoot images.
FIG. 4 is a schematic diagram of a captured image according to one illustrative embodiment. As shown in fig. 4, after the shooting parameters of the shooting device are adjusted, the viewing range is changed, and the image of the person is clearer.
In step S207, the photographing device is controlled to perform image photographing. The flow ends.
Here, the smart view shooting function is not used, and thus the shooting device directly performs image shooting using existing shooting parameters. The captured image at this time will be as shown in fig. 3.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved. Certainly, when the intelligent framing shooting function is not provided, the shooting parameters of the shooting device can be directly shot without being adjusted, so that the shooting function of the terminal is ensured, and the stability of the terminal application is improved.
In the second embodiment, the feature image is a second main body feature image, specifically, a plant feature image.
Fig. 5 is a flowchart illustrating an image capturing method according to a second exemplary embodiment, as shown in fig. 5, including the following steps S301 to S304:
in step S301, image recognition and edge enhancement processing are performed on a finder image corresponding to a finder lens of the photographing device, and layout information of the second subject feature image is obtained.
The embodiment can be applied to scenes with obvious subjects. Accordingly, the through image is subjected to image recognition and edge enhancement processing, and layout information of the second subject feature image can be obtained.
In step S302, a second preset adjustment policy corresponding to the second main body feature image is determined according to the corresponding relationship between the stored preset feature image and the preset adjustment policy.
For example: the second preset adjustment strategy includes: and taking the position corresponding to the position information in the layout information as a starting point, and expanding outwards, wherein the expanded distance is 4 times of the width of the second main body characteristic image corresponding to the size information in the layout information. I.e. spread over a distance of 4 times the width of the plant image.
In step S303, according to the layout information, a second preset adjustment strategy is executed to adjust the shooting parameters of the shooting device, so as to obtain a corresponding viewing range.
The extended distance is 4 times of the width of the plant image, so that the method is realized by adjusting shooting parameters such as focal length, zoom times and the like.
In step S304, the imaging device is controlled to capture an image within the finder range.
Therefore, in the implementation, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is realized, the intelligence of the terminal is improved, and the user experience is also improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 6 is a block diagram illustrating an image photographing apparatus that may be implemented as part or all of an electronic device by software, hardware, or a combination of both, according to an exemplary embodiment. As shown in fig. 6, the image photographing apparatus includes: an acquisition module 410, an adjustment module 420, and a first control module 430. Wherein the content of the first and second substances,
an acquisition module 410 configured to acquire layout information of a feature image in a viewfinder lens of a photographing device.
And an adjusting module 420, connected to the obtaining module 410, configured to adjust the shooting parameters of the shooting device according to the layout information, and obtain the corresponding viewing range.
And a first control module 430 connected to the adjustment module 420 and configured to control the camera to capture an image within the viewing range.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved.
In one embodiment of the present disclosure, the obtaining module 410 includes: and the recognition sub-module is configured to perform face recognition on a framing image corresponding to a framing lens of the shooting device and obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and the background image.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the facial feature images, so that the intelligent shooting of the figure images is facilitated, and the method is suitable for some special users, such as: children, old man etc. carry out the image shooting, further improve user experience.
In one embodiment of the present disclosure, the obtaining module 410 includes: and the processing submodule is configured to perform image recognition and edge enhancement processing on a viewfinder image corresponding to the viewfinder lens of the shooting device to obtain layout information of the second main body characteristic image.
Of course, for images with obvious main features, an intelligent framing shooting function can be adopted, and the application range is further widened.
In one embodiment of the present disclosure, the adjusting module 420 includes:
and the strategy determining sub-module is configured to determine a preset adjusting strategy corresponding to the characteristic image according to the corresponding relation between the stored preset characteristic image and the preset adjusting strategy.
And the adjusting submodule is configured to execute a preset adjusting strategy according to the layout information and adjust the shooting parameters of the shooting device.
Therefore, the shooting parameters are adjusted according to the preset adjusting strategy, so that the method is fast and convenient, and the intelligent framing and shooting speed is improved.
In one embodiment of the present disclosure, the apparatus further comprises: and the calling module is configured to call the acquiring module when the intelligent framing shooting function is determined to be started. Of course, only the terminal has the intelligent view-finding shooting function, the intelligent view-finding shooting can be carried out, the application range is further limited, and the flexibility of the terminal shooting and the autonomous selectivity of the user are improved.
In one embodiment of the present disclosure, the calling module includes:
and the detection submodule is configured to detect the state of a preset intelligent framing and shooting function switch.
And the function determination submodule is configured to determine that the intelligent framing and shooting function is started when the intelligent framing and shooting function switch is determined to be in an on state.
The embodiment determines the state of the intelligent framing and shooting function by setting the intelligent framing and shooting function switch, and is simple and easy to implement.
In one embodiment of the present disclosure, the apparatus further comprises: and the second control module is configured to control the shooting device to shoot the image when the intelligent framing shooting function is determined to be closed. Certainly, when the intelligent framing shooting function is not provided, the shooting parameters of the shooting device can be directly shot without being adjusted, so that the shooting function of the terminal is ensured, and the stability of the terminal application is improved.
The following illustrates an apparatus provided by an embodiment of the present disclosure.
In a third embodiment, in the present embodiment, the feature image is a first face feature image, where the first face feature image is located at a boundary between the face image and the background image.
Fig. 7 is a block diagram of an image photographing apparatus according to a third exemplary embodiment, as shown in fig. 7, the apparatus including: an acquisition module 410, an adjustment module 420, and a first control module 430. The method can also comprise the following steps: a calling module 440 and a second control module 450. Wherein, the obtaining module 410 includes: an identification submodule 411; the adjusting module 420 includes: a policy determination sub-module 421 and an adjustment sub-module 422; and the calling module 440 includes: a detection sub-module 441 and a function determination sub-module 442.
The detection sub-module 441 in the calling module 440 detects a state of a preset intelligent framing and shooting function switch, and when the intelligent framing and shooting function switch is in an on state, the function determination sub-module 442 determines that the intelligent framing and shooting function is on, so that the calling module 440 can call the obtaining module 410.
In this way, the identification sub-module 411 of the acquisition module 410 performs face identification on the viewfinder image corresponding to the viewfinder lens of the shooting device, and obtains the layout information of at least one first face feature image. Thus, the policy determining submodule 421 in the adjusting module 420 may determine the first preset adjusting policy corresponding to the first facial feature image according to the corresponding relationship between the stored preset feature image and the preset adjusting policy. The adjusting sub-module 422 may execute a first preset adjusting strategy according to the layout information, and adjust the shooting parameters of the shooting device to obtain a corresponding viewing range. In this way, the first control module 430 controls the photographing device to photograph an image within the viewing range.
Of course, when the detection sub-module 411 in the calling module 440 determines that the smart view shooting function switch is in the off state, the second control module 450 can directly control the shooting device to shoot images.
Therefore, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is achieved, the intelligence of the terminal is improved, and the user experience is also improved. Certainly, when the intelligent framing shooting function is not provided, the shooting parameters of the shooting device can be directly shot without being adjusted, so that the shooting function of the terminal is ensured, and the stability of the terminal application is improved.
In a fifth embodiment, in the present embodiment, the feature image is a second main body feature image.
Fig. 8 is a block diagram of an image capturing apparatus according to a fourth exemplary embodiment, as shown in fig. 8, including: an obtaining module 410, an adjusting module 420 and a first control module 430, wherein the obtaining module 410 includes: processing sub-module 412, and adjusting module 420 includes: a policy determination sub-module 421 and an adjustment sub-module 422.
The processing sub-module 412 in the obtaining module 410 performs image recognition and edge enhancement processing on the viewfinder image corresponding to the viewfinder lens of the shooting device, and obtains layout information of the second main body feature image.
In this way, the policy determining submodule 421 in the adjusting module 420 determines the second preset adjusting policy corresponding to the second main body feature image according to the corresponding relationship between the stored preset feature image and the preset adjusting policy. The adjusting sub-module 422 may execute a second preset adjusting strategy according to the layout information, and adjust the shooting parameters of the shooting device to obtain a corresponding viewing range.
Thus, the first control module 430 may control the photographing device to photograph an image within the viewing range.
Therefore, in the implementation, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is realized, the intelligence of the terminal is improved, and the user experience is also improved.
The embodiment of the present disclosure provides an image capturing device for a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device;
adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range;
and controlling the shooting device to shoot the image in the view finding range.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, the shooting parameters of the shooting device can be adjusted according to the layout information of the characteristic images, the intelligent framing and shooting function of the terminal is realized, the intelligence of the terminal is improved, and the user experience is also improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating an apparatus 1200 for image capturing, which is suitable for a terminal device and may be mounted on a vehicle to form an in-vehicle terminal, according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the apparatus 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect a duration point and pressure related to the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1200 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the apparatus 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, an orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 1216 is configured to facilitate communications between apparatus 1200 and other terminals in a wired or wireless manner. The apparatus 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of an apparatus 1200, enable the apparatus 1200 to perform the method shown in fig. 1, the method comprising:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device;
adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range;
and controlling the shooting device to shoot the image in the view finding range.
The acquiring of the layout information of the feature image in the viewfinder lens of the shooting device includes:
and carrying out face recognition on a framing image corresponding to a framing lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and the background image.
The acquiring of the layout information of the feature image in the viewfinder lens of the shooting device includes:
and carrying out image recognition and edge enhancement processing on a viewfinder image corresponding to the viewfinder lens of the shooting device to obtain layout information of a second main body characteristic image.
The layout information includes: size information and position information in the through-view image.
The adjusting the shooting parameters of the shooting device according to the layout information comprises:
determining a preset adjustment strategy corresponding to the feature image according to the corresponding relation between the stored preset feature image and the preset adjustment strategy;
and executing the preset adjusting strategy according to the layout information, and adjusting the shooting parameters of the shooting device.
Before the obtaining of the layout information of the characteristic image in the viewfinder lens of the shooting device, the method further comprises the following steps:
and when the intelligent framing shooting function is determined to be started, acquiring the layout information of the characteristic images in the framing lens of the shooting device.
The determining that the intelligent framing and shooting function is opened comprises:
detecting the state of a preset intelligent framing and shooting function switch;
and when the intelligent framing and shooting function switch is in an on state, the intelligent framing and shooting function is determined to be on.
The method further comprises the following steps:
and when the intelligent framing and shooting function is determined to be closed, controlling the shooting device to shoot images.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A method of image capture, comprising:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device, wherein the layout information comprises size information and position information in the viewfinder image;
adjusting shooting parameters of the shooting device according to the layout information to obtain a corresponding view range, so that the view range is expanded by taking the position information included in the layout information as a starting point, the expanded distance of the view range and the size of the feature image indicated by the size information included in the layout information meet preset multiples, and the preset multiples corresponding to different feature images are different;
and controlling the shooting device to shoot the image in the view finding range.
2. The method of claim 1, wherein the obtaining layout information of the feature image in the viewfinder lens of the photographing device comprises:
and carrying out face recognition on a framing image corresponding to a framing lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and the background image.
3. The method of claim 1, wherein the obtaining layout information of the feature image in the viewfinder lens of the photographing device comprises:
and carrying out image recognition and edge enhancement processing on a viewfinder image corresponding to the viewfinder lens of the shooting device to obtain layout information of a second main body characteristic image.
4. The method of claim 1, wherein before the obtaining layout information of the feature image in the viewfinder lens of the camera, further comprising:
and when the intelligent framing shooting function is determined to be started, acquiring the layout information of the characteristic images in the framing lens of the shooting device.
5. The method of claim 4, wherein the determining that the smart-view camera function is enabled comprises:
detecting the state of a preset intelligent framing and shooting function switch;
and when the intelligent framing and shooting function switch is in an on state, the intelligent framing and shooting function is determined to be on.
6. The method of claim 4, wherein the method further comprises:
and when the intelligent framing and shooting function is determined to be closed, controlling the shooting device to shoot images.
7. An apparatus for image capture, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring layout information of a characteristic image in a viewfinder lens of the shooting device, and the layout information comprises size information and position information in the viewfinder image;
the adjusting module is connected with the obtaining module and used for adjusting the shooting parameters of the shooting device according to the layout information to obtain a corresponding view finding range, so that the view finding range is expanded by taking the position information included in the layout information as a starting point, the expanded distance of the view finding range and the size of the feature image indicated by the size information included in the layout information meet preset multiples, and the preset multiples corresponding to different feature images are different;
and the first control module is connected with the adjusting module and used for controlling the shooting device to shoot the image in the view finding range.
8. The apparatus of claim 7, wherein the acquisition module comprises:
the recognition submodule is used for carrying out face recognition on a framing image corresponding to a framing lens of the shooting device to obtain layout information of at least one first face characteristic image, wherein the first face characteristic image is positioned at the boundary of the face image and a background image.
9. The apparatus of claim 7, wherein the acquisition module comprises:
and the processing submodule is used for carrying out image recognition and edge enhancement processing on the framing image corresponding to the framing lens of the shooting device to obtain the layout information of the second main body characteristic image.
10. The apparatus of claim 7, wherein the adjustment module comprises:
the strategy determining submodule is used for determining a preset adjusting strategy corresponding to the characteristic image according to the corresponding relation between the stored preset characteristic image and the preset adjusting strategy;
and the adjusting submodule is used for executing the preset adjusting strategy according to the layout information and adjusting the shooting parameters of the shooting device.
11. The apparatus of claim 7, wherein the apparatus further comprises:
and the calling module is used for calling the acquisition module when the intelligent framing shooting function is determined to be started.
12. The apparatus of claim 11, wherein the calling module comprises:
the detection submodule is used for detecting the state of a preset intelligent framing and shooting function switch;
and the function determining submodule is used for determining that the intelligent framing and shooting function is started when the intelligent framing and shooting function switch is determined to be in an on state.
13. The apparatus of claim 11, wherein the apparatus further comprises:
and the second control module is used for controlling the shooting device to shoot images when the intelligent framing shooting function is determined to be closed.
14. An apparatus for image capturing, for use in a terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring layout information of a characteristic image in a viewfinder lens of a shooting device, wherein the layout information comprises size information and position information in the viewfinder image;
adjusting shooting parameters of the shooting device according to the layout information to obtain a corresponding view range, so that the view range is expanded by taking the position information included in the layout information as a starting point, the expanded distance of the view range and the size of the feature image indicated by the size information included in the layout information meet preset multiples, and the preset multiples corresponding to different feature images are different;
and controlling the shooting device to shoot the image in the view finding range.
15. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN201611181301.4A 2016-12-20 2016-12-20 Image shooting method and device Active CN108206910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611181301.4A CN108206910B (en) 2016-12-20 2016-12-20 Image shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611181301.4A CN108206910B (en) 2016-12-20 2016-12-20 Image shooting method and device

Publications (2)

Publication Number Publication Date
CN108206910A CN108206910A (en) 2018-06-26
CN108206910B true CN108206910B (en) 2021-04-06

Family

ID=62601878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611181301.4A Active CN108206910B (en) 2016-12-20 2016-12-20 Image shooting method and device

Country Status (1)

Country Link
CN (1) CN108206910B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339022B (en) * 2020-09-30 2024-02-02 北京小米移动软件有限公司 Camera shooting parameter determining method and neural network model training method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141565A (en) * 2006-09-04 2008-03-12 索尼株式会社 Image processing apparatus and image processing method, computer program, and imaging apparatus
CN101637015A (en) * 2007-08-03 2010-01-27 学校法人庆应义墪 Composition analysis method, image device having composition analysis function, composition analysis program, and computer-readable recording medium
CN103620647A (en) * 2011-07-08 2014-03-05 株式会社尼康 Image classification method
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN105323491A (en) * 2015-11-27 2016-02-10 小米科技有限责任公司 Image shooting method and device
CN105357436A (en) * 2015-11-03 2016-02-24 广东欧珀移动通信有限公司 Image cropping method and system for image shooting

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5206095B2 (en) * 2008-04-25 2013-06-12 ソニー株式会社 Composition determination apparatus, composition determination method, and program
KR20130071794A (en) * 2011-12-21 2013-07-01 삼성전자주식회사 Digital photographing apparatus splay apparatus and control method thereof
CN104349031B (en) * 2013-07-31 2018-05-18 华为技术有限公司 A kind of adjustment viewfinder range method of photographic device and camera system, operating device
CN106303197B (en) * 2015-05-30 2019-07-23 深圳富泰宏精密工业有限公司 Camera system, device and method
CN106131418A (en) * 2016-07-19 2016-11-16 腾讯科技(深圳)有限公司 A kind of composition control method, device and photographing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141565A (en) * 2006-09-04 2008-03-12 索尼株式会社 Image processing apparatus and image processing method, computer program, and imaging apparatus
CN101637015A (en) * 2007-08-03 2010-01-27 学校法人庆应义墪 Composition analysis method, image device having composition analysis function, composition analysis program, and computer-readable recording medium
CN103620647A (en) * 2011-07-08 2014-03-05 株式会社尼康 Image classification method
CN104243787A (en) * 2013-06-06 2014-12-24 华为技术有限公司 Photographing method and equipment, and photo management method
CN105357436A (en) * 2015-11-03 2016-02-24 广东欧珀移动通信有限公司 Image cropping method and system for image shooting
CN105323491A (en) * 2015-11-27 2016-02-10 小米科技有限责任公司 Image shooting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《刑侦日盲紫外折衍射混合变焦光学系统设计》;朱海宇 等;《激光技术》;20150430;第242-246页 *

Also Published As

Publication number Publication date
CN108206910A (en) 2018-06-26

Similar Documents

Publication Publication Date Title
US10674088B2 (en) Method and device for acquiring image, terminal and computer-readable storage medium
US10284773B2 (en) Method and apparatus for preventing photograph from being shielded
CN106210496B (en) Photo shooting method and device
CN108462833B (en) Photographing method, photographing device and computer-readable storage medium
CN107426502B (en) Shooting method and device, electronic equipment and storage medium
KR101906748B1 (en) Iris image acquisition method and apparatus, and iris recognition device
US10230891B2 (en) Method, device and medium of photography prompts
CN107463052B (en) Shooting exposure method and device
CN107015648B (en) Picture processing method and device
CN111385456A (en) Photographing preview method and device and storage medium
CN112330570A (en) Image processing method, image processing device, electronic equipment and storage medium
CN110995993B (en) Star track video shooting method, star track video shooting device and storage medium
US20170244891A1 (en) Method for automatically capturing photograph, electronic device and medium
CN112004020B (en) Image processing method, image processing device, electronic equipment and storage medium
CN107809588B (en) Monitoring method and device
CN111355879B (en) Image acquisition method and device containing special effect pattern and electronic equipment
CN110913120B (en) Image shooting method and device, electronic equipment and storage medium
CN108206910B (en) Image shooting method and device
CN106775246B (en) Screen brightness adjusting method and device
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN111586296B (en) Image capturing method, image capturing apparatus, and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN108769513B (en) Camera photographing method and device
CN109862252B (en) Image shooting method and device
CN106713748B (en) Method and device for sending pictures

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