Movement tracking method and system of camera equipment, electronic device and storage medium

By capturing image data in the camera device and using image recognition and processing algorithms to automatically adjust the focus and display area, it solves the problem in the existing technology that the camera device needs to manually adjust the focus and angle of view when tracking dynamic targets, and achieves rapid detection of moving targets. Accurate tracking.

CN118748754APending Publication Date: 2024-10-08SHENZHEN JOOAN TECH CO LTD

Patent Information

Application Number
CN202410778208.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing camera equipment requires manual adjustment of focus and angle of view when tracking dynamic targets, which is inefficient and difficult to achieve fast and accurate tracking.

Method used

Capture image data through camera equipment, use image recognition algorithms to identify target objects, apply image processing algorithms to determine the boundaries, center point coordinates and dimensions of the target object, calculate the pixel ratio and position deviation of the target object in the image, and adjust the rules according to presets Automatically adjust the focal length and/or image display area of ​​the camera device.

Benefits of technology

It achieves precise tracking of moving targets, improves tracking efficiency and accuracy, and avoids the inefficiency of manual adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748754A_ABST
    Figure CN118748754A_ABST
Patent Text Reader

Abstract

The invention relates to a movement tracking method and system of camera equipment, an electronic device and a storage medium, and the method comprises the steps: capturing image data through the camera equipment, and enabling the image data to at least comprise an image; recognizing a target object in the image by using an image recognition algorithm; applying an image processing algorithm to determine the boundary, the center point coordinate and the size of the target object; calculating a pixel proportion of the target object in the image according to the boundary and the size of the target object; calculating the position deviation of the target object according to the central point coordinate of the target object and the central point coordinate of the image; and adjusting the focal length and / or the image display area of the camera equipment according to the pixel proportion and the position deviation and the preset adjustment rule, thereby solving the problems that the efficiency is low and rapid and accurate tracking is difficult to realize due to the fact that the focal length and the visual angle often need to be manually adjusted when the camera equipment tracks the dynamic target in the prior art. The focal length and the image display area of the camera equipment can be automatically adjusted, so that accurate tracking of the moving target is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of economic production technology, and in particular to a mobile tracking method, system, electronic device and storage medium for a camera device. Background Art

[0002] With the development of technology, automatic tracking of dynamic targets has become an important demand in the fields of monitoring, security, and video conferencing. In the existing related technologies, when tracking dynamic targets, the camera equipment often needs to manually adjust the focus and viewing angle, which is not only inefficient but also difficult to achieve fast and accurate tracking.

[0003] Therefore, it is of great practical significance to develop a camera device motion tracking method and system that can automatically adjust the focal length and image display area. Summary of the invention

[0004] The embodiments of the present application provide a mobile tracking method, system, electronic device and storage medium for a camera device, so as to at least solve the problem that the camera device of the related art often needs to manually adjust the focal length and viewing angle when tracking a dynamic target, which is not only inefficient but also difficult to achieve fast and accurate tracking.

[0005] In a first aspect, an embodiment of the present application provides a method for mobile tracking of a camera device, comprising: capturing image data through a camera device, wherein the image data at least includes an image; identifying a target object in the image using an image recognition algorithm; applying an image processing algorithm to determine the boundary, center point coordinates and size of the target object; calculating the pixel ratio of the target object in the image based on the boundary and size of the target object; calculating the position deviation of the target object based on the center point coordinates of the target object and the center point coordinates of the image; and adjusting the focal length and / or image display area of ​​the camera device according to preset adjustment rules based on the pixel ratio and the position deviation.

[0006] In some of the embodiments, the focal length and / or image display area of ​​the camera device is adjusted according to the pixel ratio and the position deviation, including: when it is determined according to the pixel ratio that the pixel ratio of the target object is less than a preset threshold, the focal length is increased to enlarge the proportion of the target object in the image display area; when it is determined according to the pixel ratio that the pixel ratio of the target object is greater than the preset threshold, the focal length is reduced to reduce the proportion of the target object in the image display area.

