A method, apparatus, device and medium for determining a shooting parameter

By analyzing the shooting parameters of reference images, and using image processing and camera models, the target shooting parameters of the target device are determined, solving the difficulty of parameter selection for users when shooting images on mobile devices, and improving the shooting experience and image quality.

CN122120600APending Publication Date: 2026-05-29BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2024-11-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Users often lack experience when taking pictures with mobile devices, making it difficult to select appropriate shooting parameters and resulting in a poor shooting experience.

Method used

By analyzing the shooting parameters of the reference image, the target shooting parameters of the target device are determined using image processing models and camera models, guiding users to shoot images similar to the reference image.

Benefits of technology

It reduces the operational cost for users to adjust shooting parameters and improves image quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122120600A_ABST
    Figure CN122120600A_ABST
Patent Text Reader

Abstract

The application discloses a kind of shooting parameter determination method, device, equipment and medium applied to image processing technical field.In the method, reference image is obtained.Reference image is analyzed, and the image shooting parameter of reference image is determined.Image shooting parameter can reflect the shooting parameter used when shooting reference image.According to the camera parameter of target device and image shooting parameter, the target shooting parameter used when target device shoots image is determined.Based on target shooting parameter, similar image can be shot by target device with reference image presentation effect.So target shooting parameter when target device shoots similar image with reference image can be automatically determined by analyzing reference image, reduce the operation cost of user shooting image by reference image, improve the experience of user shooting image by target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, specifically to a method, apparatus, device, and medium for determining shooting parameters. Background Technology

[0002] Mobile devices are the most commonly used devices for users to take pictures. When taking pictures with a mobile device, users manually adjust the shooting parameters of the mobile device according to their shooting needs. For example, users adjust shooting parameters such as focal length, exposure, and shooting angle to adjust the shooting effect of the image.

[0003] However, users primarily rely on their shooting experience to adjust shooting parameters. When users lack sufficient experience, the shooting parameters they choose may not meet the needs of the captured images, resulting in a poor shooting experience. Summary of the Invention

[0004] In view of this, this application provides a method, apparatus, device and medium for determining shooting parameters, which can provide shooting guidance to users and improve the user's shooting experience.

[0005] The technical solution provided in this application is as follows:

[0006] Firstly, this application provides a method for determining shooting parameters, the method comprising:

[0007] Obtain a reference image;

[0008] Determine the image capture parameters of the reference image;

[0009] The target shooting parameters are determined based on the image shooting parameters and the camera parameters of the target device.

[0010] In one possible implementation, determining the image capture parameters of the reference image includes:

[0011] Determine the first perspective field parameters of the reference image;

[0012] Based on the simulated camera parameters, determine the first correspondence between the simulated shooting parameters and the second perspective field parameters;

[0013] Based on the first perspective field parameters and the first correspondence, the image capture parameters are determined.

[0014] In one possible implementation, determining the first perspective field parameters of the reference image includes:

[0015] The reference image is processed by an image processing model to obtain the first perspective field parameters output by the image processing model.

[0016] In one possible implementation, determining the first correspondence between the simulated shooting parameters and the second perspective field parameters based on the simulated camera parameters includes:

[0017] Based on the simulated camera parameters, a camera model is constructed, which is used to describe the correspondence between the camera coordinate system and the pixel coordinate system;

[0018] The first correspondence is determined based on the camera model and the simulated gravity direction.

[0019] In one possible implementation, the image capture parameters include the image focal length, and determining the target capture parameters based on the image capture parameters and the camera parameters of the target device includes:

[0020] The target focal length of the target device is determined based on the image focal length and the standard focal length of the target device.

[0021] In one possible implementation, the image capture parameters include an image pitch angle, and determining the target capture parameters based on the image capture parameters and the camera parameters of the target device includes:

[0022] The target pitch angle of the target device is determined based on the image pitch angle and the gravity direction of the target device.

[0023] Secondly, this application provides a device for determining shooting parameters, the device comprising:

[0024] The acquisition unit is used to acquire the reference image;

[0025] The first determining unit is used to determine the image capturing parameters of the reference image;

[0026] The second determining unit is used to determine the target shooting parameters based on the image shooting parameters and the camera parameters of the target device.

