CN115812308A - Shooting control method and device, intelligent equipment and computer readable storage medium - Google Patents

Shooting control method and device, intelligent equipment and computer readable storage medium Download PDF

Info

Publication number
CN115812308A
CN115812308A CN202080102674.6A CN202080102674A CN115812308A CN 115812308 A CN115812308 A CN 115812308A CN 202080102674 A CN202080102674 A CN 202080102674A CN 115812308 A CN115812308 A CN 115812308A
Authority
CN
China
Prior art keywords
shooting
preview image
target
complete
target part
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.)
Pending
Application number
CN202080102674.6A
Other languages
Chinese (zh)
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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Publication of CN115812308A publication Critical patent/CN115812308A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The embodiment of the application discloses a shooting control method, a shooting control device, intelligent equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a preview image acquired by shooting equipment; identifying a photographic object in the preview image; and detecting whether the target part of the shot object is complete or not, and processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete. According to the embodiment of the application, whether the target part of the shot object in the preview image is complete or not can be intelligently detected, and then the shot object is automatically and correspondingly processed, so that the target part of the shot object in the preview image is complete, the size of the shot object is proper, and the presentation effect of the preview image is integrally improved.

Description

Shooting control method and device, intelligent equipment and computer readable storage medium Technical Field
The present application relates to the field of terminal technologies, and in particular, to a shooting control method and apparatus, an intelligent device, and a computer-readable storage medium.
Background
With the development of scientific technology, people have higher and higher requirements on shooting equipment. At present, most cameras in the shooting equipment in the market are fixed field angles or a combination of a plurality of fixed field angles, flexible picture composition of users in actual life cannot be supported, the size and the integrity of a shooting object can be controlled only by manually switching different field angle cameras or manually zooming in the shooting process, and the purpose of intelligent picture composition is achieved. Therefore, how to intelligently control the shooting device to adjust the size and/or integrity of the shot object is a hot spot of current research.
The above description is only for illustrating the technical problems to be solved by the present application, and does not represent that the above description is the prior art.
Disclosure of Invention
The embodiment of the application provides a shooting control method, a shooting control device, intelligent equipment and a computer-readable storage medium, which can intelligently detect whether a target part of a shot object in a preview image is complete or not, and further automatically perform corresponding processing on the shot object, so that the target part of the shot object in the preview image is complete, the size of the shot object is appropriate, and the presenting effect of the preview image is integrally improved.
In a first aspect, an embodiment of the present application provides a shooting control method, including:
acquiring a preview image acquired by shooting equipment;
recognizing a photographic object in the preview image;
and detecting whether the target part of the shot object is complete or not, and processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, the shooting equipment can intelligently detect whether the target part of the shot object in the preview image is complete or not, and further automatically and correspondingly process the shot object, so that the target part of the shot object in the preview image is complete, the size of the shot object is proper, and the presenting effect of the preview image is integrally improved.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image includes:
and if the target part of the shot object is detected to be incomplete, controlling the shooting equipment to adjust the shooting mode to a first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, if the target part is detected to be incomplete, the shooting equipment is controlled to automatically adjust the shooting mode to the first shooting mode according to the preset rule so as to increase the shooting visual angle, so that the target part of the shooting object in the preview image can be completely presented, and the situations of inconvenience in manual operation and low efficiency of a user are avoided.
In an optional embodiment, the controlling the photographing apparatus to enter a first photographing mode to complete a target portion of the photographic subject in the preview image includes:
determining shooting parameters to be switched according to the distance between the incomplete target part of the shot object and the edge of the preview image and/or the predicted complete size corresponding to the incomplete target part, wherein the shooting parameters to be switched comprise the size and/or direction of an angle of view;
and controlling the shooting equipment to adjust a shooting mode to a first shooting mode, and adjusting the shooting parameters of the shooting equipment to the shooting parameters to be switched in the first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, when the target part of the shot object is detected to be incomplete, the distance between the incomplete target part of the shot object and the edge of the preview image and the predicted complete size corresponding to the incomplete target part are comprehensively judged, the shooting parameters to be switched including the visual angle size and/or the visual angle direction are determined, the preset parameters in the first shooting mode are adjusted to the shooting parameters to be switched, and therefore the target part of the shot object in the preview image is complete, and the whole composition of the preview image can be more harmonious.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image includes:
and if the target part of the shooting object is detected to be incomplete, controlling the zooming of the shooting equipment so as to enable the target part of the shooting object in the preview image to be complete.
In the embodiment of the application, after the target part of the shooting object is detected to be incomplete, zooming of the shooting device is automatically controlled, so that the target part of the shooting object is completely presented in the preview image under the change of the focal length of the camera, that is, zooming of the shooting device can be automatically and intelligently controlled, zooming efficiency of the shooting device is improved, and presenting effect of the preview image is improved.
In an optional embodiment, the controlling the zoom of the photographing apparatus to complete the target portion of the photographing object in the preview image includes:
determining a target object, wherein the target object is a target part of a partial part included in the preview image;
acquiring image parameters of the target object;
and controlling the zooming of the shooting equipment according to the image parameters of the target object so as to complete the target part of the shooting object in the preview image.
In the embodiment of the application, the target part of a part in the preview image is determined as the target object, then the image parameter of the part is determined, and then the zoom information of the shooting equipment is directly determined according to the image parameter, and the shooting equipment acquires the preview image according to the zoom information, so that the zoom of the shooting equipment is automatically and intelligently controlled, the zoom efficiency of the shooting equipment is improved, and the presentation effect of the preview image is improved.
In an optional embodiment, the acquiring of the image parameter of the target object includes at least one of:
acquiring the distance between the target object and the edge of the preview image;
and acquiring the predicted size of the complete target part corresponding to the target object.
In an optional embodiment, the controlling the zoom of the shooting device according to the image parameter of the target object to complete the target portion of the shooting object in the preview image includes:
determining a zooming parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object;
and controlling the zooming of the shooting equipment according to the zooming parameters so as to enable the target part of the shooting object in the preview image to be complete.
In an optional embodiment, the zoom parameter includes a center point to be zoomed and a focal length to be zoomed, and the determining the zoom parameter according to a distance between the target object and an edge of the preview image and/or a predicted size of a complete target portion corresponding to the target object includes:
determining the distance between the complete target part corresponding to each predicted target object and the edge of the preview image according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object;
and determining a central point to be zoomed and/or a focal length to be zoomed according to the predicted distance between the complete target part corresponding to each target object and the edge of the preview image.
In the embodiment of the application, the distance between the predicted complete target part corresponding to each target object and the edge of the preview image is determined according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object, and then zoom parameters such as a center to be zoomed, a focal length to be zoomed and the like are determined, so that the target part of the shot object in the preview image can be completely presented, and the composition is more harmonious as a whole.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image includes:
if the target part of the shot object is detected to be complete, determining a reference distance between the target part of each shot object and the edge of the preview image;
and controlling the zooming of the shooting equipment according to the determined reference distances so as to adjust the reference distance between the target part and the edge of the preview image.
In the embodiment of the application, if the target part of the shooting object is detected to be complete, whether the target part is too close to the edge of the preview image or not is judged, and then the distance between the target part and the edge of the preview image can be increased by controlling the zooming of the shooting equipment, so that the composition of the preview image is balanced and harmonious.
In an optional embodiment, the controlling, according to the determined reference distances, zooming of the shooting device to adjust the reference distance between the target portion and the edge of the preview image includes:
and when the determined reference distances have distances smaller than or equal to a first numerical value, controlling the zooming of the shooting equipment so that the distance between the target part of each shooting object and the edge of the preview image is larger than or equal to the first numerical value.
In the embodiment of the application, when all target parts are in the preview image and a target part with a distance from the edge of the preview image smaller than or equal to a first numerical value exists, controlling the zooming of the shooting device so that the distance between each target part and the edge of the preview image is larger than or equal to the first numerical value, and enabling the preview image to be better in presenting effect.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the target portion of the photographic subject in the preview image includes:
if the target parts of the shot objects are detected to be complete, determining the image areas of the target parts of all the shot objects in the preview image;
and controlling the zooming of the shooting equipment according to the occupation ratio of the image area in the preview image so as to adjust the occupation ratio of the image area in the preview image.
In the embodiment of the application, if it is detected that all target parts are completely presented in the preview image, but the composition of the preview image is not good, that is, the occupation ratio of the total image area of all target parts in the preview image is too small in the preview image, so that the emphasis in the preview image is not prominent enough, at this time, the zoom of the shooting device is controlled to adjust the occupation ratio of the image area, so that the composition of the preview image is more harmonious.
In an optional embodiment, the controlling the zoom of the photographing apparatus according to the proportion of the image area in the preview image to adjust the proportion of the image area in the preview image includes:
when the occupation ratio of the image area in the preview image is smaller than or equal to a second numerical value, controlling the zooming of the shooting device so that the occupation ratio of the image area in the preview image is larger than or equal to the second numerical value.
In the embodiment of the application, a second value may be preset, and when the ratio of the image area in the preview image is smaller than or equal to the second value, the zooming of the shooting device is directly triggered, so that the ratio of the image area in the preview image is larger than or equal to the second value.
In an optional embodiment, after the processing the photographic subject according to the preset rule to complete the photographic subject in the preview image, the processing includes:
acquiring a preview image acquired by the shooting equipment after processing;
determining initial image areas where target parts of all shot objects in the preview image are located;
and acquiring reference size information, and adjusting the size of the initial image area according to the reference size information.
In the embodiment of the application, the preview image acquired after processing according to the preset rule can be acquired, the initial image areas of all the target parts in the preview image are determined, and then the initial image areas are compared and adjusted with the reference size information in the shooting equipment, for example, the initial image areas are adjusted to the middle position of the whole preview image, so that the key points of the preview image are more prominent, and the presentation effect is better.
In an optional embodiment, the method further comprises:
determining the number of photographic objects in the preview image;
detecting whether the number of the shot objects is larger than or equal to a third numerical value or not to obtain a detection result;
and adjusting the shooting mode of the shooting equipment according to the detection result.
In the embodiment of the application, whether the shooting mode of the shooting equipment is adjusted or not is judged according to the number of the shooting objects in the preview image, so that the zooming of the shooting equipment is automatically and intelligently controlled, the zooming efficiency of the shooting equipment is improved, and the presenting effect of the preview image is improved.
In an optional embodiment, the adjusting the shooting mode of the shooting device according to the detection result includes:
and if the detection result is that the number of the shooting objects is larger than or equal to the third numerical value, controlling the shooting equipment to enter the first shooting mode.
In the embodiment of the application, the shooting equipment detects that the number of the shot objects is larger than or equal to the third numerical value, and the shooting equipment is automatically controlled to enter the first shooting mode, so that the problems of inconvenience in operation and low efficiency caused by manual adjustment are avoided, and the shooting efficiency and quality are improved.
In an optional embodiment, when the number of the photographic subjects in the preview image changes from being greater than or equal to the third value to being less than the third value, the photographing apparatus is controlled to adjust the photographing mode from the first photographing mode to the second photographing mode.
In the implementation of the application, the shooting equipment monitors the shooting objects in the preview image in real time, and if the number of the shooting objects is changed from being greater than or equal to a third value to being smaller than the third value, the shooting equipment is intelligently and automatically controlled to adjust the shooting mode from the first shooting mode to the second shooting mode, so that the composition effect of the preview image is better.
In an optional embodiment, when the number of the photographic subjects in the preview image changes from being greater than or equal to the third numerical value to being less than the third numerical value, acquiring a duration time that the number of the photographic subjects in the preview image is less than the third numerical value;
and adjusting the shooting mode of the shooting equipment according to the duration.
In an optional embodiment, the adjusting the shooting mode of the shooting device according to the duration includes:
detecting whether the duration is greater than or equal to a preset duration or not;
and if the duration is greater than or equal to the preset duration, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode.
In the embodiment of the application, the number of the shooting objects in the preview image is detected to be changed from being larger than or equal to the third numerical value to being smaller than the third numerical value, the duration of the shooting objects is smaller than the third numerical value, and if the duration is larger than or equal to the preset duration, the first shooting mode is automatically adjusted to be the second shooting mode, so that the presenting effect of the preview image is improved, and the shooting efficiency and quality are further improved.
In an optional embodiment, the adjusting the shooting mode of the shooting device according to the detection result includes:
and if the detection result is that the number of the shooting objects is smaller than the third numerical value, controlling the shooting equipment to enter a second shooting mode.
In an optional embodiment, the method further comprises:
determining a reference distance between a target part of each photographic object and an edge of the preview image;
and adjusting the shooting mode of the shooting equipment according to the determined reference distances.
In the embodiment of the application, the reference distance between the target part of each shooting object and the edge of the preview image is calculated, each reference distance is determined, and then the shooting mode is adjusted according to each reference distance, so that the presenting position of the target part in the preview image is suitable for the composition of the whole preview image, and the presenting effect of the preview image is improved.
In an optional embodiment, the adjusting the shooting mode of the shooting device according to the determined reference distances includes:
and when the determined reference distances have distances smaller than or equal to a fourth numerical value, controlling the shooting equipment to enter a first shooting mode.
In the embodiment of the application, if there is a distance smaller than or equal to the fourth numerical value in each reference distance, it is indicated that there is a target portion too close to the edge of the preview image, or only a portion of the target portion is at the edge of the preview image, the shooting mode of the shooting device is automatically adjusted to be the first shooting mode, so that the image presenting effect is improved, and the shooting efficiency and quality are improved.
In an optional embodiment, the adjusting the shooting mode of the shooting device according to the determined reference distances includes:
and when the determined reference distances are all larger than or equal to a fourth numerical value, controlling the shooting equipment to enter a second shooting mode.
In the embodiment of the application, if each reference distance is greater than or equal to the fourth numerical value, it indicates that all target portions are in the preview image, and at this time, the shooting device is automatically adjusted to enter the second shooting mode, so that the presentation effect of the preview image is improved.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete includes:
inputting the preview image into a target part recognition model for processing to obtain a result of whether the target part is complete or not;
the result of whether the target part is complete is used to indicate whether all the target parts of each photographic object are included in the preview image, the target part recognition model is obtained by training a sample data set, the sample data set includes a first sample image and a second sample image, the first sample image includes the complete target part of each photographic object, and the second sample image includes the incomplete target part of each photographic object.
In the embodiment of the application, the target part recognition model is trained in advance, and then the trained target part recognition model is utilized to process the preview image to obtain the result of whether the target part is complete or not, so that whether the target part of the shooting object is complete or not can be automatically detected, the shooting equipment can conveniently perform corresponding processing according to the preset rule, and the overall presentation effect of the preview image is improved.
In a second aspect, an embodiment of the present application provides a shooting control apparatus, including:
the acquisition unit is used for acquiring a preview image acquired by the shooting equipment;
a processing unit configured to recognize a photographic subject in the preview image; and the target part detection module is used for detecting whether the target part of the shot object is complete or not and processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, the shooting equipment can intelligently detect whether the target part of the shot object in the preview image is complete or not, and further automatically and correspondingly process the shot object, so that the target part of the shot object in the preview image is complete, the size of the shot object is proper, and the presentation effect of the preview image is integrally improved.
In a third aspect, an embodiment of the present application provides an intelligent device, which includes a processor and a memory, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer readable storage medium has stored thereon one or more instructions adapted to be loaded by a processor and to perform the method according to the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first shooting control method provided in an embodiment of the present application;
FIG. 2a is a schematic diagram of a portion of a target region in a preview image according to an embodiment of the present application;
FIG. 2b is a schematic diagram of a complete target region in a preview image according to an embodiment of the present application;
FIG. 2c is a schematic diagram of a portion of another part in a preview image according to an embodiment of the present application;
FIG. 2d is a schematic view of another complete target region in a preview image according to the embodiment of the present application;
fig. 3a is a schematic diagram of all target portions of a photographic subject in a preview image according to an embodiment of the present application;
fig. 3b is a schematic diagram of another example provided in the present application, in which target portions of all subjects are in a preview image;
fig. 4 is a flowchart of a second shooting control method provided in an embodiment of the present application;
fig. 5a is a schematic diagram of incomplete faces a and b in a preview image according to an embodiment of the present application;
fig. 5b is a schematic diagram of determining shooting parameters to be switched according to incomplete faces a and b according to an embodiment of the present application;
fig. 6 is a flowchart of a third shooting control method provided in the embodiment of the present application;
FIG. 7a is a schematic diagram of a target object provided by an embodiment of the present application;
FIG. 7b is a schematic diagram of a calculation point for predicting a complete target portion corresponding to a target object according to an embodiment of the present disclosure;
FIG. 7c is a schematic diagram of a complete target region in a preview image according to an embodiment of the present application;
FIG. 7d is a schematic diagram of a complete target region near the edge of a preview image according to an embodiment of the present application;
FIG. 7e is a schematic diagram of a preview image of a complete target region provided by an embodiment of the present application;
FIG. 7f is a schematic diagram of an image area in a preview image according to an embodiment of the present application;
FIG. 7g is a schematic diagram of another image area in a preview image according to an embodiment of the present application;
fig. 8 is a flowchart of a fourth photographing control method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a shooting control apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an intelligent device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
Referring to fig. 1, fig. 1 is a flowchart of a first shooting control method according to an embodiment of the present disclosure. The method of the embodiment of the present application may be executed by a shooting device, and may be executed by a server, where the method specifically includes the following steps:
and S101, acquiring a preview image acquired by the shooting equipment.
In the embodiment of the application, the shooting equipment acquires the shooting picture to obtain the preview image with the shooting picture displayed, and subsequent calculation processing is performed based on the preview image. It should be noted that the present application embodiment may be performed in a scene where the shooting device is in an intelligent shooting mode, and certainly may also be performed in other scenes, and the present application embodiment is not limited. It can be understood that the shooting device in the embodiment of the present application may be various devices including a camera function, for example, may be an image acquisition device such as a camera and a video recorder, may also be a smart phone, a handheld processing device, a tablet computer, a mobile notebook, a virtual reality device, an integrated palm computer, and the like, may also be a wearable device, and the wearable device may also be referred to as a wearable smart device, which is a generic term for applying a wearable technology to intelligently design daily wearing and developing wearable devices, such as glasses, gloves, watches, clothing, shoes, and the like.
S102, recognizing the shooting object in the preview image.
In the embodiment of the application, various shooting objects in a shooting picture are presented in a preview image, for example, the shooting objects can be people or objects, and the shooting equipment based on the automatic detection function can identify whether the shooting objects in the preview image are people, objects or animals through a face detection algorithm, an object detection algorithm, an animal detection algorithm and the like through the preview image. Further, after identifying whether the person, the article, or the animal is present, it is possible to specifically detect whether the person, the article, or the animal is the entire subject, a certain portion of the subject, or a part of the certain portion of the subject. Taking an example that the shooting object is a human, a certain part in the shooting object can be a human face, an arm, two legs and the like, and a part of the certain part in the shooting object can be a half human face, a half palm and the like.
It is understood that, in order to accurately detect whether a part of a photographic subject is complete, a trained target part recognition model may be used to perform recognition of the subject, and in an alternative embodiment, the detecting whether the target part of the photographic subject is complete may include: inputting the preview image into a target part recognition model for processing, and judging whether the target part is complete or not; the result of whether the target part is complete is used for indicating whether all the target parts of each shot object are included in the preview image, the object recognition model is obtained by training through a sample data set, the sample data set comprises a first sample image and a second sample image, the first sample image comprises the complete target parts of each shot object, and the second sample image comprises the incomplete target parts of each shot object. Taking an example of a shooting object as an example, when training of an object recognition model is performed, the first sample image in the sample data set may be an image of a human face, a pair of hands, one leg, and the like, and the second sample image may be an image of only a part of a human face (a left face, a right face, a forehead, a chin, and the like), a part of a hand (a half palm, 4 fingers, and the like), and the like.
In an optional embodiment, the detecting whether the target portion of the photographic subject is complete may include: inputting the preview image into a target part recognition model for processing to obtain a result of whether the target part is complete or not; the result of whether the target part is complete is used for indicating whether the preview image includes the target part of each shot object, the object recognition model is obtained by training through a sample data set, the sample data set includes a first sample image and a second sample image, the first sample image includes the complete target part of each shot object, and the second sample image includes other parts of each shot object except the target part or other parts of a certain area of each shot object except the target part. Taking the target part as a face for example, at this time, the first sample image in the sample data set of the training object recognition model may be an image including a face, and the second sample image may be a human body image without a face, an image with only one leg, and the like.
S103, detecting whether the target part of the shot object is complete, and processing the shot object according to a preset rule to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, detecting whether the target part of the photographic subject is complete may be detecting whether all the target parts of each photographic subject are included in the preview image, or detecting whether the target part of each photographic subject is included in the preview image, and then processing the photographic subject according to a preset rule according to a detection result so that all the target parts of each photographic subject are included in the preview image. Taking a target part as a face, as shown in fig. 2a, taking the forehead of a person as an example, when the forehead is recognized by the shooting device but only a part of the face, controlling the shooting device according to a preset rule so that the preview image includes a complete face corresponding to the forehead (as shown in fig. 2 b); taking a target part as a face, taking a preview image including a part of arms as an example, recognizing that the preview image includes a part of arms (as shown in fig. 2 c) but does not have a face, controlling zooming of the photographing device so that the preview image includes a face of a human body corresponding to the part of arms (as shown in fig. 2 d), and naturally, when the preview image does not have a target part, controlling the photographing device to process a photographed object according to a preset rule when the ratio of image areas of other parts in the preview image is greater than a numerical value, so that the complete target parts corresponding to the other parts are displayed in the preview image. It is understood that processing the photographic subject according to the preset rule based on the detection result may be processing the photographic subject by switching a photographing mode of the photographing apparatus, or processing the photographic subject by controlling a zoom of the photographing apparatus. It is also understood that each shooting mode in the shooting device may set a preset parameter threshold; the zoom of the shooting device can be controlled through optical zoom realized by one camera or a plurality of cameras, taking two cameras as an example, one camera can be set as a telephoto camera and one camera can be set as a wide-angle camera, and certainly, the number of cameras and the setting of the focal length of a specific camera are not limited in the embodiment of the application.
In an alternative embodiment, the shooting object in the preview image is recognized, a recognition result is obtained, and the focusing of the shooting device is controlled according to the recognition result. In the embodiment of the application, after the shooting device identifies the shooting object in the preview image, the shooting object is focused, so that the shooting object can be presented more clearly, and other display contents in the preview image are subjected to certain program blurring processing, or the definition of other contents is unchanged/lowered, and the like.
In an alternative embodiment, controlling the focusing of the photographing apparatus according to the recognition result may include: and controlling the shooting equipment to focus on the target part of each shooting object in the preview image according to the object recognition result. In the embodiment of the application, the shooting device identifies the target part of the shooting object in the preview image, and focuses the target part, so that the definition of the target part in the preview image is increased, and the preview image is better presented conveniently.
In an optional embodiment, after processing the photographic subject according to the preset rule to complete the target portion of the photographic subject in the preview image, the processing includes:
acquiring a preview image acquired by the zooming shooting equipment; determining initial image areas where target parts of all shot objects in the preview image are located; and acquiring reference size information, and adjusting the size of the initial image area according to the reference size information.
In the embodiment of the present application, after the photographing device is controlled to zoom, the preview image acquired after zooming is obtained, and the initial image areas of the target portions of all the photographed objects in the preview image after zooming are determined, as shown in fig. 3a, although the target portions of all the photographed objects are in the preview image, the size of all the initial image areas in the preview image is too small as a whole, and the acquired reference size information is not reached, and then the size of the initial image area is adjusted so that the size of the initial image area meets the requirement of the reference size information. In an alternative embodiment, the display content of the preview image is adjusted so that the adjusted initial image area is at the specified position in the preview image. It can be understood that, when the size of the initial image area meets the requirement of the reference size information, the display content of the preview image is adjusted so that the initial image area can be displayed at a specified position, the specified position in the embodiment of the present application may be a middle portion of the preview image, as shown in fig. 3b, of course, other positions may also be used, and the position may be set according to actual situations.
In the embodiment of the application, a preview image acquired by shooting equipment is acquired, a shooting object of the preview image is identified, whether a target part of the shooting object is complete or not is detected, and the shooting object is processed according to a preset rule so that the target part of the shooting object in the preview image is complete; therefore, the method and the device for processing the shot object in the preview image can intelligently detect whether the target part of the shot object in the preview image is complete or not, further automatically perform corresponding processing on the shot object, enable the target part of the shot object in the preview image to be complete, and improve the presenting effect of the preview image.
Referring to fig. 4, fig. 4 is a flowchart of a second shooting control method provided in the embodiment of the present application, where the method in the embodiment of the present application may be executed by a shooting device, and may be executed by a server, and the method may specifically include the following steps:
s401, acquiring a preview image acquired by the shooting equipment.
S402, recognizing the shooting object in the preview image.
It should be noted that, steps S401 to S402 in the embodiment of the present application may specifically refer to steps S101 to S102 in the embodiment described above, and the embodiment of the present application is not described again.
And S403, if the target part of the shooting object is detected to be incomplete, controlling the shooting equipment to adjust the shooting mode to the first shooting mode so as to enable the target part of the shooting object in the preview image to be complete.
In the embodiment of the present application, the detection that the target portion of the photographic subject is incomplete may be a detection that the target portion of at least one photographic subject is incomplete in the preview image. The first photographing mode may be a wide-angle photographing mode, and may be a photographing mode capable of completing a target portion of a subject in a preview image, such as a short-focus photographing mode. Taking a shot object as an example, taking a target part as a face, and controlling the shooting equipment to adjust the shooting mode to a first shooting mode which can enable all face images in a preview image to be complete if the shooting equipment detects that the face image of at least one person in the preview image is incomplete in the acquired preview image. It can be understood that a preset parameter threshold is set in the first shooting mode, and a specific preset parameter threshold may be set according to an actual situation, which is not limited in the embodiment of the present application.
In an alternative embodiment, controlling the photographing apparatus to enter the first photographing mode to complete the target portion of the photographic subject in the preview image may include: determining shooting parameters to be switched according to the distance between the incomplete target part of the shot object and the edge of the preview image and/or the predicted complete size corresponding to the incomplete target part, wherein the shooting parameters to be switched comprise the view angle size and/or the view angle direction; and controlling the shooting equipment to enter a first shooting mode, and adjusting the shooting parameters of the shooting equipment to the shooting parameters to be switched in the first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
In the embodiment of the application, the distances between all incomplete target parts in the preview image and the edge of the preview image are calculated, the size of the corresponding complete target part is predicted according to the sizes of all incomplete target parts, to-be-switched shooting parameters including the visual angle and/or the visual angle direction are determined according to the distance between the incomplete target part and the edge of the preview image and the size of the predicted complete target part, then the shooting equipment is controlled to enter a first shooting mode, and the shooting parameters of the shooting equipment are adjusted to the to-be-switched shooting parameters (such as the degree of the visual angle, the moving distance and direction of the visual angle center and the like) in the first shooting mode, so that the target part of a shot object in the preview image is complete. Taking the first shooting mode as a wide-angle shooting mode, taking the shooting object as a person, taking the target part as a face as an example, the view angle size refers to the degree size of wide-angle shooting, and the view angle direction refers to the view angle center of wide-angle shooting, as shown in fig. 5a, if the face of the person in the preview image is detected to be incomplete, the distance between the edge of the preview image and an incomplete face a and the distance between the edge of the incomplete face B and the edge of the preview image are calculated respectively, and the sizes of the complete faces corresponding to the incomplete face a and the incomplete face B are predicted respectively, so that the distance between the predicted complete face a corresponding to the incomplete face a and the edge of the preview image can be determined, and the distance between the predicted complete face a corresponding to the incomplete face a and the predicted complete face B and the edge of the preview image is greater than the distance between the predicted complete face B and the edge of the preview image corresponding to the incomplete face B, so as to-be-switched shooting parameters are determined (as shown in fig. 5B, the view angle center of the shooting is shifted to the left side and the left side of the angle degree is increased more than the right side of the left side of the view angle of the incomplete face is increased). It can be understood that the camera in the shooting device is adjustable, and after entering the wide-angle shooting mode, the position of the camera can be finely adjusted, or the shooting device can be finely adjusted automatically, so that the center of the wide-angle shooting can be adjusted according to actual conditions, and the presentation effect of the preview image is improved.
In the embodiment of the application, a preview image acquired by shooting equipment is acquired, a shooting object in the preview image is identified, whether a target part of the shooting object is complete or not is further detected, and if the target part is incomplete, the shooting equipment is controlled to enter a first shooting mode, so that the target part of the shooting object can be completely presented in the preview image; therefore, the method and the device for processing the shot object in the preview image can intelligently detect whether the target part of the shot object in the preview image is complete or not, further automatically perform corresponding processing on the shot object, enable the target part of the shot object in the preview image to be complete, and improve the presenting effect of the preview image.
Referring to fig. 6, fig. 6 is a flowchart of a third shooting control method provided in the embodiment of the present application, where the method in the embodiment of the present application may be executed by a shooting device, and may be executed by a server, and the method may specifically include the following steps:
s601, acquiring a preview image acquired by the shooting equipment.
And S602, identifying the shooting object in the preview image.
S603, detecting whether the target part of the shot object is complete, and processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete.
It should be noted that, steps S601 to S603 in the embodiment of the present application may specifically refer to steps S101 to S103 in the embodiment described above, and the embodiment of the present application is not described again. In the embodiment of the present application, whether all the target portions of each photographic subject are included in the preview image is detected, and the obtained detection result may be that all the target portions of each photographic subject are included in the preview image, or may be that all the target portions of each photographic subject are not included in the preview image. In an alternative embodiment, if the target portion of the photographic subject is incomplete as a result of the detection, that is, all of the target portion of each photographic subject is not included in the preview image, the zoom of the photographic apparatus is controlled so that all of the target portion of each photographic subject is included in the preview image. It should be noted that, if the detection result is that the target portion of the photographic subject is not complete, that is, all of the target portion of each photographic subject is not included in the preview image, steps S604 to S606 are executed, and if the detection result is that the target portion of the photographic subject is complete, that is, all of the target portion of each photographic subject is included in the preview image, steps S607 to S608 are executed, or steps S609 to S610 are executed.
And S604, determining the target object.
In the embodiment of the present application, the target object may be a part of the target portion, and may be a portion of the imaging object other than the target portion. Taking the target part as a face for example, the target object can be a left half face, a right half face, a forehead and the like of the face; taking the target portion as a face as an example, the target object may be a whole hand, a part of fingers, one leg, or the like, and as shown in fig. 7a, a part of a dotted frame is a target object.
And S605, acquiring image parameters of the target object.
In the embodiment of the present application, the image parameters of the target object may include a percentage of the target object in the whole preview image, a distance from the target object to an edge of the preview image in the horizontal direction and the vertical direction, a sharpness and a focal length of the target object image, and the like. In an alternative embodiment, the obtaining of the image parameter of the target object may include at least one of: acquiring the distance between a target object and the edge of a preview image; and acquiring the predicted size of the complete target part corresponding to the target object. In the embodiment of the present application, the target object may be a partial portion of the target portion, the distances between the target object and each edge of the preview image are obtained, the predicted size of the complete target portion corresponding to the target object is predicted, and the target portion is a human face, the target object is an example of a forehead, as shown in fig. 7b, the distance from the point a of the target object 1 (forehead) to the left edge of the preview image is 0.1cm, the distance from the point b of the target object to the right edge of the preview image is 2.1cm, the distance from the point c of the target object to the upper edge of the preview image is 7.5cm, the distance from the point c of the target object to the lower edge of the preview image is 0.7cm, and the distance between the point a and the point b is 1cm, thereby predicting the predicted size of the complete target portion corresponding to the target object.
And S606, controlling the zooming of the shooting equipment according to the image parameters of the target object so as to enable the target part of the shooting object in the preview image to be complete.
In the embodiment of the present application, after the image parameters of each target object are obtained, the zoom parameter may be adjusted according to a part, which is not in the preview image, of the complete target part corresponding to the predicted target object, and the target object with the largest distance from the edge of the preview image, or the zoom parameter may be adjusted according to a part, which is not in the preview image, of the complete target part corresponding to the predicted target object, and the target object with the largest proportion in the predicted complete target part, so that the preview image includes all of the target parts of each photographed object. Taking the target part as the face, the target object 1 as the forehead, and the target object 2 as the half-side face, as shown in fig. 7b, after the shooting device predicts that the distance from the lowest point of the chin of the target object 1 to the lower edge of the preview image is 2.8cm, the distance from the edge of the right face of the target object 2 to the left edge of the preview image is 1.2cm, and performing zoom parameter adjustment with the complete face corresponding to the predicted target object 1, so that both the target object 1 and the complete face corresponding to the target object 2 can be in the preview image, as shown in fig. 7 c.
In an optional embodiment, the controlling the zoom of the photographing apparatus according to the image parameter of the target object so that all of the target portion of each of the photographing objects is included in the preview image includes: determining a zooming parameter according to the distance between the target object and the edge of the preview image and the predicted size of the complete target part corresponding to the target object; and controlling the zooming of the shooting equipment according to the zooming parameters so that all the target parts of each shooting object are included in the preview image. In the embodiment of the application, according to the distance between each target object and the edge of the preview image and the size of the predicted complete target part, the distance between the part, which is not in the preview image, in the predicted complete target part and the edge of the preview image can be obtained, or the ratio of the part, which is not in the preview image, in the predicted complete target part can be obtained, and further, the zoom parameter is determined according to the target object corresponding to the maximum distance or the maximum ratio, and the zooming of the shooting equipment is controlled according to the zoom parameter, so that the preview image comprises all the target parts of each shooting object, and the presentation effect of the preview image is improved.
In an optional embodiment, the determining the zoom parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target portion corresponding to the target object may include: determining the distance between the complete target part corresponding to each predicted target object and the edge of the preview image according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object; and determining a central point to be zoomed and/or a focal length to be zoomed according to the predicted distance between the complete target part corresponding to each target object and the edge of the preview image.
In the embodiment of the application, the distance between a target object and the edge of a preview image is calculated, the size of a complete target part corresponding to the target object is predicted according to the target object, further, the distance between the complete target part corresponding to each predicted target object and the edge of the preview image is determined according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object, and a center point to be zoomed and/or a focal length to be zoomed is determined according to the predicted distance between the complete target part corresponding to each predicted target object and the edge of the preview image. As shown in fig. 7b, it is predicted that the distance value from the entire face corresponding to the target object 1 to the edge of the preview image is greater than the distance value from the entire face corresponding to the target object 2 to the edge of the preview image (for example, the distance value from the lowest point of the chin of the entire face predicted corresponding to the target object 1 to the lower edge of the preview image is greater than the distance value from the part of the face of the entire face predicted corresponding to the target object 2 not in the preview image to the left edge of the preview image), then the center to be zoomed and the focal length to be zoomed may be determined (for example, the center to be zoomed is moved downward, the focal length to be zoomed is decreased, etc.), so that all target portions corresponding to the target objects are completely displayed in the preview image, so as to improve the presentation effect of the preview image.
And S607, determining the reference distance between the target part of each shooting object and the edge of the preview image.
In the embodiment of the application, all target parts of the shot objects are in the preview image, but some target parts are in the vicinity of the preview image, so that the presenting effect of the whole preview image is not good enough, at this time, the reference distances can be determined by calculating the distance between the target part of each shot object and each edge of the preview image, and a basis is provided for controlling the zooming of the shooting equipment.
And S608, controlling the zooming of the shooting equipment according to the determined reference distances so as to adjust the reference distance between the target part and the edge of the preview image.
In an embodiment of the present application, the controlling the zoom of the shooting device directly according to the respective reference distances, and in an alternative embodiment, the controlling the zoom of the shooting device according to the determined respective reference distances may include: and when the determined reference distances exist distances which are smaller than or equal to a first numerical value, controlling the zooming of the shooting equipment so that the distance between the target part of each shooting object and the edge of the preview image is larger than the first numerical value. In the embodiment of the present application, as shown in fig. 7d, taking a target portion as a face as an example, a point d of the target portion of the photographic subject a is at a distance of 0.7cm from the right edge of the preview image, and since the set first value is 1cm,0.7cm is smaller than 1cm, the zoom of the photographic apparatus is controlled so that the distance between the target portion of each photographic subject and the edge of the preview image is larger than the first value, as shown in fig. 7 e. It should be noted that the first numerical value may be specifically set according to actual situations, and the embodiment of the present application is not limited.
And S609, determining the image areas of the target parts of all the shooting objects in the preview image.
In the embodiment of the present application, target portions of all the objects are in the preview image, but the positions of the image areas of the target portions in the preview image are too small or too large, which affects the presentation effect of the entire preview image, so that the image areas of all the target portions in the preview image can be specifically determined, as shown in fig. 7f, the area enclosed by the dashed line frame is the image area of the target portion, and then the preview image shown in fig. 7g is obtained through adaptive adjustment.
And S610, controlling the zooming of the shooting equipment according to the occupation ratio of the image area in the preview image so as to adjust the occupation ratio of the image area in the preview image.
In an embodiment of the present application, determining image areas of all target portions, calculating a ratio of a total image area of all target portions in a preview image, and zooming the shooting device, in an alternative embodiment, controlling zooming of the shooting device according to the ratio of the image areas in the preview image may include: when the occupation ratio of the image area in the preview image is less than or equal to a second numerical value, controlling the zooming of the photographing apparatus so that the occupation ratio of the image area in the preview image is greater than the second numerical value. In the embodiment of the present application, taking a target portion as an example of a human face, as shown in fig. 7f, if the ratio of the total image area of all target portions in a preview image is less than or equal to 40%, the shooting device is controlled to zoom so that the ratio of the total image area in the preview image is greater than 40%. In an alternative embodiment, controlling the zoom of the photographing apparatus according to the occupation ratio of the image area in the preview image may include: when the occupation ratio of the image area in the preview image is greater than or equal to a numerical value, controlling the zooming of the photographing apparatus so that the occupation ratio of the image area in the preview image is less than a numerical value. If the ratio of the image area of the target portion in the preview image is greater than 90%, the photographing device is controlled to zoom so that the ratio of the image area of the target portion in the preview image is less than 90%.
In the embodiment of the application, a shooting object in a preview image is identified by acquiring the preview image acquired by shooting equipment, whether a target part of the shooting object in the preview image is complete or not is detected, and when the target part of the shooting object is incomplete, zooming of the shooting equipment is controlled according to image parameters of the target object by determining the target object and acquiring the image parameters of the target object, so that the target part of the shooting object in the preview image is complete; when the target part of the shot object in the preview image is complete, determining the image areas of the target parts of all the shot objects in the preview image by determining the reference distance between the target part of each shot object and the edge of the preview image, and controlling the zooming of the shooting equipment according to the reference distances and the occupation ratios of the image areas in the preview image respectively, so that the target part of each shot object can obtain a better presentation effect in the preview image; it can be seen that in the embodiment of the application, whether the target part of the shot object in the preview image is complete or not can be automatically and intelligently detected, and then the shot object is automatically and correspondingly processed, so that the target part of the shot object in the preview image is complete, and the presentation effect of the preview image is improved.
Referring to fig. 8, fig. 8 is a flowchart of a fourth shooting control method provided in the embodiment of the present application, where the method in the embodiment of the present application may be executed by a shooting device, and may be executed by a server, and the method may specifically include the following steps:
s801, the number of photographic subjects in the preview image is determined.
In the embodiment of the application, in the camera mode, based on the automatic detection function of the shooting device, whether the current shooting object is a person, an animal or an object is identified, and then the number of the shooting objects in the preview image is determined. Taking the photographic subject as an example, when the number of the photographic subjects is determined, the number of the photographic subjects can be obtained through face number determination, and it can be understood that the face here may include a complete face and an incomplete face.
And S802, detecting whether the number of the shot objects is larger than or equal to a third numerical value or not to obtain a detection result.
In the embodiment of the present application, the detection result may include that the number of the photographic objects is greater than or equal to a third value, and the number of the photographic objects is less than the third value. Step S803 is performed when the number of photographic subjects is greater than or equal to the third numerical value, and step S804 is performed when the number of photographic subjects is less than the third numerical value.
In an alternative embodiment, a reference distance between a target portion of each photographic subject and an edge of the preview image is determined; and adjusting the shooting mode of the shooting equipment according to the determined reference distances. In the embodiment of the application, the reference distance between the target part of each shooting object and each edge of the preview image is calculated, and the shooting mode of the shooting device is adjusted according to each reference distance.
In an alternative embodiment, the adjusting the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances have distances smaller than or equal to a fourth numerical value, controlling the shooting equipment to enter a first shooting mode. It is to be understood that the first photographing mode may be set to a wide-angle photographing mode, and when there is a distance less than or equal to the fourth value among the respective reference distances, the photographing mode of the current photographing apparatus is adjusted to a wide-angle photographing mode, but the first photographing mode may also be a short-focus photographing or the like.
In an alternative embodiment, the adjusting the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances are all larger than the fourth numerical value, controlling the shooting equipment to enter a second shooting mode. In this application embodiment, when each reference distance is greater than the fourth value, the current shooting mode is adjusted to be the second shooting mode, it can be understood that the second shooting mode may be a telephoto shooting mode, a normal shooting mode, and the like, and this application embodiment is not limited.
And S803, controlling the shooting device to enter a first shooting mode.
In the embodiment of the application, when the number of the shooting objects is larger than or equal to the third numerical value, the current shooting mode of the shooting equipment is adjusted to be the first shooting mode. In an optional implementation mode, special effect processing is carried out on the preview image; and displaying the preview image after the special effect processing. It is understood that after entering the first shooting mode, a special effect option is set on the display interface, for example, for a target region of a shooting object: nature, beauty, large eyes, buffing, face thinning, etc., or for the entire preview image: texture, oil painting, sketch and the like, a user can perform personalized selection and personalized equipment of each special effect, and certainly, the shooting equipment can also preset various parameters of special effect treatment, and the preview image after the special effect treatment is directly displayed after the special effect treatment.
And S804, controlling the shooting equipment to enter a second shooting mode.
In the embodiment of the application, when the number of the shooting objects is smaller than the third numerical value, the current shooting mode of the shooting device is adjusted, so that the current shooting mode is the second shooting mode.
In an alternative embodiment, when the number of the photographic subjects in the preview image changes from being greater than or equal to a third value to being less than the third value, the photographing apparatus is controlled to adjust the photographing mode from the first photographing mode to the second photographing mode. In the embodiment of the present application, the first shooting mode may be a wide-angle shooting mode, a short-focus shooting mode, and the like, and the second shooting mode may be a long-focus shooting mode, a normal shooting mode, and the like, and it is not particularly limited, and it can be understood that when the number of the shooting objects in the preview image changes from being greater than or equal to a third value to being less than the third value, the current shooting mode is automatically adjusted to be changed from the first shooting mode to the second shooting mode.
In an optional implementation manner, when the number of the photographic objects in the preview image changes from being greater than or equal to the third numerical value to being smaller than the third numerical value, acquiring a duration time that the number of the photographic objects in the preview image is smaller than the third numerical value; and adjusting the shooting mode of the shooting equipment according to the duration. In the embodiment of the application, in order to more accurately determine the number of the shot objects in the preview image, when the number of the shot objects in the preview image is changed from being greater than or equal to the third numerical value to being smaller than the third numerical value, the duration smaller than the third numerical value is obtained, and the shooting double-shooting mode of the shooting device is adjusted according to the duration. In an optional implementation, the adjusting the shooting mode of the shooting device according to the duration may include: detecting whether the duration is greater than or equal to a preset duration; and if the duration is greater than or equal to the preset duration, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode. It is understood that the preset time period may be determined according to actual conditions, and may be, for example, 2s, 5s, and the like.
In an optional embodiment, the method may further comprise: detecting a photographing mode adjustment operation of a user; and adjusting the shooting mode of the shooting equipment according to the shooting mode adjusting operation of the user. In the embodiment of the application, the user can manually adjust the shooting mode in any shooting mode, so that the current shooting mode is more in line with the personalized requirements of the user.
In the embodiment of the application, the number of the shooting objects in the preview image is determined, whether the number of the shooting objects is larger than or equal to a third numerical value or not is detected, when the number of the shooting objects is larger than or equal to the third numerical value, the shooting equipment is controlled to enter a first shooting mode, and when the number of the shooting objects is smaller than the third numerical value, the shooting equipment is controlled to enter a second shooting mode, so that the shooting mode of the shooting equipment is automatically adjusted according to the number of the shooting objects, the efficiency of adjusting the shooting mode is improved, the presenting effect of the preview image is improved, and the problem of low efficiency caused by manually adjusting the shooting mode is avoided.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a shooting control apparatus according to an exemplary embodiment of the present application, where the apparatus may be mounted on an intelligent device in the foregoing method embodiment, and the intelligent device may specifically be a server. Of course, in some embodiments, the method can also be carried on the terminal equipment. The photographing control apparatus shown in fig. 9 may be used to perform some or all of the functions in the method embodiments described in fig. 1, 4, 6, and 8 above. Wherein, the detailed description of each unit is as follows:
an acquiring unit 901, configured to acquire a preview image acquired by a shooting device;
a processing unit 902 for identifying a photographic subject in the preview image; and the processing module is used for processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete.
In an optional embodiment, the processing unit 902 is specifically configured to, if it is detected that the target portion of the photographic subject is incomplete, control the photographing apparatus to adjust the photographing mode to the first photographing mode, so that the target portion of the photographic subject in the preview image is complete.
In an alternative embodiment, the controlling the shooting device to enter the first shooting mode by the processing unit 902 to complete the target portion of the shooting object in the preview image may include: determining shooting parameters to be switched according to the distance between the incomplete target part of the shot object and the edge of the preview image and/or the predicted complete size corresponding to the incomplete target part, wherein the shooting parameters to be switched comprise the size and/or direction of an angle of view; and controlling the shooting equipment to adjust a shooting mode to a first shooting mode, and adjusting the shooting parameters of the shooting equipment to the shooting parameters to be switched in the first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
In an optional embodiment, the processing unit 902 is further specifically configured to control zooming of the shooting device to complete the target portion of the shooting object in the preview image if the target portion of the shooting object is detected to be incomplete.
In an alternative embodiment, the processing unit 902 may control the zooming of the shooting device to complete the target portion of the shooting object in the preview image, and may include: determining a target object, wherein the target object is a target part of a partial part included in the preview image; acquiring image parameters of the target object; and controlling the zooming of the shooting equipment according to the image parameters of the target object so as to complete the target part of the shooting object in the preview image.
In an alternative embodiment, the processing unit 902 may acquire the image parameter of the target object, and may include at least one of the following: acquiring the distance between the target object and the edge of the preview image; and acquiring the predicted size of the complete target part corresponding to the target object.
In an alternative embodiment, the processing unit 902 may control the zooming of the shooting device according to the image parameter of the target object, so as to complete the target portion of the shooting object in the preview image, and may include: determining a zooming parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object; and controlling the zooming of the shooting equipment according to the zooming parameters so that all the target parts of each shooting object are included in the preview image.
In an alternative embodiment, the processing unit 902 may determine the zoom parameter according to a distance between the target object and an edge of the preview image and/or a predicted size of a complete target portion corresponding to the target object, and may include: determining the distance between the complete target part corresponding to each predicted target object and the edge of the preview image according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object; and determining zoom parameters according to the distance between the predicted complete target part corresponding to each target object and the edge of the preview image.
In an optional embodiment, the processing unit 902 is further specifically configured to determine a reference distance between the target portion of each photographic subject and an edge of the preview image if it is detected that the target portion of the photographic subject is complete; and controlling zooming of the shooting equipment according to the determined reference distances so as to adjust the reference distance between the target part and the edge of the preview image.
In an alternative embodiment, the processing unit 902 may control the zooming of the shooting device to adjust the reference distance between the target portion and the edge of the preview image according to the determined reference distances, and may include: and when the determined reference distances exist distances which are smaller than or equal to a first numerical value, controlling the zooming of the shooting equipment so that the distance between the target part of each shooting object and the edge of the preview image is larger than the first numerical value.
In an optional embodiment, the processing unit 902 is further specifically configured to determine, if it is detected that the target portion of the photographic subject is complete, image areas of the target portions of all the photographic subjects in the preview image; and controlling the zooming of the shooting equipment according to the occupation ratio of the image area in the preview image so as to adjust the occupation ratio of the image area in the preview image.
In an alternative embodiment, the processing unit 902 may control the zoom of the shooting device according to the proportion of the image area in the preview image to adjust the proportion of the image area in the preview image, and may include: when the occupation ratio of the image area in the preview image is smaller than or equal to a second numerical value, controlling the zooming of the shooting device so that the occupation ratio of the image area in the preview image is larger than the second numerical value.
In an alternative embodiment, after the processing unit 902 processes the photographic subject according to a preset rule to complete the photographic subject in the preview image, the processing unit may include: acquiring a preview image acquired by the shooting equipment after processing; determining initial image areas where target parts of all shot objects in the preview image are located; and acquiring reference size information, and adjusting the size of the initial image area according to the reference size information.
In an alternative embodiment, the processing unit 902 may be further configured to determine the number of photographic subjects in the preview image; detecting whether the number of the shot objects is larger than or equal to a third numerical value or not to obtain a detection result; and adjusting the shooting mode of the shooting equipment according to the detection result.
In an alternative embodiment, the adjusting, by the processing unit 902, the shooting mode of the shooting device according to the detection result may include: and if the detection result is that the number of the shooting objects is larger than or equal to the third numerical value, controlling the shooting equipment to enter a first shooting mode.
In an optional embodiment, the processing unit 902 is further configured to control the shooting device to adjust the shooting mode from the first shooting mode to the second shooting mode when the number of the shooting objects in the preview image changes from being greater than or equal to the third value to being less than the third value.
In an optional embodiment, the processing unit 902 is further configured to, when the number of the photographic subjects in the preview image changes from being greater than or equal to the third numerical value to being smaller than the third numerical value, obtain a duration that the number of the photographic subjects in the preview image is smaller than the third numerical value; and adjusting the shooting mode of the shooting equipment according to the duration.
In an alternative embodiment, the processing unit 902 may adjust the shooting mode of the shooting device according to the duration, and may include: detecting whether the duration is greater than or equal to a preset duration; and if the duration is greater than or equal to the preset duration, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode.
In an alternative embodiment, the adjusting, by the processing unit 902, the shooting mode of the shooting device according to the detection result may include: and if the detection result is that the number of the shooting objects is smaller than the third numerical value, controlling the shooting equipment to enter a second shooting mode.
In an alternative embodiment, the processing unit 902 is further configured to determine a reference distance between a target portion of each photographic subject and an edge of the preview image; and adjusting the shooting mode of the shooting equipment according to the determined reference distances.
In an alternative embodiment, the adjusting, by the processing unit 902, the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances have distances smaller than or equal to a fourth numerical value, controlling the shooting equipment to enter a first shooting mode.
In an alternative embodiment, the adjusting, by the processing unit 902, the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances are all larger than the fourth numerical value, controlling the shooting equipment to enter a second shooting mode.
In an alternative embodiment, the processing unit 902 may detect whether the target portion of the photographic subject is complete, and may include: inputting the preview image into a target part recognition model for processing to obtain a result of whether the target part is complete or not; the result of whether the target part is complete is used to indicate whether all the target parts of each photographic object are included in the preview image, the target part recognition model is obtained by training a sample data set, the sample data set includes a first sample image and a second sample image, the first sample image includes the complete target part of each photographic object, and the second sample image includes the incomplete target part of each photographic object.
According to an embodiment of the present application, some steps involved in the image processing methods shown in fig. 1, 4, 6, and 8 may be performed by respective units in the photographing control apparatus shown in fig. 9. The units in the shooting control apparatus shown in fig. 9 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) may be further split into multiple functionally smaller units to form one or several other units, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the shooting control apparatus may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present application, the photographing control apparatus as shown in fig. 9 may be configured by running a computer program (including program codes) capable of executing the respective steps involved in the respective methods as shown in fig. 1, 4, 6, and 8 on a general-purpose computing apparatus such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like, and a storage element, and the photographing control method of the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
Based on the same inventive concept, the principle and the advantageous effect of the shooting control apparatus provided in the embodiment of the present application for solving the problem are similar to those of the shooting control method in the embodiment of the present application for solving the problem, and for brevity, the principle and the advantageous effect of the implementation of the method can be referred to, and are not described herein again.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application, where the computer device includes at least a processor 1001, a communication interface 1002, and a memory 1003. The processor 1001, the communication interface 1002, and the memory 1003 may be connected by a bus or other means. The processor 1001 (or Central Processing Unit (CPU)) is a computing core and a control core of the terminal, and can analyze various instructions in the terminal and process various data of the terminal, for example: the CPU can be used for analyzing a power-on and power-off instruction sent to the terminal by a user and controlling the terminal to carry out power-on and power-off operation; the following steps are repeated: the CPU may transmit various types of interactive data between the internal structures of the terminal, and so on. The communication interface 1002 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.), which may be controlled by the processor 1001 for transceiving data; the communication interface 1002 can also be used for transmission and interaction of data inside the terminal. A Memory 1003 (Memory) is a Memory device in the terminal, and stores programs and data. It is understood that the memory 1003 may include a built-in memory of the terminal, and may also include an expansion memory supported by the terminal. The memory 1003 provides storage space that stores the operating system of the terminal, which may include, but is not limited to: android system, iOS system, windows Phone system, etc., which are not limited in this application.
In this embodiment, the processor 1001 executes the executable program code in the memory 1003 to perform the following operations:
acquiring a preview image acquired by a shooting device through a communication interface 1002;
performing object recognition on the preview image;
controlling zooming of the photographing apparatus according to the object recognition result.
In an optional embodiment, the processor 1001 is specifically configured to control the shooting device to adjust a shooting mode to a first shooting mode if it is detected that the target portion of the shooting object is incomplete, so that the target portion of the shooting object in the preview image is complete.
In an alternative embodiment, the controlling the photographing apparatus by the processor 1001 to enter the first photographing mode to complete the target portion of the photographic subject in the preview image may include: determining shooting parameters to be switched according to the distance between the incomplete target part of the shot object and the edge of the preview image and/or the predicted complete size corresponding to the incomplete target part, wherein the shooting parameters to be switched comprise the size and/or direction of an angle of view; and controlling the shooting equipment to adjust a shooting mode to a first shooting mode, and adjusting the shooting parameters of the shooting equipment to the shooting parameters to be switched under the first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
In an optional embodiment, the processor 1001 is further specifically configured to control zooming of the shooting device to complete the target portion of the shooting object in the preview image if the target portion of the shooting object is detected to be incomplete.
In an alternative embodiment, the processor 1001 controls the zooming of the photographing apparatus to complete the target portion of the photographing object in the preview image, and may include: determining a target object, wherein the target object is a target part of a part of parts included in the preview image; acquiring image parameters of the target object; and controlling the zooming of the shooting equipment according to the image parameters of the target object so as to complete the target part of the shooting object in the preview image.
In an alternative embodiment, the processor 1001 obtains the image parameter of the target object, and may include at least one of the following: acquiring the distance between the target object and the edge of the preview image; and acquiring the predicted size of the complete target part corresponding to the target object.
In an alternative embodiment, the processor 1001 may control the zooming of the photographing apparatus according to the image parameter of the target object to complete the target portion of the photographing object in the preview image, and may include: determining a zooming parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object; and controlling the zooming of the shooting equipment according to the zooming parameters so that all the target parts of each shooting object are included in the preview image.
In an alternative embodiment, the processor 1001 determines the zoom parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target portion corresponding to the target object, which may include: determining the distance between the complete target part corresponding to each predicted target object and the edge of the preview image according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object; and determining zoom parameters according to the distance between the predicted complete target part corresponding to each target object and the edge of the preview image.
In an alternative embodiment, the processor 1001 is further specifically configured to determine a reference distance between the target portion of each photographic subject and an edge of the preview image if it is detected that the target portion of the photographic subject is complete; and controlling the zooming of the shooting equipment according to the determined reference distances so as to adjust the reference distance between the target part and the edge of the preview image.
In an alternative embodiment, the processor 1001 may control zooming of the photographing apparatus according to the determined reference distances to adjust the reference distance between the target portion and the edge of the preview image, and may include: and when the determined reference distances exist distances which are smaller than or equal to a first numerical value, controlling the zooming of the shooting equipment so that the distance between the target part of each shooting object and the edge of the preview image is larger than the first numerical value.
In an optional embodiment, the processor 1001 is further specifically configured to determine image areas of target portions of all the photographic subjects in the preview image if it is detected that the target portions of the photographic subjects are complete; and controlling the zooming of the shooting equipment according to the occupation ratio of the image area in the preview image so as to adjust the occupation ratio of the image area in the preview image.
In an alternative embodiment, the processor 1001, according to the proportion of the image area in the preview image, controlling the zoom of the shooting device to adjust the proportion of the image area in the preview image, may include: and when the occupation ratio of the image area in the preview image is less than or equal to a second numerical value, controlling the zooming of the shooting equipment so as to ensure that the occupation ratio of the image area in the preview image is greater than the second numerical value.
In an alternative embodiment, after the processor 1001 processes the photographic subject according to a preset rule to complete the photographic subject in the preview image, the processing may include: acquiring a preview image acquired by the shooting equipment after processing; determining initial image areas where target parts of all shot objects in the preview image are located; and acquiring reference size information, and adjusting the size of the initial image area according to the reference size information.
In an alternative embodiment, the processor 1001 may be further configured to determine the number of the photographic subjects in the preview image; detecting whether the number of the shot objects is larger than or equal to a third numerical value or not to obtain a detection result; and adjusting the shooting mode of the shooting equipment according to the detection result.
In an alternative embodiment, the adjusting, by the processor 1001, the shooting mode of the shooting device according to the detection result may include: and if the detection result is that the number of the shooting objects is larger than or equal to the third numerical value, controlling the shooting equipment to enter a first shooting mode.
In an alternative embodiment, the processor 1001 may be further configured to control the photographing apparatus to adjust the photographing mode from the first photographing mode to the second photographing mode when the number of the photographing objects in the preview image changes from being greater than or equal to the third value to being less than the third value.
In an optional embodiment, the processor 1001 may be further configured to obtain a duration that the number of the photographic subjects in the preview image is smaller than the third value when the number of the photographic subjects in the preview image changes from being greater than or equal to the third value to being smaller than the third value; and adjusting the shooting mode of the shooting equipment according to the duration.
In an alternative embodiment, the processor 1001 adjusts the shooting mode of the shooting device according to the duration, which may include: detecting whether the duration is greater than or equal to a preset duration; and if the duration is greater than or equal to the preset duration, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode.
In an alternative embodiment, the adjusting, by the processor 1001, the shooting mode of the shooting device according to the detection result may include: and if the detection result is that the number of the shooting objects is smaller than the third numerical value, controlling the shooting equipment to enter a second shooting mode.
In an alternative embodiment, the processor 1001 may be further configured to determine a reference distance between a target portion of each of the photographing objects and an edge of the preview image; and adjusting the shooting mode of the shooting equipment according to the determined reference distances.
In an alternative embodiment, the adjusting, by the processor 1001, the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances have distances smaller than or equal to a fourth numerical value, controlling the shooting equipment to enter a first shooting mode.
In an alternative embodiment, the adjusting, by the processor 1001, the shooting mode of the shooting device according to the determined reference distances may include: and when the determined reference distances are all larger than the fourth numerical value, controlling the shooting equipment to enter a second shooting mode.
In an alternative embodiment, the processor 1001 detects whether the target portion of the photographic subject is complete, and may include: inputting the preview image into a target part recognition model for processing to obtain a result of whether the target part is complete or not; the result of whether the target part is complete is used to indicate whether all the target parts of each photographic object are included in the preview image, the target part recognition model is obtained by training a sample data set, the sample data set includes a first sample image and a second sample image, the first sample image includes the complete target part of each photographic object, and the second sample image includes the incomplete target part of each photographic object.
Based on the same inventive concept, the principle and the beneficial effect of the problem solving of the terminal device provided in the embodiment of the present application are similar to the principle and the beneficial effect of the problem solving of the shooting control method in the embodiment of the present application, and for brevity, the principle and the beneficial effect of the implementation of the method can be referred to, and are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where one or more instructions are stored in the computer-readable storage medium, and the one or more instructions are adapted to be loaded by a processor and to execute the shooting control method according to the above method embodiment.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be combined, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method as described in the above various possible embodiments.
An embodiment of the present application further provides a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device installed with the chip executes the method described in the foregoing various possible embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element, and further, components, features, elements, and/or steps that may be similarly named in various embodiments of the application may or may not have the same meaning, unless otherwise specified by its interpretation in the embodiment or by context with further embodiments.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or partially with other steps or at least some of the sub-steps or stages of other steps.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (25)

  1. A shooting control method, characterized by comprising:
    acquiring a preview image acquired by shooting equipment;
    recognizing a photographic object in the preview image;
    and detecting whether the target part of the shot object is complete or not, and processing the shot object according to a preset rule so as to enable the target part of the shot object in the preview image to be complete.
  2. The method according to claim 1, wherein the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image comprises:
    and if the target part of the shot object is detected to be incomplete, controlling the shooting equipment to adjust the shooting mode to a first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
  3. The method according to claim 2, wherein the controlling the photographing apparatus to enter a first photographing mode to complete a target portion of the photographic subject in the preview image comprises:
    determining shooting parameters to be switched according to the distance between the incomplete target part of the shot object and the edge of the preview image and/or the predicted complete size corresponding to the incomplete target part, wherein the shooting parameters to be switched comprise the size and/or direction of an angle of view;
    and controlling the shooting equipment to adjust a shooting mode to a first shooting mode, and adjusting the shooting parameters of the shooting equipment to the shooting parameters to be switched in the first shooting mode so as to enable the target part of the shot object in the preview image to be complete.
  4. The method according to claim 1, wherein the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image comprises:
    and if the target part of the shooting object is detected to be incomplete, controlling the zooming of the shooting equipment so as to enable the target part of the shooting object in the preview image to be complete.
  5. The method according to claim 4, wherein the controlling the zooming of the photographing apparatus to complete the target portion of the photographing object in the preview image comprises:
    determining a target object, wherein the target object is a target part of a partial part included in the preview image;
    acquiring image parameters of the target object;
    and controlling the zooming of the shooting equipment according to the image parameters of the target object so as to complete the target part of the shooting object in the preview image.
  6. The method of claim 5, wherein the obtaining of the image parameters of the target object comprises at least one of:
    acquiring the distance between the target object and the edge of the preview image;
    and acquiring the predicted size of the complete target part corresponding to the target object.
  7. The method of claim 6, wherein the controlling the zooming of the photographing apparatus according to the image parameter of the target object to complete the target portion of the photographing object in the preview image comprises:
    determining a zooming parameter according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object;
    and controlling the zooming of the shooting equipment according to the zooming parameters so as to enable the target part of the shooting object in the preview image to be complete.
  8. The method according to claim 7, wherein the zoom parameters include a center point to be zoomed and a focal length to be zoomed, and the determining the zoom parameters according to a distance between the target object and an edge of the preview image and/or a predicted size of a complete target portion corresponding to the target object comprises:
    determining the distance between the complete target part corresponding to each predicted target object and the edge of the preview image according to the distance between the target object and the edge of the preview image and/or the predicted size of the complete target part corresponding to the target object;
    and determining a central point to be zoomed and/or a focal length to be zoomed according to the predicted distance between the complete target part corresponding to each target object and the edge of the preview image.
  9. The method according to claim 1, wherein the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the photographic subject in the preview image comprises:
    if the target part of the shot object is detected to be complete, determining a reference distance between the target part of each shot object and the edge of the preview image;
    and controlling zooming of the shooting equipment according to the determined reference distances so as to adjust the reference distance between the target part and the edge of the preview image.
  10. The method of claim 9, wherein controlling the zoom of the camera to adjust the reference distance between the target portion and the edge of the preview image according to the determined respective reference distances comprises:
    and when the determined reference distances have distances smaller than or equal to a first numerical value, controlling the zooming of the shooting equipment so that the distance between the target part of each shooting object and the edge of the preview image is larger than or equal to the first numerical value.
  11. The method according to claim 1, wherein the detecting whether the target portion of the photographic subject is complete and processing the photographic subject according to a preset rule to complete the target portion of the photographic subject in the preview image comprises:
    if the target parts of the shot objects are detected to be complete, determining the image areas of the target parts of all the shot objects in the preview image;
    and controlling the zooming of the shooting equipment according to the occupation ratio of the image area in the preview image so as to adjust the occupation ratio of the image area in the preview image.
  12. The method of claim 11, wherein the controlling the zoom of the capture device to adjust the proportion of the image area in the preview image according to the proportion of the image area in the preview image comprises:
    when the occupation ratio of the image area in the preview image is smaller than or equal to a second numerical value, controlling the zooming of the shooting device so that the occupation ratio of the image area in the preview image is larger than or equal to the second numerical value.
  13. The method according to any one of claims 1 to 12, wherein the processing the photographic subject according to the preset rule to complete the photographic subject in the preview image comprises:
    acquiring a preview image acquired by the shooting equipment after processing;
    determining initial image areas where target parts of all shot objects in the preview image are located;
    and acquiring reference size information, and adjusting the size of the initial image area according to the reference size information.
  14. The method according to any one of claims 1-12, further comprising:
    determining the number of photographic objects in the preview image;
    detecting whether the number of the shot objects is larger than or equal to a third numerical value or not to obtain a detection result;
    and adjusting the shooting mode of the shooting equipment according to the detection result.
  15. The method according to claim 14, wherein the adjusting the shooting mode of the shooting device according to the detection result comprises:
    and if the detection result is that the number of the shooting objects is larger than or equal to the third numerical value, controlling the shooting equipment to enter the first shooting mode.
  16. The method of claim 15, further comprising:
    when the number of the shooting objects in the preview image is changed from being larger than or equal to the third numerical value to being smaller than the third numerical value, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode.
  17. The method of claim 15, further comprising:
    when the number of the shooting objects in the preview image is changed from being larger than or equal to the third numerical value to being smaller than the third numerical value, acquiring the duration that the number of the shooting objects in the preview image is smaller than the third numerical value;
    and adjusting the shooting mode of the shooting equipment according to the duration.
  18. The method of claim 17, wherein the adjusting the shooting mode of the shooting device according to the duration comprises:
    detecting whether the duration is greater than or equal to a preset duration;
    and if the duration is greater than or equal to the preset duration, controlling the shooting equipment to adjust the shooting mode from the first shooting mode to the second shooting mode.
  19. The method of claim 14, wherein the adjusting the shooting mode of the shooting device according to the detection result comprises:
    and if the detection result is that the number of the shooting objects is smaller than the third numerical value, controlling the shooting equipment to enter a second shooting mode.
  20. The method according to any one of claims 1-12, further comprising:
    determining a reference distance between a target part of each photographic object and an edge of the preview image;
    and adjusting the shooting mode of the shooting equipment according to the determined reference distances.
  21. The method of claim 20, wherein adjusting the shooting mode of the shooting device according to the determined respective reference distances comprises:
    and when the determined reference distances have distances smaller than or equal to a fourth numerical value, controlling the shooting equipment to enter a first shooting mode.
  22. The method of claim 20, wherein adjusting the shooting mode of the shooting device according to the determined respective reference distances comprises:
    and when the determined reference distances are all larger than or equal to a fourth numerical value, controlling the shooting equipment to enter a second shooting mode.
  23. The method according to claim 1, wherein the detecting whether the target part of the photographic subject is complete comprises:
    inputting the preview image into a target part recognition model for processing to obtain a result of whether the target part is complete or not;
    the result of whether the target part is complete is used to indicate whether all the target parts of each photographic object are included in the preview image, the target part recognition model is obtained by training a sample data set, the sample data set includes a first sample image and a second sample image, the first sample image includes the complete target part of each photographic object, and the second sample image includes the incomplete target part of each photographic object.
  24. An intelligent device comprising a processor, a memory, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of any of claims 1-23.
  25. A computer-readable storage medium, comprising: the computer-readable storage medium stores one or more instructions adapted to be loaded by a processor and to perform the method of any of claims 1-23.
