Focal length adjustment method, device, equipment and storage medium
By identifying the conference scene in the video conferencing terminal and scanning objects, selecting the target reference object to adjust the visual range and focal length, the problem of difficulty for users to adjust the focal length by themselves is solved, and the video conferencing experience is improved.
Patent Information
- Application Number
- CN202211084568.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-09-06
AI Technical Summary
In the prior art, the focal length adjustment of the video conferencing terminal depends on manual adjustment by technicians, and it is difficult for users to adjust by themselves, resulting in poor user video conferencing experience.
By identifying that the current scene is a conference scene, scan the objects in the scene, select the target reference object, and adjust the visual range and focal length according to its center position.
It effectively reduces the difficulty of users adjusting the focal length in video conferencing and improves the user's video conferencing experience.
Smart Images

Figure CN115550546B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video conferencing technology, and in particular to a focus adjustment method, device, equipment and storage medium. Background Art
[0002] Currently, before starting a video conference, adjusting the camera of the video conference terminal to a more comfortable viewing range and focal length range can greatly improve the user experience in the video conference. For a long time, this work has been done manually by technicians, and if the camera is moved by mistake after adjustment, it needs to be manually adjusted again.
[0003] However, since the technicians are only responsible for the initial installation and the subsequent maintenance is up to the users, when the camera moves accidentally, the technicians are often not on site and the users are required to adjust it. However, it is often difficult for users to adjust to a comfortable focal length range, which increases the difficulty of adjustment for users and causes certain troubles for users, resulting in a poor video conferencing experience for users.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a focal length adjustment method, device, equipment and storage medium, aiming to solve the technical problem that the prior art requires technicians to manually adjust the focal length, which is difficult for users to adjust by themselves, resulting in a poor video conferencing experience for users.
[0006] To achieve the above object, the present invention provides a focal length adjustment method, which comprises the following steps:
[0007] When the current scene is identified as a conference scene, scanning objects in the current scene;
[0008] Selecting a target reference object according to the scanning result, and adjusting the current visible range according to the center position of the target reference object;
[0009] When the target reference object is located at a preset position of the adjusted visual range, determining an actual distance from a center position of the target reference object;
[0010] The current focal length is adjusted according to the actual distance.
[0011] Optionally, the step of selecting a target reference object according to the scanning result and adjusting the current visible range according to the center position of the target reference object includes:
[0012] Select a target reference object based on the scanning results;
[0013] Acquire the center position of the target reference object;
[0014] Adjusting the center position of the current visible range based on the center position of the target reference object;
[0015] When the center position of the current visible range is the center position of the target reference object, the current visible range is adjusted.
[0016] Optionally, the step of acquiring the center position of the target reference object includes:
[0017] Acquire preset landmark points on the target reference object;
[0018] The center position of the target reference object is determined based on the preset marker point.
[0019] Optionally, the step of determining the center position of the target reference object based on the preset marker point includes:
[0020] Obtaining a marker point connecting line based on the preset marker points;
[0021] The midpoint of the marking point connection line is determined, and the midpoint of the marking point connection line is used as the center position of the target reference object.
[0022] Optionally, the step of adjusting the center position of the current visible range based on the center position of the target reference object includes:
[0023] Determine the center distance between the center position of the target reference object and the center position of the current visual range;
[0024] The center position of the current visible range is adjusted based on the center distance.
[0025] Optionally, when the center position of the current visible range is the center position of the target reference object, the step of adjusting the current visible range includes:
[0026] When the center position of the current visible range is the center position of the target reference object, determining a side length parameter of the target reference object;
[0027] Adjust the side length parameter based on the preset extension distance to obtain a visual range adjustment parameter;
[0028] The current visible range is adjusted using the visible range adjustment parameter.
[0029] Optionally, before the step of scanning objects in the current scene when the current scene is identified as a conference scene, the method further includes:
[0030] Perform image recognition on the current scene;
[0031] When a preset conference reference object is identified in the current scene, the current scene is determined to be a conference scene.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a focal length adjustment device, the device comprising:
[0033] An image recognition module, configured to scan objects in the current scene when recognizing that the current scene is a conference scene;
[0034] A visual range adjustment module, used to select a target reference object according to the scanning result, and adjust the current visual range according to the center position of the target reference object;
[0035] An actual distance determination module, used to determine the actual distance to the center position of the target reference object when the target reference object is located at a preset position of the adjusted visual range;
[0036] The focal length adjustment module is used to adjust the current focal length according to the actual distance.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a focus adjustment device, which includes: a memory, a processor, and a focus adjustment program stored in the memory and executable on the processor, wherein the focus adjustment program is configured to implement the steps of the focus adjustment method described above.
[0038] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a focus adjustment program is stored, and when the focus adjustment program is executed by a processor, the steps of the focus adjustment method described above are implemented.
[0039] The present invention scans the objects in the current scene when it is identified that the current scene is a conference scene, then selects the target reference object according to the scanning result, and adjusts the current visible range according to the center position of the target reference object, and then determines the actual distance between the target reference object and the center position when the target reference object is located in the preset position of the adjusted visible range, and finally adjusts the current focal length according to the actual distance. Since the present invention adjusts the current visible range by the center position of the target reference object, when the preset position of the adjusted visible range is the target reference object, the current focal length is adjusted according to the actual distance between the target reference object and the center position, compared with the prior art that manually adjusts the focal length, which makes it difficult for the user to adjust by themselves, the above method of the present invention effectively reduces the user's difficulty of use and improves the user's video conferencing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of the structure of a focus adjustment device in a hardware operating environment according to an embodiment of the present invention;
[0041] Figure 2 It is a schematic flow chart of a first embodiment of a method for adjusting focal length according to the present invention;
[0042] Figure 3 Schematic diagram of the actual distance between the camera and the target reference object in the first embodiment of the focal length adjustment method of the present invention;
[0043] Figure 4 is a schematic flow chart of a second embodiment of a focal length adjustment method of the present invention;
[0044] Figure 5 Schematic diagram of the center position of the target reference object in the second embodiment of the focus adjustment method of the present invention;
[0045] Figure 6 This is a schematic diagram of visual range adjustment according to the second embodiment of the focus adjustment method of the present invention;
[0046] Figure 7 is a schematic flow chart of a third embodiment of a method for adjusting focal length according to the present invention;
[0047] Figure 8 A schematic diagram of a preset extension distance in a third embodiment of a focal length adjustment method of the present invention;
[0048] Fig. 9 FIG. 4 is a structural block diagram of a first embodiment of a focus adjustment device according to the present invention.
[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0051] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a focus adjustment device in a hardware operating environment involved in an embodiment of the present invention.
[0052] like Figure 1As shown, the focus adjustment device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the focus adjustment device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0054] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a focus adjustment program.
[0055] exist Figure 1 In the focus adjustment device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the focus adjustment device of the present invention can be set in the focus adjustment device, and the focus adjustment device calls the focus adjustment program stored in the memory 1005 through the processor 1001, and executes the focus adjustment method provided by an embodiment of the present invention.
[0056] The embodiment of the present invention provides a focal length adjustment method, referring to Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a focal length adjustment method according to the present invention.
[0057] In this embodiment, the focal length adjustment method includes the following steps:
[0058] Step S10: When the current scene is identified as a conference scene, objects in the current scene are scanned.
[0059] It should be noted that the execution subject of the method of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., and can also be other electronic devices that achieve the same or similar functions, such as a video conferencing terminal camera. The following video conferencing terminal camera (referred to as camera) is used to illustrate this embodiment and the following embodiments.
[0060] It is understandable that the meeting scene may be a scene where users hold meetings, such as a conference room.
[0061] It should be noted that the objects in the current scene may be objects related to the conference scene, such as a conference table and chairs surrounding the conference table.
[0062] In a specific implementation, taking a conference room as an example, when the camera recognizes that the current scene is a conference room, it can scan meeting-related objects such as a conference table and chairs surrounding the conference table in the conference room.
[0063] Furthermore, in order to improve the accuracy of conference scene recognition, in this embodiment, before step S10, the following steps are further included:
[0064] Step S01: Perform image recognition on the current scene.
[0065] In a specific implementation, the camera can perform feature recognition on objects in the current scene through image recognition technology, and determine whether the current scene is a conference scene based on the features of the objects in the current scene.
[0066] Step S02: when a preset conference reference object is identified in the current scene, determining that the current scene is a conference scene.
[0067] It should be noted that the preset meeting reference object can be a reference object used to determine whether the current scene is a meeting, such as a meeting table, meeting chairs, and computers of participants, etc., which are related to the meeting and have obvious characteristics. The preset meeting reference object can be pre-set in the camera by the technician, and the corresponding preset meeting reference object can be set in the camera in time according to the update of the meeting scene.
[0068] It is understandable that the above-mentioned preset conference reference objects can be set to multiple different types of objects with obvious features, such as a conference table, a computer on the conference table, chairs around the conference table, and participants sitting on the chairs, etc., to further improve the recognition accuracy.
[0069] In a specific implementation, when the camera recognizes the above-mentioned pre-set preset conference reference object through image recognition technology, it can be determined that the current scene is a conference scene. Otherwise, if the above-mentioned pre-set preset conference reference object is not recognized, it can be determined that the current scene is not a conference scene, which effectively improves the recognition progress.
[0070] Step S20: selecting a target reference object according to the scanning result, and adjusting the current visible range according to the center position of the target reference object.
[0071] It should be noted that the scanning result may be the result obtained after the camera scans the objects in the current scene; the result may include a series of results such as preset reference objects in the current scene, objects other than the preset reference objects, and the number of objects.
[0072] It is understandable that the target reference object may be a reference object for adjusting the visual range or focal length, and the target reference object may be specified by the user, such as the preset meeting reference object mentioned above, or other objects specified by a technician, and this embodiment does not impose any limitation on this.
[0073] It should be noted that the current visible range may be a clear range in which the camera can recognize an image.
[0074] In a specific implementation, the camera can analyze the scanning results obtained from the above scanning to determine whether there is the target reference object specified by the above user. If so, the target reference object is selected and the center position of the target reference object is identified. Finally, the current visible range is adjusted according to the center position, such as aligning the current visible range with the center position of the above target reference object.
[0075] It should be understood that if the camera does not detect the target reference object specified by the user in the above scanning results, it can be determined that there is no target reference object in the current meeting scene, and a scanning failure message is fed back to the user.
[0076] It should be noted that when the camera adjusts the current visible range based on the center position of the above-mentioned target reference object, it can also move the current visible range away from the center object of the above-mentioned target reference object so that the above-mentioned target reference object does not appear in the current visible range, which can make the camera's adjustment of the current visible range more flexible and further enhance the user experience.
[0077] It is understandable that how the camera adjusts the appropriate visual range based on the center position of the target reference object can be determined by the corresponding adjustment parameters input by the user in advance in the camera, or by the user inputting the corresponding adjustment instructions in real time. This embodiment does not limit this.
[0078] Step S30: When the target reference object is located at a preset position in the adjusted visible range, determining the actual distance to the center position of the target reference object.
[0079] It should be noted that the preset position can be a reference position for determining the distance from the target reference object, such as the center of the visible range, the edge of the visible range, and the front of the visible range, etc., and this embodiment does not limit this. The preset position can be set by the technician when determining the target reference object, where the target reference object needs to be in the visible range, so as to facilitate the subsequent adjustment of the focal length.
[0080] In a specific implementation, taking the preset orientation as the center position of the visible range as an example, when the camera is adjusted to the center position of the visible range as the target reference object, the actual distance to the target reference object at this time can be measured through AR.
[0081] Step S40: adjusting the current focal length according to the actual distance.
[0082] For easier understanding, please refer to Figure 3 This is for illustration only, but does not limit this solution. Figure 3 This is a schematic diagram of the actual distance between the camera and the target reference object in the first embodiment of the focal length adjustment method of the present invention. In the figure, the table is the target reference object, and L is the actual distance between the camera and the center position of the target reference object. By adjusting the focal length according to the actual distance, it can be ensured that the clear range of the image captured by the camera is around the above-mentioned target reference object.
[0083] This embodiment scans the objects in the current scene when it is identified that the current scene is a conference scene, then selects the target reference object according to the scanning result, and adjusts the current visible range according to the center position of the target reference object, and then determines the actual distance between the target reference object and the center position when the target reference object is located in the preset position of the adjusted visible range, and finally adjusts the current focal length according to the actual distance. Since this embodiment adjusts the current visible range by the center position of the target reference object, when the preset position of the adjusted visible range is the target reference object, the current focal length is adjusted according to the actual distance between the target reference object and the center position, compared with the prior art that manually adjusts the focal length, which makes it difficult for the user to adjust by himself, the above method of the present invention effectively reduces the difficulty of use for the user and improves the user's video conferencing experience.
[0084] refer to Figure 4 , Figure 4 FIG. 4 is a flow chart of a second embodiment of a focal length adjustment method according to the present invention.
[0085] Based on the above first embodiment, in this embodiment, step S20 includes:
[0086] Step S201: Select a target reference object according to the scanning result.
[0087] It should be noted that in order to avoid the problem that the current visible range cannot clearly display the target reference, thereby affecting the accuracy of focal length adjustment, this embodiment is proposed to make the current visible range within an appropriate range, ensure clear display of the target reference object, and improve the accuracy of focal length adjustment.
[0088] Step S202: Acquire the center position of the target reference object.
[0089] In a specific implementation, the camera can determine the center position of the above-mentioned target reference object through AR ranging and mathematical modeling.
[0090] Furthermore, in order to improve the accuracy of obtaining the center position of the target reference object, in this embodiment, step S202 includes:
[0091] Step S2021: Acquire preset landmark points on the target reference object.
[0092] It should be noted that the preset marking point may be a specific marking point used to determine the center position of the target reference object. For example, if the shape of the target reference object is a quadrilateral, the preset marking point may be a diagonal point.
[0093] In a specific implementation, after determining the target reference object, the camera can further identify preset landmark points on the target reference object to facilitate subsequent confirmation of the center position and improve the accuracy of obtaining the center position.
[0094] Step S2022: Determine the center position of the target reference object based on the preset marker point.
[0095] In a specific implementation, the camera can calculate the center position of the target reference object according to preset landmark points through mathematical modeling.
[0096] Furthermore, in order to improve the efficiency of determining the center position of the target reference object, in this embodiment, step S2022 includes:
[0097] Step S20221: Obtain a landmark point connecting line based on the preset landmark points.
[0098] In a specific implementation, the marker point connection line may be continuous between preset marker points. For example, if the preset marker points are diagonal points, the marker point connection line is a diagonal line.
[0099] Step S20222: Determine the midpoint of the line connecting the marker points, and use the midpoint of the line connecting the marker points as the center position of the target reference object.
[0100] In a specific implementation, determining the center position of the target reference object by the midpoint of a continuous line of preset marker points can improve the efficiency of center position determination and further improve the efficiency of subsequent focal length adjustment.
[0101] For easier understanding, please refer to Figure 5 This is for illustration only, but does not limit this solution. Figure 5 This is a schematic diagram of the center position of the target reference object in the second embodiment of the focal length adjustment method of the present invention. In the figure, the quadrilateral can be an approximate diagram of the target reference object, the diagonal points A (a, b) and B (x, y) on the quadrilateral are preset mark points, the connecting line between the diagonal points A (a, b) and B (x, y), that is, the diagonal line, is the mark point connecting line, the midpoint O on the connecting line is the center position of the target reference object, and the point D (0, 0) outside the target reference object is the center position of the current visible range of the camera. It can be seen that the center position of the current visible range is not at the center position of the target reference object, so the current visible range needs to be adjusted.
[0102] Step S203: adjusting the center position of the current visible range based on the center position of the target reference object.
[0103] It should be noted that the center position of the current visible range can be the exact center position of the visible range, such as Figure 5 Point D(0,0) in.
[0104] Furthermore, in order to reduce the error of adjusting the current visible range, in this embodiment, step S203 includes:
[0105] Step S2031: Determine the center distance between the center position of the target reference object and the center position of the current visible range.
[0106] In a specific implementation, the camera can measure the distance between the center position of the target reference object and the center position of the current visible range, and use the distance as the center distance to facilitate subsequent adjustment of the visible range and improve the accuracy of focal length adjustment.
[0107] Step S2032: adjusting the center position of the current visible range based on the center distance.
[0108] In a specific implementation, the camera can adjust the center position of the current visible range to the center position of the target reference object according to the center distance, so as to further reduce the error of the current visible range adjustment.
[0109] For easier understanding, please refer to Figure 6 This is for illustration only, but does not limit this solution. Figure 6This is a schematic diagram of visual range adjustment of the second embodiment of the focal length adjustment method of the present invention. In the figure, the quadrilateral can be an approximate diagram of the target reference object, the diagonal points A (a, b) and B (x, y) on the quadrilateral are preset mark points, the connecting line between the diagonal points A (a, b) and B (x, y), that is, the diagonal line, is the mark point connecting line, the midpoint D (0, 0) of the mark point connecting line is the center position of the visual range, and the visual range of the camera is located at the midpoint of the diagonal line after adjustment, that is, the center position of the visual range is the center position of the target reference object.
[0110] Step S204: When the center position of the current visible range is the center position of the target reference object, the current visible range is adjusted.
[0111] In a specific implementation, when the center position of the current visible range of the camera is the center position of the target reference object, the camera determines that it has been aimed at the target reference object. At this time, the current visible range can be adjusted to accurately make the target reference object located in the center of the visible range, thereby ensuring the accuracy of subsequent focal length adjustment.
[0112] refer to Figure 7 , Figure 7 FIG. 4 is a flow chart of a third embodiment of a focal length adjustment method according to the present invention.
[0113] Based on the above embodiments, in this embodiment, step S204 includes:
[0114] Step S2041: When the center position of the current visible range is the center position of the target reference object, determine the side length parameter of the target reference object.
[0115] It should be noted that in order to prevent objects surrounding the target reference object from not appearing in the visible range, this embodiment is proposed to make the current visible range within a suitable range and improve the user's conference experience.
[0116] It is understandable that the side length parameter may be a parameter related to the side length of the target reference object, such as length, width, and area.
[0117] In a specific implementation, when the center position of the current visible range of the camera is the center position of the target reference object, the actual side length parameters of the target reference object, such as the length and width of the target reference object, can be measured through AR ranging technology.
[0118] Step S2042: adjusting the side length parameter based on the preset extension distance to obtain a visible range adjustment parameter.
[0119] It should be noted that the preset extension distance can be an experience distance set by the user based on previous meeting experience. The preset extension distance is used to ensure that objects sitting around the target reference object appear within the visible range. The extension distance can be 60c, 100cm, and 110cm, etc., and can be changed according to user needs. This embodiment does not limit this.
[0120] It is understandable that the visible range adjustment parameter may be a parameter corresponding to a value obtained by adding a side length parameter of the target reference object to a preset extension distance.
[0121] In a specific implementation, taking the target reference object as a conference table, the four sides of the conference table can be extended outward by 50 cm. The 50 cm is used to reserve space for chairs, so that the conference table and chairs will appear in the visible range in the future. The above 50 cm can be the preset extension distance, and the length of the four sides of the conference table plus the 50 cm is the visible range adjustment parameter.
[0122] Step S2043: adjusting the current visible range by using the visible range adjustment parameter.
[0123] For easier understanding, please refer to Figure 8 This is for illustration only, but does not limit this solution. Figure 8 This is a schematic diagram of the preset extension distance in the third embodiment of the focal length adjustment method of the present invention. In the figure, a quadrilateral can be an approximate diagram of the target reference object, the diagonal points A (a, b) and B (x, y) on the quadrilateral are preset mark points, the connecting line between the diagonal points A (a, b) and B (x, y), that is, the diagonal line, is the mark point connecting line, the midpoint D (0, 0) of the connecting line is the center position of the visible range, 50 cm is the preset extension distance, and the four sides of the quadrilateral are extended outward by a preset extension distance of 50 cm. The camera adjusts the visible range based on the target reference object after the extension distance. After the above adjustment, it can ensure that the target reference object is located in the center of the visible range, and at the same time, it can also ensure that objects around the target reference object (such as a chair) are also within the visible range.
[0124] In addition, an embodiment of the present invention further provides a storage medium, on which a focus adjustment program is stored. When the focus adjustment program is executed by a processor, the steps of the focus adjustment method described above are implemented.
[0125] Reference Fig. 9 , Fig. 9 FIG. 4 is a structural block diagram of a first embodiment of a focus adjustment device according to the present invention.
[0126] like Fig. 9 As shown, the focal length adjustment device provided in the embodiment of the present invention includes:
[0127] The image recognition module 501 is used to scan objects in the current scene when recognizing that the current scene is a meeting scene.
[0128] The visible range adjustment module 502 is used to select a target reference object according to the scanning result, and adjust the current visible range according to the center position of the target reference object.
[0129] The actual distance determination module 503 is used to determine the actual distance to the center position of the target reference object when the target reference object is located at a preset position in the adjusted visible range.
[0130] The focal length adjustment module 504 is used to adjust the current focal length according to the actual distance.
[0131] This embodiment scans the objects in the current scene when it is identified that the current scene is a conference scene, then selects the target reference object according to the scanning result, and adjusts the current visible range according to the center position of the target reference object, and then determines the actual distance between the target reference object and the center position when the target reference object is located in the preset position of the adjusted visible range, and finally adjusts the current focal length according to the actual distance. Since this embodiment adjusts the current visible range by the center position of the target reference object, when the preset position of the adjusted visible range is the target reference object, the current focal length is adjusted according to the actual distance between the target reference object and the center position, compared with the prior art that manually adjusts the focal length, which makes it difficult for the user to adjust by himself, the above method of the present invention effectively reduces the difficulty of use for the user and improves the user's video conferencing experience.
[0132] Other embodiments or specific implementations of the focus adjustment device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.
[0133] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0134] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0136] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A focal length adjustment method, characterized in that: The focal length adjustment method comprises the following steps: When the current scene is identified as a conference scene, scanning objects in the current scene; Selecting a target reference object according to the scanning result, and adjusting the current visible range according to the center position of the target reference object; When the target reference object is located at a preset position of the adjusted visual range, determining an actual distance from a center position of the target reference object; Adjusting the current focal length according to the actual distance; The step of selecting a target reference object according to the scanning result and adjusting the current visible range according to the center position of the target reference object includes: Select a target reference object based on the scanning results; Acquire preset landmark points on the target reference object; Obtaining a marker point connecting line based on the preset marker points; Determine the midpoint of the marking point connection line, and use the midpoint of the marking point connection line as the center position of the target reference object; Determine the center distance between the center position of the target reference object and the center position of the current visual range; Adjusting the center position of the current visible range based on the center distance; When the center position of the current visible range is the center position of the target reference object, determining a side length parameter of the target reference object; Adjust the side length parameter based on the preset extension distance to obtain a visual range adjustment parameter; The current visible range is adjusted using the visible range adjustment parameter.
2. The focal length adjustment method according to claim 1, wherein: Before the step of scanning the objects in the current scene when the current scene is identified as a conference scene, the step further includes: Perform image recognition on the current scene; When a preset conference reference object is identified in the current scene, the current scene is determined to be a conference scene.
3. A focal length adjustment device, characterized in that: The device comprises: An image recognition module, configured to scan objects in the current scene when recognizing that the current scene is a conference scene; A visual range adjustment module, used to select a target reference object according to the scanning result, and adjust the current visual range according to the center position of the target reference object; An actual distance determination module, used to determine the actual distance to the center position of the target reference object when the target reference object is located at a preset position of the adjusted visual range; A focal length adjustment module, used for adjusting the current focal length according to the actual distance; The visual range adjustment module is further used for: Select a target reference object based on the scanning results; Acquire preset landmark points on the target reference object; Obtaining a marker point connecting line based on the preset marker points; Determine the midpoint of the marking point connection line, and use the midpoint of the marking point connection line as the center position of the target reference object; Determine the center distance between the center position of the target reference object and the center position of the current visual range; Adjusting the center position of the current visible range based on the center distance; When the center position of the current visible range is the center position of the target reference object, determining a side length parameter of the target reference object; Adjust the side length parameter based on the preset extension distance to obtain a visual range adjustment parameter; The current visible range is adjusted using the visible range adjustment parameter.
4. A focus adjustment device, characterized in that: The device comprises: a memory, a processor, and a focus adjustment program stored in the memory and executable on the processor, wherein the focus adjustment program is configured to implement the steps of the focus adjustment method according to any one of claims 1 or 2.
5. A storage medium, characterized in that: The storage medium stores a focus adjustment program, and when the focus adjustment program is executed by the processor, the steps of the focus adjustment method according to any one of claims 1 or 2 are implemented.
Citation Information
Patent Citations
Camera control method, device and camera
CN104023177A
Video conference system with automatic camera control function
JP1996205114A