[0007] In some of the embodiments, based on the position deviation being greater than a preset centering threshold, it is determined that the target object is not located in a preset center area, and the focus or image display area is adjusted to move the center point of the target object to the preset center area.

[0008] In some of the embodiments, if the target object in the image cannot be identified using the image recognition algorithm, the method includes: pausing focus adjustment and searching for the target object according to a preset search method; if the target object is recaptured within a preset time, continuing to adjust the focus and image display area according to preset adjustment rules; if the target object cannot be captured within the preset time, restoring to the state before tracking according to the preset focus and capture position.

[0009] In some of the embodiments, a focal length value set by a user is obtained, and the focal length set by the user is maintained for tracking according to the focal length value set by the user.

[0010] In some of the embodiments, the focal length of the camera device is adjusted according to a preset adjustment rule, including: the camera device includes a telephoto camera and a short-focus camera, and a preset focal length switching mechanism is used to automatically or manually switch the camera according to the change in the distance of the target object, wherein the focal length switching mechanism includes: using a processor to output a determination result on using a telephoto camera or a short-focus camera according to a preset threshold based on the pixel ratio of the target object in the image display area; and generating an instruction to switch to the corresponding camera based on the determination result of the processor.

[0011] In a second aspect, an embodiment of the present application provides a mobile tracking system for a camera device, comprising: an image capture module, used to capture image data through a camera device, wherein the image data at least includes an image; a target recognition module, coupled to the image capture module, used to identify a target object in an image using an image recognition algorithm; an image processing module, coupled to the target recognition module, used to apply an image processing algorithm to determine the boundary, center point coordinates and size of the target object; a data processing module, coupled to the image processing module, used to calculate the pixel ratio of the target object in the image based on the boundary and size of the target object; calculate the position deviation of the target object based on the center point coordinates of the target object and the center point coordinates of the image; an adjustment module, coupled to the data processing module, used to adjust the focal length and / or image display area of ​​the camera device according to a preset adjustment rule based on the pixel ratio and the position deviation.

[0012] Some of the embodiments further include: a user interface module, coupled to the adjustment module, for obtaining a focal length value set by a user, and maintaining the focal length set by the user for tracking according to the focal length value set by the user.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps of the mobile tracking method of the camera device as described in the first aspect above.

[0014] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for mobile tracking of a camera device as described in the first aspect above.

[0015] Compared with the related art, the mobile tracking method, system, electronic device and storage medium of the camera device provided in the embodiments of the present application adopt the method of capturing image data through the camera device, wherein the image data at least includes an image; using an image recognition algorithm to identify the target object in the image; applying an image processing algorithm to determine the boundary, center point coordinates and size of the target object; according to the boundary and size of the target object, calculating the pixel ratio of the target object in the image; according to the center point coordinates of the target object and the center point coordinates of the image, calculating the position deviation of the target object; according to the pixel ratio and the position deviation, adjusting the focal length and / or image display area of ​​the camera device according to preset adjustment rules, thereby solving the problem in the related art that the camera device often needs to manually adjust the focal length and viewing angle when tracking a dynamic target, which is not only inefficient but also difficult to achieve fast and accurate tracking. The camera device can automatically adjust the focal length and image display area to achieve accurate tracking of moving targets.

[0016] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 It is a hardware structure block diagram of a terminal of a method for tracking movement of a camera device according to an embodiment of the present application;

[0019] Figure 2 is a flow chart of a method for tracking movement of a camera device according to an embodiment of the present application;

[0020] Figure 3 It is a structural block diagram of a mobile tracking system of a camera device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.

[0022] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0023] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The "multiple links" involved in this application refer to links greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may represent: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in this application are only used to distinguish similar objects, and do not represent a specific ordering of objects.

