Camera equipment control method and device, equipment and storage medium

By identifying and adjusting the parameters of the bolt fisheye lens and the telephoto lens of the ball camera, the problem of restricted monitoring range caused by the structural influence of the bolt and ball camera is solved, and a more efficient monitoring effect is achieved.

CN119836785APending Publication Date: 2025-04-15SHENZHEN QIHOO INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202480002896.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The commonly used cameras of bolts and ball machines are affected by the structure of bolts or ball machines, resulting in limited monitoring range.

Method used

By obtaining the picture taken by the bolt fisheye lens, identifying the target to be focused, and controlling the ball telephoto lens to capture a spatial compressed picture containing the details of the target to be focused. Based on the spatial compression screen, analyze the movement behavior of the target to be focused, and adjust the shooting angle and monitoring angle of the bolt fisheye lens and the ball telephoto lens to improve monitoring efficiency.

Benefits of technology

By adjusting the lens parameters, avoiding the background when analyzing the behavior characteristics of the target to be focused, accurately obtaining the motion behavior of the target to be focused, and improving the monitoring efficiency of the camera equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119836785A_ABST
    Figure CN119836785A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device of camera equipment, equipment and a storage medium, relates to the technical field of monitoring control, and discloses the control method of the camera equipment, which is applied to a control module in a camera, and the camera comprises a gun camera fisheye lens and a dome camera telephoto lens. Comprising the following steps: after a shot picture shot by a fisheye lens of a gun camera is obtained, identifying a to-be-focused target from the shot picture; controlling a telephoto lens of the dome camera to shoot a space compression picture containing detail features of the to-be-focused target; analyzing the motion behavior of the to-be-focused target based on the space compression picture; and based on the motion behavior, adjusting a shooting angle of a fisheye lens of the gun camera, and adjusting a monitoring angle and a monitoring breadth of a telephoto lens of the dome camera. Namely, the motion behavior of the to-be-focused target is analyzed according to the detail features contained in the space compression picture, and the fisheye lens of the gun camera and the telephoto lens of the dome camera are adjusted according to the motion behavior, so that the to-be-focused target is prevented from being separated from the background when tracked, and the monitoring efficiency of the camera equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of monitoring control technology, and in particular to a control method, device, equipment and storage medium for a camera device. Background Art

[0002] A camera is a video input device that is widely used in various fields. It is used as a monitoring device to ensure the safety of the scene that needs to be monitored.

[0003] Currently, surveillance cameras are often divided according to the surveillance range and surveillance clarity. Therefore, surveillance cameras are combined with telephoto cameras through the appearance structure of a gun camera to obtain a larger and clearer surveillance picture as possible. In order to obtain a clearer surveillance picture, some cameras also often use ball cameras for monitoring. Due to the scenes with higher requirements for surveillance pictures, gun cameras and ball cameras are often combined for use. However, the commonly used combination of gun cameras and ball cameras is often affected by the characteristics of the lens itself, resulting in reduced surveillance efficiency.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art.

[0005] Technical issues

[0006] The main purpose of the present application is to provide a control method for a camera device, aiming to solve the technical problem that the camera of a common combination of a gun camera and a ball camera is often affected by the structure of the gun camera or the ball camera, resulting in a limited monitoring range.

[0007] Technical Solutions

[0008] To achieve the above object, the present application proposes a method for controlling a camera device, the method comprising:

[0009] After acquiring the picture taken by the gun fisheye lens, identifying the target to be focused from the picture;

[0010] Control the telephoto lens of the ball camera to shoot a spatially compressed image containing detailed features of the target to be focused;

[0011] Analyzing the motion behavior of the target to be focused based on the spatially compressed image;

[0012] Based on the movement behavior, the shooting angle of the gun camera fisheye lens is adjusted, and the monitoring angle and monitoring width of the ball camera telephoto lens are adjusted.

[0013] In one embodiment, before the step of controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detail features of the target to be focused, the step further includes:

[0014] Filtering a target image set containing a target to be focused from the frame images of the shooting picture;

[0015] Identify the specific position of the target to be focused in the shooting picture from the target image set, so as to control the telephoto lens of the ball camera based on the specific position;

[0016] The step of controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detail features of the target to be focused comprises:

[0017] Determine the viewing angle of the telephoto lens of the ball camera that needs to be adjusted based on the specific position;

[0018] According to the visual angle, controlling the telephoto lens of the ball camera to take a close-up picture of the target to be focused;

[0019] Performing clarity analysis on the close-up image;

[0020] If the clarity of the close-up picture meets the preset clarity requirement, it is determined that the close-up picture is the spatially compressed picture containing the detail features of the target to be focused.

[0021] In one embodiment, the step of performing clarity analysis on the close-up picture includes:

[0022] Performing frequency domain analysis on the close-up picture to determine the image frequency of the target to be focused in the close-up picture;

[0023] Preliminarily determining, based on the image frequency, an image region in the close-up image whose clarity does not meet a preset clarity requirement;

[0024] Performing pixel analysis on the image region to determine whether features in the image region will damage the overall clarity of the close-up image;

[0025] If the image area does not destroy the overall clarity of the close-up picture, determining that the close-up picture meets the preset clarity requirement;

[0026] If the image area will destroy the overall clarity of the close-up picture, it is determined that the close-up picture does not meet the preset clarity requirement.

[0027] In one embodiment, the step of analyzing the motion behavior of the target to be focused based on the spatially compressed picture includes:

[0028] Extracting the motion features of the target to be tracked from the spatially compressed image;

[0029] Identifying, from the motion features, movement features of a portion of the target to be focused that is used for movement, and inertia features of the target to be focused during the movement process;

[0030] Determining the movement expectation of the target to be focused based on the movement feature;

[0031] Determining the authenticity of the motion expectation based on the inertial characteristics;

[0032] If it is determined that the expected motion is real, predicting the motion behavior of the target to be focused based on the movement feature and the inertia feature;

[0033] If it is determined that the movement expected by the movement is not real, determining the real intention of the target to be focused based on the inertial feature;

[0034] Based on the real intention, the movement behavior of the target to be focused is predicted.

[0035] In one embodiment, the step of analyzing the motion behavior of the target to be focused based on the spatially compressed picture includes:

[0036] Extracting the motion features of the target to be tracked from the spatially compressed image;

[0037] Identifying, from the motion features, movement features of a portion of the target to be focused that is used for movement, and inertia features of the target to be focused during the movement process;

[0038] Determining the movement expectation of the target to be focused based on the movement feature;

