Image-based operation warning area recognition method, warning method and operation machinery
Through the image-based early warning area recognition method, combined with the perspective imaging principle and living object detection, the problem of low accuracy in identifying the early warning area of the boom-type operating machinery is solved, accurate early warning of the area under the boom is achieved, and the number of invalid early warnings is reduced. information, improving security.
Patent Information
- Application Number
- CN202410891010.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-04
AI Technical Summary
In the existing technology, the accuracy of identifying the operation warning area of boom-type operating machinery is not high, which results in the inability to effectively avoid dangerous situations under the hoisting weight and generates invalid warning information.
The image-based early warning area identification method is used to determine the pixel coordinates of the operational early warning area by obtaining the height and tilt angle of the image acquisition equipment from the ground, combined with the perspective imaging principle, and uses the preset living animal recognition model to detect living objects. Send an alarm message.
It improves the identification accuracy of operation warning areas, reduces invalid warning information, ensures accurate warnings for designated areas, and enhances worker safety.
Smart Images

Figure CN118411529B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of operating machinery, and specifically to an image-based operating warning area recognition method, a warning method, and an operating machinery. Background Art
[0002] Boom-type operating machinery is an important tool and equipment for realizing mechanization and automation of production processes in modern industrial production and construction transportation. It has a wide range of application scenarios, can easily achieve high-altitude operations, and meet complex working conditions. However, during the operation of boom-type operating machinery, taking lifting machinery as an example, the weight will inevitably swing and fall, affecting the operation of the operating machinery and endangering the lives of workers. Therefore, it is necessary to conduct pedestrian safety warnings for the area below the boom of boom-type operating machinery during operation to avoid accidents. In the prior art, there is a problem of low recognition accuracy in the identification of the operation warning area of boom-type operating machinery. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an image-based operation warning area recognition method, warning method, processor, operation machinery, new energy vehicle and storage medium, so as to solve the problem of low accuracy in operation warning area recognition of lifting machinery in the prior art.
[0004] In order to achieve the above-mentioned purpose, the first aspect of the present application provides an image-based operation warning area recognition method, wherein the operation machine includes a boom and an image acquisition device arranged on the boom, and the projection point of the target point of the boom on the ground is at the center point of the field of view of the image acquisition device, and the method includes:
[0005] Obtaining the height of the image acquisition device from the ground, the inclination angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area;
[0006] According to the height from the ground, the tilt angle and the actual range, the coordinates of the corresponding multiple positioning points in the operation warning area in the camera coordinate system are determined;
[0007] Based on the perspective imaging principle, the coordinates of multiple positioning points in the camera coordinate system are converted into pixel coordinates on the image;
[0008] According to the pixel coordinates of the multiple positioning points on the image, the target pixel area of the operation warning area on the image is determined.
[0009] In an embodiment of the present application, based on the principle of perspective imaging, the coordinates of multiple positioning points in the camera coordinate system are converted into pixel coordinates on the image, including: determining the distance from the optical center of the image acquisition device to the projection plane according to the height from the ground, the tilt angle and the actual range; obtaining the current height of the target point of the arm and the target focal length of the image acquisition device; based on a second corresponding relationship between a preset pixel dot matrix physical value and the focal length of the image acquisition device, determining the corresponding target pixel dot matrix physical value according to the target focal length; according to the target pixel dot matrix physical value, the distance from the optical center of the image acquisition device to the projection plane and the coordinates of the multiple positioning points in the camera coordinate system, determining the pixel coordinates of the corresponding multiple positioning points in the operation warning area on the image through a perspective imaging algorithm.
[0010] In an embodiment of the present application, before acquiring the target focal length of the image acquisition device, the method further includes: determining the target focal length of the image acquisition device according to the current height based on a first corresponding relationship between a predetermined target point height and the focal length of the image acquisition device.
[0011] In an embodiment of the present application, the coordinates of multiple positioning points corresponding to the operation warning area in the camera coordinate system are determined according to the height from the ground, the tilt angle and the actual range, including: when it is determined that the tilt angle is not 0, based on the similar triangle algorithm, the offsets of the multiple positioning points corresponding to the operation warning area to the optical center of the image acquisition device are determined according to the height from the ground, the tilt angle and the actual range; the coordinates of the multiple positioning points corresponding to the operation warning area in the camera coordinate system are determined according to the offsets of the multiple positioning points corresponding to the operation warning area to the optical center of the image acquisition device.
[0012] In an embodiment of the present application, the working machine also includes a supporting device, which is arranged on the arm and is used to install the image acquisition equipment. The method also includes: controlling the supporting device to be in a target attitude angle position, the target attitude angle being the attitude angle when the projection point of the target point of the arm on the ground is at the center point of the field of view of the image acquisition equipment.
[0013] A second aspect of the present application provides an early warning method for an operating machine, wherein the operating machine includes a boom and an image acquisition device arranged on the boom, wherein the projection point of the boom's target point on the ground is located at the center point of the field of view of the image acquisition device, and the operating early warning method includes: identifying a target pixel area of an operating warning area of the operating machine on an image, wherein the target pixel area is identified according to the above-mentioned image-based operating warning area identification method; performing living thing detection on the target pixel area through a preset living thing recognition model, and issuing an alarm message when a living thing is detected.
[0014] In an embodiment of the present application, the preset living thing recognition model includes a daytime living thing recognition model and a nighttime living thing recognition model. The preset living thing recognition model is used to perform living thing detection on the target pixel area, including: acquiring image data of the target pixel area; determining the day and night conditions of the current environment based on the image data and a preset day and night discrimination threshold; when it is determined that the current environment is daytime, performing living thing detection on the target pixel area through the daytime living thing recognition model; when it is determined that the current environment is night, performing living thing detection on the target pixel area through the night living thing recognition model.
[0015] In an embodiment of the present application, the operating machinery also includes an infrared fill light, and the method also includes: when it is determined that the current environment is dark, determining the darkness level of the current environment based on image data; based on a predetermined third correspondence between the infrared fill light power and the darkness level, determining the target power of the infrared fill light according to the darkness level of the current environment; and controlling the infrared fill light to illuminate the operating warning area at the target power.
[0016] A third aspect of the present application provides a processor configured to execute the above-mentioned image-based operation warning area identification method, or the above-mentioned warning method for operation machinery.
[0017] A fourth aspect of the present application provides an operating machine, comprising the device for identifying an operating warning area of the operating machine according to the above-mentioned device and the operating warning device for the operating machine according to the above-mentioned device, or the processor according to the above-mentioned device.
[0018] The fifth aspect of the present application provides a new energy vehicle, which may include: a power battery; an arm; an image acquisition device; and a processor according to the above.
[0019] A sixth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned image-based operation warning area identification method, or the above-mentioned warning method for operation machinery.
[0020] Through the above technical solution, first obtain the height of the image acquisition device from the ground, the tilt angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area, and then determine the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system based on the height from the ground, the tilt angle, and the actual range. Then, based on the perspective imaging principle, convert the coordinates of the multiple positioning points in the camera coordinate system into pixel coordinates on the image, and finally determine the target pixel area of the operation warning area on the image based on the pixel coordinates of the multiple positioning points on the image. The present application can accurately identify the designated operation warning area and issue a warning to the area, overcome the influence of factors such as the tilt of the image acquisition device, improve the recognition accuracy of the operation warning area, and effectively avoid the interference of environmental information outside the operation warning area, thereby reducing invalid warning information.
[0021] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0023] Figure 1 A flowchart of an image-based operation warning area recognition method according to an embodiment of the present application is schematically shown;
[0024] FIG2 (a) schematically shows a working environment diagram when the tilt angle is 0 according to an embodiment of the present application;
[0025] FIG2( b ) schematically shows a working environment diagram when the tilt angle is not 0 according to an embodiment of the present application;
[0026] FIG3 (a) schematically shows a projection image in a tilted state of a camera according to an embodiment of the present application;
[0027] FIG3( b ) schematically shows a projection image in another camera tilt state according to an embodiment of the present application;
[0028] Figure 4 A flowchart of an early warning method for a working machine according to an embodiment of the present application is schematically shown;
[0029] Figure 5 An image slice diagram according to an embodiment of the present application is schematically shown;
[0030] Figure 6 The hardware architecture diagram of an early warning device for an operating machine according to a specific embodiment of the present application is schematically shown;
[0031] Figure 7 The flowchart schematically shows a warning method for an operating machine according to a specific embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments 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 this application.
[0033] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0034] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0035] Figure 1 The following schematically shows a flow chart of a method for identifying a job warning area based on an image according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides an image-based operation warning area recognition method, the operation machine includes a boom and an image acquisition device arranged on the boom, the projection point of the target point of the boom on the ground is at the center point of the field of view of the image acquisition device, taking the method applied to a processor as an example, the method may include the following steps:
[0036] Step S101: obtaining the height of the image acquisition device from the ground, the inclination angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area.
[0037] Step S102: Determine the coordinates of multiple positioning points corresponding to the operation warning area in the camera coordinate system according to the height from the ground, the tilt angle and the actual range.
[0038] Step S103: Based on the perspective imaging principle, the coordinates of the multiple positioning points in the camera coordinate system are converted into pixel coordinates on the image.
[0039] Step S104: determining a target pixel area of the operation warning area on the image according to the pixel coordinates of the plurality of positioning points on the image.
[0040] It can be understood that the boom-type operating machinery can be a lifting machinery, an aerial working vehicle, an emergency rescue vehicle (such as a high-lift jet fire truck, etc.), a pump truck, etc. In the application embodiment, the operating machinery is taken as an example for explanation. During the operation of the lifting machinery, such as high-platform lifting, partition wall lifting, long-distance lifting and other operating scenes, it is impossible to observe the safety situation under the lifting weight in real time. To address this problem, traditional technologies usually set the area under the boom as the area of interest, and then perform pedestrian recognition in the area of interest. However, there is a lack of coverage for the surrounding area under the most dangerous lifting weight, especially the part beyond the projection of the boom. At the same time, this method will enlarge the warning area, resulting in many invalid warning messages. Based on this, the embodiment of the present application proposes an image-based operation warning area recognition method, focusing on the specified area under the lifting weight, converting the specified physical area under the lifting weight into the image area, and can generate invalid warning information without generating invalid warning information under the premise of correct warning.
[0041] Specifically, the operating machinery in the embodiment of the present application includes a boom and an image acquisition device arranged on the boom. The image acquisition device can be a camera or a video camera, etc. The projection point of the target point of the boom on the ground is at the center point of the field of view of the image acquisition device, and is also the center point of the operation warning area. In the embodiment of the present application, the image acquisition device is a camera, and the target point is the arm tip of the boom. As the operating machinery is operating, the processor can obtain the height of the image acquisition device from the ground, the tilt angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area in real time, wherein the actual range of the operation warning area is given by the relevant operator, and can be the radius of a circle with the hoisting weight as the center. According to the height from the ground, the tilt angle, and the actual range of the operation warning area, the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system can be determined based on the triangle similarity algorithm, and then based on the perspective imaging principle, the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system are converted into pixel coordinates on the image. According to the pixel coordinates of the multiple positioning points on the image, the target pixel area of the operation warning area on the image can be determined.
[0042] Through the above technical solution, first obtain the height of the image acquisition device from the ground, the tilt angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area, and then determine the pixel coordinates of the corresponding multiple positioning points of the operation warning area on the image according to the height from the ground, the tilt angle and the actual range, and finally, according to the coordinates of the multiple positioning points in the camera coordinate system, based on the perspective imaging principle, convert the coordinates of the multiple positioning points in the camera coordinate system into pixel coordinates on the image to determine the target pixel area of the operation warning area on the image. This application can accurately identify the designated operation warning area and issue a warning to the area, overcome the influence of factors such as the tilt of the image acquisition device, improve the recognition accuracy of the operation warning area, and effectively avoid the interference of environmental information outside the operation warning area, thereby reducing invalid warning information.
[0043] In an embodiment of the present application, the working machine may further include a supporting device, which is arranged on the arm and is used to install the image acquisition device. The method also includes: controlling the supporting device to be in a target attitude angle position, the target attitude angle being the attitude angle when the projection point of the target point of the arm on the ground is at the center point of the field of view of the image acquisition device.
[0044] Specifically, the support device can be a pan-tilt platform, the camera is installed on the pan-tilt platform, and the pan-tilt platform base can be inverted at the top of the main arm tip of the boom, or it can be installed at other locations that can capture the surrounding area below the boom. During the operation of the operating machinery, the amplitude change action will bring disordered changes to the camera's posture, and it also includes a variety of working conditions, such as the auxiliary arm working condition, the super-lifting working condition, etc. In order to always keep the warning area under the load at a constant size in a variety of complex situations, it is necessary to make the projection point of the arm tip on the ground at the center point of the camera's field of view, so it is necessary to calibrate the camera's posture in advance. First, control the crane to perform the amplitude change action so that the amplitude change angle is 0 degrees, and then control the pan-tilt action under various working conditions so that the projection point of the arm tip on the ground is at the center point of the camera's field of view, and then read the parameters of the inertial measurement unit installed on the pan-tilt platform to obtain the current attitude angle of the pan-tilt platform and record it as the target attitude angle. When the operating machine actually performs the amplitude variation action, the processor reads the attitude angle of the gimbal in real time and controls the gimbal to perform corresponding actions to keep the attitude angle of the gimbal at the target attitude angle, so that the projection point of the arm tip on the ground is at the center point of the camera's field of view, so as to facilitate the subsequent calculation of the coordinates of the corresponding multiple positioning points in the operation warning area in the camera coordinate system. Moreover, such a set of structures can cover a variety of working conditions without the need to design a separate structure, thereby improving versatility.
[0045] In an embodiment of the present application, determining the coordinates of multiple corresponding positioning points of the operation warning area in the camera coordinate system according to the height from the ground, the tilt angle and the actual range may include: when it is determined that the tilt angle is not 0, determining the offsets of the multiple corresponding positioning points of the operation warning area to the optical center of the image acquisition device based on the similar triangle algorithm according to the height from the ground, the tilt angle and the actual range; determining the coordinates of the multiple corresponding positioning points of the operation warning area in the camera coordinate system according to the offsets of the multiple corresponding positioning points of the operation warning area to the optical center of the image acquisition device and the distance from the optical center of the image acquisition device to the projection plane.
[0046] It can be understood that when the tilt angle of the camera is 0, that is, the camera is vertically downward, the projection plane of the camera optical center is the ground. At this time, the coordinates of multiple positioning points in the camera coordinate system can be directly calculated according to the range of the operation warning area.
[0047] FIG2 (a) schematically shows a working environment diagram when the tilt angle is 0 according to a specific embodiment of the present application. As shown in FIG2 (a), when the tilt angle of the camera relative to the vertical direction is 0, the camera is vertically downward. At this time, the coordinates of the corresponding multiple positioning points of the working warning area in the camera coordinate system can be directly determined according to the size of the given working warning range. In one example, the working warning area is a circle with a radius of R and the projection point of the arm tip as the center. Then the identification area corresponding to the working warning area in the camera image is the circumscribed square of the circle with a radius of R, and the positioning points are the four vertices of the circumscribed square. Since the radius of the circle is R, the side length of the circumscribed square is 2R, and the coordinates of its four vertices, i.e., the four positioning points, in the camera coordinate system are (R, R), (-R, R), (-R, -R), (R, -R).
[0048] FIG2 (b) schematically shows a working environment diagram when the tilt angle is not 0 according to another specific embodiment of the present application. As shown in FIG2 (b), when the tilt angle of the camera relative to the vertical direction is not 0, the projection plane of the camera optical center is an inclined plane, and the camera operation warning area is an ellipse in the camera image. Then, the identification area corresponding to the operation warning area in the camera image is the circumscribed rectangle of the ellipse, and the positioning points are the four vertices of the circumscribed rectangle. At this time, it is necessary to calculate the offsets of the corresponding multiple positioning points of the operation warning area to the optical center of the camera based on the similar triangle algorithm, and then determine the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system according to the offsets. FIG3 (a) schematically shows a projection diagram of a camera in a tilted state according to an embodiment of the present application. As shown in FIG3 (a), ∠OAD is the tilt angle of the camera, AO is the height of the camera from the ground, and points B and C are the two corresponding positioning points of the operation warning area. At this time, the camera's tilt angle is greater than the camera's half field of view. For point B, the projection plane is an inclined plane under the ground. The distance from the optical center to the projection plane is AE=AD+DE, where DE=BD sin(∠DBE),∠DBE=∠OAD. According to the similarity of triangles, we can get the offset distance of the camera optical center BE=AO BD / AD, where AD=AO / cos(∠OAD). The coordinates of point B in the camera coordinate system can be obtained based on the offset BE from point B to the optical center of the camera and the optical center. For point C, the projection plane is an inclined plane above the ground, AF is the vertical distance from the optical center of the camera to the projection plane, and CF is the offset from point C to the optical center of the camera. Similarly, the coordinates of point C in the camera coordinate system can be obtained. After determining the coordinates of points B and C in the camera coordinate system, the coordinates of the other two positioning points in the camera coordinate system can be determined based on the coordinates of points B and C in the camera coordinate system combined with the size of the operation warning area. In this way, the coordinates of multiple positioning points corresponding to the operation warning area in the camera coordinate system are obtained.
[0049] Similarly, FIG3 (b) schematically shows another projection diagram of the camera in an inclined state according to an embodiment of the present application. As shown in FIG3 (b), ∠OAB is the tilt angle of the camera, AO is the height of the camera from the ground, and points D and C are two corresponding positioning points of the operation warning area. At this time, the tilt angle of the camera is less than the half field of view of the camera. According to the similarity of the triangle, the coordinates of points D and C in the camera coordinate system can be calculated respectively, thereby obtaining the coordinates of the corresponding multiple positioning points in the operation warning area in the camera coordinate system.
[0050] In the embodiment of the present application, in step S102, first, the distance from the optical center of the image acquisition device to the projection plane can be determined according to the height from the ground, the tilt angle and the actual range, then the current height of the target point of the boom and the target focal length of the image acquisition device are obtained, and the corresponding target pixel dot matrix physical value is determined according to the target focal length based on the preset second correspondence between the pixel dot matrix physical value and the focal length of the image acquisition device, and finally, the pixel coordinates of the corresponding multiple positioning points in the operation warning area on the image are determined by the perspective imaging algorithm according to the target pixel dot matrix physical value, the distance from the optical center of the image acquisition device to the projection plane and the coordinates of the multiple positioning points in the camera coordinate system. In this way, based on the perspective imaging principle, the coordinates of the multiple positioning points in the camera coordinate system are converted into pixel coordinates on the image.
[0051] In an embodiment of the present application, before acquiring the target focal length of the image acquisition device, the method may further include: determining the target focal length of the image acquisition device according to the current height based on a first correspondence between a predetermined target point height and the focal length of the image acquisition device.
[0052] It can be understood that the first correspondence is a tracking table of the focal length and height from the ground of the image acquisition device that has been calibrated offline in advance. In one example, the image acquisition device is set at the tip of the arm. The calibration process is to first install the camera at the top of the arm tip, manually control the camera to keep it vertically downward, then make pedestrians stand at different positions in the camera's field of view, manually select pedestrian targets, calculate the pixel size of the target frame, and when the pixel size of the target frame is less than 50 pixels, the camera will be manually selected. When the target pixel size is greater than 50 pixels, the camera is controlled to zoom until the target pixel size is greater than 50 pixels. 50pixel, note the camera focal length corresponding to the camera height at this time. Repeat the above steps until all camera heights are calibrated. In this way, a tracking table of camera height and camera focal length is obtained. The second corresponding relationship is a table of pixel dot physical values at different focal lengths that is pre-calibrated offline based on the perspective imaging principle of the camera. First, place the camera horizontally to ensure that the optical center of the camera coincides with the center of the chessboard, determine the vertical distance H from the center of the chessboard to the optical center of the camera in millimeters, and then obtain the physical distance D of the specified corner points of the chessboard in millimeters, as well as the pixel distance W of the specified corner points of the chessboard in pixels. According to the formula f=H W / D Calculate the physical value of the pixel matrix. Adjust the focal length and repeat the above steps to get the physical value table of the pixel matrix.
[0053] Specifically, the processor can obtain the height of the camera from the ground in real time, and determine the target camera focal length corresponding to the current height from the ground according to the follow-up table of the height from the ground and the camera focal length, so that the image quality obtained can be clearer. Since the focal length of the camera lens can affect the viewing angle and magnification of the shooting picture, and indirectly affect the distribution and performance of the pixels in the picture, after determining the target focal length, the processor determines the target pixel dot matrix physical value according to the pre-calibrated pixel dot matrix physical value table under different focal lengths and the target camera focal length. When the camera tilt angle is 0, the projection plane of the camera optical center is the ground, and the distance from the camera optical center to the projection plane is the height of the camera from the ground. When the camera tilt angle is not 0, the projection plane of the camera optical center is an inclined plane, and the distance from the camera optical center to the projection plane can be calculated based on triangle similarity, according to the height from the ground, the tilt angle and the actual range. In this way, according to the perspective imaging algorithm, combined with the physical value of the target pixel dot matrix, the distance from the optical center of the image acquisition device to the projection plane, and the coordinates of multiple positioning points in the camera coordinate system, the pixel coordinates of the corresponding multiple positioning points in the operation warning area on the image can be determined. Among them, the perspective imaging algorithm satisfies the following formula:
[0054]
[0055] in, is the pixel coordinate of the positioning point on the image, is the coordinate of the positioning point in the camera coordinate system, is the physical value of the pixel matrix, is the distance from the optical center to the projection plane.
[0056] Figure 4 The flowchart of a warning method for a working machine according to an embodiment of the present application is schematically shown. Figure 4 As shown, an embodiment of the present application provides an early warning method for an operating machine, wherein the operating machine includes a boom and an image acquisition device disposed on the boom, and a projection point of a target point of the boom on the ground is located at the center point of the field of view of the image acquisition device. The operating early warning method may include the following steps:
[0057] Step 401: Identify a target pixel region of an operation warning region of an operation machine on an image, wherein the target pixel region is identified according to the above-mentioned image-based operation warning region identification method.
[0058] Step 402: Performing living thing detection on the target pixel area through a preset living thing recognition model, and issuing an alarm message when a living thing is detected.
[0059] Figure 5 An image slice diagram according to an embodiment of the present application is schematically shown. Figure 5As shown, in order to ensure the recognition rate of small target pedestrians under the hanging weight, after determining the target pixel area of the operation warning area of the operation machinery on the image, the processor performs a horizontal slicing operation on the image of the target pixel area, that is, a sliding window slicing. The sliding window process keeps the horizontal overlap of the front and rear areas greater than 100 pixels, so as to prevent the target information of the front and rear connection areas from being lost during the slicing process. For the sliced image, the processor performs a live object detection on the target pixel area through a preset live object recognition model, and issues an alarm message when a live object is detected. Due to the difference in lighting conditions during the day and at night, the embodiment of the present application adopts two preset live object recognition models, including a daytime live object recognition model and a nighttime live object recognition model. Among them, the daytime live object recognition model is a model for identifying live objects in the operation warning area during the day based on the offline training of a deep neural network using a daytime data set; the night recognition model is a model for identifying live objects in the operation warning area at night based on the offline training of a deep neural network using a nighttime data set. It should be noted that the living object includes but is not limited to pedestrians. The processor can identify the image and determine the day and night state of the current environment based on multi-feature fusion, and then call the daytime living creature recognition model or the nighttime living creature recognition model according to the day and night state. In this way, it can provide correct warning without generating invalid warning information, and has an all-weather warning function.
[0060] In the embodiment of the present application, the preset living thing recognition model includes a daytime living thing recognition model and a nighttime living thing recognition model. In step 402, image data of the target pixel area is obtained; the daytime and night conditions of the current environment are determined according to the image data and the preset daytime and night discrimination threshold; when the current environment is determined to be daytime, the living thing detection is performed on the target pixel area through the daytime living thing recognition model; when the current environment is determined to be nighttime, the living thing detection is performed on the target pixel area through the nighttime living thing recognition model. In this way, the living thing detection of the target pixel area can be achieved through the preset living thing recognition model.
[0061] In an embodiment of the present application, the operating machinery also includes an infrared fill light, and the method may further include: when it is determined that the current environment is dark, determining the darkness level of the current environment based on image data; based on a predetermined third correspondence between the infrared fill light power and the darkness level, determining the target power of the infrared fill light according to the darkness level of the current environment; and controlling the infrared fill light to illuminate the operating warning area at the target power.
[0062] Specifically, after the processor obtains the image data of the target pixel area in real time, it calculates the image saturation and the image hue in turn, and normalizes them to 0 to 1 respectively, and then counts the dark pixel ratio darkratio of the image. According to the dark pixel ratio and the preset day and night discrimination threshold thresh and the discrimination algorithm, it can be identified whether the current environment is night or day. Among them, the discrimination algorithm satisfies the following formula:
[0063] +β hue+γ darkratio
[0064] Among them, α+β+γ=1, is the image processing result of the target pixel area. , it indicates that the current environment is daytime, otherwise it is nighttime. When it is determined that the current environment is daytime, the target pixel area is detected for liveness through the daytime liveness recognition model. When it is determined that the current environment is nighttime, the processor first calculates the darkness level of the current environment, and then determines the appropriate fill light intensity, i.e., the target power of the infrared fill light, based on the infrared fill light power and darkness level follow-up table, and controls the infrared fill light to illuminate the operation warning area at the target power. Then, the target pixel area is detected for liveness through the night liveness recognition model. In this way, liveness detection can be achieved for the target pixel area through the preset liveness recognition model.
[0065] Figure 6 The hardware architecture diagram of a warning device for operating machinery according to a specific embodiment of the present application is schematically shown. Figure 6 As shown in the figure, the hardware of the operation warning device mainly includes a camera, a controllable infrared fill light, an IMU (Inertial Measurement Unit), a single-axis pan-tilt, a switch, a wireless bridge, an industrial computer, a buzzer and other equipment. The camera, IMU and infrared fill light are all installed on the pan-tilt, and the front of the three components are kept at the same horizontal plane. The pan-tilt base is inverted on the tip of the crane boom. The camera is used to obtain the image of the area under the hoist, the IMU is used to obtain the current pan-tilt posture, and the infrared fill light is used to fill light at night. The image collected by the camera is transmitted to the image processor in the industrial computer through the wireless bridge, and the image is processed by the image processor to realize the calculation of the warning area and the pedestrian recognition warning. The buzzer is installed in the host operation room of the operating machine to play the alarm audio signal to warn the construction personnel under the hoist to stay away from the hoisting area to prevent the occurrence of safety accidents. A display screen is also set in the host operation room so that the relevant operators can observe the warning area under the boom in real time.
[0066] Figure 7 The flowchart of a warning method for an operating machine according to a specific embodiment of the present application is schematically shown. The method is applied to Figure 7 The operation warning device for the operation machinery shown in the figure comprises:
[0067] S1: Read the IMU attitude value to obtain the current attitude of the gimbal.
[0068] S2: Control the gimbal posture to keep the camera pointing vertically downward.
[0069] S3: Get the current height of the arm tip above the ground.
[0070] S4: Control the camera to zoom to a specified focal length through the height focal length follower table.
[0071] S5: Calculate the range of the recognition area on the image corresponding to the warning area according to the arm tip height and the input warning range size.
[0072] S6: Read the image from the camera.
[0073] S7: Determine the day and night state of the current environment. If it is daytime, proceed to S8; if it is nighttime, proceed to S11.
[0074] S8: Acquire daytime image data.
[0075] S9: Load the daytime pedestrian recognition model.
[0076] S10: Identify pedestrians.
[0077] S11: Calculate the current darkness level.
[0078] S12: Control the brightness of the infrared fill light according to the darkness.
[0079] S13: Acquire night data image.
[0080] S14: Obtain a nighttime pedestrian recognition model.
[0081] S15: Pedestrian recognition.
[0082] S16: Output an alarm when a pedestrian is identified in the warning area.
[0083] Specifically, the processor reads the IMU attitude value in real time to control the pan-tilt attitude so that the camera remains vertically downward. Then the current height of the arm tip above the ground is read, and the target focal length of the camera is determined according to the pre-calibrated arm tip height and the focal length follower table of the camera, and the camera is controlled to zoom to the target focal length. After zooming, the range of the corresponding recognition area of the warning area on the image is calculated according to the current height above the ground, and the image of the camera is obtained, which is the image of the recognition area. After obtaining the image, the day and night state of the current environment is first determined according to the image data. If it is daytime, the daytime image data set is obtained, and the daytime pedestrian recognition model is loaded according to the daytime image data set. Pedestrians in the warning area are recognized by the daytime pedestrian recognition model, and an alarm is issued when pedestrians are recognized. If the current environment is night, the current darkness level is first calculated, and the brightness of the infrared fill light is controlled according to the darkness level to perform fill light. Then the night image data set is obtained, and the night pedestrian recognition model is loaded according to the night image data set. Pedestrians in the warning area are recognized by the night pedestrian recognition model, and an alarm is issued when pedestrians are recognized.
[0084] An embodiment of the present application provides a processor configured to execute the above-mentioned image-based operation warning area identification method, or a warning method for an operation machine.
[0085] Specifically, in an embodiment of the present application, the processor can be configured to: obtain the height of the image acquisition device from the ground, the inclination angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area; determine the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system according to the height from the ground, the inclination angle, and the actual range; based on the principle of perspective imaging, convert the coordinates of the multiple positioning points in the camera coordinate system into pixel coordinates on the image; determine the target pixel area of the operation warning area on the image according to the pixel coordinates of the multiple positioning points on the image.
[0086] In an embodiment of the present application, the processor can also be configured to: determine the distance from the optical center of the image acquisition device to the projection plane based on the height from the ground, the inclination angle and the actual range; obtain the current height of the target point of the arm and the target focal length of the image acquisition device; based on a second correspondence between a preset pixel dot matrix physical value and the focal length of the image acquisition device, determine the corresponding target pixel dot matrix physical value according to the target focal length; determine the pixel coordinates of the corresponding multiple positioning points in the operation warning area on the image through a perspective imaging algorithm based on the target pixel dot matrix physical value, the distance from the optical center of the image acquisition device to the projection plane and the coordinates of multiple positioning points in the camera coordinate system.
[0087] In the embodiment of the present application, the processor may also be configured to: determine the target focal length of the image acquisition device according to the current height based on a predetermined first correspondence between the target point height and the focal length of the image acquisition device.
[0088] In an embodiment of the present application, the processor can also be configured to: when it is determined that the inclination angle is not 0, determine the offset distances from the corresponding multiple positioning points of the operation warning area to the optical center of the image acquisition device and the distances from the optical center of the image acquisition device to the projection plane based on the similar triangle algorithm according to the height from the ground, the inclination angle and the actual range; determine the coordinates of the corresponding multiple positioning points of the operation warning area in the camera coordinate system according to the offset distances from the optical center of the image acquisition device and the distances from the optical center of the image acquisition device to the projection plane.
[0089] In an embodiment of the present application, the processor can also be configured to: control the support device to be in a target attitude angle position, the target attitude angle being the attitude angle when the projection point of the target point of the arm on the ground is at the center point of the field of view of the image acquisition device.
[0090] In an embodiment of the present application, the processor can also be configured to: identify the target pixel area of the operation warning area of the operating machinery on the image, wherein the target pixel area is identified according to the above-mentioned image-based operation warning area identification method; perform living thing detection on the target pixel area through a preset living thing recognition model, and issue an alarm message when a living thing is detected.
[0091] In an embodiment of the present application, the processor can also be configured to: obtain image data of the target pixel area; determine the day and night conditions of the current environment based on the image data and a preset day and night discrimination threshold; when the current environment is determined to be daytime, perform liveness detection on the target pixel area through a daytime liveness recognition model; when the current environment is determined to be night, perform liveness detection on the target pixel area through a night liveness recognition model.
[0092] In the embodiment of the present application, the processor can also be configured to: when it is determined that the current environment is dark, determine the darkness level of the current environment based on the image data; based on a predetermined third correspondence between the infrared fill light power and the darkness level, determine the target power of the infrared fill light according to the darkness level of the current environment; and control the infrared fill light to illuminate the operation warning area at the target power.
[0093] Through the above technical solution, first obtain the height of the image acquisition device from the ground, the tilt angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area, and then determine the pixel coordinates of the corresponding multiple positioning points of the operation warning area on the image according to the height from the ground, the tilt angle and the actual range, and finally, according to the coordinates of the multiple positioning points in the camera coordinate system, based on the perspective imaging principle, convert the coordinates of the multiple positioning points in the camera coordinate system into pixel coordinates on the image to determine the target pixel area of the operation warning area on the image. This application can accurately identify the designated operation warning area and issue a warning to the area, overcome the influence of factors such as the tilt of the image acquisition device, improve the recognition accuracy of the operation warning area, and effectively avoid the interference of environmental information outside the operation warning area, thereby reducing invalid warning information.
[0094] An embodiment of the present application also provides an operating machine, which may include the above-mentioned device for identifying an operating warning area of the operating machine and an operating warning device for the operating machine, or the above-mentioned processor.
[0095] An embodiment of the present application also provides a new energy vehicle, which may include: a power battery; an arm; an image acquisition device; and the above-mentioned processor.
[0096] The power battery can be a lithium battery or a hydrogen fuel cell, etc., which is not specifically limited here. The power battery can provide power for the driving of new energy vehicles, or power image acquisition equipment after voltage transformation, etc. The power battery can be set on the chassis of the new energy vehicle, or, when the new energy vehicle is a vehicle with counterweights such as cranes and pump trucks, the power battery can also be reused as counterweights, etc.
[0097] An embodiment of the present application also provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned image-based operation warning area identification method, or a warning method for an operation machine.
[0098] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0103] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0104] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0105] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0106] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for identifying an operation warning area based on an image, characterized in that: Applied to an operating machine, the operating machine comprises a boom and an image acquisition device arranged on the boom, the projection point of the target point of the boom on the ground is at the center point of the field of view of the image acquisition device, the method comprises: Acquire the height of the image acquisition device from the ground, the inclination angle of the image acquisition device relative to the vertical direction, and the actual range of the operation warning area; Determine the coordinates of a plurality of positioning points corresponding to the operation warning area in a camera coordinate system according to the height above the ground, the tilt angle and the actual range; Based on the perspective imaging principle, the coordinates of the multiple positioning points in the camera coordinate system are converted into pixel coordinates on the image; Determine a target pixel area of the operation warning area on the image according to the pixel coordinates of the multiple positioning points on the image; Wherein, determining the coordinates of the plurality of positioning points corresponding to the operation warning area in the camera coordinate system according to the height from the ground, the tilt angle and the actual range includes: When it is determined that the tilt angle is not 0, determining the offset distances from the corresponding multiple positioning points of the operation warning area to the optical center of the image acquisition device based on the similar triangle algorithm according to the height above the ground, the tilt angle and the actual range; The coordinates of the corresponding multiple positioning points in the operation warning area in the camera coordinate system are determined according to the offset distances from the corresponding multiple positioning points in the operation warning area to the optical center of the image acquisition device.
2. The method according to claim 1, characterized in that The method of converting the coordinates of the plurality of positioning points in the camera coordinate system into pixel coordinates on the image based on the perspective imaging principle includes: Determine the distance from the optical center of the image acquisition device to the projection plane according to the height from the ground, the tilt angle and the actual range; Acquire the current height of the target point of the boom and the target focal length of the image acquisition device; Based on a second correspondence between a preset pixel dot matrix physical value and a focal length of an image acquisition device, determining a corresponding target pixel dot matrix physical value according to the target focal length; According to the physical value of the target pixel matrix, the distance from the optical center of the image acquisition device to the projection plane, and the coordinates of the multiple positioning points in the camera coordinate system, the pixel coordinates of the corresponding multiple positioning points in the operation warning area on the image are determined through a perspective imaging algorithm.
3. The method according to claim 2, characterized in that Before acquiring the target focal length of the image acquisition device, the method further includes: Based on a predetermined first correspondence between a target point height and a focal length of an image acquisition device, a target focal length of the image acquisition device is determined according to the current height.
4. The method according to claim 1, characterized in that: The operating machine further includes a supporting device, which is disposed on the arm and is used to install the image acquisition device. The method further includes: The support device is controlled to be in a target attitude angle position, wherein the target attitude angle is the attitude angle when the projection point of the target point of the arm on the ground is at the center point of the field of view of the image acquisition device.
5. An early warning method for an operating machine, characterized in that: The operating machine includes a boom and an image acquisition device arranged on the boom, the projection point of the target point of the boom on the ground is located at the center point of the field of view of the image acquisition device, and the early warning method includes: Identify a target pixel area of the operation warning area of the operation machine on the image, wherein the target pixel area is identified according to the image-based operation warning area identification method according to any one of claims 1 to 3; The target pixel area is subjected to living thing detection through a preset living thing recognition model, and an alarm message is issued when a living thing is detected.
6. The method according to claim 5, characterized in that The preset living thing recognition model includes a daytime living thing recognition model and a nighttime living thing recognition model, and the performing living thing detection on the target pixel area by using the preset living thing recognition model includes: Acquire image data of the target pixel area; Determining the day and night conditions of the current environment according to the image data and a preset day and night discrimination threshold; When it is determined that the current environment is daytime, performing living thing detection on the target pixel area by using the daytime living thing recognition model; When it is determined that the current environment is at night, the target pixel area is subjected to living object detection by using the living object recognition model at night.
7. The method according to claim 6, characterized in that The operating machine also includes an infrared fill light, and the method further includes: In the case where it is determined that the current environment is dark, determining the darkness degree of the current environment according to the image data; Based on a predetermined third correspondence between the infrared fill light power and the darkness level, determining the target power of the infrared fill light according to the darkness level of the current environment; The infrared fill light is controlled to illuminate the operation warning area according to the target power.
8. A processor, characterized in that: The method is configured to execute the image-based work warning area recognition method according to any one of claims 1 to 4, or the warning method for a work machine according to any one of claims 5 to 7.
9. A working machine, characterized in that: Comprising a processor according to claim 8.
10. A new energy vehicle, characterized in that: include: Power battery; Boom; Image acquisition equipment; as well as A processor according to claim 8.
11. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing the machine to execute the image-based operation warning area identification method according to any one of claims 1 to 4, or the warning method for an operation machine according to any one of claims 5 to 7.
Citation Information
Patent Citations
Crane, positioning system and positioning method for hoisting operation of crane and storage medium
CN111487610A
Obstacle collision warning method based on depth data and visual chip
CN112308033A
Cooperative intelligent security and protection method and device based on polymorphic fitting
CN113449663A
Intelligent safety management and control method for transformer substation
CN115597659A
Distribution network operation real-time high-precision early warning method based on AI vision
CN115660924A