[0024] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. Taking running on a terminal as an example, Figure 1 1 is a hardware structure block diagram of a terminal of a mobile tracking method of a camera device according to an embodiment of the present application. Figure 1As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the mobile tracking method of the camera device in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal 10 via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] This embodiment provides a method for tracking the movement of a camera device running on the terminal. Figure 2 is a flow chart of a method for tracking movement of a camera device according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0028] Step S201: capturing image data by a camera device, wherein the image data at least includes an image.

[0029] In this embodiment, the first technical solution of the present invention involves using a camera device to capture image data. This process is the basis of the entire mobile tracking method, and its purpose is to obtain visual information of dynamic targets. The capture of image data can be a static single image or a dynamic video stream, depending on the requirements of the application scenario. The camera device can be a professional surveillance camera, a built-in camera of a smartphone, or any device with image capture function. These devices are usually equipped with high-resolution image sensors and lens systems to ensure that high-quality image data is captured. Depending on the application scenario, the camera device may use different types of image sensors, such as CCD (charge coupled device) or CMOS (complementary metal oxide semiconductor) sensors. The choice of these sensors will affect the clarity, color reproduction and sensitivity of the image. The captured image data can be an analog signal or a digital signal. In modern camera devices, image data is usually stored in digital formats, such as JPEG, PNG or RAW format, to facilitate subsequent digital processing and analysis. Through the above technical solution, the camera device can efficiently capture image data of dynamic targets, providing high-quality visual input for subsequent target recognition, tracking and analysis. High-quality image data is a prerequisite for achieving accurate tracking, which directly affects the performance of subsequent image processing algorithms and the overall effect of the tracking system.

[0030] Step S202: using an image recognition algorithm to identify a target object in the image.

[0031] In this embodiment, the core of the present invention is to automatically detect and identify the target object in the image data using an advanced image recognition algorithm. This process is a key step in realizing the mobile tracking function, which enables the camera device to intelligently distinguish and lock dynamic targets. Before image recognition, the captured image data is first preprocessed, including operations such as denoising, graying, and histogram equalization to enhance image features and reduce the complexity of subsequent processing. Computer vision technology is used to extract key features in the image, such as edges, corners, textures, etc. A deep learning algorithm, especially a convolutional neural network (CNN), is used to learn image features and perform target recognition. The deep learning model can automatically learn complex image representations and improve the accuracy of recognition. Advanced target detection frameworks such as R-CNN, YOLO (You Only Look Once), and SSD (Single Shot MultiBox Detector) are applied to achieve rapid positioning and recognition of target objects in the image. The image recognition algorithm can not only identify a single target, but also simultaneously identify multiple different target objects to meet the tracking requirements in complex scenes. Through the above technical solution, the camera device can automatically detect the target object in the image and provide accurate target location and category information. This is critical to achieving fast and accurate target tracking.

[0032] Step S203, applying an image processing algorithm to determine the boundary, center point coordinates and size of the target object.

[0033] In this embodiment, the present invention can accurately determine the boundary, center point coordinates and size of the identified target object image through a preset image processing algorithm. This step is crucial for achieving accurate target tracking and analyzing the behavior of the target object. An edge detection algorithm, such as the Canny algorithm, is used to identify the outline of the target object. Edge detection provides basic information for determining the target boundary. The application of the region growing algorithm starts from the starting point of edge detection and gradually expands to the entire target area until the boundary is completely identified. By analyzing the shape features of the target object, such as rectangles, circles, etc., the boundary is determined using Hough transform or other shape fitting techniques. Image segmentation techniques, such as threshold segmentation, region segmentation or deep learning-based segmentation methods, are used to separate the target object from the background. After determining the boundary of the target object, its geometric center or centroid is calculated as the center point coordinate, which can be achieved by calculating the center of the bounding box or the weighted average position of the target area. The size of the target object, such as width, height or diameter, is measured, usually based on the size of the bounding box or through more complex geometric analysis. Morphological operations, such as dilation, erosion, opening and closing operations, are applied to improve the shape of the target object to make it more suitable for boundary detection and size measurement. By integrating machine learning technology, the algorithm can adapt to different lighting conditions, background interference and deformation of the target object. By applying image processing algorithms, the present invention can accurately determine the boundaries, center point coordinates and size of the target object, providing accurate spatial information for subsequent target tracking and behavior analysis.