[0027] In one possible implementation, the first determining unit is specifically used for:

[0028] Determine the first perspective field parameters of the reference image;

[0029] Based on the simulated camera parameters, determine the first correspondence between the simulated shooting parameters and the second perspective field parameters;

[0030] Based on the first perspective field parameters and the first correspondence, the image capture parameters are determined.

[0031] In one possible implementation, the first determining unit is configured to determine the first perspective field parameters of the reference image, including:

[0032] The first determining unit is used to call the image processing model to process the reference image and obtain the first perspective field parameters output by the image processing model.

[0033] In one possible implementation, the first determining unit is configured to determine a first correspondence between simulated shooting parameters and second perspective field parameters based on simulated camera parameters, including:

[0034] The first determining unit is used to construct a camera model based on the simulated camera parameters, the camera model being used to describe the correspondence between the camera coordinate system and the pixel coordinate system; and to determine a first correspondence based on the camera model and the simulated gravity direction.

[0035] In one possible implementation, the image capture parameters include the image focal length, and the second determining unit is specifically used for:

[0036] The target focal length of the target device is determined based on the image focal length and the standard focal length of the target device.

[0037] In one possible implementation, the image acquisition parameters include the image pitch angle, and the second determining unit is specifically used for:

[0038] The target pitch angle of the target device is determined based on the image pitch angle and the gravity direction of the target device.

[0039] Thirdly, this application provides an electronic device including a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory to cause the electronic device to perform a method for determining shooting parameters as described in the first aspect or any implementation thereof.

[0040] Fourthly, this application provides a computer-readable storage medium storing instructions that instruct an electronic device to perform the method for determining shooting parameters as described in the first aspect or any implementation thereof.

[0041] Fifthly, this application provides a computer program product containing instructions that, when run on an electronic device, causes the electronic device to execute the method for determining shooting parameters as described in the first aspect or any implementation thereof.

[0042] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods.

[0043] Therefore, this application has the following beneficial effects:

[0044] This application provides a method, apparatus, device, and medium for determining shooting parameters. In this method, a reference image is acquired. The reference image is used as a reference when a user takes an image using a target device. The reference image is analyzed to determine its image shooting parameters. These image shooting parameters reflect the shooting parameters used when capturing the reference image. Then, based on the image shooting parameters and the camera parameters of the target device, the target shooting parameters used by the target device to capture the image are determined. This allows for the determination of target shooting parameters for capturing images similar to the reference image using the target device, eliminating the need for manual analysis of the reference image by the user and eliminating the need for multiple manual adjustments to the target device's shooting parameters. This reduces the operational cost for users when taking images with reference images, improves the user experience when using the target device to capture images, and results in more aesthetically pleasing images. Attached Figure Description

[0045] Figure 1 A schematic diagram illustrating an exemplary application scenario provided in the embodiments of this application;

[0046] Figure 2 A flowchart illustrating a method for determining shooting parameters provided in an embodiment of this application;

[0047] Figure 3 A flowchart illustrating another method for determining shooting parameters provided in an embodiment of this application;

[0048] Figure 4 This is a schematic diagram of the structure of a pinhole camera provided in an embodiment of this application;

[0049] Figure 5 A schematic diagram of a device for determining shooting parameters provided in an embodiment of this application;

[0050] Figure 6 This is a schematic diagram of the basic structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0051] To facilitate understanding and explanation of the technical solutions provided in the embodiments of this application, the background technology of this application will be described first.

[0052] Mobile devices typically have camera functions, allowing users to capture images. They also offer the ability to configure shooting parameters. Users can adjust these parameters to enhance the image's appearance. For example, users can adjust the focal length to zoom in or out, the shooting angle to adjust the composition, and the exposure to adjust the brightness.

[0053] Currently, shooting parameters are primarily adjusted based on user experience. In some cases, users may need to manually adjust shooting parameters multiple times, experimenting with the image effects corresponding to different parameters to obtain a better image. This process is costly for users in terms of adjusting shooting parameters and capturing images, resulting in a poor user experience. In other situations, the user-configured shooting parameters may not produce satisfactory results, also leading to a poor user experience.