[0039] Determining the authenticity of the motion expectation based on the inertial characteristics;

[0040] If it is determined that the expected motion is real, predicting the motion behavior of the target to be focused based on the movement feature and the inertia feature;

[0041] If it is determined that the movement expected by the movement is not real, determining the real intention of the target to be focused based on the inertial feature;

[0042] Based on the real intention, the movement behavior of the target to be focused is predicted.

[0043] In one embodiment, after acquiring the picture taken by the gun fisheye lens, the step of identifying the target to be focused from the picture includes:

[0044] After obtaining the picture taken by the gun fisheye lens, determining the focus area of ​​the target to be tracked from the picture;

[0045] If there are multiple focus areas, determining a focus area with the shortest focal length from the focus areas as a target focus area;

[0046] If a plurality of focus targets are identified in the target focus area, each of the focus targets is determined as a target to be focused.

[0047] In one embodiment, the step of adjusting the shooting angle of the gun camera fisheye lens and adjusting the monitoring angle and monitoring width of the ball camera telephoto lens based on the movement behavior includes:

[0048] Predicting the motion trajectory of the target to be focused based on the motion behavior;

[0049] Based on the motion trajectory, predicting a predicted position of the target to be focused in the shooting picture within a preset time period;

[0050] Determining adjustment parameters of the telephoto lens of the ball camera and adjustment data of the fisheye lens of the bolt camera according to the predicted position;

[0051] Adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the adjustment parameters;

[0052] The shooting angle of the gun fisheye lens is adjusted according to the adjustment data.

[0053] In addition, to achieve the above-mentioned purpose, the present application also proposes a control device for a camera device, which is applied to a control module in a camera, wherein the camera includes a bolt-type fisheye lens and a ball-type telephoto lens, and the device includes:

[0054] An identification module, used to identify a target to be focused from a picture taken by the gun fisheye lens after acquiring the picture taken by the gun fisheye lens;

[0055] A control module, used for controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detailed features of the target to be focused;

[0056] A motion analysis module, used for analyzing the motion behavior of the target to be focused based on the spatial compression picture;

[0057] The adjustment module is used to adjust the shooting angle of the gun camera fisheye lens and the monitoring angle and monitoring width of the ball camera telephoto lens based on the movement behavior.

[0058] In addition, to achieve the above-mentioned purpose, the present application also proposes a control device for a camera device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for the camera device as described above.

[0059] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method of the camera device as described above are implemented.

[0060] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the control method of the camera device as described above are implemented.

[0061] Beneficial Effects

[0062] By setting the camera equipment to a gun-type fisheye lens and a ball-type telephoto lens, the gun-type fisheye lens can be used to obtain a wider range of shooting images. After the target to be focused is identified in the shooting image, the ball-type telephoto lens is used to shoot a spatially compressed image containing the detailed features of the target to be focused, so as to facilitate the acquisition of more detailed features of the target to be focused from the spatially compressed image. Since the gun-type fisheye lens has a wide shooting angle and high-quality shooting images can be obtained through the fisheye lens, the shooting image shot by the gun-type fisheye lens can be used as the detailed background of the spatially compressed image shot by the ball-type telephoto lens. Since the spatially compressed image that can be shot by the ball-type telephoto lens has more detailed features, the movement behavior of the target to be focused can be analyzed according to the detailed features contained in the spatially compressed image, and the gun-type fisheye lens and the ball-type telephoto lens can be adjusted according to the movement behavior to avoid being out of the background when analyzing the behavior characteristics of the target to be focused, and to avoid the inability to accurately obtain the movement behavior of the target to be focused based on the shot image. Therefore, the monitoring efficiency of the camera equipment is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] 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.

[0064] 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.

[0065] Figure 1 A flowchart diagram of a control method for a camera device according to an embodiment of the present invention;

[0066] Figure 2 A shooting reference picture provided for the control method of the camera device of the present application;

[0067] Figure 3A flowchart diagram of a second embodiment of a method for controlling a camera device of the present application;

[0068] Figure 4 A flowchart diagram of a third embodiment of a method for controlling a camera device of the present application;

[0069] Figure 5 A flowchart diagram of a fourth embodiment of a method for controlling a camera device of the present application;

[0070] Figure 6 A flowchart diagram of a fifth embodiment of a method for controlling a camera device of the present application;

[0071] Figure 7 This is a schematic diagram of the module structure of the control device of the camera device according to the embodiment of the present application;

[0072] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the control method of the camera device in the embodiment of the present application.

[0073] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings.

[0074] Embodiments of the present invention

[0075] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0076] In order to better understand the technical solution of the present application, the following will be described in detail in conjunction with the drawings and specific implementation methods of the specification. The main solution of the embodiment of the present application is: a control module of the camera, the camera includes a gun-type fisheye lens and a ball-type telephoto lens, after the control module obtains the shooting picture taken by the gun-type fisheye lens, it identifies the target to be focused from the shooting picture; controls the ball-type telephoto lens to shoot a spatially compressed picture containing the detailed features of the target to be focused; analyzes the movement behavior of the target to be focused based on the spatially compressed picture; based on the movement behavior, adjusts the shooting angle of the gun-type fisheye lens, and adjusts the monitoring angle and monitoring breadth of the ball-type telephoto lens.

[0077] In this embodiment, for the convenience of description, the following description is made with the control module of the camera as the execution subject.

[0078] Since the existing technology is often divided according to the monitoring range and monitoring clarity, the camera used for monitoring is a combination of a gun camera and a telephoto camera to obtain a larger and clearer monitoring picture as possible. In order to obtain a clearer monitoring picture, some cameras also often use a ball camera for monitoring. Due to the scenes with higher requirements for monitoring pictures, gun cameras and ball cameras are often combined for use. However, the commonly used combination of gun cameras and ball cameras is often affected by the characteristics of the lens itself, resulting in reduced monitoring efficiency.

[0079] The present application provides a solution. By setting the camera equipment to a gun-type fisheye lens and a dome-type telephoto lens, the gun-type fisheye lens can be used to obtain a wider range of shooting images. After the target to be focused is identified in the shooting image, the dome-type telephoto lens is used to shoot a spatially compressed image containing the detailed features of the target to be focused, so as to facilitate the acquisition of more detailed features of the target to be focused from the spatially compressed image. Since the gun-type fisheye lens has a wide shooting angle and a high-quality shooting image can be obtained through the fisheye lens, the shooting image shot by the gun-type fisheye lens can be used as the detailed background of the spatially compressed image shot by the dome-type telephoto lens. Since the spatially compressed image that can be shot by the dome-type telephoto lens has more detailed features, the movement behavior of the target to be focused can be analyzed according to the detailed features contained in the spatially compressed image, and the gun-type fisheye lens and the dome-type telephoto lens can be adjusted according to the movement behavior to avoid being out of the background when analyzing the behavior characteristics of the target to be focused, and to avoid the inability to accurately obtain the movement behavior of the target to be focused based on the shot image. Therefore, the monitoring efficiency of the camera equipment is improved.