[0034] Step S204, calculating the pixel ratio of the target object in the image according to the boundary and size of the target object.

[0035] In this embodiment, the technical solution of the present invention calculates the pixel ratio of the target object in the image. This ratio is an important indicator to measure the prominence of the target in the image, and is of great significance for subsequent image processing and analysis. First, the bounding box of the target object is obtained by an image processing algorithm, which is usually a rectangular box whose four vertex coordinates are determined by the boundary of the target object. Calculate the area of ​​the bounding box of the target object. This can be achieved by directly calculating the product of the length and width of the bounding box, or if the bounding box is an irregular shape, it can be obtained by a more complex polygon area calculation formula. Determine the area of ​​the entire image, that is, the width of the image multiplied by the height, to obtain the total number of pixels in the image. Divide the bounding box area of ​​the target object by the area of ​​the entire image to obtain the pixel ratio of the target object in the image. This ratio can be used to evaluate the size and prominence of the target object in the image. In order to make the pixel ratio independent of the resolution of the image, a normalization method can be used, such as multiplying the ratio by a constant (such as 100 or 1000) to make it a value that is easy to understand and compare. In the calculation process, considering the precision of floating-point numbers, high-precision data types are used to store and calculate to ensure the accuracy of the results. In order to improve computational efficiency, especially when processing high-resolution images, a fast algorithm is used to calculate the area and proportion, such as using a data structure such as a summed area table. By calculating the pixel proportion of the target object, the present invention can provide a quantitative target saliency index for image analysis. This index can be used in a variety of applications, such as target tracking, scene understanding, image compression, etc.

[0036] Step S205, calculating the position deviation of the target object according to the center point coordinates of the target object and the center point coordinates of the image.

[0037] In this embodiment, the technical solution of the present invention aims to quantify the position offset of the target object in the image by calculating the deviation between the center point coordinates of the target object and the center point coordinates of the image. The calculation of this position deviation is crucial to achieve accurate image tracking and positioning. Determine the center point coordinates of the target object. This can be achieved by calculating the geometric center or centroid of the target object bounding box. Determine the center point coordinates of the image, that is, half the width and height of the image. Calculate the horizontal and vertical deviations between the center point of the target and the center point of the image. This can be achieved by a simple coordinate difference. Use the length of the deviation vector to quantify the size of the position deviation. This can be calculated by the Euclidean distance formula. In order to make the deviation metric independent of the image size, the deviation vector can be normalized, for example, by dividing it by the length of the image diagonal or the length of the bounding box diagonal. The direction of the deviation vector can provide the position information of the target object relative to the center of the image, which is crucial to the control logic of the tracking system. During dynamic tracking, the center point coordinates and calculated deviations are updated in real time to quickly respond to the movement of the target object. Optimize the algorithm to reduce the amount of calculation and improve efficiency, especially when processing high-resolution images or high-speed moving targets. By calculating the position deviation of the target object, the present invention can provide accurate control signals for the tracking system to ensure that the target object remains within the optimal observation area of ​​the image.

[0038] Step S206, adjusting the focal length of the camera device and / or the image display area according to the pixel ratio and the position deviation and a preset adjustment rule.

[0039] In this embodiment, the technical solution of the present invention automatically adjusts the focal length and / or image display area of ​​the camera device according to the pixel ratio of the target object in the image and the relative position deviation of the center point to optimize the display effect of the target and maintain its appropriate position in the image. The pixel ratio of the target object is evaluated to determine its relative size in the image.

[0040] Evaluate the coordinate deviation between the center point of the target object and the center point of the image to determine the relative position of the target. Set preset adjustment rules that define the conditions for focus adjustment and display area adjustment based on the thresholds of pixel proportion and position deviation. If the pixel proportion of the target object is less than the preset threshold, increase the focus to magnify the target so that its proportion in the image is larger.