[0054] Based on this, embodiments of this application provide a method for determining shooting parameters. In this method, a reference image is acquired. The reference image is a relatively aesthetically pleasing image used as a reference when the user takes images using a target device. The reference image is analyzed to determine its image shooting parameters. The image shooting parameters reflect the shooting parameters used when capturing the reference image. Then, based on the image shooting parameters and the camera parameters of the target device, the target shooting parameters used by the target device to capture the image are determined. This allows for the determination of target shooting parameters to guide the target device in capturing images similar to the reference image, eliminating the need for the user to manually analyze the reference image or adjust the target device's shooting parameters through multiple manual trials. This reduces the user's operational cost when shooting images with reference images, improves the user's experience when using the target device to capture images, and results in more aesthetically pleasing images.

[0055] To facilitate understanding of the method for determining shooting parameters provided in the embodiments of this application, the method will be described in conjunction with the accompanying drawings. The following description is based on... Figure 1 The example scenario is shown below. See also... Figure 1 As shown in the figure, this figure is a schematic diagram of an exemplary application scenario provided in the embodiments of this application.

[0056] As an example, the method for determining shooting parameters provided in this application can be applied to a server. The server can be a cloud server, such as a server in a computing cluster, or an edge server in an edge computing cluster. Of course, the server can also be a local server, and this application does not limit this.

[0057] The server connects to the client on the target device. The client on the target device provides image capture services to the user.

[0058] The server acquires a reference image. The reference image is the image that the target device uses as a reference for the image it captures. For example, the reference image could be an image generated by a device other than the target device.

[0059] The reference image is, for example, an image selected by the user through a client on the target device. The client on the target device sends the reference image to the server. The server retrieves the reference image sent by the client.

[0060] The server determines the image capture parameters of the reference image. These image capture parameters are used to determine the target capture parameters of the target device. The server obtains the camera parameters of the target device. Based on the target device's camera parameters and the image capture parameters, the server determines the target capture parameters of the target device. These target capture parameters guide the user to capture images with the target device that produce similar results to the reference image. Furthermore, the server can configure the target device's capture parameters based on the target capture parameters. As an example, the server sends a parameter configuration instruction to the user. This instruction includes the target capture parameters. The client can automatically set the target device's capture parameters to the target capture parameters based on the configuration instruction. As another example, the server sends the target capture parameters to the target device's client. The target device's client displays the target capture parameters, allowing the user to manually adjust the target device's capture parameters accordingly.

[0061] As another example, the method for determining shooting parameters provided in this application can be applied to a target device. The target device can be a mobile terminal with image shooting capabilities.

[0062] The target device acquires a reference image. This reference image can be generated by another device, a server, or the target device itself. The target device determines the image capture parameters of the reference image. The target device acquires its own camera parameters. Based on the camera parameters and the image capture parameters, the target device determines its target capture parameters. Furthermore, the target device can configure its capture parameters according to the target capture parameters. As an example, the target device displays the target capture parameters so that the user can manually adjust the target device's capture parameters accordingly. Alternatively, as another example, the target device automatically adjusts its capture parameters based on the target capture parameters.

[0063] By determining the target device's shooting parameters based on a reference image, users can capture images with the target device that are similar in quality to the reference image. This reduces user operating costs, meets users' image capture needs, and enhances the user experience.

[0064] Those skilled in the art will understand that the two application scenarios described above are merely examples of how the embodiments of this application can be implemented. The scope of application of the embodiments of this application is not limited by any aspect of the above application scenarios.

[0065] To facilitate understanding of the technical solutions provided in the embodiments of this application, the method for determining the shooting parameters provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0066] See Figure 2 As shown, this figure is a flowchart of a method for determining shooting parameters provided in an embodiment of this application. Figure 2 As shown, the method may include S201-S204:

[0067] S201: Obtain a reference image.

[0068] A reference image is an image that serves as a reference.

[0069] A reference image can be generated by a device with image-capturing capabilities. Examples include portrait images and landscape images. As another example, a reference image can be generated by a device with image processing capabilities. Such a device can generate a reference image based on acquired images, text, or other information. A reference image can also be generated by a device different from the target device. That is, an image generated by another device is used as a reference image when the target device captures an image. Alternatively, a reference image can be generated by the target device itself. For example, images previously captured by the target device can be used as a reference image when capturing the current image.

