Shooting parameter adjusting method and device and electronic equipment
By automatically adjusting shooting parameters based on the user's grip position obtained through the teleconverter lens, the problem of cumbersome shooting parameter adjustments in existing technologies is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202511497260.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-20
- Publication Date
- 2025-12-16
AI Technical Summary
The current mobile phone camera's shooting parameter adjustment method is cumbersome, resulting in a poor user experience, requiring frequent clicks or swipes on the screen to adjust parameters.
By acquiring the user's grip position on the teleconverter lens, the system automatically adjusts shooting parameters and updates the preview interface, reducing reliance on screen operation.
It simplifies the process of adjusting shooting parameters, improves the user experience, and reduces the frequency of screen operations.
Smart Images

Figure CN121151672A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of camera technology, and specifically relates to a method, device and electronic device for adjusting shooting parameters. Background Technology
[0002] The current method of adjusting parameters in mobile phone cameras is mainly achieved through physical buttons on the phone and virtual buttons or virtual scroll wheels on the screen. For people who want to take pictures according to their own wishes and needs, it is often necessary to adjust the camera parameters (also known as shooting parameters) according to the actual scene. Therefore, it is necessary to frequently click or slide the screen to adjust the parameters. This method makes the operation cumbersome for users. Summary of the Invention
[0003] This application provides a method, apparatus, and electronic device for adjusting shooting parameters, in order to solve the problem that current methods of adjusting camera parameters by frequently clicking or swiping the screen result in cumbersome user operation and a decreased user experience.
[0004] To solve the above-mentioned technical problems, this application is implemented as follows:
[0005] In a first aspect, embodiments of this application provide a method for adjusting shooting parameters, executed by an electronic device, the electronic device including a first camera, the first camera being equipped with a teleconverter lens, including:
[0006] With the shooting preview interface displayed, obtain the user's grip position on the teleconverter lens;
[0007] Based on the grip position, the shooting parameters are adjusted and the shooting preview interface is updated.
[0008] Secondly, embodiments of this application also provide a shooting parameter adjustment device, applied to an electronic device, the electronic device including a first camera, the first camera being provided with a teleconverter lens, including:
[0009] The first acquisition module is used to acquire the user's grip position on the teleconverter lens when the shooting preview interface is displayed;
[0010] The adjustment module is used to adjust the shooting parameters and update the shooting preview interface according to the grip position.
[0011] Thirdly, embodiments of this application also provide an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0012] Fourthly, embodiments of this application also provide a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method described in the first aspect.
[0013] Fifthly, embodiments of this application also provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0014] In a sixth aspect, embodiments of this application also provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method described in the first aspect.
[0015] In this embodiment, by obtaining the user's grip position on the teleconverter while displaying the shooting preview interface, the shooting parameters are adjusted and the shooting preview interface is updated based on the grip position. In this way, the shooting parameters can be adjusted by grip position, eliminating the need for frequent clicking or swiping of the screen to adjust the shooting parameters, which can facilitate user operation and improve the photography experience of electronic devices. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating the shooting parameter adjustment method according to an embodiment of this application;
[0017] Figure 2 This is a diagram showing the relative positions of the cameras;
[0018] Figure 3 This is a comparative diagram of electronic devices with and without teleconverters.
[0019] Figure 4 This is a schematic diagram of the frame output of a wide-angle preview stream when the electronic device is not equipped with a teleconverter lens;
[0020] Figure 5 This is a schematic diagram of the frame output of a wide-angle preview stream when an electronic device is equipped with a teleconverter lens;
[0021] Figure 6 This is one of the illustrations showing the holding position in the frame output of a wide-angle camera;
[0022] Figure 7 This is the second illustration of the holding position in the frame output image of a wide-angle camera;
[0023] Figure 8 This is one of the schematic diagrams showing the actual grip position of the user's hand and the imaging position in the target image;
[0024] Figure 9This is the second illustration showing the actual grip position of the user's hand and the imaging position in the target image;
[0025] Figure 10 This is the third illustration showing the actual grip position of the user's hand and the imaging position in the target image;
[0026] Figure 11 This is a screenshot of the real-time preview displayed on the mobile phone.
[0027] Figure 12 This is a schematic diagram of the shooting parameter adjustment device according to an embodiment of this application;
[0028] Figure 13 This is one of the structural schematic diagrams of the electronic device according to an embodiment of this application;
[0029] Figure 14 This is a second schematic diagram of the structure of the electronic device according to an embodiment of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0031] The terms "first," "second," etc., used in this application's specification are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, in the specification, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.
[0032] The following description, in conjunction with the accompanying drawings, details the shooting parameter adjustment method, apparatus, and electronic device provided in this application through specific embodiments and application scenarios.
[0033] like Figure 1 As shown in the figure, this application provides a method for adjusting shooting parameters, executed by an electronic device. The electronic device includes a first camera, and the first camera is equipped with a teleconverter lens. The method includes:
[0034] Step 101: With the shooting preview interface displayed, obtain the user's grip position on the teleconverter lens;
[0035] Step 102: Adjust the shooting parameters and update the shooting preview interface according to the grip position.
[0036] It should be noted that, in this embodiment of the application, the user's grip position on the teleconverter lens is obtained while the shooting preview interface is displayed. Based on the grip position, the shooting parameters are adjusted and the shooting preview interface is updated. In this way, the shooting parameters can be adjusted by grip position, without the need for frequent clicking or swiping of the screen to adjust the shooting parameters. This makes it more convenient for users to operate and improves the photography experience of electronic devices.
[0037] Optionally, the shooting parameters mentioned in the embodiments of this application are set when the teleconverter is mounted; for example, a parameter is set by default when the user mounts the teleconverter, or the parameter can be set based on the user's selection.
[0038] Optionally, the shooting parameters mentioned in the embodiments of this application include, but are not limited to, one of the following:
[0039] Focus distance, zoom ratio, shooting brightness, and exposure time.
[0040] It should be noted that, generally speaking, only one shooting parameter can be adjusted at a time based on the grip position of the teleconverter. For example, during initial mounting, shooting parameter A can be set for adjustment; during subsequent mounting, shooting parameter B can be set for adjustment. Of course, in some embodiments, two or more shooting parameters can be adjusted simultaneously based on the grip position.
[0041] It should be noted that the application scenario of this application embodiment is that the electronic device includes at least two cameras, one is a first camera for mounting a teleconverter lens, and the other is a second camera responsible for capturing images from the teleconverter lens. For example, the first camera is a periscope camera, and the second camera is a main camera, a wide-angle camera, or other cameras other than a periscope camera.
[0042] Optionally, one possible application scenario in this application embodiment is: to achieve image acquisition in telephoto extension mode by mounting a teleconverter lens on the periscope camera.
[0043] For example, taking three commonly used cameras as an example, one option is to arrange the relative positions of the cameras as follows: Figure 2 As shown, Figure 2 A diagram showing the rear camera arrangement of electronic device 20 is provided. The three cameras are arranged in an L-shape. The camera in the upper left direction is a periscope camera 21, the camera in the lower left direction is the main camera 22, and the camera in the lower right direction is a wide-angle camera 23. In this case, the teleconverter lens is mounted on the periscope camera.
[0044] Furthermore,Figure 3 The diagram shows a comparison of an electronic device with and without a teleconverter lens. In the case of the electronic device 20 without a teleconverter lens, the three cameras on the back of the electronic device are clearly visible: the periscope camera 21, the main camera 22, and the wide-angle camera 23. After attaching the teleconverter lens, one can clearly see the teleconverter lens 30 (which is mounted on the original periscope camera 21) and the two original cameras on the electronic device: the main camera 22 and the wide-angle camera 23.
[0045] Optionally, in one implementation, before obtaining the user's grip position on the teleconverter lens, the method further includes:
[0046] Acquire the first image captured by the second camera of the electronic device;
[0047] If the first image contains an image area corresponding to a teleconverter lens, then it is determined that the first camera is equipped with a teleconverter lens.
[0048] It should be noted that in this case, image recognition is performed on the image captured by the second camera to determine whether there is a teleconverter in the image. If there is, the operation of obtaining the user's grip position on the teleconverter can continue. If there is no teleconverter, the operation of obtaining the user's grip position on the teleconverter does not need to be performed.
[0049] For example, with Figure 2 Taking the camera shown as an example, the above implementation method is illustrated as follows: In this case, the preview stream of the wide-angle camera is called to detect whether the electronic device is equipped with a teleconverter lens, such as... Figure 4 and Figure 5 The difference in wide-angle preview frames with and without a teleconverter is shown (it should be noted here that...). Figure 4 and Figure 5 The interface shown is a wide-angle preview stream, which is not displayed on the electronic device's camera interface. The camera interface displays the periscope camera's view in teleconverter mode. The reason for presenting the wide-angle camera interface here is primarily to explicitly showcase the wide-angle camera preview (for subsequent descriptions of the solution). Whether the electronic device is equipped with a teleconverter lens is clearly distinguished in the upper right corner of the wide-angle camera preview stream, such as... Figure 4 As shown, without a teleconverter, the image from the teleconverter will not be displayed in the upper right corner of the wide-angle camera's output frame 40, but... Figure 5As shown, when a teleconverter is mounted, the upper right corner of the frame output from the wide-angle camera 40 can display the image 41 captured by the teleconverter. Therefore, the process of determining whether a target lens exists in the first image in this embodiment is a typical image binary classification problem. The image is classified to detect whether a teleconverter exists in the upper right corner. If no teleconverter exists, the grip position detection stops, and the wide-angle camera is turned off. If a teleconverter exists, the user's grip position on the teleconverter is detected in real time. Further... Figure 6 and Figure 7 The image shown is a frame output from a wide-angle camera under different grip positions. Figure 6 It is held by the user at the outer end of the teleconverter lens (also known as the far end, i.e. the end away from the electronic device). Figure 7 It is held by the user at the inside of the teleconverter lens (also known as the near end, i.e. the end closest to the electronic device).
[0050] Optionally, in one implementation, the specific implementation of obtaining the user's grip position on the teleconverter lens includes:
[0051] Based on the first image captured by the second camera of the electronic device, the user's grip position on the teleconverter lens is determined.
[0052] In some embodiments, determining the user's grip position on the teleconverter lens based on the first image captured by the second camera of the electronic device includes:
[0053] Based on the first image, determine the location information of each contact point of the user;
[0054] Based on the location information, the user's grip position on the teleconverter lens is determined, and the grip position includes: gripping the first end of the teleconverter lens away from the electronic device, gripping the middle of the teleconverter lens, and gripping the second end of the teleconverter lens closer to the electronic device.
[0055] It should be noted that when determining the grip position, you can choose to detect every frame, every second, or any other arbitrary time interval, depending on the actual debugging situation.
[0056] Optionally, in one implementation, determining the location information of each user's contact point based on the first image includes:
[0057] A target image is extracted from the first image, and the target image is the image corresponding to the area where the teleconverter lens is located in the first image;
[0058] Based on the target image, determine the location information of each contact point of the user.
[0059] Alternatively, for example, with Figure 2 In terms of the camera distribution of electronic devices, the second lens is a wide-angle camera.
[0060] It should be noted that by first cropping the imaging area of the teleconverter from the first image captured by the second camera, and then determining the holding position based on the cropped image of the teleconverter, the processing area of the image can be reduced and the processing complexity can be lowered.
[0061] Optionally, in one implementation, the specific implementation of determining the location information of each user's contact point based on the target image includes:
[0062] Step 1011: Construct a target coordinate system based on the target image;
[0063] It should be noted that, in the embodiments of this application, after the target image is captured, the target image is usually a rectangular region. When constructing the target coordinate system, one vertex of the rectangular region is used as the origin of the coordinate system; for example, using... Figure 2 In terms of the camera distribution of electronic devices, the origin Po(0,0) in the target image is the vertex at the top left corner, the horizontal axis to the right is the positive X-axis, and the vertical axis downwards is the positive Y-axis.
[0064] Step 1012: Obtain the position coordinates of each user's contact point in the target coordinate system;
[0065] It should be noted that the contact point in the embodiments of this application can be understood as the touch point of the user's finger. Since the user may touch the target lens with multiple fingers at the same time, there will be multiple contact points in the target image. When obtaining the coordinate position, it is necessary to obtain the position coordinates of each contact point.
[0066] Optionally, in one implementation, the specific implementation of determining the user's grip position on the teleconverter lens based on the location information includes:
[0067] Step 1013: Determine the position coordinates of the contact point with the largest coordinate value in the first direction as the effective coordinates. The first direction is the direction in which the length of the target lens is projected onto the coordinate axis.
[0068] It should be noted that in this case, the coordinates of the contact point furthest from the origin are used as the basis for determining the grip position. For example, with... Figure 2 In terms of the camera distribution of electronic devices, the first direction is the X-axis direction.
[0069] Step 1014: Compare the effective coordinates with the target coordinates in the first direction to determine the user's grip position on the teleconverter lens;
[0070] Optionally, the first end of the teleconverter lens that is far from the electronic device can be understood as the far end of the teleconverter lens, the second end of the teleconverter lens that is close to the electronic device can be understood as the near end of the teleconverter lens, and the middle end of the teleconverter lens can be understood as the middle position of the teleconverter lens.
[0071] Optionally, the specific implementation of comparing the effective coordinates with the target coordinates in the first direction to determine the user's grip position includes one of the following:
[0072] A11. If Xh is less than a×Xm, then the holding position is determined to be holding the first end of the teleconverter lens;
[0073] Where Xh represents the effective coordinates of the gripping position, and Xm represents the target coordinates.
[0074] A12. If Xh is greater than or equal to a×Xm and less than or equal to b×Xm, then the holding position is determined to be holding the middle of the teleconverter lens;
[0075] A13. If Xh is greater than b×Xm, then the holding position is determined to be holding the second end of the teleconverter lens;
[0076] It should be noted that in the embodiments of this application, the values of a and b are greater than 0 and less than 1, and a is less than b.
[0077] Optionally, the values of a and b can be determined based on the actual debugging results. For example, a can be set to 1 / 3 and b to 2 / 3.
[0078] Optionally, a schematic diagram showing the actual grip position of the user's hand and the imaging position of the contact point in the target image is shown below. Figure 8 , Figure 9 and Figure 10 As shown, where, Figure 8 The grip position is at the far end of the teleconverter lens. Figure 9 The grip position is in the middle of the teleconverter lens. Figure 10 The grip position is near the teleconverter lens.
[0079] Optionally, in one implementation, when the shooting preview interface is the shooting preview interface corresponding to the first camera, the specific implementation of adjusting the shooting parameters according to the holding position includes:
[0080] Step 1021: Determine the adjustment rate or adjustment size of the shooting parameters corresponding to the first camera based on the grip position;
[0081] Optionally, in one implementation, the adjustment rate or adjustment magnitude of the shooting parameters corresponding to the first camera is determined based on the grip position, including at least one of B11-B13:
[0082] B11. If the holding position is the first end of the teleconverter lens, the shooting parameters are adjusted at a first rate or a first value.
[0083] For example, the first speed is determined as follows: First speed = a × Xm – Xh.
[0084] For example, the first value is determined as follows: First value = a × Xm – Xh.
[0085] Optionally, the first value refers to the magnitude of the parameter adjustment, such as increasing or decreasing the zoom magnification by a value when held at the far end.
[0086] B12. If the holding position is at the middle of the teleconverter lens, the shooting parameters are adjusted at the second rate or the second value.
[0087] It should be noted that when the user holds the teleconverter in the middle, the shooting parameters do not need to be adjusted. That is, in this case, the value of the second rate can be 0 or the value of the second value can be 0.
[0088] B13. If the holding position is the second end of the teleconverter lens, then adjust the shooting parameters at the third rate or the third value;
[0089] For example, the third rate is determined as follows: Third rate = Xh - b × Xm.
[0090] For example, the third value is determined as follows: Third value = Xh - b × Xm.
[0091] It should be noted that, under normal circumstances, the first rate, the second rate, and the third rate are different in magnitude, and the first value, the second value, and the third value are different in magnitude.
[0092] Step 1022: Adjust the shooting parameters according to the adjustment rate or the adjustment size;
[0093] Optionally, the specific implementation of adjusting the shooting parameters according to the adjustment rate or the adjustment magnitude includes:
[0094] The adjustment direction of the shooting parameters is determined based on the grip position, and the adjustment direction includes increasing the parameter value or decreasing the parameter value;
[0095] The shooting parameters are adjusted according to the adjustment direction and the adjustment rate or the adjustment size.
[0096] It's important to note that the grip position determines whether the parameter value is increased or decreased. For example, holding the teleconverter at the first end increases the parameter value, while holding it at the second end decreases it; conversely, holding it at the second end increases the parameter value, while holding it at the first end decreases it. Holding the teleconverter at the middle can be considered either an increase or decrease, because if the adjustment rate or adjustment value is set to 0, the parameter value will not change; that is, no adjustment will be made.
[0097] It should be noted that the adjustment rate can be multiplied by a coefficient as needed in actual use. The smaller the adjustment rate value, the slower the parameter adjustment; the larger the adjustment rate value, the faster the parameter adjustment. Similarly, the adjustment magnitude can be multiplied by a coefficient as needed in actual use. The smaller the adjustment magnitude value, the less the parameter changes; the larger the adjustment magnitude value, the more the parameter changes.
[0098] For example, to determine the adjustment rate, assume the segmented teleconverter region is 720 pixels high and 540 pixels wide. Then, with the top-left corner as the origin, the coordinates of the four corners of the image are: top-left corner P(0,0), bottom-left corner P(0,720), top-right corner P(540,0), and bottom-right corner P(540,720), and Xm = 540. Assume the parameters distinguishing between far, mid, and near ends are a = 1 / 3 and b = 2 / 3.
[0099] If the user's hand is holding the teleconverter at the far end, contact point detection is performed on the target image to obtain the position coordinates of each contact point. The position coordinate with the largest X-axis coordinate value is taken as the effective coordinate (i.e., the effective position coordinate used to determine the grip position). The effective coordinate is P(100, 600), that is, Xh = 100. Since Xh = 100, Xm = 540, and Xh < 1 / 3 × Xm, the grip position is determined to be holding the far end of the target lens. The adjustment rate = a × Xm – Xh, specifically 1 / 3 × 540 – 100 = 80. The adjustment rate can be normalized, 80 / 180 = 0.444. Assuming the base adjustment speed is 10 codes, then the adjustment speed of the grip position at this time is 0.444 × 10 = 4.44 codes.
[0100] If the user's hand is holding the teleconverter at the center, contact point detection is performed on the target image to obtain the position coordinates of each contact point. The position coordinate with the largest X-axis coordinate value is taken as the valid coordinate, which is P(220, 500), i.e., Xh = 220. Since Xh = 220, Xm = 540, and 1 / 3 × Xm < Xh < 2 / 3 × Xm, the holding position is determined to be holding the target lens at the center.
[0101] If the user's hand is holding the teleconverter near the lens, contact point detection is performed on the target image to obtain the position coordinates of each contact point. The position coordinate with the largest X-axis coordinate is taken as the effective coordinate, which is P(450, 450), i.e., Xh = 450. Since Xh = 450, Xm = 540, and 2 / 3 × Xm < Xh, the holding position is determined to be holding the target lens near the lens. The adjustment rate = Xh – b × Xm, specifically 450 – 2 / 3 × 540 = 90. The adjustment rate can be normalized, 90 / 180 = 0.5. Assuming the base adjustment speed is 10 codes, then the adjustment speed at this holding position is 0.5 × 10 = 5 codes.
[0102] The following is based on Figure 2 The distribution of cameras in electronic devices (electronic devices are mobile phones) is illustrated with specific examples of the implementation of this application embodiment.
[0103] Step S11: Install an external teleconverter lens on the mobile phone.
[0104] Step S12: Enter the telephoto zoom mode of the system camera. Figure 11 The image shown is a real-time preview displayed on the phone, with frames output from a periscope camera equipped with a teleconverter lens and displayed on the preview screen.
[0105] The specific technical implementation of this application is based on the frame output of a wide-angle camera. As mentioned above, the frame output of the wide-angle camera is not displayed on the screen; instead, the wide-angle preview stream is processed in the background to detect the user's grip position on the target lens in real time.
[0106] First, the preview stream from the wide-angle camera is accessed to check if the phone has a teleconverter lens attached. If no teleconverter lens is present, the grip position detection stops, and the wide-angle camera access is disabled. If a teleconverter lens is present, the user's grip position on the target lens is detected in real time.
[0107] Step S13: Based on the detected hand grip position, the algorithm determines whether the hand is gripping the near end, far end, or middle end of the teleconverter lens, thereby adjusting the shooting parameters of the mobile phone camera.
[0108] For example, if a user holds the phone with their left hand and the teleconverter with their right hand, then the hand holding the teleconverter in the target image will be the right hand.
[0109] For example, in an image captured by a wide-angle camera, the pixel positions of the teleconverter region are segmented and denoted as P(X,Y). The top-left corner is taken as the origin Po(0,0), the horizontal axis to the right is the positive X-axis, the vertical axis downwards is the positive Y-axis, and the bottom-right corner coordinates are Pm(Xm,Ym). Finger detection is performed on the image to obtain the coordinates Pi(X,Y) of each finger. The finger coordinate Ph(Xh,Yh) with the largest X-axis coordinate value is taken as the valid coordinate. The relationship between Xh and Xm is compared to determine the user's grip position on the target lens.
[0110] If Xh is less than a×Xm, then the holding position is determined to be holding the far end of the target lens, and the adjustment rate of the shooting parameters is a×Xm–Xh;
[0111] If Xh is greater than or equal to a×Xm and less than or equal to b×Xm, then the holding position is determined to be holding the middle of the target lens, and the adjustment rate of the shooting parameters is 0.
[0112] If Xh is greater than b×Xm, then the holding position is determined to be holding the near end of the target lens, and the adjustment rate of the shooting parameters is Xh-b×Xm.
[0113] For example, if the grip position is near the teleconverter, the shooting parameters are increased (or decreased) based on the adjustment rate; if the grip position is far from the teleconverter, the shooting parameters are decreased (or increased) based on the adjustment rate; if the grip position is in the middle of the teleconverter, the shooting parameters remain unchanged.
[0114] It should be noted that in this embodiment, the parameter size is adjusted in real time (depending on the actual debugging situation, the detection may be performed per frame, per second, or at any other arbitrary time interval) based on the holding position.
[0115] For example, taking adjusting the focus distance as an example, the specific process of this application embodiment includes:
[0116] Open the camera, enter the telephoto zoom mode scene, set the default parameter for holding the zoom lens to focus distance, and the default adjustment speed is 100code.
[0117] At this point, the focus distance after entering teleconverter mode is 4000 codes. If you need to focus at a closer distance, hold the teleconverter at the near end of the lens. Let's say the current position of holding the teleconverter at the near end is P(500, 450). The adjustment speed calculated from the above process is 78 codes. Therefore, we now increase the existing 4000 codes, and the focus distance becomes 4078 codes. Assuming the adjustment is done in seconds (this is an example, but the actual adjustment can be more precise to change the effect), the increase is 78 codes per second.
[0118] If the desired focusing distance has been reached, the user can hold the teleconverter in the middle area of the lens or stop holding the teleconverter, and the focusing distance will not change further.
[0119] If you now need to focus at a greater distance, hold the teleconverter at the far end. Let's say you're currently holding the teleconverter at P(50, 620). The adjustment speed calculated from the above process is 72 codes. Therefore, decrease the current focus distance. Again, assuming the adjustment is done in seconds, decrease the focus distance by 72 codes per second. Once the desired focus distance is reached, hold the teleconverter in the middle area or remove it from your hand, keeping the focal length unchanged.
[0120] For example, taking adjusting the zoom level as an example, the specific process of this application embodiment includes:
[0121] Open the camera, enter the telephoto zoom mode, and set the default adjustment parameter for holding the telephoto lens to zoom magnification and the default adjustment speed to 20.
[0122] The default zoom level in teleconverter mode is 200. To zoom to a higher magnification, hold the teleconverter at the far end of the lens. Assuming the current position is P(100, 600), the calculated adjustment speed is 9. Therefore, increase the zoom level from 200. Again, assuming adjustments are made in seconds, the increase is 9 per second. Once the desired magnification is achieved, move your hand to the center of the teleconverter or remove the lens altogether, maintaining the same zoom level.
[0123] If you need to zoom to a smaller magnification, hold the teleconverter near the end of the lens. Let's say your current position is P(450, 500). The adjustment speed calculated from the above process is 10, so decrease the magnification. Again, assuming adjustments are made in seconds, decrease by 10 per second. Once you've reached the desired magnification, hold the teleconverter in the middle area or remove it entirely, keeping the magnification unchanged.
[0124] It should be noted that this application embodiment proposes a method for adjusting shooting parameters by holding the teleconverter lens in different positions. This allows for adjusting shooting parameters by holding the lens in different positions, without requiring physical buttons or screen contact, thus improving interactivity. Furthermore, this application embodiment can also adjust other parameters on the electronic device; that is, as long as the teleconverter lens is installed, other parameters can be adjusted by detecting the holding position.
[0125] The shooting parameter adjustment method provided in this application can be executed by a shooting parameter adjustment device. This application uses an example of a shooting parameter adjustment device executing the shooting parameter adjustment method to illustrate the shooting parameter adjustment device provided in this application.
[0126] like Figure 12 As shown, the shooting parameter adjustment device of this application is applied to an electronic device, which includes a first camera and a teleconverter lens, comprising:
[0127] The first acquisition module 1201 is used to acquire the user's grip position on the teleconverter lens when the shooting preview interface is displayed;
[0128] The adjustment module 1202 is used to adjust the shooting parameters and update the shooting preview interface according to the grip position.
[0129] Optionally, the first acquisition module 1201 includes:
[0130] The first determining unit is used to determine the user's grip position on the teleconverter lens based on the first image captured by the second camera of the electronic device.
[0131] Optionally, the first determining unit is configured to:
[0132] Based on the first image, determine the location information of each contact point of the user;
[0133] Based on the location information, the user's grip position on the teleconverter lens is determined, and the grip position includes: gripping the first end of the teleconverter lens away from the electronic device, gripping the middle of the teleconverter lens, and gripping the second end of the teleconverter lens closer to the electronic device.
[0134] Optionally, when the shooting preview interface is the shooting preview interface corresponding to the first camera, the adjustment module 1202 includes:
[0135] The second determining unit is used to determine the adjustment rate or adjustment size of the shooting parameters corresponding to the first camera based on the holding position;
[0136] An adjustment unit is used to adjust the shooting parameters according to the adjustment rate or the adjustment magnitude;
[0137] The shooting parameters include at least one of the following: focus distance, zoom ratio, shooting brightness, and exposure time.
[0138] Optionally, the second determining unit is configured to perform at least one of the following:
[0139] If the holding position is at the first end of the teleconverter lens, the shooting parameters are adjusted at a first rate or a first value;
[0140] If the grip position is at the middle of the teleconverter lens, the shooting parameters are adjusted at the second rate or the second value;
[0141] If the grip position is at the second end of the teleconverter lens, the shooting parameters are adjusted at a third rate or a third value;
[0142] The first rate, the second rate, and the third rate are different in magnitude, and the first value, the second value, and the third value are different in magnitude.
[0143] Optionally, the adjustment unit is used for:
[0144] The adjustment direction of the shooting parameters is determined based on the grip position, and the adjustment direction includes increasing the parameter value or decreasing the parameter value;
[0145] The shooting parameters are adjusted according to the adjustment direction and the adjustment rate or the adjustment size.
[0146] Optionally, the device further includes:
[0147] The second acquisition module is used to acquire the first image captured by the second camera of the electronic device;
[0148] The determining module is used to determine that the first camera is equipped with a teleconverter if there is an image area corresponding to the teleconverter in the first image.
[0149] It should be noted that this device embodiment corresponds to the above method, and all implementation methods in the above method embodiment are applicable to this device embodiment and can achieve the same technical effect.
[0150] The shooting parameter adjustment device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM or self-service machine, etc. This application embodiment does not specifically limit the device.
[0151] The shooting parameter adjustment device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0152] The shooting parameter adjustment device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0153] Optionally, such as Figure 13 As shown, this application embodiment also provides an electronic device 1300, including a processor 1301 and a memory 1302. The memory 1302 stores a program or instructions that can run on the processor 1301. When the program or instructions are executed by the processor 1301, they implement the various steps of the above-described shooting parameter adjustment method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0154] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0155] Figure 14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0156] The electronic device 1400 includes, but is not limited to, components such as: radio frequency unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
[0157] Those skilled in the art will understand that the electronic device 1400 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1410 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 14 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0158] The electronic device also includes a first camera, which is equipped with a teleconverter lens.
[0159] The processor 1410 is used for:
[0160] With the shooting preview interface displayed, obtain the user's grip position on the teleconverter lens;
[0161] Based on the grip position, the shooting parameters are adjusted and the shooting preview interface is updated.
[0162] Optionally, the processor 1410 is configured to:
[0163] Based on the first image captured by the second camera of the electronic device, the user's grip position on the teleconverter lens is determined.
[0164] Optionally, the processor 1410 is configured to:
[0165] Based on the first image, determine the location information of each contact point of the user;
[0166] Based on the location information, the user's grip position on the teleconverter lens is determined, and the grip position includes: gripping the first end of the teleconverter lens away from the electronic device, gripping the middle of the teleconverter lens, and gripping the second end of the teleconverter lens closer to the electronic device.
[0167] Optionally, when the shooting preview interface is the shooting preview interface corresponding to the first camera, the processor 1410 is configured to:
[0168] Based on the grip position, determine the adjustment rate or adjustment size of the shooting parameters corresponding to the first camera;
[0169] The shooting parameters are adjusted according to the adjustment rate or the adjustment magnitude;
[0170] The shooting parameters include at least one of the following: focus distance, zoom ratio, shooting brightness, and exposure time.
[0171] Optionally, the processor 1410 is further configured to implement at least one of the following:
[0172] If the holding position is at the first end of the teleconverter lens, the shooting parameters are adjusted at a first rate or a first value;
[0173] If the grip position is at the middle of the teleconverter lens, the shooting parameters are adjusted at the second rate or the second value;
[0174] If the grip position is at the second end of the teleconverter lens, the shooting parameters are adjusted at a third rate or a third value;
[0175] The first rate, the second rate, and the third rate are different in magnitude, and the first value, the second value, and the third value are different in magnitude.
[0176] Optionally, the processor 1410 is configured to:
[0177] The adjustment direction of the shooting parameters is determined based on the grip position, and the adjustment direction includes increasing the parameter value or decreasing the parameter value;
[0178] The shooting parameters are adjusted according to the adjustment direction and the adjustment rate or the adjustment size.
[0179] Optionally, the processor 1410 is further configured to:
[0180] Acquire the first image captured by the second camera of the electronic device;
[0181] If the first image contains an image area corresponding to a teleconverter lens, then it is determined that the first camera is equipped with a teleconverter lens.
[0182] It should be understood that, in this embodiment, the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042. The GPU 14041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1406 may include a display panel 14061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1407 includes at least one of a touch panel 14071 and other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0183] The memory 1409 can be used to store software programs and various data. The memory 1409 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1409 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0184] Processor 1410 may include one or more processing units; optionally, processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1410.
[0185] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described method for adjusting shooting parameters and achieve the same technical effect. To avoid repetition, these will not be described again here.
[0186] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0187] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described shooting parameter adjustment method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0188] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0189] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described method for adjusting shooting parameters, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0190] It should be noted that, in this document, 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 that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0191] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0192] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for adjusting shooting parameters, characterized in that, Performed by an electronic device, the electronic device including a first camera and a teleconverter lens, the method includes: With the shooting preview interface displayed, obtain the user's grip position on the teleconverter lens; Based on the grip position, the shooting parameters are adjusted and the shooting preview interface is updated.
2. The method according to claim 1, characterized in that, The step of obtaining the user's grip position on the teleconverter lens includes: Based on the first image captured by the second camera of the electronic device, the user's grip position on the teleconverter lens is determined.
3. The method according to claim 2, characterized in that, The determination of the user's grip position on the teleconverter lens based on the first image captured by the second camera of the electronic device includes: Based on the first image, determine the location information of each contact point of the user; Based on the location information, the user's grip position on the teleconverter lens is determined, and the grip position includes: gripping the first end of the teleconverter lens away from the electronic device, gripping the middle of the teleconverter lens, and gripping the second end of the teleconverter lens closer to the electronic device.
4. The method according to claim 3, characterized in that, When the shooting preview interface is the shooting preview interface corresponding to the first camera, adjusting the shooting parameters according to the holding position includes: Based on the grip position, determine the adjustment rate or adjustment size of the shooting parameters corresponding to the first camera; The shooting parameters are adjusted according to the adjustment rate or the adjustment magnitude; The shooting parameters include at least one of the following: focus distance, zoom ratio, shooting brightness, and exposure time.
5. The method according to claim 4, characterized in that, Based on the grip position, the adjustment rate or adjustment magnitude of the shooting parameters corresponding to the first camera is determined, including at least one of the following: If the holding position is at the first end of the teleconverter lens, the shooting parameters are adjusted at a first rate or a first value; If the grip position is at the middle of the teleconverter lens, the shooting parameters are adjusted at the second rate or the second value; If the grip position is at the second end of the teleconverter lens, the shooting parameters are adjusted at a third rate or a third value; The first rate, the second rate, and the third rate are different in magnitude, and the first value, the second value, and the third value are different in magnitude.
6. The method according to claim 4, characterized in that, The step of adjusting the shooting parameters according to the adjustment rate or the adjustment magnitude includes: The adjustment direction of the shooting parameters is determined based on the grip position, and the adjustment direction includes increasing the parameter value or decreasing the parameter value; The shooting parameters are adjusted according to the adjustment direction and the adjustment rate or the adjustment size.
7. The method according to claim 1, characterized in that, Also includes: Acquire the first image captured by the second camera of the electronic device; If the first image contains an image area corresponding to a teleconverter lens, then it is determined that the first camera is equipped with a teleconverter lens.
8. A shooting parameter adjustment device, applied to an electronic device, the electronic device including a first camera, the first camera being provided with a teleconverter lens, characterized in that, include: The first acquisition module is used to acquire the user's grip position on the teleconverter lens when the shooting preview interface is displayed; The adjustment module is used to adjust the shooting parameters and update the shooting preview interface according to the grip position.
9. The apparatus according to claim 8, characterized in that, The first acquisition module includes: The first determining unit is used to determine the user's grip position on the teleconverter lens based on the first image captured by the second camera of the electronic device.
10. The apparatus according to claim 9, characterized in that, The first determining unit is configured to: Based on the first image, determine the location information of each contact point of the user; Based on the location information, the user's grip position on the teleconverter lens is determined, and the grip position includes: gripping the first end of the teleconverter lens away from the electronic device, gripping the middle of the teleconverter lens, and gripping the second end of the teleconverter lens closer to the electronic device.
11. The apparatus according to claim 10, characterized in that, When the shooting preview interface is the shooting preview interface corresponding to the first camera, the adjustment module includes: The second determining unit is used to determine the adjustment rate or adjustment size of the shooting parameters corresponding to the first camera based on the holding position; An adjustment unit is used to adjust the shooting parameters according to the adjustment rate or the adjustment magnitude; The shooting parameters include at least one of the following: focus distance, zoom ratio, shooting brightness, and exposure time.
12. The apparatus according to claim 11, characterized in that, The second determining unit is configured to perform at least one of the following: If the holding position is at the first end of the teleconverter lens, the shooting parameters are adjusted at a first rate or a first value; If the grip position is at the middle of the teleconverter lens, the shooting parameters are adjusted at the second rate or the second value; If the grip position is at the second end of the teleconverter lens, the shooting parameters are adjusted at a third rate or a third value; The first rate, the second rate, and the third rate are different in magnitude, and the first value, the second value, and the third value are different in magnitude.
13. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the shooting parameter adjustment method as described in any one of claims 1-7.
14. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the shooting parameter adjustment method as described in any one of claims 1-7.
15. A computer program product, characterized in that, The computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps of the shooting parameter adjustment method as described in any one of claims 1-7.