[0041] If the pixel ratio of the target object is greater than a preset threshold, reduce the focal length to shrink the target and prevent it from occupying too much image space. Based on the position deviation, if the target deviates from the center of the image by more than the centering threshold, adjust the image display area and move the target to the center. Implement a dynamic tracking control algorithm to monitor the position and size changes of the target object in real time, and continuously adjust the focal length and display area to adapt to these changes. Control hardware integrated into the camera device, such as a stepper motor or a servo motor, can achieve precise adjustment of the focal length and display area. By automatically adjusting the focal length and display area, the technical solution of the present invention can ensure that the target object always remains in the optimal observation position and size of the image, thereby improving the usability and viewing experience of the image.

[0042] Through the above steps S201 to S206, image data is captured by a camera device, wherein the image data at least includes an image; an image recognition algorithm is used to identify a target object in the image; an image processing algorithm is applied to determine the boundary, center point coordinates and size of the target object; based on the boundary and size of the target object, the pixel ratio of the target object in the image is calculated; based on the center point coordinates of the target object and the center point coordinates of the image, the position deviation of the target object is calculated; based on the pixel ratio and the position deviation, the focal length and / or image display area of ​​the camera device are adjusted according to preset adjustment rules, thereby solving the problem in the related art that the camera device often needs to manually adjust the focal length and viewing angle when tracking a dynamic target, which is not only inefficient but also difficult to achieve fast and accurate tracking. The focal length and image display area of ​​the camera device can be automatically adjusted to achieve accurate tracking of moving targets.

[0043] In some of the embodiments, the focal length and / or image display area of ​​the camera device is adjusted according to the pixel ratio and the position deviation, including: when it is determined according to the pixel ratio that the pixel ratio of the target object is less than a preset threshold, the focal length is increased to enlarge the proportion of the target object in the image display area; when it is determined according to the pixel ratio that the pixel ratio of the target object is greater than the preset threshold, the focal length is reduced to reduce the proportion of the target object in the image display area.

[0044] In this embodiment, the technical solution of the present invention analyzes the pixel ratio of the target object in the image and compares it with the preset threshold value to intelligently adjust the focal length of the camera device and the image display area to optimize the visibility and composition balance of the target. The ratio of the bounding box area of ​​the target object to the entire image area is calculated to obtain the pixel ratio. The upper and lower thresholds of the pixel ratio are set according to the application scenario and user needs. These thresholds define the ideal display size of the target object in the image. If the pixel ratio of the target object is less than the preset lower threshold, the system will increase the focal length and enlarge the target object until its pixel ratio reaches the ideal range. If the pixel ratio is greater than the preset upper threshold, the system will reduce the focal length and reduce the target object to avoid it being too large and exceeding the image display area. In addition to adjusting the focal length, the system can also adjust the display area of ​​the image, such as by cropping or panning the image to ensure that the target object is located in the center or desired position of the image. During the movement of the target object, the system continuously monitors its pixel ratio and adjusts the focal length and display area in real time to maintain the continuous visibility of the target object. It is tightly integrated with the autofocus system and image stabilization system of the camera device to achieve smooth and accurate focal length adjustment. Through this technical solution, the camera device can automatically adapt to the size changes of the target object and achieve optimized display of the target object in the image without human intervention, thereby improving the intelligence level of the camera device and user experience.

[0045] In some of the embodiments, based on the position deviation being greater than a preset centering threshold, it is determined that the target object is not located in a preset center area, and the focus or image display area is adjusted to move the center point of the target object to the preset center area.