[0070] The reference image can be an image provided by a user using the target device. In some possible implementations, the reference image input by the user is acquired. In other possible implementations, candidate images available for the user to choose from are acquired in advance. These candidate images can be stored in an image library. At least one candidate image is displayed to the user so that the user can select a reference image from among them. A selection instruction triggered by the user through the target device is acquired. The selection instruction indicates the candidate image selected by the user. The candidate image selected by the user is determined based on the selection instruction and used as the reference image.

[0071] S202: Determine the image capture parameters for the reference image.

[0072] The reference image is generated according to certain image capturing parameters. These parameters are related to image capturing elements such as image distance and image angle. This application does not limit the specific content of the image capturing parameters. As an example, image capturing parameters may include one or more of focal length and pitch angle.

[0073] In one possible implementation, a reference image is processed using a preset model to generate image capture parameters for the reference image.

[0074] As an example, the default model is a single-image camera calibration model. See also Figure 3 As shown, this figure is a flowchart of another method for determining shooting parameters provided in an embodiment of this application.

[0075] As an example, a single-image camera calibration model is, for instance, a model built based on relevant image processing algorithms. This model processes the input image by combining geometric optimization and deep learning, estimating the camera's intrinsic parameters and gravity direction corresponding to the input image.

[0076] Camera intrinsics are camera parameters. They describe parameters of the camera's internal properties, including focal length, principal point (optical center) coordinates, distortion coefficients, etc. Camera intrinsics affect the quality of images captured by the camera. Camera intrinsics are typically determined during camera calibration and are fixed for specific types of target devices. Camera intrinsics are usually represented using a 3x3 matrix and contain information such as focal length, principal point coordinates, and pixel size. Camera intrinsics determine the shape and size of the 2D image the camera acquires from a 3D scene.

[0077] The direction of gravity, also known as the gravity vector, indicates the direction in which gravity acts on the Earth's surface, typically pointing towards the Earth's center. The direction of gravity is used to determine the absolute orientation of a camera, aiding in the camera calibration process.

[0078] Taking image capture parameters including focal length and pitch angle as an example, a single-image camera calibration model is used to process the reference image to obtain camera intrinsic parameters and gravity direction. The camera intrinsic parameters include the image focal length. The image pitch angle is determined based on the gravity direction.

[0079] Furthermore, the image focal length, which is included in the camera intrinsics, is represented in pixels and needs to be converted to millimeters (mm). The conversion formula is shown in formula (1):

[0080]

[0081] Where f is the focal length, measured in millimeters. p Focal length is measured in pixels. s x This refers to the width of the image sensor, measured in millimeters. x It is the pixel width of the image.

[0082] As an example, for an equivalent focal length of 35mm f... 35mm The conversion process is shown in formula (2):

[0083]

[0084] Where h is the pixel width of the image. 36mm means that the image width of 35mm film is 36mm. Formula (2) can also be equivalent to formula (3).

[0085]

[0086] FOV (Field of View) is the angular range within which a camera can receive images.

[0087] In addition, this application embodiment also provides a calculation formula for determining the image pitch angle based on the direction of gravity, as shown in formula (4).

[0088]

[0089] Where pitch is the image tilt angle. x Let a be the gravitational component along the x-axis. y Let a be the gravitational component along the y-axis. z Let z be the gravitational component along the z-axis. The z-axis is perpendicular to and opposite to gravity. The x-axis and y-axis lie in a plane perpendicular to the z-axis. The x-axis is perpendicular to the y-axis.

[0090] In another possible implementation, embodiments of this application provide a method for determining image capture parameters of a reference image, comprising the following three steps:

[0091] A1: Determine the first perspective field parameters of the reference image.

[0092] Perspective field parameters describe the perspective properties of an image. These parameters contain information about each pixel relative to the camera's view. Each pixel corresponds to the projection (up_vector) of a vertically upward direction vector onto the 2D image and its latitude value relative to the horizon. The latitude value is the angle between the line connecting the current pixel to the camera's optical center and the horizon.

