Background adaptive water surface floating object automatic recognition method and device

Through the background-adaptive automatic recognition method of floating objects on the water surface, an initial background model is constructed and differentially processed in real time, which solves the problem of poor recognition accuracy and real-time performance of floating objects on the water surface in the construction environment, and achieves more efficient identification and salvage of surface garbage. .

CN115937783BActive Publication Date: 2024-10-15EXWAY INTELLIGENT TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211670524.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2024-10-15
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

Existing floating object recognition technology on the water surface is affected by changes in water flow, background disturbance, shadow occlusion and lighting changes in the construction environment, resulting in poor recognition accuracy and real-time performance, making it difficult to achieve long-term cross-season detection.

Method used

A background-adaptive automatic identification method of floating objects on the water surface is adopted. By constructing an initial background model under a static background, adjacent frame images are differentially processed in real time to distinguish changing areas and constant areas. The nature of the area is determined through fitting, and the background model is updated to distinguish Float movement area.

Benefits of technology

It improves the accuracy and efficiency of identification of floating objects, reduces misidentifications caused by water surface movement, shadow and lighting changes, and enhances the excavator's ability to accurately salvage surface garbage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115937783B_ABST
    Figure CN115937783B_ABST
Patent Text Reader

Abstract

The present invention provides a background-adaptive automatic recognition method and device for floating objects on the water surface, comprising: taking the monitoring area as the acquisition basis, obtaining at least several frames of water surface images to form a background frame library; performing pixel accumulation analysis at the same position on each frame of the water surface image to calculate the pixels with the largest number of similar pixel values ​​in each position and use them as the background pixels at the corresponding position to form an initial water surface background model; performing differential processing on the acquired two adjacent frames of water surface images to distinguish between a changing area and a constant area, and updating the constant area to the background frame library; fitting the changing area with the water surface background model to distinguish whether the changing area covers the background area or the floating object movement area in the model, if it is the background area, it is updated to the background frame library, and if it is the floating object movement area, it is not updated. The present invention enhances the identifiability and efficiency of floating objects, and lays a foundation for the subsequent positioning and scooping of floating objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of moving target recognition, and in particular to a background-adaptive water surface floating object automatic recognition method and a device thereof. Background Art

[0002] At present, the unmanned operation technology of excavators has made great progress. Many unmanned operation systems have realized unmanned operation in specific scenarios, such as automatic slope repair, automatic road leveling, automatic loading and unloading of vehicles, etc.

[0003] Most automatic operation technologies are based on installing a pair of "eyes" on the excavator, such as visual recognition and positioning technology or GPS positioning technology. The technology for identifying surface garbage (floating objects) is usually visual recognition and positioning technology.

[0004] However, since the construction environment is mostly river water, the water flow will have different flow rates depending on the wind speed or season, which makes the identification work more difficult.

[0005] In the prior art, the detection of moving targets can be roughly divided into the following two categories according to the movement or stillness of the camera: the two situations of camera movement and stillness. Moving state: the camera moves with the identified target and has the characteristic of always keeping the target near the center of the image; Still state: the camera is relatively still, the camera is fixed at a certain position of the excavator, and detects and tracks the target within a certain range.

[0006] Currently, the commonly used methods for moving target tracking include background subtraction, frame difference method and optical flow field method.

[0007] The advantage of background subtraction is that the calculation method is relatively simple and real-time monitoring can be achieved. The disadvantage is that it requires the background to be static or basically unchanged. In the actual environment, the background will continue to change with background disturbances, changes in external lighting conditions, shadows and other factors. The noise suppression effect is poor, the applicable occasions are relatively limited, and it is not suitable for long-term cross-season detection applications.

[0008] The advantage of the inter-frame difference method is that it is sensitive to moving objects. The disadvantage is that the position of the detected object is inaccurate, errors may occur, and all relevant feature pixels cannot be completely extracted, which is not conducive to further object analysis and recognition.

[0009] The advantages of the optical flow method are that it does not require any information about the scene in advance, can detect independently moving objects, has fewer restrictions on the movement of the target between frames, and can handle larger inter-frame displacements. However, most optical flow methods require special hardware support, are time-consuming and computationally complex, and have poor noise resistance, making it difficult to achieve the goal of real-time detection. It can be said that the time overhead of the optical flow method is very large, and its real-time and practicality are also poor. Summary of the invention