[0046] In this embodiment, the technical solution of the present invention automatically adjusts the focal length or image display area of ​​the camera device by monitoring the position deviation of the target object relative to the center of the image and comparing it with the preset centering threshold, so as to ensure that the center point of the target object moves to the preset center area. The difference between the coordinates of the center point of the target object and the coordinates of the center point of the image is calculated to obtain the position deviation in the horizontal and vertical directions. The centering threshold is set according to the composition requirements of the image and the importance of the target object. The threshold defines the maximum allowable distance of the target object from the center area. The calculated position deviation is compared with the centering threshold to determine whether the target object deviates from the preset center area. If the position deviation exceeds the centering threshold, the viewing angle range is changed by adjusting the focal length so that the target object moves toward the center of the image. The target object that deviates from the center is directly moved to the center position by translating or cropping the image display area. A dynamic tracking algorithm is implemented to monitor the position change of the target object in real time, and the focal length or image display area is continuously adjusted to keep the target object centered. It works in conjunction with the autofocus, optical zoom, digital zoom and image stabilization system of the camera device to achieve smooth and precise adjustment. This technical solution ensures that the target object can be kept in the center of the image under various shooting conditions, thereby improving the image composition quality and the accuracy of the visual focus.

[0047] In some of the embodiments, if the target object in the image cannot be identified using the image recognition algorithm, the method includes: pausing focus adjustment and searching for the target object according to a preset search method; if the target object is recaptured within a preset time, continuing to adjust the focus and image display area according to preset adjustment rules; if the target object cannot be captured within the preset time, restoring to the state before tracking according to the preset focus and capture position.

[0048] In this embodiment, the technical solution of the present invention proposes an intelligent processing and recovery mechanism to address the problem that the image recognition algorithm may fail to recognize the target object in the image under certain circumstances. The mechanism ensures that tracking can be effectively resumed and the adjustment of the focus and image display area can be continued even when the target is temporarily lost. When the image recognition algorithm fails to detect the target object in the image, the system will identify this failure. Once the recognition failure is detected, the system will suspend any ongoing focus adjustment operation to avoid unnecessary or inappropriate adjustments when the target is lost. A preset search method is initiated, which may include scanning for specific features, patterns in the image or using historical location data to predict the area where the target may appear. Within the preset search area, the system will attempt to recapture the target object. This may involve image enhancement, multi-frame analysis or other advanced image processing techniques. A preset time limit is set, during which the system will continue to search for the target object. If the target object is successfully captured within the preset time, the system will continue to adjust the focus and image display area according to the preset adjustment rules to re-optimize the display of the target. If the target object is not captured within the preset time, the system will perform a recovery operation to restore the focus and image display area to the state before the recognition failure. Feedback is provided through the user interface to inform the user of the status of target object loss and recovery operations, and to allow the user to intervene manually. The system records recognition failures and uses this data to optimize search methods and preset adjustment rules to improve the stability and accuracy of future tracking. Intelligent processing and recovery mechanisms ensure that when the target object cannot be recognized temporarily, the camera device can respond quickly and try to recapture the target, or restore to a safe state when necessary, thereby improving the robustness of the tracking system and user experience.

[0049] In some of the embodiments, a focal length value set by a user is obtained, and the focal length set by the user is maintained for tracking according to the focal length value set by the user.

[0050] In this embodiment, the user is allowed to directly participate in the parameter setting of the tracking system, which improves the flexibility and adaptability of tracking and meets the specific needs of professional users for specific scenes. An intuitive user interface is designed to enable users to easily enter or select the desired focal length value. The system provides input methods such as a numeric keyboard, a slider, or directly selecting a preset focal length option to receive the user's focal length setting. After receiving the user's input, the system verifies whether the value is within the focal length range supported by the camera device. The system adjusts the focal length of the camera device according to the user's input to ensure that the user's desired visual effect is achieved. Once the focal length is set, the system will lock the focal length and track the target based on it. The system may automatically make subtle adjustments to optimize image quality based on other factors such as ambient light and target distance, but keep the user-set focal length unchanged. In the case of user-set focal length, the system's automatic adjustment rules will be temporarily shelved or placed at a low priority. The system provides real-time feedback to let the user know the current focal length status and provide adjustment options when necessary. Even in the case of user-set focal length, the system will still monitor and maintain stable tracking of the target. By allowing the user to set the focal length, this technical solution enables the tracking system to adapt to more application scenarios and user needs, thereby improving the flexibility of the system and user satisfaction.

