Image acquisition method, electronic device, and storage medium
By selecting the actual display screen in the monitoring equipment and calculating the range of posture changes, the problem of limited monitoring range of the monitoring equipment is solved, thereby expanding the image acquisition range and improving the display effect.
Patent Information
- Application Number
- CN202310641758.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-05-31
AI Technical Summary
Existing surveillance equipment has a limited monitoring range, making it difficult to effectively expand the image acquisition range and affecting the display of image details.
By acquiring the original captured image, selecting the actual display image, and calculating the pose change range based on its position in the original captured image, the pose change is performed to adjust the position of the actual display image in the original captured image, thereby expanding the image acquisition range and improving the display effect.
The image acquisition range has been expanded, improving the display effect and flexibility of image details, ensuring that users can observe stable image content.
Smart Images

Figure CN116761076B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of security technology, and in particular to an image acquisition method, electronic device and storage medium. Background Technology
[0002] Currently, video surveillance technology plays an important role in the security field. Security monitoring systems can reflect the monitored objects in real time, vividly and realistically. This not only greatly extends the observation distance of the human eye, but also expands the function of the human eye. It can replace manual monitoring for a long time in harsh environments, allowing people to see everything that actually happens at the monitored site and record these images.
[0003] However, existing monitoring equipment still has certain limitations, and its monitoring range is limited. Summary of the Invention
[0004] This application provides at least one image acquisition method, electronic device, and storage medium.
[0005] The first aspect of this application provides an image acquisition method, comprising: acquiring an original acquisition frame; selecting an actual display frame from the original acquisition frame, wherein the area of the actual display frame is smaller than the area of the original acquisition frame; calculating a pose change range based on the position of the actual display frame in the original acquisition frame; performing a pose change based on the pose change range, and adjusting the position of the actual display frame in the original acquisition frame during the pose change process.
[0006] In one embodiment, calculating the attitude change range based on the position of the actual displayed image in the original captured image includes: obtaining a reference parameter item in the actual displayed image and obtaining an associated parameter item in the original captured image corresponding to the reference parameter item; obtaining the position coordinates of the reference parameter item in the original captured image based on the position of the actual displayed image in the original captured image; calculating the distance between the position coordinates of the associated parameter item and the position coordinates of the reference parameter item in the original captured image; and obtaining the attitude change range based on the distance.
[0007] In one embodiment, obtaining the reference parameter item in the actual display screen includes: determining the attitude-changeable parameter item; and obtaining the reference parameter item in the actual display screen associated with the attitude-changeable parameter item.
[0008] In one embodiment, the step of performing attitude change based on the attitude change range and adjusting the position of the actual display screen in the original acquisition screen during the attitude change includes: acquiring the image display content in the actual display screen; acquiring the position migration amount of the image display content relative to the original acquisition screen during the attitude change; and adjusting the position of the actual display screen in the original acquisition screen based on the position migration amount.
[0009] In one embodiment, the actual displayed screen contains image overlay information; after adjusting the position of the actual displayed screen in the original captured screen based on the position migration amount, the method further includes: adjusting the position of the image overlay information in the original captured screen based on the position migration amount.
[0010] In one embodiment, acquiring the original captured image and selecting the actual display image from the original captured image includes: determining a target object contained in the original captured image; determining an actual display image area based on the position of the target object in the original captured image; and obtaining the actual display image based on the actual display image area.
[0011] In one embodiment, the actual display screen contains image overlay information; the method further includes: acquiring movement information of the target object in the original acquisition screen; adjusting the position of the actual display screen in the original acquisition screen based on the movement information; and adjusting the position of the image overlay information in the original acquisition screen based on the movement information.
[0012] In one embodiment, the number of target objects is greater than one; determining the actual display screen area based on the position of the target objects in the original captured image includes: calculating the area width and height parameters based on the position of each target object in the original captured image; and dividing the original captured image into an actual display screen area based on the area width and height parameters and the position of each target object in the original captured image.
[0013] A second aspect of this application provides an image acquisition device, comprising: a screen selection module for acquiring an original acquired screen and selecting an actual display screen from the original acquired screen, wherein the screen area of the actual display screen is smaller than the screen area of the original acquired screen; a change range calculation module for calculating a posture change range based on the position of the actual display screen in the original acquired screen; and a posture change module for performing posture changes based on the posture change range and adjusting the position of the actual display screen in the original acquired screen during the posture change process.
[0014] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-described image acquisition method.
[0015] The fourth aspect of this application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the above-described image acquisition method.
[0016] The above solution improves the display effect of image details by acquiring the original captured image, selecting the actual display image from the original captured image, and calculating the posture change range based on the position of the actual display image in the original captured image. The posture change is then performed based on the posture change range to expand the image acquisition range, that is, to expand the selection range of the actual display image and improve the flexibility of image acquisition. Furthermore, the position of the actual display image in the original captured image is adjusted during the posture change process to ensure that the actual display image can be displayed stably, ensuring that the user can observe stable image content and improving the display effect of the actual display image.
[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0019] Figure 1 This is a schematic diagram of the implementation environment involved in this application;
[0020] Figure 2 This is a flowchart illustrating an exemplary embodiment of the image acquisition method of this application;
[0021] Figure 3 This is a schematic diagram illustrating the captured images of a multi-view camera in an exemplary embodiment of this application;
[0022] Figure 4 This is a schematic diagram illustrating the selection of an actual display screen in an exemplary embodiment of this application;
[0023] Figure 5 This is a schematic diagram illustrating an attitude change in an exemplary embodiment of this application;
[0024] Figure 6 This is a schematic diagram illustrating the adjustment of the actual display screen in an exemplary embodiment of this application;
[0025] Figure 7 This is a schematic diagram illustrating the reference parameter items and associated parameter items in an exemplary embodiment of this application;
[0026] Figure 8 This is a block diagram illustrating an image acquisition device according to an exemplary embodiment of this application;
[0027] Figure 9 This is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of this application;
[0028] Figure 10 This is a schematic diagram illustrating the structure of a computer-readable storage medium, as shown in an exemplary embodiment of this application. Detailed Implementation
[0029] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0030] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.
[0031] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0032] The image acquisition method provided in the embodiments of this application will be described below.
[0033] Please see Figure 1 , Figure 1 This is a schematic diagram of an implementation environment involved in the image acquisition method of this application. For example... Figure 1 As shown, the implementation environment includes an image acquisition device 110 and a control terminal 120, which can be directly or indirectly connected via wired or wireless communication.
[0034] The image acquisition device 110 and the control terminal 120 can be deployed independently or integrated, and this application does not limit them in this regard.
[0035] The image acquisition device 110 has an image acquisition function. The control terminal 120 is used to select the actual display screen from the original acquisition screen of the image acquisition device 110, calculate the corresponding posture change range of the image acquisition device 110 based on the position of the actual display screen in the original acquisition screen, and then change the posture of the image acquisition device 110 according to the posture change range. During the posture change process, the position of the actual display screen in the original acquisition screen is adjusted to ensure that the display of the actual display screen is not affected while controlling the image acquisition device 110 to change its posture to expand the image acquisition range.
[0036] The control terminal 120 can be a mobile phone, computer, smart home appliance, vehicle terminal, etc. The control terminal 120 can also be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. This application does not limit the type of the control terminal 120.
[0037] It is understood that in the specific implementation of this application, data such as the original captured image and the actual displayed image are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0038] Please see Figure 2 , Figure 2 This is a flowchart illustrating an exemplary embodiment of the image acquisition method of this application. This image acquisition method can be applied to… Figure 1 The implementation environment is shown, and the method is specifically executed by the control terminal in that implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.
[0039] The image acquisition method proposed in this application embodiment will be described in detail below, taking the control terminal as the specific execution subject.
[0040] Please see Figure 2 , Figure 2 This is a flowchart illustrating an exemplary embodiment of the image acquisition method of this application. Figure 2 As shown, in an exemplary embodiment, the image acquisition method includes at least steps S210 to S230, which are described in detail below:
[0041] Step S210: Acquire the original captured image, and select the actual display image from the original captured image. The area of the actual display image is smaller than the area of the original captured image.
[0042] The original captured image is the initial image captured by the image acquisition device, while the actual displayed image is the image displayed on the display device.
[0043] For example, the image acquisition device can be a multi-view camera. Figure 3 This is a schematic diagram illustrating the captured image of a multi-view camera. The multi-view camera contains two or more image sensors. Taking a multi-view camera with two image sensors as an example, each image sensor captures images to obtain captured image 1 and captured image 2. Then, captured image 1 and captured image 2 are stitched together to obtain the original captured image corresponding to the image acquisition device.
[0044] Because the raw footage captured by multi-camera systems places high demands on display devices, directly displaying the raw footage on conventional devices would result in large blank display areas, affecting the display quality. Therefore, if... Figure 4 As shown, the actual display image is selected from the original captured image. The length and width of the actual display image are more in line with the display parameters of conventional display devices, thus improving the display effect of multi-view cameras.
[0045] For example, the image acquisition device can be a monocular camera. The monocular camera acquires images to obtain raw captured images, from which the actual display area can be selected as the area of interest for display. For instance, when the monitoring area of the monocular camera is large, directly displaying the raw captured image cannot display the image details well, affecting the user's observation of the image details. Therefore, the actual display area can be selected from the raw captured image to improve the display effect of image details.
[0046] In some implementations, the actual displayed image can be obtained based on at least one of the following: the position of the target object contained in the original captured image and the display parameters of the display device that displays the actual image. The display parameters of the display device include, but are not limited to, the width and height of the display area and the display resolution.
[0047] For example, the display device is a user terminal. The user terminal sends a video stream retrieval request to the control terminal. The control terminal responds to the video stream retrieval request to obtain the original captured image from the image acquisition device and selects the actual display image from the original captured image so that the user terminal can display the actual display image.
[0048] Optionally, when displaying the actual screen, video overlay technology (On Screen Display, OSD) is used to display image overlay information, such as time information, parameter information of the image acquisition device, etc.
[0049] Step S220: Calculate the attitude change range based on the position of the actual displayed image in the original acquired image.
[0050] Since the display device displays the actual screen, and the area of the actual screen is smaller than the area of the original captured screen, it indicates that some areas of the original captured screen are not displayed. These undisplayed areas can be divided into variable areas, while the area corresponding to the actual screen in the original captured screen can be divided into immutable areas.
[0051] The movable and immovable areas in the original captured image are determined by the position of the actual displayed image in the original captured image, and then the attitude change range of the image acquisition device is calculated based on the movable and immovable areas.
[0052] For example, the image acquisition device is a camera with a pan-tilt unit (PTZ), and the attitude change range can be the rotation range of the PTG of the image acquisition device, such as the horizontal rotation range and the vertical rotation range.
[0053] Step S230: Perform attitude change based on the attitude change range, and adjust the position of the actual display screen in the original acquisition screen during the attitude change process.
[0054] The image acquisition device is controlled to change its posture according to the posture change range, so as to expand the image acquisition range of the image acquisition device and adjust the position of the actual display screen in the original acquisition screen during the posture change process to ensure stable display of the actual display screen.
[0055] For example, please see Figure 5 , Figure 5 This is a schematic diagram illustrating an exemplary embodiment of the present application, such as... Figure 5As shown, the image acquisition device is a multi-view camera with a pan-tilt unit (PTZ). The attitude change range can be the horizontal rotation range of the PTZ. The original acquired image is a stitched image. At time T1, the original acquired image is stitched image 1. The actual display image is selected from stitched image 1. At this time, based on the position of the actual display image in the original acquired image, the attitude change range of the image acquisition device is calculated, including the left turn angle 'a' and the right turn angle 'b'. At time T2, the attitude change performed by the image acquisition device is a left turn based on the left turn angle 'a'. After the attitude change, the original acquired image is stitched image 2. The actual display image is selected from stitched image 2. At time T3, the attitude change performed by the image acquisition device is a right turn based on the right turn angle 'a+b'. After the attitude change, the original acquired image is stitched image 3. The actual display image is selected from stitched image 3.
[0056] in, Figure 5 The content of the actual display images selected from each stitched frame can be the same or different. For example, the actual display image is determined based on the position of the target object in the original captured image. If the target object does not move, the content of the actual display images selected from each stitched frame is the same, and the calculated attitude change range is fixed. However, if the target object moves, in order to track the target object, the content of the actual display images selected from each stitched frame will be different. That is, the immovable area corresponding to the actual display image will move with the target object to keep the target object always in the preset position of the immovable area, such as ensuring that the target object is always in the center of the immovable area. In this case, the calculated attitude change range is dynamic.
[0057] The following section will further explain the steps for selecting the actual display screen:
[0058] In some implementations, acquiring the original captured image and selecting the actual display image from the original captured image includes: determining the target object contained in the original captured image; determining the actual display image area based on the position of the target object in the original captured image; and obtaining the actual display image based on the actual display image area.
[0059] The target objects include, but are not limited to, pedestrians, vehicles, and animals; this application does not limit them.
[0060] Based on the position of the target object in the original captured image, the actual display area is determined. For example, the width and height of the actual display area are determined based on the area occupied by the target object. Then, based on the position coordinates of the target object in the original captured image, the coordinates of the width and height of the actual display area are determined. Finally, the actual display image is obtained based on the width and height of the actual display area and its coordinates to ensure the display effect of the target object in the actual display image.
[0061] In addition, if the target object is not present in the original captured image, the default area of the original captured image can be used as the actual display area.
[0062] Optionally, the actual display screen contains image overlay information; the movement information of the target object in the original acquisition screen is obtained; the position of the actual display screen in the original acquisition screen is adjusted based on the movement information, and the position of the image overlay information in the original acquisition screen is adjusted based on the movement information.
[0063] If the target object is moving, it needs to be tracked and displayed. The position of the actual display screen in the original captured screen is adjusted in real time according to the movement information of the target object. At the same time, the position of the image overlay information in the original captured screen is also updated in real time to ensure that the image overlay information is in a fixed position in the actual display screen and improve the display effect.
[0064] For example, please see Figure 6 , Figure 6 This is a schematic diagram illustrating the adjustment of the actual display screen as an exemplary embodiment of this application, such as... Figure 6 As shown, the image acquisition device is a multi-view camera with a pan-tilt-zoom (PTZ) unit. The attitude change range can be the horizontal rotation range of the PTZ unit. At time T4, actual display image 1 is obtained based on the position of the target object in the original acquired image. At time T5, the target object moves to the right, and the actual display image also needs to move to the right with the target object, so actual display image 2 is obtained based on the position of the target object in the original acquired image. At time T6, the target object moves to the left, and actual display image also needs to move to the left with the target object, so actual display image 3 is obtained based on the position of the target object in the original acquired image. During the movement of the actual display images, the image overlay information also needs to move with the actual display images, so that the moved image overlay information is in a fixed position in the moved actual display image.
[0065] In some implementations, the number of target objects is greater than one; determining the actual display screen area based on the position of the target object in the original captured image includes: calculating the area width and height parameters based on the position of each target object in the original captured image; and dividing the original captured image into actual display screen areas based on the area width and height parameters and the position of each target object in the original captured image.
[0066] If the original captured image contains two or more target objects, the width and height parameters of the region can be calculated based on the position of each target object in the original captured image. The calculated width and height of the region ensure that each target object is covered at the same time. Then, based on the width and height parameters of the region and the position of each target object in the original captured image, the actual display area is divided in the original captured image, so that multiple target objects can be displayed at the same time, improving the display effect of the actual display image.
[0067] In some implementations, the actual displayed screen can be flexibly selected by the user. For example, in response to a screen selection operation performed by the user, the display device enters a screen selection interface, which allows selection of the actual displayed screen. This screen selection interface may pre-display all the content of the original captured screen, and the actual displayed screen is determined based on the user's input of the actual displayed screen selection operation. This actual displayed screen selection operation may include the input of the width and height, and the position of the width and height of the actual displayed screen. Alternatively, if the screen selection interface pre-displays the content of an initial actual displayed screen, the content of the initial actual displayed screen can be modified by the user's input of a screen movement operation. For example, if the user inputs a leftward movement command, the initial actual displayed screen is moved to the left in the original captured screen to obtain the modified initial actual displayed screen content. In response to the user's input of a screen confirmation command, the current screen content is used as the actual displayed screen.
[0068] The following section further explains the calculation steps for the attitude change range:
[0069] In some implementations, the attitude change range is calculated based on the position of the actual displayed image in the original captured image, including: obtaining a reference parameter item in the actual displayed image and obtaining an associated parameter item in the original captured image corresponding to the reference parameter item; obtaining the position coordinates of the reference parameter item in the original captured image based on the position of the actual displayed image in the original captured image; calculating the distance between the position coordinates of the associated parameter item in the original captured image and the position coordinates of the reference parameter item; and obtaining the attitude change range based on the distance.
[0070] The reference parameters include, but are not limited to, the edges of the actual displayed image and reference points within the actual displayed image. The associated parameters in the original captured image correspond to the reference parameters.
[0071] For example, obtaining the reference parameter items in the actual display screen includes: determining the attitude-changeable parameter items; and obtaining the reference parameter items in the actual display screen that are associated with the attitude-changeable parameter items.
[0072] For example, an image acquisition device is a camera with a pan-tilt unit (PTZ), which can rotate horizontally and vertically. That is, the image acquisition device's attitude changeable parameters include left rotation, right rotation, up rotation, and down rotation. Furthermore, as... Figure 7 As shown, the reference parameter associated with left rotation is edge a1 of the actual displayed screen, the reference parameter associated with right rotation is edge b1 of the actual displayed screen, the reference parameter associated with up rotation is edge c1 of the actual displayed screen, and the reference parameter associated with down rotation is edge d1 of the actual displayed screen.
[0073] Then, obtain the associated parameter items corresponding to the baseline parameter items in the original acquired image. For example... Figure 7 As shown, in the original captured image, the associated parameter item corresponding to edge a1 is edge a2, the associated parameter item corresponding to edge b1 is edge b2, the associated parameter item corresponding to edge c1 is edge c2, and the associated parameter item corresponding to edge d1 is edge d2.
[0074] Based on the actual position of the displayed image within the original acquisition image, the position coordinates of each reference parameter item within the original acquisition image are obtained. The distance between the position coordinates of the associated parameter item in the original acquisition image and the position coordinates of the reference parameter item is calculated, thereby obtaining the attitude change range. For example, as follows... Figure 7 As shown, the attitude change range includes the left rotation range, the right rotation range, the up rotation range, and the down rotation range. The distance between edge a1 and edge a2 is D1, which indicates that the left rotation range of the image acquisition device is D1. The distance between edge b1 and edge b2 is D2, which indicates that the right rotation range of the image acquisition device is D2. The distance between edge c1 and edge c2 is D3, which indicates that the up rotation range of the image acquisition device is D3. The distance between edge d1 and edge d2 is D4, which indicates that the down rotation range of the image acquisition device is D4.
[0075] Once the attitude change range of the image acquisition device is obtained, the attitude of the image acquisition device can be changed according to the attitude change range to expand the image acquisition range.
[0076] The following section will further explain the steps involved in implementing the attitude change:
[0077] In some implementations, the attitude change is performed based on the attitude change range, and the position of the actual display screen in the original acquisition screen is adjusted during the attitude change process, including: acquiring the image display content in the actual display screen; acquiring the position migration amount of the image display content relative to the original acquisition screen during the attitude change process; and adjusting the position of the actual display screen in the original acquisition screen based on the position migration amount.
[0078] Among them, the position shift is used to characterize the offset of the image content displayed in the actual display screen relative to the original captured screen.
[0079] For example, each original image frame corresponding to the original acquisition screen during the attitude change execution is obtained, and the position of the actual displayed screen in each original image frame is obtained according to the position migration amount of the image display content relative to each original image frame.
[0080] For example, before the attitude change, the image content displayed in the actual display screen is taken as the target display content. The initial position of this target display content in the original captured image before the change is calculated. For instance, a reference object in the target display content is obtained, and its position in the original captured image before the change is used as the initial position. During the attitude change process, multiple original image frames are obtained sequentially. The current original image frame is taken as the target image frame, and the position of the target display content in the target image frame is taken as the change position. For instance, the position of the reference object in the target image frame is taken as the change position. Then, the distance between the change position and the initial position is calculated to obtain the position migration amount. The position of the actual display screen in the target image frame is adjusted according to this position migration amount.
[0081] In addition, if the actual displayed image contains image overlay information, the position of the image overlay information in the original captured image is adjusted based on the position migration amount.
[0082] During the posture change process, the position of the actual display screen and the image overlay information is updated in real time to ensure that users can observe stable screen content and improve the display effect of the actual display screen.
[0083] The image acquisition method provided in this application acquires the original captured image, selects the actual display image from the original captured image to improve the display effect of image details, calculates the attitude change range based on the position of the actual display image in the original captured image, and performs attitude changes based on the attitude change range to expand the image acquisition range of the image acquisition device, that is, to expand the selection range of the actual display image, improve the flexibility of image acquisition, and adjust the position of the actual display image in the original captured image during the attitude change process so that the actual display image can be displayed stably, ensuring that the user can observe stable image content and improve the display effect of the actual display image.
[0084] Figure 8 This is a block diagram illustrating an image acquisition device according to an exemplary embodiment of this application. Figure 8 As shown, the exemplary image acquisition device 800 includes: an image selection module 810, a change range calculation module 820, and a posture change module 830. Specifically:
[0085] The image selection module 810 is used to acquire the original captured image and select the actual display image from the original captured image. The area of the actual display image is smaller than the area of the original captured image.
[0086] The change range calculation module 820 is used to calculate the attitude change range based on the position of the actual displayed screen in the original acquired screen;
[0087] The attitude change module 830 is used to change the attitude based on the attitude change range and adjust the position of the actual display screen in the original acquisition screen during the attitude change process.
[0088] In the aforementioned exemplary image acquisition device, by acquiring the original captured image, selecting the actual display image from the original captured image, the display effect of image details is improved. Based on the position of the actual display image in the original captured image, the attitude change range is calculated, and attitude change is performed based on the attitude change range to expand the image acquisition range of the image acquisition device, improve the flexibility of image acquisition, and adjust the position of the actual display image in the original captured image during the attitude change process so that the actual display image can be displayed stably, ensuring that the user can observe stable image content and improve the display effect of the actual display image.
[0089] The functions of each module can be found in the embodiment of the image acquisition method, and will not be repeated here.
[0090] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. The electronic device 900 includes a memory 901 and a processor 902. The processor 902 is used to execute program instructions stored in the memory 901 to implement the steps in any of the above-described image acquisition method embodiments. In a specific implementation scenario, the electronic device 900 may include, but is not limited to, a microcomputer or a server. In addition, the electronic device 900 may also include mobile devices such as laptops and tablets, which are not limited here.
[0091] Specifically, processor 902 controls itself and memory 901 to implement the steps in any of the above-described image acquisition method embodiments. Processor 902 can also be referred to as a Central Processing Unit (CPU). Processor 902 may be an integrated circuit chip with signal processing capabilities. Processor 902 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 902 can be implemented using integrated circuit chips.
[0092] Please see Figure 10 , Figure 10 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 1000 stores program instructions 1010 that can be executed by a processor. The program instructions 1010 are used to implement the steps in any of the above-described image acquisition method embodiments.
[0093] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0094] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0096] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. An image acquisition method, characterized in that, The method includes: The original captured image is acquired, and the actual display image is selected from the original captured image. The actual display image is the image displayed on the display device, and the area of the actual display image is smaller than the area of the original captured image. Based on the position of the actual displayed image in the original captured image, the attitude change range of the image acquisition device is calculated. The attitude change range is the pan-tilt rotation range of the image acquisition device. The steps for calculating the attitude change range include: dividing the undisplayed area in the original captured image into a movable area and the area corresponding to the actual displayed image into a fixed area; calculating the attitude change range of the image acquisition device based on the movable area and the fixed area; or, obtaining a reference parameter item in the actual displayed image and obtaining an associated parameter item corresponding to the reference parameter item in the original captured image; obtaining the position coordinates of the reference parameter item in the original captured image based on the position of the actual displayed image in the original captured image; calculating the distance between the position coordinates of the associated parameter item and the position coordinates of the reference parameter item in the original captured image; and obtaining the attitude change range based on the distance. Based on the attitude change range, the image acquisition device is controlled to change its attitude and acquire the image display content in the actual display screen. During the attitude change process, the position migration amount of the image display content relative to the original acquisition screen obtained during the attitude change process is acquired. Based on the position migration amount, the position of the actual display screen in the original acquisition screen obtained during the attitude change process is adjusted so that the actual display screen is displayed stably.
2. The method according to claim 1, characterized in that, The step of obtaining the reference parameter items in the actual display screen includes: Determine the attitude-changeable parameters; Obtain the reference parameter item associated with the attitude changeable parameter item in the actual display screen.
3. The method according to claim 1, characterized in that, The actual displayed image contains image overlay information; after adjusting the position of the actual displayed image in the original acquired image based on the position migration amount, the method further includes: The position of the image overlay information in the original captured image is adjusted based on the position migration amount.
4. The method according to any one of claims 1 to 3, characterized in that, The process of acquiring the original captured image and selecting the actual display image from the original captured image includes: Identify the target objects contained in the original captured image; Based on the position of the target object in the original captured image, the actual display area is determined; The actual display screen is obtained based on the actual display screen area.
5. The method according to claim 4, characterized in that, The actual displayed image contains image overlay information; the method further includes: Acquire the movement information of the target object in the original captured image; The position of the actual displayed image in the original captured image is adjusted based on the motion information, and the position of the image overlay information in the original captured image is adjusted based on the motion information.
6. The method according to claim 4, characterized in that, The number of target objects is greater than one; determining the actual display screen area based on the position of the target objects in the original captured image includes: Calculate the width and height parameters of the region based on the position of each target object in the original captured image; Based on the region's width and height parameters and the position of each target object in the original captured image, the actual display area is divided in the original captured image.
7. An electronic device, characterized in that, The electronic device includes a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the steps of the method as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions that can be executed by a processor to implement the steps of the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Target tracking method and device for pan-tilt camera, medium and electronic equipment
CN114764817A