[0010] In order to more accurately identify floating objects on the flowing water surface and help the excavator to accurately salvage floating objects on the water surface, one aspect of the present invention provides a background-adaptive automatic identification method for floating objects on the water surface, which is used for the excavator floating object salvage operation, and the method includes: taking the set monitoring area as the acquisition basis, obtaining at least a plurality of frames of water surface images under a static background to form a background frame library; performing pixel accumulation analysis at the same position on each frame of the water surface image in the background frame library to calculate the pixel with the largest number of pixel values ​​convergence in each position, and taking the pixel as the background pixel at the corresponding position to form an initial water surface background model; performing differential processing on two adjacent frames of water surface images in real time to distinguish between a changing area and a constant area, and updating the constant area to the background frame library; and fitting the changing area with the water surface background model to distinguish whether the changing area covers the background area or the floating object movement area in the water surface background model, and if it is the background area, it is updated to the background frame library, and if it is the floating object movement area, it is not updated.

[0011] Preferably, differential processing is performed on two adjacent frames of water surface images, including: assuming that the pixel area of ​​the monitoring area is n, at time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the differential image is Mi(t), which have the following relationship:

[0012] Among them, when the state of the monitored area is constant, the value of Mi(t) tends to 0; when changes occur, the value of Mi(t) will increase rapidly.

[0013] Preferably, fitting the change area with the water surface background model includes: assuming that the introduced trade-off correction factor is ji(t), the influence factor of shadow occlusion is Yi(t), and the influence factor of light intensity change is Gi(t), which have the following relationship with each other:

[0014]

[0015] According to the returned values ​​of Mi(t) and ji(t), it is selected whether to update the changed area to the background frame library. If Mi(t) increases or decreases suddenly while ji(t) is stable, it is updated.

[0016] Preferably, the method also includes: switching the monitoring area in at least the following two situations: Mi(t) increases or decreases suddenly when ji(t) is stable; ji(t) and Mi(t) both increase suddenly to a peak value and then tend to stabilize; not switching the monitoring area in at least one of the following situations: ji(t) and Mi(t) tend to 0 stably.

[0017] Preferably, the method also includes: confirming the area manually marked by the user as the monitoring area, specifically: forming a polygon based on multiple points manually picked by the user in the current screen, generating a circumscribed rectangle of the polygon, and identifying whether the polygon is within the valid area based on the circumscribed rectangle, and if so, confirming it as the monitoring area.

[0018] In order to more accurately identify floating objects on the flowing water surface and help the excavator to accurately salvage floating objects on the water surface, one aspect of the present invention provides a background-adaptive automatic identification device for floating objects on the water surface, which is used for the excavator floating object salvage operation, and the device includes: a background frame library forming module, which is configured to obtain at least a plurality of frames of water surface images under a static background based on a set monitoring area to form a background frame library; a background frame library, which is configured to store a plurality of frames of water surface images; an initial water surface model building module, which is configured to: respectively perform pixel accumulation analysis at the same position on each frame of the water surface image in the background frame library to calculate the pixel with the largest number of similar pixel values ​​in each position, and use the pixel as the initial water surface model; The background pixels at the corresponding positions form an initial water surface background model; the frame difference processing module is configured to perform differential processing on the acquired two adjacent frames of water surface images in real time to distinguish the changing area from the constant area; the first background frame updating module is configured to update the constant area to the background frame library; and the background fitting module is configured to fit the changing area with the water surface background model to distinguish whether the changing area covers the background area or the floating object movement area in the water surface background model; the second background frame updating module is configured to update the water surface background model to the background frame library when the background area is covered, and not update it if it is the floating object movement area.

[0019] Preferably, the frame difference processing module is further configured as follows: assuming that the pixel area of ​​the monitoring area is n, at time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the difference image is Mi(t), which have the following relationship:

[0020] Among them, when the state of the monitored area is constant, the value of Mi(t) tends to 0; when changes occur, the value of Mi(t) will increase rapidly.

[0021] Preferably, the background fitting module is further configured as follows: assuming that the introduced trade-off correction factor is ji(t), the influencing factor of the shadow occlusion is Yi(t), and the influencing factor of the light intensity change is Gi(t), which have the following relationship with each other:

[0022]

[0023] The second background frame update module is further configured to: select whether to update the changed area to the background frame library according to the returned values ​​of Mi(t) and ji(t); if Mi(t) increases or decreases suddenly while ji(t) is stable, update it.

