An adaptive image acquisition method and system based on multimodal large model
Through the adaptive image acquisition method based on multi-modal large models, the instruction information input by the user is used to automatically adjust the image acquisition position, which solves the problem that the traditional system cannot be flexible and adaptive in precise positioning and shooting tasks, and improves the efficiency of image acquisition. Accuracy and user experience.
Patent Information
- Application Number
- CN202410924809.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Traditional automated equipment systems are unable to be flexible and adaptive in tasks that require precise positioning and shooting of target images, resulting in a decline in image quality and an impact on operating efficiency.
An adaptive image acquisition method based on a multi-modal large model is used to identify the position and size of the target object through the instruction information input by the user, and automatically adjust the image acquisition position to ensure that the image acquisition device matches the reference position.
It improves the accuracy and flexibility of image acquisition, ensuring that each acquisition can accurately focus on the target object, improving image quality and user experience.
Smart Images

Figure CN118488308B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image acquisition technology, and in particular to an adaptive image acquisition method and system based on a multimodal large model. Background Art
[0002] With the rapid development of artificial intelligence (AI) and automation technology, the application of automation equipment in various industries has become increasingly common. From precise industrial production lines to complex medical diagnostic systems to efficient service robots, automation equipment is changing traditional workflows and business models with its high efficiency, accuracy and reliability.
[0003] However, despite the widespread use of automation equipment, which has brought significant improvements in production efficiency, traditional automation equipment systems still face some key challenges. Among them, one of the most prominent issues is how to achieve system flexibility and adaptability. Traditional automation equipment systems often rely on pre-programmed paths and operations to perform specific tasks, which makes the system often unable to cope with the ever-changing working environment or operation objects.
[0004] This challenge is particularly evident in tasks that require precise positioning and capturing of target images. Traditional image acquisition systems usually rely on fixed camera positions and preset shooting parameters, and cannot autonomously adjust according to real-time changes in the position, posture or lighting conditions of the target object. This may not only lead to a decrease in image quality, but also affect the operating efficiency and accuracy of the entire automation system.
[0005] It can be seen that in tasks that require precise positioning and capturing of target images, the existing technology has the problem of being unable to collect images flexibly and adaptively. Summary of the invention
[0006] The purpose of this application is to provide an adaptive image acquisition method and system based on a multimodal large model to solve the problem in the prior art of being unable to flexibly and adaptively acquire images in tasks that require precise positioning and shooting of target images.
[0007] In order to achieve the above purpose, the technical solution adopted in this application is as follows:
[0008] According to one aspect of an embodiment of the present application, an adaptive image acquisition method based on a multimodal large model is provided, comprising: acquiring a target image and indication information input by a user, wherein the target image is an image acquired by an image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of a target object in the target image; using a preset multimodal large model, identifying a target object and a target bounding box of the target object in the target image from the target image according to the indication of the indication information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; determining whether a current image acquisition position matches a reference image acquisition position according to the image size of the target image and the target bounding box, and if it is determined that the current image acquisition position does not match the reference image acquisition position, adjusting the image acquisition position of the image acquisition device according to the position adjustment information until it is determined that the adjusted image acquisition position matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0009] According to the above technical means, through the indication information input by the user, the system can accurately identify the position and size of the target object in the target image and represent it in the form of a target bounding box. This automatic recognition method based on user indication significantly improves the accuracy of image acquisition compared to traditional methods, ensuring that each acquisition can accurately focus on the target object. The preset multimodal large model supports the recognition of complex scenes and diverse target objects, so that image acquisition is no longer limited to fixed preset conditions or templates. Whether it is a target object with changes in shape, size, color or texture, the system can flexibly respond according to user instructions, achieving high flexibility in image acquisition. By comparing the matching degree between the current image acquisition position and the reference image acquisition position, the system can automatically determine whether the image acquisition position needs to be adjusted. When a mismatch is found, the acquisition position is automatically adjusted according to the position adjustment information until the best matching state is achieved. This adaptive adjustment mechanism not only improves the acquisition efficiency, but also ensures that each acquisition can obtain the required image quality. Since the accuracy and flexibility of image acquisition are significantly improved, users can experience a more convenient and efficient operation experience during use. At the same time, high-quality and accurate image acquisition results also enhance user satisfaction with products or services and improve the overall user experience.
[0010] Further, according to the image size of the target image and the target bounding box, it is determined whether the current image acquisition position matches the reference image acquisition position, including: according to the image size of the target image and the target bounding box, determining the position offset and the spatial minimum value, wherein the position offset is used to characterize the offset of the center of the target object relative to the center of the target image, and the spatial minimum value is used to characterize the minimum space between the target object and the edge of the target image; comparing the absolute value of the position offset with a preset position offset threshold to determine whether the target object is already centered in the target image; comparing the spatial minimum value with a preset spatial minimum threshold to determine whether the target object is already maximized in the target image; when the target object is centered and maximized in the target image, it is determined that the current image acquisition position matches the reference image acquisition position, otherwise, it is determined that the current image acquisition position does not match the reference image acquisition position.
[0011] According to the above technical means, since the image acquisition position can be automatically adjusted, it is ensured that the acquired image not only meets the user's requirements but also can accurately display the target object, providing high-quality material for subsequent image analysis, processing or display.
[0012] Further, according to the image size of the target image and the target bounding box, the position offset and the spatial minimum value are determined, including: obtaining the image center coordinates of the target image according to the image size of the target image; obtaining the target center coordinates and the target size of the target object according to the data of the target bounding box; determining the difference between the image center coordinates and the target center coordinates as the position offset; and determining the spatial minimum value according to the image size and the target size.
[0013] According to the above technical means, by accurately calculating the difference between the image center coordinates of the target image and the target center coordinates of the target object, that is, the position offset, a specific quantitative basis is provided for the subsequent centering judgment. At the same time, combined with the overall size of the target image and the actual size of the target object (obtained through the target bounding box data), the position state of the target object in the image can be more comprehensively evaluated. This judgment method based on precise coordinates and size can significantly improve the accuracy and reliability of judgment compared to simple visual judgment or rough estimation.
[0014] Furthermore, the spatial minimum value is determined based on the image size and the target size, including: calculating a target width difference between the width of the target image and the width of the target object, and a target height difference between the height of the target image and the height of the target object; and determining the smaller value between the target width difference and the target height difference as the spatial minimum value.
[0015] According to the above technical means, by calculating the difference between the target image and the target object in the width and height directions (i.e., the target width difference and the target height difference), and selecting the smaller value as the spatial minimum, a quantitative standard is provided for evaluating the spatial margin of the target object in the image. This spatial minimum reflects the minimum distance between the target object and the image boundary, and is a key indicator for judging whether the target object is too close to the edge of the image and whether the position needs to be adjusted to avoid cropping or distortion. In this way, the layout of the target object in the image can be controlled more accurately to ensure that it is more visually harmonious and beautiful, and also provides a better foundation for subsequent image processing and analysis.
[0016] Further, the absolute value of the position offset is compared with a preset position offset threshold to determine whether the target object is centered in the target image, including: if the absolute value of the position offset is less than or equal to the position offset threshold, it is determined that the target object is centered in the target image; otherwise, it is determined that the target object is not centered in the target image.
[0017] According to the above technical means, using a preset position offset threshold to determine whether the target object is centered in the target image can provide a clear quantitative standard, making the judgment process more objective and accurate, avoiding the uncertainty caused by subjective judgment, and thus improving the accuracy and efficiency of image acquisition and processing.
[0018] Further, the spatial minimum value is compared with a preset spatial minimum value threshold to determine whether the target object has been maximized in the target image, including: if the spatial minimum value is less than or equal to the spatial minimum value threshold, it is determined that the target object has been maximized in the target image; otherwise, it is determined that the target object has not been maximized in the target image.
[0019] According to the above technical means, using a preset spatial minimum threshold to determine whether the target object is maximized in the target image can provide a clear quantitative standard, making the judgment process more objective and accurate, avoiding the uncertainty caused by subjective judgment, and thus improving the accuracy and efficiency of image acquisition and processing.
[0020] Furthermore, before adjusting the image acquisition position of the image acquisition device according to the position adjustment information, it includes: using preset adjustment parameters to convert the position offset and the spatial minimum value into position adjustment information for the mobile device to adjust the position, wherein the position adjustment information is used to indicate the moving distance of the mobile device in multiple moving directions.
[0021] According to the above technical means, since the system usually calculates the offset based on image pixels, and the mobile device uses physical units (such as millimeters, inches, etc.) to control its movement. By using adjustment parameters, these two different measurement units are unified to ensure that the automated equipment can accurately move according to the instructions of the image processing module.
[0022] Furthermore, when it is determined that the current image acquisition position matches the reference image acquisition position, the method includes: saving the target image and stopping image acquisition.
[0023] According to the above technical means, when it is determined that the current image acquisition position matches the reference image acquisition position, the target image is saved immediately and the acquisition is stopped. This approach can efficiently utilize resources (time, computing and storage), ensure data accuracy, improve user experience, enhance system stability, and provide high-quality data support for subsequent analysis.
[0024] Furthermore, using a preset multimodal large model, a target object and a target bounding box of the target object in the target image are identified from the target image according to the instructions of the indication information, including: performing image feature extraction on the target image to obtain target image features corresponding to the target image; performing text feature extraction on the indication information to obtain target text features corresponding to the indication information; performing feature fusion on the target image features and the target text features to obtain target fusion features; and identifying a target bounding box from the target image based on the target fusion features.
[0025] According to the above technical means, since the preset multimodal large model can be used to accurately identify the target object and the position of the target object in the target image from the target image, it is helpful for subsequent position matching evaluation.
[0026] According to another aspect of the embodiment of the present application, an adaptive image acquisition device based on a multimodal large model is also provided, including: an acquisition module, used to acquire a target image and indication information input by a user, wherein the target image is an image acquired by the image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of the target object in the target image; a processing module, used to use a preset multimodal large model to identify a target object and a target bounding box of the target object in the target image from the target image according to the indication of the indication information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; a judgment module, used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size and the target bounding box of the target image, and if it is determined that the current image acquisition position does not match the reference image acquisition position, adjust the image acquisition position of the image acquisition device according to the position adjustment information until it is determined that the adjusted image acquisition position matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0027] Furthermore, the judgment module is further used to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
[0028] According to another aspect of the embodiment of the present application, an adaptive image acquisition system based on a multimodal large model is also provided, including: an image acquisition device, an image processing device and a control device; the image acquisition device is used to acquire a target image at a current image acquisition position; the image processing device is used to obtain the target image and the indication information input by the user, wherein the indication information is used to indicate the position and size of the target object in the target image; using a preset multimodal large model, the target object and the target bounding box of the target object in the target image are identified from the target image according to the indication of the indication information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; the control device is used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size and the target bounding box of the target image, and when it is determined that the current image acquisition position does not match the reference image acquisition position, the image acquisition position of the image acquisition device is adjusted according to the position adjustment information until the adjusted image acquisition position matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0029] Furthermore, the control device is also used to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
[0030] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein the memory is used to store a computer program; and the processor is used to execute the method steps in any of the above embodiments by running the computer program stored in the memory.
[0031] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the method steps in any of the above embodiments when executed.
[0032] Beneficial effects of this application:
[0033] This application achieves accurate recognition and positioning of target objects in target images by combining the indication information input by the user and the preset multimodal large model. On this basis, the system can adaptively adjust the image acquisition position to ensure that the quality of the acquired image meets the requirements. This not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving user experience and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 It is a schematic diagram of a hardware environment of an optional adaptive image acquisition method based on a multimodal large model provided in an embodiment of the present application;
[0037] Figure 2 It is a flowchart of an optional adaptive image acquisition method based on a multimodal large model provided in an embodiment of the present application;
[0038] Figure 3 It is a structural block diagram of an optional adaptive image acquisition device based on a multimodal large model provided in an embodiment of the present application;
[0039] Figure 4 It is a structural block diagram of an optional adaptive image acquisition system based on a multimodal large model provided in an embodiment of the present application;
[0040] Figure 5 It is a structural block diagram of an optional electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0043] According to one aspect of an embodiment of the present application, an adaptive image acquisition method based on a multimodal large model is provided. Optionally, in this embodiment, the adaptive image acquisition method based on a multimodal large model can be applied to a hardware environment consisting of a terminal and a server. The server is connected to the terminal via a network, and can be used to provide services for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server.
[0044] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal may not be limited to a PC, a mobile phone, a tablet computer, etc.
[0045] The adaptive image acquisition method based on a multimodal large model of the embodiment of the present application can be executed by a server, or by a terminal, or by both a server and a terminal. The terminal executing the adaptive image acquisition method based on a multimodal large model of the embodiment of the present application can also be executed by a client installed thereon.
[0046] Taking the example of the adaptive image acquisition method based on the multimodal large model in this embodiment being jointly executed by the server and the terminal, please refer to Figure 1 , Figure 1 is a schematic diagram of a hardware environment of an optional adaptive image acquisition method based on a multimodal large model provided in an embodiment of the present application, such as Figure 1 As shown, the hardware environment of the adaptive image acquisition method based on the multimodal large model includes: a terminal 102, and a server 104 connected to the terminal 102 through a network. The terminal 102 is used to obtain the target image and the indication information input by the user, and the server 104 is used to deploy a preset multimodal large model, and the multimodal large model is used to identify the target object in the target image and the target bounding box of the target object in the target image according to the indication of the indication information input by the user; the terminal 102 is also used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size and the target bounding box of the target image, and when it is determined that the current image acquisition position does not match the reference image acquisition position, the image acquisition position of the image acquisition position is adjusted according to the position adjustment information, until the image acquisition device acquires the image size of the image and the bounding box of the target object in the image at the adjusted image acquisition position, and determines that the adjusted image acquisition position matches the reference image acquisition position.
[0047] In specific practice, the terminal 102 may be a mobile device equipped with an image acquisition device, which may be a high-definition industrial camera, a high-resolution camera module or a camera, etc. The mobile device may be a robotic arm or a motion platform, etc. The high-resolution camera module is a miniature camera device that integrates a high-pixel sensor, a lens, an image processing chip, and other necessary electronic components, and can capture and output high-quality, high-definition images.
[0048] It can be understood that by combining the indication information input by the user and the preset multimodal large model, accurate recognition and positioning of the target object in the target image is achieved, and whether the current image acquisition position is appropriate is judged based on the recognized data. If it is not appropriate, the position of the mobile device is adjusted through the position adjustment information, thereby achieving the effect of adjusting the image acquisition position. By adaptively adjusting the image acquisition position, it can be ensured that the quality of the acquired image meets the requirements, which not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving user experience and satisfaction.
[0049] The adaptive image acquisition method based on a multimodal large model in this embodiment can be applied to scenarios such as tasks that require precise positioning or capturing target images.
[0050] In tasks that require precise positioning and capturing of target images, traditional image acquisition systems usually rely on fixed camera positions and preset shooting parameters, and are unable to autonomously adjust according to real-time changes in the position, posture, or lighting conditions of the target object. This may not only lead to a decrease in image quality, but also affect the operating efficiency and accuracy of the entire automation system.
[0051] To solve the above problems, this embodiment provides an adaptive image acquisition method based on a multimodal large model running on the above server, please refer to Figure 2 , Figure 2 is a flow chart of an optional adaptive image acquisition method based on a multimodal large model provided in an embodiment of the present application, such as Figure 2 As shown, the adaptive image acquisition method based on a multimodal large model in the embodiment of the present application specifically includes the following steps:
[0052] Step S201, obtaining a target image and indication information input by a user, wherein the target image is an image acquired by an image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of a target object in the target image;
[0053] Step S202, using a preset multimodal large model, identifying a target object and a target bounding box of the target object in the target image from the target image according to the instruction information, wherein the target bounding box is used to indicate the position and size of the target object in the target image;
[0054] Step S203, determining whether the current image acquisition position matches the reference image acquisition position based on the image size and the target bounding box of the target image; if it is determined that the current image acquisition position does not match the reference image acquisition position, adjusting the image acquisition position of the image acquisition device based on the position adjustment information until the image acquisition position after the adjustment matches the reference image acquisition position based on the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0055] Through the above steps S201 to S203, the system can accurately identify the position and size of the target object in the target image through the indication information input by the user, and express it in the form of a target bounding box. This automatic recognition method based on user indication significantly improves the accuracy of image acquisition compared to traditional methods, ensuring that each acquisition can accurately focus on the target object; the preset multimodal large model supports the recognition of complex scenes and diverse target objects, so that image acquisition is no longer limited to fixed preset conditions or templates, achieving high flexibility in image acquisition; by comparing the matching degree of the current image acquisition position with the reference image acquisition position, the system can automatically determine whether the image acquisition position needs to be adjusted. When a mismatch is found, the system can automatically adjust the image acquisition position according to the preset conditions or templates. The position adjustment information automatically adjusts the acquisition position until the best matching state is achieved. This adaptive adjustment mechanism not only improves the acquisition efficiency, but also ensures that each acquisition can obtain image quality that meets the requirements. It solves the problem in related technologies that images cannot be acquired flexibly and adaptively in tasks that require precise positioning and shooting of target images. By combining the indication information input by the user and the preset multimodal large model, accurate recognition and positioning of the target object in the target image are achieved. On this basis, the system can adaptively adjust the image acquisition position to ensure that the quality of the acquired image meets the requirements. This not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving user experience and satisfaction.
[0056] Combine the following Figure 2 The adaptive image acquisition method based on a multimodal large model in the embodiment of the present application is explained.
[0057] In the technical solution of step S201, the system first collects an image at the current image collection position through an image acquisition device (such as a camera, a webcam, etc.), and this image is marked as a target image. At the same time, the system receives the indication information input by the user, which is used to clearly indicate the position where the target object is expected to appear in the target image. The indication information can be provided by the user through a graphical interface selection, voice input or other interactive methods, and is intended to assist the system in locating the target object. In practical applications, the indication information can be in the following form: from the target image, the target object is identified, and the position information of the target object in the target image is output.
[0058] In the technical solution of step S202, the system uses a pre-trained multimodal large model to process the target image. This model can accurately identify the target object in the target image according to the indication information obtained in step S201, and automatically generate a target bounding box. This bounding box accurately marks the position and size of the target object in the image, providing an important basis for subsequent image analysis, processing or interaction.
[0059] As an optional embodiment, a preset multimodal large model is used to identify a target object and a target bounding box of the target object in the target image from the target image according to the indication of the indication information, including: performing image feature extraction on the target image to obtain target image features corresponding to the target image; performing text feature extraction on the indication information to obtain target text features corresponding to the indication information; performing feature fusion on the target image features and the target text features to obtain target fusion features; and identifying a target bounding box from the target image based on the target fusion features.
[0060] In practice, a multimodal large model refers to a model that combines multimodal information such as text, images, videos, and audio for training. It can process multiple types of data at the same time, and can establish connections and integration between different data types to achieve a comprehensive and comprehensive multimodal processing. In this embodiment, the preset multimodal large model accurately identifies the target object and the target bounding box of the target object in the target image from the target image by processing image data and text data at the same time.
[0061] It is understandable that the use of the preset multimodal large model can accurately identify the target object and the position of the target object in the target image from the target image, which is helpful for subsequent position matching evaluation.
[0062] In the technical solution of step S203, it is determined whether the current image acquisition position matches the reference image acquisition position based on the image size and the target bounding box of the target image. When it is determined that the current image acquisition position does not match the reference image acquisition position, the image acquisition position of the image acquisition device is adjusted according to the position adjustment information until the adjusted image acquisition position matches the reference image acquisition position based on the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0063] It is understandable that the system first evaluates the degree of match between the current image acquisition position and the reference image acquisition position based on the image size of the target image and the target bounding box. The reference image acquisition position is usually an ideal acquisition position pre-set based on application requirements, target object characteristics or visual aesthetics, and can also be called the optimal image acquisition position. After determining that the current image acquisition position does not match the reference image acquisition position, the system will guide the movement of the image acquisition device based on the position adjustment information. The adjustment process may be iterative, that is, the system will capture images multiple times, evaluate the degree of match, and continue to adjust the acquisition position as needed until a satisfactory matching result is achieved. Specifically, when it is confirmed that the current image acquisition position matches the reference image acquisition position based on the image captured by the image acquisition device at the adjusted image acquisition position, the system will stop the adjustment process and the current image acquisition position will be the final image acquisition position.
[0064] It is understandable that the use of the above-mentioned technical means can automatically adjust the image acquisition position to ensure that the acquired image not only meets the user's requirements but also can accurately display the target object, providing high-quality material for subsequent image analysis, processing or display.
[0065] In practical applications, the adjustment of the image acquisition position can be achieved through a robotic arm, a pan / tilt head or other automated control equipment, which can accurately move the image acquisition device according to system instructions.
[0066] In step S203, in order to determine whether the current image acquisition position matches the reference image acquisition position, we introduce two key parameters, position offset and spatial minimum value, for evaluation.
[0067] As an optional embodiment, determining whether the current image acquisition position matches the reference image acquisition position based on the image size and the target bounding box of the target image includes: determining a position offset and a spatial minimum value based on the image size and the target bounding box of the target image, wherein the position offset is used to characterize the offset of the center of the target object relative to the center of the target image, and the spatial minimum value is used to characterize the minimum space between the target object and the edge of the target image; comparing the absolute value of the position offset with a preset position offset threshold to determine whether the target object is already centered in the target image; comparing the spatial minimum value with a preset spatial minimum threshold to determine whether the target object is already maximized in the target image; when the target object is centered and maximized in the target image, determining that the current image acquisition position matches the reference image acquisition position, otherwise, determining that the current image acquisition position does not match the reference image acquisition position.
[0068] In this embodiment, the position offset is used to quantify the degree of offset of the center of the target object relative to the center of the target image. The spatial minimum is used to measure the minimum spatial distance between the target object bounding box and the edge of the target image. The position offset is used to determine whether the target object has been centered in the target image, and the spatial minimum is used to determine whether the target object has been maximized in the target image. If and only if the target object is both centered and maximized in the target image, it is determined that the current image acquisition position matches the reference image acquisition position. If any of the above conditions is not met, it is determined that the current image acquisition position does not match the reference image acquisition position.
[0069] It can be understood that in this way, the system can automatically evaluate and adjust the image acquisition position to ensure that the acquired image not only meets the user's requirements but also can efficiently display the target object.
[0070] As an optional embodiment, the position offset and the spatial minimum value are determined according to the image size of the target image and the target bounding box, including: obtaining the image center coordinates of the target image according to the image size of the target image; obtaining the target center coordinates and the target size of the target object according to the data of the target bounding box; determining the difference between the image center coordinates and the target center coordinates as the position offset; and determining the spatial minimum value according to the image size and the target size.
[0071] In practice, the image size of the target image specifically refers to the width and height of the target image. If the width W and height H of the target image are directly obtained, then the image center coordinates of the target image are (W / 2, H / 2).
[0072] The target bounding box is usually represented by four parameters, such as the horizontal and vertical coordinates of the upper left corner and the lower right corner (x1, y1, x2, y2), or directly by the center point coordinates and width and height (cx, cy, width, height). The target size of the target bounding box specifically refers to the width and height of the target bounding box. If the acquired target bounding box is represented by the center point coordinates and width and height (cx, cy, width, height), then the width w of the target bounding box can be directly obtained as width and the height h can be directly obtained as height; the target center coordinates (xcenter, ycenter) of the target object are (cx, cy). If the acquired target bounding box is represented by the horizontal and vertical coordinates (x1, y1, x2, y2) of the upper left corner and the lower right corner, then the width w and height h of the target bounding box can be calculated by the following formula: w=x2-x1, h=y2-y1; the target center coordinates (xcenter, ycenter) of the target object can be calculated by the following formula: xcenter=x1+w / 2, ycenter=y1+h / 2.
[0073] The position offset refers to the degree of offset of the center of the target object relative to the center of the target image. In this embodiment, the position offset specifically includes the horizontal position offset Δx and the vertical position offset Δy. The position offset can be obtained by calculating the difference between the image center coordinates (W / 2, H / 2) and the target center coordinates (xcenter, ycenter). The specific calculation formula is as follows: Δx=W / 2-xcenter, Δy=H / 2-ycenter.
[0074] It can be understood that by accurately calculating the difference between the image center coordinates of the target image and the target center coordinates of the target object, that is, the position offset, a specific quantitative basis is provided for the subsequent centering judgment. At the same time, combined with the overall size of the target image and the actual size of the target object (obtained through the target bounding box data), the position state of the target object in the image can be more comprehensively evaluated. This judgment method based on precise coordinates and size can significantly improve the accuracy and reliability of judgment compared to simple visual judgment or rough estimation.
[0075] In specific practice, the spatial minimum is used to measure the minimum spatial distance between the target object bounding box and the edge of the target image, which can be determined by the image size of the target image and the target size of the target object bounding box.
[0076] As an optional embodiment, the spatial minimum value is determined based on the image size and the target size, including: calculating the target width difference between the width of the target image and the width of the target object, and the target height difference between the height of the target image and the height of the target object; and determining the smaller value between the target width difference and the target height difference as the spatial minimum value.
[0077] If the target image width W and height H, as well as the target bounding box width w and height h are obtained, the spatial minimum Δd can be expressed by the following formula: Δd=min(Ww,Hh), where Ww represents the target width difference and Hh represents the target height difference.
[0078] It can be understood that by calculating the difference between the target image and the target object in the width and height directions (i.e., the target width difference and the target height difference), and selecting the smaller value as the spatial minimum, a quantitative standard is provided for evaluating the spatial margin of the target object in the image. This spatial minimum reflects the minimum distance between the target object and the image boundary, and is a key indicator for judging whether the target object is too close to the edge of the image and whether the position needs to be adjusted to avoid cropping or distortion. In this way, the layout of the target object in the image can be controlled more accurately, ensuring that it is more visually harmonious and beautiful, and also providing a better foundation for subsequent image processing and analysis.
[0079] As an optional embodiment, the absolute value of the position offset is compared with a preset position offset threshold to determine whether the target object is centered in the target image, including: if the absolute value of the position offset is less than or equal to the position offset threshold, it is determined that the target object is centered in the target image; otherwise, it is determined that the target object is not centered in the target image.
[0080] In specific practice, if the absolute value of the position offset is less than or equal to the position offset threshold, it is determined that the target object is already centered in the target image. If the absolute value of the position offset is greater than the position offset threshold, it is determined that the target object is not centered in the target image. Specifically, if the horizontal position offset Δx, the vertical position offset Δy, and the position offset threshold ε1 have been determined, when |Δx|≤ε1 and |Δy|≤ε1, it is determined that the target object is already centered in the target image; when |Δx|>ε1 and / or |Δy|>ε1, it is determined that the target object is not centered in the target image.
[0081] It should be noted that the position offset threshold ε1 is set according to actual conditions. Generally, the position offset threshold ε1 is set to 20, representing a 20 pixel value.
[0082] It can be understood that using a preset position offset threshold to determine whether the target object is centered in the target image can provide a clear quantitative standard, making the judgment process more objective and accurate, avoiding the uncertainty caused by subjective judgment, and thus improving the accuracy and efficiency of image acquisition and processing.
[0083] As an optional embodiment, the spatial minimum value is compared with a preset spatial minimum value threshold to determine whether the target object has been maximized in the target image, including: if the spatial minimum value is less than or equal to the spatial minimum value threshold, then it is determined that the target object has been maximized in the target image; otherwise, it is determined that the target object has not been maximized in the target image.
[0084] In specific practice, if the spatial minimum value is less than or equal to the spatial minimum value threshold, it is determined that the target object has been maximized in the target image. If the spatial minimum value is greater than the spatial minimum value threshold, it is determined that the target object is not maximized in the target image. Specifically, if the spatial minimum value Δd and the spatial minimum value threshold ε2 have been determined, when Δd≤ε2, it is determined that the target object is not maximized in the target image; when Δd>ε2, it is determined that the target object is not maximized in the target image.
[0085] It should be noted that the spatial minimum threshold ε2 is set according to actual conditions. Generally, the spatial minimum threshold ε2 is set to 20, representing 20 pixel values.
[0086] It can be understood that using a preset spatial minimum threshold to determine whether the target object is maximized in the target image can provide a clear quantitative standard, making the judgment process more objective and accurate, avoiding the uncertainty caused by subjective judgment, and thus improving the accuracy and efficiency of image acquisition and processing.
[0087] As an optional embodiment, before adjusting the image acquisition position of the image acquisition device according to the position adjustment information, it is necessary to determine the position adjustment information, specifically including: using preset adjustment parameters to convert the position offset and the spatial minimum value into position adjustment information for the mobile device to adjust the position, wherein the position adjustment information is used to indicate the moving distance of the mobile device in multiple moving directions.
[0088] In specific practice, the image offset can be converted into the actual moving distance through the preset adjustment parameters, and the position adjustment information specifically includes the horizontal adjustment distance, the vertical adjustment distance, and the front-back adjustment distance. The adjustment parameter α can be determined according to the specific configuration of the system (such as the resolution of the camera, the magnification of the lens, the working distance of the device, etc.).
[0089] If the preset adjustment parameter α, the horizontal position offset Δx, the vertical position offset Δy and the minimum spatial value Δd have been obtained, then the various position adjustment information can be obtained using the following formulas, specifically: ΔX=Δx*α, ΔY=Δy*α, ΔZ=Δd*α, where ΔX represents the horizontal adjustment distance, ΔY represents the vertical adjustment distance, and ΔZ represents the front-back adjustment distance. It should be noted that since the values of Δx and Δy are positive and negative, the values of ΔX and ΔY are also positive and negative. ΔX represents the horizontal adjustment distance, that is, the left-right adjustment distance. When ΔX is positive, adjust ΔX to the right, and when ΔX is negative, adjust ΔX to the left. ΔY represents the vertical adjustment distance, that is, the up-down adjustment distance. When ΔY is positive, adjust ΔY upward, and when ΔY is negative, adjust ΔY upward.
[0090] In specific practice, the position adjustment information (ΔX, ΔY, ΔZ) is sent to the control module of the mobile device through instructions, and the control module drives the mobile device to move accordingly according to the instructions to adjust the image acquisition position.
[0091] It is understandable that since the system usually calculates the offset based on image pixels, the mobile device uses physical units (such as millimeters, inches, etc.) to control its movement. By using adjustment parameters, these two different measurement units are unified to ensure that the automated device can move accurately according to the instructions of the image processing module.
[0092] As an optional embodiment, when it is determined that the current image acquisition position matches the reference image acquisition position, the method includes: saving the target image and stopping image acquisition.
[0093] It is understandable that when it is determined that the current image acquisition position matches the reference image acquisition position, the target image is saved immediately and the acquisition is stopped. This approach can efficiently utilize resources (time, computing, and storage), ensure data accuracy, improve user experience, enhance system stability, and provide high-quality data support for subsequent analysis.
[0094] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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 ROM (Read-Only Memory, read-only memory) / RAM (Random Access Memory, random access memory), a 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 of each embodiment of the present application.
[0096] According to another aspect of the embodiment of the present application, there is also provided an adaptive image acquisition device based on a multimodal large model for implementing the above-mentioned adaptive image acquisition method based on a multimodal large model. Figure 3 , Figure 3 is a structural block diagram of an optional adaptive image acquisition device based on a multimodal large model provided in an embodiment of the present application, such as Figure 3 As shown, the device may include:
[0097] An acquisition module 301 is used to acquire a target image and indication information input by a user, wherein the target image is an image acquired by an image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of a target object in the target image;
[0098] The processing module 302 is used to use a preset multimodal large model to identify a target object and a target bounding box of the target object in the target image from the target image according to the instruction information, wherein the target bounding box is used to indicate the position and size of the target object in the target image;
[0099] The judgment module 303 is used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size and the target bounding box of the target image. When it is determined that the current image acquisition position does not match the reference image acquisition position, the image acquisition position of the image acquisition device is adjusted according to the position adjustment information until the image acquisition position after the adjustment matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0100] It should be noted that the acquisition module 301 in this embodiment can be used to execute the above step S201, the processing module 302 in this embodiment can be used to execute the above step S202, and the determination module 303 in this embodiment can be used to execute the above step S203.
[0101] Regarding the adaptive image acquisition device based on a multimodal large model in this embodiment, the specific manner in which its acquisition module 301, processing module 302 and judgment module 303 execute the above-mentioned adaptive image acquisition method based on a multimodal large model has been described in detail in the embodiment of the adaptive image acquisition method based on a multimodal large model, and will not be elaborated here.
[0102] As an optional embodiment, the judgment module 303 is further configured to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
[0103] It can be understood that the technical solution provided in this embodiment, each module in the adaptive image acquisition device based on the multimodal large model, realizes the accurate recognition and positioning of the target object in the target image by combining the indication information input by the user and the preset multimodal large model. On this basis, the system can adaptively adjust the image acquisition position to ensure that the quality of the acquired image meets the requirements. This not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving the user experience and satisfaction.
[0104] The device in this embodiment, in addition to the above-mentioned modules, may also include a module for executing any method in any of the aforementioned embodiments of the adaptive image acquisition method based on a multimodal large model.
[0105] It should be noted that the above modules and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in the implementation of Figure 1 The hardware environment of the method shown may be implemented by software or hardware, wherein the hardware environment includes a network environment.
[0106] According to another aspect of the embodiment of the present application, there is also provided a multi-modal large model-based adaptive image acquisition system for implementing the above-mentioned multi-modal large model-based adaptive image acquisition method. Figure 4 , Figure 4 is a structural block diagram of an optional adaptive image acquisition system based on a multimodal large model provided in an embodiment of the present application, such as Figure 4As shown, the system may include: an image acquisition device 401, an image processing device 402 and a control device 403; the image acquisition device 401 is used to acquire a target image at a current image acquisition position; the image processing device 402 is used to obtain the target image and the indication information input by the user, wherein the indication information is used to indicate the position and size of the target object in the target image; using a preset multimodal large model, the target object and the target bounding box of the target object in the target image are identified from the target image according to the indication of the indication information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; the control device 403 is used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size and the target bounding box of the target image, and when it is determined that the current image acquisition position does not match the reference image acquisition position, adjust the image acquisition position of the image acquisition device according to the position adjustment information until it is determined that the adjusted image acquisition position matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0107] In specific practice, the image acquisition device 401 and the image processing device 402 are connected to the control device 403 respectively.
[0108] It should be noted that the image processing device 402 in this embodiment can be used to execute the above steps S201 and S202, and the control device 403 in this embodiment can be used to execute the above step S203.
[0109] Regarding the adaptive image acquisition system based on a multimodal large model in this embodiment, the specific manner in which its image acquisition device 401, image processing device 402 and control device 403 execute the above-mentioned adaptive image acquisition method based on a multimodal large model has been described in detail in the embodiment of the adaptive image acquisition method based on a multimodal large model, and will not be elaborated here.
[0110] As an optional embodiment, the control device 403 is further configured to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
[0111] It can be understood that the technical solution provided in this embodiment, that is, each device in the adaptive image acquisition system based on the multimodal large model, realizes the accurate recognition and positioning of the target object in the target image by combining the indication information input by the user and the preset multimodal large model. On this basis, the system can adaptively adjust the image acquisition position to ensure that the quality of the acquired image meets the requirements. This not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving the user experience and satisfaction.
[0112] In addition to the above-mentioned device, the system in this embodiment may also include a device for executing any method in any of the aforementioned embodiments of the adaptive image acquisition method based on a multimodal large model.
[0113] It should be noted that the above modules and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can be run in the implementation of Figure 1 The hardware environment of the method shown may be implemented by software or hardware, wherein the hardware environment includes a network environment.
[0114] According to another aspect of the embodiments of the present application, an electronic device for implementing the above-mentioned adaptive image acquisition method based on a multimodal large model is also provided. The electronic device may be a server, a terminal, or a combination thereof.
[0115] According to another embodiment of the present application, an electronic device is also provided. Figure 5 , Figure 5 is a structural block diagram of an optional electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0116] Memory 1503, used for storing computer programs;
[0117] The processor 1501 is used to implement the following steps when executing the program stored in the memory 1503:
[0118] Step S201, obtaining a target image and indication information input by a user, wherein the target image is an image acquired by an image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of a target object in the target image;
[0119] Step S202, using a preset multimodal large model, identifying a target object and a target bounding box of the target object in the target image from the target image according to the instruction information, wherein the target bounding box is used to indicate the position and size of the target object in the target image;
[0120] Step S203, determining whether the current image acquisition position matches the reference image acquisition position based on the image size and the target bounding box of the target image; if it is determined that the current image acquisition position does not match the reference image acquisition position, adjusting the image acquisition position of the image acquisition device based on the position adjustment information until the image acquisition position after the adjustment matches the reference image acquisition position based on the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image.
[0121] It can be understood that the technical solution provided in this embodiment, the processor of the electronic device, by combining the indication information input by the user and the preset multimodal large model, realizes the accurate recognition and positioning of the target object in the target image. On this basis, the system can adaptively adjust the image acquisition position to ensure that the quality of the acquired image meets the requirements. This not only improves the accuracy and flexibility of image acquisition, but also optimizes the acquisition process in an automated and intelligent manner, thereby improving the user experience and satisfaction.
[0122] Optionally, in this embodiment, the above-mentioned communication bus can be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above-mentioned electronic device and other devices.
[0123] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0124] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0125] An embodiment of the present application further provides a computer-readable storage medium, the storage medium including a stored program, wherein the method steps of the above method embodiment are executed when the program is run.
[0126] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
[0127] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0128] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0129] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0130] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An adaptive image acquisition method based on a multimodal large model, characterized in that: include: Acquire a target image and indication information input by a user, wherein the target image is an image acquired by an image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of a target object in the target image; Using a preset multimodal large model, identifying the target object and a target bounding box of the target object in the target image from the target image according to the instruction of the instruction information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; Determining whether the current image acquisition position matches the reference image acquisition position according to the image size of the target image and the target bounding box, and if it is determined that the current image acquisition position does not match the reference image acquisition position, adjusting the image acquisition position of the image acquisition device according to the position adjustment information until determining that the adjusted image acquisition position matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image; The determining, according to the image size of the target image and the target bounding box, whether the current image acquisition position matches the reference image acquisition position comprises: determining, according to the image size of the target image and the target bounding box, a position offset and a spatial minimum value, wherein the position offset is used to characterize the offset of the center of the target object relative to the center of the target image, and the spatial minimum value is used to characterize the minimum space between the target object and the edge of the target image; comparing the absolute value of the position offset with a preset position offset threshold value to determine whether the target object is already centered in the target image; comparing the spatial minimum value with a preset spatial minimum value threshold value to determine whether the target object is already maximized in the target image; when the target object is centered and maximized in the target image, determining that the current image acquisition position matches the reference image acquisition position, otherwise, determining that the current image acquisition position does not match the reference image acquisition position.
2. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: The determining of the position offset and the spatial minimum value according to the image size of the target image and the target bounding box includes: Obtaining the image center coordinates of the target image according to the image size of the target image; According to the data of the target bounding box, the target center coordinates and the target size of the target object are obtained; Determine the difference between the image center coordinates and the target center coordinates as the position offset; The spatial minimum value is determined according to the image size and the target size.
3. The adaptive image acquisition method based on a multimodal large model according to claim 2, characterized in that: The determining the spatial minimum value according to the image size and the target size includes: Calculating a target width difference between a width of the target image and a width of the target object, and a target height difference between a height of the target image and a height of the target object; The smaller value between the target width difference and the target height difference is determined as the spatial minimum value.
4. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: The step of comparing the absolute value of the position offset with a preset position offset threshold to determine whether the target object is already centered in the target image includes: If the absolute value of the position offset is less than or equal to the position offset threshold, it is determined that the target object is centered in the target image; otherwise, it is determined that the target object is not centered in the target image.
5. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: The step of comparing the spatial minimum value with a preset spatial minimum value threshold to determine whether the target object has been maximized in the target image includes: If the spatial minimum value is less than or equal to the spatial minimum value threshold, it is determined that the target object has been maximized in the target image; otherwise, it is determined that the target object has not been maximized in the target image.
6. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: Before adjusting the image acquisition position of the image acquisition device according to the position adjustment information, the method includes: The position offset and the spatial minimum value are converted into the position adjustment information for the mobile device to adjust the position by using preset adjustment parameters, wherein the position adjustment information is used to indicate the moving distance of the mobile device in multiple moving directions.
7. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: In the case where it is determined that the current image acquisition position matches the reference image acquisition position, the method comprises: The target image is saved and image acquisition is stopped.
8. The adaptive image acquisition method based on a multimodal large model according to claim 1, characterized in that: The using a preset multimodal large model to identify the target object and a target bounding box of the target object in the target image from the target image according to the instruction of the instruction information includes: Performing image feature extraction on the target image to obtain target image features corresponding to the target image; Extracting text features from the indication information to obtain target text features corresponding to the indication information; Fusing the target image feature and the target text feature to obtain a target fused feature; The target bounding box is identified from the target image according to the target fusion feature.
9. An adaptive image acquisition device based on a multimodal large model for implementing the method of claim 1, characterized in that: include: an acquisition module, used to acquire a target image and indication information input by a user, wherein the target image is an image acquired by the image acquisition device at a current image acquisition position, and the indication information is used to indicate the position and size of the target object in the target image; a processing module, configured to use a preset multimodal macro model to identify the target object and a target bounding box of the target object in the target image from the target image according to the instruction of the instruction information, wherein the target bounding box is used to indicate the position and size of the target object in the target image; The judgment module is used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size of the target image and the target bounding box. If it is determined that the current image acquisition position does not match the reference image acquisition position, the image acquisition position of the image acquisition device is adjusted according to the position adjustment information until the image acquisition position after the adjustment matches the reference image acquisition position according to the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image; the determining whether the current image acquisition position matches the reference image acquisition position according to the image size of the target image and the target bounding box comprises: according to the image size of the target image and the target bounding box, Determine a position offset and a spatial minimum value, wherein the position offset is used to characterize the offset of the center of the target object relative to the center of the target image, and the spatial minimum value is used to characterize the minimum space between the target object and the edge of the target image; compare the absolute value of the position offset with a preset position offset threshold to determine whether the target object is already centered in the target image; compare the spatial minimum value with a preset spatial minimum threshold to determine whether the target object is already maximized in the target image; when the target object is centered and maximized in the target image, determine that the current image acquisition position matches the reference image acquisition position, otherwise, determine that the current image acquisition position does not match the reference image acquisition position.
10. The adaptive image acquisition device for a multimodal large model according to claim 9, characterized in that: The judgment module is further configured to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
11. An adaptive image acquisition system based on a multimodal large model for implementing the method of claim 1, characterized in that: include: Image acquisition device, image processing device and control device; The image acquisition device is used to acquire a target image at a current image acquisition position; The image processing device is used to obtain the target image and indication information input by a user, wherein the indication information is used to indicate the position and size of the target object in the target image; using a preset multimodal large model, according to the indication of the indication information, to identify the target object and a target bounding box of the target object in the target image from the target image, wherein the target bounding box is used to indicate the position and size of the target object in the target image; The control device is used to determine whether the current image acquisition position matches the reference image acquisition position according to the image size of the target image and the target bounding box, and when it is determined that the current image acquisition position does not match the reference image acquisition position, adjust the image acquisition position of the image acquisition device according to the position adjustment information until the image size of the image acquired by the image acquisition device at the adjusted image acquisition position and the bounding box of the target object in the image are determined to match the adjusted image acquisition position with the reference image acquisition position; the determining whether the current image acquisition position matches the reference image acquisition position according to the image size of the target image and the target bounding box comprises: , determine a position offset and a spatial minimum value, wherein the position offset is used to characterize the offset of the center of the target object relative to the center of the target image, and the spatial minimum value is used to characterize the minimum space between the target object and the edge of the target image; compare the absolute value of the position offset with a preset position offset threshold to determine whether the target object is centered in the target image; compare the spatial minimum value with a preset spatial minimum threshold to determine whether the target object is maximized in the target image; when the target object is centered and maximized in the target image, determine that the current image acquisition position matches the reference image acquisition position, otherwise, determine that the current image acquisition position does not match the reference image acquisition position.
12. The adaptive image acquisition system based on multimodal large model according to claim 11, characterized in that: The control device is further used to save the target image and stop image acquisition when it is determined that the current image acquisition position matches the reference image acquisition position.
13. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface and the memory communicate with each other via the communication bus, wherein: The memory is used to store computer programs; The processor is used to execute the adaptive image acquisition method based on a multimodal large model as described in any one of claims 1 to 8 by running the computer program stored in the memory.
14. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the adaptive image acquisition method based on a multimodal large model as described in any one of claims 1 to 8 when running.