[0051] In some embodiments, adjusting the focal length of a camera device according to a preset adjustment rule includes: the camera device includes a telephoto camera and a short focal length camera, and using a preset focal length switching mechanism to automatically or manually switch the camera according to the distance change of the target object, wherein the focal length switching mechanism includes:

[0052] Step S21, outputting a determination result on whether to use a telephoto camera or a short-focus camera according to a preset threshold value based on the pixel ratio of the target object in the image display area by the processor;

[0053] Step S22: Generate an instruction to switch to the corresponding camera according to the determination result of the processor.

[0054] In this embodiment, according to the change in the distance between the target object and the camera device, the telephoto camera or the short-focus camera is automatically or manually switched to achieve the best visual effect and target tracking. The camera device is equipped with a telephoto camera and a short-focus camera, which are used to capture the target object at a long distance and a short distance, respectively. A distance sensor, such as an ultrasonic sensor, a laser rangefinder or a time-of-flight (ToF) sensor, is integrated in the device to measure the distance between the target object and the camera device in real time. The distance sensor works continuously and outputs real-time distance data between the target object and the camera device. Preset distance thresholds are set for the telephoto and short-focus cameras. These thresholds determine when to switch to a camera with a specific focal length. The processor receives the measurement results of the distance sensor and compares them with the preset distance thresholds to determine which focal length camera to use. According to the judgment result of the processor, an instruction to switch to the camera with the corresponding focal length is automatically generated. The switching mechanism is designed to ensure that the picture changes smoothly when switching between the telephoto and short-focus cameras to avoid users noticing obvious jumps. A user interface is provided to allow users to manually select to use the telephoto or short-focus camera as needed, or to override the automatic switching mechanism. The focal length switching mechanism is integrated with the target tracking system to ensure that the target object is not lost when switching cameras. The system optimizes the preset distance threshold and switching algorithm based on the image effect after switching and user feedback. Through this technical solution, the camera device can intelligently select the most appropriate focal length according to the actual distance of the target object, improving the image quality and the accuracy of target tracking.

[0055] This embodiment also provides a mobile tracking system for a camera device, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module", "unit", "subunit", etc. may be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0056] Figure 3 is a structural block diagram of a mobile tracking system for a camera device according to an embodiment of the present application, such as Figure 3 As shown, the device includes an image capturing module 31, a target recognition module 32, an image processing module 33, a data processing module 34 and an adjustment module 35, wherein:

[0057] An image capturing module 31, configured to capture image data by means of a camera device, wherein the image data at least includes an image;

[0058] A target recognition module 32, coupled to the image capture module 31, for recognizing a target object in an image using an image recognition algorithm;

[0059] An image processing module 33, coupled to the target recognition module 32, for applying an image processing algorithm to determine the boundary, center point coordinates and size of the target object;

[0060] The data processing module 34 is coupled to the image processing module 33 and is used to calculate the pixel ratio of the target object in the image according to the boundary and size of the target object; and calculate the position deviation of the target object according to the center point coordinates of the target object and the center point coordinates of the image;

[0061] The adjustment module 35 is coupled to the data processing module 34 and is used to adjust the focal length of the camera device and / or the image display area according to the pixel ratio and the position deviation according to a preset adjustment rule.

[0062] Some of the embodiments further include: a user interface module 36, coupled to the adjustment module 35, for obtaining a focal length value set by a user, and maintaining the focal length set by the user for tracking according to the focal length value set by the user.

[0063] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0064] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0065] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0066] In addition, in combination with the material distribution method for a mixed-flow assembly workshop in the above embodiment, the present application embodiment can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the material distribution methods for a mixed-flow assembly workshop in the above embodiment is implemented.

