CN115499581A - Shooting method, shooting device, terminal equipment and storage medium - Google Patents
Shooting method, shooting device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN115499581A CN115499581A CN202210989573.6A CN202210989573A CN115499581A CN 115499581 A CN115499581 A CN 115499581A CN 202210989573 A CN202210989573 A CN 202210989573A CN 115499581 A CN115499581 A CN 115499581A
- Authority
- CN
- China
- Prior art keywords
- shooting
- color
- shot object
- shot
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 87
- 239000000463 material Substances 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 13
- 230000009467 reduction Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 25
- 239000003086 colorant Substances 0.000 abstract description 23
- 230000008569 process Effects 0.000 description 22
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 8
- 238000003384 imaging method Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000035945 sensitivity Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000003062 neural network model Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000003973 paint Substances 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000011514 reflex Effects 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000013178 mathematical model Methods 0.000 description 2
- MCSXGCZMEPXKIW-UHFFFAOYSA-N 3-hydroxy-4-[(4-methyl-2-nitrophenyl)diazenyl]-N-(3-nitrophenyl)naphthalene-2-carboxamide Chemical compound Cc1ccc(N=Nc2c(O)c(cc3ccccc23)C(=O)Nc2cccc(c2)[N+]([O-])=O)c(c1)[N+]([O-])=O MCSXGCZMEPXKIW-UHFFFAOYSA-N 0.000 description 1
- 206010070834 Sensitisation Diseases 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 235000019993 champagne Nutrition 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000000843 powder Substances 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000002310 reflectometry Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000008313 sensitization Effects 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Studio Devices (AREA)
Abstract
The application provides a shooting method, a shooting device, terminal equipment and storage equipment, and relates to the technical field of shooting. The method comprises the following steps: acquiring a shooting preview picture containing a shot object, and determining color information of the shot object from the shooting preview picture; determining shooting parameters corresponding to the color information; and shooting the shot object based on the shooting parameters to obtain a target image containing the shot object. The method and the device have the advantages that when a picture is shot, the color information of a shot object is determined through the shot preview picture, the shooting parameters matched with the color of the shot object are determined according to the color information of the shot object, the shot object is shot according to the shooting parameters matched with the color of the shot object, the target image is obtained, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the shooting effect of the shot objects with different colors is improved, the trouble that the camera setting needs to be manually adjusted after the shot objects with different colors are switched is avoided, and the shooting efficiency is improved.
Description
Technical Field
The present application relates to the field of shooting technologies, and in particular, to a shooting method, an apparatus, a terminal device, and a storage medium.
Background
When shooting through the shooting device, a user generally needs to set different shooting parameters for different shot objects so as to obtain a good shooting effect for the different shot objects.
In the related art, a camera usually has a plurality of shooting modes, and a user can select a corresponding shooting mode according to a subject to be shot when taking a picture. For example, the user needs to set the photographing mode of the camera to the portrait mode when photographing a person, to the landscape mode when photographing a landscape, to the sports mode when photographing a moving object, and so on.
However, the objects to be photographed are different in type and color, and when a user faces the objects to be photographed with different colors, the user still needs to manually adjust the photographing parameters to meet the photographing requirement of the current object to be photographed, so that the operation is complicated, and the photographing parameters are difficult to accurately adjust due to the need to manually adjust the photographing parameters, which results in poor photographing effect.
Disclosure of Invention
The embodiment of the application provides a shooting method, a shooting device, terminal equipment and a storage medium, and aims to solve the problems that in the prior art, the shooting process is complicated and the shooting effect is poor.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, a method of photographing, the method comprising:
acquiring a shooting preview picture containing the shot object, and determining color information of the shot object from the shooting preview picture;
determining shooting parameters for the shot object according to the color information;
and shooting the shot object based on the shooting parameters to obtain a target image.
Optionally, the color information includes a color category, and the determining the color information of the subject from the shooting preview screen includes:
inputting the shooting preview picture into a color recognition model to obtain a color code output by the color recognition model;
determining a color category of the subject based on the color coding.
Optionally, the determining the shooting parameters for the object according to the color information includes:
acquiring a target parameter corresponding relation, wherein the target parameter corresponding relation comprises a corresponding relation between color information and shooting parameters;
and determining shooting parameters corresponding to the color information of the shot object according to the target parameter corresponding relation.
Optionally, the method further comprises:
determining an object type of the shot object;
and determining the corresponding target parameter corresponding relation according to the object type.
Optionally, the method further comprises:
determining the current size of the shot object in a shooting preview picture and a target size set for the shot object;
and adjusting the size of the shot object to the target size.
Optionally, the resizing the subject to the target size comprises:
increasing a camera focal length if the current size is less than the target size;
reducing the camera focal length if the current size is greater than the target size.
Optionally, the capturing the object based on the capturing parameters to obtain a target image includes:
acquiring a view angle interval for the object;
and controlling a camera to move around the shot object, and shooting the shot object at the view angle interval to obtain a plurality of target images containing the shot object, wherein the target images are obtained by shooting based on the shooting parameters.
Optionally, the determining the shooting parameters for the object according to the color information includes:
determining material information of the shot object;
determining a photographing parameter for the subject based on the color information and the material information.
In a second aspect, an embodiment of the present application additionally provides a shooting apparatus, including:
an acquisition module, configured to acquire a shooting preview picture including the subject, and determine color information of the subject from the shooting preview picture;
a parameter module for determining shooting parameters for the shot object according to the color information;
and the shooting module is used for shooting the shot object based on the shooting parameters to obtain a target image.
Optionally, the color information includes a color category, and the obtaining module includes:
the color coding submodule is used for inputting the shot preview picture into a color recognition model to obtain a color code output by the color recognition model;
a color category sub-module to determine a color category of the subject based on the color coding.
Optionally, the parameter module includes:
the corresponding relation submodule is used for acquiring a corresponding relation of target parameters, and the corresponding relation of the target parameters comprises a corresponding relation of color information and shooting parameters;
and the first parameter submodule is used for determining shooting parameters corresponding to the color information of the shot object according to the target parameter corresponding relation.
Optionally, the apparatus further comprises:
the object type module is used for determining the object type of the shot object;
and the corresponding relation determining module is used for determining the corresponding target parameter corresponding relation according to the object type.
Optionally, the apparatus further comprises:
a size determination submodule for determining a current size of the subject in a shooting preview screen and a target size set for the subject;
and the size adjusting submodule is used for adjusting the size of the shot object to the target size.
Optionally, the size adjustment submodule includes:
a focal length increasing submodule for increasing the focal length of the camera if the current size is smaller than the target size;
a focal length reduction submodule to reduce the camera focal length if the current size is greater than the target size.
Optionally, the photographing module includes:
an angular interval submodule for acquiring a view angle interval for the subject;
and the shooting submodule is used for controlling a camera to move around the shot object and shooting the shot object at the view angle interval to obtain a plurality of target images containing the shot object, wherein the target images are shot based on the shooting parameters.
Optionally, the parameter module includes:
the material sub-module is used for determining the material information of the shot object;
a second parameter submodule for determining a photographing parameter for the subject based on the color information and the material information.
In a third aspect, an embodiment of the present application additionally provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the photographing method according to the first aspect.
In a fourth aspect, this embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the shooting method according to the first aspect.
In the embodiment of the application, the method comprises the following steps: acquiring a shooting preview picture containing a shot object, and determining color information of the shot object from the shooting preview picture; determining shooting parameters corresponding to the color information; and shooting the shot object based on the shooting parameters to obtain a target image containing the shot object. The method and the device can determine the color information of the shot object in the preview picture by shooting when the picture is shot, determine the shooting parameters matched with the color of the shot object according to the color information of the shot object, shoot the shot object according to the shooting parameters matched with the color of the shot object, and obtain the target image, therefore, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the same shooting parameters can be accurately set for the shot objects with the same color, the shooting consistency for the different shot objects is improved, the method and the device not only contribute to improving the shooting effect for the shot objects with different colors, but also avoid the trouble that the camera needs to be manually adjusted after the shot objects with different colors are switched, and the shooting efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a photographing method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating steps of another photographing method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a shooting device provided in an embodiment of the present application;
fig. 4 is a logic diagram of a shooting control provided in an embodiment of the present application;
fig. 5 is a flowchart illustrating steps of another photographing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a shooting device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
The shooting method provided by the embodiment of the application is applied to electronic equipment.
Referring to fig. 1, a flowchart illustrating steps of a shooting method provided in an embodiment of the present application is shown.
In the embodiment of the present application, the electronic device may be an electronic device without a Camera, such as a Personal Computer (PC), a server, and the like, and the electronic device may also be an electronic device with a Camera, such as a Single Lens Reflex Camera (SLR Camera), a non-reflective plate Camera (Mirrorless Camera), a smart phone, and the like.
When the electronic device without a camera is adopted, the electronic device without a camera and other cameras or electronic devices with cameras can jointly form a shooting system. For example, in the embodiment of the present application, the scheme may be applied to a personal computer, and the personal computer and the single lens reflex camera may be connected in a wireless or wired manner to form a shooting system together.
In a process of taking a picture, generally, a camera function needs to be turned on, and then, an image within a view range is captured by an image sensor to generate a shooting preview image, the shooting preview image is an image captured by the image sensor, and a user adjusts camera parameters, a view angle and the like according to the shooting preview image, and then presses a shutter to shoot the image after the adjustment is completed.
In the embodiment of the present application, after the shooting preview screen is acquired, color recognition may be performed on a subject (for example, a vehicle) in the shooting preview screen to determine color information of the subject in the shooting preview screen. The color information may include the main color of the object, or may include the proportion of a plurality of colors, for example, the color information of the object may be red, and the color information of the object may be (20% red +80% blue). It should be noted that the color can be represented by a color code given in the color standard, for example, the color code FF0000 represents positive red, and the color code FFFFFF represents pure white. The real-time example of the application does not specifically limit the color standard, and technicians can select a proper color standard according to actual needs.
Specifically, in an embodiment, since the subject is usually placed at the center of the picture when the picture is taken, that is, the subject is usually in the middle area in the shooting preview picture, in order to improve the efficiency of color information determination and reduce resource consumption, a preset area may be directly set at the center of the shooting preview picture, and the color of the image in the preset area is extracted to obtain the color information of the preset area, and then the color information of the preset area is directly used as the color information of the subject. Furthermore, the preset area can be adjusted according to the requirements of the user, and the user can adjust the size and the position of the preset area in the shooting preview picture according to the size and the position of the shot object in the shooting preview picture.
In another embodiment, in order to improve the accuracy of the color information determination, the object may be actively identified to determine the position of the object in the shooting preview picture and the shape of the object in the shooting preview picture, so as to accurately extract the pixel information of the area in which the object is located in the shooting preview picture, and determine the color information of the object according to the extracted pixel information.
For example, the object in the shooting preview picture can be recognized by the object recognition neural network model and the area where the object is located is determined, so as to obtain the color information of the shooting preview picture in the area as the color information of the object.
And 102, determining shooting parameters aiming at the shot object according to the color information.
In a real shooting scene, a photographer usually needs to set shooting parameters of a camera according to colors of objects to be shot, so as to obtain a better shooting effect for the objects with different colors. For example, in a scene of shooting a vehicle, since white car paint reflects more light, when shooting a white vehicle, it may be necessary to shoot at a higher shutter speed to avoid overexposure; black car paint reflects less light, so when shooting a black car, it may be necessary to shoot at a lower shutter speed to avoid underexposure; red car paints reflect light with a low color temperature (the unit of measure of the color components contained in the light), which causes the ambient light to be warm and needs to be photographed with a corresponding white balance value to obtain an image with the correct color temperature. In order to obtain a good image capturing effect for different color objects, various image capturing parameters may be determined according to the color of the object, including shutter speed (exposure time), white balance, aperture size, and sensitivity (ISO value).
The shutter speed represents the time length of opening a camera shutter when a picture is taken, the longer the time length of opening the shutter is, the more light rays participating in sensitization are, and the higher the brightness of the shot image is under the condition that other shooting parameters are not changed; conversely, the lower the brightness of the captured image.
The white balance setting can correct the color temperature deviation of the image, and the correct white balance setting can better restore the color of the shot object in shooting. If the white balance is deviated, the photographed image may deviate from the color of the subject itself, resulting in a warm or cold image color.
The camera imaging utilizes a pinhole imaging principle, light rays are imaged on an image sensor through a pinhole in a lens, an aperture is a device for controlling the size of the pinhole, the larger the aperture is, the larger the diameter of the formed pinhole is, the more light rays participate in imaging in unit time are, the smaller the aperture is, the smaller the diameter of the formed pinhole is, and the fewer light rays participate in imaging in unit time are.
Sensitivity represents the sensitivity of a negative film (image sensor) used for imaging by a camera to light, and the higher the sensitivity, the more sensitive the image sensor to light, and the higher the brightness of the imaging result with the same light flux.
In this embodiment of the application, a technician or a user may determine, in advance, shooting parameters matched with each color information according to experience or related calculation, set the shooting parameters corresponding to each color information, establish a color-parameter correspondence between the color information and one or more shooting parameters, and after obtaining the color information of a subject, may query the color-parameter correspondence according to the color information of the subject, thereby determining the required shooting parameters, where the color information may include a color code, a color name, a color identification code, or the like.
Further, the color information of the object to be shot can also be input into a preset shooting parameter determination model, so as to obtain the shooting parameters output by the shooting parameter determination model. The shooting parameter determination model can be obtained based on neural network model training, and can also be a mathematical model constructed by technicians. It should be noted that, a skilled person may construct the shooting parameter determination model according to actual needs, and the form and the generation method of the shooting parameter determination model in the embodiment of the present application are not particularly limited.
And 103, shooting the shot object based on the shooting parameters to obtain a target image.
In the embodiment of the present application, after the shooting parameters are obtained, an image may be shot based on the shooting parameters. The user can also adopt the method to shoot a plurality of pictures for the same shot object, in this case, because the color of the same shot object does not change, the shooting parameters can be determined by adopting the method only during the first shooting, and the shooting parameters determined during the first shooting are used in the subsequent shooting process, so that the shooting efficiency is improved, and the calculation resources consumed by image shooting are reduced.
For example, a user shoots a black automobile in a studio, and needs to shoot a plurality of photos to synthesize a panoramic animation of the black automobile, before shooting a first photo, color information of the black automobile can be determined by shooting a preview picture, corresponding shooting parameters are determined according to the color information of the black automobile, the shooting parameters are used for shooting a plurality of photos at different angles of the black automobile, because the light in the studio is constant, a shot object is constant, the shooting parameters are constant, the pictures of the shot photos are uniform, and the panoramic animation of the automobile with a better effect can be synthesized by the photos subsequently.
In summary, the shooting method provided by the present application includes: acquiring a shooting preview picture containing a shot object, and determining color information of the shot object from the shooting preview picture; determining shooting parameters corresponding to the color information; and shooting the shot object based on the shooting parameters to obtain a target image containing the shot object. The method and the device can determine the color information of the shot object in the preview picture by shooting when the picture is shot, determine the shooting parameters matched with the color of the shot object according to the color information of the shot object, shoot the shot object according to the shooting parameters matched with the color of the shot object, and obtain the target image, therefore, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the same shooting parameters can be accurately set for the shot objects with the same color, the shooting consistency for the different shot objects is improved, the method and the device not only contribute to improving the shooting effect for the shot objects with different colors, but also avoid the trouble that the camera needs to be manually adjusted after the shot objects with different colors are switched, and the shooting efficiency is improved.
Example two
The shooting method provided by the embodiment of the application is applied to electronic equipment.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of another shooting method provided in the embodiment of the present application, which may include the following steps:
This step can be referred to as step 101, and is not described in detail in this embodiment of the present application.
In addition, in the embodiment of the present application, the color recognition model may also be used to determine the color category of the subject. Technicians can train the neural network model through a training set formed by the sample images and the color marking information corresponding to the sample images to obtain a color recognition model capable of determining the color codes of the input images.
Optionally, step 201 may include:
in the sub-step 2011, a color recognition model is input to the photographed preview image, and a color code output by the color recognition model is obtained.
In one embodiment, the color recognition model may include two parts, namely, a subject extraction sub-model and a color recognition sub-model, and the color code of the subject in the captured preview picture may be determined by directly inputting the captured preview picture into the color recognition model, recognizing the subject by the subject extraction sub-model and determining the boundary line of the subject, inputting the image part in the boundary line in the captured preview picture into the color recognition sub-model, and performing color recognition on the image part in the boundary line by the color recognition sub-model.
In another embodiment, the color recognition model may not recognize and extract the subject in the photographing preview screen. Before inputting the color recognition model into the shooting preview picture, a preset area corresponding to the shot object is set in the shooting preview picture in an automatic or manual mode, then the color recognition model is input into the shooting preview picture in the preset area, and the color recognition model performs color recognition on the shooting preview picture in the preset area so as to determine the color code of the shot object in the shooting preview picture.
A substep 2012 of determining a color class of the subject based on the color coding.
Millions of color codes are typically included in a color standard library, and a generalized "red" may correspond to tens of thousands of different codes, such as a pink code FFC0CB, a deep red code DC143C, and so on. In the embodiment of the application, based on the cost performance consideration, it may not be necessary to set corresponding shooting parameters for each color code, and only tens or hundreds of small numbers of shooting parameters may be set, so that the shooting requirement may be met. Thus, color codes may be categorized, with multiple color codes corresponding to a color category, where a color category may include red, green, blue, purple, and the like.
For example, the technician may set 14 color categories of black, white, silver, gray, red, blue, green, yellow, orange, brown, purple, gold, powder, champagne, and associate each color code with one of the 14 color categories, thereby determining the color category to which the color code corresponds after obtaining the color code.
In the embodiment of the application, the color code is output by the color recognition model, and then the color code is converted into the color category, so that adjustment operations such as increase, decrease, deletion, modification and the like of the color category can be conveniently performed by technicians. It should be noted that the color recognition model may also be trained as a model capable of directly outputting color classes.
In this embodiment, a technician or a user may determine, in advance, shooting parameters matched with each color information according to experience or related calculation, set the shooting parameters corresponding to each color information, establish a target parameter corresponding relationship between the color information and one or more shooting parameters, and after obtaining the color information of a subject, may query the target parameter corresponding relationship according to the color information of the subject, thereby determining a required shooting parameter, where the color information may include a color category.
Further, according to the object type of the object, even if the color information is the same, different shooting parameters may need to be used for shooting, so as to obtain a better shooting effect for different types of objects. The object type may represent, among other things, the kind of object, such as a vehicle, a person, a building, a plant, etc. Thus, the technician can also set multiple sets of parameter correspondences for different object types, each set corresponding to one object type. Therefore, the corresponding target parameter corresponding relation can be determined according to the object type of the shot object.
Specifically, the target parameter correspondence corresponding to the subject may be determined by the following method of sub-step 2021 to sub-step 2022.
Step 202 may include:
substep 2021, determining an object type of the subject.
In the embodiment of the application, an object type option can be provided for a user, so that the user can select an object type corresponding to a shot object to be shot. The object type determination model can be trained in advance, and the object type determination model can be used for identifying the shot object in the shooting preview picture so as to determine the object type of the shot object. It should be noted that, a skilled person may flexibly select a method for determining an object type of a subject according to actual needs, and this is not particularly limited in the embodiment of the present application.
And substep 2022, determining a corresponding target parameter corresponding relation according to the object type.
In this embodiment of the present application, a correspondence between the object type and the parameter correspondence may also be included, and after the object type of the subject is determined, the target parameter correspondence corresponding to the object type of the subject may be determined according to the correspondence between the object type and the parameter correspondence.
Since the target parameter corresponding relationship includes the corresponding relationship between the color information and the shooting parameter, after the target parameter corresponding relationship of the shot object is obtained, the shooting parameter corresponding to the shot object can be determined according to the color information of the shot object. Therefore, the shot object can be shot through the shooting parameters in the subsequent process, and a better shooting effect is achieved.
And step 204, determining the current size of the object in the shooting preview screen and the target size set for the object.
In a plurality of shooting scenes, a plurality of corresponding pictures are generally required to be shot at a plurality of angles of the same object, so that a plurality of pictures are combined. It is necessary to make the shooting parameters the same between a plurality of images obtained by shooting a plurality of times and also to make the sizes of the objects in the plurality of images the same in order to perform the post-image synthesis. However, in order to capture multiple images, the relative position between the subject and the camera must be adjusted, which may cause the distance between the subject and the camera to change during the adjustment process, thereby affecting the effect
Therefore, in order to further improve convenience in a plurality of shooting scenes, in the embodiment of the present application, before shooting an image each time, the size of the subject in the shooting preview screen may be automatically adjusted so that the size of the subject in the shooting preview screen is the same in the image obtained by shooting each time.
Specifically, the subject in the shooting preview screen may be identified, and the current size of the subject in the shooting preview screen may be determined, and if the current size does not coincide with the target size, the size of the subject in the shooting preview screen may be adjusted to the target size. The size may be a width ratio, a height ratio, an area ratio, or the like of the subject on the shooting preview screen.
The target size may be set by the photographer before photographing, and for example, the target size may be set to 1/2 of the width of the photographing preview screen or the target size may be set to 1/3 of the height of the photographing preview screen. In addition, the size of the object in the first image captured in one multi-field capturing process may be determined as the target size, so that the size of the object in each of the subsequent images is the same as the size of the object in the first image in the multi-field capturing process. For example, a user needs to take a set (10) of vehicle pictures to generate a panoramic animation of the vehicle, and when taking the first picture, the user can directly take the picture without adjusting the size of the object according to the target size, and determine that the size of the object in the first picture obtained by shooting is 1/2 of the width of the shooting preview picture, and when taking the next 9 pictures, the user takes the 1/2 of the width of the shooting preview picture as the target size of the object every time shooting, so that the sizes of the objects in the 10 pictures obtained by shooting at this time are the same.
And step 205, adjusting the size of the shot object to the target size.
In the embodiment of the present application, the camera for photographing the subject may be a camera including a zoom function (optical zoom and/or digital zoom), and the size of the subject in the photographing preview screen may be changed by adjusting the focal length of the camera.
The camera for shooting the shot object can also be a camera mounted on a sliding rail or a mobile device, the camera can change the relative position with the shot object through the sliding rail or the mobile device so as to change the distance between the camera and the shot object, and the size of the shot object in the shooting preview picture can be adjusted based on the principle of big or small.
Optionally, step 205 may comprise:
sub-step 2051, in case the current size is smaller than the target size, increasing the camera focal length.
In the embodiment of the present application, for a shooting device equipped with an auto zoom function, the auto zoom may be directly performed by controlling the shooting device, so as to implement adjustment of the size of a subject, for a shooting device not equipped with an auto zoom function but only equipped with a manual zoom function, for example, a single lens reflex camera equipped with a manual zoom ring, a zoom device (e.g., a caricature zoom device) with a servo motor may be mounted on the zoom ring of the camera, and the zoom ring is rotated by controlling the servo motor to control the focal length of the camera, so as to implement adjustment of the size of a subject in a shooting preview screen. The zoom device can establish wired or wireless communication with the electronic equipment, receive a zoom control instruction sent by the electronic equipment, and drive a driving motor connected with a zoom ring to actuate according to the zoom control instruction, so that the control on the focal length of the camera is realized.
If the current size of the shot object is smaller than the target size, the focal length of the camera needs to be increased, the effect of zooming in the shot object is achieved, and the size of the shot object in the shooting preview picture is increased to the target size.
Sub-step 2052, in case the current size is larger than the target size, reducing the camera focal length.
If the current size of the shot object is larger than the target size, the focal length of the camera needs to be reduced, the effect of pushing away the shot object is achieved, and the size of the shot object in the shooting preview picture is reduced to the target size.
And step 206, shooting the shot object based on the shooting parameters to obtain a target image.
This step can be referred to as step 103, and is not described in detail in this embodiment of the present application.
In sub-step 2061, the viewing angle interval for the subject is acquired.
The user can set the surrounding angle range to be shot and the number of images to be shot, and the viewing angle interval between two adjacent images can be calculated according to the surrounding angle range and the number of the images, for example, the surrounding angle range set by the user is 360 degrees, and the number of the images to be shot is 10, so that the shooting device can be automatically controlled to rotate around the shot object, and the 36 degrees are used as the viewing angle interval to shoot 10 images around the shot object.
And a substep 2062 of controlling the camera to move around the object and shooting the object at the view angle interval to obtain a plurality of target images including the object, wherein the target images are shot based on the shooting parameters.
In the embodiment of the present application, the shooting device may include a shooting device capable of autonomous movement, so as to automatically shoot the object from different angles, for example, the shooting device may be formed by a camera and an annular turntable. Referring to fig. 3, fig. 3 shows a schematic diagram of a shooting device provided in an embodiment of the present application, and as shown in fig. 3, the shooting device may include an electronic device 31, a camera 32 connected (wirelessly or by wire) to the electronic device, and a turntable 33 connected to the electronic device, where the camera 32 is disposed on the turntable 33, and the camera 32 may shoot a subject 34 at different viewing angles under rotation of the turntable 33.
Referring to fig. 4, fig. 4 shows a shooting control Logic diagram provided in an embodiment of the present application, as shown in fig. 4, an electronic device may be connected to a Programmable Logic Controller (PLC) in a wired or wireless manner, and sends a rotation control signal to the PLC through a Modbus protocol, and after receiving the rotation control signal, the PLC sends a driving signal to a servo motor connected to the PLC to control the servo motor to drive a turntable on which a camera is mounted to rotate, so as to adjust a shooting angle of the camera with respect to a subject. The electronic equipment can also be connected with the zoom device in a wired or wireless mode, and sends a zoom control signal to the zoom device to drive the zoom ring of the camera to rotate, so that the focal length of the camera is adjusted. The electronic device may also connect the camera by wired or wireless means to control various functions of the camera, such as acquiring a photographing preview screen from the camera, transmitting photographing parameters to the camera, controlling the camera to photograph an image, and the like.
It should be noted that, in the process of shooting around the object, the shooting parameters may be set and the camera focal length may be adjusted by using the method in the foregoing steps. In addition, technicians may also use other methods to construct a shooting device capable of automatic movement, for example, an unmanned vehicle carrying a camera, which is not specifically limited in the embodiment of the present application.
In the embodiment of the application, the surrounding shooting of the shot object can be automatically realized, the shooting parameters are automatically set according to the information such as the color of the shot object in the shooting process, meanwhile, the size of the shot object in a plurality of images obtained through surrounding shooting can be unified through automatic zooming and other modes, and the shooting convenience and the shooting efficiency are improved.
In summary, another shooting method proposed by the present application includes: acquiring a shooting preview picture containing a shot object, and determining color information of the shot object from the shooting preview picture; determining shooting parameters corresponding to the color information; and shooting the shot object based on the shooting parameters to obtain a target image containing the shot object. The method and the device can determine the color information of the shot object in the preview picture by shooting when the picture is shot, determine the shooting parameters matched with the color of the shot object according to the color information of the shot object, shoot the shot object according to the shooting parameters matched with the color of the shot object, and obtain the target image, therefore, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the same shooting parameters can be accurately set for the shot objects with the same color, the shooting consistency for the different shot objects is improved, the method and the device not only contribute to improving the shooting effect for the shot objects with different colors, but also avoid the trouble that the camera needs to be manually adjusted after the shot objects with different colors are switched, and the shooting efficiency is improved.
EXAMPLE III
Referring to fig. 5, fig. 5 is a flowchart illustrating steps of still another shooting method provided in an embodiment of the present application, and the method may include the following steps:
This step can be referred to as step 201, and is not described in detail in this embodiment of the present application.
In addition to the effect of the color of the object on the image capturing effect, the material of the object also has a great effect on the image capturing effect. For example, if the object is made of a mirror surface material or a glossy surface material, the surface gloss is high and the reflectance is high, and if the object is made of a matte material or a matte material, the surface gloss is low and the reflectance is low. In order to capture an image of a subject having a different material, it is generally necessary to set different imaging parameters in order to obtain a good imaging effect.
In the embodiment of the application, the shooting parameters can be determined according to the material information of the shot object, so that the shot objects of different materials can be shot well.
Specifically, the preset material detection model is input into the shooting preview picture, and the material information output by the material detection model is obtained. The material detection model can be obtained based on neural network model training, and can also be a mathematical model constructed by technicians. It should be noted that, a skilled person may construct the material detection model according to actual needs, and the form and the generation method of the material detection model in the embodiment of the present application are not specifically limited. The material information may include a bright material, a matte material, and the like.
In addition, the material information of the object may be determined from the reflectance by detecting the reflectance of the object with a laser sensor. The laser sensor may transmit a predetermined intensity of the emitted light beam to the object, receive a reflected light beam of the object with the predetermined intensity of the emitted light beam, and determine the reflectivity of the object according to a ratio between the intensity of the emitted light beam and the intensity of the reflected light beam.
In an embodiment, after obtaining the color information and the material information of the object, the shooting parameters corresponding to the color information and the material information of the object may be determined according to the correspondence among the color information, the material information, and the shooting parameters. The correspondence between the three components can be preset by a technician or a user according to actual needs, and the correspondence between the three components is not specifically limited in the application.
In another embodiment, after obtaining the color information and the material information of the object, the method in the above steps may be adopted to determine the shooting parameters corresponding to the object according to the color information of the object, and then correct the shooting parameters corresponding to the object according to the material information of the object. For example, if the material information of the object is a matte material, the exposure time can be prolonged, the sensitivity can be increased, or the aperture size can be increased, so as to increase the exposure amount when the image is captured.
In the embodiment of the application, the shooting parameters for the shot object can be determined according to the color information of the shot object, and the shooting parameters for the shot object can be determined jointly according to the color information and the material information of the shot object, so that the shooting effect and the shooting efficiency for shooting the shot objects with different colors and materials are further improved.
This step can be referred to as step 204, and is not described in detail in this embodiment of the present application.
And 305, adjusting the size of the shot object to the target size.
This step can be referred to as step 205, and is not described in detail in this embodiment of the present application.
And step 306, shooting the shot object based on the shooting parameters to obtain a target image.
This step can be referred to as step 206, and is not described in detail in this embodiment of the present application.
In summary, the present application provides another shooting method, including: acquiring a shooting preview picture containing a shot object, and determining color information of the shot object from the shooting preview picture; determining shooting parameters corresponding to the color information; and shooting the shot object based on the shooting parameters to obtain a target image containing the shot object. The method and the device can determine the color information of the shot object through shooting the preview picture when a picture is shot, determine the shooting parameters matched with the color of the shot object according to the color information of the shot object, shoot the shot object according to the shooting parameters matched with the color of the shot object, and obtain the target image, therefore, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the same shooting parameters can be accurately set for the shot objects with the same color, the shooting consistency for the different shot objects can be improved, the shooting effect for the shot objects with different colors can be promoted, meanwhile, the trouble that the camera needs to be manually adjusted after the shot objects with different colors are switched is avoided, and the shooting efficiency is improved.
Example four
A shooting device provided in an embodiment of the present application is described in detail.
Referring to fig. 6, a schematic structural diagram of a shooting device provided in an embodiment of the present application is shown, as shown in fig. 6:
the shooting device of the embodiment of the application comprises: an acquisition module 501, a parameter module 502 and a shooting module 503.
The functions of the modules and the interaction relationship between the modules are described in detail below.
An acquiring module 501 is configured to acquire a shooting preview picture containing a subject, and determine color information of the subject from the shooting preview picture.
A parameter module 502, configured to determine shooting parameters for the subject according to the color information.
And a shooting module 503, configured to shoot the object based on the shooting parameters, so as to obtain a target image.
Optionally, the color information includes a color category, and the obtaining module includes:
and the color coding submodule is used for inputting the shot preview picture into the color recognition model to obtain the color code output by the color recognition model.
And the color category submodule is used for determining the color category of the shot object based on the color coding.
Optionally, the parameter module comprises:
and the corresponding relation submodule is used for acquiring a corresponding relation of the target parameters, and the corresponding relation of the target parameters comprises a corresponding relation of the color information and the shooting parameters.
And the first parameter submodule is used for determining shooting parameters corresponding to the color information of the shot object according to the target parameter corresponding relation.
Optionally, the apparatus further comprises:
and the object type module is used for determining the object type of the shot object.
And the corresponding relation determining module is used for determining the corresponding target parameter corresponding relation according to the object type.
Optionally, the apparatus further comprises:
and the size determination submodule is used for determining the current size of the shot object in the shooting preview picture and the target size set for the shot object.
And the size adjusting submodule is used for adjusting the size of the shot object to a target size.
Optionally, the resizing sub-module comprises:
and the focal length increasing submodule is used for increasing the focal length of the camera under the condition that the current size is smaller than the target size.
And the focal length reducing submodule is used for reducing the focal length of the camera under the condition that the current size is larger than the target size.
Optionally, the photographing module includes:
and the angular interval submodule is used for acquiring a view angle interval aiming at the shot object.
And the shooting submodule is used for controlling the camera to move around the shot object and shooting the shot object at a viewing angle interval to obtain a plurality of target images containing the shot object, wherein the target images are obtained by shooting based on the shooting parameters.
Optionally, the parameter module comprises:
and the material submodule is used for determining the material information of the shot object.
And the second parameter submodule is used for determining shooting parameters aiming at the shot object based on the color information and the material information.
To sum up, the present application provides a camera device, including: the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a shooting preview picture containing a shot object and determining the color information of the shot object from the shooting preview picture; the parameter module is used for determining shooting parameters aiming at the shot object according to the color information; and the shooting module is used for shooting the shot object based on the shooting parameters to obtain a target image. The method and the device can determine the color information of the shot object in the preview picture by shooting when the picture is shot, determine the shooting parameters matched with the color of the shot object according to the color information of the shot object, shoot the shot object according to the shooting parameters matched with the color of the shot object, and obtain the target image, therefore, the corresponding shooting parameters can be automatically set for the shot objects with different colors, the same shooting parameters can be accurately set for the shot objects with the same color, the shooting consistency for the different shot objects is improved, the method and the device not only contribute to improving the shooting effect for the shot objects with different colors, but also avoid the trouble that the camera needs to be manually adjusted after the shot objects with different colors are switched, and the shooting efficiency is improved.
EXAMPLE five
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present application.
The terminal device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present application, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present application, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the terminal apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The terminal device 600 further comprises at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the luminance of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the terminal apparatus 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any other suitable object or attachment). The touch panel 6071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although in fig. 7, the touch panel 6071 and the display panel 6061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the terminal device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the terminal apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 600 or may be used to transmit data between the terminal apparatus 600 and an external device.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby performing overall monitoring of the terminal device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal device 600 may further include a power supply 611 (such as a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present application further provides a terminal device, including: the processor 610, the memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the above-described shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the shooting method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 another identical element in a process, method, article, or apparatus that comprises the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed in the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (18)
1. A method of photographing, the method comprising:
acquiring a shooting preview picture containing the shot object, and determining color information of the shot object from the shooting preview picture;
determining shooting parameters for the shot object according to the color information;
and shooting the shot object based on the shooting parameters to obtain a target image.
2. The method according to claim 1, wherein the color information includes a color category, and the determining the color information of the subject from the photographing preview screen includes:
inputting the shooting preview picture into a color recognition model to obtain a color code output by the color recognition model;
determining a color class of the subject based on the color coding.
3. The method according to claim 1, wherein the determining the photographing parameters for the subject according to the color information comprises:
acquiring a target parameter corresponding relation, wherein the target parameter corresponding relation comprises a corresponding relation between color information and shooting parameters;
and determining shooting parameters corresponding to the color information of the shot object according to the target parameter corresponding relation.
4. The method of claim 2, further comprising:
determining an object type of the shot object;
and determining the corresponding target parameter corresponding relation according to the object type.
5. The method of claim 1, further comprising:
determining the current size of the shot object in a shooting preview picture and a target size set for the shot object;
and adjusting the size of the shot object to the target size.
6. The method of claim 5, wherein the resizing the subject to the target size comprises:
increasing a camera focal length if the current size is less than the target size;
reducing the camera focal length if the current size is greater than the target size.
7. The method according to claim 1, wherein the capturing the subject based on the capturing parameters to obtain a target image comprises:
acquiring a view angle interval for the object;
and controlling a camera to move around the shot object, and shooting the shot object at the view angle interval to obtain a plurality of target images containing the shot object, wherein the target images are obtained by shooting based on the shooting parameters.
8. The method according to claim 1, wherein the determining the photographing parameters for the subject according to the color information comprises:
determining material information of the shot object;
determining a photographing parameter for the subject based on the color information and the material information.
9. A camera, characterized in that the camera comprises:
the acquisition module is used for acquiring a shooting preview picture containing the shot object and determining the color information of the shot object from the shooting preview picture;
a parameter module for determining shooting parameters for the shot object according to the color information;
and the shooting module is used for shooting the shot object based on the shooting parameters to obtain a target image.
10. The apparatus of claim 1, wherein the color information comprises a color category, and wherein the obtaining module comprises:
the color coding submodule is used for inputting the shot preview picture into a color recognition model to obtain a color code output by the color recognition model;
a color category sub-module to determine a color category of the subject based on the color coding.
11. The apparatus of claim 1, wherein the parameter module comprises:
the corresponding relation submodule is used for acquiring a corresponding relation of target parameters, wherein the corresponding relation of the target parameters comprises a corresponding relation of color information and shooting parameters;
and the first parameter submodule is used for determining shooting parameters corresponding to the color information of the shot object according to the target parameter corresponding relation.
12. The apparatus of claim 2, further comprising:
the object type module is used for determining the object type of the shot object;
and the corresponding relation determining module is used for determining the corresponding target parameter corresponding relation according to the object type.
13. The apparatus of claim 1, further comprising:
a size determination submodule for determining a current size of the subject in a shooting preview screen and a target size set for the subject;
and the size adjusting submodule is used for adjusting the size of the shot object to the target size.
14. The apparatus of claim 5, wherein the resizing sub-module comprises:
a focal length increasing submodule for increasing the focal length of the camera if the current size is smaller than the target size;
a focal length reduction submodule to reduce the camera focal length if the current size is greater than the target size.
15. The apparatus of claim 1, wherein the photographing module comprises:
an angular interval submodule for acquiring a view angle interval for the subject;
and the shooting submodule is used for controlling a camera to move around the shot object and shooting the shot object at the view angle interval to obtain a plurality of target images containing the shot object, wherein the target images are shot based on the shooting parameters.
16. The apparatus of claim 1, wherein the parameter module comprises:
the material submodule is used for determining the material information of the shot object;
a second parameter submodule for determining a photographing parameter for the subject based on the color information and the material information.
17. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the photographing method according to any of claims 1 to 8.
18. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210989573.6A CN115499581B (en) | 2022-08-16 | 2022-08-16 | Shooting method, shooting device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210989573.6A CN115499581B (en) | 2022-08-16 | 2022-08-16 | Shooting method, shooting device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115499581A true CN115499581A (en) | 2022-12-20 |
CN115499581B CN115499581B (en) | 2023-11-21 |
Family
ID=84465993
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210989573.6A Active CN115499581B (en) | 2022-08-16 | 2022-08-16 | Shooting method, shooting device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115499581B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140125833A1 (en) * | 2012-11-06 | 2014-05-08 | Canon Kabushiki Kaisha | Image capturing apparatus and control method thereof |
CN104333702A (en) * | 2014-11-28 | 2015-02-04 | 广东欧珀移动通信有限公司 | Method, device and terminal for automatic focusing |
WO2017143933A1 (en) * | 2016-02-26 | 2017-08-31 | 阿里巴巴集团控股有限公司 | Method, device, mobile terminal, and camera for identifying photograph subject |
CN109600550A (en) * | 2018-12-18 | 2019-04-09 | 维沃移动通信有限公司 | A kind of shooting reminding method and terminal device |
CN111107270A (en) * | 2019-12-31 | 2020-05-05 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
WO2021051995A1 (en) * | 2019-09-17 | 2021-03-25 | 维沃移动通信有限公司 | Photographing method and terminal |
EP3833001A1 (en) * | 2019-12-05 | 2021-06-09 | Beijing Xiaomi Mobile Software Co., Ltd. | Image shooting method and device, terminal, and non-transitory storage medium for automatic shooting |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
CN113890989A (en) * | 2017-10-14 | 2022-01-04 | 华为技术有限公司 | Shooting method and electronic device |
-
2022
- 2022-08-16 CN CN202210989573.6A patent/CN115499581B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140125833A1 (en) * | 2012-11-06 | 2014-05-08 | Canon Kabushiki Kaisha | Image capturing apparatus and control method thereof |
CN104333702A (en) * | 2014-11-28 | 2015-02-04 | 广东欧珀移动通信有限公司 | Method, device and terminal for automatic focusing |
WO2017143933A1 (en) * | 2016-02-26 | 2017-08-31 | 阿里巴巴集团控股有限公司 | Method, device, mobile terminal, and camera for identifying photograph subject |
CN113890989A (en) * | 2017-10-14 | 2022-01-04 | 华为技术有限公司 | Shooting method and electronic device |
CN109600550A (en) * | 2018-12-18 | 2019-04-09 | 维沃移动通信有限公司 | A kind of shooting reminding method and terminal device |
WO2021051995A1 (en) * | 2019-09-17 | 2021-03-25 | 维沃移动通信有限公司 | Photographing method and terminal |
EP3833001A1 (en) * | 2019-12-05 | 2021-06-09 | Beijing Xiaomi Mobile Software Co., Ltd. | Image shooting method and device, terminal, and non-transitory storage medium for automatic shooting |
CN111107270A (en) * | 2019-12-31 | 2020-05-05 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
CN113709368A (en) * | 2021-08-26 | 2021-11-26 | 维沃移动通信有限公司 | Image display method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115499581B (en) | 2023-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109361865B (en) | Shooting method and terminal | |
CN109639970B (en) | Shooting method and terminal equipment | |
KR102099635B1 (en) | Method for providing guide of camera and electronic device | |
CN108399349B (en) | Image recognition method and device | |
CN106716985B (en) | Video camera controller, camera shooting control method and camera system | |
WO2020238380A1 (en) | Panoramic photography method and terminal device | |
CN107592466B (en) | Photographing method and mobile terminal | |
US20220292696A1 (en) | Photographing method and electronic device | |
CN111246106B (en) | Image processing method, electronic device, and computer-readable storage medium | |
CN107623818B (en) | Image exposure method and mobile terminal | |
CN106688228A (en) | Imaging control device, imaging control method, camera, camera system and program | |
CN107948505B (en) | Panoramic shooting method and mobile terminal | |
CN110602401A (en) | Photographing method and terminal | |
CN110062171B (en) | Shooting method and terminal | |
CN108632543B (en) | Image display method, image display device, storage medium and electronic equipment | |
CN111064895B (en) | Virtual shooting method and electronic equipment | |
US20210152750A1 (en) | Information processing apparatus and method for controlling the same | |
CN113411498B (en) | Image shooting method, mobile terminal and storage medium | |
CN111246102A (en) | Shooting method, shooting device, electronic equipment and storage medium | |
CN109905603A (en) | A kind of shooting processing method and mobile terminal | |
CN115525140A (en) | Gesture recognition method, gesture recognition apparatus, and storage medium | |
CN108718388B (en) | Photographing method and mobile terminal | |
CN110086998B (en) | Shooting method and terminal | |
CN109639981B (en) | Image shooting method and mobile terminal | |
CN111147744B (en) | Shooting method, data processing device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |