CN112887610A - Shooting method, shooting device, electronic equipment and storage medium - Google Patents

Shooting method, shooting device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112887610A
CN112887610A CN202110112141.2A CN202110112141A CN112887610A CN 112887610 A CN112887610 A CN 112887610A CN 202110112141 A CN202110112141 A CN 202110112141A CN 112887610 A CN112887610 A CN 112887610A
Authority
CN
China
Prior art keywords
shooting
image
reference information
target
server
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
CN202110112141.2A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110112141.2A priority Critical patent/CN112887610A/en
Publication of CN112887610A publication Critical patent/CN112887610A/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
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

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

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: sending a current shooting preview image to a server; receiving first reference information returned by a server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image; and shooting the first object based on the first reference information to obtain a target image. According to the shooting method, the shooting device, the electronic equipment and the storage medium, the shooting parameters of the user are quickly set by calling the reference information matched with the current shooting scene of the user from other shooting terminals, so that operations such as focusing and zooming of the user are assisted, the time for setting the shooting parameters of the user is saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.

Description

Shooting method, shooting device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a shooting method, a shooting device, electronic equipment and a storage medium.
Background
In the prior art, in scenes with more people such as a concert or a sports event scene, the quality of shot pictures is poor due to factors such as more people shielding, poor shooting positions, non-static first objects and the like.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: in order to obtain the optimal photographing result, the user is often required to manually adjust the photographing parameters for performing the optimal photographing on the terminal according to the position change of the first object, but the photographing parameters cannot be quickly adjusted to the optimal photographing parameters, so that the optimal photographing opportunity is missed or the adjusted photographing effect is still poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a shooting method, an apparatus, an electronic device, and a storage medium, which can solve the problem in the prior art that optimal shooting parameter setting cannot be quickly implemented.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
sending a current shooting preview image to a server;
receiving first reference information returned by the server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image;
and shooting the first object based on the first reference information to obtain a target image.
In a second aspect, an embodiment of the present application provides an apparatus for shooting, including:
the first sending module is used for sending the current shooting preview image to the server;
the first receiving module is used for receiving the first reference information returned by the server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image;
and the first processing module is used for shooting the first object based on the first reference information to obtain a target image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when the program or the instruction is executed by the processor, the method of the first aspect is implemented.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the shooting method according to any one of the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the shooting method according to any one of the first aspect.
In the embodiment of the application, the shooting parameters of the user are quickly set by calling the reference information matched with the current shooting scene of the user from other shooting terminals so as to assist the user in focusing, zooming and other operations, so that the time for setting the shooting parameters by the user is saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.
Drawings
Fig. 1 is a schematic flow chart of a shooting method provided in an embodiment of the present application;
fig. 2 is a second schematic flowchart of a shooting method according to an embodiment of the present application;
fig. 3 is a third schematic flowchart of a shooting method according to an embodiment of the present application;
fig. 4 is one of schematic structural diagrams of a shooting device provided in an embodiment of the present application;
fig. 5 is a second schematic structural diagram of a camera according to the embodiment of the present application;
FIG. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method provided by the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
In the shooting method provided by the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the method of loading shooting. The method for shooting provided by the application is described by taking a method for a shooting device to execute loading shooting as an example.
Fig. 1 is a schematic flowchart of a shooting method provided in the present application, and as shown in fig. 1, an executing subject of the shooting method is a terminal for a user to take a picture, and the shooting method mainly includes the following steps:
and step 11, sending the current shooting preview image to the server.
Specifically, before taking a picture, each terminal has established a wireless communication connection with a server at a remote end.
The server may be a database server, and is mainly used for providing functions of data storage, data query and the like for each terminal establishing communication connection with the server. For example, the server may be embodied as a cloud platform, such as OneNet cloud platform.
And the current shooting preview image is a shooting image presented in the current shooting interface when the terminal starts shooting.
The terminal can be a mobile device with a shooting function, such as a mobile phone, an IPAD, a digital camera, and the like used by a user.
Further, the terminal may directly send the acquired current shooting preview image to the server, or may selectively send the current shooting preview image to the server according to the user's needs.
For example: the current shooting preview image may not be sent to the server in a general case, and the current shooting preview image is sent to the server only after receiving a sending input of the user on the current shooting interface of the terminal, for example, after receiving that the user clicks a sending control in the current shooting interface of the terminal.
It can also be: and automatically sending the current shooting preview image to the server under the condition that the terminal detects that the user starts the camera.
It can also be: when the user shoots the first object and detects that the current shooting preview image has abnormal conditions such as defocusing, sudden definition reduction and the like, the current shooting preview image is sent to the server.
Among them, the reasons for causing the abnormal condition may be: the sudden change of the stage lighting causes the photographed image to be unclear, the camera of the camera is lost after being temporarily shielded, the photographing target is difficult to focus due to the rapid movement of the photographing target, and the like.
And step 12, receiving the first reference information returned by the server.
The first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server based on a reference image sent by the current shooting preview image from another terminal.
In the shooting method provided by the present application, the server establishes communication connections with a plurality of user terminals in advance.
The connection between the plurality of user terminals and the server may be established by: after the same terminal software is installed on each terminal and different identification (such as an ID number) is allocated to each terminal, under the condition that a user operates the terminal software, communication connection between each terminal and a server is established.
When any terminal establishes connection with the server and shoots, the image shot in real time and the parameters of the camera during shooting can be uploaded to the server to serve as a first reference image and first reference parameters.
In the case where the user terminal has established a connection with the server, the user terminal may also transmit the currently photographed preview image to the server in real time. After receiving the current shooting preview image, the server defaults that the equipment terminal needs to acquire first reference information corresponding to the current shooting preview image.
Specifically, the server may select, as the first reference image, one closest to the current captured preview image from reference images uploaded by other terminals according to the current captured preview image sent by the user terminal. The selection criteria may be that the image capturing times are the closest, the image capturing positions are the same, the similarity of the images is the highest, and the like, and this is not particularly limited in this application.
Further, after determining the first reference image, the server may acquire the first reference information corresponding to the first parameter image, that is, acquire the reference information of the terminal uploading the first reference image when shooting the first reference image.
The first reference information may be information of a position, brightness, a focal length, and the like of the target object, and the server may automatically determine the first reference information corresponding to the first reference information according to the first reference information.
Further, the server sends the first reference information to the user terminal after acquiring the first reference information.
And step 13, carrying out shooting control based on the first reference information.
Optionally, after receiving the first reference information sent by the server, the user terminal may obtain the first reference information corresponding to the first reference information according to the first reference information, and set the shooting parameter of the camera based on the first reference information. The first reference information is the reference information corresponding to the image with the highest similarity to the current shooting preview image uploaded by other terminals, and is most probably the shooting information when the same shooting target is shot at the same time and at the close shooting position with the user terminal, so that the user can utilize the reference information to quickly set the shooting parameters of the camera. For example, the relevant parameters of the camera of the user terminal are correspondingly set according to the focusing parameter, the zooming parameter, the exposure duration, the High-Dynamic Range (HDR) fusion policy, and the like in the acquired first reference information.
According to the shooting method, the reference information matched with the current shooting scene of the user is called through other shooting terminals, the shooting parameters of the user are quickly set, so that operations such as focusing and zooming of the user are assisted, the time for setting the shooting parameters of the user is saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.
Based on the content of the foregoing embodiment, as an optional embodiment, the first reference information includes a target focusing parameter; the shooting the first object based on the first reference information to obtain a target image includes:
determining a first object in the current shooting preview image;
and under the condition that the definition of the first object is smaller than a first definition threshold value, adjusting the focusing parameters to the target focusing parameters, and carrying out shooting control based on the target focusing parameters to obtain the target image.
Optionally, the first reference information may include a target focusing parameter when the target terminal performs the first reference image capturing. The target focusing parameters refer to optimal setting parameters of the object distance and the distance of a focusing mechanism of the camera, and include setting parameters for changing the distance between a lens and an imaging surface of the camera to realize focusing.
Specifically, according to the shooting method provided by the application, after receiving the first reference information sent by the server and obtaining the target focusing parameter according to the reference information, it may be determined whether the target focusing parameter needs to be used to reset the focusing parameter of the camera.
First, a shooting target in the currently shot preview image is determined, that is, a main shooting object in the currently shot preview image is determined as a first object. For example, when the user takes a self-timer photograph, the first object may be the user's avatar; when shooting animals and plants, the first object is a corresponding animal and plant image; when scene shooting is performed, the first object may be an image of a mountain, a river, or the like. The present application does not specifically limit the number, kind, and the like of the first objects in the currently captured preview image.
After the first object in the currently captured preview image is determined, the sharpness of the first object is further determined. If the definition of the first object is too low, if the definition of the first object is lower than a preset first definition threshold, it indicates that the state of the camera shooting under the current shooting parameters is in an out-of-focus state, and it is necessary to perform focusing setting on the camera. At this time, the focusing parameters in the shooting parameters of the camera may be adjusted to the target focusing parameters, and shooting control may be performed using the target focusing parameters.
Wherein the first definition threshold value can be preset according to the requirements of a user for imaging. The lower the first definition threshold is, the lower the imaging quality requirement of the user is, and the corresponding time for adjusting the focal parameters to the target focusing parameters by the camera is correspondingly shortened; correspondingly, the higher the first definition threshold is, the higher the imaging quality requirement of the user is, and at this time, the time for the camera to adjust the focus parameter to the target focus parameter is correspondingly increased.
Further, the first definition threshold may also be automatically generated according to a camera hardware configuration of the user terminal, that is, the higher the camera hardware configuration is, the higher the first definition threshold may be set; the lower the camera hardware configuration, the lower the first sharpness threshold may be set.
According to the shooting method, after the first reference information recommended by the server is obtained, the focusing parameters can be automatically set according to the definition of the shooting target in the current shooting preview image, the shooting parameter adjusting time is effectively shortened, and the imaging quality is improved.
As an optional embodiment, the performing shooting control based on the target focusing parameter specifically includes:
outputting a first shot image based on the target focusing parameter;
acquiring the definition of the first object in the first captured image;
under the condition that the definition of the first object in the first shot image is smaller than the first definition threshold, adjusting the target focusing parameter until the definition of the first object is not smaller than the first definition threshold in the shot image obtained based on the adjusted target focusing parameter, and obtaining a final focusing parameter;
and performing shooting control on the first object based on the final focusing parameter.
According to the shooting method, after the user terminal receives the target focusing parameters recommended by the server and adjusts the shooting parameters of the camera to the target focusing parameters, the target focusing parameters recommended by the server are the result of preferential selection in the shooting parameters uploaded by other terminals, and other terminals possibly have certain differences in shooting positions, hardware configurations of the camera, the shooting positions of the terminal, the hardware configurations of the camera and the like, so that the focusing parameters recommended by the server are not necessarily the optimal focusing parameters of the first camera, namely, images shot by shooting control through the target focusing parameters cannot meet the actual requirements of the user. Therefore, after the focusing parameters are adjusted to the target focusing parameters, the shooting control based on the first shooting parameters mainly includes the following contents:
firstly, shooting is carried out by utilizing the adjusted target focusing parameters, and a first shot image is obtained. Wherein, the identifying the first shot image only in the terminal processor without displaying the first shot image on the current shooting interface comprises: and determining a first object in the first shot image, wherein the first object is the same as the first object determined in the current shot preview image, and further acquiring the definition of the first object in the first shot image.
In the method and the device, whether the quality of the shot image reaches the standard after the focusing parameter of the terminal is set as the target focusing parameter is judged through detecting the definition of the first object in the first shot image. And under the condition that the definition of the first object is greater than or equal to the first definition threshold, the quality of the shot image is up to the standard, and the shooting can be continued by using the first setting parameter as the focusing parameter of the terminal. If the definition is smaller than the first definition threshold, it indicates that the quality of the captured image does not meet the standard, and the target focusing parameter needs to be properly adjusted.
Specifically, the direction of the position adjustment of the object distance and the distance may be determined based on the positive-negative relationship of the difference between the sharpness of the first object in the first captured image and the first sharpness threshold, and the magnitude of the position adjustment of the object distance and the distance may be determined by the magnitude of the difference.
Further, after the target focusing parameter is adjusted, the adjusted shot image can be obtained again, and whether the target focusing parameter needs to be adjusted continuously or not is judged again according to the definition of the first object in the adjusted shot image. And iteratively executing the steps until the image reaching the standard is obtained, obtaining the final focusing parameter, and carrying out shooting control on the first object by using the final focusing parameter.
According to the shooting method, after focusing setting is carried out according to the first reference information recommended by the server, differences between other terminals and the terminal of the user are fully considered, shooting parameters are automatically adjusted to be optimal through analysis of the definition of the first object in the obtained shot image, and imaging quality is effectively improved.
Based on the content of the foregoing embodiment, as an optional embodiment, the first reference information includes a target scaling parameter; the shooting the first object based on the first reference information to obtain a target image includes:
under the condition that a first object in the current shooting preview image is determined and the proportion of the first object in the shooting preview image does not meet the preset proportion, adjusting the zooming parameter to the target zooming parameter;
and carrying out shooting control based on the target zooming parameter.
Optionally, in the shooting method provided by the present application, the first reference information may further include a zoom parameter (zoom parameter) when the terminal performs the first reference image shooting. The target zooming parameter refers to an optimal setting parameter recommended by the server to change the focal length of the lens, namely, to change the angle of view of the lens.
Specifically, the shooting method provided by the application can judge whether the current zooming parameter of the camera needs to be reset by using the target zooming parameter after receiving the first reference information sent by the server.
First, with the method described in the above embodiment, the target object in the currently captured preview image is determined as the first object, and after the first object in the currently captured preview image is determined, the proportion of the first object in the entire captured preview image is determined.
If the ratio of the first object in the whole shot preview image is too low or too high, for example, is lower than a preset first preset ratio or higher than a second preset ratio, it indicates that the shooting state of the camera under the current shooting parameters needs to be adjusted. At this time, the zoom parameter in the current shooting parameters of the camera may be adjusted to the target zoom parameter, and shooting control may be performed using the target zoom parameter.
The first preset proportion or the second preset proportion can be preset according to the requirements of a user on imaging.
Further, the first preset proportion or the second preset proportion may also be set autonomously by the user terminal according to a difference in the type and the number of the first objects, a distribution condition in the currently photographed preview image, the currently photographed scene, and the like.
For example, when the user photographs a star at a concert scene, if it is known that there is only one first object (a star) in the currently photographed preview image, the first preset ratio and the second preset ratio are correspondingly increased to highlight the first object. For another example, when the user shoots an outdoor scene, if it is known that the first object in the currently shot preview image is a mountain peak at a distance, the first preset proportion and the second preset proportion may be correspondingly reduced to obtain all scenes in the entire outdoor scene.
According to the shooting method, after the target zooming parameters recommended by the server are obtained, the zooming parameters can be automatically set according to the proportion of the first object in the current shooting preview image, so that the time for adjusting the shooting parameters is effectively shortened, and the imaging quality is improved.
As an optional embodiment, the performing shooting control based on the target zoom parameter specifically includes:
acquiring a second shot image;
under the condition that the proportion of the first object in the second shot image is determined not to meet the preset proportion, adjusting the target scaling parameter until the proportion of the first object in the shot image meets the preset proportion in the shot image acquired based on the adjusted target scaling parameter, and outputting a final scaling parameter;
and performing shooting control based on the final zooming parameter.
According to the shooting method, after the user terminal receives the target zooming parameters recommended by the server and adjusts the zooming parameters of the camera to the target zooming parameters, the zooming parameters recommended by the server are the result of preferential selection in the shooting parameters uploaded by other terminals, and the other terminals may have certain differences with the shooting positions of the user terminal, the hardware configuration of the camera, the personalized setting and the like due to the shooting positions, the hardware configuration of the camera, the personalized setting and the like, so that the zooming parameters recommended by the server are not necessarily the optimal zooming parameters of the camera, namely, the images shot by shooting control through the target zooming parameters cannot meet the requirements of the user. Therefore, in the present application, after the zoom parameter of the camera is adjusted to the target zoom parameter, the shooting control mainly includes the following steps:
firstly, shooting is carried out by utilizing the adjusted target zooming parameter, and a second shot image is obtained. Wherein, the step of identifying the second shot image only in the processor of the user terminal without displaying the second shot image on the current shooting interface may include: determining a first object in the second photographed image, the first object being identical to the first object determined in the current photographed preview image; further, the proportion of the first object located in the second captured image is acquired.
In the application, the proportion of the first object in the second shot image is obtained to judge whether the shot image quality reaches the standard after the zooming parameter of the terminal is set as the target zooming parameter.
Under the condition that the proportion of the first object in the second shot image meets the preset proportion (namely, the proportion is between the first preset proportion and the second preset proportion), the shot image quality is up to the standard, and then the first setting parameter can be used as the focusing parameter of the terminal to continue shooting control; when the definition is smaller than the first preset proportion or larger than the second preset proportion, it indicates that the quality of the shot image does not meet the standard, and the target zooming parameter needs to be adjusted appropriately.
Specifically, the focal length of the lens, that is, the adjustment direction of the angle of view of the lens, may be determined according to a positive-negative relationship between the ratio of the first object in the second captured image and the difference between the first preset ratio and the second preset ratio, and the adjustment range may be determined according to the magnitude of the difference. For example, in the case that the proportion of the first object is smaller than the first preset proportion, the focal length of the lens should be increased appropriately to increase the proportion of the first object in the captured image. Accordingly, the larger the difference when the proportion of the first object is smaller than the first preset proportion, the larger the magnitude of the adjustment for the increase of the focal length of the lens.
Further, after the target scaling parameter is adjusted, the shot image may be obtained again, and whether the target scaling parameter needs to be adjusted is determined again according to the proportion of the first object in the adjusted shot image.
And iteratively executing the steps until the image reaching the standard is obtained, obtaining the final focusing parameter, and carrying out shooting control on the first object by using the final focusing parameter.
According to the shooting method, after the focal length is set according to the first reference information recommended by the server, the difference between other terminals and the user terminal is fully considered, and the zooming parameters are automatically adjusted to be optimal through analysis of the proportion of the first object in the obtained shot image so as to obtain the image up to the standard, and the imaging quality is effectively improved.
Based on the content of the foregoing embodiment, as an optional embodiment, the shooting method according to claim 1, after shooting the first object based on the first reference information to obtain a target image, the method further includes:
receiving second reference information sent by the server; wherein the second reference information is reference information corresponding to a second object in a second reference image, and the second reference image is determined by the server based on the reference image retransmitted by the other photographing terminal;
and shooting the second object based on the second reference information to obtain a second image.
According to the shooting method provided by the invention, after the user terminal automatically adjusts the parameters according to the first reference information recommended by the server and shoots the target image, if the target shot by the user terminal changes, the shooting parameters are often required to be adjusted again.
The target may be changed by: a case where the subject to be photographed at the time of the target image photographing is the target a, but at a certain time, the subject is converted from a to a subject B; the object to be captured when capturing the target image may be the target a, but at a certain time, the object may be converted from a to the object a + the object B.
For example: at a certain concert site, when the star A leaves, the user terminal realizes the shooting of the target image according to the first reference image screened from all the images shot by other audiences in the same site and uploaded to the server. Wherein the first object in the first reference image is star a; accordingly, the photographic subject in the subject image is star a.
At some point, if star B is present, but the user's location may not be able to see star B for the first time, other users have begun taking a picture of star B. At this time, the user may also want to shoot star B, and at this time, the second reference information sent by the server may be received, so as to adjust the shooting parameters according to the second reference information, so that when star B enters the shooting range, star B is shot quickly to obtain the second image.
The second reference information is the reference information recommended by the server when the star B is shot by another user to obtain the second reference image. Specifically, the shooting target in the second reference image is star B.
The shooting method provided by the invention can automatically acquire the shooting reference information of other shooting terminals when shooting the changed shooting object under the condition that the shooting object is changed so as to quickly adjust the shooting parameters of the shooting terminals, is convenient for automatically and quickly performing the follow-up shooting of the shooting object, and has high adjustment speed.
Based on the content of the above embodiment, as an optional embodiment, the first reference information includes position information and movement information of the first object; the shooting the first object based on the first reference information to obtain a target image specifically includes:
determining a first moment when the first object enters a viewing area of the camera based on the position information and the movement information;
and shooting the first object at the first moment to obtain the target image.
Furthermore, in the shooting method provided by the invention, in the process that other users shoot the first object, the shooting time of each user is different; accordingly, there is a difference in the time at which each user uploads the image it takes to the server. After receiving the images uploaded by the multiple users within a time period, the server may determine the position information and the displacement information of the first object according to a time interval between any two images (denoted as image a and image B) and a position change of the first object in the image a and the image B relative to a fixed reference object, and send the position information and the displacement information to the user terminal as a part of the first reference information.
After receiving the first reference information, the user terminal analyzes the position information and the displacement information of the first target from the first reference information, and then determines the time point when the first target enters the view finding area of the camera of the first target according to the current shooting parameters, and records the time point as a first moment. Then, after the first time passes, the first object is automatically photographed according to the information of the current exposure, the zoom and the like.
The shooting method provided by the invention can acquire the position and the movement information of the shooting target from the image shot by other users on the same shooting target, and determines the time interval of the shooting target moving to the viewing area of the user terminal by combining the relative position between the current viewing area of the user terminal and the shooting target, and automatically shoots after the time interval, thereby providing preparation time for the shooting parameter adjustment of the user terminal and providing a basis for shooting a clearer image.
As an alternative embodiment, the determining the first object in the currently captured preview image includes:
receiving a first input of a user for the currently photographed preview image, and determining the first object in response to the first input;
or, determining a first object in the currently shot preview image based on an image recognition method.
The present application provides a method of how to make a first object determination in an image, comprising:
and after receiving the target focusing parameter, displaying prompt information on a current shooting interface of the terminal to prompt a user to manually confirm the first object. In the case that the receiving of the operation (such as the clicking operation on the current shooting interface) of determining the first object by the user is detected within the preset time period (such as 2 seconds), the operation of the user is firstly taken as the first object.
Further, if the operation that the user determines the first object is not detected within the preset time period, the terminal automatically performs image recognition on the current shooting preview image, and automatically recognizes the shooting object contained in the current shooting preview image as the first object.
The method for recognizing the image of the currently shot preview image may be based on a pre-constructed network model and according to features such as texture, frame and form in the image. For example, the present application is not particularly limited to recognizing a portrait in a currently captured preview image as a first object or the like by a face recognition model.
According to the shooting method, the first object in the current shooting preview image is obtained, the first reference information is automatically adjusted according to the definition and the occupied proportion of the first object, a basis is provided for completing shooting control of the first object, and the imaging quality is effectively improved.
Fig. 2 is a schematic flowchart of a shooting method provided in the present application, and as shown in fig. 2, the whole shooting process includes, but is not limited to, the following steps:
step 201: the user terminal receives an operation of a user to turn on a camera to enter a photographing mode. For example: the user clicks a camera control in the user terminal to start the camera. At this time, the user terminal receives an input of a user to start the camera, for example, a click input of a camera program application icon by the user, and displays a current photographing interface on a display screen of the user terminal in response to the input. Meanwhile, the current shooting interface comprises a current shooting preview image (namely a framing picture).
Step 202: the user selects the target to be tracked and shot in the view-finding picture, namely, the user can determine the shooting target in the view-finding picture through the input of the current shooting interface. For example: the user clicks a certain person image in the finder frame to take the person image as a shooting target.
Step 203: the terminal of the user (hereinafter, collectively referred to as a user terminal) transmits the finder screen to the server to acquire the first reference information from the server through the finder screen. That is, at the initial stage when the camera of the user terminal enters the shooting state, the shooting parameters and the reference image of the other user for the same shooting target (i.e. the first object) can be acquired from the server in real time. Wherein each reference image corresponds to a set of reference information.
And in the server, after the reference image with the maximum similarity to the view finding picture is acquired, the reference image with the highest similarity to the current user in the terminal of other users who are shooting is acquired, and the reference information is used as the first reference information and is sent to the terminal.
And after receiving the first reference information recommended by the server, the user terminal performs auxiliary focusing and automatic zooming (auto zoom) adjustment according to the target focusing parameter and the target zooming parameter in the first reference information. Then, the auxiliary shooting control is performed using the adjusted shooting parameters.
Step 204: on the one hand, in the process of performing auxiliary shooting by using the adjusted shooting parameters, when the first object is out of focus is detected, the user terminal may appropriately adjust the set target focusing parameters by using a local artificial intelligence unit to assist in completing focusing and tracking until a shot image with qualified definition is obtained, and the process proceeds to step 205. On the other hand, in the case where it is detected that the photographed first object is not out of focus, the process proceeds to step 205.
Step 205: in the case that focusing on the first object is achieved, the proportion of the first object in the current shooting preview image is further judged to determine whether composition needs to be recomposed. On the one hand, in the case that the proportion of the first object in the current shooting preview image is determined to meet the preset proportion, which indicates that the composition does not need to be recomposed, step 206 is advanced; on the other hand, in a case that it is determined that the ratio of the first object in the current preview image is not within the preset ratio range, the set target zoom parameter is adjusted by using a local artificial intelligence unit to obtain an optimal zoom parameter, so as to ensure that the ratio of the first object in the current preview image meets the preset ratio, autozoom is implemented, and then the process proceeds to step 206.
Step 206: and continuously controlling the shooting of the user terminal based on the adjusted shooting parameters, and uploading the obtained shot image (or video) and the current shooting parameters to a server in real time so as to be referred and called by other users.
Fig. 3 is a schematic flowchart of a shooting method provided in the present application, and as shown in fig. 3, an execution subject of the shooting method is a server, and the shooting method may include the following steps:
step 31: and receiving the current shooting preview image sent by the terminal user side.
Specifically, the server establishes wireless communication connection with terminals of a plurality of users in advance to receive shot images uploaded by the respective terminals and shooting parameters corresponding to each shot image in real time. On one hand, when the information sent by the terminal is confirmed to contain not only the shot image but also the reference information corresponding to the shot image, the obtained shot image and the reference information are stored; on the other hand, when it is confirmed that the information transmitted by the terminal includes only the photographed image, it is considered that the photographed image transmitted by the terminal is the current photographed preview image thereof, and it is considered that the terminal needs to acquire reference information of other users to perform photographing parameter adjustment.
Step 32: a first reference image is acquired.
The first reference image is determined from reference images transmitted from other photographing terminals based on the current photographing preview image.
And the server matches one image with the highest matching degree with the current shooting preview image from all the prestored uploaded reference images of other terminals as a first reference image under the condition that the shooting image sent by the terminal is determined to be the current shooting preview image. Wherein, the judgment criterion of the similarity may be: the closer the image capturing time, the closer the image capturing position, the closer the similarity between two captured images having substantially the same scene characteristics, and the like.
When other terminals upload shot images, the uploaded reference information comprises shooting time and shooting position information of the shot images corresponding to the reference information; meanwhile, the terminal uploads the current shooting preview image and uploads the current shooting time and shooting position.
The scene characteristics of the image can be obtained by analyzing the received shot image by the server based on an image recognition technology.
Step 33: sending first reference information to the terminal; the first reference information is reference information corresponding to the first reference image.
Further, after determining the first reference image, the server may acquire first reference information corresponding to the first reference image, that is, reference information of the terminal acquiring the first reference image when shooting the first reference image. And after acquiring the first reference information, the server sends the first reference information to the user terminal.
Further, the user terminal sets the shooting parameters of the camera based on the first reference information after receiving the first reference information sent by the server. Since the first reference information is the reference information corresponding to the image with the highest similarity to the currently photographed preview image uploaded by other users, and is most likely the photographing information when the same first object is photographed at the same time and at a close photographing position with the user terminal, the user can quickly set the photographing parameters of the camera by using the first reference information. For example, these parameters of the camera will be correspondingly set according to the focusing parameter, the zooming parameter, the exposure duration, the HDR fusion strategy, and the like in the first reference information.
According to the shooting method, the shooting parameters of the user are quickly set by calling the shooting parameters matched with the current shooting scene of the user from other shooting terminals, so that operations such as focusing and zooming of the user are assisted, the time for setting the shooting parameters by the user is saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.
Based on the content of the foregoing embodiment, as an alternative embodiment, the acquiring the first reference image may include:
and selecting a reference image with the highest image feature matching degree with the current shooting preview image as the first reference image from the reference images sent by other shooting terminals.
Specifically, the shooting method provided by the invention selects one of all reference images shot and uploaded to the server from other terminals as the first reference image with the highest image feature matching degree with the current shot preview image uploaded by the terminal.
The method for determining the image feature matching degree can be realized by utilizing pre-constructed network models such as face recognition, scene recognition and the like based on an image recognition technology. The image features may include one or more of color features, texture features, shape features, and spatial relationship features of the image.
For example, the spatial relationship feature refers to a spatial position or a relative direction relationship between a plurality of first objects divided from the image, and these relationships can be classified into a connection/adjacency relationship, an overlapping/overlapping relationship, an inclusion/containment relationship, and the like. The image feature matching degree of the reference image and the current shooting preview image can be determined according to the spatial relationship features, and the method comprises the following steps:
firstly, automatically segmenting an image to mark out an object or a color area contained in the image; then, image features are extracted according to the areas, and indexes are established so as to respectively extract spatial relationship features of the reference image and the current shooting preview image. Alternatively, the image may be directly and uniformly divided into a number of regular sub-blocks, and then features are extracted and indexes are built for each image sub-block. The method for extracting the image features may be implemented by a feature extraction method of Linear projection Analysis, such as Principal Component Analysis (PCA) or Fisher Linear Discriminant Analysis (LDA).
And finally, according to the established index of each image, comparing and determining the image characteristic matching degree according to the comparison result.
According to the shooting method, the image with the highest similarity to the current shooting preview image of the user terminal is determined from the reference images shot by other users to serve as the first shooting image, so that the shooting parameters of the other users closest to the shooting scene of the terminal are obtained to serve as first reference information, the shooting parameters of the user terminal are quickly set, the time for setting the reference information by the user is effectively saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.
Based on the content of the foregoing embodiment, as an optional embodiment, the selecting, as the first reference image, a reference image with the highest image feature matching degree with the current shooting preview image from the reference images sent by the other shooting terminals specifically includes:
receiving first shooting position information and first shooting time information corresponding to the current shooting preview image, and second shooting position information and second shooting time information corresponding to a reference image sent by any other shooting terminal;
selecting at least one reference image, as a reference image to be selected, from the reference images sent by the other shooting terminals, in which an absolute value of a time difference between the second shooting time and the first shooting time is smaller than a preset time threshold and an absolute value of a distance difference between the second shooting position and the first shooting position is smaller than a preset distance threshold;
and selecting a reference image with the highest image feature matching degree with the current shooting preview image as the first reference image in the reference images to be selected.
According to the shooting method, the purpose of quick setting is achieved mainly by acquiring the first reference information when the other terminals shoot the same first object, so that the shooting time and the shooting position are used as key factors of the image feature matching degree of the current shooting preview image and the reference image. Under the condition that the shooting time and the shooting position of the terminal are basically the same, the terminal can be effectively ensured to obtain an ideal shooting effect after the shooting parameter is adjusted to the first reference information.
Specifically, in the shooting method provided by the application, the server receives the current shooting preview image uploaded by the terminal and simultaneously acquires first shooting position information and first shooting time information corresponding to the current shooting preview image. The first shooting position information is the shooting position of the terminal for shooting the current shooting preview image; the first shooting time information is shooting time for shooting the current shooting preview image by the user terminal.
Meanwhile, when receiving the reference images uploaded by other terminals, the server acquires the shooting time information and the shooting position information corresponding to each reference image, and records the shooting time information and the shooting position information as second shooting position information and second shooting time information. Wherein the second shooting position information and the second shooting time information may be included in the shooting parameters uploaded by the user.
Further, all reference images uploaded by other shooting terminals can be screened by setting a preset time threshold and a preset distance threshold, so that part of the reference images with a larger difference between the shooting time and the current shooting time of the terminal or a longer distance between the shooting position and the current shooting position of the terminal are deleted, and the rest of the reference images are used as images to be referenced.
Further, if there are a plurality of images to be referred to, the comparison weight between the shooting time and the shooting distance may be determined, for example: setting the comparison weight of the shooting time to be 0.7, setting the comparison weight of the shooting distance to be 0.3, multiplying the absolute value of the time difference (for example, 3 seconds) of the shooting time of each image to be referenced by 0.7, and multiplying the absolute value of the distance difference (for example, 2 meters) by 0.3, so that the difference value of the image feature matching degree of each image to be referenced can be obtained to be 2.7.
And finally, comparing the difference value of the image feature matching degree of each image to be referenced, and taking the image to be referenced with the minimum difference value of the image feature matching degree as a first reference image.
According to the shooting method, the shooting time and the shooting position of the reference image and the shooting time and the shooting position of the current preview image are compared to determine the reference image with the highest image feature matching degree with the current preview image as the first reference image, and the shooting parameters of the terminal are adjusted according to the first reference information corresponding to the first reference image, so that the imaging quality is effectively improved.
Based on the content of the foregoing embodiment, as an optional embodiment, before selecting the reference image with the highest image feature matching degree with the currently-captured preview image as the first reference image, the screening the reference image to be selected specifically includes:
determining a first object in the current shooting preview image;
and deleting the part of the reference image which does not contain the first object or has the definition smaller than a second definition threshold value in the reference image to be selected.
Further, since the imaging quality of the reference image uploaded by the other terminal may be different, if the reference image with poor imaging quality is used as the first reference image to implement the parameter setting of the terminal, the imaging effect of the terminal is inevitably poor. Therefore, according to the shooting method provided by the application, before the reference image with the highest image feature matching degree with the currently shot preview image is selected from the reference images uploaded by other terminals, the second definition threshold is set, the part with the definition smaller than the second definition threshold in all the reference images is deleted, and the reference image with the highest image feature matching degree with the currently shot preview image is determined in the deleted part of the reference images.
According to the shooting method, all the reference images are preliminarily screened by setting the second definition threshold value, so that the definition of the acquired first reference image is determined to be larger than the second definition threshold value, and the imaging effect with qualified definition can be acquired after the shooting parameters are adjusted to be the first reference information at the terminal.
Based on the content of the foregoing embodiment, as an optional embodiment, the selecting, as the first reference image, a reference image with a highest degree of matching with the image feature of the currently captured preview image includes:
respectively acquiring image characteristics corresponding to any one of the reference image to be selected and the current shooting preview image based on an image recognition technology;
selecting the image feature with the highest matching degree with the image feature corresponding to the current shooting preview image as a target image feature from the image features corresponding to all the reference images to be selected;
taking the reference image to be selected corresponding to the target image characteristic as the first reference image;
the image features comprise scene features and shooting distances; the scene features include color features, texture features, shape features, and spatial relationship features.
Specifically, according to the shooting method provided by the application, firstly, all reference images are compared with shooting time and shooting distance of the current shooting preview image, and a part of reference images meeting the requirements of the shooting time and the shooting distance are acquired as reference images to be selected.
Further, an image with the highest matching degree with the image features of the currently-captured preview image may be determined as the first reference image from all the candidate reference images based on an image recognition technology, including:
based on an image recognition technology, image features of the current shooting preview image are extracted, wherein the image features comprise shooting distance between a terminal and a first object, and color features, texture features, shape features and spatial relation features of the shooting preview image.
The color features are used as global features and describe surface properties of scenes corresponding to the images or image areas, and can be extracted by adopting a color histogram method, and the method comprises the following steps: the image is first converted from the RGB color space to a visually equalized color space (e.g., HSV space) and the color space is quantized into several bins. The image is then divided into regions using an automatic color segmentation technique, each region being indexed by a color component of the quantized color space, thereby expressing the image as a binary set of color indices.
Further, in the process of matching the current shooting preview image with any reference image, the distance between the color sets corresponding to the two images and the spatial relationship of the color areas can be compared, and the reference image with the smallest difference in comparison result is determined from all the reference images.
The texture feature is also a global feature, and is used to describe the surface property of the scene corresponding to the image or the image area. The extraction of texture features can be performed by adopting a model method, which comprises the following steps: based on the structural model of the image, the parameters of the model are used as texture features, for example: a random field CRF model method, such as Markov (Markov) random field (MRF) model method or Gibbs random field model method, is used.
The shape feature extraction can be realized by adopting a boundary feature method, that is, shape parameters of the image are obtained by describing the boundary feature, for example, a boundary direction histogram method is adopted.
The spatial relationship features refer to the mutual spatial positions or relative direction relationships among a plurality of first segmented images, the relationships can be divided into connection/adjacency relationships, overlapping/overlapping relationships, inclusion/inclusion relationships and the like, and the spatial relationship features can be extracted by adopting a model-based attitude estimation method.
According to the shooting method, the image characteristics of the current shooting preview image and each reference image to be selected are extracted, so that the first reference image with the highest matching degree with the current shooting preview image is determined according to the direct matching of the image characteristics, the shooting scene of the terminal corresponding to the selected reference image when the first reference image is shot is the closest to the current shooting scene of the terminal is fully ensured, and the imaging quality of the terminal can be effectively improved.
Based on the content of the foregoing embodiment, as an optional embodiment, the first reference information includes a target focusing parameter and a target zooming parameter.
Specifically, the first reference information acquired by the terminal in the present application may include a target focusing parameter and a target zooming parameter, and may also include an exposure duration, an HDR fusion policy, and the like, which is not specifically limited in the present application.
Fig. 4 is a schematic structural diagram of a camera according to the present application, where the camera may be a terminal used by a user, such as a mobile phone, an IPD, or a digital camera. As shown in fig. 4, the apparatus mainly includes: a first sending module 41, a first receiving module 42 and a first processing module 43, wherein:
the first sending module 41 is mainly used for sending the current shooting preview image to the server;
the first receiving module 42 is mainly used for receiving the first reference information returned by the server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image;
the first processing module 43 is mainly configured to shoot the first object based on the first reference information to obtain a target image.
Specifically, in the case that it is determined that a user starts a camera on the user terminal to perform shooting or an emergency such as an angle of view or the like affecting normal shooting occurs during shooting of the user terminal, the first sending module 41 in the shooting device provided by the present application obtains a current shooting preview image presented in a current shooting interface of the user terminal, and sends the current shooting preview image to the server through a wireless communication connection established with the server.
After receiving the current shooting preview image, the server can select one reference image with the highest image feature matching degree with the current shooting preview image from the reference images uploaded by other terminals as a first reference image, and correspondingly acquire first reference information corresponding to the first reference image so as to send the first reference information to the user terminal.
Each reference image and the reference information corresponding to each reference image can be uploaded to the server by other terminals in real time.
Further, the first receiving module 42 located in the user terminal receives the first reference information returned by the server, and sends the first reference information to the first processing module 43 in the user terminal, so that the first processing module 43 performs shooting control based on the first reference information.
Specifically, after receiving the first reference information, the first processing module 43 adjusts the shooting parameters of the camera to the shooting parameters corresponding to the first reference information based on the first reference information. For example: and if the first reference information comprises a focusing parameter, a zooming parameter, an exposure duration, an HDR fusion strategy and the like, modifying the relevant shooting parameters in the user terminal by using the first reference information, and finishing the subsequent shooting by using the modified shooting parameters.
The application provides a shooting device through calling other shooting terminals and the current scene assorted reference information of shooing of user, sets up user's shooting parameter fast to realize supplementary user and focus and operations such as zoom, saved the time that the user took the setting of shooting parameter, the user of being convenient for shoots fast, and improved the quality of formation of image to a certain extent.
Optionally, the first reference information includes a target focusing parameter; the first processing module comprises a first processing submodule and a second processing submodule; the first processing submodule is used for determining a first object in the current shooting preview image, and adjusting a focusing parameter to the target focusing parameter under the condition that the definition of the first object is smaller than a first definition threshold value; and the second processing submodule is used for carrying out shooting control on the basis of the target focusing parameter to obtain the target image.
According to the shooting device, after focusing setting is carried out according to the first reference information recommended by the server, differences between other terminals and the terminal of the user are fully considered, shooting parameters are automatically adjusted to be optimal through analysis of the definition of the first object in the obtained shot image, the obtained image reaching the standard is taken as a target, and the imaging quality is effectively improved.
Optionally, the first reference information includes a target scaling parameter; the first processing module further comprises: a third processing submodule and a fourth processing submodule; the third processing submodule is used for adjusting the zooming parameter to the target zooming parameter under the condition that the first object in the current shooting preview image is determined and the proportion of the first object in the shooting preview image does not meet the preset proportion; and the fourth processing submodule is used for carrying out shooting control on the basis of the target zooming parameter to obtain the target image.
The shooting device provided by the application can automatically set the zooming parameters according to the proportion of the first object in the current shooting preview image after acquiring the target zooming parameters recommended by the server, effectively reduces the adjusting time of the shooting parameters, and improves the imaging quality.
Optionally, the first receiving module is further configured to receive second reference information sent by the server after the first object is photographed based on the first reference information to obtain a target image; wherein the second reference information is reference information corresponding to a second object in a second reference image, and the second reference image is determined by the server based on the reference image retransmitted by the other photographing terminal; the first processing module is further configured to shoot the second object based on the second reference information to obtain a second image.
The application provides a shooting device, under the condition that the shooting object has changed, can automatic acquisition other shooting terminal though the shooting reference information when the shooting object after the change shoots to adjust the shooting parameter to self rapidly, be convenient for automatic, carry out the chasing after of shooting the object fast, the adjustment rate is fast.
Optionally, the first processing module further includes: a fifth processing submodule and a sixth processing submodule; the fifth processing submodule is used for determining a first moment when the first object enters a viewing area of the camera based on the position information and the movement information under the condition that the first reference information comprises the position information and the movement information of the first object; the sixth processing submodule is used for shooting the first object at the first moment to obtain the target image.
Fig. 5 is a schematic flowchart of the shooting apparatus provided in the present application, and as shown in fig. 5, the apparatus mainly includes a second receiving module 51, a second processing module 52, and a second sending module 53, where:
the second receiving module 51 is mainly used for receiving the current shooting preview image sent by the terminal;
the second processing module 52 is mainly used for acquiring a first reference image; the first reference image is determined from reference images transmitted from other photographing terminals based on the current photographing preview image;
the second sending module 53 is mainly configured to send the first reference information to the terminal; the first reference information is reference information corresponding to the first reference image.
The second receiving module 51, the second processing module 52 and the second sending module 53 included in the shooting device provided by the present application are located in a server, and in a specific operation process, the following operations are performed:
the second receiving module 51 is mainly used for receiving the shot images uploaded by the terminals in real time and reference information corresponding to each shot image.
On the one hand, when the information sent by the terminal is received and includes not only the captured image but also the reference information corresponding to the captured image, the second receiving module 51 stores the captured image and the reference information; on the other hand, when the second receiving module 51 receives that the information transmitted by the terminal includes only the photographed image, it is determined that the photographed image transmitted by the terminal is the current photographing preview image thereof.
Further, the second receiving module 51 transmits the received current photographing preview image to the second processing module 52. The second processing module 52 matches one image with the closest matching degree to the current shooting preview image from all reference images uploaded by other terminals and stored in advance according to the current shooting preview image, and uses the one image as the first reference image. Then, first reference information corresponding to the first reference image is obtained according to the first reference image.
Wherein the first reference information and the first reference image are uploaded by one of the other terminals.
The judging factor of the similarity may be: the time of image capture, the location of image capture, the scene characteristics of the image, etc.
Further, the second sending module 53 sends the first reference information output by the second processing module 52 to the terminal, so that the terminal adjusts the reference information to the first reference information, and completes the quick setting of the camera.
The application provides a shooting device, through calling other shooting terminals and the current scene assorted reference information of shooing of user, set up user's reference information fast to realize supplementary user and focus and operations such as zoom, saved the time that the user took the parameter setting, the user of being convenient for shoots fast, and improved the quality of formation of image to a certain extent.
Optionally, the second processing module is specifically configured to: and selecting a reference image with the highest image feature matching degree with the current shooting preview image as the first reference image from the reference images sent by other shooting terminals.
The shooting device provided by the application determines an image with the highest similarity to a current shooting preview image of a terminal as a first shooting image according to reference images shot by other users, so that reference information of other users closest to a shooting scene of the terminal is acquired as the first reference information, the quick setting of shooting parameters of the terminal is completed, the time for setting the shooting parameters by the user is effectively saved, the user can conveniently and quickly shoot, and the imaging quality is improved to a certain extent.
Optionally, the second processing module includes a third processing sub-module, a fourth processing sub-module, and a fifth processing sub-module;
the third processing submodule is used for receiving first shooting position information and first shooting time information corresponding to the current shooting preview image and second shooting position information and second shooting time information corresponding to a reference image sent by any other shooting terminal;
the fourth processing sub-module is configured to select, from the reference images sent by the other shooting terminals, at least one reference image in which an absolute value of a time difference between the second shooting time and the first shooting time is smaller than a preset time threshold and an absolute value of a distance difference between the second shooting position and the first shooting position is smaller than a preset distance threshold as a to-be-selected reference image;
and the fifth processing submodule is used for selecting the reference image with the highest image feature matching degree with the currently shot preview image from the reference images to be selected as the first reference image.
Optionally, in the photographing apparatus provided by the application, the second processing module includes a first filtering unit; the first screening unit is specifically configured to:
determining a first object in the current shooting preview image; and deleting the part of the reference image which does not contain the first object or has the definition smaller than a second definition threshold value in the reference image to be selected.
The application provides a shooting system screens all reference images preliminarily by setting a second definition threshold value to confirm that the definition of the acquired first reference image is greater than the second definition threshold value, and therefore after the shooting parameters are adjusted to be the first reference information at the terminal, the effect of qualified imaging of the definition can be acquired.
Optionally, in the photographing apparatus provided by the application, the fifth processing sub-module is specifically configured to: respectively acquiring image characteristics corresponding to any one of the reference image to be selected and the current shooting preview image based on an image recognition technology;
selecting the image feature with the highest matching degree with the image feature corresponding to the current shooting preview image as a target image feature from the image features corresponding to all the reference images to be selected;
taking the reference image to be selected corresponding to the target image characteristic as the first reference image;
the image features comprise scene features and shooting distances; the scene features include color features, texture features, shape features, and spatial relationship features.
According to the shooting device, the image characteristics of the current shooting preview image and each reference image to be selected are extracted, so that the first reference image with the highest matching degree with the current shooting preview image is determined according to the direct matching of the image characteristics, the shooting scene of the terminal corresponding to the selected reference image when the first reference image is shot is the closest to the current shooting scene of the terminal, and the imaging quality of the terminal can be effectively improved.
Optionally, in the photographing apparatus provided by the present application, the first reference information includes a target focusing parameter and a target zooming parameter.
Specifically, the first reference information acquired by the terminal may include a target focusing parameter and a target zooming parameter, and may also include an exposure duration, an HDR fusion policy, and the like, which is not specifically limited in this application.
Finally, it is to be noted that: the apparatus provided in this embodiment can implement all the method steps of the above method embodiments and achieve the same technical effects, and will not be described herein again.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented by the shooting device in the method embodiments of fig. 1 to 7, and is not described herein again to avoid repetition.
Optionally, an electronic device 600 is further provided in this embodiment of the present application, as shown in fig. 6, and includes a processor 602, a memory 601, and a program or an instruction stored in the memory 601 and executable on the processor 602, where the program or the instruction is executed by the processor 602 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is mainly configured to: sending a current shooting preview image to a server; receiving first reference information returned by the server; the first reference information is reference information corresponding to a first reference image, and the first reference image is determined by the server based on the reference image sent by the current shooting preview image from other shooting terminals; and performing shooting control based on the first reference information.
Wherein, the processor 710 may also be configured to: receiving a current shooting preview image sent by a terminal; acquiring a first reference image; the first reference image is determined from reference images transmitted from other photographing terminals based on the current photographing preview image; sending first reference information to the terminal; the first reference information is reference information corresponding to the first reference image.
The shooting electronic equipment provided by the application carries out quick setting on the reference information of the user by calling the reference information matched with the current shooting scene of other shooting terminals and the user so as to realize operations such as focusing and zooming of an auxiliary user, save the time for setting the reference information by the user, facilitate quick shooting by the user and improve the imaging quality to a certain extent.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 741 and a microphone 742, and the Graphics Processing Unit 741 processes image data of a still picture or a video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 761, and the display panel 761 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 771 and other input devices 772. A touch panel 771 also referred to as a touch screen. The touch panel 771 may include two parts of a touch detection device and a touch controller. Other input devices 772 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
sending a current shooting preview image to a server;
receiving first reference information returned by the server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image;
and shooting the first object based on the first reference information to obtain a target image.
2. The photographing method according to claim 1, wherein the first reference information includes a target focus parameter; the shooting the first object based on the first reference information to obtain a target image includes:
determining the first object in the currently captured preview image;
and under the condition that the definition of the first object is smaller than a first definition threshold value, adjusting the focusing parameters to the target focusing parameters, and carrying out shooting control based on the target focusing parameters to obtain the target image.
3. The photographing method according to any one of claims 1, wherein the first reference information includes a target zoom parameter; the shooting the first object based on the first reference information to obtain a target image includes:
under the condition that the first object in the current shooting preview image is determined and the proportion of the first object in the shooting preview image does not meet the preset proportion, adjusting the zooming parameter to the target zooming parameter;
and carrying out shooting control based on the target zooming parameter to obtain the target image.
4. The photographing method according to claim 1, wherein after photographing the first object based on the first reference information to obtain a target image, the method further comprises:
receiving second reference information sent by the server; wherein the second reference information is reference information corresponding to a second object in a second reference image, and the second reference image is determined by the server based on the reference image retransmitted by the other photographing terminal;
and shooting the second object based on the second reference information to obtain a second image.
5. The photographing method according to claim 1, wherein the first reference information includes position information and movement information of the first object; the shooting the first object based on the first reference information to obtain a target image specifically includes:
determining a first moment when the first object enters a viewing area of the camera based on the position information and the movement information;
and shooting the first object at the first moment to obtain the target image.
6. A camera, comprising:
the first sending module is used for sending the current shooting preview image to the server;
the first receiving module is used for receiving the first reference information returned by the server; the first reference information is reference information corresponding to a first object in a first reference image, and the first reference image is determined by the server from reference images sent by other shooting terminals based on the current shooting preview image;
and the first processing module is used for shooting the first object based on the first reference information to obtain a target image.
7. The photographing apparatus according to claim 6, wherein the first reference information includes a target focus parameter; the first processing module comprises a first processing submodule and a second processing submodule;
the first processing submodule is used for determining a first object in the current shooting preview image, and adjusting a focusing parameter to the target focusing parameter under the condition that the definition of the first object is smaller than a first definition threshold value;
and the second processing submodule is used for carrying out shooting control on the basis of the target focusing parameter to obtain the target image.
8. The photographing apparatus according to claim 6, wherein the first reference information includes a target zoom parameter; the first processing module further comprises: a third processing submodule and a fourth processing submodule;
the third processing submodule is used for adjusting the zooming parameter to the target zooming parameter under the condition that the first object in the current shooting preview image is determined and the proportion of the first object in the shooting preview image does not meet the preset proportion;
and the fourth processing submodule is used for carrying out shooting control on the basis of the target zooming parameter to obtain the target image.
9. The shooting device of claim 6, wherein the first receiving module is further configured to receive second reference information sent by the server after shooting the first object based on the first reference information to obtain a target image; wherein the second reference information is reference information corresponding to a second object in a second reference image, and the second reference image is determined by the server based on the reference image retransmitted by the other photographing terminal;
the first processing module is further configured to shoot the second object based on the second reference information to obtain a second image.
10. The camera of claim 6, wherein the first processing module further comprises: a fifth processing submodule and a sixth processing submodule;
the fifth processing submodule is used for determining a first moment when the first object enters a viewing area of the camera based on the position information and the movement information under the condition that the first reference information comprises the position information and the movement information of the first object;
the sixth processing submodule is used for shooting the first object at the first moment to obtain the target image.
CN202110112141.2A 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and storage medium Pending CN112887610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110112141.2A CN112887610A (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110112141.2A CN112887610A (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112887610A true CN112887610A (en) 2021-06-01

Family

ID=76052787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110112141.2A Pending CN112887610A (en) 2021-01-27 2021-01-27 Shooting method, shooting device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112887610A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395456A (en) * 2021-08-17 2021-09-14 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and program product
US20220174222A1 (en) * 2020-11-30 2022-06-02 Boe Technology Group Co., Ltd. Method for marking focused pixel, electronic device, storage medium, and chip
WO2022267783A1 (en) * 2021-06-23 2022-12-29 荣耀终端有限公司 Method for determining recommended scene, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250421A (en) * 2016-07-25 2016-12-21 深圳市金立通信设备有限公司 A kind of method shooting process and terminal
CN107493426A (en) * 2017-07-05 2017-12-19 努比亚技术有限公司 A kind of information collecting method, equipment and computer-readable recording medium
CN107734142A (en) * 2017-09-15 2018-02-23 维沃移动通信有限公司 A kind of photographic method, mobile terminal and server
CN107809598A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and server
CN108347559A (en) * 2018-01-05 2018-07-31 深圳市金立通信设备有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN111355889A (en) * 2020-03-12 2020-06-30 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN111698493A (en) * 2020-06-02 2020-09-22 Oppo广东移动通信有限公司 White balance processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250421A (en) * 2016-07-25 2016-12-21 深圳市金立通信设备有限公司 A kind of method shooting process and terminal
CN107493426A (en) * 2017-07-05 2017-12-19 努比亚技术有限公司 A kind of information collecting method, equipment and computer-readable recording medium
CN107734142A (en) * 2017-09-15 2018-02-23 维沃移动通信有限公司 A kind of photographic method, mobile terminal and server
CN107809598A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and server
CN108347559A (en) * 2018-01-05 2018-07-31 深圳市金立通信设备有限公司 A kind of image pickup method, terminal and computer readable storage medium
CN111355889A (en) * 2020-03-12 2020-06-30 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN111698493A (en) * 2020-06-02 2020-09-22 Oppo广东移动通信有限公司 White balance processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220174222A1 (en) * 2020-11-30 2022-06-02 Boe Technology Group Co., Ltd. Method for marking focused pixel, electronic device, storage medium, and chip
WO2022267783A1 (en) * 2021-06-23 2022-12-29 荣耀终端有限公司 Method for determining recommended scene, and electronic device
CN113395456A (en) * 2021-08-17 2021-09-14 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and program product
CN113395456B (en) * 2021-08-17 2021-11-30 南昌龙旗信息技术有限公司 Auxiliary shooting method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN112585940B (en) System and method for providing feedback for artificial intelligence based image capture devices
US9489564B2 (en) Method and apparatus for prioritizing image quality of a particular subject within an image
CN112887610A (en) Shooting method, shooting device, electronic equipment and storage medium
US20100214445A1 (en) Image capturing method, image capturing apparatus, and computer program
WO2022111072A1 (en) Image photographing method and apparatus, and electronic device, server and storage medium
KR20140016401A (en) Method and apparatus for capturing images
CN103997598A (en) Method of tracking object using camera and camera system for object tracking
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
CN108600610A (en) Shoot householder method and device
CN112887617B (en) Shooting method and device and electronic equipment
CN112087579B (en) Video shooting method and device and electronic equipment
CN112258380A (en) Image processing method, device, equipment and storage medium
CN112954214A (en) Shooting method and device, electronic equipment and storage medium
CN110381247B (en) Image pickup apparatus and control method of image pickup apparatus
CN110581950B (en) Camera, system and method for selecting camera settings
CN111787230A (en) Image display method and device and electronic equipment
CN108683847B (en) Photographing method, device, terminal and storage medium
CN112367465B (en) Image output method and device and electronic equipment
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110956063A (en) Image processing method, device, equipment and storage medium
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN114500837B (en) Shooting method and device and electronic equipment
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
WO2018076306A1 (en) Processing method and device for photographing, and camera and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601