[0067] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0068] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for tracking the movement of a camera device, characterized in that: include: Capturing image data by a camera device, wherein the image data at least includes an image; Use image recognition algorithms to identify target objects in images; Apply image processing algorithms to determine the boundaries, center point coordinates and size of the target object; Calculate the pixel ratio of the target object in the image based on the boundary and size of the target object; Calculate the position deviation of the target object according to the center point coordinates of the target object and the center point coordinates of the image; According to the pixel ratio and position deviation, the focal length of the camera device and / or the image display area are adjusted according to the preset adjustment rules.

2. The method according to claim 1, characterized in that Adjust the focal length of the camera device and / or the image display area according to the pixel ratio and position deviation, including: When it is determined according to the pixel ratio that the pixel ratio of the target object is less than a preset threshold, the focal length is increased to enlarge the ratio of the target object in the image display area; When it is determined according to the pixel ratio that the pixel ratio of the target object is greater than a preset threshold, the focal length is reduced to reduce the ratio of the target object in the image display area.

3. The method according to claim 2, characterized in that According to the position deviation being greater than the preset centering threshold, it is determined that the target object is not located in the preset center area, and the focal length or the image display area is adjusted to move the center point of the target object to the preset center area.

4. The method according to claim 1, characterized in that: The image recognition algorithm cannot identify the target object in the image, including: Pause focus adjustment and search for the target object according to the preset search method; If the target object is recaptured within the preset time, the focus and the image display area continue to be adjusted according to the preset adjustment rules; If the target object cannot be captured within the preset time, the camera will be restored to the state before tracking according to the preset focal length and capture position.

5. The method according to claim 1, characterized in that Get the focal length value set by the user, and keep tracking the focal length set by the user according to the focal length value set by the user.

6. The method according to claim 1, characterized in that The focal length of a camera device is adjusted according to a preset adjustment rule, comprising: the camera device comprises a telephoto camera and a short focal length camera, and a preset focal length switching mechanism is used to automatically or manually switch the camera according to a change in the distance of a target object, wherein the focal length switching mechanism comprises: Outputting, by the processor, a determination result on whether to use a telephoto camera or a short-focus camera according to a preset threshold based on a pixel ratio of the target object in the image display area; According to the determination result of the processor, an instruction to switch to the corresponding camera is generated.

7. A mobile tracking system for a camera device, characterized in that: include: An image capturing module, configured to capture image data by means of a camera device, wherein the image data at least includes an image; A target recognition module, coupled to the image capture module, for recognizing a target object in an image using an image recognition algorithm; An image processing module, coupled to the target recognition module, for applying an image processing algorithm to determine the boundary, center point coordinates and size of the target object; A data processing module, coupled to the image processing module, is used to calculate the pixel ratio of the target object in the image according to the boundary and size of the target object; and calculate the position deviation of the target object according to the center point coordinates of the target object and the center point coordinates of the image; The adjustment module is coupled to the data processing module and is used to adjust the focal length of the camera device and / or the image display area according to the pixel ratio and the position deviation according to a preset adjustment rule.

8. The system according to claim 7, characterized in that Also includes: The user interface module is coupled with the adjustment module and is used to obtain the focal length value set by the user and keep the focal length set by the user for tracking according to the focal length value set by the user.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps of the movement tracking method of the camera device according to any one of claims 1 to 6.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the movement tracking method of the imaging device according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • An automatic zooming-based self-adaptive image tracking method

    CN106664373A

  • Tracking control method and tracking control system

    CN107016367A

  • Image processing method and device, electronic equipment and computer readable storage medium

    CN110392211A

  • Zoom control method and device, storage medium and electronic equipment

    CN113905170A

  • Electronic zoom device, electronic zoom method, and program

    US20130235086A1

Cited By

  • Camera automatic identification tracking method and system based on machine vision

    CN119399249A

  • Image imaging processing method and system, electronic equipment and storage medium

    CN119399419A

  • Method and system for industrially controlling material handling vehicle

    CN120848323A

  • Emotion perception interaction method and system for assisting social contact of autistic children

    CN122528079A

  • Consumer network camera tracking effect evaluation method and system

    CN122741685A