[0093] This application does not limit the implementation method for determining the first perspective field parameters of the reference image. In one possible implementation, an image processing model is invoked to process the reference image to obtain the first perspective field parameters. The image processing model is a pre-trained model used to process the input image and output the perspective field parameters of the input image.

[0094] A2: Based on the simulated camera parameters, determine the first correspondence between the simulated shooting parameters and the second perspective field parameters.

[0095] Simulated camera parameters are the camera parameters of a simulated camera. A simulated camera is a camera model built based on camera principles to simulate a real camera. Based on simulated camera parameters, the image capture parameters used when capturing a reference image can be determined.

[0096] The simulated camera parameters include camera intrinsics. Based on these parameters, a camera model is constructed. The camera model describes the correspondence between the camera coordinate system and the pixel coordinate system.

[0097] This application's embodiments do not limit the type of camera used in the analog camera. Taking a pinhole camera based on the pinhole imaging principle as an example, see [link to relevant documentation]. Figure 4 As shown in the figure, this is a schematic diagram of the structure of a pinhole camera provided in an embodiment of this application. The pinhole camera includes a pixel plane and a camera plane. The pixel plane and the camera plane are parallel, and the distance between them is the focal length.

[0098] The pixel plane and the camera plane are both perpendicular to the z-axis. The x' and y' axes of the pixel coordinate system are perpendicular to the z-axis. The origin of the camera coordinate system is the optical center of the camera. The x and y axes of the camera coordinate system are perpendicular to the z-axis. The x' axis of the pixel coordinate system is parallel to the x-axis of the camera coordinate system. The y' axis of the pixel coordinate system is parallel to the y-axis of the camera coordinate system.

[0099] The expression for the camera model constructed based on the simulated camera parameters is shown in Equation (5):

[0100]

[0101] Here, matrix K represents the camera intrinsic parameters. Matrix P represents the coordinates of pixel p in the camera coordinate system. The matrix represents the coordinates of pixel p in the pixel coordinate system.

[0102] The simulated shooting parameters are the shooting parameters whose values ​​are to be determined. The first correspondence between the simulated shooting parameters and the second perspective field parameters is determined using a camera model and simulated gravity direction.

[0103] The first correspondence includes formula (6) and formula (7).

[0104]

[0105] Where matrix P represents the 3D world coordinates corresponding to pixel p. g represents the simulated gravity direction. Π represents the camera model. u p Let up_vector be the vector of pixel p. n is the direction vector from the camera optical center to pixel p. The latitude of pixel p.

[0106] A3: Determine the image capture parameters based on the first perspective field parameters and the first correspondence relationship.

[0107] Based on the first correspondence between the simulated shooting parameters and the second perspective field parameters determined in step A2, and the first perspective field parameters, the image shooting parameters are determined.

[0108] As an example, the second perspective field parameter is set as the first perspective field parameter, and the values ​​of the simulated shooting parameters are determined based on the first correspondence to obtain the image shooting parameters.

[0109] As another example, the simulated shooting parameters are adjusted. If the difference between the second perspective field parameter and the first perspective field parameter is less than a difference threshold, the simulated shooting parameters with the determined values ​​are used as the image shooting parameters. The difference threshold is a pre-set threshold used to determine the image shooting parameters.

[0110] S203: Determine the target shooting parameters based on the image shooting parameters and the camera parameters of the target device.

[0111] The image capture parameters determined in step S202 above are capture parameters determined from the image dimension. Based on the image capture parameters, the device dimension capture parameters are determined, which are the target capture parameters for the target device, in order to guide the user in using the target device to capture images.

[0112] As an example, the camera parameters of the target device include one or more of the following three parameters: camera intrinsic parameters, camera extrinsic parameters, and gravity direction.

[0113] Camera extrinsic parameters describe the camera's position and orientation in the world coordinate system, typically including rotation matrices and translation vectors. Camera extrinsic parameters affect the camera's viewing angle and position relative to the subject. Camera extrinsic parameters are not fixed parameters. For the same target device, the camera's position and orientation may differ at different times of shooting, and the camera extrinsic parameters will change accordingly.

[0114] The gravitational direction of the target device is used to determine its absolute orientation. This gravitational direction is obtained, for example, by measuring the target device's inertial measurement unit (IMU). The IMU measures the target device's three-axis attitude angles and acceleration.