[0080] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a camera control module, etc. The following takes the camera control module as an example to illustrate this embodiment and the following embodiments.

[0081] Based on this, the embodiment of the present application provides a control method for a camera device, which is applied to a control module of a camera, wherein the camera includes a gun-type fisheye lens and a ball-type telephoto lens, Figure 1 , Figure 1 This is a flow chart of the first embodiment of the control method of the camera device of the present application. In this embodiment, the control method of the camera device includes steps S10 to S40:

[0082] Step S10, after acquiring the picture taken by the gun fisheye lens, identifying the target to be focused from the picture;

[0083] It should be noted that the gun-type camera may be a camera device with a rectangular appearance, usually equipped with a C or CS type lens interface. The fisheye lens may be an extreme ultra-wide-angle lens with a short focal length and a wide viewing angle, capable of capturing an extremely wide scene. The gun-type fisheye lens may be a fisheye lens with a rectangular appearance. The captured image may be a video image or a picture image captured by the gun-type fisheye lens. The target to be focused may be a moving object such as an animal, a vehicle or a person.

[0084] It is understandable that since the gun-type fisheye lens can capture images in a horizontal range of 180 degrees, it is necessary to use a gun-type fisheye lens to obtain a wider monitoring screen within the monitored scene, so as to obtain more motion features of the target to be focused from a monitoring screen.

[0085] It is understandable that since the gun camera ensures the continuity and effectiveness of monitoring and can provide clear images even in a completely dark environment, and the fisheye lens has a high light transmittance and can obtain better image quality in low-light conditions, therefore, combining the gun camera with the fisheye lens can make the camera equipment suitable for any scene.

[0086] Step S20, controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detail features of the target to be focused;

[0087] It should be noted that the ball camera may be a spherical camera. The telephoto lens may be a long-shot lens or a telephoto lens, which can bring a distant scene closer to make the details more clearly visible. The detail features may be more features of the target to be focused. For example, if the target to be focused is a person, the detail features may be facial features, hair features, clothing features, or footstep features. The space compression picture may be a picture taken after the space is compressed by a telephoto lens.

[0088] It is understandable that although the fisheye lens can improve the image quality, due to the wide shooting range of the fisheye lens, the detailed features of the target to be focused cannot be obtained. Therefore, a telephoto lens of the ball camera is set to capture the detailed features of the target to be focused, so as to achieve a wider range of shooting pictures and obtain pictures with more detailed features.

[0089] It is understandable that since the ball camera can support high-definition or even ultra-high-definition video recording, high-resolution images can provide more detailed information, which helps to improve the accuracy and effectiveness of monitoring, and the telephoto lens can easily capture details at a distance, and can take clear pictures without getting close to the subject. Combining the ball camera with the telephoto lens makes the pictures taken by the telephoto lens have high resolution, so that the features in the pictures taken by the telephoto lens can be displayed more clearly.

[0090] Step S30, analyzing the movement behavior of the target to be focused based on the spatially compressed image;

[0091] It should be noted that the motion action may be the motion trend of the target to be focused.

[0092] It is understandable that in order to enable the camera device to accurately track the target to be focused, it is necessary to analyze the movement behavior of the target to be focused based on the spatial compression picture.

[0093] It is understandable that, since the spatial compression picture contains a large number of detailed features of the target to be focused, the movement behavior of the target to be focused can be analyzed more accurately based on the spatial compression picture.

[0094] Step S40, based on the movement behavior, adjust the shooting angle of the gun camera fisheye lens, and adjust the monitoring angle and monitoring width of the ball camera telephoto lens.

[0095] It should be noted that the shooting angle can be the physical rotation angle of the gun-type fisheye lens or the shooting angle of the gun-type fisheye lens. The monitoring angle can be the physical rotation angle of the telephoto lens of the ball camera or the shooting angle of the telephoto lens of the ball camera. The monitoring width can be the focal length of the telephoto lens of the ball camera. The shorter the focal length, the wider the monitoring range; the longer the focal length, the shorter the monitoring range and the more detailed features.

[0096] It is understandable that in order to accurately track the target to be focused, the gun-type fisheye lens and the ball-type telephoto lens can be adjusted according to the movement behavior of the target to be focused, so that the gun-type fisheye lens can accurately provide a reference background for tracking the target to be focused, and the ball-type telephoto lens can obtain more detailed features of the target to be focused, so as to accurately identify the target to be focused according to the detailed features, so as to avoid losing the target, thereby improving the tracking efficiency of the target to be focused.

[0097] In the specific implementation, refer to Figure 2 , Figure 2 The picture in the upper middle is the picture taken by the bolt fisheye lens. Figure 2 The picture in the lower middle is the spatial compression picture taken by the telephoto lens of the ball camera.

[0098] The present embodiment provides a control method for a camera device. By setting the camera device to a gun-type fisheye lens and a dome-type telephoto lens, the gun-type fisheye lens can be used to obtain a wider range of shooting images. After the target to be focused is identified in the shooting image, the dome-type telephoto lens is used to shoot a spatially compressed image containing detailed features of the target to be focused, so as to facilitate obtaining more detailed features of the target to be focused from the spatially compressed image. Since the gun-type fisheye lens has a wide shooting angle and a high-quality shooting image can be obtained through the fisheye lens, the shooting image shot by the gun-type fisheye lens can be used as the detailed background of the spatially compressed image shot by the dome-type telephoto lens. Since the spatially compressed image that can be shot by the dome-type telephoto lens has more detailed features, the movement behavior of the target to be focused can be analyzed according to the detailed features contained in the spatially compressed image, and the gun-type fisheye lens and the dome-type telephoto lens can be adjusted according to the movement behavior to avoid being out of the background when analyzing the behavior features of the target to be focused, and to avoid the inability to accurately obtain the movement behavior of the target to be focused based on the shot image. Therefore, the monitoring efficiency of the camera device is improved.

[0099] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 Before step S20, the control method of the camera device further includes steps S21 to S22:

[0100] Step S21, screening a target image set containing a target to be focused from the frame images of the shooting picture;

[0101] Step S22, identifying the specific position of the target to be focused in the shooting picture from the target image set, so as to control the telephoto lens of the ball camera based on the specific position.

[0102] It can be understood that by automatically screening and identifying the target to be focused from the frame image of the shooting picture, and by including the target image set, the position of the target to be focused in the shooting picture can be accurately determined. Since the background of the target to be focused in the shooting picture is fixed, and there is a certain proportional relationship between the shooting picture and the actual scene, the position of the target to be focused in the actual scene can be accurately determined by the position of the target to be focused in the shooting picture, and the telephoto lens of the ball camera can be accurately controlled according to the position, so that the telephoto lens of the ball camera can accurately track the target to be focused.

[0103] It is understandable that since the telephoto lens of the ball camera will blur the environmental information around the target to be focused when compressing the spatial distance between the lens and the target to be focused, in order to accurately and efficiently track the target to be focused, it is necessary to provide environmental information for the tracking of the target to be focused by using the shooting picture taken by the gun fisheye lens. Combining the pictures taken by the two lenses can improve the monitoring efficiency of the camera equipment.

[0104] Further, step S20 includes:

[0105] Determine the viewing angle of the telephoto lens of the ball camera that needs to be adjusted based on the specific position;

[0106] According to the visual angle, controlling the telephoto lens of the ball camera to take a close-up picture of the target to be focused;

[0107] Performing clarity analysis on the close-up image;

[0108] If the clarity of the close-up picture meets the preset clarity requirement, it is determined that the close-up picture is the spatially compressed picture containing the detail features of the target to be focused.

[0109] It should be noted that the viewing angle may be the field of view that can be captured by the lens. A close-up image may be an image that highlights the details of the target to be focused.

[0110] It is understandable that the specific position can enable the telephoto lens of the ball camera to quickly focus on the target to be focused. After taking a close-up picture of the target to be focused, in order to include more effective features in the spatial compression picture, it is necessary to perform clarity analysis on the close-up picture.

[0111] It can be understood that by automatically adjusting the viewing angle of the telephoto lens of the ball camera and accurately aiming at the target to be focused, high-quality close-up images can be captured to improve the efficiency and accuracy of monitoring. The close-up images are then analyzed for clarity and ensured to meet the preset clarity requirements to ensure that the acquired images have sufficient details and quality.

[0112] It is understandable that the process of automatically adjusting the lens viewing angle and clarity analysis can dynamically adjust the allocation of monitoring resources according to actual needs, prioritize attention to important targets, help to make more rational use of monitoring resources and avoid unnecessary waste.

[0113] Furthermore, the step of performing clarity analysis on the close-up picture includes:

[0114] Performing frequency domain analysis on the close-up picture to determine the image frequency of the target to be focused in the close-up picture;

[0115] Preliminarily determining, based on the image frequency, an image region in the close-up image whose clarity does not meet a preset clarity requirement;

[0116] Performing pixel analysis on the image region to determine whether features in the image region will damage the overall clarity of the close-up image;

[0117] If the image area does not destroy the overall clarity of the close-up picture, determining that the close-up picture meets the preset clarity requirement;

[0118] If the image area will destroy the overall clarity of the close-up picture, it is determined that the close-up picture does not meet the preset clarity requirement.

[0119] It should be noted that the image frequency can be an indicator of the intensity of grayscale changes in an image, reflecting how fast the grayscale value of a pixel changes in space.

[0120] It can be understood that by performing frequency domain analysis on close-up images, the high-frequency components in the image can be accurately identified. Since high-frequency components usually correspond to the details and edges of the image, the image areas in the close-up images whose clarity does not meet the clarity requirements can be accurately analyzed based on the image frequency.

[0121] It is understandable that although some areas are partially blurred, they will not affect the overall clarity. In order to reduce unnecessary processing, pixel analysis can be performed on the image area to determine whether its features will destroy the overall clarity, so as to reduce misjudgment.

[0122] Furthermore, the step of performing pixel analysis on the image area to determine whether the features in the image area will destroy the overall clarity of the close-up picture includes:

[0123] Analyzing the grayscale value of each pixel in the image area;

[0124] Determine the grayscale difference between the grayscale values ​​of adjacent pixels;

[0125] Extracting feature information contained in the image area based on the grayscale value;

[0126] Determining whether the feature information is a valid feature;

[0127] If the feature information is not a valid feature, it is determined that the feature in the image area will not destroy the overall clarity of the close-up picture; if the feature information is a valid feature, it is determined that the feature in the image area will destroy the overall clarity of the close-up picture.

[0128] It should be noted that effective features may be features useful for identifying and tracking a focused target.

[0129] It can be understood that by obtaining the grayscale value of each pixel in the image area, the brightness distribution of the pixels in the image area is understood, and then the grayscale value difference between adjacent pixels is calculated to identify the edges and details in the image. Areas with large grayscale differences usually represent edges or high-contrast details, so grayscale values ​​and grayscale differences are used to extract feature information in the image area, and effective features are screened from the feature information to remove interfering features in the features, so as to avoid mistaking insignificant noise or interference as features that affect clarity, and then by judging whether the feature information is a valid feature, the steps of image processing are reduced, thereby improving the efficiency and accuracy of image processing, and further improving the monitoring efficiency of the camera equipment.

[0130] Furthermore, the step of determining whether the feature information is a valid feature includes:

[0131] Determining whether the characteristic information is helpful in identifying the target to be focused;

[0132] If it is determined that there is help, determining that the feature information is a valid feature;

[0133] If it is determined that no help exists, it is determined that the feature information is not a valid feature.

[0134] It can be understood that by judging whether the characteristic information is helpful, feature information that is effective in identifying the target to be focused can be screened out, thereby reducing unnecessary calculations and processing and improving the efficiency and response speed of the system.

[0135] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , step S30 includes steps S31-S32:

[0136] Step S31, extracting the motion features of the target to be tracked from the spatial compression picture;

[0137] Step S32: predicting the movement behavior of the target to be focused based on the action feature.

[0138] It should be noted that the action features may be the swinging features of a person, the orientation features of a person, the swinging features of a person's clothes, the rotation features of a wheel, the footsteps features of an animal, the orientation features of an animal's hair, and the like.

[0139] It can be understood that by extracting the motion features of the target to be tracked from the spatially compressed image, the target's movement behavior can be more accurately identified and tracked, so as to effectively reduce misjudgments and missed judgments and improve the overall performance of the tracking system.