[0024] Preferably, the device also includes: a monitoring area switching module, which is configured to: switch the monitoring area when Mi(t) suddenly increases or decreases when ji(t) is stable, or when ji(t) and Mi(t) both suddenly increase to a peak value and then tend to stabilize; do not switch the monitoring area when ji(t) and Mi(t) are stable and tend to 0.

[0025] Preferably, the device also includes: a human-computer interaction module, configured to confirm the area manually marked by the user as the monitoring area, specifically: forming a polygon based on multiple points manually picked by the user in the current screen, generating a circumscribed rectangle of the polygon, and identifying whether the polygon is within the valid area based on the circumscribed rectangle, and if so, confirming it as the monitoring area.

[0026] The present invention greatly enhances the identifiability and efficiency of floating objects by effectively modeling the water surface background, avoiding the erroneous judgment information in the floating object identification process caused by the interference of multiple floating objects on the water surface, shadow occlusion and the influence of changes in light intensity, and lays the foundation for the subsequent positioning and catching of floating objects. And by mainly applying the recognition method of the present invention to the salvage of floating objects on the water surface, it helps the excavator to accurately and quickly identify floating garbage on the water surface, so as to facilitate the subsequent sending of the position information after identification and positioning to the excavator motion system controller for floating object salvage operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] 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, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0028] Figure 1The figure shows a flow chart of a method for automatically identifying floating objects on a water surface provided by one embodiment of the present invention;

[0029] Figure 2 What is shown is a further schematic diagram of the process of the method for automatically identifying floating objects on the water surface provided by one embodiment of the present invention;

[0030] Figure 3 What is shown is a schematic diagram of constructing an initial water surface background model provided by one embodiment of the present invention;

[0031] Figure 4 It shows a schematic diagram of changes of adjacent frames provided by one embodiment of the present invention;

[0032] Figure 5 It shows a schematic diagram of manual marking of a monitoring area provided by one embodiment of the present invention;

[0033] Figure 6 , 7 They respectively show the structural schematic diagram of a device for automatically identifying floating objects on the water surface provided by one embodiment of the present invention;

[0034] Figure 8 Shown is a schematic diagram of the structure of a computer-readable storage medium provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0035] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0036] One aspect of the present invention provides a background-adaptive method for automatically identifying floating objects on the water surface. The method is preferably used in the automated salvage operation of floating objects on the water surface, and can also be used to identify floating objects on the water surface for other purposes. The automated salvage operation of floating objects on the water surface described is, for example, based on the automated salvage operation of floating objects on the water surface performed by an excavator, and of course, it can also be other engineering machinery, or ships that can travel on the water surface. That is, in actual applications, the method can be applied to other equipment that can also perform salvage operations of floating objects on the water surface, which should also fall within the scope of the present invention.

[0037] In some embodiments, the method at least comprises S101 to S104. Figure 1 , 2 Description The configuration of S101 to S104 is further described by way of example.

[0038] S101, taking the set monitoring area as the acquisition basis, at least a plurality of frames of water surface images are acquired under a static background to form a background frame library.

[0039] In some embodiments, the static background is when the camera is in a stationary state to shoot the picture. In the actual scene, the camera can be movably mounted on the excavator based on the driving control so as to switch to other monitoring areas by moving the camera. The monitoring area described here means the current viewing area of ​​the camera, that is, the area of ​​the captured image, which is pre-adjusted to a standard size for shooting.

[0040] In some embodiments, an initial monitoring area may be subdivided (eg, divided) into a plurality of sub-monitoring areas, and each sub-monitoring area represents a monitoring area in actual application.

[0041] In actual application scenarios, there are inevitably some invalid images in the monitoring area, such as the sky, river bank, trees, etc. that may exist in the distant view. In order to reduce the false detection rate and improve the recognition efficiency, in some embodiments, human-computer interaction is added, that is, the user directly marks the effective water surface monitoring area in the initial monitoring area to confirm the area manually marked by the user as a valid monitoring area. The user manually picks up multiple points (generally greater than or equal to four points) in the current picture in turn to form a polygon, generates its circumscribed rectangle based on the formed polygon, and identifies whether the polygon is in the valid area based on the circumscribed rectangle. If so, it is confirmed as a valid monitoring area. Figure 5 As shown, five points are selected here to form a pentagon ABCDE. By selecting the top, bottom, left and right points of the polygon, the circumscribed rectangle A'B'C'D' of the polygon is obtained. For any point O in the circumscribed rectangle A'B'C'D', if S ABCDE= S ΔQAB +S ΔQAE +S ΔQDE +S ΔQCD+ S ΔQBC , it is considered to be a valid monitoring area.

[0042] The several frames of water surface images described here are image frames obtained based on the video captured by the camera, and these image frames are stored in the background frame library. In order to improve the stability of the data, the more frames of water surface images are obtained, the better. In a specific embodiment, for example, more than 600 frames of water surface images are obtained.

[0043] S102, performing cumulative analysis of pixels at the same position on each frame of the water surface image in the background frame library to calculate the pixel with the largest number of similar pixel values ​​at each position, and using the pixel as the background pixel at the corresponding position to form an initial water surface background model.

[0044] The pixel values ​​described here preferably represent grayscale values ​​[0, 255]. It should be understood that each frame of water surface image needs to be converted to a grayscale image before this. The "convergence" described here means that the grayscale values ​​are the same or within a certain threshold range.

[0045] like Figure 3 As shown, the water surface image data of the first m frames in the shooting video are counted as the background frame library. Each frame of the water surface image is composed of several pixels, and each pixel represents a position. Taking the first pixel in the upper left corner as an example, the pixel values ​​of the m frames of water surface images at this position are cumulatively analyzed (for example, in the form of generating a histogram for analysis) to make a convergence judgment. Suppose the pixel values ​​of the m frames of water surface images at this position are [a1, a2, a3, …, a m ], then calculate the pixel value with the largest number of convergences among these pixel values ​​(when "convergence" is expressed as a grayscale value within a certain threshold range, any grayscale value at each position or the average of each grayscale value can be used as the pixel value at that position), and use this pixel value as the background pixel value at that position, so that this pixel is used as the background pixel at the corresponding position. After the judgment of pixel convergence at all positions is completed, the water surface image after the fusion of each background pixel value is used as the initial water surface background model.

[0046] S103, in real time, performing differential processing on two adjacent frames of water surface images to distinguish a changing area from a constant area, and updating the constant area into the background frame library.

[0047] The two adjacent water surface image frames described refer to the frames after the first m water surface image frames, which can be understood as real-time frames in the monitoring area. The change area and the constant area in the two adjacent water surface image frames are identified by differential processing, and the constant area is the area that has not changed.

[0048] In one embodiment, Figure 4 As shown, it is assumed that after differential processing, the changed areas of frame n and frame n+1 are f1-f5 corresponding to each other, and the remaining area after removing f1-f5 in the monitoring area is the constant area, then the constant area is considered to be the background area, and it is updated to the background frame library.

[0049] In one embodiment, when differential processing is performed on two adjacent frames of water surface images, the specific processing process is as follows: assuming that the pixel area of ​​the monitoring area is n, at time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the differential image is Mi(t), which have the following relationship: Among them, when the state of the monitoring area is constant, the value of Mi(t) tends to 0; when a change occurs, the value of Mi(t) will increase rapidly. Therefore, the change of the value of Mi(t) can be used to intuitively reflect the change of floating objects in the monitoring area. The constant area in the monitoring area is updated to the background frame library, and the changing area in the monitoring area is temporarily regarded as the floating object movement area. The specific result is waiting for further confirmation in S104.

[0050] S104, fitting the changed area with the water surface background model to distinguish whether the changed area in the water surface background model covers the background area or the floating object movement area. If it is the background area, it is updated to the background frame library; if it is the floating object movement area, it is not updated.

[0051] like Figure 4 As shown, the change area f1-f5 is fitted with the water surface background model to distinguish whether the change area f1-f5 covers the background area or the floating object movement area in the water surface background model. Assuming that f4 and f5 have long existed in the water surface background model, that is, the corresponding coverage is the background area, it is considered that the change area of ​​f4 and f5 in real time is not the floating object movement area, but may be a misidentified change area caused by interference from the movement of multiple floating objects, shadow occlusion and changes in light intensity. Therefore, the area is updated to the background frame library; on the contrary, it is assumed that f1, f2, and f3 do not exist in the water surface background model, that is, it is considered that the corresponding coverage is the floating object movement area, and the corresponding area is not updated to the background frame library. Among them, the determined floating object movement area is the target position in the image.

[0052] In one embodiment, although Mi(t) can directly obtain useful information about the state change in the monitoring system, it is easily affected by the interference of multiple floating objects, shadow occlusion and changes in light intensity, and it is very likely to produce erroneous judgment information. In order to avoid this situation and improve the availability of the detection method, some other useful data features must be fully considered to calibrate and confirm the Mi(t) value. When shadow occlusion occurs, the range of image pixel changes is relatively concentrated, and the variance of the differential image is small; when the light intensity changes, even if the foreground value (current frame) changes significantly, the ratio of the foreground to the background (water surface background model) is still close to 0. Therefore, a total trade-off correction factor ji(t) can be introduced. The influencing factor for shadow occlusion is Yi(t), and the influencing factor for light intensity change is Gi(t). Ji(t), Yi(t) and Gi(t) have the following relationship with each other:

[0053]

[0054] According to the returned values ​​of Mi(t) and ji(t), choose whether to update the changed area to the background frame library. When the shadow coverage or light intensity changes and there is no change in the floating object movement area, the value of the differential value variance Mi(t) will increase rapidly due to its own defects, that is, a misjudgment will occur. The value of the correction factor ji(t) will first increase to a peak value, and then decrease toward 0. Until it stabilizes. In the case where Mi(t) changes and ji(t) remains unchanged, that is, Mi(t) increases or decreases suddenly when ji(t) is stable, the changed area will be updated to the background frame library, and the monitoring area will be switched at the same time, that is, switch to the next monitoring area.

[0055] In one embodiment, according to the mathematical model between Gi(t), ji(t), Yi(t) and Gi(t), when there are changes in the flow of floating objects in and out of the area, the differential value variance Mi(t) and the correction factor ji(t) will increase rapidly. After reaching a certain value, they will tend to be stable after reaching a peak value, or the slow changes will be basically negligible. In this case, the monitoring area is switched and the background of the area is updated at the same time. If ji(t) and Mi(t) tend to 0 stably, it means that the state of the monitoring area has not changed, and there is no need to switch the monitoring area and update the background of the area at the same time. According to the initial monitoring state and the real-time regional state judgment, the real-time distribution of floating objects in the entire monitoring area can be roughly obtained, which provides accurate input conditions for the subsequent salvage of floating objects.

[0056] In some embodiments, it may be that in S101, it is necessary to perform image preprocessing on several frames of water surface images obtained, and its function is to reduce or eliminate noise as much as possible and reduce the error rate of subsequent data processing. In image preprocessing, the method often used is the smoothing filtering method. The most ideal situation is to be able to get rid of these noises and make the outlines and lines of floating garbage as clear as possible. The median filtering method is adopted here, and a sliding window with an odd number of points is set to find the median value of each point in the window and replace the gray value of the specified point. When the number of elements is odd, the median is the middle value after sorting, and when the number of elements is even, the median is the average gray value of the two middle elements after sorting.

[0057] The present invention greatly enhances the identifiability and efficiency of floating objects by effectively modeling the water surface background, avoiding the erroneous judgment information in the floating object identification process caused by the interference of multiple floating objects on the water surface, shadow occlusion and the influence of changes in light intensity, and lays the foundation for the subsequent positioning and catching of floating objects. And by mainly applying the recognition method of the present invention to the salvage of floating objects on the water surface, it helps the excavator to accurately and quickly identify floating garbage on the water surface, so as to facilitate the subsequent sending of the position information after identification and positioning to the excavator motion system controller for floating object salvage operations.

[0058] refer to Figure 6 As shown, one aspect of the present invention provides a background-adaptive automatic identification device for floating objects on the water surface, which is used for excavator floating object salvage operations.

[0059] In some embodiments, the device is composed of at least a background frame library forming module 201, a background frame library 202, an initial water surface model building module 203, a frame difference processing module 204, a first background frame updating module 205, a background fitting module 206 and a second background frame updating module 207.

[0060] The background frame library forming module 201 is configured to acquire at least a plurality of water surface image frames under a static background based on a set monitoring area to form a background frame library.

[0061] The background frame library 202 is configured to store a plurality of frames of water surface images.

[0062] Among them, the initial water surface model construction module 203 is configured to: perform cumulative analysis of pixels at the same position on each frame of the water surface image in the background frame library 202 to calculate the pixel with the largest number of similar pixel values ​​in each position, and use the pixel as the background pixel at the corresponding position to form an initial water surface background model.