CN202080102674.6A 2020-07-14 2020-07-14 Shooting control method and device, intelligent equipment and computer readable storage medium Pending CN115812308A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/101792 WO2022011534A1 (en) 2020-07-14 2020-07-14 Photographing control method and apparatus, and intelligent device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115812308A true CN115812308A (en) 2023-03-17

Family

ID=79554403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080102674.6A Pending CN115812308A (en) 2020-07-14 2020-07-14 Shooting control method and device, intelligent equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN115812308A (en)
WO (1) WO2022011534A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245022B (en) * 2022-02-23 2022-07-12 浙江宇视***技术有限公司 Scene self-adaptive shooting method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105652560A (en) * 2016-01-25 2016-06-08 广东小天才科技有限公司 Photographing method and system capable of automatically adjusting focal length
WO2019033411A1 (en) * 2017-08-18 2019-02-21 华为技术有限公司 Panoramic shooting method and device
CN110519416A (en) * 2018-05-21 2019-11-29 深圳富泰宏精密工业有限公司 Portable electronic device and photographic method
CN111263066A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Composition guiding method, composition guiding device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049711B (en) * 2015-06-30 2018-09-04 广东欧珀移动通信有限公司 A kind of photographic method and user terminal
CN106775238A (en) * 2016-12-14 2017-05-31 深圳市金立通信设备有限公司 A kind of photographic method and terminal
CN110506416B (en) * 2018-07-27 2021-10-22 华为技术有限公司 Method for switching camera by terminal and terminal
CN111263063A (en) * 2020-02-17 2020-06-09 深圳传音控股股份有限公司 Method, device and equipment for shooting image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105652560A (en) * 2016-01-25 2016-06-08 广东小天才科技有限公司 Photographing method and system capable of automatically adjusting focal length
WO2019033411A1 (en) * 2017-08-18 2019-02-21 华为技术有限公司 Panoramic shooting method and device
CN110519416A (en) * 2018-05-21 2019-11-29 深圳富泰宏精密工业有限公司 Portable electronic device and photographic method
CN111263066A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Composition guiding method, composition guiding device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2022011534A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
US11003893B2 (en) Face location tracking method, apparatus, and electronic device
CN108919958B (en) Image transmission method and device, terminal equipment and storage medium
EP3605386A1 (en) Method and apparatus for obtaining vehicle loss assessment image, server and terminal device
CN109996051B (en) Projection area self-adaptive dynamic projection method, device and system
US20160210752A1 (en) A method, apparatus, and system for displaying a graphical user interface
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
JP5886479B2 (en) IMAGING DEVICE, IMAGING ASSIST METHOD, AND RECORDING MEDIUM CONTAINING IMAGING ASSIST PROGRAM
CN110677592B (en) Subject focusing method and device, computer equipment and storage medium
CN111161131A (en) Image processing method, terminal and computer storage medium
CN109600555A (en) A kind of focusing control method, system and photographing device
CN112036311A (en) Image processing method and device based on eye state detection and storage medium
CN114641983A (en) System and method for obtaining intelligent panoramic image
CN112738388B (en) Photographing processing method and system, electronic device and storage medium
US11057563B2 (en) Image pickup device and method for controlling same
US20130308829A1 (en) Still image extraction apparatus
CN108780568A (en) A kind of image processing method, device and aircraft
CN115812308A (en) Shooting control method and device, intelligent equipment and computer readable storage medium
CN110766631A (en) Face image modification method and device, electronic equipment and computer readable medium
CN106921826B (en) Photographing mode processing method and device
CN110121030B (en) Method for storing shot image and electronic equipment
CN112580409B (en) Target object selection method and related product
CN114387157A (en) Image processing method and device and computer readable storage medium
JP2022048077A (en) Image processing apparatus and control method for the same
CN109426823B (en) AR device photographing method and device and AR device
KR102330368B1 (en) Make-up evaluation system and operating method thereof

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