[0140] It can be understood that predicting the motion behavior of the target to be focused from the extracted motion features can also provide important reference information for subsequent tracking and analysis, which helps to predict the target's motion trajectory in advance.

[0141] Further, step S32 includes:

[0142] Identifying, from the motion features, movement features of a portion of the target to be focused that is used for movement, and inertia features of the target to be focused during the movement process;

[0143] Determining the motion authenticity of the target to be focused based on the movement feature and the inertia feature;

[0144] If it is determined that the movement of the target to be focused is real, the movement behavior of the target to be focused is predicted based on the movement feature and the inertia feature.

[0145] It should be noted that the motion authenticity can be the consistency between the motion trend of the target to be focused and the motion feature, that is, the motion feature is consistent with the inertia feature. The motion feature can be the feature of the target to be focused during its movement. The inertia feature can be the feature generated by inertia accompanying the movement. Since inertia is naturally generated during the movement and follows the motion trend, the motion trend of the target to be focused can be determined based on the inertia feature.

[0146] It can be understood that by analyzing the motion characteristics of the target, the main parts of the target's movement and its movement methods can be identified, such as the swinging of the limbs, the rotation of the torso, etc.; at the same time, by analyzing the inertial characteristics of the target during movement, the movement trend and stability of the target can be understood, and then through a comprehensive analysis of the target's movement characteristics and inertial characteristics, it can also be determined whether the target's movement conforms to its normal movement pattern and dynamic characteristics, and then determine the authenticity of its movement.

[0147] It is understandable that by filtering out false or unnatural motion features, the accuracy of the prediction results can also be improved.

[0148] Furthermore, the step of judging the motion authenticity of the target to be focused based on the movement feature and the inertial feature includes:

[0149] Determining the movement expectation of the target to be focused based on the movement feature;

[0150] The authenticity of the motion expectation is determined based on the inertial characteristics.

[0151] It should be noted that the motion expectation may be a motion trend determined according to the movement characteristics.

[0152] It can be understood that, since the actual movement trend of the target to be focused can be determined by the inertial feature, the authenticity of the movement of the target to be focused can be accurately judged by the movement expectation determined according to the movement feature and the inertial feature.

[0153] Furthermore, after the step of determining the motion authenticity of the target to be focused based on the movement feature and the inertial feature, the method further includes:

[0154] If it is determined that the movement of the target to be focused is not real, determining the real intention of the target to be focused based on the inertial feature;

[0155] Based on the real intention, the movement behavior of the target to be focused is predicted.

[0156] It is understandable that the analysis method of physical characteristics can provide a more reliable basis for prediction, thereby improving the accuracy of predictions about the target's future behavior. That is, by considering inertial characteristics, the target's behavior can be evaluated more comprehensively, thereby reducing the risk of misjudgment caused by misunderstanding the target's intentions.

[0157] Based on the above embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 5 , step S10 includes steps S11 to S13:

[0158] Step S11, after obtaining the shooting picture taken by the gun fisheye lens, determining the focus area of ​​the target to be tracked from the shooting picture;

[0159] Step S12, if there are multiple focus areas, determine the focus area with the shortest focal length from among the focus areas as the target focus area;

[0160] Step S13: identifying a target to be focused from the target focusing area.

[0161] It should be noted that the focus area can be an area in the picture that may be the target to be focused. For example, if there are multiple people in the same shooting picture, the area where each person is located can be understood as a focus area. The focal length can refer to the distance from the optical center of the lens to the imaging plane (such as the camera sensor or film).

[0162] It can be understood that by determining the focus area of ​​the target to be tracked from the picture taken by the gun fisheye lens, the potential target area can be quickly located, thereby improving the monitoring efficiency.

[0163] It is understandable that by comparing the focal lengths of multiple focus areas and selecting the focus area with the shortest focal length as the target focus area, the target can be identified and tracked more accurately, because the shorter the focal length, the closer the target is to the camera and the more potentially dangerous it is.

[0164] It can be understood that by identifying the target to be focused from the target focusing area, the focusing resources of the camera can be effectively utilized, and unnecessary focusing on unimportant areas can be avoided, thereby improving the resource utilization of the overall system.

[0165] Further, if a plurality of focus targets are identified in the target focus area, each of the focus targets is determined as a target to be focused.

[0166] Based on the above embodiments of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 6 , step S40 includes steps S1 to S5:

[0167] Step S1, predicting the motion trajectory of the target to be focused based on the motion behavior;

[0168] Step S2, predicting the predicted position of the target to be focused in the shooting picture within a preset time period based on the motion trajectory;

[0169] Step S3, determining adjustment parameters of the telephoto lens of the ball camera and adjustment data of the fisheye lens of the bolt camera according to the predicted position;

[0170] Step S4, adjusting the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the adjustment parameters;

[0171] Step S5, adjusting the shooting angle of the gun fisheye lens according to the adjustment data.

[0172] It should be noted that the adjustment parameters may be the focal length data, shooting angle data and the angle of physical rotation required for the telephoto lens of the ball camera. The adjustment data may be the angle of physical rotation required for the fisheye lens of the bolt camera.

[0173] It can be understood that by predicting the motion trajectory and predicted position of the target to be focused, the parameters of the camera can be prepared and adjusted in advance, so that clear shooting can be performed immediately when the target reaches the predicted position, further improving the response speed and shooting efficiency of the camera equipment.

[0174] It can be understood that by adjusting the monitoring angle and monitoring width of the telephoto lens of the ball camera and adjusting the shooting angle of the fisheye lens of the gun camera, it can be ensured that the target can be focused most accurately at any time to obtain high-quality images.

[0175] Further, step S3 includes:

[0176] Determine whether it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the predicted position, and determine whether it is necessary to adjust the shooting angle of the fisheye lens of the gun camera;

[0177] If the monitoring angle and monitoring width of the telephoto lens of the ball camera need to be adjusted, the adjustment parameters of the telephoto lens of the ball camera are determined according to the preset position;

[0178] And / or if the shooting angle of the gun fisheye lens needs to be adjusted, the adjustment data of the gun fisheye lens is determined according to the preset position.

[0179] It should be noted that the monitoring angle and shooting angle data correspond to the angle that the telephoto lens of the ball camera needs to physically rotate. The monitoring width corresponds to the focal length data. The shooting angle corresponds to the physical rotation angle that the gun-type fisheye lens needs to adjust.