[0115] The types of parameters included in the image capture parameters are the same as those included in the target capture parameters. The specific types of parameters included in the target device's camera parameters can be determined based on the types of parameters included in the image capture parameters.

[0116] As an example, image capture parameters include image focal length. Target capture parameters include target focal length. Target focal length is the focal length that the target device aims to achieve when capturing the image. The target device's camera parameters include the target device's standard focal length.

[0117] The standard focal length of a target device typically refers to its equivalent focal length on a 35mm full-frame camera. The standard focal length of the target device can be obtained from its device information. Based on the target device's standard focal length and image focal length, the target focal length is determined. The target focal length is expressed, for example, as a zoom factor. See [example image / description].Figure 3 As shown, the standard focal length of the target device is used as the reference for the zoom of the target device. Based on the image focal length and the standard focal length, the zoom factor of the target device, i.e., the target focal length, is determined.

[0118] As another example, image capture parameters include the image pitch angle. Target capture parameters include the target pitch angle. The target pitch angle is the pitch angle that the target device aims to achieve when capturing the image. The target device's camera parameters include the target device's gravity direction. Based on the image pitch angle and the target device's gravity direction, the target pitch angle of the target device is determined. The target pitch angle is, for example, a pitch angle difference. See also, as an example. Figure 3 As shown, the current pitch angle of the target device is determined based on the direction of gravity of the target device. The difference between the image pitch angle and the current pitch angle is calculated to obtain the target pitch angle.

[0119] In some possible cases, after determining the target shooting parameters, the device shooting parameters of the target device can be configured according to the target shooting parameters.

[0120] The target device's shooting parameters can be the current shooting parameters of the target device when shooting an image, or the preset shooting parameters used by the target device each time an image is shot.

[0121] In one possible implementation, the target device displays target imaging parameters. The user can adjust the device's imaging parameters by referring to these displayed parameters, thus capturing images using the target device while referencing a reference image. As an example, the target imaging parameters include the target pitch angle. See also... Figure 3 As shown, the target device displays the target pitch angle. Based on this displayed pitch angle, the user can manually adjust the target device's attitude to match its current pitch angle. This guides the user in adjusting shooting parameters without requiring multiple attempts, reducing user workload and enhancing the shooting experience.

[0122] In another possible implementation, the device's shooting parameters are set to the target shooting parameters. As an example, a parameter configuration instruction is generated based on the target shooting parameters. The parameter configuration instruction includes the target shooting parameters. The target device automatically sets its own shooting parameters to the target shooting parameters based on the parameter configuration instruction. For example, the target shooting parameters might include a target focal length. See also... Figure 3 As shown, the target device adjusts the current focal length to the target focal length based on parameter configuration commands, achieving automatic focal length adjustment. This reduces manual operation by the user, lowers user operating costs, and improves the user's shooting experience.

[0123] Based on the above, it is clear that by analyzing reference images, the target shooting parameters used by the target device when capturing images can be determined. This allows for guidance on image capture using the target device, referencing the shooting angle, shooting distance, and other effects of the reference image, thus helping users capture images with the target device that produce similar results to the reference image. This reduces user operating costs, increases user satisfaction with the captured images, and enhances the user experience.

[0124] Based on the method for determining shooting parameters provided in the above embodiments, this application also provides a device for determining shooting parameters. The device for determining shooting parameters will be described below with reference to the accompanying drawings.

[0125] See Figure 5 As shown, this figure is a schematic diagram of the structure of a device for determining shooting parameters provided in an embodiment of this application. Figure 5 As shown, the device for determining the shooting parameters includes:

[0126] Acquisition unit 501 is used to acquire a reference image;

[0127] The first determining unit 502 is used to determine the image capturing parameters of the reference image;

[0128] The second determining unit 503 is used to determine the target shooting parameters based on the image shooting parameters and the camera parameters of the target device.

[0129] In one possible implementation, the first determining unit 502 is specifically used for:

[0130] Determine the first perspective field parameters of the reference image;

[0131] Based on the simulated camera parameters, determine the first correspondence between the simulated shooting parameters and the second perspective field parameters;

