Virtual machine position setting method, image acquisition method, electronic equipment and storage medium
By adjusting the selection box and previewing the sub-screen of the shooting screen step by step in the camera setting interface, the problem of unclear operation target perception and cumbersome adjustment operations in virtual camera setting is solved, realizing an intuitive and simplified virtual camera setting process. .
Patent Information
- Application Number
- CN202310876695.9
- 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
When setting up virtual machine bits in the prior art, the operation target perception is unclear and the operation of area position adjustment is complicated.
Provide a virtual machine position setting method. The new control is displayed by displaying the interface of the position settings. After receiving the trigger operation, the first setting window and the second setting window are displayed. Preview the sub -screen of the shooting screen to achieve the ideal virtual machine setting.
Through this method, the operation goals are intuitive and clear, the setting process of the virtual machine position is simplified, the operation of the ideal output is simple, which is in line with the user's interaction habits.
Smart Images

Figure CN119364176A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of interactive technology, and in particular to a virtual machine position setting method, an image acquisition method, an electronic device, and a storage medium. Background Art
[0002] The camera integrated in the electronic device can be called in various scenarios to meet various image acquisition application requirements, such as QR code recognition, picture shooting, video calls, etc. When the camera is actually called for image acquisition, it is usually necessary to adjust the parameters of the camera to acquire the image in order to acquire an image that meets the specific usage requirements.
[0003] When the camera integrated in the interactive tablet is used for video conferencing, the camera as a whole outputs one channel of image data. For a variety of specific video conferences, the image output by the initial configuration of the camera may not meet the image transmission requirements of all video conferences. Therefore, it is necessary to configure the parameters of the camera to acquire the image, so as to obtain a picture that meets the image transmission requirements of the current video conference based on the camera outputting one channel of image data. This is equivalent to presenting the effect of multiple camera positions from the output result through configuration on the basis of one camera corresponding to one physical camera position. Here, the picture output by the camera based on the initial configuration is defined as the picture of the physical camera position, and other pictures are defined as the pictures of the virtual camera position.
[0004] The existing setting process of obtaining a virtual machine position is usually achieved through picture size adjustment and area position adjustment, that is, on the basis of displaying a preview shooting picture in a setting window of fixed size, the display ratio of the preview shooting picture is adjusted by the picture size, and then the content of the preview shooting picture presented in the setting window is changed by area position adjustment. When the setting window presents the desired image output effect, the setting process is ended and the relative area range of the setting window in the picture after the picture size adjustment is saved as the image data source of a virtual machine position. When the image is subsequently transmitted, the data within the area range is used as the picture output of the virtual machine position.
[0005] During the implementation of the existing virtual machine position setting, the inventor found that the screen size adjustment is performed with reference to the center of the preview shooting screen, and the adjusted preview shooting screen is only partially visible in the setting window, and the user's perception of the operation target is unclear; after zooming in with the center of the preview shooting screen as the zoom center, if the desired image is output at the edge of the preview shooting screen, multiple regional position adjustments are required to create an ideal virtual machine position, and the regional position adjustment operation is cumbersome. Summary of the invention
[0006] The present invention provides a virtual machine position setting method, an image acquisition method, a device, an equipment and a medium to solve the technical problems in the prior art of setting a virtual machine position that the perception of the operation target is unclear and the regional position adjustment operation is cumbersome.
[0007] In a first aspect, an embodiment of the present invention provides a method for setting a virtual machine bit, the method comprising:
[0008] When opening the camera position setting interface, new controls are displayed on the camera position setting interface;
[0009] When a trigger operation acting on a newly added control is received, a first setting window is displayed, wherein a preview image of the camera, an adjustable selection box, and a first confirmation control are displayed in the first setting window;
[0010] When receiving a region adjustment operation acting on the selection box, adjusting the closed region of the selection box according to the region adjustment operation;
[0011] When a trigger operation acting on the first confirmation control is received, a second setting window is displayed, wherein the second setting window displays a sub-screen corresponding to the closed area of the preview shooting screen and a second confirmation control;
[0012] When a first moving operation acting on the second setting window is received, the display content of the second setting window is updated according to the first moving operation, with the position of the sub-image of the closed area in the preview shooting image as a reference;
[0013] When a trigger operation acting on the second confirmation control is received, the camera position setting interface is returned, and a virtual machine position identifier is added to the camera position setting interface. The output screen of the virtual machine position corresponding to the newly added virtual machine position identifier is the screen of the first camera position area in the real-time shooting screen of the camera. The first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting screen.
[0014] In a second aspect, an embodiment of the present invention further provides an image acquisition method, the image acquisition method comprising:
[0015] When the seat selection interface is opened, the seat identification is displayed. The seat identification includes a complete seat identification and a virtual seat identification. Each virtual seat identification corresponds to a seat parameter of a virtual seat. The seat parameter includes a seat area.
[0016] When receiving a trigger operation acting on any virtual machine seat identifier, obtaining the seat parameters corresponding to the virtual machine seat identifier;
[0017] The camera is called to collect real-time shooting images according to the acquired camera position parameters, and a sub-image is extracted from the real-time shooting image according to the acquired camera position area as the output image of the virtual machine position.
[0018] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0019] one or more processors;
[0020] A memory for storing one or more programs;
[0021] When one or more programs are executed by one or more processors, the electronic device implements the virtual machine position setting method of the first aspect or the image acquisition method of the second aspect.
[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the virtual machine position setting method of the first aspect or the image acquisition method of the second aspect.
[0023] In the above-mentioned virtual machine position setting method, image acquisition method, electronic device and storage medium, when the position setting interface is opened, a newly added control is displayed in the position setting interface; when a trigger operation acting on the newly added control is received, a first setting window is displayed, and the first setting window displays a preview shooting picture of the camera, an adjustable selection box and a first confirmation control; when an area adjustment operation acting on the selection box is received, the closed area of the selection box is adjusted according to the area adjustment operation; when a trigger operation acting on the first confirmation control is received, a second setting window is displayed, and a sub-picture of the preview shooting picture corresponding to the closed area and a second confirmation control are displayed in the second setting window; when a first moving operation acting on the second setting window is received, the position of the sub-picture of the closed area in the preview shooting picture is used as a reference, and the display content of the second setting window is updated according to the first moving operation; when a trigger operation acting on the second confirmation control is received, the position setting interface is returned, and a virtual machine position identifier is added to the position setting interface, and the output picture of the virtual machine position corresponding to the newly added virtual machine position identifier is the picture of the first position area in the real-time shooting picture of the camera, and the first position area is the area corresponding to the last display content of the second setting window in the preview shooting picture. When setting up the virtual machine position, make rough settings and fine settings respectively through the first setting window and the second setting window, and save them as the position parameters of a virtual machine position. When using the virtual machine position, according to the corresponding position parameters, the image data of the corresponding position is extracted from the real-time shooting picture of the camera to obtain the output picture of the virtual machine position. The process of setting the virtual machine position is intuitive and clear, and the operation to achieve ideal output is simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A method flow chart of a virtual machine bit setting method provided by an embodiment of the present invention.
[0025] Figure 2A diagram showing the settings interface for an existing virtual machine.
[0026] Figure 3 Schematic diagram of the setup process for an existing virtual machine.
[0027] Figure 4 This is a schematic diagram of the front layout of the interactive tablet.
[0028] Figure 5 This is a schematic diagram of the camera setting interface.
[0029] Figure 6 This is a schematic diagram showing the first setting window displayed in the form of a partial window.
[0030] Figure 7 This is a schematic diagram showing the first setting window being displayed in full-screen window form.
[0031] Figure 8 A schematic diagram of the second setting window.
[0032] Fig. 9 Diagram of adding a virtual machine position to the position settings interface.
[0033] Fig.10 This is a diagram of the third setting window.
[0034] Fig.11 A method flow chart of an image acquisition method provided by an embodiment of the present invention.
[0035] Fig.12 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention 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 invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0037] 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.
[0038] The virtual machine position setting method and image acquisition method in the embodiment of the present invention can be applied to various electronic devices equipped with cameras, such as smart phones, tablet computers, laptop computers, interactive tablets, etc. In the specific description, an interactive tablet is used as an example for illustrative explanation. 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. It integrates one or more functions such as a projector, an electronic whiteboard, a screen, a speaker, 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.
[0039] Typically, the interactive tablet is installed with at least one operating system, wherein the operating system includes but is not limited to Android system, Linux system, Windows system and Huawei Hongmeng system, which is used to control and coordinate the interactive tablet and external devices, so that various independent hardware in the interactive tablet can work as a stable whole, and the architecture level where the operating system is located is defined as the system layer. On the basis of the system layer, the interactive tablet is installed with applications developed to meet different fields and different problems of users, and the corresponding architecture level is the application layer. In the description of the specific embodiment of this scheme, the interactive tablet can install at least one application with a writing function. Among them, the application with a writing function can be an application that comes with the operating system, and it can also be an application downloaded from a third-party device or server. Optionally, in addition to the writing function based on touch operation, the application also has other editing functions, such as deletion function, inserting tables, inserting pictures, illustration graphics, drawing tables, drawing graphics and other functions. The interactive interface corresponding to the application with a writing function is the writing interface mentioned in this scheme.
[0040] The range covered by the graphical interface displayed in the display screen of the interactive tablet can be a touch detection area for detecting user operations, that is, the range of the graphical interface and the touch detection area basically overlaps or may not overlap. When a touch operation is performed in the touch detection area, such as when a writing pen or a finger contacts a display screen with a touch function to write, the touch sensor module of the display screen can sense changes in infrared light, current, voltage, magnetic flux or pressure (corresponding to the specific setting type of infrared display screen, capacitive display screen, resistive display screen, electromagnetic display screen or pressure-sensitive display screen), so as to obtain a touch signal containing the coordinates of the touch position and the trigger time of the touch signal after conversion. According to the coordinates of the touch position and the trigger time of the touch signal, the trajectory data of the writing trajectory input by the writing pen or the user's finger during each press to write and lift to stop writing can be obtained, and the writing trajectory input by the user is displayed in real time on the graphical interface of the display screen according to the trajectory data. Of course, the writing process is not limited to writing, and any input process for displaying the operation trajectory implemented on the display screen of the interactive tablet can be regarded as a writing process. In addition, according to the different display elements at the location where the touch operation occurs, the touch operation can be responded to as a user's click, drag and other operations. These different response methods have the same underlying coordinate processing method. Based on the hardware implementation of basic functions such as touch and display, various interactive display designs of interactive tablets can be realized.
[0041] like Figure 4 As 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.
[0042] 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 an X coordinate and a Y coordinate of the touch position.
[0043] When the above-mentioned interactive tablet based on 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 needs to be sent most 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 set up a virtual machine position to realize the image data collection and picture sharing of the designated key areas.
[0044] Please refer to Figure 2 and Figure 3 , which presents an existing virtual machine bit setting process. Figure 2 As shown, the camera position setting interface includes a setting window 251, a zoom control 253 and a movement control 254. First, a preview shooting picture of the camera is fully displayed in a setting window 251. Figure 2The foreground of the preview shot is the conference table and three communication participants. When the final virtual machine position outputs the picture to determine the virtual machine position, the relative position of the content displayed in the setting window 251 in the preview shot picture is used as a reference, for example, Figure 2 If the virtual machine position is confirmed in the initial state shown, the output image of the virtual machine position is actually the original image directly output by the camera. Figure 2 The state shown may not be the picture that actually needs to be shared in the conference scene. In this case, the preview shot picture 252 is first enlarged through the zoom control 253. The enlargement is enlarged from the center of the preview shot picture 252 outwards. The center part of the enlarged preview shot picture 252 is displayed in the setting window 251. Figure 3 As shown, the enlarged preview shooting picture 252 can no longer be fully displayed in the setting window 251. If the center of the preview shooting picture 252 is not the picture to be shared, it is necessary to adjust the content of the preview shooting picture 252 displayed in the setting window 251 by moving the control 254 until the ideal shared picture is presented in the setting window 251. During the operation by moving the control 254, if the ideal shared picture is located in a smaller range at the edge of the preview shooting picture 252, it is necessary to first enlarge the preview shooting picture 252 by a larger multiple by the zoom control 253, and then move the control 254 more times to obtain the ideal shared picture. In this process, the enlarged preview shooting picture 252 can only be partially presented in the setting window 251, the operation target is not fully and intuitively presented, and the operation process is cumbersome. In addition, the human-computer interaction of the interactive tablet is realized through the touch-sensitive display screen, while the setting of the virtual machine position is realized through the remote control of the pan-tilt camera. The overall interactive design violates the user's touch operation intuition on the interactive tablet and does not conform to the user's operating habits that have been developed on the touch-sensitive display screen.
[0045] The virtual machine position setting method provided in the embodiment of the present invention is applicable to the overall design scheme of the interactive tablet described above. The method can be executed by a virtual machine position setting device, wherein the device can be implemented on the interactive tablet by software and / or hardware.
[0046] Each embodiment is described in detail below.
[0047] Figure 1 A method flow chart of a virtual machine bit setting method provided by an embodiment of the present invention, such as Figure 1 As shown, the virtual machine bit setting method includes:
[0048] Step S101: When the camera position setting interface is opened, newly added controls are displayed on the camera position setting interface.
[0049] An interface refers to an interactive interface used by an application to receive and / or display information. For example, an interactive interface for a video playback application is mainly used to display changing video images; an interactive interface for a real-time communication application is mainly used to receive content input by a local user and display content input by a remote user; an interactive interface for a file editing application is mainly used to receive content input by a user and display it; and an interactive interface for a browser application is mainly used to receive keywords input by a user and display web page content based on the keywords.
[0050] The virtual machine position setting method in this scheme 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 setting the virtual machine position. 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 position setting interface is opened to set the virtual machine position. Of course, it is also possible to provide a position setting interface for setting the virtual machine position in an independently installed dedicated video conferencing application. As long as the interface is used to implement the position setting, no matter which application provides it, it is equivalent to the position setting interface in the embodiment of the present application. For example Figure 2 and Figure 3 As shown, this is the camera position setting interface of the existing camera position setting plan.
[0051] When an operation corresponding to a virtual machine position setting item or an operation of a dedicated control is received, the position setting interface is opened. When the position setting interface is opened, the position setting interface synchronously displays the newly added controls as a trigger entry for implementing the virtual machine position setting in the embodiment of the present application. The position setting interface can display the complete position by default, and the output screen of the complete position is the screen captured by the camera under the default parameters. The camera preview shooting screen can also be displayed simultaneously in the position setting interface as a preview of the output screen of the complete position and as a preview of the currently captured screen by the user.
[0052] Step S102: When a trigger operation acting on a newly added control is received, a first setting window is displayed, in which a preview image of the camera, an adjustable selection box and a first confirmation control are displayed.
[0053] When a trigger operation acting on a newly added control is received, a first setting window is displayed in response to the trigger operation, and a preview shot picture of the camera is displayed in the first setting window, that is, the user can view the complete picture that can be selected as the output picture of the virtual machine position in the first setting window. In this solution, the preview shot picture does not refer to a picture with static content, but refers to the picture collected by the camera according to the current hardware control parameters (such as focal length), which is the maximum picture range that can be selected for output.
[0054] The selection box is a tool that enables users to make rough settings for the preview shooting screen. The selection box is a rectangle, and the aspect ratio of the selection box is the same as the aspect ratio of the 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 the 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. 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.
[0055] The first confirmation control is used by the user to confirm that the settings in the first setting window have been completed and that subsequent adjustments can be made.
[0056] 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 preset hardware 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.
[0057] In a specific display mode, the first setting window is a full-screen window or a partial window, the full-screen window is displayed with a restore control, and the partial window is provided with a full-screen control; accordingly, the virtual machine position setting 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, a preview shot picture is displayed, and it is possible that the shooting range corresponding to the preview shot picture itself is relatively large. When the preview shot picture is displayed in a smaller first setting window (i.e., a partial window), the operation accuracy is too low. At this time, the preview shot picture can be displayed in full screen (i.e., a full-screen window) through the full-screen control in the partial window, so as 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 by operating in a small range.
[0058] Step S103: when receiving an area adjustment operation acting on the selection frame, adjusting the closed area of the selection frame according to the area adjustment operation.
[0059] 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 scale the selection box. Both types of operations can adjust the closed area of the selection box. The operating range of both types of operations is constrained within the display range of the preview shooting screen. 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 preview shooting screen displayed in the first setting window, the actual closed area may account for a small proportion, and the details of the screen cannot be clearly viewed. Very fine operations cannot be performed based on a clear view of the details. Therefore, the area adjustment operation can be regarded as a rough setting of the output screen of the virtual machine position.
[0060] Step S104: When a trigger operation acting on the first confirmation control is received, a second setting window is displayed, wherein the second setting window displays a sub-screen corresponding to the closed area of the preview shooting screen and a second confirmation control.
[0061] When the user confirms that the rough settings in the first setting window are close to the ideal output screen, the first confirmation control can be triggered to enter the detailed settings. For the interactive tablet, when a trigger operation acting on the first confirmation control 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. The sub-screen corresponding to the closed area of the preview shooting screen is displayed in the second setting window, which is equivalent to an enlarged display. On the basis of the enlarged display, the user can clearly view the details of the picture.
[0062] The second confirmation control is used for the user to confirm that the settings in the second setting window have been completed and the setting of the virtual machine position can be completed.
[0063] Step S105: when a first moving operation acting on the second setting window is received, the position of the sub-image of the closed area in the preview shooting image is used as a reference, and the display content of the second setting window is updated according to the first moving operation.
[0064] In the second setting window, the sub-image of the enclosed area has been enlarged and displayed, and the sub-image is close to the user's ideal output image. On the basis that the user's ideal output image can be accurately and quickly realized by performing subtle operations in the second setting window. Specifically, the user can perform a first moving operation in the second setting window, and according to the direction and distance of the real-time position of the first moving operation relative to the starting point of the first moving operation, adjust the sub-image in the same direction and the same distance (or a preset ratio of distance) in the coverage range of the preview shooting image, and then reconfirm that the sub-image is displayed in the second setting window. 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 image can be accurately and quickly realized.
[0065] Step S106: When a trigger operation acting on the second confirmation control is received, return to the camera position setting interface, and add a virtual machine position identifier in the camera position setting interface. The output screen of the virtual machine position corresponding to the newly added virtual machine position identifier is the screen of the first camera position area in the real-time shooting screen of the camera. The first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting screen.
[0066] When the user confirms that the fine settings in the second setting window have achieved the ideal output screen, the second confirmation control can be triggered to end the virtual machine position setting. For the interactive tablet, when receiving the trigger operation acting on the second confirmation control, it returns to the position setting interface for the user to view all the latest virtual machine positions.
[0067] After returning to the camera position setting interface, the user can execute steps S102 to S106 again to set a new virtual position, or close the camera position setting interface and use any virtual position in a specific scene where a camera needs to be called, such as a video conference scene. The output screen of the virtual position is the available screen of the camera position area finally confirmed in the second setting window in the real-time shooting screen of the camera, that is, the screen of the specified area is extracted from the real-time shooting screen of the camera as the output screen of the virtual position.
[0068] It should be understood that if the focus is adjusted in the first setting window as described above, the corresponding parameters after the focus adjustment should also be recorded in the virtual machine position mark as a basis for the virtual machine position to achieve a predetermined screen output.
[0069] The above method displays a newly added control on the camera position setting interface when the camera position setting interface is opened; displays a first setting window when a trigger operation acting on the newly added control is received, wherein the first setting window displays a preview shooting picture of the camera, an adjustable selection box and a first confirmation control; adjusts the closed area of the selection box according to the area adjustment operation when an area adjustment operation acting on the selection box is received; displays a second setting window when a trigger operation acting on the first confirmation control is received, wherein the second setting window displays a sub-picture of the preview shooting picture corresponding to the closed area and a second confirmation control; updates the display content of the second setting window according to the first move operation with reference to the position of the sub-picture of the closed area in the preview shooting picture when a first move operation acting on the second setting window is received; returns to the camera position setting interface when a virtual machine position identifier is added to the camera position setting interface, wherein the output picture of the virtual machine position corresponding to the newly added virtual machine position identifier is the picture of the first camera position area in the real-time shooting picture of the camera, and the first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting picture. When setting up the virtual machine position, rough settings and fine settings are performed in turn through the first setting window and the second setting window respectively, and saved as position parameters of a virtual machine position. When using the virtual machine position, according to the corresponding position parameters, the image data of the corresponding position is extracted from the real-time shooting picture of the camera to obtain the output picture of the virtual machine position. The process of setting the virtual machine 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.
[0070] As an optional implementation, the virtual machine position mark is displayed with an editing control, and the existing virtual machine position can be further adjusted based on the editing control. Based on the display of the editing control, the virtual machine position setting method also includes steps S107-S110 to further adjust the existing virtual machine position.
[0071] Step S107: When a trigger operation acting on any editing control is received, the target camera area is confirmed and a third setting window is displayed, wherein the third setting window displays a sub-screen of the preview shooting screen corresponding to the target camera area, a third confirmation control and a delete control.
[0072] When designing this solution, the inventor found that from the perspective of interaction needs, the user makes further adjustments to the existing virtual machine position, which is likely because the output screen of the existing virtual machine position is slightly different from the ideal output screen, and a slight adjustment is sufficient. Therefore, in this embodiment, the design and interaction of the third setting window are similar to those of the second setting window, and both adjust the output screen through slight settings. In this embodiment, the third setting window is also provided with a delete control for deleting a virtual machine position.
[0073] When a trigger operation is received for any edit control, the virtual position identifier of the edit control where the trigger operation is applied is used as the target position identifier, and the position area corresponding to the target position identifier is the target position area. On this basis, the camera is called to obtain a preview shooting picture, and the sub-picture corresponding to the target position area is extracted and displayed in the third setting window.
[0074] Step S108: When a second moving operation acting on the third setting window is received, the display content of the third setting window is updated according to the second moving operation, with the position of the sub-image of the target camera position area in the preview shooting image as a reference.
[0075] Step S109: When a trigger operation acting on the third confirmation control is received, return to the camera position setting interface, and update the virtual machine position identifier in the camera position setting interface. The output screen of the virtual machine position corresponding to the updated virtual machine position identifier is the screen of the second camera position area in the real-time shooting screen. The second camera position area is the area corresponding to the last display content of the third setting window in the preview shooting screen.
[0076] For the operations in the third setting window and the triggering operation on the third confirmation control, reference may be made to the operations in the second setting window and the triggering operation on the second confirmation control.
[0077] Step S110: upon receiving a trigger operation for deleting the control, returning to the camera position setting interface, and deleting the virtual camera position identifier corresponding to the target camera position area.
[0078] After deleting a virtual machine position identifier, the interface of the position setting interface is directly returned to, and after returning to the position setting interface, any embodiment of the present application based on the position setting interface can be executed.
[0079] In a specific implementation, the delete control can be displayed directly on the virtual machine 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 virtual machine position identifier. Another optional implementation method is to set only a delete control on the virtual machine position identifier, directly delete the unnecessary virtual machine position, and directly create a new virtual machine position through steps S101-S106.
[0080] In the specific implementation process, one or more of the first setting window, the second setting window, and the third setting window can also be set with a close control. When a trigger operation acting on the close control is received, a prompt window pops up, and a save control and a cancel control can be set in the prompt window. If a trigger operation acting on the save control is received, the virtual machine position identifier is saved and the position setting window is returned. If a trigger operation acting on the cancel control is received, the current setting operation is ended and the position setting window is returned. Of course, receiving a trigger operation acting on the cancel control can also be to exit the closing process and continue the virtual machine position setting. In addition, when a trigger operation acting on the close control is received, the prompt box may not pop up, but the current setting operation may be ended directly and the position setting window is returned.
[0081] 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 a 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 perform the resetting process of the current setting link.
[0082] 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 virtual machine position, and the machine position setting interface can be returned to end the current setting operation.
[0083] 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, when a trigger operation acting on the focus control is received, the shooting preview screen is updated. The shooting preview screen acquired by the camera based on the default hardware parameters is usually a shooting preview screen with a maximum shooting range. For the user, 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. The interactive tablet adjusts the focal length of the camera in response to the trigger operation of the focus control. It can be physical actual focusing, that is, the camera itself has the physical structure required for focusing, and the focusing multiple can be confirmed according to the trigger operation of the focus control, and the multiple is implemented on the physical structure of focusing to achieve physical focusing; it can also be data focusing, that is, the camera itself does not have the physical structure required for focusing, or the focusing multiple exceeds the limit of physical focusing, then the focusing beyond the physical limit actually changes the display ratio of the image, and the focusing effect is presented through the change of the display effect. Regardless of the actual focusing method, it can be used as a specific implementation method of this solution.
[0084] In an interactive tablet, the camera actually realizes the image acquisition function by combining multiple lenses. Different lens combinations with different parameters achieve different imaging advantages. For example, the advantage of wide-angle lenses is panoramic display, and the advantage of telephoto lenses is long-distance focusing. That is, the camera can be regarded as including at least two sub-cameras with different focal length ranges; accordingly, when adjusting the shooting preview screen based on the focus control, when receiving a trigger operation acting on the focus control, the sub-camera with focal length adaptation is called according to the focal length range to update the shooting preview screen, 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.
[0085] An interactive tablet equipped with a wide-angle lens and a telephoto lens can display the image captured by the camera through the wide-angle lens in the camera setting interface by default in the upper-level application that implements the camera position setting interface through the data interface provided by the browser, such as navigator.getUserMedia(), after pulling the camera stream. Then, entering different setting windows, the user can adjust the size of the optional area or set the magnification multiple (the aspect ratio always remains at 16:9) as needed to obtain the ideal output image the user wants, and the interactive tablet saves the position of the framed area (such as the upper left corner coordinates and the lower right corner coordinates). Correspondingly, the camera position parameters of the virtual machine position also include the identification and focal length of the sub-camera. Another optional implementation method is that the camera position parameters of the virtual machine position only include the position of the framed area, and the specific focal length is obtained by processing the camera.
[0086] After the virtual machine bit setting has been completed, the virtual machine bit can be used through steps S111 to S113.
[0087] Step S111: when the seat selection interface is opened, the seat identification is displayed, and the seat identification includes a complete seat identification and a virtual seat identification. Each virtual seat identification corresponds to a record of a seat parameter of a virtual seat, and the seat parameter includes a seat area.
[0088] The camera selection interface can be Figure 4 The trigger display of the camera control 201 shown, that is, when a trigger operation acting on the camera control 201 is received, the camera position selection interface is displayed, and the camera position selection interface is used to display all available camera position identifications. Based on the pre-set virtual machine position, the camera is called to have at least one virtual machine position in addition to the complete camera position. In the camera position selection interface, the complete camera position and the virtual machine position have corresponding camera position identifications, that is, the complete camera position identification and the virtual machine position identification. The calling of the complete camera position is the same as the prior art, and no repeated description is made here. The calling of the virtual machine position requires obtaining the corresponding camera position parameters to call the camera to generate the corresponding output screen.
[0089] Step S112: when a trigger operation acting on any virtual machine seat identifier is received, the seat parameter corresponding to the virtual machine seat identifier is obtained.
[0090] When a trigger operation acting on any virtual machine slot identifier is received, the slot parameters corresponding to the record of the virtual machine slot identifier where the trigger operation is located are obtained accordingly.
[0091] Step S113: calling the camera to collect the real-time shooting picture according to the acquired camera position parameters, and extracting the sub-picture from the real-time shooting picture as the output picture of the virtual machine position according to the acquired camera position area.
[0092] The final output image is generated based on the real-time shooting image captured by the camera. Specifically, it can be the complete processing of the complete image inside the camera, that is, the camera completes the focus, original image acquisition and sub-image extraction according to the camera position parameters, and directly outputs the output image corresponding to the virtual machine position for the application currently calling the camera. It can also be completed at the system level, that is, the camera only performs original image acquisition according to the instructions at the system level, and finally the system level outputs the output image corresponding to the virtual machine position for the application currently calling the camera.
[0093] The camera has different processing strategies corresponding to different processing methods and parameter recording methods. For interactive tablets with multiple sub-cameras, if the camera position parameters only record the coordinate information corresponding to the position, when the camera receives the coordinate information, if it is calculated according to the side length and confirms that the magnification exceeds the multiple of the wide-angle lens (for example, 4 times), the camera will switch from wide-angle mode to telephoto mode, and capture the picture in the telephoto picture through the spatial mapping algorithm. The principle of the spatial mapping algorithm is to calculate at which coordinate the telephoto should be cut out to correspond to the center point of the wide-angle cutout area. This is actually the process of converting the world coordinate system to the camera coordinate system. In the wide-angle world coordinate system, the corresponding position can be reached by converting to the telephoto camera coordinate system through the calibrated mapping table. If the magnification is less than 4 times, there is no need to switch, continue to capture the received coordinate area in the wide-angle picture, and set the selected position as the preset position. After the setting is successful, the camera screen will switch to the captured area, and the corresponding coordinates will be saved to the camera as the current output parameters. If the camera position parameters record the identification, focal length and position of the sub-camera, the system layer can directly call the specified sub-camera to focus to the specified focal length. The corresponding sub-camera only outputs the real-time shooting picture for the system layer to process according to the position to obtain the output picture.
[0094] 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, the virtual machine position settings under the camera settings can be entered through various setting entrances, showing Figure 5 The camera position setting interface 21 shown in the figure currently displays a preview shooting picture 211, a complete camera position identification 213 and a new control 212. The preview shooting picture 211 is currently arranged to the conference table in the conference room, the chairs around the conference table and the conference participants.
[0095] When the interactive tablet receives a trigger operation acting on the newly added control 212, 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 the local window, the preview shooting screen 211 is filled in the first setting window 22a as a whole, 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.
[0096] 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 virtual machine position are the same, and the display elements for switching between the two (full screen control 222 and 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 virtual machine position can be directly saved without subsequent operations to directly generate a new virtual machine position. 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 Figure 8 A second setting window 23 is shown. 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.
[0097] like Figure 8 As shown, the second setting window 23 is filled with Figure 6 In the sub-screen for confirming the selection box 221, a focus control 231, a close control 232, a cancel control 234 and a second confirmation control 235 are also displayed. Figure 8 The 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 virtual machine position, or save the currently set virtual machine 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 virtual machine position setting is completed, save the corresponding position parameters and return to the position setting interface 21.
[0098] like Fig. 9 As shown, the returned position setting interface 21 adds a virtual position mark 214, and the virtual position mark 214 displays an edit control. When a trigger operation acting on the edit 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 eliminate control 244 and a third confirmation control 245. The operations of the focus control 241, the close control 242, the eliminate 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 virtual machine position identifier 214 is deleted, and the camera position setting interface is returned.
[0099] Through the above operations, the virtual machine 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 virtual machine position has intuitive and clear operation objectives, and the operation of achieving ideal output is simple and in line with the interaction habits that users have developed on touch-sensitive displays.
[0100] 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 virtual machine position setting method provided in the above embodiment, mainly realizing image acquisition through a pre-set virtual machine position, and providing a virtual machine position setting process. Fig.11 , the image acquisition method provided in this embodiment includes:
[0101] Step S201: when the seat selection interface is opened, the seat identification is displayed, the seat identification includes a complete seat identification and a virtual seat identification, each virtual seat identification corresponds to a record of a seat parameter of the virtual seat, and the seat parameter includes a seat area.
[0102] Step S202: when a trigger operation acting on any virtual machine slot identifier is received, a slot parameter corresponding to the virtual machine slot identifier is obtained.
[0103] Step S203: calling the camera to collect the real-time shooting picture according to the acquired camera position parameters, and extracting the sub-picture from the real-time shooting picture as the output picture of the virtual machine position according to the acquired camera position area.
[0104] Based on the above embodiment, the image acquisition method further includes:
[0105] When opening the camera position setting interface, new controls are displayed on the camera position setting interface;
[0106] When a trigger operation acting on a newly added control is received, a first setting window is displayed, wherein a preview image of the camera, an adjustable selection box, and a first confirmation control are displayed in the first setting window;
[0107] When receiving a region adjustment operation acting on the selection box, adjusting the closed region of the selection box according to the region adjustment operation;
[0108] When a trigger operation acting on the first confirmation control is received, a second setting window is displayed, wherein the second setting window displays a sub-screen corresponding to the closed area of the preview shooting screen and a second confirmation control;
[0109] When a first moving operation acting on the second setting window is received, the display content of the second setting window is updated according to the first moving operation, with the position of the sub-image of the closed area in the preview shooting image as a reference;
[0110] When a trigger operation acting on the second confirmation control is received, the camera position setting interface is returned, and a virtual machine position identifier is added to the camera position setting interface. The output screen of the virtual machine position corresponding to the newly added virtual machine position identifier is the screen of the first camera position area in the real-time shooting screen of the camera. The first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting screen.
[0111] Based on the above embodiment, the virtual machine position identifier in the position setting interface is displayed with an editing control;
[0112] Accordingly, the image acquisition method further includes:
[0113] When a trigger operation acting on any editing control is received, the target camera position area is confirmed and a third setting window is displayed, wherein the third setting window displays a sub-image of the preview shooting image corresponding to the target camera position area, a third confirmation control, and a delete control;
[0114] When receiving a second moving operation acting on the third setting window, taking the position of the sub-image of the target camera position area in the preview shooting image as a reference, updating the display content of the third setting window according to the second moving operation;
[0115] When receiving a trigger operation acting on the third confirmation control, return to the camera position setting interface, and update the virtual machine position identifier in the camera position setting interface, the output screen of the virtual machine position corresponding to the updated virtual machine position identifier is the screen of the second camera position area in the real-time shooting screen, and the second camera position area is the area corresponding to the last display content of the third setting window in the preview shooting screen;
[0116] When receiving a trigger operation for deleting a control, the interface returns to the camera position setting interface, and the virtual camera position identifier corresponding to the target camera position area is deleted.
[0117] Based on the above embodiment, a focus control is displayed in the third setting window;
[0118] Correspondingly, when a trigger operation acting on any editing control is received, after confirming the target camera area and displaying the third setting window, the method further includes:
[0119] When a trigger operation acting on the focus control is received, the capture preview screen is updated.
[0120] Based on the above embodiment, the second setting window further displays a focus control;
[0121] Correspondingly, when a trigger operation acting on the first confirmation control is received, after displaying the second setting window, the method further includes:
[0122] When a trigger operation acting on the focus control is received, the capture preview screen is updated.
[0123] Based on the above embodiment, the camera includes at least two sub-cameras with different focal length ranges;
[0124] Accordingly, when a trigger operation acting on the focus control is received, the shooting preview screen is updated, including:
[0125] When receiving a trigger operation acting on the focus control, the sub-camera with the appropriate focal length is called according to the focal length range to update the shooting preview screen;
[0126] Correspondingly, the position parameters of the virtual position also include the identification and focal length of the sub-camera;
[0127] Correspondingly, the camera is called to collect the real-time shooting picture according to the acquired camera position parameters, and the sub-picture is extracted from the real-time shooting picture as the output picture of the virtual machine position according to the acquired camera position area, including:
[0128] According to the obtained sub-camera identifier and focal length, the corresponding sub-camera is called to adjust to the focal length to capture the real-time shooting picture;
[0129] A sub-image is extracted from the real-time shooting image according to the acquired camera position area as the output image of the virtual camera position.
[0130] 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;
[0131] Accordingly, the image acquisition method further includes:
[0132] 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 switches to being displayed in a partial window;
[0133] In the case where the first setting window is displayed in a partial window, upon receiving a trigger operation acting on a full-screen control, the first setting window is switched to be displayed in a full-screen window.
[0134] The above method displays the camera position identification when opening the camera position selection interface, and the camera position identification includes the complete camera position identification and the virtual camera position identification. Each virtual camera position identification corresponds to a camera position parameter of a virtual camera position, and the camera position parameter includes the camera position area. When a trigger operation acting on any virtual camera position identification is received, the camera position parameters corresponding to the virtual camera position identification are obtained. The camera is called to collect the real-time shooting picture according to the obtained camera position parameters, and the sub-picture is extracted from the real-time shooting picture according to the obtained camera position area as the output picture of the virtual camera position. When the virtual camera position is used, the image data of the corresponding position is extracted from the real-time shooting picture of the camera according to the corresponding camera position parameters to obtain the output picture of the virtual camera position. The operation objectives of the process of setting the virtual camera position are intuitive and clear, and the operation of achieving ideal output is simple.
[0135] It should be noted that the embodiment of the image acquisition method describes the entire process from virtual machine 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 virtual machine position setting method in the previous text, and will not be repeated here.
[0136] Fig.12 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. 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.
[0137] 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 virtual machine position setting method and the image acquisition method in the embodiments of the present invention (for example, the setting interface display unit 310, the first window display unit 320, the closed area adjustment unit 330, the second window display unit 340, the display content update unit 350 and the virtual machine position saving unit 360 in the virtual machine position setting device). 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, realizes the above-mentioned virtual machine position setting method and / or image acquisition method.
[0138] 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.
[0139] 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.
[0140] The electronic device mentioned above comprises a virtual machine position setting device and an image acquisition device, which can be used to execute any virtual machine position setting method and image acquisition method respectively, and has corresponding functions and beneficial effects.
[0141] An embodiment of the present invention 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 virtual machine position setting method or image acquisition method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.
[0142] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0143] 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 A step that specifies a function in one or more boxes.
[0144] 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.
[0145] 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.
[0146] 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.
[0147] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention 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 invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for setting a virtual machine position, characterized in that: include: When the camera position setting interface is opened, newly added controls are displayed on the camera position setting interface; When a trigger operation acting on the newly added control is received, a first setting window is displayed, wherein the first setting window displays a preview shooting picture of the camera, an adjustable selection box and a first confirmation control; When receiving an area adjustment operation acting on the selection box, adjusting the closed area of the selection box according to the area adjustment operation; When a trigger operation acting on the first confirmation control is received, a second setting window is displayed, wherein the second setting window displays a sub-image of the preview shooting image corresponding to the closed area and a second confirmation control; When a first moving operation acting on the second setting window is received, the display content of the second setting window is updated according to the first moving operation, taking the position of the sub-image of the closed area on the preview shooting image as a reference; When a trigger operation acting on the second confirmation control is received, the camera position setting interface is returned, and a virtual machine position identifier is added to the camera position setting interface. The output screen of the virtual machine position corresponding to the newly added virtual machine position identifier is the screen of the first camera position area in the real-time shooting screen of the camera. The first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting screen.
2. The virtual machine bit setting method according to claim 1, characterized in that: The virtual machine position identifier is displayed with an editing control; Accordingly, the virtual machine bit setting method further includes: When a trigger operation acting on any of the editing controls is received, the target camera position area is confirmed and a third setting window is displayed, wherein the third setting window displays a sub-image of the preview shooting image corresponding to the target camera position area, a third confirmation control, and a delete control; When a second moving operation acting on the third setting window is received, the display content of the third setting window is updated according to the second moving operation, taking the position of the sub-image of the target camera position area on the preview shooting image as a reference; When receiving a trigger operation acting on the third confirmation control, returning to the camera position setting interface, and updating the virtual machine position identifier in the camera position setting interface, the output screen of the virtual machine position corresponding to the updated virtual machine position identifier is the screen of the second camera position area in the real-time shooting screen, and the second camera position area is the area corresponding to the last display content of the third setting window in the preview shooting screen; When a trigger operation acting on the deletion control is received, the camera position setting interface is returned, and the virtual camera position identifier corresponding to the target camera position area is deleted.
3. The virtual machine bit setting method according to claim 2, characterized in that: The third setting window displays a focus control; Correspondingly, when a trigger operation acting on any of the editing controls is received, after confirming the target camera area and displaying the third setting window, the method further includes: When a trigger operation acting on the focus control is received, the shooting preview screen is updated.
4. The virtual machine bit setting method according to claim 1, characterized in that: The second setting window also displays a focus control; Correspondingly, when the trigger operation acting on the first confirmation control is received, after the second setting window is displayed, the method further includes: When a trigger operation acting on the focus control is received, the shooting preview screen is updated.
5. The method for setting a virtual machine bit according to claim 3 or 4, characterized in that: The camera includes at least two sub-cameras with different focal length ranges; Correspondingly, when the trigger operation acting on the focus control is received, updating the shooting preview screen includes: When a trigger operation acting on the focus control is received, a sub-camera with adapted focal length is called according to the focal length range to update the shooting preview screen; Correspondingly, the position parameters of the virtual position also include the identifier and focal length of the sub-camera.
6. The method for setting a virtual machine bit according to any one of claims 1 to 4, characterized in that: 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 virtual machine bit setting 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, the first setting window switches 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.
7. An image acquisition method, characterized in that: include: When the seat selection interface is opened, the seat identification is displayed, and the seat identification includes a complete seat identification and a virtual seat identification. Each virtual seat identification corresponds to a seat parameter of a virtual seat, and the seat parameter includes a seat area; When a trigger operation acting on any of the virtual machine seat identifiers is received, obtaining a seat parameter corresponding to the virtual machine seat identifier; The camera is called to collect real-time shooting pictures according to the acquired camera position parameters, and a sub-picture is extracted from the real-time shooting pictures according to the acquired camera position area as the output picture of the virtual machine position.
8. The image acquisition method according to claim 7, characterized in that: Also includes: When the camera position setting interface is opened, newly added controls are displayed on the camera position setting interface; When a trigger operation acting on the newly added control is received, a first setting window is displayed, wherein the first setting window displays a preview shooting picture of the camera, an adjustable selection box and a first confirmation control; When receiving an area adjustment operation acting on the selection box, adjusting the closed area of the selection box according to the area adjustment operation; When a trigger operation acting on the first confirmation control is received, a second setting window is displayed, wherein the second setting window displays a sub-image of the preview shooting image corresponding to the closed area and a second confirmation control; When a first moving operation acting on the second setting window is received, the display content of the second setting window is updated according to the first moving operation, taking the position of the sub-image of the closed area on the preview shooting image as a reference; When a trigger operation acting on the second confirmation control is received, the camera position setting interface is returned, and a virtual machine position identifier is added to the camera position setting interface. The output screen of the virtual machine position corresponding to the newly added virtual machine position identifier is the screen of the first camera position area in the real-time shooting screen of the camera. The first camera position area is the area corresponding to the last display content of the second setting window in the preview shooting screen.
9. The image acquisition method according to claim 8, characterized in that: The virtual machine position mark in the position setting interface is displayed with an editing control; Accordingly, the image acquisition method further includes: When a trigger operation acting on any of the editing controls is received, the target camera area is confirmed and a third setting window is displayed, wherein the third setting window displays a sub-image of the preview shooting image corresponding to the target camera area, a third confirmation control, and a delete control; When a second moving operation acting on the third setting window is received, the display content of the third setting window is updated according to the second moving operation, with the position of the sub-image of the target camera position area on the preview shooting image as a reference; When receiving a trigger operation acting on the third confirmation control, returning to the camera position setting interface, and updating the virtual machine position identifier in the camera position setting interface, the output screen of the virtual machine position corresponding to the updated virtual machine position identifier is the screen of the second camera position area in the real-time shooting screen, and the second camera position area is the area corresponding to the last display content of the third setting window in the preview shooting screen; When a trigger operation acting on the deletion control is received, the camera position setting interface is returned, and the virtual camera position identifier corresponding to the target camera position area is deleted.
10. The image acquisition method according to claim 9, characterized in that: The third setting window displays a focus control; Correspondingly, when a trigger operation acting on any of the editing controls is received, after confirming the target camera area and displaying the third setting window, the method further includes: When a trigger operation acting on the focus control is received, the shooting preview screen is updated.
11. The image acquisition method according to claim 8, characterized in that: The second setting window also displays a focus control; Correspondingly, when the trigger operation acting on the first confirmation control is received, after the second setting window is displayed, the method further includes: When a trigger operation acting on the focus control is received, the shooting preview screen is updated.
12. The image acquisition method according to claim 10 or 11, characterized in that: The camera includes at least two sub-cameras with different focal length ranges; Correspondingly, when the trigger operation acting on the focus control is received, updating the shooting preview screen includes: When a trigger operation acting on the focus control is received, a sub-camera with adapted focal length is called according to the focal length range to update the shooting preview screen; Correspondingly, the position parameters of the virtual position also include the identifier and focal length of the sub-camera; Correspondingly, calling a camera to collect a real-time shooting picture according to the acquired camera position parameters, and extracting a sub-picture from the real-time shooting picture as an output picture of the virtual machine position according to the acquired camera position area, includes: According to the obtained sub-camera identifier and focal length, the corresponding sub-camera is called to adjust to the focal length to capture the real-time shooting picture; A sub-picture is extracted from the real-time shooting picture according to the acquired camera position area as an output picture of the virtual camera position.
13. An electronic device, characterized in that include: 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 12.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by an electronic device tablet, it implements the method according to any one of claims 1 to 12.