[0180] It is understandable that by adjusting the monitoring angle and width, the monitoring area can be expanded to ensure that the target location is always within the monitoring range, and the telephoto lens can capture distant details. After adjustment, specific targets can be monitored more accurately and the monitoring effect can be improved. By optimizing the lens angle and width, blind spots in monitoring can be reduced to provide more comprehensive security protection.

[0181] Furthermore, the step of judging whether it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the predicted position includes:

[0182] Detecting a position difference between the predicted position and a current position, wherein the current position is a position of the target to be focused in the spatially compressed image;

[0183] Determine a safe distance between the current position and a trending edge of the spatial compression image, wherein the trending edge is a developing edge corresponding to a moving direction of the target to be focused in the spatial compression image;

[0184] Determining whether the position difference is greater than the safety distance;

[0185] If it is greater than the safety distance, it is determined that the monitoring angle and monitoring width of the telephoto lens of the ball camera need to be adjusted.

[0186] It can be understood that by detecting the position difference between the predicted position and the current position, the movement of the target to be focused can be understood in real time, so as to quickly adjust the lens angle and ensure that the target is always within the monitoring range.

[0187] It can be understood that determining the safe distance between the current position and the approaching edge of the spatial compression screen can prevent the target from being lost due to exceeding the monitoring range when it approaches the edge of the screen, thereby ensuring that the target is always visible in the screen, improving the continuity and integrity of monitoring.

[0188] It is understandable that it is determined whether the position difference is greater than the safety distance to automatically make a decision. If the position difference is too large, the monitoring angle and width of the telephoto lens of the ball camera are automatically adjusted to adapt to the movement of the target, thereby improving the intelligence of the camera equipment.

[0189] Furthermore, the step of judging whether it is necessary to adjust the shooting angle of the gun fisheye lens according to the predicted position includes:

[0190] Determining whether the predicted position belongs to a distorted position in the captured image;

[0191] If it is the distorted position, it is determined that the bolt fisheye lens needs to be adjusted;

[0192] If it is within the edge of the distorted position, it is determined that there is no need to adjust the gun fisheye lens.

[0193] It should be noted that the distortion position may be the position where deformation occurs in the image captured by the gun-type fisheye lens.

[0194] It is understandable that due to the edge distortion characteristics of the gun-action fisheye lens, although it can be corrected through the distortion correction algorithm, the distortion of the gun-action fisheye lens is too obvious. There is currently no algorithm that can completely correct the distortion of the gun-action fisheye lens. In order to accurately determine the position of the target to be focused in the shooting picture, therefore, when it is detected that the predicted position belongs to the distorted position in the shooting picture, it is necessary to adjust the shooting angle of the gun-action fisheye lens in time so that the predicted position falls within the edge of the distorted position.

[0195] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the control method of the camera device of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0196] This application also provides a control device for a camera device, please refer to Figure 7 , the control device of the camera device comprises:

[0197] The recognition module 10 is used to obtain the shooting picture taken by the gun fisheye lens and then identify the target to be focused from the shooting picture;

[0198] The control module 20 is used to control the telephoto lens of the ball camera to shoot a spatially compressed image containing the detailed features of the target to be focused;

[0199] A motion analysis module 30, configured to analyze the motion behavior of the target to be focused based on the spatially compressed image;

[0200] The adjustment module 40 is used to adjust the shooting angle of the gun camera fisheye lens and the monitoring angle and monitoring width of the ball camera telephoto lens based on the movement behavior.

[0201] Optionally, the control module 20 is further used to filter a target image set containing the target to be focused from the frame image of the shooting picture; identify the specific position of the target to be focused in the shooting picture from the target image set, so as to control the telephoto lens of the ball camera based on the specific position.

[0202] Optionally, the control module 20 is also used to determine the viewing angle that needs to be adjusted for the telephoto lens of the ball camera based on the specific position; control the telephoto lens of the ball camera to take a close-up picture of the target to be focused according to the visual angle; perform clarity analysis on the close-up picture; if the clarity of the close-up picture meets the preset clarity requirement, determine that the close-up picture is the spatially compressed picture containing the detail features of the target to be focused.

[0203] Optionally, the control module 20 is further used to perform frequency domain analysis on the close-up picture to determine the image frequency of the target to be focused in the close-up picture; preliminarily determine the image area in the close-up picture whose clarity does not meet the preset clarity requirement based on the image frequency; perform pixel analysis on the image area to determine whether the features in the image area will destroy the overall clarity of the close-up picture; if the image area will not destroy the overall clarity of the close-up picture, determine that the close-up picture meets the preset clarity requirement; if the image area will destroy the overall clarity of the close-up picture, determine that the close-up picture does not meet the preset clarity requirement.

[0204] Optionally, the control module 20 is also used to analyze the grayscale value of each pixel in the image area; determine the grayscale difference between the grayscale values ​​of adjacent pixels; extract feature information contained in the image area based on the grayscale value; determine whether the feature information is a valid feature; if the feature information is not a valid feature, determine that the feature in the image area will not destroy the overall clarity of the close-up picture; if the feature information is a valid feature, determine that the feature in the image area will destroy the overall clarity of the close-up picture.

[0205] Optionally, the control module 20 is further configured to determine whether the characteristic information is helpful for identifying the target to be focused; if it is determined that it is helpful, the characteristic information is determined to be a valid characteristic; if it is determined that it is not helpful, the characteristic information is determined to be not a valid characteristic. Optionally, the motion analysis module 30 is further configured to extract the motion characteristics of the target to be tracked from the spatial compression image; and predict the motion behavior of the target to be focused based on the motion characteristics.

[0206] Optionally, the motion analysis module 30 is further used to identify the movement characteristics of the moving part of the target to be focused and the inertia characteristics of the target to be focused during the movement process from the action characteristics; judge the movement authenticity of the target to be focused based on the movement characteristics and the inertia characteristics; if it is determined that the movement of the target to be focused is authentic, predict the movement behavior of the target to be focused based on the movement characteristics and the inertia characteristics.

[0207] Optionally, the motion analysis module 30 is further configured to determine the motion expectation of the target to be focused based on the movement feature; and to judge the authenticity of the motion expectation based on the inertial feature.

[0208] Optionally, the motion analysis module 30 is further configured to determine the real intention of the target to be focused based on the inertial feature if it is determined that the motion of the target to be focused is not real; and predict the motion behavior of the target to be focused based on the real intention.

