Camera adjusting method, image acquisition method, electronic equipment and storage medium
By providing camera adjustment methods on the interactive tablet, the selection box is used for extensive and subtle settings to solve the problem of insufficient camera adjustment speed and accuracy in the existing technology, and achieves more efficient and accurate regulatory effects.
Patent Information
- Application Number
- CN202310877564.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-17
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, when adjusting the camera through interaction, the adjustment speed and accuracy are poor, the operation is cumbersome, and the adjustment effect is unclear.
A camera adjustment method is provided, which displays the setting window by receiving trigger operations, uses the selection box to perform extensive settings and fine adjustments, displays the preview screen in real time, and quickly adjusts the camera position parameters.
The speed and accuracy of the camera adjustment are improved, the operation process is simplified, and the clarification and accuracy of the adjustment effect is ensured.
Smart Images

Figure CN119364177A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of camera technology, and in particular to a camera adjustment method, an image acquisition method, an electronic device, and a storage medium. Background Art
[0002] Cameras are widely used in electronic devices. People can often use the cameras of electronic devices in various scenarios to meet various image acquisition needs, such as QR code recognition, picture taking, video calls, etc. When actually calling the camera to acquire images, it is usually necessary to adjust the parameters of the camera to acquire images to acquire images that meet specific usage needs.
[0003] For interactive tablets, the main scenario for using cameras is in video conferencing. At this time, after the camera captures the image, it is sent to other users participating in the video conference. In order to achieve a better video conferencing effect, it is often necessary to adjust the matching camera. In the prior art, the adjustment is mainly made through the up, down, left and right controls. However, for interactive tablets, this method is cumbersome to operate, the adjustment efficiency is low, and the adjustment effect is unclear. It often happens that after pressing the adjustment button many times, the adjustment effect is not achieved, and it needs to be reset and readjusted. Overall, the adjustment speed and accuracy of the camera are poor. Summary of the invention
[0004] The present application provides a camera adjustment method, an image acquisition method, an electronic device and a storage medium to solve the technical problem that the prior art has poor adjustment speed and accuracy when adjusting a camera through interaction.
[0005] In a first aspect, an embodiment of the present application provides a camera adjustment method, the camera adjustment method comprising:
[0006] Receiving a first trigger operation, displaying a first setting window, wherein the first setting window displays a first preview image captured by the camera, and a selection box is displayed on the first preview image;
[0007] Receiving an adjustment operation acting on the selection box, and adjusting the closed area of the selection box according to the adjustment operation;
[0008] After receiving the first confirmation operation, the camera position parameters are adjusted according to the selection box, and a second setting window is displayed, in which a second preview image captured by the camera is displayed, and the second preview image is consistent with the image content selected in the selection box;
[0009] A first movement operation acting on the second setting window is received, the camera position parameters are adjusted according to the first movement operation, and a third preview picture captured after the camera is adjusted is displayed in the second setting window.
[0010] In a second aspect, an embodiment of the present application further provides an image acquisition method, the image acquisition method comprising:
[0011] When the camera position selection interface is opened, the camera position identification is displayed. The camera position identification includes a default camera position identification and a preset camera position identification. Each preset camera position identification corresponds to a camera position parameter of a preset camera position.
[0012] When a trigger operation acting on any preset camera position identifier is received, the camera position parameters corresponding to the preset camera position identifier are obtained;
[0013] Call and adjust the camera for image acquisition based on the acquired camera position parameters.
[0014] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:
[0015] one or more processors;
[0016] A memory for storing one or more programs;
[0017] When one or more programs are executed by one or more processors, the electronic device implements the camera adjustment method of the first aspect or the image acquisition method of the second aspect.
[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by an electronic device, it implements the camera adjustment method of the first aspect or the image acquisition method of the second aspect.
[0019] In the above-mentioned camera adjustment method, image acquisition method, device, equipment and medium, a first trigger operation is received, a first setting window is displayed, a first preview image collected by the camera is displayed in the first setting window, and a selection box is displayed on the first preview image; an adjustment operation acting on the selection box is received, and the closed area of the selection box is adjusted according to the adjustment operation; after receiving the first confirmation operation, the camera position parameters are adjusted according to the selection box, and a second setting window is displayed, and the second preview image collected by the camera is displayed in the second setting window, and the second preview image is consistent with the image content selected in the selection box; a first moving operation acting on the second setting window is received, the camera position parameters are adjusted according to the first moving operation, and a third preview image collected after the camera is adjusted is displayed in the second setting window. When setting the camera position, rough setting and fine setting are respectively performed through the first setting window and the second setting window. The rough setting can quickly realize the comprehensive adjustment of the azimuth and focal length of the camera through a single operation on the selection box; the fine setting can accurately adjust the details under the condition of close to the ideal output, which improves the adjustment speed and adjustment accuracy of the camera as a whole. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A method flow chart of a camera adjustment method provided in an embodiment of the present application.
[0021] Figure 2 Schematic diagram of the settings interface for adjusting existing cameras.
[0022] Figure 3 Illustration of the setup process for adjusting an existing camera.
[0023] Figure 4 This is a schematic diagram of the front layout of the interactive tablet.
[0024] Figure 5 This is a schematic diagram of the camera setting interface.
[0025] Figure 6 This is a schematic diagram showing the first setting window displayed in the form of a partial window.
[0026] Figure 7 This is a schematic diagram showing the first setting window being displayed in full-screen window form.
[0027] Figure 8 A schematic diagram of the second setting window.
[0028] Fig. 9 A diagram showing the camera position settings interface with preset camera positions added.
[0029] Fig.10 This is a diagram of the third setting window.
[0030] Fig.11 A method flow chart of an image acquisition method provided in an embodiment of the present application.
[0031] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0033] It should be noted that due to space limitations, this application description does not list all optional implementation methods. After reading this application description, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation method.
[0034] The camera adjustment method and image acquisition method in the embodiment of the present application can be applied to an interactive tablet. The interactive tablet used in this solution can be an integrated device that controls the content displayed on the display screen and realizes human-computer interaction through touch technology, and integrates one or more functions such as a projector, an electronic whiteboard, a screen, an audio system, a television, and a video conferencing terminal. Of course, the interactive tablet does not include a limitation on the surface features of the display surface. For example, the surface features of the interactive tablet can be a plane, a curved surface, or a combination of multiple planes.
[0035] Typically, the interactive tablet is installed with at least one operating system, including but not limited to Android, Linux, Windows and Huawei Hongmeng, which is used to control and coordinate the interactive tablet and external devices so that the various independent hardware in the interactive tablet can work as a stable whole. Figure 4As shown, the interactive tablet 10 includes at least one display screen 20. For example, the interactive tablet 10 is configured with a display screen 20 with a touch function, that is, a touch-sensitive display screen. The touch-sensitive display screen can be an infrared display screen, a capacitive display screen, a resistive display screen, an electromagnetic display screen, or a pressure-sensitive display screen, etc. On the display screen 20 with a touch function, the user can implement a touch operation by touching the display screen 20 with a finger or a writing pen. Correspondingly, the interactive tablet 10 detects the touch position and responds according to the touch position to implement the touch function. When the touch sensing modules used on the display screen 20 with a touch function are different, the original touch signals collected by the touch sensing modules are different, and the converted touch signals are not completely the same. In order to simplify the contents of the accompanying drawings, the display contents in the interactive tablet 10 are illustrated, and only the display screen 20 is represented and explained as the display area, and the area outside the display screen 20 in the interactive tablet 10 is not repeatedly displayed. In the interactive tablet 10, in order to realize quick operation of commonly used functions without exiting the current page, sidebars are usually set on both sides of the display screen 20, and multiple function controls are displayed in the sidebar, such as a camera control 201 for starting the camera, a writing control for quickly starting writing, etc.
[0036] For an infrared display screen, the touch sensing module is an infrared touch frame, and the touch signal collected by it may include a signal indicating that the infrared rays are blocked, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For a capacitive display screen, the touch sensing module is a capacitive touch panel, and the touch signal collected by it may include the current flowing through each electrode of the touch screen, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For a resistive display screen, the touch sensing module is a resistive touch panel, and the touch signal collected by it may include the voltage of the touch position, and the converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and Y coordinate of the touch position. For an electromagnetic display screen, the touch sensing module is an electromagnetic panel, and the touch signal collected by it may include the change in magnetic flux and the frequency of the received electromagnetic signal, and the converted touch signal may include a position touch signal corresponding to the change in magnetic flux and a pressure signal corresponding to the frequency, and the position touch signal may include the X coordinate and Y coordinate of the touch position; the pressure signal may include a pressure value. For a pressure-sensitive display screen, the touch sensing module is a pressure sensor, and the touch signal collected by the touch sensing module may include a pressure signal. The converted touch signal may include a position touch signal, and the position touch signal may include the X coordinate and the Y coordinate of the touch position.
[0037] When the above-mentioned interactive tablet based on the touch-sensitive display screen is used in multi-person communication scenarios such as video conferencing, the camera configured therein can collect the scene picture in real time for picture sharing, so that the communication participants have a better communication experience and improve the information transmission effect in the process of multi-person communication. In the actual process of collecting the scene picture, the camera in the interactive tablet can usually only collect image data and share the picture with the default parameters. The picture shared in this way is usually not the picture that is most needed to be sent on site. For example, in a conference room, the interactive tablet is installed on a side wall, and the camera collects image data and shares the picture with the default parameters. The background of the picture may be most of the conference room, and the foreground is the communication participants in the conference room. At this time, the communication participants only occupy a small proportion of the picture, and the picture sharing is not enough for the remote communication participants to see the key points of the scene. Therefore, it is necessary to adjust the camera to realize the image data collection and picture sharing of the designated key areas in the conference room.
[0038] Please refer to Figure 2 and Figure 3 , which presents an existing interactive process of adjusting the camera. Figure 2 As shown, the camera position setting interface includes a setting window 251, a zoom control 253 and a move control 254. First, a preview shooting picture of the camera under the default camera position parameters is displayed in a setting window 251. The user's adjustment of the camera will have a corresponding impact on the default camera position parameters, which will cause the preview shooting picture displayed in the setting window to change. When the change reaches the picture content expected by the user, the default camera position parameters are fixed, and the setting of a camera position is completed. Figure 2 The foreground of the preview shot is the conference table and three communication participants, for example Figure 2 If the preset camera position is confirmed in the initial state corresponding to the default camera position parameters shown, the output image of the preset camera position is actually the image captured by the camera under the default camera position parameters. Figure 2 The state shown may not be the picture that actually needs to be shared in the conference scene. In this case, the camera needs to be adjusted. First, the preview shooting picture 252 is enlarged through the zoom control 253 to adjust the camera focal length. Visually, it is reflected as enlarging from the center of the preview shooting picture 252 outward, and the new preview shooting picture taken by the adjusted camera is displayed in real time in the setting window 251. Visually, the new preview shooting picture is the central part of the preview shooting picture 252 before enlargement. At this time, Figure 3As shown, if the new preview shooting picture 252 is not the picture to be shared, the camera needs to be adjusted by moving the control 254, and the preview shooting picture taken in real time after the camera adjustment is displayed in the setting window 251 until the ideal sharing picture is presented in the setting window 251. During the operation by moving the control 254, if the camera is adjusted so that the picture taken by the camera is located in a smaller range at the edge of the preview shooting picture 252, the focal length of the camera needs to be adjusted by the zoom control 253 first, and the preview shooting picture 252 is enlarged by a larger multiple, and then the mobile control 254 is moved more times to make the camera capture the ideal sharing picture. In this process, although the preview shooting picture 252 after the camera is adjusted can be displayed in real time, the presentation of the adjustment effect is incomplete and intuitive. If the preview shooting picture of the camera after adjustment is not the picture the user wants to share, it needs to be readjusted, and sometimes the up, down, left, and right adjustment controls are adjusted to the limit and cannot be adjusted further. At this time, it is necessary to reset and readjust the camera, and the operation process is cumbersome. Moreover, for interactive tablets, since the initial images captured by their cameras are generally wide-angle images of external environments such as conference rooms, when image capture is required for specific areas during video conferencing, multiple adjustments are often required to achieve satisfactory results, which is inefficient. Overall, the adjustment speed and accuracy of the camera are poor.
[0039] The camera adjustment method provided in the embodiment of the present application is applicable to the overall design of the interactive tablet described above, and can be implemented on the interactive tablet by software and / or hardware.
[0040] Each embodiment is described in detail below.
[0041] Figure 1 A method flow chart of a camera adjustment method provided in an embodiment of the present application, such as Figure 1 As shown, the camera adjustment method includes:
[0042] Step S101: receiving a first trigger operation, and displaying a first setting window, wherein the first setting window displays a first preview image captured by a camera, and a selection box is displayed on the first preview image.
[0043] The embodiment of the present application realizes human-computer interaction when adjusting the camera based on an interface. The interface refers to an interactive interface used by an application to receive and / or display information, such as a video playback application, whose interactive interface is mainly used to display the changing video screen; a real-time communication application, whose interactive interface is mainly used to receive content input by a near-end user and display content input by a far-end user; a file editing application, whose interactive interface is mainly used to receive content input by a user and display it; a browser application, whose interactive interface is mainly used to receive keywords input by a user and display web page content obtained based on the keyword.
[0044] The camera adjustment method in this solution is applied to the setting application included with the system or various third-party applications that need to use the camera, and the corresponding interface is the user interface presented in the process of adjusting the camera. The setting application included with the system refers to a comprehensive management application for setting various states of the system, such as display state, sound state, etc. Through the setting application included with the system, the setting items are operated step by step, and finally the camera position setting interface is opened to adjust the camera. Of course, it is also possible to provide a camera position setting interface for adjusting the camera in an independently installed dedicated video conferencing application. As long as the interface is used to implement camera adjustment, no matter which application provides it, it is equivalent to the camera position setting interface in the embodiment of the present application. For example Figure 2 and Figure 3 As shown, the camera position setting interface of the existing camera position setting scheme is shown. In different operation links of specific camera adjustment, the camera position setting interface can display different interface elements, such as various windows, controls, etc., for the user to view the adjustment effect, continue to adjust the camera, or confirm the adjustment is completed during the process of adjusting the camera.
[0045] Before starting to adjust the camera, when an operation corresponding to the camera adjustment item or an operation of a dedicated control is received, the camera position setting interface is opened. When the camera position setting interface is opened, the camera position setting interface can synchronously display the newly added controls as a trigger entry for implementing the camera adjustment in the embodiment of the present application. The default camera position can be displayed in the camera position setting interface, and the output screen of the default camera position is the screen captured by the camera under the default parameters. The camera preview shooting screen can also be displayed simultaneously in the camera position setting interface as a preview of the output screen of the default camera position and as a preview of the currently captured screen by the user. In the specific implementation, an independent window can also be displayed after the trigger setting, and a corresponding independent window is displayed each time a different adjustment stage is entered. In the embodiment of the present application, the window display based on the camera position setting interface is exemplified, which is substantially the same as the implementation process in an independent window.
[0046] The first trigger operation can be a trigger operation of a setting application attached to the system, or a shortcut button control set in a window of a third-party application using the camera, or a trigger operation of a newly added control in the camera position setting interface, or a trigger operation through other gestures or physical buttons. For example, when a trigger operation acting on a newly added control is received, it is confirmed that the first trigger operation is received, and as a response to the trigger operation, the first setting window is displayed, and the first setting window displays a preview shooting screen of the camera, that is, the user can view the complete screen captured at the default camera position in the first setting window. In the embodiment of the present application, in the process of adjusting the camera, the complete screen captured at the default camera position is usually not the screen that needs to be shared in the end. The screen is only for the user to preview the screen captured by the camera. Specifically, the screen displayed in the first setting window is defined as the first preview screen. The first preview screen in the first setting window has the largest screen range. Based on the maximum screen range, the user can quickly and roughly confirm the target area that needs to be captured by the camera. Accordingly, the maximum range of shooting in the first preview screen remains unchanged.
[0047] The selection box is a tool that enables users to make rough settings for the first preview screen. The selection box is a rectangle, and the aspect ratio of the selection box is the same as the aspect ratio of a common video playback window or screen, such as 16:9, 15:9, 16:10, etc. In the specific implementation process, a variety of optional selection boxes can be provided, and the user selects one as the currently used selection box through a selection operation. Adjustable refers to the display interaction attribute of the selection box. The selection box can be adjusted within the display range of the preview shooting screen according to the user's operation. The specific adjustment includes zoom adjustment and translation adjustment in response to the user's operation, wherein the aspect ratio remains unchanged during the zoom adjustment process, that is, when the selection box is not switched, the aspect ratio of the selection box remains unchanged.
[0048] It should be noted that in the first setting window, you can also set the focus control. If the user thinks that the preview shooting picture generated based on the default camera position parameters is too large and the details are not clear enough, you can directly adjust the preview shooting picture through the focus control to obtain a preview shooting picture with the same picture size, smaller shooting range and clearer details. The specific implementation is the same as the implementation based on the focus control in the subsequent second setting window and the third setting window.
[0049] In a specific display mode, the first setting window is a full-screen window or a partial window, the full-screen window displays a restore control, and the partial window is provided with a full-screen control; accordingly, the camera adjustment method also includes: when the first setting window is displayed as a full-screen window, when a trigger operation acting on the restore control is received, the first setting window is switched to display as a partial window; when the first setting window is displayed as a partial window, when a trigger operation acting on the full-screen control is received, the first setting window is switched to display as a full-screen window. In the first setting window, the first preview picture is displayed. It is possible that the shooting range corresponding to the first preview picture itself is relatively large. When the first preview picture is displayed in a smaller first setting window (i.e., a partial window), the operation accuracy is too low. At this time, the full-screen control in the partial window can be used to display the first preview picture in full screen (i.e., a full-screen window) to achieve more accurate viewing and operation. Correspondingly, when a trigger operation for the restore control is received on the basis of the full-screen window display, it can be restored to the partial window display, so that the extensive setting can be completed in a small range of operation.
[0050] Step S102: receiving an adjustment operation on the selection box, and adjusting the closed area of the selection box according to the adjustment operation.
[0051] There are two main types of operations for adjusting the selection box. The first type of operation is to drag the border position to move the selection box; the second type of operation is to drag the four corners to zoom the selection box. Both types of operations can adjust the closed area of the selection box. The operation range of both types of operations is constrained within the display range of the first preview screen, that is, within the range of the first setting window. For touch operations, for example, when using a finger as a touch object, the size and occlusion of the contact object will affect the accuracy of the user's operation. In addition, when adjusting the position of the selection box based on the first preview screen displayed in the first setting window, the actual closed area may occupy a small proportion, and the details of the screen cannot be clearly viewed. Very fine operations cannot be achieved based on the clear viewing of the details. Therefore, the adjustment operation can be regarded as a rough setting when adjusting the camera. Visually, the adjustment operation based on the selection box is to select a part of the screen content from the first preview screen.
[0052] Confirmation of the closed area corresponding to the selection box can be achieved by directly acting on the selection box, or by receiving a third movement operation on the first preview screen and adjusting the screen content of the first preview screen in the selection box according to the third movement operation. This is equivalent to the relative position relationship between the selection box and the first preview screen, which can be achieved by adjusting the selection box or the first preview screen.
[0053] Step S103: After receiving the first confirmation operation, adjust the camera position parameters according to the selection box, and display a second setting window, in which a second preview image captured by the camera is displayed, and the second preview image is consistent with the image content selected in the selection box.
[0054] For the camera, the range for image acquisition depends on the camera position parameters. The camera position parameters refer to the physical state parameters of the electronic control device inside the camera when acquiring images, which can specifically include one or more of the position parameters, angle parameters and focal length parameters. Among them, the position parameters refer to the physical position parameters of the electronic control device that drives the camera to translate when acquiring images, such as the translation distance in each direction. The specific translation distance and direction are determined according to the moving distance and moving direction supported by the relevant electronic control device. This parameter determines the translation change of the acquisition area when the camera acquires images, which is generally controlled by the slide rail. The angle parameter refers to the angle parameter of the electronic control device that drives the camera to rotate when acquiring images. The specific rotation angle and direction are determined according to the rotation distance and rotation angle supported by the relevant electronic control device. This parameter determines the rotation change of the acquisition area when the camera acquires images, which is generally controlled by the pan-tilt head, and the pan-tilt head can move on the slide rail. The focal length parameter refers to the distance parameter between lenses determined by the electronic control device that adjusts the distance between each lens in the camera during image acquisition. The variable focal length range is determined by the movement range supported by the relevant electronic control device and the optical parameters of the lens. This parameter determines the change in depth of field when the camera is acquiring images. Generally speaking, the larger the focal length, the smaller the range of the acquisition area during image acquisition.
[0055] The first confirmation operation may be triggered by the first confirmation control normally displayed in the first setting window; or the first confirmation control may be temporarily displayed after each specific operation on the selection box is completed. The first confirmation operation is triggered by the temporarily displayed first confirmation control. When the confirmation operation acting on the first confirmation control is received, it is confirmed that the first confirmation operation has been received, which is equivalent to the user confirming that the settings in the first setting window have been completed and that subsequent adjustments can be made.
[0056] As mentioned above, the range for which the image is collected depends on the camera position parameters; accordingly, according to the image obtained by the image collection, the camera position parameters can also be confirmed in reverse when the static parameters related to the camera are confirmed. In step S102, a part of the picture content is visually selected from the first preview picture through the selection box, but the size and position of the selection box in the first preview picture are determined. According to the size ratio between the selection box and the first preview picture, when the focal length of the first preview picture has been confirmed, the focal length required for image collection of the area corresponding to the selection box can be confirmed; according to the offset distance between the center of the selection box and the center of the first preview picture, the position and / or angle that the camera needs to adjust can be confirmed. The above confirmed information is the camera position parameter obtained according to the selection box, and is also the target parameter when adjusting the camera after receiving the first confirmation operation. The preview picture collected by the camera under this target parameter is the second preview picture, and the second preview picture is displayed in the second setting window, so that the rough adjustment of the camera is completed.
[0057] In this adjustment process, from the perspective of vision and interaction, at least the size and position of the selection box need to be adjusted once respectively, that is, a total of two adjustments can adjust the camera's position parameters to roughly align with the range that the user needs to share. Compared with the prior art that requires multiple adjustments of focal length, angle and / or position at a predetermined step length, this solution can achieve fast and accurate operation, and overall improves the adjustment speed and accuracy of the camera during the rough setting stage.
[0058] It should be noted that the picture content consistency mentioned in the embodiments of the present application does not mean that the final imaging data is completely the same, or the same after scaling, but means that the picture content is substantially the same. For the camera, after rotating a certain angle, an image is collected for a smaller area, and before rotating a certain angle, an image is collected for an angle area including a smaller area. Because of the change in the shooting angle, the image collected after the rotation angle may not be completely overlapped with the corresponding area of the image collected before the rotation angle after being reduced. However, the hardware of the camera itself causes slight differences in the images, and since step S102 itself is used to implement extensive settings, it does not affect the implementation of this solution.
[0059] When the user confirms that the rough settings in the first setting window are close to the ideal output screen range, the user can enter the detailed settings through the first confirmation operation. For the interactive tablet, when the first confirmation operation is received, the second setting window is displayed for the user to make detailed settings. The second setting window can be set to be slightly smaller than the first setting window, the same size as the first setting window, or larger than the first setting window.
[0060] Step S104: receiving a first movement operation on the second setting window, adjusting the camera position parameters according to the first movement operation, and displaying a third preview image captured after the camera is adjusted in the second setting window.
[0061] After the rough setting has been completed, the second setting window has displayed the picture (i.e., the second preview picture) collected by the camera according to the position parameters confirmed by the moving operation, and the second preview picture is close to the user's ideal output picture, the user's ideal output picture can be accurately and quickly realized by fine operations in the second setting window. Specifically, the user can perform the first moving operation in the second setting window, and adjust the shooting range of the camera to the same direction and the same distance (or the distance of a preset ratio) according to the real-time position of the first moving operation relative to the starting point of the first moving operation, and then reconfirm that the preview picture (i.e., the third preview picture) is displayed in the second setting window, and the user can see the latest and detailed picture adjusted according to the first moving operation in the second setting window, so that the user's ideal output picture can be accurately and quickly realized. In the embodiment of the present application, the first preview picture and the second preview picture are pictures that remain unchanged after the initial generation, and the third preview picture changes according to the first moving operation, and the second preview picture and the third preview picture are display pictures at different stages in the second setting window, wherein the second preview picture is the initial display picture in the second setting window, and the third preview picture is a display picture that changes and follows the second preview picture.
[0062] The above method receives a first trigger operation, displays a first setting window, displays a first preview image captured by the camera in the first setting window, and displays a selection box on the first preview image; receives an adjustment operation acting on the selection box, and adjusts the closed area of the selection box according to the adjustment operation; after receiving a first confirmation operation, adjusts the camera's position parameters according to the selection box, and displays a second setting window, displays a second preview image captured by the camera in the second setting window, and the second preview image is consistent with the image content selected in the selection box; receives a first move operation acting on the second setting window, adjusts the camera's position parameters according to the first move operation, and displays a third preview image captured by the camera after the adjustment in the second setting window. When setting the camera's position, coarse setting and fine setting are performed in turn through the first setting window and the second setting window, respectively. Coarse setting can quickly achieve comprehensive adjustment of the camera's azimuth and focal length through a single operation on the selection box; fine setting can accurately adjust details in a condition close to the ideal output, which improves the adjustment speed and accuracy of the camera as a whole.
[0063] On the basis of completing the fine settings in step S104, after receiving the second confirmation operation, the second setting window is closed, the camera position setting interface is displayed, and a preset camera position identifier is added to the camera position setting interface. The camera position parameters corresponding to the preset camera position identifier are the camera position parameters when the picture taken by the camera is the third preview picture, and the preset camera position identifier displays a thumbnail of the third preview picture. When the user confirms that the fine settings in the second setting window have achieved the ideal output picture, the second confirmation control can be triggered to end the camera position setting. For the interactive tablet, when the trigger operation acting on the second confirmation control is received, the camera position setting interface is returned to allow the user to view the latest all preset camera positions. Similar to the implementation method of the first confirmation control, the second confirmation control can be a normal display or a temporary display after each specific first move operation is completed.
[0064] After returning to the camera position setting interface, the user can execute steps S102 to S104 again to set a new camera position, or close the camera position setting interface and use any preset camera position in a specific scenario where a camera needs to be called, such as a video conference scenario. The output screen of the preset camera position is the screen generated by the camera calling and adjusting the camera for image acquisition according to the corresponding saved camera position parameters.
[0065] It should be understood that if the focus is adjusted in the first setting window as described above, the corresponding parameters after focusing should also be recorded in the preset camera position identification as the basis for the preset camera position to achieve a predetermined picture output.
[0066] As an optional implementation, the preset camera position identification is displayed with an editing control, and the existing preset camera position can be further adjusted based on the editing control. Based on the display of the editing control, the camera adjustment method also includes steps S105 to S108 to further adjust the existing preset camera position.
[0067] Step S105: receiving a second trigger operation acting on the editing control, and displaying a third setting window, wherein the third setting window displays a third preview image captured by the camera.
[0068] In terms of interaction needs, if a user makes further adjustments to an existing preset camera position, it is likely that the output picture of the existing preset camera position deviates slightly from the ideal output picture, which can be solved by slight adjustments. Therefore, in this embodiment, the design and interaction of the third setting window are similar to the design and interaction of the second setting window, and both achieve fine adjustment of the camera through subtle settings, thereby making fine adjustments to the output picture.
[0069] Step S106: receiving a second movement operation on the third setting window, adjusting the camera position parameters according to the second movement operation, and displaying a fourth preview image captured after the camera is adjusted in the third setting window.
[0070] Step S107: After receiving the third confirmation operation, close the third setting window, display the camera position setting interface, and update the preset camera position identifier in the camera position setting interface. The camera position parameters of the camera corresponding to the updated preset camera position identifier are the camera position parameters when the picture taken by the camera is the fourth preview picture, and the updated preset camera position identifier displays a thumbnail of the fourth preview picture.
[0071] The operation in the third setting window and the reception of the third confirmation operation can refer to the operation in the second setting window and the reception of the first confirmation operation and the second confirmation operation, for example, the third confirmation operation is received through a normally displayed third confirmation control or a temporarily displayed third confirmation control.
[0072] In this embodiment, the preset camera position mark or the third setting window may also display a delete control; the camera adjustment method further includes step S108:
[0073] Step S108: When the third trigger operation acting on the deletion control is received, return to the camera position setting interface, and delete the target preset camera position identifier confirmed by the third trigger operation.
[0074] After deleting a preset camera position identifier, the interface of the camera position setting is directly returned to. After returning to the camera position setting interface, any embodiment of the present application based on the camera position setting interface can be executed.
[0075] In a specific implementation, the delete control can be displayed directly on the preset camera position identifier and the edit control at the same time. If a delete operation is performed, the delete operation can be triggered directly on the preset camera position identifier. Another optional implementation method is to set only a delete control on the preset camera position identifier, directly delete the unnecessary preset camera positions, and directly create a new preset camera position through steps S101 to S104.
[0076] In the specific implementation process, one or more of the first setting window, the second setting window, and the third setting window may also be provided with a close control. When a fourth trigger operation acting on the close control is received, a prompt window pops up, in which a save control and a cancel control may be provided. If a fifth trigger operation acting on the save control is received, the preset position identification is saved and the position setting window is returned. If a sixth trigger operation acting on the cancel control is received, the current setting operation is terminated and the position setting window is returned. Of course, receiving the sixth trigger operation acting on the cancel control may also be to exit the closing process and continue the preset position setting. In addition, when a fourth trigger operation acting on the close control is received, the prompt box may not pop up, but the current setting operation may be terminated directly and the position setting window may be returned.
[0077] During the specific implementation process, one or more of the first setting window, the second setting window and the third setting window can also display an elimination control. When the seventh trigger operation acting on the elimination control is received, the existing operations in the current setting window are eliminated and the initial state of entering the setting window is restored. The user can quickly reset the current setting link and flexibly adjust the camera.
[0078] In addition, a direct save control can also be set in the first setting window. When a trigger operation acting on the direct save control is received, the area confirmed by the selection box in the first setting window can be directly saved as a preset camera position, and the camera position setting interface can be returned to end the current setting operation.
[0079] In another optional implementation, a focus control is displayed in the second setting window and / or the third setting window; accordingly, after the second setting window or the third setting window is displayed, a focus trigger operation acting on the focus control is received, the camera position parameters are adjusted according to the focus trigger operation, and a fourth preview screen captured by the camera after the adjustment is displayed in the third setting window. The shooting preview screen captured by the camera based on the default hardware parameters is usually a shooting preview screen with a maximum shooting range. For users, the preview screen within this range may contain too large a proportion of the background screen, and the proportion of the foreground screen that can be set for sharing is too small. At this time, the focal length of the camera can be adjusted through the focus control, thereby correspondingly changing the proportion of the foreground screen in the entire shooting preview screen.
[0080] In an interactive tablet, the camera may actually realize the image acquisition function in the form of a combination of multiple lenses. Different lens combinations with different parameters of lenses can achieve different imaging advantages. For example, the advantage of a wide-angle lens is in panoramic display, and the advantage of a telephoto lens is in long-distance focusing. That is, the camera can be regarded as including at least two sub-cameras with different focal length ranges; accordingly, upon receiving a trigger operation acting on the focus control, the sub-camera adapted to the target focal length confirmed by the focus trigger operation is called according to the focal length range, and the camera position parameters are adjusted according to the target focal length, which is equivalent to selecting a suitable sub-camera to obtain the best imaging effect according to the imaging that each sub-camera is good at. When the sub-camera adapted to the target focal length is switched, spatial mapping is performed according to the camera coordinate system of the sub-cameras before and after the switch, and the screen of the same area in the world coordinate system is collected by the switched sub-camera as the second preview screen or the third preview screen.
[0081] For an interactive tablet equipped with a wide-angle lens and a telephoto lens, in the upper-level application that implements the camera position setting interface, the camera stream can be pulled through the data interface provided by the browser, such as navigator.getUserMedia(), and the camera position setting interface will display the image captured by the camera through the wide-angle lens by default. Then, in different setting windows, users can adjust the size of the optional area or set the magnification multiple (the aspect ratio is always kept at 16:9) as needed to obtain the ideal output image the user wants. The interactive tablet will save the position of the selected area (such as the upper left corner coordinates and the lower right corner coordinates). Correspondingly, the camera position parameters of the preset camera position also include the identification and focal length of the sub-camera.
[0082] After the camera adjustment is completed and the adjusted camera position parameters are saved as a preset camera position, when the camera position selection interface is opened, the default camera position identifier and the preset camera position identifier can be displayed; when a click operation on the preset camera position identifier is received, the camera position parameters corresponding to the preset camera position identifier confirmed by the click operation are obtained, and the camera position is adjusted according to the obtained camera position parameters. Specifically, the use of the preset camera position can be realized through steps S109-S111.
[0083] Step S109: when the camera position selection interface is opened, the camera position identification is displayed, and the camera position identification includes a default camera position identification and a preset camera position identification, and each preset camera position identification corresponds to a camera position parameter of a preset camera position.
[0084] The camera selection interface can be Figure 4The trigger display of the camera control 201 shown, that is, when a trigger operation acting on the camera control 201 is received, a camera position selection interface is displayed, and the camera position selection interface is used to display all available preset camera position identifiers. Based on the preset preset camera position, the camera is called to have at least one preset camera position in addition to the default camera position. In the camera position selection interface, the default camera position and the preset camera position have corresponding camera position identifiers, that is, the default camera position identifier and the preset camera position identifier. The calling of the default camera position is the same as the prior art, and no repeated description is made here. The calling of the preset camera position requires obtaining the corresponding camera position parameters to call the camera to generate the corresponding output screen.
[0085] Step S110: when a trigger operation acting on any preset camera position identifier is received, the camera position parameter corresponding to the preset camera position identifier is obtained.
[0086] When a trigger operation acting on any preset camera position identification is received, the camera position parameters corresponding to the preset camera position identification where the trigger operation is located are obtained accordingly.
[0087] Step S111: calling and adjusting the camera to collect images according to the acquired camera position parameters.
[0088] Based on the acquired camera position parameters, the target sub-camera (if there are multiple sub-cameras) and the corresponding parameter information of each dimension are called to complete the focus, rotation and translation adjustment according to the parameter information of each dimension. After adjusting to the corresponding shooting state, the images collected in this state are used by the application currently calling the camera. Please refer to Figure 5-Figure 10 , the following is based on Figure 5-Figure 10 The intuitive presentation of this solution is exemplified in the process of implementing this solution on an interactive tablet set up in a conference room. As mentioned above, you can enter the preset camera position settings under the camera settings through various setting entrances, and display the following Figure 5 The camera position setting interface 21 shown in the figure currently displays a first preview screen 211, a default camera position mark 213 and a newly added control 212. The first preview screen 211 currently captures the conference table in the conference room, the chairs around the conference table and the conference participants.
[0089] When the interactive tablet receives the trigger operation acting on the newly added control 212, it confirms that the first trigger operation has been received, and responds to the first trigger operation, such as Figure 6 As shown, the first setting window 22a is displayed in the camera position setting interface 21, the first setting window 22a is displayed in a local window, the first preview screen 211 is entirely filled in the first setting window 22a, and the first setting window 22a also displays a selection box 221, a full screen control 222, a eliminate control 224, a direct save control 225 and a first confirmation control 226.
[0090] exist Figure 6 When receiving a move operation or a zoom operation on the selection box 221, the position of the selection box 221 in the first setting window 22a is adjusted accordingly to obtain a new closed area. Figure 6 When a trigger operation on the full screen control 222 is received, the first setting window 22a switches to Figure 7 In the first setting window 22b displayed in full screen, the display elements in the first setting window 22a and the first setting window 22b are the same or corresponding, for example, the display elements for setting the preset camera position are the same, and the display elements for switching between the two (the full screen control 222 and the restore control 227) correspond. Figure 6 When a trigger operation on the elimination control 224 is received, all operations on the selection box 221 in the first setting window 22a are canceled, and the entire setting window 22a is restored to the state where the first setting window 22a is just opened. Figure 6 When an operation on the direct save control 225 is received, the preset camera position can be directly saved, and a new preset camera position is directly generated without subsequent operations. Figure 6 When the trigger operation of the first confirmation control 226 is received, it is confirmed that the adjustment operation of the selection box 221 has been completed, the rough setting has ended, and the new camera position parameters can be confirmed according to the size relationship and relative position relationship between the selection box 221 and the first preview screen 221, and the camera position parameters when the camera shoots the first preview screen 221, and enter Figure 8 The second setting window 23 shown initially displays a second preview image collected according to new camera position parameters. Figure 7 The operation response in Figure 6 The operation responses in are generally the same, and will not be repeated here. It should also be noted that the execution process of the embodiment of the present application may not have a strict sequence, and some operations may not necessarily be performed before other operations. For example, after entering the first setting window 22a, it is not necessary to adjust the selection box 221 or switch to the full screen state, but directly respond to the triggering operation of the first confirmation control 226 to enter the second setting window 23 to start fine settings.
[0091] like Figure 8 As shown, the second setting window 23 is filled with Figure 6 In the second preview screen confirmed by the selection box 221, a focus control 231, a close control 232, a clear control 234 and a second confirmation control 235 are also displayed. Figure 8The focus control 231 can be used to adjust the focus of the display screen of the second setting window 23, and the closing control 232 can be used to directly close the second setting window 23 to end the current operation of setting the preset camera position, or save the currently set preset camera position while closing. The elimination control 234 can be used to cancel the existing operation in the second setting window 23 and restore to the state of just opening the second setting window 23. The second confirmation control 235 can be used to confirm that the preset camera position setting is completed, save the corresponding camera position parameters and return to the camera position setting interface 21.
[0092] like Fig. 9 As shown, the returned camera position setting interface 21 adds a preset camera position mark 214, and the preset camera position mark 214 displays an editing control. When a trigger operation acting on the editing control 214 is received, the display is as shown in FIG. Fig.10 The third setting window 24 shown in the figure can be filled with a sub-screen of the corresponding display area in the latest preview shooting screen, and also displays a focus control 241, a close control 242, a delete control 243, an elimination control 244 and a third confirmation control 245. The operations of the focus control 241, the close control 242, the elimination control 244 and the third confirmation control 245 are substantially the same as those of the second setting window 23, and are not described repeatedly here. When a trigger operation acting on the delete control 243 is received, the preset camera position identifier 214 is deleted, and the camera position setting interface is returned.
[0093] Through the above operations, the preset camera position can be quickly and flexibly set from the imaging of a camera according to the picture that the user needs to share, and can be flexibly called during specific use. The process of setting the preset camera position has intuitive and clear operation objectives, and the operation of achieving ideal output is simple and conforms to the interaction habits that users have developed on the touch-sensitive display screen.
[0094] Fig.11 A method flow chart of an image acquisition method provided in an embodiment of the present application. The image acquisition method provided in this embodiment is applied in the same scenario as the camera adjustment method provided in the above embodiment, mainly realizing image acquisition through a pre-set preset camera position, and providing a setting process of the preset camera position. Fig.11 , the image acquisition method provided in this embodiment includes:
[0095] Step S201: when the camera position selection interface is opened, the camera position identification is displayed, and the camera position identification includes a default camera position identification and a preset camera position identification, and each preset camera position identification corresponds to a camera position parameter of a preset camera position;
[0096] Step S202: upon receiving a trigger operation acting on any preset camera position identifier, obtaining camera position parameters corresponding to the preset camera position identifier;
[0097] Step S203: calling and adjusting the camera to collect images according to the acquired camera position parameters.
[0098] Based on the above embodiment, the image acquisition method further includes:
[0099] Receiving a first trigger operation, displaying a first setting window, wherein the first setting window displays a first preview image captured by the camera, and a selection box is displayed on the first preview image;
[0100] Receiving an adjustment operation acting on the selection box, and adjusting the closed area of the selection box according to the adjustment operation;
[0101] After receiving the first confirmation operation, the camera position parameters are adjusted according to the selection box, and a second setting window is displayed, in which a second preview image captured by the camera is displayed, and the second preview image is consistent with the image content selected in the selection box;
[0102] A first movement operation acting on the second setting window is received, the camera position parameters are adjusted according to the first movement operation, and a third preview picture captured after the camera is adjusted is displayed in the second setting window.
[0103] Based on the above embodiment, after receiving the first movement operation acting on the second setting window, adjusting the camera position parameters according to the first movement operation, and displaying the third preview picture collected after the camera is adjusted in the second setting window, the method further includes:
[0104] After receiving the second confirmation operation, the second setting window is closed, the camera position setting interface is displayed, and a preset camera position identifier is added to the camera position setting interface. The camera position parameters of the camera corresponding to the preset camera position identifier are the camera position parameters when the picture taken by the camera is the third preview picture, and the preset camera position identifier displays a thumbnail of the third preview picture.
[0105] Based on the above embodiment, the preset camera position mark is displayed with an editing control, and the image acquisition method further includes:
[0106] receiving a second trigger operation acting on the editing control, and displaying a third setting window, wherein the third setting window displays a third preview image captured by the camera;
[0107] receiving a second movement operation applied to the third setting window, adjusting the camera position parameters according to the second movement operation, and displaying a fourth preview image captured after the camera is adjusted in the third setting window;
[0108] After receiving the third confirmation operation, the third setting window is closed, the camera position setting interface is displayed, and the preset camera position identifier is updated in the camera position setting interface. The camera position parameters of the camera corresponding to the updated preset camera position identifier are the camera position parameters when the picture taken by the camera is the fourth preview picture, and the updated preset camera position identifier displays a thumbnail of the fourth preview picture.
[0109] Based on the above embodiment, the preset camera position mark or the third setting window displays a delete control; the image acquisition method further includes:
[0110] When the third trigger operation acting on the deletion control is received, the camera position setting interface is returned, and the target preset camera position identifier confirmed by the third trigger operation is deleted.
[0111] Based on the above embodiment, a focus control is displayed in the third setting window;
[0112] Correspondingly, after receiving the second trigger operation acting on the edit control and displaying the third setting window, the method further includes:
[0113] A focus trigger operation acting on a focus control is received, the position parameters of the camera are adjusted according to the focus trigger operation, and a fourth preview image captured after the camera is adjusted is displayed in a third setting window.
[0114] Based on the above embodiment, a focus control is displayed in the second setting window;
[0115] Correspondingly, after receiving the first confirmation operation, adjusting the camera position parameters according to the selection box, and displaying the second setting window, the method further includes:
[0116] A focus trigger operation acting on a focus control is received, the position parameters of the camera are adjusted according to the focus trigger operation, and a third preview image captured after the camera is adjusted is displayed in a second setting window.
[0117] Based on the above embodiment, the camera includes at least two sub-cameras with different focal length ranges;
[0118] Accordingly, a focus trigger operation acting on a focus control is received, and the position parameters of the camera are adjusted according to the focus trigger operation, including:
[0119] When a trigger operation acting on a focus control is received, a sub-camera adapted to a target focal length confirmed by the focus trigger operation is called according to a focal length range, and the camera position parameters are adjusted according to the target focal length.
[0120] On the basis of the above embodiment, a trigger operation acting on a focus control is received, a sub-camera adapted to a target focal length confirmed by the focus trigger operation is called according to a focal length range, and a camera position parameter is adjusted according to the target focal length, including:
[0121] When the sub-camera adapted to the target focal length is switched, spatial mapping is performed according to the camera coordinate systems of the sub-cameras before and after the switching, and the image of the same area in the world coordinate system is captured by the switched sub-camera as the second preview image or the third preview image.
[0122] Based on the above embodiment, the first setting window is a full-screen window or a partial window, the full-screen window displays a restore control, and the partial window is provided with a full-screen control;
[0123] Accordingly, the image acquisition method further includes:
[0124] When the first setting window is displayed in a full-screen window, upon receiving a trigger operation acting on a restore control, the first setting window is switched to be displayed in a partial window;
[0125] In the case where the first setting window is displayed in a partial window, when a trigger operation acting on a full-screen control is received, the first setting window is switched to be displayed in a full-screen window.
[0126] Based on the above embodiment, after receiving the first trigger operation and displaying the first setting window, the method further includes:
[0127] A third moving operation applied to the first preview picture is received, and picture content of the first preview picture within the selection box is adjusted according to the third moving operation.
[0128] In the above method, when the camera position selection interface is opened, the camera position identification is displayed, and the camera position identification includes a default camera position identification and a preset camera position identification. Each preset camera position identification corresponds to a camera position parameter of a preset camera position. When a trigger operation acting on any preset camera position identification is received, the camera position parameters corresponding to the preset camera position identification are obtained. The camera is called and adjusted for image acquisition according to the obtained camera position parameters. The process of setting the preset camera position has an intuitive and clear operation goal, and the operation of achieving ideal output through the camera position selection interface is simple.
[0129] It should be noted that the embodiment of the image acquisition method describes the entire process from the preset camera position setting before image acquisition to the final generation of the picture with image acquisition as the core. The specific implementation of a single step has been described in the embodiment of the camera adjustment method in the previous text, and will not be repeated here.
[0130] Fig.12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12As shown, the electronic device includes a processor 510 and a memory 520. In a common product form, it may also include an input device 530, an output device 540, and a communication device 550. The number of processors 510 in the electronic device may be one or more. Fig.12 A processor 510 is taken as an example; the processor 510, the memory 520, the input device 530, the output device 540 and the communication device 550 in the electronic device can be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.
[0131] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the camera adjustment method and the image acquisition method in the embodiment of the present application. The processor 510 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, realizing the above-mentioned camera adjustment method and / or image acquisition method.
[0132] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely arranged relative to the processor 510, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0133] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include a display device such as a display screen.
[0134] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by an electronic device, it implements the relevant operations in the camera adjustment method or image acquisition method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.
[0135] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0136] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0138] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0139] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0140] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A camera adjustment method, comprising: Receiving a first trigger operation, displaying a first setting window, wherein the first setting window displays a first preview image captured by the camera, and a selection box is displayed on the first preview image; receiving an adjustment operation acting on the selection box, and adjusting a closed area of the selection box according to the adjustment operation; After receiving the first confirmation operation, adjusting the camera position parameters according to the selection box, and displaying a second setting window, wherein the second setting window displays a second preview image captured by the camera, and the second preview image is consistent with the image content selected in the selection box; A first movement operation acting on the second setting window is received, the position parameters of the camera are adjusted according to the first movement operation, and a third preview picture captured by the camera after the adjustment is displayed in the second setting window.
2. The camera adjustment method according to claim 1, after receiving the first movement operation acting on the second setting window, adjusting the camera position parameters according to the first movement operation, and displaying the third preview picture collected after the camera is adjusted in the second setting window, further comprising: After receiving the second confirmation operation, the second setting window is closed, the camera position setting interface is displayed, and a preset camera position identifier is added to the camera position setting interface. The camera position parameters of the camera corresponding to the preset camera position identifier are the camera position parameters when the picture taken by the camera is the third preview picture, and the preset camera position identifier displays a thumbnail of the third preview picture.
3. The camera adjustment method according to claim 2, wherein the preset camera position mark is displayed with an editing control, and the camera adjustment method further comprises: receiving a second trigger operation acting on the editing control, and displaying a third setting window, wherein the third setting window displays a third preview image captured by the camera; receiving a second movement operation acting on the third setting window, adjusting the camera position parameters of the camera according to the second movement operation, and displaying a fourth preview picture captured by the camera after the adjustment in the third setting window; After receiving the third confirmation operation, the third setting window is closed, the camera position setting interface is displayed, and the preset camera position identifier is updated in the camera position setting interface. The camera position parameters of the camera corresponding to the updated preset camera position identifier are the camera position parameters when the picture taken by the camera is the fourth preview picture, and the updated preset camera position identifier displays a thumbnail of the fourth preview picture.
4. The camera adjustment method according to claim 3, wherein the preset camera position mark or the third setting window displays a delete control; the camera adjustment method further comprises: When a third trigger operation acting on the deletion control is received, the camera position setting interface is returned to, and the target preset camera position identifier confirmed by the third trigger operation is deleted.
5. The camera adjustment method according to claim 2, further comprising: When the camera position selection interface is opened, the default camera position identification and the preset camera position identification are displayed; A click operation on the preset camera position identifier is received, a camera position parameter corresponding to the preset camera position identifier confirmed by the click operation is acquired, and the camera position of the camera is adjusted according to the acquired camera position parameter.
6. The camera adjustment method according to claim 3, wherein a focus control is displayed in the third setting window; Correspondingly, after receiving the second trigger operation acting on the editing control and displaying the third setting window, the method further includes: A focus trigger operation acting on the focus control is received, the position parameters of the camera are adjusted according to the focus trigger operation, and a fourth preview picture captured by the camera after the adjustment is displayed in the third setting window.
7. The camera adjustment method according to claim 1, wherein a focus control is displayed in the second setting window; Correspondingly, after receiving the first confirmation operation, adjusting the camera position parameters according to the selection box, and displaying the second setting window, it also includes: A focus trigger operation acting on the focus control is received, the position parameters of the camera are adjusted according to the focus trigger operation, and a third preview picture captured by the camera after the adjustment is displayed in the second setting window.
8. The camera adjustment method according to claim 6 or 7, wherein the camera comprises at least two sub-cameras with different focal length ranges; Correspondingly, receiving a focus trigger operation acting on the focus control, and adjusting the position parameters of the camera according to the focus trigger operation, includes: A trigger operation acting on the focus control is received, a sub-camera adapted to a target focal length confirmed by the focus trigger operation is called according to the focal length range, and a camera position parameter of the camera is adjusted according to the target focal length.
9. The camera adjustment method according to claim 8, wherein receiving a trigger operation acting on the focus control, calling a sub-camera adapted to a target focal length confirmed by the focus trigger operation according to the focal length range, and adjusting the camera position parameters according to the target focal length, comprises: When the sub-camera adapted to the target focal length is switched, spatial mapping is performed according to the camera coordinate systems of the sub-cameras before and after the switching, and the image of the same area in the world coordinate system is captured by the switched sub-camera as the second preview image or the third preview image.
10. The camera adjustment method according to any one of claims 1 to 7, wherein the first setting window is a full-screen window or a partial window, the full-screen window displays a restore control, and the partial window is provided with a full-screen control; Accordingly, the camera adjustment method further includes: When the first setting window is displayed in a full-screen window, upon receiving a trigger operation acting on the restoration control, switching the first setting window to be displayed in a partial window; In the case where the first setting window is displayed in a partial window, upon receiving a trigger operation acting on the full-screen control, the first setting window is switched to be displayed in a full-screen window.
11. The camera adjustment method according to any one of claims 1 to 7, after receiving the first trigger operation and displaying the first setting window, further comprising: A third moving operation applied to the first preview picture is received, and picture content of the first preview picture within the selection box is adjusted according to the third moving operation.
12. Image acquisition method, including: When the camera position selection interface is opened, the camera position identification is displayed, and the camera position identification includes a default camera position identification and a preset camera position identification, and each preset camera position identification corresponds to recording a camera position parameter of a preset camera position; When a trigger operation acting on any of the preset camera position identifiers is received, obtaining camera position parameters corresponding to the preset camera position identifier; Call and adjust the camera for image acquisition based on the acquired camera position parameters.
13. The image acquisition method according to claim 12, further comprising: Receiving a first trigger operation, displaying a first setting window, wherein the first setting window displays a first preview image captured by the camera, and a selection box is displayed on the first preview image; receiving an adjustment operation acting on the selection box, and adjusting a closed area of the selection box according to the adjustment operation; After receiving the first confirmation operation, adjusting the camera position parameters according to the selection box, and displaying a second setting window, wherein the second setting window displays a second preview image captured by the camera, and the second preview image is consistent with the image content selected in the selection box; A first movement operation acting on the second setting window is received, the position parameters of the camera are adjusted according to the first movement operation, and a third preview picture captured by the camera after the adjustment is displayed in the second setting window.
14. The image acquisition method according to claim 13, after receiving the first movement operation acting on the second setting window, adjusting the camera position parameters according to the first movement operation, and displaying the third preview picture acquired by the camera after the adjustment in the second setting window, further comprising: After receiving the second confirmation operation, the second setting window is closed, the camera position setting interface is displayed, and a preset camera position identifier is added to the camera position setting interface. The camera position parameters of the camera corresponding to the preset camera position identifier are the camera position parameters when the picture taken by the camera is the third preview picture, and the preset camera position identifier displays a thumbnail of the third preview picture.
15. The image acquisition method according to claim 14, wherein the preset camera position mark is displayed with an editing control, and the image acquisition method further comprises: receiving a second trigger operation acting on the editing control, and displaying a third setting window, wherein the third setting window displays a third preview image captured by the camera; receiving a second movement operation acting on the third setting window, adjusting the camera position parameters of the camera according to the second movement operation, and displaying a fourth preview picture captured by the camera after the adjustment in the third setting window; After receiving the third confirmation operation, the third setting window is closed, the camera position setting interface is displayed, and the preset camera position identifier is updated in the camera position setting interface. The camera position parameters of the camera corresponding to the updated preset camera position identifier are the camera position parameters when the picture taken by the camera is the fourth preview picture, and the updated preset camera position identifier displays a thumbnail of the fourth preview picture.
16. Electronic equipment, including: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the method according to any one of claims 1 to 15.
17. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by an electronic device tablet, implements the method according to any one of claims 1 to 15.