[0132] Based on the first perspective field parameters and the first correspondence, the image capture parameters are determined.

[0133] In one possible implementation, the first determining unit 502 is configured to determine the first perspective field parameters of the reference image, including:

[0134] The first determining unit 502 is used to call the image processing model to process the reference image and obtain the first perspective field parameters output by the image processing model.

[0135] In one possible implementation, the first determining unit 502 is configured to determine a first correspondence between the simulated shooting parameters and the second perspective field parameters based on the simulated camera parameters, including:

[0136] The first determining unit 502 is used to construct a camera model based on the simulated camera parameters, the camera model being used to describe the correspondence between the camera coordinate system and the pixel coordinate system; and to determine a first correspondence based on the camera model and the simulated gravity direction.

[0137] In one possible implementation, the image capture parameters include the image focal length, and the second determining unit 503 is specifically used for:

[0138] The target focal length of the target device is determined based on the image focal length and the standard focal length of the target device.

[0139] In one possible implementation, the image acquisition parameters include the image pitch angle, and the second determining unit 503 is specifically used for:

[0140] The target pitch angle of the target device is determined based on the image pitch angle and the gravity direction of the target device.

[0141] The following is for reference. Figure 6 This document illustrates a structural schematic diagram of an electronic device 600 suitable for implementing embodiments of this application. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Android Devices), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs (televisions), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0142] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0143] Typically, the following devices can be connected to I / O interface 605: input devices including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0144] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of the embodiments of this application.

[0145] The electronic device provided in this application embodiment and the method for determining shooting parameters provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0146] Based on the method for determining shooting parameters provided in the above embodiments, this application provides a computer storage medium storing a computer program thereon, wherein the program, when executed by a processor, implements the method for determining shooting parameters as described in any of the above embodiments.

[0147] It should be noted that the computer-readable medium described above in this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0148] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0149] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0150] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the aforementioned method for determining the shooting parameters.

[0151] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0153] The units described in the embodiments of this application can be implemented in software or in hardware. The name of the unit / module does not necessarily limit the unit itself; for example, a voice data acquisition module can also be described as a "data acquisition module".

[0154] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0155] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0156] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.

[0157] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0158] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0159] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining shooting parameters, characterized in that, The method includes: Obtain a reference image; Determine the image capture parameters of the reference image; The target shooting parameters are determined based on the image shooting parameters and the camera parameters of the target device.

2. The method according to claim 1, characterized in that, Determining the image capture parameters of the reference image includes: Determine the first perspective field parameters of the reference image; Based on the simulated camera parameters, determine the first correspondence between the simulated shooting parameters and the second perspective field parameters; Based on the first perspective field parameters and the first correspondence, the image capture parameters are determined.

3. The method according to claim 2, characterized in that, Determining the first perspective field parameters of the reference image includes: The reference image is processed by an image processing model to obtain the first perspective field parameters output by the image processing model.

4. The method according to claim 2, characterized in that, The step of determining the first correspondence between the simulated shooting parameters and the second perspective field parameters based on the simulated camera parameters includes: Based on the simulated camera parameters, a camera model is constructed, which is used to describe the correspondence between the camera coordinate system and the pixel coordinate system; The first correspondence is determined based on the camera model and the simulated gravity direction.

5. The method according to claim 1, characterized in that, The image capture parameters include the image focal length. Determining the target capture parameters based on the image capture parameters and the camera parameters of the target device includes: The target focal length of the target device is determined based on the image focal length and the standard focal length of the target device.

6. The method according to claim 1, characterized in that, The image capture parameters include the image pitch angle. Determining the target capture parameters based on the image capture parameters and the camera parameters of the target device includes: The target pitch angle of the target device is determined based on the image pitch angle and the gravity direction of the target device.

7. A device for determining shooting parameters, characterized in that, The device includes: The acquisition unit is used to acquire the reference image; The first determining unit is used to determine the image capturing parameters of the reference image; The second determining unit is used to determine the target shooting parameters based on the image shooting parameters and the camera parameters of the target device.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory; The processor is configured to execute instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Includes instructions that instruct an electronic device to perform the method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes computer-readable instructions for implementing the method according to any one of claims 1 to 6.