[0209] Optionally, the identification module 10 is also used to obtain the shooting picture taken by the gun fisheye lens, and then determine the focusing area of ​​the target to be tracked from the shooting picture; if there are multiple focusing areas, then determine the focusing area with the shortest focal length from the focusing areas as the target focusing area; and identify the target to be focused from the target focusing area.

[0210] Optionally, the identification module 10 is further configured to, if a plurality of focus targets are identified in the target focus area, determine each of the focus targets as a target to be focused.

[0211] Optionally, the adjustment module 40 is also used to predict the motion trajectory of the target to be focused based on the motion behavior; based on the motion trajectory, predict the predicted position of the target to be focused in the shooting picture within a preset time length; determine the adjustment parameters of the telephoto lens of the ball camera and the adjustment data of the gun fisheye lens according to the predicted position; adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the adjustment parameters; and adjust the shooting angle of the gun fisheye lens according to the adjustment data.

[0212] Optionally, the adjustment module 40 is also used to determine whether it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the predicted position, and determine whether it is necessary to adjust the shooting angle of the gun fisheye lens; if it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera, the adjustment parameters of the telephoto lens of the ball camera are determined according to the preset position; and / or if it is necessary to adjust the shooting angle of the gun fisheye lens, the adjustment data of the gun fisheye lens is determined according to the preset position.

[0213] Optionally, the adjustment module 40 is also used to detect the position difference between the predicted position and the current position, the current position being the position of the target to be focused in the spatial compression picture; determine the safety distance between the current position and the trending edge of the spatial compression picture, the trending edge being the developing edge corresponding to the movement direction of the target to be focused in the spatial compression picture; determine whether the position difference is greater than the safety distance; if it is greater than the safety distance, determine that it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera.

[0214] Optionally, the adjustment module 40 is also used to determine whether the predicted position belongs to the distorted position in the captured image; if it belongs to the distorted position, it is determined that the gun fisheye lens needs to be adjusted; if it is located within the edge of the distorted position, it is determined that the gun fisheye lens does not need to be adjusted.

[0215] The control device of the camera device provided by the present application adopts the control method of the camera device in the above embodiment, which can solve the technical problem that the camera of the commonly used combination of a gun camera and a ball camera is often affected by the structure of the gun camera or the ball camera, resulting in a limited monitoring range. Compared with the prior art, the beneficial effects of the control device of the camera device provided by the present application are the same as the beneficial effects of the control method of the camera device provided by the above embodiment, and other technical features in the control device of the camera device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0216] The present application provides a control device for a camera device, the control device for the camera device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method for the camera device in the above-mentioned embodiment one.

[0217] Reference below Figure 8, which shows a schematic diagram of the structure of a control device for a camera device suitable for implementing an embodiment of the present application. The control device for the camera device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The control device of the camera device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0218] like Figure 8As shown, the control device of the camera device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the control device of the camera device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the control device of the camera device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a control device of the camera device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively. In particular, according to the embodiments disclosed in the present application, the process described with reference to the flowchart above can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0219] The control device of the camera device provided by the present application adopts the control method of the camera device in the above embodiment, which can solve the technical problem that the camera of the commonly used combination of a gun camera and a ball camera is often affected by the structure of the gun camera or the ball camera, resulting in a limited monitoring range. Compared with the prior art, the beneficial effects of the control device of the camera device provided by the present application are the same as the beneficial effects of the control method of the camera device provided by the above embodiment, and other technical features in the control device of the camera device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0220] It should be understood that the various parts disclosed in this application can be implemented with hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner. The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be included in the protection scope of this application. Therefore, the protection scope of this application shall be based on the protection scope of the claims.

[0221] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the control method of the camera device in the above-mentioned embodiment.

[0222] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0223] The computer-readable storage medium may be included in the control device of the imaging device; or may exist independently without being assembled into the control device of the imaging device.

[0224] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the control device of the camera device, the control device of the camera device: after obtaining the shooting picture taken by the gun-type fisheye lens, identifies the target to be focused from the shooting picture; controls the telephoto lens of the ball camera to shoot a spatially compressed picture containing detailed features of the target to be focused; analyzes the movement behavior of the target to be focused based on the spatially compressed picture; based on the movement behavior, adjusts the shooting angle of the gun-type fisheye lens, and adjusts the monitoring angle and monitoring width of the telephoto lens of the ball camera.

[0225] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0226] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0227] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0228] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., a computer program) for executing the control method of the above-mentioned camera device, and can solve the technical problem that the camera of the commonly used gun camera and ball camera combination is often affected by the structure of the gun camera or ball camera, resulting in a limited monitoring range. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the control method of the camera device provided by the above-mentioned embodiment, and are not repeated here. The present application also provides a computer program product, including a computer program, which implements the steps of the control method of the camera device as described above when the computer program is executed by a processor.

[0229] The computer program product provided by the present application can solve the technical problem that the commonly used combination of a gun camera and a ball camera is often affected by the structure of the gun camera or the ball camera, resulting in a limited monitoring range. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the control method of the camera device provided by the above embodiment, and will not be repeated here.

[0230] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for controlling a camera device, characterized in that: A control module applied to a camera, wherein the camera includes a bullet-type fisheye lens and a ball-type telephoto lens, and the method includes: After acquiring the picture taken by the gun fisheye lens, identifying the target to be focused from the picture; Control the telephoto lens of the ball camera to shoot a spatially compressed image containing detailed features of the target to be focused; Analyzing the motion behavior of the target to be focused based on the spatially compressed image; Based on the movement behavior, the shooting angle of the gun camera fisheye lens is adjusted, and the monitoring angle and monitoring width of the ball camera telephoto lens are adjusted.

2. The method according to claim 1, characterized in that Before the step of controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detail features of the target to be focused, the following step is further included: Filtering a target image set containing a target to be focused from the frame images of the shooting picture; The specific position of the target to be focused in the shooting picture is identified from the target image set, so as to control the telephoto lens of the ball camera based on the specific position.

3. The method according to claim 2, characterized in that The step of controlling the telephoto lens of the ball camera to shoot a spatially compressed image containing the detail features of the target to be focused comprises: Determine the viewing angle of the telephoto lens of the ball camera that needs to be adjusted based on the specific position; According to the visual angle, controlling the telephoto lens of the ball camera to take a close-up picture of the target to be focused; Performing clarity analysis on the close-up image; If the clarity of the close-up picture meets the preset clarity requirement, it is determined that the close-up picture is the spatially compressed picture containing the detail features of the target to be focused.