[0063] The frame difference processing module 204 is configured to perform difference processing on two adjacent frames of water surface images acquired in real time to distinguish between a change area and a constant area;

[0064] The first background frame updating module 205 is configured to update the constant region into the background frame library 202 .

[0065] The background fitting module 206 is configured to fit the change region with the water surface background model to distinguish whether the change region covers the background region or the floating object movement region in the water surface background model.

[0066] The second background frame updating module 207 is configured to update the background frame library 202 when the water surface background model covers a background area, and not to update the background frame library 202 when the water surface background model covers a floating object movement area.

[0067] In some embodiments, the frame difference processing module 204 is further configured as follows: assuming that the pixel area of ​​the monitoring area is n, at time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the difference image is Mi(t), which have the following relationship: Among them, when the state of the monitored area is constant, the value of Mi(t) tends to 0; when changes occur, the value of Mi(t) will increase rapidly.

[0068] In some embodiments, the background fitting module 206 is further configured as follows: assuming that the introduced trade-off correction factor is ji(t), the influence factor of the shadow occlusion is Yi(t), and the influence factor of the light intensity change is Gi(t), which have the following relationship:

[0069]

[0070] The second background frame update module 207 is further configured to select whether to update the changed area to the background frame library according to the returned values ​​of Mi(t) and ji(t); if Mi(t) increases or decreases suddenly while ji(t) is stable, update it.

[0071] In some embodiments, the device also includes: a monitoring area switching module 208, which is configured to: switch the monitoring area when Mi(t) suddenly increases or decreases when ji(t) is stable, or when ji(t) and Mi(t) both suddenly increase to a peak value and then tend to stabilize; do not switch the monitoring area when ji(t) and Mi(t) are stable and tend to 0.

[0072] In some embodiments, the device also includes: a human-computer interaction module 209, which is configured to confirm the area manually marked by the user as the monitoring area, specifically: forming a polygon based on multiple points manually picked by the user in the current screen, generating a circumscribed rectangle of the polygon, and identifying whether the polygon is within the valid area based on the circumscribed rectangle, and if so, confirming it as the monitoring area.

[0073] refer to Figure 7As shown, one aspect of the present invention provides a background-adaptive automatic recognition device for floating objects on the water surface, comprising: a memory 301 and a processor 302, the memory 301 is used to store a computer program, and the processor 302 is used to call the computer program to execute the corresponding steps of a background-adaptive automatic recognition method for floating objects on the water surface provided in an embodiment of the present invention.

[0074] refer to Figure 8 As shown, one aspect of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the corresponding steps of a background-adaptive method for automatic identification of floating objects on the water surface provided by an embodiment of the present invention are executed.

[0075] The computer readable storage medium includes a computer program for executing a computer process on a computing device. In some embodiments, the computer readable storage medium is provided using a signal bearing medium 401. The signal bearing medium 401 may include one or more program instructions, which when executed by one or more processors may provide the above Figure 1-2 Thus, for example, one or more features of a background-adaptive method for automatically identifying floating objects on a water surface may be performed by one or more instructions associated with the signal-bearing medium 401. In addition, Figure 8 The program instructions in also describe example instructions. In some examples, the signal bearing medium 401 may include a computer readable medium 402, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM) or a random access memory (RAM), and the like.

[0076] In some implementations, signal bearing medium 401 may include computer recordable medium 403 such as, but not limited to, memory, read / write (R / W) CD, R / W DVD, and the like.

[0077] In some implementations, signal bearing medium 401 may include communication medium 404 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0078] The signal bearing medium 401 may be communicated by a wireless form of communication medium 404 (eg, a wireless communication medium complying with the IEEE 802.11 standard or other transmission protocols). The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.

[0079] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0080] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0081] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A background-adaptive method for automatically identifying floating objects on the water surface, used for excavator floating object salvage operations, characterized in that: The method comprises: Based on the set monitoring area, at least several frames of water surface images are acquired under a static background to form a background frame library; Performing pixel accumulation analysis at the same position on each frame of the water surface image in the background frame library to calculate the pixel with the largest number of similar pixel values ​​at each position, and using the pixel as the background pixel at the corresponding position to form an initial water surface background model; In real time, performing differential processing on two adjacent frames of water surface images to distinguish a changing area from a constant area, and updating the constant area into the background frame library; and Fitting the changed area with the water surface background model to distinguish whether the changed area in the water surface background model covers the background area or the floating object movement area, if it is the background area, updating it to the background frame library, if it is the floating object movement area, not updating it; The differential processing of two adjacent frames of water surface images obtained includes: Assume that the pixel area of ​​the monitoring area is n. At time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the differential image is Mi(t). They have the following relationship: Among them, when the state of the monitored area is constant, the value of Mi(t) tends to 0; when changes occur, the value of Mi(t) will increase rapidly; The step of fitting the change region to the water surface background model includes: Assume that the introduced trade-off correction factor is ji(t), the influencing factor of shadow occlusion is Yi(t), and the influencing factor of light intensity change is Gi(t), which have the following relationship with each other: According to the returned values ​​of Mi(t) and ji(t), it is selected whether to update the changed area to the background frame library. If Mi(t) increases or decreases suddenly while ji(t) is stable, it is updated.

2. The method for automatically identifying floating objects on the water surface according to claim 1, characterized in that: The method further comprises: Switch the monitoring area in at least the following two situations: When ji(t) is stable, Mi(t) increases or decreases suddenly; Both ji(t) and Mi(t) suddenly increase to the peak value and then tend to be stable; The monitoring area is not switched in at least one of the following cases: ji(t) and Mi(t) tend to 0 stably.

3. The method for automatically identifying floating objects on the water surface according to claim 1 or 2, characterized in that: The method further comprises: The area manually marked by the user is confirmed as the monitoring area, specifically: a polygon is formed based on multiple points manually picked by the user in the current picture, a circumscribed rectangle of the polygon is generated, and based on the circumscribed rectangle, it is identified whether the polygon is within the valid area, and if so, it is confirmed as the monitoring area.

4. A background-adaptive automatic identification device for floating objects on the water surface, used for excavator floating object salvage operations, characterized in that: The device comprises: A background frame library forming module is configured to acquire at least a plurality of water surface images under a static background based on a set monitoring area to form a background frame library; A background frame library is configured to store a plurality of frames of water surface images; The initial water surface model building module is configured to: perform pixel accumulation analysis at the same position on each frame of the water surface image in the background frame library to calculate the pixel with the largest number of similar pixel values ​​at each position, and use the pixel as the background pixel at the corresponding position to form an initial water surface background model; A frame difference processing module is configured to perform difference processing on two adjacent frames of water surface images acquired in real time to distinguish a change area from a constant area; A first background frame updating module is configured to update the constant region into the background frame library; and A background fitting module is configured to fit the change region with the water surface background model to distinguish whether the change region covers the background region or the floating object movement region in the water surface background model; A second background frame updating module is configured to update the background frame library when the water surface background model covers a background area, and not to update the background frame library when the water surface background model covers a floating object movement area; Wherein, the frame difference processing module is further configured as follows: Assume that the pixel area of ​​the monitoring area is n. At time t, the pixel value of the previous frame of the monitoring area is Bi(t), the pixel value of the current frame is Fi(t), and the cumulative variance of the differential image is Mi(t). They have the following relationship: Among them, when the state of the monitored area is constant, the value of Mi(t) tends to 0; when changes occur, the value of Mi(t) will increase rapidly; The background fitting module is further configured as follows: assuming that the introduced trade-off correction factor is ji(t), the influencing factor of the shadow occlusion is Yi(t), and the influencing factor of the light intensity change is Gi(t), which have the following relationship: The second background frame update module is further configured to: select whether to update the changed area to the background frame library according to the returned values ​​of Mi(t) and ji(t); if Mi(t) increases or decreases suddenly while ji(t) is stable, update it.

5. The automatic identification device for floating objects on the water surface according to claim 4 is characterized in that: The device also includes: The monitoring area switching module is configured to: switch the monitoring area when Mi(t) increases or decreases suddenly when ji(t) is stable, or when ji(t) and Mi(t) both increase suddenly to a peak value and then tend to be stable; do not switch the monitoring area when ji(t) and Mi(t) are stable and tend to 0.

6. The automatic identification device for floating objects on the water surface according to claim 4 or 5, characterized in that: The device also includes: The human-computer interaction module is configured to confirm the area manually marked by the user as the monitoring area, specifically: a polygon is formed based on multiple points manually picked by the user in the current picture, a circumscribed rectangle of the polygon is generated, and based on the circumscribed rectangle, it is identified whether the polygon is within the valid area, and if so, it is confirmed as the monitoring area.