4. The method according to claim 3, characterized in that The step of performing clarity analysis on the close-up picture comprises: Performing frequency domain analysis on the close-up picture to determine the image frequency of the target to be focused in the close-up picture; Preliminarily determining, based on the image frequency, an image region in the close-up image whose clarity does not meet a preset clarity requirement; Perform pixel analysis on the image area to determine whether the features in the image area will destroy the overall clarity of the close-up picture; if the image area will not destroy the overall clarity of the close-up picture, determine that the close-up picture meets the preset clarity requirement; if the image area will destroy the overall clarity of the close-up picture, determine that the close-up picture does not meet the preset clarity requirement.

5. The method according to claim 4, characterized in that The step of performing pixel analysis on the image area to determine whether the features in the image area will destroy the overall clarity of the close-up picture includes: Analyzing the grayscale value of each pixel in the image area; Determine the grayscale difference between the grayscale values ​​of adjacent pixels; Extracting feature information contained in the image area based on the grayscale value; Determining whether the feature information is a valid feature; If the feature information is not a valid feature, it is determined that the feature in the image area will not destroy the overall clarity of the close-up picture; if the feature information is a valid feature, it is determined that the feature in the image area will destroy the overall clarity of the close-up picture.

6. The method according to claim 5, characterized in that The step of determining whether the feature information is a valid feature comprises: Determining whether the characteristic information is helpful in identifying the target to be focused; If it is determined that there is help, determining that the feature information is a valid feature; If it is determined that no help exists, it is determined that the feature information is not a valid feature.

7. The method according to claim 1, characterized in that The step of analyzing the motion behavior of the target to be focused based on the spatial compression picture comprises: Extracting the motion features of the target to be tracked from the spatially compressed image; The motion behavior of the target to be focused is predicted based on the motion features.

8. The method according to claim 7, characterized in that The step of predicting the motion behavior of the target to be focused based on the motion feature comprises: Identifying, from the motion features, movement features of a portion of the target to be focused that is used for movement, and inertia features of the target to be focused during the movement process; Determining the motion authenticity of the target to be focused based on the movement feature and the inertia feature; If it is determined that the movement of the target to be focused is real, the movement behavior of the target to be focused is predicted based on the movement feature and the inertia feature.

9. The method according to claim 8, characterized in that The step of judging the motion authenticity of the target to be focused based on the movement feature and the inertia feature comprises: Determining the movement expectation of the target to be focused based on the movement feature; The authenticity of the motion expectation is determined based on the inertial characteristics.

10. The method according to claim 8, characterized in that After the step of judging the motion authenticity of the target to be focused based on the movement feature and the inertia feature, the method further includes: If it is determined that the movement of the target to be focused is not real, determining the real intention of the target to be focused based on the inertial feature; Based on the real intention, the movement behavior of the target to be focused is predicted.

11. The method according to claim 1, characterized in that After obtaining the picture taken by the gun fisheye lens, the step of identifying the target to be focused from the picture includes: After obtaining the picture taken by the gun fisheye lens, determining the focus area of ​​the target to be tracked from the picture; If there are multiple focus areas, determining a focus area with the shortest focal length from the focus areas as a target focus area; A target to be focused is identified from the target focusing area.

12. The method according to claim 11, characterized in that The step of identifying the target to be focused from the target focusing area includes: if a plurality of focusing targets are identified in the target focusing area, each of the focusing targets is determined as the target to be focused.

13. The method according to claim 1, characterized in that The step of adjusting the shooting angle of the gun-type fisheye lens and adjusting the monitoring angle and monitoring width of the telephoto lens of the ball camera based on the movement behavior includes: Predicting the motion trajectory of the target to be focused based on the motion behavior; Based on the motion trajectory, predicting a predicted position of the target to be focused in the shooting picture within a preset time period; Determining adjustment parameters of the telephoto lens of the ball camera and adjustment data of the fisheye lens of the bolt camera according to the predicted position; Adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the adjustment parameters; The shooting angle of the gun fisheye lens is adjusted according to the adjustment data.

14. The method according to claim 13, characterized in that The step of determining the adjustment parameters of the telephoto lens of the ball camera and the adjustment data of the fisheye lens of the gun camera according to the predicted position comprises: Determine whether it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the predicted position, and determine whether it is necessary to adjust the shooting angle of the fisheye lens of the gun camera; If the monitoring angle and monitoring width of the telephoto lens of the ball camera need to be adjusted, the adjustment parameters of the telephoto lens of the ball camera are determined according to the preset position; And / or if the shooting angle of the gun fisheye lens needs to be adjusted, the adjustment data of the gun fisheye lens is determined according to the preset position.

15. The method according to claim 14, characterized in that The step of judging whether it is necessary to adjust the monitoring angle and monitoring width of the telephoto lens of the ball camera according to the predicted position comprises: Detecting a position difference between the predicted position and a current position, wherein the current position is a position of the target to be focused in the spatially compressed image; Determine a safe distance between the current position and a trending edge of the spatial compression image, wherein the trending edge is a developing edge corresponding to a moving direction of the target to be focused in the spatial compression image; Determining whether the position difference is greater than the safety distance; If it is greater than the safety distance, it is determined that the monitoring angle and monitoring width of the telephoto lens of the ball camera need to be adjusted.

16. The method according to claim 14, characterized in that The step of judging whether it is necessary to adjust the shooting angle of the gun fisheye lens according to the predicted position comprises: Determining whether the predicted position belongs to a distorted position in the captured image; If it is the distorted position, it is determined that the bolt fisheye lens needs to be adjusted; If it is within the edge of the distorted position, it is determined that there is no need to adjust the gun fisheye lens.

17. A control device for a camera device, characterized in that: A control module applied to a camera, wherein the camera includes a bullet-type fisheye lens and a ball-type telephoto lens, and the device includes: The recognition module is used to obtain the shooting picture taken by the gun fisheye lens and then identify the target to be focused from the shooting picture; the control module is used to control the telephoto lens of the ball camera to shoot a spatially compressed picture containing the detail features of the target to be focused; A motion analysis module, used for analyzing the motion behavior of the target to be focused based on the spatial compression picture; The adjustment module is used to adjust the shooting angle of the gun camera fisheye lens and the monitoring angle and monitoring width of the ball camera telephoto lens based on the movement behavior.

18. A control device for a camera device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the imaging device according to any one of claims 1 to 16.

19. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method of the camera device according to any one of claims 1 to 16 are implemented.

20. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the control method of the imaging device according to any one of claims 1 to 16 are implemented.

Citation Information

Cited By

  • Event detection method, electronic equipment and computer readable storage medium

    CN120128683A