WO2023273219A1 - Glass curtain wall open window open state detection method and apparatus, device, and medium - Google Patents

Glass curtain wall open window open state detection method and apparatus, device, and medium Download PDF

Info

Publication number
WO2023273219A1
WO2023273219A1 PCT/CN2021/139585 CN2021139585W WO2023273219A1 WO 2023273219 A1 WO2023273219 A1 WO 2023273219A1 CN 2021139585 W CN2021139585 W CN 2021139585W WO 2023273219 A1 WO2023273219 A1 WO 2023273219A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
window
open
curtain wall
Prior art date
Application number
PCT/CN2021/139585
Other languages
French (fr)
Chinese (zh)
Inventor
姚志东
卢佳祁
邹浪
陈明晹
谌越
Original Assignee
中冶建筑研究总院(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中冶建筑研究总院(深圳)有限公司 filed Critical 中冶建筑研究总院(深圳)有限公司
Publication of WO2023273219A1 publication Critical patent/WO2023273219A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • G06T3/047Fisheye or wide-angle transformations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Definitions

  • the embodiments of the present application relate to the field of safety detection of building facilities, for example, to methods, devices, equipment and media for detecting the opening state of glass curtain wall opening windows.
  • the glass curtain wall is a building envelope or decorative structure commonly used in modern high-rise buildings.
  • the hardware is extremely prone to instant damage, causing the open window to fall off at a high altitude, seriously endangering personal safety and public safety. Therefore, it is very necessary to detect the opening state of the opening window in windy or even strong typhoon weather, so as to close the opening window in time.
  • the opening and closing (opening or closing) state detection method of the opening window of the glass curtain wall in the related art is: when there is a strong wind, the sensor installed on each opening window senses the opening and closing state of the opening window, and through the cellular mobile communication Push the opening and closing status information of the open window to terminal devices such as mobile phones for alarm.
  • the cost of deploying and maintaining a large number of sensor equipment is huge, and the frequent opening and closing of opening windows is likely to cause damage to the sensors, resulting in inaccurate sensing data.
  • the embodiment of the present application provides a method for detecting the opening state of an open window of a glass curtain wall, the method comprising:
  • the original image taken by the image acquisition device, and correcting the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
  • the correction image is input into the pre-trained target detection model to detect the open window in the open state, and determine the position of the open window detection result image and the target open window in the open state according to the output of the target detection model;
  • the embodiment of the present application provides a device for detecting the opening state of an open window of a glass curtain wall, the device comprising:
  • the correction module is configured to obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
  • the detection module is configured to input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the detection result image of the open window and the open target open window in the open state according to the output of the target detection model. the position of the window;
  • the sending module is configured to determine the target room number corresponding to the position of the target opening window, and send the target room number and the detection result image of the opening window to the management and control personnel corresponding to the building where the target glass curtain wall is located side device.
  • an embodiment of the present application provides a computer device, which includes:
  • processors one or more processors
  • a storage device configured to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for detecting the opening state of the glass curtain wall opening window described in any embodiment of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for detecting the opening state of a glass curtain wall opening window described in any embodiment of the present application is implemented.
  • Fig. 1A is a flow chart of a method for detecting the opening state of a glass curtain wall opening window provided in Embodiment 1 of the present application;
  • FIG. 1B is a schematic diagram of an image of an open window detection result in the method provided in Embodiment 1 of the present application;
  • Fig. 1C is a schematic diagram of the correction process in the method provided in Embodiment 1 of the present application.
  • FIG. 1D is a schematic diagram of the process of selecting a preset number of reference points in the method provided in Embodiment 1 of the present application;
  • Fig. 2 is the flow chart of a kind of glass curtain wall opening window opening state detection method that the application embodiment two provides;
  • Fig. 3 is a schematic structural diagram of a device for detecting the opening state of a glass curtain wall opening window provided in Embodiment 3 of the present application;
  • FIG. 4 is a schematic structural diagram of a computer device provided in Embodiment 4 of the present application.
  • FIG. 1A is a flow chart of a method for detecting the opening state of a glass curtain wall opening window provided in Embodiment 1 of the present application.
  • This embodiment can detect the opening state of a glass curtain wall opening window.
  • the method for detecting the opening state of the opening window of the glass curtain wall provided in this embodiment can be executed by the device for detecting the opening state of the opening window of the glass curtain wall provided in the embodiment of the present application. in computer equipment.
  • the method of this embodiment includes but is not limited to the following steps:
  • the image acquisition device can be understood as a device with an image acquisition function fixed at a certain position outside the target building, for example, a wide-angle camera or a video camera, and the position can be a first preset distance from the bottom of the target building, so that the wide-angle camera can shoot To the panoramic image of the target glass curtain wall facade including all open windows, the first preset distance can be set in advance, or it can be determined according to the specific situation, and the embodiment of the present application does not make specific limitations; the image acquisition device can also be a plurality of Camera or a plurality of cameras, each camera or camera is responsible for photographing a part of the target glass curtain wall, and the images taken by all cameras or all cameras are stitched together to form a panoramic image of the target glass curtain wall facade including all open windows.
  • the target building can be understood as the building where the target glass curtain wall is located.
  • the target glass curtain wall can be understood as the glass curtain wall to which the open window to be detected belongs.
  • the glass curtain wall can be understood as the building envelope or decorative structure that the supporting structure system has a certain displacement capacity relative to the main structure and does not share the effect of the main structure, and the glass curtain wall includes multiple opening windows, which can be opened or closed .
  • the original image In order to detect the opening state of the opening window in windy or even strong typhoon weather, so as to close the opening window in time, it is necessary to obtain the original image taken by the image acquisition device. Since the original image may be taken by a wide-angle camera or camera deployed at the bottom of the target building, The higher the position of the target building, the farther the object distance is, and the smaller the target is, then the original image may be a distorted image, so the original image needs to be corrected, for example, it can be: Correct the original image to the normal proportion of the target glass curtain wall exterior surface image to obtain a corrected image. Wherein, the normal ratio can be understood as the ratio corresponding to the target glass curtain wall facade image without distortion or distortion. There may be multiple correction methods, for example, distortion correction based on perspective transformation technology, geometric correction, etc., which are not specifically limited in this embodiment of the present application.
  • S120 input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the open window detection result image and the position of the open target open window according to the output of the target detection model.
  • the target detection model can be Faster-Region Convolutional Neural Networks (Faster-Region Convolutional Neural Networks, referred to as Faster-RCNN) or YOLO (You Only Look Once), etc.
  • the target opening window can be understood as an opening window in an open state.
  • the corrected image After obtaining the corrected image, input the corrected image into the pre-trained target detection model to detect the open windows in the open state, and according to the output of the target detection model, that is, which open windows in the corrected image are open, the open window can be determined
  • the detection result image and the specific position of each target opening window in the open state in the correction image are convenient for subsequent determination of the target room number corresponding to the position of each target opening window, and the target room number and the opening window detection result image Send to the controller side device corresponding to the building where the target glass curtain wall is located.
  • the output of the target detection model it can also be found that there is currently no target open window, that is, all open windows are currently closed.
  • the image of the detection result of the open window can also be output, and the output position of the target open window in the open state is empty information, or it can be displayed as other information such as none or 0.
  • the target room number corresponding to the position of the subsequent target opening window may also be empty information, or may be displayed as other information such as none or 0.
  • FIG. 1B is a schematic diagram of an image of an open window detection result in the method provided in Embodiment 1 of the present application, and exemplarily provides an implementation manner, as shown in FIG. 1B .
  • the target room number can be understood as the room number corresponding to the room corresponding to the position of the target opening window in the target building, that is, the room number to which the target opening window belongs.
  • the management and control personnel can be understood as the personnel responsible for the management of the target building.
  • the controller side device can be understood as the device used by the controller, such as a mobile phone or a computer.
  • the method is sent to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located, so that the management and control personnel can dispose of or close each target opening window in the open state in time.
  • the image acquisition device first obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image.
  • the original image is a panoramic image of the facade of the target glass curtain wall including all open windows, and then input the corrected image to the pre-training
  • the open window in the open state is detected in the target detection model of the target detection model, and the detection result image of the open window and the position of each target open window in the open state are determined according to the output of the target detection model, and finally the position of the open window corresponding to each target is determined
  • the original image captured by the image acquisition device can be used for subsequent detection of the opening state of the opening window of the glass curtain wall. Compared with the method of installing sensors for each opening window in the related art, the cost of equipment deployment and maintenance can be reduced.
  • the correcting the original image to obtain the corrected image may include: selecting a preset number of reference points in the original image and determining a standard reference point corresponding to each reference point ; According to the coordinates of the preset number of reference points and the coordinates of the standard reference point, determine the transformation matrix projected from the preset number of reference points to the corresponding standard reference point; The original image is corrected to obtain the corrected image.
  • the preset number can be set in advance, for example, there can be 4 preset reference points, or it can be determined according to specific circumstances, and the embodiment of the present application does not make specific limitations.
  • a preset number of reference points in the original image for example, when the deployment position of the image acquisition device is fixed, select a relatively regular point as the reference point, and determine the relationship with each reference point point corresponding to the standard reference point, where the standard reference point can be determined manually, or according to the proportional relationship between the width of the target building and the width of the corrected image, and the proportional relationship between the height of the target building and the height of the corrected image.
  • the embodiment of the present application does not make specific limitations. After the reference point and the corresponding standard reference point are determined, according to the coordinates of the reference point and the coordinates of the standard reference point, a transformation matrix projected from each reference point to the corresponding standard reference point can be determined. The original image can be transformed into a normal scale corrected image through the transformation matrix.
  • the original image is uniformly corrected into a normal-scale corrected image, which facilitates subsequent determination of the corresponding target room number by correcting the position of each target opening window in the open state in the corrected image; since the original image Some of the opening windows are small in size, which is not conducive to the detection of the subsequent target detection model.
  • the normal ratio of the facade of the target glass curtain wall is restored through correction, and the size of the opening window with a small size is indirectly enlarged to highlight the characteristics of the opening window. It is conducive to improving the recognition accuracy of each target opening window in the open state; preventing the output result of the subsequent target detection model from being inaccurate due to image distortion, thereby affecting the determination of the target room number.
  • FIG. 1C is a schematic diagram of the correction process in the method provided in Embodiment 1 of the present application, and an exemplary implementation is given, as shown in FIG. 1C:
  • the image on the left in Figure 1C is the original image, and the image on the right is the rectified image corrected to normal scale.
  • Four reference points are selected from the original image, denoted by A, B, C and D respectively.
  • A1, B1, C1 and D1 are the corresponding four standard reference points, where A1 corresponds to A, B1 corresponds to B, and C1 Corresponds to C, D1 corresponds to D.
  • the transformation matrix M projected from the reference point to the corresponding standard reference point can be determined, and then the original image can be transformed into a normal image through the transformation matrix M Scale rectified image.
  • the selecting a preset number of reference points in the original image may include: inputting the original image into a pre-trained semantic segmentation model to obtain two A valued image, wherein the white area in the binarized image is the area formed by the target glass curtain wall facade, and the black area is the background area; contour extraction is performed on the white area in the binarized image, Obtaining contour information corresponding to the white area; extracting edge straight line information in the contour information, and using the intersection points between the edge straight lines as a preset number of reference points selected in the original image.
  • the semantic segmentation model may be a fully convolutional neural network (Fully Convolutional Networks, referred to as FCN), U-Net or DeepLab, etc., which are not specifically limited in the embodiment of the present application.
  • FCN Fully Convolutional neural network
  • U-Net U-Net
  • DeepLab DeepLab
  • the original image is input into the pre-trained semantic segmentation model, and a binary image corresponding to the original image can be obtained, and the outline of the white area in the binary image can be extracted , such as the Canny operator extraction method, or other extraction methods, which can obtain the contour information corresponding to the white area.
  • the edge straight line information in the contour information can be extracted by using the Hough transform method, or other transform methods, which are not specifically limited in this embodiment of the present application.
  • the intersection points between the edge straight lines are used as the reference points of the preset number selected in the original image.
  • FIG. 1D is a schematic diagram of the process of selecting a preset number of reference points in the method provided in Embodiment 1 of the present application, and an exemplary implementation is given, as shown in FIG. 1D:
  • the first picture from left to right in Figure 1D is the original image
  • the second picture is the binarized image corresponding to the original image
  • the third picture is the image obtained after contour extraction
  • the fourth picture is the extracted contour
  • the image obtained after the edge straight line information in the information, the intersection points A2, B2, C2 and D2 between the edge straight lines in the fourth figure are the four reference points selected in the original image.
  • the extraction of reference points through the above method based on deep learning semantic segmentation can still stably extract the position information of reference points when the image acquisition device has a slight position change, and at the same time can effectively exclude non-target glass curtain wall facades background information to improve the recognition accuracy of each target opening window that is in the open state.
  • the semantic segmentation model can be obtained through the following training methods:
  • Data preparation Use image acquisition equipment to look up from the bottom of the target building to shoot the facade of the target glass curtain wall to obtain panoramic image data.
  • the collected panorama image of the facade of the glass curtain wall should include the opened window as the training data sample of the subsequent semantic segmentation model; Panoramic image data under conditions.
  • the marked image may be a binarized mask image
  • the gray value corresponding to the area formed by the facade of the target glass curtain wall in the marked image may be 255
  • the gray value corresponding to the background area may be 0.
  • Data enhancement In the process of semantic segmentation model training, online data enhancement can be used to enrich training data samples.
  • the ways of data enhancement may include but not limited to the following: scale change, random occlusion, perspective transformation, random rotation and horizontal flip, adding Gaussian noise and color change, etc.
  • Model training During the training process, when the accuracy between the training results of the samples contained in the training set and the corresponding samples in the verification set reaches the preset threshold, it means that the verification results meet the end conditions. At this time, the training ends and the current model is saved.
  • the trained parameters are used as the parameters of the semantic segmentation model.
  • the preset threshold may be set in advance, for example, 90%, or it may be determined according to specific circumstances, which is not specifically limited in this embodiment of the present application.
  • the semantic segmentation model is obtained through the above training method, on the one hand, it can improve the accuracy of the model recognition result, and on the other hand, it is beneficial to obtain a more accurate transformation matrix later.
  • determining the target room number corresponding to the position of each target opening window may include: inquiring about the preset correspondence between the positions of all opening windows on the facade of the target glass curtain wall and the room numbers ; Determine the target room number corresponding to the position of each target opening window according to the preset corresponding relationship.
  • the corresponding room number can be found according to the position of each target opening window in the open state in the correction image.
  • the position of the open window (including all open windows in the open and closed states) and the preset correspondence relationship with the room number and then query the preset correspondence relationship between the position of all open windows on the facade of the target glass curtain wall and the room number, according to the preset
  • the corresponding relationship can determine the target room number corresponding to the position of each target opening window.
  • the target room number corresponding to the position of each target opening window can be quickly found, so that the management and control personnel can respond in time to prevent the window from being opened due to strong winds or even strong typhoons. If it is not closed in time, the open window will fall off at a high altitude, endangering personal safety and public safety, and causing unnecessary losses.
  • FIG. 2 is a flow chart of a method for detecting the opening state of an open window in a glass curtain wall provided in Embodiment 2 of the present application.
  • the embodiments of the present application are adjusted on the basis of the foregoing embodiments.
  • This embodiment can explain the process of inputting the corrected image into the pre-trained target detection model to detect the open window in the open state, and determining the detection result image of the open window and the position of the target open window in the open state.
  • the method of the present embodiment includes but not limited to the following steps:
  • the values corresponding to the preset size and the preset step are integer multiples of the maximum side length of the open window, and the value corresponding to the preset step is smaller than the value corresponding to the preset size.
  • the cropped image can be obtained by scanning and cropping the corrected image according to a window of a preset size, such as a window of n*n, and a preset step size, so that all the cropped images can be divided into Input to the pre-trained object detection model to detect the open window in the open state.
  • the above cropping method can not only ensure that each open window can be completely included in the cropped image, but also relieve the pressure on the hardware.
  • the window with a predetermined size may be a square.
  • the window can be cropped by overlapping scanned images, ensuring that each open window can be completely cropped out, and avoiding opening the window It may be partially cropped, which will affect the subsequent recognition accuracy.
  • the predetermined size may be a side length of the window.
  • the first open window detection result image can be understood as an image obtained by marking open windows in an open state with a rectangular detection frame in a cropped image.
  • the size of the rectangular detection frame can be a rectangular frame that just frames the open window, for example, the size of the rectangular detection frame can be slightly larger than the size of the open window, or slightly smaller than the size of the open window.
  • the first position coordinates may be the position coordinates of the center point of the rectangular detection frame corresponding to each first target opening window, or the position coordinates of other vertices.
  • the origin may be selected from the vertex in the upper left corner of a corresponding cropped image, or other points, which are not specifically limited in this embodiment of the present application.
  • the target detection model can be obtained through the following training methods:
  • Data preparation scan and crop multiple corrected images according to the preset size of the window and the preset step size to obtain the cropped image; perform data labeling on each cropped image, and the labeling result can be just framed to open the window
  • the rectangular frame can be represented by (cx, cy, w, h), where (cx, cy) is the coordinate of the center point of the rectangular frame, cx is the abscissa of the center point of the rectangular frame, and cy is the ordinate of the center point of the rectangular frame.
  • w is the width of the rectangular frame
  • h is the height of the rectangular frame, divide the marked image into a training set and a verification set, the training set is used as a training sample, and the verification set is used as a verification sample.
  • the window is a square
  • the preset size is the side length of the square
  • the preset step size is the sliding distance of the window (in pixels)
  • the window can be slid horizontally and vertically.
  • Data enhancement In the process of target detection model training, online data enhancement can be used to enrich training data samples.
  • the methods of data enhancement can include but not limited to the following: scale change, perspective transformation, random rotation and horizontal flip, histogram equalization, Gaussian noise, hue saturation brightness (Hue, Saturation, Value, referred to as HSV) Spatial color transformation and random occlusion, etc.
  • Data enhancement can increase the amount of training data and improve the generalization ability of the model.
  • noise data can be added to improve the robustness of the model.
  • Model training During the training process, when the accuracy between the training results of the samples contained in the training set and the corresponding samples in the verification set reaches the preset threshold, it means that the verification results meet the end conditions. At this time, the training ends and the current model is saved.
  • the trained parameters are used as the parameters of the object detection model.
  • the preset threshold may be set in advance, for example, 92%, or it may be determined according to specific circumstances, which is not specifically limited in this embodiment of the present application.
  • each cropped image is obtained by scanning and cropping the corrected image, based on the position of each cropped image relative to the corrected image, all the first window detection result images are mapped to the corrected image, and each The first open window detection result images respectively correspond to the initial images, and at least one initial image is spliced according to the corresponding position to obtain the open window detection result image.
  • S260 Determine the position of each target opening window according to the position coordinates of the center point.
  • the position of the target opening window corresponding to each center point position coordinate can be determined according to each center point position coordinate, This facilitates the subsequent determination of the target room number corresponding to the position of each target open window, and sends the target room number and the detection result image of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
  • the center point position coordinates of the rectangular detection frame in the corrected image may further include: verifying the center point position coordinates, if the center point position coordinates correspond to the first One abscissa is greater than the second abscissa and less than the third abscissa, and the first ordinate corresponding to the center point position coordinate is greater than the second ordinate and less than the third ordinate, then the verification result is passed, wherein, The second abscissa and the third abscissa are selected from the abscissas corresponding to all vertices in the corrected image of the target open window corresponding to the center point position coordinates, the second ordinate and the The third ordinate is selected from the ordinates corresponding to the target opening window corresponding to the center point position coordinates in the corrected image; when the verification result is passed, obtain the coordinates corresponding to the center point position coordinates The target room number corresponding to the target opening window of .
  • the second abscissa and the third abscissa are selected from the abscissa corresponding to all vertices in the corrected image from the target opening window corresponding to the center point position coordinates, then assuming that the origin is the vertex in the upper left corner of the corrected image, the target can be opened
  • the abscissa corresponding to the upper left vertex of the window in the corrected image is determined as the second abscissa, which is assumed to be represented by x1;
  • the abscissa corresponding to the lower right vertex of the target opening window in the corrected image can be determined as the third abscissa, assuming Expressed by x2.
  • the target open window can be set at
  • the ordinate corresponding to the vertex in the upper left corner in the corrected image is determined as the second ordinate, which is assumed to be represented by y1; the ordinate corresponding to the vertex in the lower right corner of the target opening window in the corrected image can be determined as the third ordinate, which is assumed to be y2 express.
  • the first abscissa cxj corresponding to the position coordinates of the center point is greater than the second abscissa x1 and smaller than the third abscissa x2, that is: x1 ⁇ cxj ⁇ x2, the first ordinate cyj corresponding to the center point position coordinates is greater than the second If the vertical coordinate y1 is smaller than the third vertical coordinate y2, namely: y1 ⁇ cyj ⁇ y2, then the verification result is passed. When the verification result is passed, the target room number corresponding to the target opening window corresponding to the position coordinates of the center point is obtained.
  • the above method is used to verify the position coordinates of the center point, which can ensure the accuracy of the position coordinates of the center point, avoid mistakes, and improve the accuracy rate.
  • the range parameter of the rectangular detection frame can also be directly bound to the corresponding target room number, so that the target room number can be determined more quickly , and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
  • the range parameters of the rectangular detection frame can be represented by (x0, y0, x3, y3), x0 is the abscissa coordinate of the top left corner of the rectangle detection frame, y0 is the vertical coordinate of the top left corner of the rectangle detection frame, x3 is the right side of the rectangle detection frame The abscissa of the vertex of the lower corner, y3 is the ordinate of the vertex of the lower right corner of the rectangular detection frame.
  • S270 Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the management and control personnel side device corresponding to the building where the target glass curtain wall is located.
  • the original image captured by the image acquisition device is first obtained, and the original image is corrected to obtain a corrected image, and then the corrected image is scanned and cropped according to a preset window size and a preset step size to obtain a cropped image, and the All cropped images are input to the pre-trained target detection model to detect the open window in the open state, and the first open window detection result image corresponding to each cropped image and each cropped image are obtained.
  • the first position coordinates of the rectangular detection frame corresponding to each first target open window in the open state and then based on the position of each cropped image relative to the corrected image, map all the first open window detection result images to the corrected In the image, the image of the detection result of the open window is obtained, and based on the position of each cropped image relative to the corrected image, all the rectangular detection frames of the first position coordinates are mapped to the corrected image, and the center of the rectangular detection frame in the corrected image is obtained
  • Point position coordinates determine the position of each target opening window according to the center point position coordinates, and finally determine the target room number corresponding to the position of each target opening window, and send the target room number and the opening window detection result image to the target
  • the corrected image is cropped and then input to the pre-trained target detection model for detection, which not only ensures that each open window can be completely included in the cropped In the image, it can relieve the pressure on the hardware, improve the
  • Fig. 3 is a schematic structural diagram of a device for detecting the opening state of a glass curtain wall opening window provided in Embodiment 3 of the present application. As shown in Fig. 3 , the device may include:
  • the correction module 310 is configured to obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the target glass curtain wall facade including all open windows;
  • the detection module 320 is configured to input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the detection result image of the open window and the target in the open state according to the output of the target detection model the position of the opening window;
  • the sending module 330 is configured to determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the control room corresponding to the building where the target glass curtain wall is located. Equipment on the personnel side.
  • the original image taken by the image acquisition device, and correct the original image to obtain a corrected image.
  • the original image is a panoramic image of the facade of the target glass curtain wall including all open windows, and then input the corrected image to the pre-training
  • the open window in the open state is detected in the target detection model of the target detection model, and the detection result image of the open window and the position of the open window of the target in the open state are determined according to the output of the target detection model, and finally the target corresponding to the position of the target open window is determined Room number, and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
  • the above-mentioned correction module 310 may include: a selection unit, configured to acquire the original image taken by the image acquisition device, and select a preset number of reference points in the original image and determine the number of reference points corresponding to the reference points the standard reference point; the first determination unit is set to determine the transformation matrix projected from the reference point to the corresponding standard reference point according to the coordinates of the reference point and the coordinates of the standard reference point; the first correction unit is set to The original image is corrected based on the transformation matrix to obtain a corrected image, wherein the original image is a panoramic image of a target glass curtain wall facade including all open windows.
  • the above selection unit can be configured to: acquire the original image taken by the image acquisition device, and input the original image into the pre-trained semantic segmentation model to obtain the binarization corresponding to the original image image, wherein the white area in the binarized image is the area formed by the target glass curtain wall facade, and the black area is the background area; the white area in the binarized image is contour extracted to obtain the The contour information corresponding to the white area; extract the information of the edge straight lines in the contour information, and use the intersection points between the edge straight lines as the reference points of the preset number selected in the original image and determine the relationship with each The reference point corresponds to the standard reference point.
  • the detection module 320 may include: a first detection unit and a second determination unit.
  • the first detection unit may be configured to: scan and crop the corrected image according to a window of a preset size and a preset step size to obtain a trimmed image, wherein the preset size and the preset step size
  • the corresponding values are all integer multiples of the maximum side length of the open window, and the value corresponding to the preset step size is smaller than the value corresponding to the preset size; input all the cropped images into the pre-trained target detection model respectively for The open window in the open state is detected, and the first open window detection result image corresponding to each cropped image and the rectangular detection frame corresponding to the first target open window in the open state in each cropped image are obtained.
  • the coordinates of the first location is configured to: scan and crop the corrected image according to a window of a preset size and a preset step size to obtain a trimmed image, wherein the preset size and the preset step size
  • the corresponding values are all integer multiples of the maximum side length of the open window, and the value corresponding to the preset step size
  • the second determination unit may be configured to: based on the position of each cropped image relative to the corrected image, map all the first window opening detection result images to the corrected image to obtain the open window detection Result image; based on the position of each cropped image relative to the corrected image, map the rectangular detection frame of all first position coordinates to the corrected image, and obtain the rectangular detection frame in the corrected image
  • the position coordinates of the center point in determine the position of the target opening window according to the position coordinates of the center point.
  • the above-mentioned device for detecting the opening state of the opening window of the glass curtain wall may further include: a verification module, configured to, after obtaining the position coordinates of the center point of the rectangular detection frame in the correction image, verify the center point Position coordinates are verified, if the first abscissa corresponding to the center point position coordinates is greater than the second abscissa and smaller than the third abscissa, the first ordinate corresponding to the center point position coordinates is greater than the second ordinate, and If it is smaller than the third ordinate, it means that the verification result is passed, wherein, the second abscissa and the third abscissa correspond to all vertices in the corrected image of the target opening window corresponding to the center point position coordinates selected from the abscissa, the second ordinate and the third ordinate are selected from the ordinates corresponding to all vertices in the corrected image of the target opening window corresponding to the position coordinates of the center point;
  • the above-mentioned sending module 330 can also be configured to: inquire about the preset correspondence between the positions of all open windows on the facade of the target glass curtain wall and the room numbers; The target room number corresponding to the position of the target opening window, and the target room number and the detection result image of the opening window are sent to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
  • the device for detecting the opening state of the opening window of the glass curtain wall provided in this embodiment can be applied to the method for detecting the opening state of the opening window of the glass curtain wall provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • FIG. 4 is a schematic structural diagram of a computer device provided in Embodiment 4 of the present application.
  • the computer device includes a processor 410 and a storage device 420; the number of processors 410 in the computer device can be one or more
  • a processor 410 is taken as an example; the processor 410 and the storage device 420 in the computer device may be connected through a bus or in other ways.
  • the connection through a bus is taken as an example.
  • the storage device 420 can be used to store software programs, computer-executable programs and modules, such as the module corresponding to the method for detecting the opening state of glass curtain wall opening windows in the embodiment of the present application (for example, for glass curtain wall).
  • the processor 410 executes various functional applications and data processing of the computer equipment by running the software programs, instructions and modules stored in the storage device 420 , that is, realizes the above-mentioned method for detecting the opening state of the open window of the glass curtain wall.
  • the storage device 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like.
  • the storage device 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • the storage device 420 may further include memories that are located remotely relative to the processor 410, and these remote memories may be connected to computer equipment through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • a computer device provided in this embodiment can be used to execute the method for detecting the opening state of an open window of a glass curtain wall provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • Embodiment 5 of the present application also provides a computer-readable storage medium, on which a computer program is stored.
  • the program is executed by a processor, the method for detecting the opening state of a glass curtain wall opening window in any embodiment of the present application is implemented.
  • the method includes :
  • the original image taken by the image acquisition device, and correcting the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
  • the correction image is input into the pre-trained target detection model to detect the open window in the open state, and determine the position of the open window detection result image and the target open window in the open state according to the output of the target detection model;
  • a storage medium containing computer-executable instructions provided in an embodiment of the present application the computer-executable instructions are not limited to the method operations described above, and can also perform the detection of the opening state of the glass curtain wall opening window provided in any embodiment of the present application Related operations in the method.
  • the storage medium may be a non-transitory storage medium.
  • the various units and modules included are only divided according to the functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized. Yes; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Image Analysis (AREA)

Abstract

Disclosed in embodiments of the present application are a glass curtain wall open window open state detection method and apparatus, a device, and a medium. The method comprises: acquiring original images captured by an image acquisition device, and correcting the original images to obtain corrected images, the original images being panoramic images of the façade of a target glass curtain wall comprising all open windows; inputting the corrected images into a pre-trained target detection model to detect open windows in an open state, and according to the output of the target detection model, determining open window detection result images and the positions of target open windows in the open state; determining target room numbers corresponding to the positions of the target open windows, and sending the target room numbers and the open window detection result images to a control person side device corresponding to a building where the target glass curtain wall is located.

Description

玻璃幕墙开启窗开启状态检测方法、装置、设备及介质Glass curtain wall opening window opening state detection method, device, equipment and medium
本申请要求在2021年06月28日提交中国专利局、申请号为202110719434.7的中国专利申请的优先权,以上申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202110719434.7 submitted to the China Patent Office on June 28, 2021, and the entire content of the above application is incorporated by reference in this application.
技术领域technical field
本申请实施例涉及建筑设施安全检测领域,例如涉及玻璃幕墙开启窗开启状态检测方法、装置、设备及介质。The embodiments of the present application relate to the field of safety detection of building facilities, for example, to methods, devices, equipment and media for detecting the opening state of glass curtain wall opening windows.
背景技术Background technique
玻璃幕墙是现代高层建筑常用的建筑外围护结构或装饰结构,在发生大风甚至强台风天气时,如果玻璃幕墙开启窗未及时关闭,当风压超过开启窗开启时的最大载荷,连接开启窗的五金件极易发生瞬间损坏,造成开启窗的高空脱落,严重危害了人身安全和公共安全。因此,在大风甚至强台风天气对开启窗的开启状态进行检测,从而及时关闭开启窗是非常有必要的。The glass curtain wall is a building envelope or decorative structure commonly used in modern high-rise buildings. In the event of strong winds or even strong typhoons, if the opening window of the glass curtain wall is not closed in time, when the wind pressure exceeds the maximum load when the opening window is opened, the opening window is connected. The hardware is extremely prone to instant damage, causing the open window to fall off at a high altitude, seriously endangering personal safety and public safety. Therefore, it is very necessary to detect the opening state of the opening window in windy or even strong typhoon weather, so as to close the opening window in time.
相关技术中玻璃幕墙开启窗的开闭(开启或关闭)状态检测方法为:在存在大风天气时,通过每扇开启窗所安装的传感器感知开启窗的开闭状态,并通过蜂窝移动通信的方式将开启窗的开闭状态信息推送到手机等终端设备进行警报。然而,对于超高层建筑而言,大量的传感器设备部署与维护的成本巨大,而且开启窗的频繁开闭容易造成传感器的损坏,导致传感数据的失准。或者通过人工巡查的方式对玻璃幕墙开启窗的开闭状态进行检测,从而进行管控,但是对于一幢几十层甚至上百层的高层建筑,依靠人工巡查的方式十分困难,而且管控的实时性也难以保证。The opening and closing (opening or closing) state detection method of the opening window of the glass curtain wall in the related art is: when there is a strong wind, the sensor installed on each opening window senses the opening and closing state of the opening window, and through the cellular mobile communication Push the opening and closing status information of the open window to terminal devices such as mobile phones for alarm. However, for super high-rise buildings, the cost of deploying and maintaining a large number of sensor equipment is huge, and the frequent opening and closing of opening windows is likely to cause damage to the sensors, resulting in inaccurate sensing data. Or through manual inspection to detect the opening and closing status of the opening and closing windows of the glass curtain wall, so as to control it, but for a high-rise building with dozens or even hundreds of floors, it is very difficult to rely on manual inspection, and the real-time nature of control It is also difficult to guarantee.
尚未有更好的玻璃幕墙开启窗开启状态检测方法。There is no better method for detecting the opening status of glass curtain wall opening windows.
发明内容Contents of the invention
第一方面,本申请实施例提供了一种玻璃幕墙开启窗开启状态检测方法,该方法包括:In the first aspect, the embodiment of the present application provides a method for detecting the opening state of an open window of a glass curtain wall, the method comprising:
获取图像采集设备拍摄的原始图像,并对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;Obtaining the original image taken by the image acquisition device, and correcting the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于 开启状态的目标开启窗的位置;The correction image is input into the pre-trained target detection model to detect the open window in the open state, and determine the position of the open window detection result image and the target open window in the open state according to the output of the target detection model;
确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
第二方面,本申请实施例提供了一种玻璃幕墙开启窗开启状态检测装置,该装置包括:In the second aspect, the embodiment of the present application provides a device for detecting the opening state of an open window of a glass curtain wall, the device comprising:
校正模块,设置为获取图像采集设备拍摄的原始图像,并对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;The correction module is configured to obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
检测模块,设置为将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置;The detection module is configured to input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the detection result image of the open window and the open target open window in the open state according to the output of the target detection model. the position of the window;
发送模块,设置为确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。The sending module is configured to determine the target room number corresponding to the position of the target opening window, and send the target room number and the detection result image of the opening window to the management and control personnel corresponding to the building where the target glass curtain wall is located side device.
第三方面,本申请实施例提供了一种计算机设备,该计算机设备包括:In a third aspect, an embodiment of the present application provides a computer device, which includes:
一个或多个处理器;one or more processors;
存储装置,设置为存储一个或多个程序;a storage device configured to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本申请任意实施例所述的玻璃幕墙开启窗开启状态检测方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for detecting the opening state of the glass curtain wall opening window described in any embodiment of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本申请任意实施例所述的玻璃幕墙开启窗开启状态检测方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for detecting the opening state of a glass curtain wall opening window described in any embodiment of the present application is implemented.
附图说明Description of drawings
图1A为本申请实施例一提供的一种玻璃幕墙开启窗开启状态检测方法的流程图;Fig. 1A is a flow chart of a method for detecting the opening state of a glass curtain wall opening window provided in Embodiment 1 of the present application;
图1B为本申请实施例一提供的方法中开启窗检测结果图像的示意图;FIG. 1B is a schematic diagram of an image of an open window detection result in the method provided in Embodiment 1 of the present application;
图1C为本申请实施例一提供的方法中校正过程的示意图;Fig. 1C is a schematic diagram of the correction process in the method provided in Embodiment 1 of the present application;
图1D为本申请实施例一提供的方法中选取预设个数的参考点的过程示意图;FIG. 1D is a schematic diagram of the process of selecting a preset number of reference points in the method provided in Embodiment 1 of the present application;
图2为本申请实施例二提供的一种玻璃幕墙开启窗开启状态检测方法的流 程图;Fig. 2 is the flow chart of a kind of glass curtain wall opening window opening state detection method that the application embodiment two provides;
图3为本申请实施例三提供的一种玻璃幕墙开启窗开启状态检测装置的结构示意图;Fig. 3 is a schematic structural diagram of a device for detecting the opening state of a glass curtain wall opening window provided in Embodiment 3 of the present application;
图4为本申请实施例四提供的一种计算机设备的结构示意图。FIG. 4 is a schematic structural diagram of a computer device provided in Embodiment 4 of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请进行说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be described below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
实施例一Embodiment one
图1A为本申请实施例一提供的一种玻璃幕墙开启窗开启状态检测方法的流程图,本实施例可对玻璃幕墙开启窗开启状态进行检测。本实施例提供的玻璃幕墙开启窗开启状态检测方法可以由本申请实施例提供的玻璃幕墙开启窗开启状态检测装置来执行,该装置可以通过软件和/或硬件的方式实现,并集成在执行本方法的计算机设备中。FIG. 1A is a flow chart of a method for detecting the opening state of a glass curtain wall opening window provided in Embodiment 1 of the present application. This embodiment can detect the opening state of a glass curtain wall opening window. The method for detecting the opening state of the opening window of the glass curtain wall provided in this embodiment can be executed by the device for detecting the opening state of the opening window of the glass curtain wall provided in the embodiment of the present application. in computer equipment.
参见图1A,本实施例的方法包括但不限于如下步骤:Referring to Figure 1A, the method of this embodiment includes but is not limited to the following steps:
S110,获取图像采集设备拍摄的原始图像,并对原始图像进行校正,得到校正图像,其中,原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像。S110. Acquire the original image captured by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the target glass curtain wall facade including all open windows.
其中,图像采集设备可以理解为固定在目标楼宇外某位置的具有图像采集功能的设备,例如,广角摄像头或者摄像机,该位置可以为距目标楼宇底部第一预设距离,使得该广角摄像头能够拍摄到包括所有开启窗的目标玻璃幕墙外立面全景图像,第一预设距离可以预先设置好,也可以视具体情况而定,本申请实施例不做具体限制;图像采集设备还可以为多个摄像头或者多个摄像机,每个摄像头或者摄像机负责拍摄目标玻璃幕墙的一部分,所有摄像头或者所有摄像机拍摄的图像拼接起来为包括所有开启窗的目标玻璃幕墙外立面全景图像,本申请实施例对摄像头或者摄像机的部署位置不做具体限制。目标楼宇可以理解为目标玻璃幕墙所在的楼宇。目标玻璃幕墙可以理解为待检测的开启窗所属的玻璃幕墙。玻璃幕墙可以理解为支承结构体系相对主体结构有一定位移能力、不分担主体结构所受作用的建筑外围护结构或装饰结构,且玻璃幕墙中包括了多个开启窗,开启窗可以开启或关闭。Wherein, the image acquisition device can be understood as a device with an image acquisition function fixed at a certain position outside the target building, for example, a wide-angle camera or a video camera, and the position can be a first preset distance from the bottom of the target building, so that the wide-angle camera can shoot To the panoramic image of the target glass curtain wall facade including all open windows, the first preset distance can be set in advance, or it can be determined according to the specific situation, and the embodiment of the present application does not make specific limitations; the image acquisition device can also be a plurality of Camera or a plurality of cameras, each camera or camera is responsible for photographing a part of the target glass curtain wall, and the images taken by all cameras or all cameras are stitched together to form a panoramic image of the target glass curtain wall facade including all open windows. Or the deployment position of the camera is not specifically limited. The target building can be understood as the building where the target glass curtain wall is located. The target glass curtain wall can be understood as the glass curtain wall to which the open window to be detected belongs. The glass curtain wall can be understood as the building envelope or decorative structure that the supporting structure system has a certain displacement capacity relative to the main structure and does not share the effect of the main structure, and the glass curtain wall includes multiple opening windows, which can be opened or closed .
为了在大风甚至强台风天气对开启窗的开启状态进行检测,从而及时关闭开启窗,需要获取图像采集设备拍摄的原始图像,由于原始图像可能为部署于 目标楼宇底部的广角摄像头或者摄像机拍摄的,目标楼宇的位置越高,物距越远,目标就越小,那么原始图像可能是畸变图像,因此需要对原始图像进行校正,例如可以为:将原始图像校正成正常比例的目标玻璃幕墙外立面图像,从而得到校正图像。其中,正常比例可以理解为未发生畸变或者失真的目标玻璃幕墙外立面图像所对应的比例。校正方法可以有多种,例如,基于透视变换技术的畸变校正以及几何校正等,本申请实施例不做具体限制。In order to detect the opening state of the opening window in windy or even strong typhoon weather, so as to close the opening window in time, it is necessary to obtain the original image taken by the image acquisition device. Since the original image may be taken by a wide-angle camera or camera deployed at the bottom of the target building, The higher the position of the target building, the farther the object distance is, and the smaller the target is, then the original image may be a distorted image, so the original image needs to be corrected, for example, it can be: Correct the original image to the normal proportion of the target glass curtain wall exterior surface image to obtain a corrected image. Wherein, the normal ratio can be understood as the ratio corresponding to the target glass curtain wall facade image without distortion or distortion. There may be multiple correction methods, for example, distortion correction based on perspective transformation technology, geometric correction, etc., which are not specifically limited in this embodiment of the present application.
S120,将校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置。S120, input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the open window detection result image and the position of the open target open window according to the output of the target detection model.
其中,目标检测模型可以为Faster-区域卷积神经网络(Faster-Region Convolutional Neural Networks,简称Faster-RCNN)或者YOLO(You Only Look Once)等。目标开启窗可以理解为处于开启状态的开启窗。Among them, the target detection model can be Faster-Region Convolutional Neural Networks (Faster-Region Convolutional Neural Networks, referred to as Faster-RCNN) or YOLO (You Only Look Once), etc. The target opening window can be understood as an opening window in an open state.
在得到校正图像之后,将校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据目标检测模型的输出,即校正图像中哪些开启窗为开启状态,能够确定开启窗检测结果图像以及处于开启状态的每个目标开启窗在校正图像中的具体位置,便于后续确定与每个目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。After obtaining the corrected image, input the corrected image into the pre-trained target detection model to detect the open windows in the open state, and according to the output of the target detection model, that is, which open windows in the corrected image are open, the open window can be determined The detection result image and the specific position of each target opening window in the open state in the correction image are convenient for subsequent determination of the target room number corresponding to the position of each target opening window, and the target room number and the opening window detection result image Send to the controller side device corresponding to the building where the target glass curtain wall is located.
在一实施例中,根据目标检测模型的输出也可发现,当前并无目标开启窗,即当前所有的开启窗均处于关闭状态。同样地,此类情况也可输出开启窗检测结果图像,输出的处于开启状态的目标开启窗的位置为空信息,也可显示为无、0等其他信息。进而,后续的目标开启窗的位置所对应的目标房间号也可为空信息,也可显示为无、0等其他信息。In one embodiment, according to the output of the target detection model, it can also be found that there is currently no target open window, that is, all open windows are currently closed. Similarly, in this case, the image of the detection result of the open window can also be output, and the output position of the target open window in the open state is empty information, or it can be displayed as other information such as none or 0. Furthermore, the target room number corresponding to the position of the subsequent target opening window may also be empty information, or may be displayed as other information such as none or 0.
示例性的,图1B为本申请实施例一提供的方法中开启窗检测结果图像的示意图,示例性的给出了一种实现方式,如图1B所示。Exemplarily, FIG. 1B is a schematic diagram of an image of an open window detection result in the method provided in Embodiment 1 of the present application, and exemplarily provides an implementation manner, as shown in FIG. 1B .
图1B所示的开启窗检测结果图像中,可以很明显的看出哪些是处于开启状态的目标开启窗,能够方便后续管控人员的查看。In the open window detection result image shown in FIG. 1B , it can be clearly seen which target open windows are in the open state, which is convenient for subsequent management and control personnel to view.
S130,确定与目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。S130. Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the control personnel side device corresponding to the building where the target glass curtain wall is located.
其中,目标房间号可以理解为与目标开启窗的位置所对应的房间在目标楼宇中对应的房间号,即:目标开启窗所属的房间号。管控人员可以理解为负责目标楼宇相关管理工作的人员。管控人员侧设备可以理解为管控人员所使用的 设备,例如手机或者电脑等。Wherein, the target room number can be understood as the room number corresponding to the room corresponding to the position of the target opening window in the target building, that is, the room number to which the target opening window belongs. The management and control personnel can be understood as the personnel responsible for the management of the target building. The controller side device can be understood as the device used by the controller, such as a mobile phone or a computer.
在得到了处于开启状态的每个目标开启窗的位置之后,能够确定与每个目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像通过有线或者无线等通信方式发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备,以使管控人员及时处置或者关闭处于开启状态的每个目标开启窗。After obtaining the position of each target opening window in the open state, it is possible to determine the target room number corresponding to the position of each target opening window, and communicate the target room number and the detection result image of the opening window through wired or wireless communication The method is sent to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located, so that the management and control personnel can dispose of or close each target opening window in the open state in time.
本实施例,首先获取图像采集设备拍摄的原始图像,并对原始图像进行校正,得到校正图像,原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像,然后将校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的每个目标开启窗的位置,最后确定与每个目标开启窗的位置所分别对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。通过上述实施例,能够在大风天气来临时对玻璃幕墙开启窗开启状态进行检测,快速定位到处于开启状态的开启窗的位置。并且,通过图像采集设备拍摄的原始图像就可进行后续的玻璃幕墙开启窗开启状态检测,相比于相关技术中对每个开启窗安装传感器的方式,能够减少设备的部署与维护成本。In this embodiment, first obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image. The original image is a panoramic image of the facade of the target glass curtain wall including all open windows, and then input the corrected image to the pre-training The open window in the open state is detected in the target detection model of the target detection model, and the detection result image of the open window and the position of each target open window in the open state are determined according to the output of the target detection model, and finally the position of the open window corresponding to each target is determined The corresponding target room numbers, and send the target room number and the window opening detection result image to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located. Through the above-mentioned embodiment, it is possible to detect the opening state of the opening window of the glass curtain wall when the windy weather comes, and quickly locate the position of the opening window in the open state. In addition, the original image captured by the image acquisition device can be used for subsequent detection of the opening state of the opening window of the glass curtain wall. Compared with the method of installing sensors for each opening window in the related art, the cost of equipment deployment and maintenance can be reduced.
在一些实施例中,所述对所述原始图像进行校正,得到校正图像,可以包括:在所述原始图像中选取预设个数的参考点以及确定与每个参考点相对应的标准参考点;根据所述预设个数的参考点的坐标以及所述标准参考点的坐标,确定从预设个数的参考点投影到对应的标准参考点的变换矩阵;基于所述变换矩阵对所述原始图像进行校正,得到校正图像。In some embodiments, the correcting the original image to obtain the corrected image may include: selecting a preset number of reference points in the original image and determining a standard reference point corresponding to each reference point ; According to the coordinates of the preset number of reference points and the coordinates of the standard reference point, determine the transformation matrix projected from the preset number of reference points to the corresponding standard reference point; The original image is corrected to obtain the corrected image.
其中,预设个数可以预先设置好,例如,可以有4个预设个数的参考点,也可以视具体情况而定,本申请实施例不做具体限制。Wherein, the preset number can be set in advance, for example, there can be 4 preset reference points, or it can be determined according to specific circumstances, and the embodiment of the present application does not make specific limitations.
例如,为了对原始图像进行校正,在原始图像中选取预设个数的参考点,例如,可以在图像采集设备部署位置固定时,选取相对比较规则的点作为参考点,以及确定与每个参考点相对应的标准参考点,其中,标准参考点可以人为确定,也可以按照目标楼宇的宽度和校正图像的宽度之间的比例关系以及目标楼宇的高度和校正图像的高度之间的比例关系进行确定,本申请实施例不做具体限制。在确定了参考点和对应的标准参考点之后,根据参考点的坐标以及标准参考点的坐标,能够确定从每个参考点投影到对应的标准参考点的变换矩阵。通过变换矩阵能够将原始图像变换成正常比例的校正图像。For example, in order to correct the original image, select a preset number of reference points in the original image, for example, when the deployment position of the image acquisition device is fixed, select a relatively regular point as the reference point, and determine the relationship with each reference point point corresponding to the standard reference point, where the standard reference point can be determined manually, or according to the proportional relationship between the width of the target building and the width of the corrected image, and the proportional relationship between the height of the target building and the height of the corrected image. Definitely, the embodiment of the present application does not make specific limitations. After the reference point and the corresponding standard reference point are determined, according to the coordinates of the reference point and the coordinates of the standard reference point, a transformation matrix projected from each reference point to the corresponding standard reference point can be determined. The original image can be transformed into a normal scale corrected image through the transformation matrix.
本申请实施例中,通过上述校正方法,将原始图像统一校正成正常比例的 校正图像,便于后续通过校正图像中处于开启状态的每个目标开启窗的位置确定对应的目标房间号;由于原始图像中有的开启窗尺寸较小,不利于后续目标检测模型的检测,通过校正还原了目标玻璃幕墙外立面的正常比例,间接放大了尺寸较小的开启窗的尺寸,突出了开启窗特征,有利于提高开启状态的每个目标开启窗的识别准确性;防止因为图像的畸变导致后续目标检测模型的输出结果不准确,从而影响目标房间号的确定。In the embodiment of the present application, through the above-mentioned correction method, the original image is uniformly corrected into a normal-scale corrected image, which facilitates subsequent determination of the corresponding target room number by correcting the position of each target opening window in the open state in the corrected image; since the original image Some of the opening windows are small in size, which is not conducive to the detection of the subsequent target detection model. The normal ratio of the facade of the target glass curtain wall is restored through correction, and the size of the opening window with a small size is indirectly enlarged to highlight the characteristics of the opening window. It is conducive to improving the recognition accuracy of each target opening window in the open state; preventing the output result of the subsequent target detection model from being inaccurate due to image distortion, thereby affecting the determination of the target room number.
示例性的,图1C为本申请实施例一提供的方法中校正过程的示意图,示例性的给出了一种实现方式,如图1C所示:Exemplarily, FIG. 1C is a schematic diagram of the correction process in the method provided in Embodiment 1 of the present application, and an exemplary implementation is given, as shown in FIG. 1C:
图1C中左边的图为原始图像,右边的图为校正成正常比例的校正图像。从原始图像中选取了4个参考点,分别用A、B、C和D表示,A1、B1、C1和D1为对应的4个标准参考点,其中A1与A对应,B1与B对应,C1和C对应,D1和D对应。根据A、B、C和D的坐标以及A1、B1、C1和D1的坐标,能够确定从参考点投影到对应的标准参考点的变换矩阵M,进而通过变换矩阵M能够将原始图像变换成正常比例的校正图像。The image on the left in Figure 1C is the original image, and the image on the right is the rectified image corrected to normal scale. Four reference points are selected from the original image, denoted by A, B, C and D respectively. A1, B1, C1 and D1 are the corresponding four standard reference points, where A1 corresponds to A, B1 corresponds to B, and C1 Corresponds to C, D1 corresponds to D. According to the coordinates of A, B, C, and D and the coordinates of A1, B1, C1, and D1, the transformation matrix M projected from the reference point to the corresponding standard reference point can be determined, and then the original image can be transformed into a normal image through the transformation matrix M Scale rectified image.
在一些实施例中,所述在所述原始图像中选取预设个数的参考点,可以包括:将所述原始图像输入至预先训练的语义分割模型中,得到与所述原始图像对应的二值化图像,其中,所述二值化图像中白色区域为所述目标玻璃幕墙外立面所形成的区域,黑色区域为背景区域;对所述二值化图像中的白色区域进行轮廓提取,得到所述白色区域对应的轮廓信息;提取所述轮廓信息中边缘直线的信息,并将所述边缘直线之间的交点作为在所述原始图像中选取的预设个数的参考点。In some embodiments, the selecting a preset number of reference points in the original image may include: inputting the original image into a pre-trained semantic segmentation model to obtain two A valued image, wherein the white area in the binarized image is the area formed by the target glass curtain wall facade, and the black area is the background area; contour extraction is performed on the white area in the binarized image, Obtaining contour information corresponding to the white area; extracting edge straight line information in the contour information, and using the intersection points between the edge straight lines as a preset number of reference points selected in the original image.
其中,语义分割模型可以为全卷积神经网络(Fully Convolutional Networks,简称FCN)、U-Net或者DeepLab等,本申请实施例不做具体限制。黑色区域可以理解为原始图像中不包含目标玻璃幕墙外立面的部分所形成的区域。Wherein, the semantic segmentation model may be a fully convolutional neural network (Fully Convolutional Networks, referred to as FCN), U-Net or DeepLab, etc., which are not specifically limited in the embodiment of the present application. The black area can be understood as the area formed by the part of the original image that does not contain the facade of the target glass curtain wall.
例如,当图像采集设备出现轻微位置变化时,将原始图像输入至预先训练的语义分割模型中,能够得到与原始图像对应的二值化图像,对该二值化图像中的白色区域进行轮廓提取,例如Canny算子提取方法,还可以是其他提取方法,能够得到白色区域对应的轮廓信息。通过Hough变换方法可以提取轮廓信息中边缘直线的信息,也可以是其他变换方法,本申请实施例不做具体限制。最后将边缘直线之间的交点作为在原始图像中选取的预设个数的参考点。For example, when there is a slight change in the position of the image acquisition device, the original image is input into the pre-trained semantic segmentation model, and a binary image corresponding to the original image can be obtained, and the outline of the white area in the binary image can be extracted , such as the Canny operator extraction method, or other extraction methods, which can obtain the contour information corresponding to the white area. The edge straight line information in the contour information can be extracted by using the Hough transform method, or other transform methods, which are not specifically limited in this embodiment of the present application. Finally, the intersection points between the edge straight lines are used as the reference points of the preset number selected in the original image.
示例性的,图1D为本申请实施例一提供的方法中选取预设个数的参考点的过程示意图,示例性的给出了一种实现方式,如图1D所示:Exemplarily, FIG. 1D is a schematic diagram of the process of selecting a preset number of reference points in the method provided in Embodiment 1 of the present application, and an exemplary implementation is given, as shown in FIG. 1D:
图1D中从左至右的第一个图为原始图像,第二个图为与原始图像对应的二值化图像,第三个图为轮廓提取后得到的图像,第四个图为提取轮廓信息中边缘直线的信息后得到的图像,第四个图中边缘直线之间的交点A2、B2、C2和D2即为在原始图像中选取的4个参考点。The first picture from left to right in Figure 1D is the original image, the second picture is the binarized image corresponding to the original image, the third picture is the image obtained after contour extraction, and the fourth picture is the extracted contour The image obtained after the edge straight line information in the information, the intersection points A2, B2, C2 and D2 between the edge straight lines in the fourth figure are the four reference points selected in the original image.
本申请实施例中,通过上述基于深度学习语义分割的方法提取参考点可以在图像采集设备出现轻微位置变化时,仍能够稳定地提取参考点位置信息,同时能够有效排除非目标玻璃幕墙外立面的背景信息,提高后续处于开启状态的每个目标开启窗的识别精度。In the embodiment of the present application, the extraction of reference points through the above method based on deep learning semantic segmentation can still stably extract the position information of reference points when the image acquisition device has a slight position change, and at the same time can effectively exclude non-target glass curtain wall facades background information to improve the recognition accuracy of each target opening window that is in the open state.
在一些实施例中,语义分割模型可以通过以下训练方式得到:In some embodiments, the semantic segmentation model can be obtained through the following training methods:
1、数据准备:采用图像采集设备从目标楼宇底部仰视拍摄目标玻璃幕墙外立面,得到全景图像数据。例如,所采集的玻璃幕墙外立面全景图像应包括处于开启状态的开启窗,作为后续语义分割模型的训练数据样本;并且为了增加数据样本的多样性,可以采集不同时间段,各种不同光照条件下的全景图像数据。1. Data preparation: Use image acquisition equipment to look up from the bottom of the target building to shoot the facade of the target glass curtain wall to obtain panoramic image data. For example, the collected panorama image of the facade of the glass curtain wall should include the opened window as the training data sample of the subsequent semantic segmentation model; Panoramic image data under conditions.
对所采集的多个全景图像数据进行数据标注,例如,人为标注原始图像中的目标玻璃幕墙外立面所形成的区域和背景区域,并根据标注后的数据形成训练集和验证集,训练集作为训练样本,验证集作为验证样本。标注的图像可以为二值化的掩码图像,标注的图像中目标玻璃幕墙外立面所形成的区域对应的灰度值可以为255,背景区域对应的灰度值可以为0。Carry out data annotation on multiple panoramic image data collected, for example, artificially annotate the area and background area formed by the facade of the target glass curtain wall in the original image, and form a training set and a verification set based on the annotated data, the training set As training samples, the validation set is used as validation samples. The marked image may be a binarized mask image, the gray value corresponding to the area formed by the facade of the target glass curtain wall in the marked image may be 255, and the gray value corresponding to the background area may be 0.
2、数据增强:在语义分割模型训练的过程中可以使用在线数据增强的方式,丰富训练数据样本。其中,数据增强的方式可以包括但不限于以下几种:尺度变化、随机遮挡、透视变换、随机旋转和水平翻转、加高斯噪声以及颜色变化等。2. Data enhancement: In the process of semantic segmentation model training, online data enhancement can be used to enrich training data samples. Among them, the ways of data enhancement may include but not limited to the following: scale change, random occlusion, perspective transformation, random rotation and horizontal flip, adding Gaussian noise and color change, etc.
3、模型训练:在训练过程中,当训练集中包含的样本的训练结果与验证集中对应的样本之间的准确度达到预设阈值时,说明验证结果满足结束条件,此时结束训练,保存当前训练的参数作为语义分割模型的参数。其中,预设阈值可以预先设置好,例如90%,也可以视具体情况而定,本申请实施例不做具体限制。3. Model training: During the training process, when the accuracy between the training results of the samples contained in the training set and the corresponding samples in the verification set reaches the preset threshold, it means that the verification results meet the end conditions. At this time, the training ends and the current model is saved. The trained parameters are used as the parameters of the semantic segmentation model. Wherein, the preset threshold may be set in advance, for example, 90%, or it may be determined according to specific circumstances, which is not specifically limited in this embodiment of the present application.
本申请实施例中,通过上述训练方式得到语义分割模型,一方面可以提高模型识别结果的准确性,另一方面有利于后续得到较为准确的变换矩阵。In the embodiment of the present application, the semantic segmentation model is obtained through the above training method, on the one hand, it can improve the accuracy of the model recognition result, and on the other hand, it is beneficial to obtain a more accurate transformation matrix later.
在一些实施例中,确定与所述每个目标开启窗的位置所分别对应的目标房间号,可以包括:查询所述目标玻璃幕墙外立面所有开启窗的位置与房间号的 预设对应关系;根据所述预设对应关系确定与每个目标开启窗的位置所分别对应的目标房间号。In some embodiments, determining the target room number corresponding to the position of each target opening window may include: inquiring about the preset correspondence between the positions of all opening windows on the facade of the target glass curtain wall and the room numbers ; Determine the target room number corresponding to the position of each target opening window according to the preset corresponding relationship.
例如,为了便于管控人员快速处理大风天气存在的开启窗开启现象,可根据处于开启状态的每个目标开启窗在校正图像中的位置找到所对应的房间号,因此,可首先建立校正图像中所有开启窗的位置(包括所有开启与关闭状态的开启窗)与房间号的预设对应关系,然后查询目标玻璃幕墙外立面所有开启窗的位置与房间号的预设对应关系,根据该预设对应关系能够确定出与每个目标开启窗的位置所对应的目标房间号。For example, in order to facilitate the management and control personnel to quickly deal with the phenomenon of opening windows in windy weather, the corresponding room number can be found according to the position of each target opening window in the open state in the correction image. The position of the open window (including all open windows in the open and closed states) and the preset correspondence relationship with the room number, and then query the preset correspondence relationship between the position of all open windows on the facade of the target glass curtain wall and the room number, according to the preset The corresponding relationship can determine the target room number corresponding to the position of each target opening window.
本申请实施例中,通过上述查询方式,能够快速找到与每个目标开启窗的位置所对应的目标房间号,从而使得管控人员及时做出反应,防止在大风甚至强台风天气时,因为开启窗未及时关闭,造成开启窗的高空脱落,危害人身安全和公共安全,造成不必要的损失。In the embodiment of the present application, through the above query method, the target room number corresponding to the position of each target opening window can be quickly found, so that the management and control personnel can respond in time to prevent the window from being opened due to strong winds or even strong typhoons. If it is not closed in time, the open window will fall off at a high altitude, endangering personal safety and public safety, and causing unnecessary losses.
实施例二Embodiment two
图2为本申请实施例二提供的一种玻璃幕墙开启窗开启状态检测方法的流程图。本申请实施例是在上述实施例的基础上进行调整。本实施例可对将校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,以及确定开启窗检测结果图像和处于开启状态的目标开启窗的位置的过程进行解释说明。FIG. 2 is a flow chart of a method for detecting the opening state of an open window in a glass curtain wall provided in Embodiment 2 of the present application. The embodiments of the present application are adjusted on the basis of the foregoing embodiments. This embodiment can explain the process of inputting the corrected image into the pre-trained target detection model to detect the open window in the open state, and determining the detection result image of the open window and the position of the target open window in the open state.
参见图2,本实施例的方法包括但不限于如下步骤:Referring to Fig. 2, the method of the present embodiment includes but not limited to the following steps:
S210,获取图像采集设备拍摄的原始图像,并对原始图像进行校正,得到校正图像,其中,原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像。S210. Acquire the original image captured by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the exterior facade of the target glass curtain wall including all open windows.
S220,对校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像。S220, scanning and cropping the corrected image according to a window of a preset size and a preset step size to obtain a cropped image.
其中,所述预设尺寸和所述预设步长对应的数值均为开启窗最大边长的整数倍,所述预设步长对应的数值小于所述预设尺寸对应的数值。Wherein, the values corresponding to the preset size and the preset step are integer multiples of the maximum side length of the open window, and the value corresponding to the preset step is smaller than the value corresponding to the preset size.
例如,由于目标楼宇对应的校正图像尺寸可能较大,如果直接将原尺寸的校正图像输入至目标检测模型进行检测,硬件条件可能难以支撑,而缩小图像的方式容易丢掉校正图像中的关键特征信息,对目标检测模型的精度有影响。因此,本申请实施例中通过对校正图像按照预设尺寸的窗口,例如n*n的窗口,以及预设步长进行扫描裁剪就能得到裁剪后的图像,便于后续将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检 测。For example, since the size of the corrected image corresponding to the target building may be large, if the corrected image of the original size is directly input to the target detection model for detection, the hardware conditions may be difficult to support, and the method of reducing the image is easy to lose key feature information in the corrected image , has an impact on the accuracy of the target detection model. Therefore, in the embodiment of the present application, the cropped image can be obtained by scanning and cropping the corrected image according to a window of a preset size, such as a window of n*n, and a preset step size, so that all the cropped images can be divided into Input to the pre-trained object detection model to detect the open window in the open state.
本申请实施例中,上述裁剪方式不仅能够保证每个开启窗都能完整地被包含在裁剪后的图像中,而且能够缓解硬件的压力。In the embodiment of the present application, the above cropping method can not only ensure that each open window can be completely included in the cropped image, but also relieve the pressure on the hardware.
在一实施例中,预设尺寸的窗口可为正方形。In one embodiment, the window with a predetermined size may be a square.
在一实施例中,通过设置预设步长对应的数值小于预设尺寸对应的数值,可使得窗口可以重叠式扫描图像进行裁剪,保证每个开启窗都可以完整地被裁剪出来,避免开启窗可能被部分裁剪,对后续识别精度造成影响。In one embodiment, by setting the value corresponding to the preset step length to be smaller than the value corresponding to the preset size, the window can be cropped by overlapping scanned images, ensuring that each open window can be completely cropped out, and avoiding opening the window It may be partially cropped, which will affect the subsequent recognition accuracy.
在一实施例中,预设尺寸可为窗口的一条边长。In one embodiment, the predetermined size may be a side length of the window.
S230,将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,得到每个裁剪后的图像所对应的第一开启窗检测结果图像以及每个裁剪后的图像中处于开启状态的每个第一目标开启窗所对应的矩形检测框的第一位置坐标。S230. Input all the cropped images into the pre-trained target detection model to detect the open window in the open state, and obtain the first open window detection result image corresponding to each cropped image and each cropped image. The first position coordinates of the rectangular detection frame corresponding to each first target opening window in the open state in the image of .
其中,第一开启窗检测结果图像可以理解为某裁剪后的图像中将处于开启状态的开启窗用矩形检测框进行标注所得到的图像。矩形检测框的尺寸可以为刚好框选开启窗的矩形框,例如,矩形检测框的尺寸可以略大于开启窗的尺寸,也可以略小于开启窗的尺寸。第一位置坐标可以为每个第一目标开启窗所对应的矩形检测框的中心点位置坐标,也可以为其他顶点的位置坐标。在确定第一位置坐标时,原点可以选取相对应的某裁剪后的图像的左上角的顶点,也可以是其他的点,本申请实施例不做具体限制。Wherein, the first open window detection result image can be understood as an image obtained by marking open windows in an open state with a rectangular detection frame in a cropped image. The size of the rectangular detection frame can be a rectangular frame that just frames the open window, for example, the size of the rectangular detection frame can be slightly larger than the size of the open window, or slightly smaller than the size of the open window. The first position coordinates may be the position coordinates of the center point of the rectangular detection frame corresponding to each first target opening window, or the position coordinates of other vertices. When determining the coordinates of the first position, the origin may be selected from the vertex in the upper left corner of a corresponding cropped image, or other points, which are not specifically limited in this embodiment of the present application.
将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,能够得到每个裁剪后的图像所对应的第一开启窗检测结果图像,以及通过建立坐标系,能够确定每个裁剪后的图像中处于开启状态的每个第一目标开启窗所对应的矩形检测框的第一位置坐标,例如,每个第一目标开启窗所对应的矩形检测框的中心点位置坐标,示例性的,可以用(cxi,cyi,wi,hi)表示某第一位置坐标,其中,cxi为该第一位置坐标的横坐标,cyi为该第一位置坐标的纵坐标,wi为与第一位置坐标对应的矩形检测框的宽度,hi为与第一位置坐标对应的矩形检测框的高度,便于后续基于每个裁剪后的图像相对于校正图像的位置,将所有第一开启窗检测结果图像映射至校正图像中,得到开启窗检测结果图像。Input all the cropped images into the pre-trained target detection model to detect the open window in the open state, and the first open window detection result image corresponding to each cropped image can be obtained, and by establishing the coordinate system , it is possible to determine the first position coordinates of the rectangular detection frame corresponding to each first target open window in the open state in each cropped image, for example, the center of the rectangular detection frame corresponding to each first target open window Point position coordinates, for example, can use (cxi, cyi, wi, hi) to represent a certain first position coordinates, wherein, cxi is the abscissa of the first position coordinates, cyi is the ordinate of the first position coordinates, wi is the width of the rectangular detection frame corresponding to the first position coordinates, hi is the height of the rectangular detection frame corresponding to the first position coordinates, so that all the first The image of the detection result of the open window is mapped to the corrected image to obtain the image of the detection result of the open window.
在一些实施例中,目标检测模型可以通过以下训练方式得到:In some embodiments, the target detection model can be obtained through the following training methods:
1、数据准备:对多个校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像;对每个裁剪后的图像进行数据标注,标注结果可以为 刚好框选开启窗的矩形框,矩形框可以用(cx,cy,w,h)表示,其中(cx,cy)是矩形框中心点坐标,cx为矩形框中心点横坐标,cy为矩形框中心点纵坐标,w为矩形框的宽度,h为矩形框的度高,将标注后的图像划分成训练集和验证集,训练集作为训练样本,验证集作为验证样本。1. Data preparation: scan and crop multiple corrected images according to the preset size of the window and the preset step size to obtain the cropped image; perform data labeling on each cropped image, and the labeling result can be just framed to open the window The rectangular frame can be represented by (cx, cy, w, h), where (cx, cy) is the coordinate of the center point of the rectangular frame, cx is the abscissa of the center point of the rectangular frame, and cy is the ordinate of the center point of the rectangular frame. w is the width of the rectangular frame, h is the height of the rectangular frame, divide the marked image into a training set and a verification set, the training set is used as a training sample, and the verification set is used as a verification sample.
例如,窗口为正方形,预设尺寸为正方形的边长,预设步长为窗口滑动的距离(单位为像素),窗口可横向与纵向滑动。For example, the window is a square, the preset size is the side length of the square, the preset step size is the sliding distance of the window (in pixels), and the window can be slid horizontally and vertically.
2、数据增强:在目标检测模型训练的过程中可以使用在线数据增强的方式,丰富训练数据样本。其中,数据增强的方式可以包括但不限于以下几种:尺度变化、透视变换、随机旋转和水平翻转、直方图均衡化、加高斯噪声、色调饱和度明度(Hue,Saturation,Value,简称HSV)空间颜色变换和随机遮挡等。2. Data enhancement: In the process of target detection model training, online data enhancement can be used to enrich training data samples. Among them, the methods of data enhancement can include but not limited to the following: scale change, perspective transformation, random rotation and horizontal flip, histogram equalization, Gaussian noise, hue saturation brightness (Hue, Saturation, Value, referred to as HSV) Spatial color transformation and random occlusion, etc.
数据增强,一方面可以增加训练的数据量,提高模型的泛化能力。另一方面可以增加噪声数据,提升模型的鲁棒性。Data enhancement, on the one hand, can increase the amount of training data and improve the generalization ability of the model. On the other hand, noise data can be added to improve the robustness of the model.
3、模型训练:在训练过程中,当训练集中包含的样本的训练结果与验证集中对应的样本之间的准确度达到预设阈值时,说明验证结果满足结束条件,此时结束训练,保存当前训练的参数作为目标检测模型的参数。其中,预设阈值可以预先设置好,例如92%,也可以视具体情况而定,本申请实施例不做具体限制。3. Model training: During the training process, when the accuracy between the training results of the samples contained in the training set and the corresponding samples in the verification set reaches the preset threshold, it means that the verification results meet the end conditions. At this time, the training ends and the current model is saved. The trained parameters are used as the parameters of the object detection model. Wherein, the preset threshold may be set in advance, for example, 92%, or it may be determined according to specific circumstances, which is not specifically limited in this embodiment of the present application.
S240,基于每个裁剪后的图像相对于校正图像的位置,将所有第一开启窗检测结果图像映射至校正图像中,得到开启窗检测结果图像。S240. Based on the position of each cropped image relative to the corrected image, map all first open window detection result images to the corrected image to obtain an open window detection result image.
由于每个裁剪后的图像是对校正图像进行扫描裁剪得到,因此,基于每个裁剪后的图像相对于校正图像的位置,将所有第一开启窗检测结果图像映射至校正图像中,能够得到每个第一开启窗检测结果图像分别对应的初始图像,将至少一个初始图像按照相应的位置拼接起来,就能够得到开启窗检测结果图像。Since each cropped image is obtained by scanning and cropping the corrected image, based on the position of each cropped image relative to the corrected image, all the first window detection result images are mapped to the corrected image, and each The first open window detection result images respectively correspond to the initial images, and at least one initial image is spliced according to the corresponding position to obtain the open window detection result image.
S250,基于每个裁剪后的图像相对于校正图像的位置,将所有第一位置坐标的矩形检测框映射至校正图像中,得到矩形检测框在校正图像中的中心点位置坐标。S250. Based on the position of each cropped image relative to the corrected image, map all the rectangular detection frames with the first position coordinates to the corrected image to obtain the position coordinates of the center point of the rectangular detection frame in the corrected image.
基于每个裁剪后的图像相对于校正图像的位置,将所有第一位置坐标的矩形检测框映射至校正图像中,能够得到多个矩形检测框分别在校正图像中的中心点位置坐标,例如,假设(cxi,cyi,wi,hi)表示某第一位置坐标,(cxj,cyj,wj,hj)则为该第一位置坐标映射在校正图像中的中心点位置坐标,cxj为该中心点位置的横坐标,cyj为该中心点位置的纵坐标,wj为与第一位置坐标对应的矩形检测框的宽度,hj为与第一位置坐标对应的矩形检测框的高度。Based on the position of each cropped image relative to the corrected image, all the rectangular detection frames of the first position coordinates are mapped to the corrected image, and the position coordinates of the center points of multiple rectangular detection frames in the corrected image can be obtained, for example, Suppose (cxi, cyi, wi, hi) represent the coordinates of a first position, (cxj, cyj, wj, hj) are the coordinates of the center point of the first position coordinates mapped in the corrected image, and cxj is the position of the center point The abscissa of , cyj is the ordinate of the center point position, wj is the width of the rectangular detection frame corresponding to the first position coordinate, hj is the height of the rectangular detection frame corresponding to the first position coordinate.
S260,根据中心点位置坐标确定每个目标开启窗的位置。S260. Determine the position of each target opening window according to the position coordinates of the center point.
在得到了所有第一位置坐标的矩形检测框分别在校正图像中的中心点位置坐标之后,根据每个中心点位置坐标可以确定出与每个中心点位置坐标相对应的目标开启窗的位置,从而便于后续确定与每个目标开启窗的位置所对应的目标房间号,并将目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。After obtaining the center point position coordinates of all the first position coordinates of the rectangular detection frame in the corrected image, the position of the target opening window corresponding to each center point position coordinate can be determined according to each center point position coordinate, This facilitates the subsequent determination of the target room number corresponding to the position of each target open window, and sends the target room number and the detection result image of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
在一些实施例中,在得到所述矩形检测框在所述校正图像中的中心点位置坐标之后,还可以包括:对所述中心点位置坐标进行验证,若所述中心点位置坐标对应的第一横坐标大于第二横坐标,且小于第三横坐标,所述中心点位置坐标对应的第一纵坐标大于第二纵坐标,且小于第三纵坐标,则说明验证结果为通过,其中,所述第二横坐标和所述第三横坐标从所述中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的横坐标中选取,所述第二纵坐标和所述第三纵坐标从所述中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的纵坐标中选取;在所述验证结果为通过时,获取与所述中心点位置坐标对应的目标开启窗所对应的目标房间号。In some embodiments, after obtaining the center point position coordinates of the rectangular detection frame in the corrected image, it may further include: verifying the center point position coordinates, if the center point position coordinates correspond to the first One abscissa is greater than the second abscissa and less than the third abscissa, and the first ordinate corresponding to the center point position coordinate is greater than the second ordinate and less than the third ordinate, then the verification result is passed, wherein, The second abscissa and the third abscissa are selected from the abscissas corresponding to all vertices in the corrected image of the target open window corresponding to the center point position coordinates, the second ordinate and the The third ordinate is selected from the ordinates corresponding to the target opening window corresponding to the center point position coordinates in the corrected image; when the verification result is passed, obtain the coordinates corresponding to the center point position coordinates The target room number corresponding to the target opening window of .
例如,由于第二横坐标和第三横坐标从中心点位置坐标对应的目标开启窗在校正图像中的所有顶点对应的横坐标中选取,那么假设原点为校正图像左上角顶点,可以将目标开启窗在校正图像中的左上角顶点对应的横坐标确定为第二横坐标,假设用x1表示;可以将目标开启窗在校正图像中的右下角顶点对应的横坐标确定为第三横坐标,假设用x2表示。由于第二纵坐标和第三纵坐标从中心点位置坐标对应的目标开启窗在校正图像中的所有顶点对应的纵坐标中选取,那么假设原点为校正图像左上角顶点,可以将目标开启窗在校正图像中的左上角顶点对应的纵坐标确定为第二纵坐标,假设用y1表示;可以将目标开启窗在校正图像中的右下角顶点对应的纵坐标确定为第三纵坐标,假设用y2表示。For example, since the second abscissa and the third abscissa are selected from the abscissa corresponding to all vertices in the corrected image from the target opening window corresponding to the center point position coordinates, then assuming that the origin is the vertex in the upper left corner of the corrected image, the target can be opened The abscissa corresponding to the upper left vertex of the window in the corrected image is determined as the second abscissa, which is assumed to be represented by x1; the abscissa corresponding to the lower right vertex of the target opening window in the corrected image can be determined as the third abscissa, assuming Expressed by x2. Since the second ordinate and the third ordinate are selected from the ordinates corresponding to all vertices in the corrected image from the target open window corresponding to the center point position coordinates, then assuming that the origin is the vertex in the upper left corner of the corrected image, the target open window can be set at The ordinate corresponding to the vertex in the upper left corner in the corrected image is determined as the second ordinate, which is assumed to be represented by y1; the ordinate corresponding to the vertex in the lower right corner of the target opening window in the corrected image can be determined as the third ordinate, which is assumed to be y2 express.
在得到矩形检测框在校正图像中的中心点位置坐标之后,对该中心点位置坐标进行验证,假设该中心点位置坐标为(cxj,cyj,wj,hj),原点为校正图像左上角顶点,若该中心点位置坐标对应的第一横坐标cxj大于第二横坐标x1,且小于第三横坐标x2,即:x1<cxj<x2,中心点位置坐标对应的第一纵坐标cyj大于第二纵坐标y1,且小于第三纵坐标y2,即:y1<cyj<y2,则说明验证结果为通过。在验证结果为通过时,就获取与中心点位置坐标对应的目标开启窗所对应的目标房间号。After obtaining the position coordinates of the center point of the rectangular detection frame in the corrected image, verify the position coordinates of the center point, assuming that the position coordinates of the center point are (cxj, cyj, wj, hj), and the origin is the vertex in the upper left corner of the corrected image, If the first abscissa cxj corresponding to the position coordinates of the center point is greater than the second abscissa x1 and smaller than the third abscissa x2, that is: x1<cxj<x2, the first ordinate cyj corresponding to the center point position coordinates is greater than the second If the vertical coordinate y1 is smaller than the third vertical coordinate y2, namely: y1<cyj<y2, then the verification result is passed. When the verification result is passed, the target room number corresponding to the target opening window corresponding to the position coordinates of the center point is obtained.
本申请实施例中,通过上述方法对中心点位置坐标进行验证,能够确保中 心点位置坐标的准确性,避免出错,提高准确率。In the embodiment of the present application, the above method is used to verify the position coordinates of the center point, which can ensure the accuracy of the position coordinates of the center point, avoid mistakes, and improve the accuracy rate.
在一些实施例中,在得到矩形检测框在校正图像中的中心点位置坐标之后,还可以将矩形检测框范围参数与对应的目标房间号直接进行绑定,从而能够更加迅速的确定目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。In some embodiments, after obtaining the position coordinates of the center point of the rectangular detection frame in the corrected image, the range parameter of the rectangular detection frame can also be directly bound to the corresponding target room number, so that the target room number can be determined more quickly , and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
其中,矩形检测框范围参数可以用(x0,y0,x3,y3)表示,x0为矩形检测框左上角顶点的横坐标,y0为矩形检测框左上角顶点的纵坐标,x3为矩形检测框右下角顶点的横坐标,y3为矩形检测框右下角顶点的纵坐标。Among them, the range parameters of the rectangular detection frame can be represented by (x0, y0, x3, y3), x0 is the abscissa coordinate of the top left corner of the rectangle detection frame, y0 is the vertical coordinate of the top left corner of the rectangle detection frame, x3 is the right side of the rectangle detection frame The abscissa of the vertex of the lower corner, y3 is the ordinate of the vertex of the lower right corner of the rectangular detection frame.
S270,确定与目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。S270. Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the management and control personnel side device corresponding to the building where the target glass curtain wall is located.
本实施例,首先获取图像采集设备拍摄的原始图像,并对原始图像进行校正,得到校正图像,接着对校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像,将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,得到每个裁剪后的图像所对应的第一开启窗检测结果图像以及每个裁剪后的图像中处于开启状态的每个第一目标开启窗所对应的矩形检测框的第一位置坐标,然后基于每个裁剪后的图像相对于校正图像的位置,将所有第一开启窗检测结果图像映射至校正图像中,得到开启窗检测结果图像,基于每个裁剪后的图像相对于校正图像的位置,将所有第一位置坐标的矩形检测框映射至校正图像中,得到矩形检测框在校正图像中的中心点位置坐标,根据中心点位置坐标确定每个目标开启窗的位置,最后确定与每个目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备,通过上述实施例,对校正图像裁剪后再输入至预先训练的目标检测模型中进行检测,不仅能够保证每个开启窗都能完整地被包含在裁剪后的图像中,而且能够缓解硬件的压力,提高后续确定的每个目标开启窗的位置的准确性,以及能够在大风天气来临时对开启窗开启状态进行检测,快速定位到处于开启状态的开启窗的位置。In this embodiment, the original image captured by the image acquisition device is first obtained, and the original image is corrected to obtain a corrected image, and then the corrected image is scanned and cropped according to a preset window size and a preset step size to obtain a cropped image, and the All cropped images are input to the pre-trained target detection model to detect the open window in the open state, and the first open window detection result image corresponding to each cropped image and each cropped image are obtained. The first position coordinates of the rectangular detection frame corresponding to each first target open window in the open state, and then based on the position of each cropped image relative to the corrected image, map all the first open window detection result images to the corrected In the image, the image of the detection result of the open window is obtained, and based on the position of each cropped image relative to the corrected image, all the rectangular detection frames of the first position coordinates are mapped to the corrected image, and the center of the rectangular detection frame in the corrected image is obtained Point position coordinates, determine the position of each target opening window according to the center point position coordinates, and finally determine the target room number corresponding to the position of each target opening window, and send the target room number and the opening window detection result image to the target For the management and control personnel side equipment corresponding to the building where the glass curtain wall is located, through the above embodiment, the corrected image is cropped and then input to the pre-trained target detection model for detection, which not only ensures that each open window can be completely included in the cropped In the image, it can relieve the pressure on the hardware, improve the accuracy of the position of each target opening window determined subsequently, and can detect the opening state of the opening window when the windy weather comes, and quickly locate the opening window in the open state s position.
实施例三Embodiment Three
图3为本申请实施例三提供的一种玻璃幕墙开启窗开启状态检测装置的结构示意图,如图3所示,该装置可以包括:Fig. 3 is a schematic structural diagram of a device for detecting the opening state of a glass curtain wall opening window provided in Embodiment 3 of the present application. As shown in Fig. 3 , the device may include:
校正模块310,设置为获取图像采集设备拍摄的原始图像,并对所述原始图 像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;The correction module 310 is configured to obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the target glass curtain wall facade including all open windows;
检测模块320,设置为将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置;The detection module 320 is configured to input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the detection result image of the open window and the target in the open state according to the output of the target detection model the position of the opening window;
发送模块330,设置为确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。The sending module 330 is configured to determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the control room corresponding to the building where the target glass curtain wall is located. Equipment on the personnel side.
本实施例,首先获取图像采集设备拍摄的原始图像,并对原始图像进行校正,得到校正图像,原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像,然后将校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置,最后确定与目标开启窗的位置所对应的目标房间号,并将目标房间号和开启窗检测结果图像发送至与目标玻璃幕墙所在楼宇对应的管控人员侧设备。通过上述实施例,能够在大风天气来临时对玻璃幕墙开启窗开启状态进行检测,快速定位到处于开启状态的开启窗的位置。In this embodiment, first obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image. The original image is a panoramic image of the facade of the target glass curtain wall including all open windows, and then input the corrected image to the pre-training The open window in the open state is detected in the target detection model of the target detection model, and the detection result image of the open window and the position of the open window of the target in the open state are determined according to the output of the target detection model, and finally the target corresponding to the position of the target open window is determined Room number, and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located. Through the above-mentioned embodiment, it is possible to detect the opening state of the opening window of the glass curtain wall when the windy weather comes, and quickly locate the position of the opening window in the open state.
在一些实施例中,上述校正模块310,可以包括:选取单元,设置为获取图像采集设备拍摄的原始图像,并在所述原始图像中选取预设个数的参考点以及确定与参考点相对应的标准参考点;第一确定单元,设置为根据所述参考点的坐标以及所述标准参考点的坐标,确定从参考点投影到对应的标准参考点的变换矩阵;第一校正单元,设置为基于所述变换矩阵对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像。In some embodiments, the above-mentioned correction module 310 may include: a selection unit, configured to acquire the original image taken by the image acquisition device, and select a preset number of reference points in the original image and determine the number of reference points corresponding to the reference points the standard reference point; the first determination unit is set to determine the transformation matrix projected from the reference point to the corresponding standard reference point according to the coordinates of the reference point and the coordinates of the standard reference point; the first correction unit is set to The original image is corrected based on the transformation matrix to obtain a corrected image, wherein the original image is a panoramic image of a target glass curtain wall facade including all open windows.
在一些实施例中,上述选取单元,可以设置为:获取图像采集设备拍摄的原始图像,并将所述原始图像输入至预先训练的语义分割模型中,得到与所述原始图像对应的二值化图像,其中,所述二值化图像中白色区域为所述目标玻璃幕墙外立面所形成的区域,黑色区域为背景区域;对所述二值化图像中的白色区域进行轮廓提取,得到所述白色区域对应的轮廓信息;提取所述轮廓信息中边缘直线的信息,并将所述边缘直线之间的交点作为在所述原始图像中选取的预设个数的参考点以及确定与每个参考点相对应的标准参考点。In some embodiments, the above selection unit can be configured to: acquire the original image taken by the image acquisition device, and input the original image into the pre-trained semantic segmentation model to obtain the binarization corresponding to the original image image, wherein the white area in the binarized image is the area formed by the target glass curtain wall facade, and the black area is the background area; the white area in the binarized image is contour extracted to obtain the The contour information corresponding to the white area; extract the information of the edge straight lines in the contour information, and use the intersection points between the edge straight lines as the reference points of the preset number selected in the original image and determine the relationship with each The reference point corresponds to the standard reference point.
在一些实施例中,上述检测模块320,可以包括:第一检测单元和第二确定单元。In some embodiments, the detection module 320 may include: a first detection unit and a second determination unit.
所述第一检测单元,可以设置为:对所述校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像,其中,所述预设尺寸和所述预设步长对应的数值均为开启窗最大边长的整数倍,所述预设步长对应的数值小于所述预设尺寸对应的数值;将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,得到每个裁剪后的图像所对应的第一开启窗检测结果图像以及每个裁剪后的图像中处于开启状态的第一目标开启窗所对应的矩形检测框的第一位置坐标。The first detection unit may be configured to: scan and crop the corrected image according to a window of a preset size and a preset step size to obtain a trimmed image, wherein the preset size and the preset step size The corresponding values are all integer multiples of the maximum side length of the open window, and the value corresponding to the preset step size is smaller than the value corresponding to the preset size; input all the cropped images into the pre-trained target detection model respectively for The open window in the open state is detected, and the first open window detection result image corresponding to each cropped image and the rectangular detection frame corresponding to the first target open window in the open state in each cropped image are obtained. The coordinates of the first location.
所述第二确定单元,可以设置为:基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一开启窗检测结果图像映射至所述校正图像中,得到开启窗检测结果图像;基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一位置坐标的矩形检测框映射至所述校正图像中,得到所述矩形检测框在所述校正图像中的中心点位置坐标;根据所述中心点位置坐标确定目标开启窗的位置。The second determination unit may be configured to: based on the position of each cropped image relative to the corrected image, map all the first window opening detection result images to the corrected image to obtain the open window detection Result image; based on the position of each cropped image relative to the corrected image, map the rectangular detection frame of all first position coordinates to the corrected image, and obtain the rectangular detection frame in the corrected image The position coordinates of the center point in ; determine the position of the target opening window according to the position coordinates of the center point.
在一些实施例中,上述玻璃幕墙开启窗开启状态检测装置,还可以包括:验证模块,设置为在得到所述矩形检测框在所述校正图像中的中心点位置坐标之后,对所述中心点位置坐标进行验证,若所述中心点位置坐标对应的第一横坐标大于第二横坐标,且小于第三横坐标,所述中心点位置坐标对应的第一纵坐标大于第二纵坐标,且小于第三纵坐标,则说明验证结果为通过,其中,所述第二横坐标和所述第三横坐标从所述中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的横坐标中选取,所述第二纵坐标和所述第三纵坐标从所述中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的纵坐标中选取;相应的,上述发送模块330,可以设置为:在所述验证结果为通过时,获取与所述中心点位置坐标对应的目标开启窗所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。In some embodiments, the above-mentioned device for detecting the opening state of the opening window of the glass curtain wall may further include: a verification module, configured to, after obtaining the position coordinates of the center point of the rectangular detection frame in the correction image, verify the center point Position coordinates are verified, if the first abscissa corresponding to the center point position coordinates is greater than the second abscissa and smaller than the third abscissa, the first ordinate corresponding to the center point position coordinates is greater than the second ordinate, and If it is smaller than the third ordinate, it means that the verification result is passed, wherein, the second abscissa and the third abscissa correspond to all vertices in the corrected image of the target opening window corresponding to the center point position coordinates selected from the abscissa, the second ordinate and the third ordinate are selected from the ordinates corresponding to all vertices in the corrected image of the target opening window corresponding to the position coordinates of the center point; correspondingly, The above-mentioned sending module 330 can be set to: when the verification result is passed, obtain the target room number corresponding to the target opening window corresponding to the position coordinates of the center point, and combine the target room number and the opening window The detection result image is sent to the control personnel side equipment corresponding to the building where the target glass curtain wall is located.
在一些实施例中,上述发送模块330,还可以设置为:查询所述目标玻璃幕墙外立面所有开启窗的位置与房间号的预设对应关系;根据所述预设对应关系确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。In some embodiments, the above-mentioned sending module 330 can also be configured to: inquire about the preset correspondence between the positions of all open windows on the facade of the target glass curtain wall and the room numbers; The target room number corresponding to the position of the target opening window, and the target room number and the detection result image of the opening window are sent to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
本实施例提供的玻璃幕墙开启窗开启状态检测装置可适用于上述任意实施例提供的玻璃幕墙开启窗开启状态检测方法,具备相应的功能和有益效果。The device for detecting the opening state of the opening window of the glass curtain wall provided in this embodiment can be applied to the method for detecting the opening state of the opening window of the glass curtain wall provided in any of the above embodiments, and has corresponding functions and beneficial effects.
实施例四Embodiment four
图4为本申请实施例四提供的一种计算机设备的结构示意图,如图4所示,该计算机设备包括处理器410和存储装置420;计算机设备中处理器410的数量可以是一个或多个,图4中以一个处理器410为例;计算机设备中的处理器410和存储装置420可以通过总线或其他方式连接,图4中以通过总线连接为例。FIG. 4 is a schematic structural diagram of a computer device provided in Embodiment 4 of the present application. As shown in FIG. 4 , the computer device includes a processor 410 and a storage device 420; the number of processors 410 in the computer device can be one or more In FIG. 4, a processor 410 is taken as an example; the processor 410 and the storage device 420 in the computer device may be connected through a bus or in other ways. In FIG. 4, the connection through a bus is taken as an example.
存储装置420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的玻璃幕墙开启窗开启状态检测方法对应的模块(例如,用于玻璃幕墙开启窗开启状态检测装置中的校正模块310、检测模块320和发送模块330)。处理器410通过运行存储在存储装置420中的软件程序、指令以及模块,从而执行计算机设备的各种功能应用以及数据处理,即实现上述的玻璃幕墙开启窗开启状态检测方法。The storage device 420, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as the module corresponding to the method for detecting the opening state of glass curtain wall opening windows in the embodiment of the present application (for example, for glass curtain wall The correction module 310, the detection module 320 and the sending module 330 in the window open state detection device). The processor 410 executes various functional applications and data processing of the computer equipment by running the software programs, instructions and modules stored in the storage device 420 , that is, realizes the above-mentioned method for detecting the opening state of the open window of the glass curtain wall.
存储装置420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like. In addition, the storage device 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, the storage device 420 may further include memories that are located remotely relative to the processor 410, and these remote memories may be connected to computer equipment through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
本实施例提供的一种计算机设备可用于执行上述任意实施例提供的玻璃幕墙开启窗开启状态检测方法,具备相应的功能和有益效果。A computer device provided in this embodiment can be used to execute the method for detecting the opening state of an open window of a glass curtain wall provided in any of the above embodiments, and has corresponding functions and beneficial effects.
实施例五Embodiment five
本申请实施例五还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本申请任意实施例中的玻璃幕墙开启窗开启状态检测方法,该方法包括:Embodiment 5 of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for detecting the opening state of a glass curtain wall opening window in any embodiment of the present application is implemented. The method includes :
获取图像采集设备拍摄的原始图像,并对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;Obtaining the original image taken by the image acquisition device, and correcting the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于 开启状态的目标开启窗的位置;The correction image is input into the pre-trained target detection model to detect the open window in the open state, and determine the position of the open window detection result image and the target open window in the open state according to the output of the target detection model;
确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的玻璃幕墙开启窗开启状态检测方法中的相关操作。A storage medium containing computer-executable instructions provided in an embodiment of the present application, the computer-executable instructions are not limited to the method operations described above, and can also perform the detection of the opening state of the glass curtain wall opening window provided in any embodiment of the present application Related operations in the method.
存储介质可以是非暂态(non-transitory)存储介质。The storage medium may be a non-transitory storage medium.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器或者网络设备等)执行本申请多个实施例所述的方法。Through the above description about the implementation, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general-purpose hardware, and of course it can also be realized by hardware, but in many cases the former is a better implementation . Based on this understanding, the essence of the technical solution of this application or the part that contributes to related technologies can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as computer floppy disks, Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disc, etc., including several instructions to make a computer device (which can be a personal computer, A server or a network device, etc.) executes the methods described in multiple embodiments of the present application.
值得注意的是,上述玻璃幕墙开启窗开启状态检测装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that in the above-mentioned embodiment of the detection device for the opening state of the opening window of the glass curtain wall, the various units and modules included are only divided according to the functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized. Yes; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
以上所述仅为本申请的部分实施例,并不用于限制本申请,对于本领域技术人员而言,本申请可以有各种改动和变化。凡在本发明构思之内所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only part of the embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the concept of the present invention shall be included within the protection scope of the present application.

Claims (14)

  1. 一种玻璃幕墙开启窗开启状态检测方法,包括:A method for detecting the opening state of an opening window of a glass curtain wall, comprising:
    获取图像采集设备拍摄的原始图像,并对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;Obtaining the original image taken by the image acquisition device, and correcting the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
    将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置;The corrected image is input into the pre-trained target detection model to detect the open window in the open state, and the position of the open window detection result image and the open target window in the open state are determined according to the output of the target detection model;
    确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。Determine the target room number corresponding to the position of the target open window, and send the target room number and the image of the detection result of the open window to the management and control personnel side equipment corresponding to the building where the target glass curtain wall is located.
  2. 根据权利要求1所述的方法,其中,所述对所述原始图像进行校正,得到校正图像,包括:The method according to claim 1, wherein said correcting said original image to obtain a corrected image comprises:
    在所述原始图像中选取预设个数的参考点以及确定与参考点相对应的标准参考点;selecting a preset number of reference points in the original image and determining standard reference points corresponding to the reference points;
    根据所述参考点的坐标以及所述标准参考点的坐标,确定从参考点投影到对应的标准参考点的变换矩阵;determining a transformation matrix projected from the reference point to the corresponding standard reference point according to the coordinates of the reference point and the coordinates of the standard reference point;
    基于所述变换矩阵对所述原始图像进行校正,得到校正图像。Correcting the original image based on the transformation matrix to obtain a corrected image.
  3. 根据权利要求2所述的方法,其中,所述在所述原始图像中选取预设个数的参考点,包括:The method according to claim 2, wherein said selecting a preset number of reference points in said original image comprises:
    将所述原始图像输入至预先训练的语义分割模型中,得到与所述原始图像对应的二值化图像,其中,所述二值化图像中白色区域为所述目标玻璃幕墙外立面所形成的区域,黑色区域为背景区域;Inputting the original image into a pre-trained semantic segmentation model to obtain a binarized image corresponding to the original image, wherein the white area in the binarized image is formed by the facade of the target glass curtain wall area, the black area is the background area;
    对所述二值化图像中的白色区域进行轮廓提取,得到所述白色区域对应的轮廓信息;performing contour extraction on the white area in the binarized image to obtain contour information corresponding to the white area;
    提取所述轮廓信息中多个边缘直线的信息,并将所述多个边缘直线之间的交点作为在所述原始图像中选取的预设个数的参考点。Extracting information of a plurality of edge straight lines in the contour information, and using intersection points among the plurality of edge straight lines as a preset number of reference points selected in the original image.
  4. 根据权利要求1所述的方法,其中,所述将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,包括:The method according to claim 1, wherein said inputting said corrected image into a pre-trained target detection model to detect an open window in an open state comprises:
    对所述校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像,其中,所述预设尺寸和所述预设步长对应的数值分别为开启窗最大边长的整数倍,所述预设步长对应的数值小于所述预设尺寸对应的数值;The corrected image is scanned and cropped according to a window of a preset size and a preset step to obtain a cropped image, wherein the values corresponding to the preset size and the preset step are respectively the maximum side length of the open window an integer multiple, the value corresponding to the preset step size is smaller than the value corresponding to the preset size;
    将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状 态的开启窗进行检测,得到每个裁剪后的图像所对应的第一开启窗检测结果图像以及每个裁剪后的图像中处于开启状态的第一目标开启窗所对应的矩形检测框的第一位置坐标。Input all the cropped images into the pre-trained target detection model to detect the open window in the open state, and obtain the first open window detection result image corresponding to each cropped image and each cropped image The first position coordinates of the rectangular detection frame corresponding to the first target opening window in the open state.
  5. 根据权利要求4所述的方法,其中,所述根据所述目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置,包括:The method according to claim 4, wherein said determining the open window detection result image and the position of the open target open window according to the output of the target detection model comprises:
    基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一开启窗检测结果图像映射至所述校正图像中,得到开启窗检测结果图像;Based on the position of each cropped image relative to the corrected image, mapping all first window-opened detection result images to the corrected image to obtain an open-window detection result image;
    基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一位置坐标的矩形检测框映射至所述校正图像中,得到所有第一位置坐标的矩形检测框在所述校正图像中的中心点位置坐标;Based on the position of each cropped image relative to the corrected image, map the rectangular detection frames of all the first position coordinates to the corrected image, and obtain the rectangular detection frames of all the first position coordinates in the corrected image. The position coordinates of the center point in the image;
    根据所述中心点位置坐标确定目标开启窗的位置。The position of the target opening window is determined according to the position coordinates of the center point.
  6. 根据权利要求5所述的方法,在得到所有第一位置坐标的矩形检测框在所述校正图像中的中心点位置坐标之后,还包括:The method according to claim 5, after obtaining the center point position coordinates of the rectangular detection frames of all first position coordinates in the corrected image, further comprising:
    对每个中心点位置坐标进行验证,响应于所述每个中心点位置坐标对应的第一横坐标大于第二横坐标,且小于第三横坐标,所述中心点位置坐标对应的第一纵坐标大于第二纵坐标,且小于第三纵坐标,验证结果为通过,其中,所述第二横坐标和所述第三横坐标从所述每个中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的横坐标中选取,所述第二纵坐标和所述第三纵坐标从所述每个中心点位置坐标对应的目标开启窗在所述校正图像中的所有顶点对应的纵坐标中选取;Verifying the position coordinates of each center point, in response to the first abscissa corresponding to the position coordinates of each center point being greater than the second abscissa and smaller than the third abscissa, the first ordinate corresponding to the position coordinates of the center point The coordinate is greater than the second ordinate and less than the third ordinate, and the verification result is passed, wherein the second abscissa and the third abscissa are from the target opening window corresponding to each center point position coordinate selected from the abscissas corresponding to all vertices in the correction image, the second ordinate and the third ordinate are all vertices in the correction image in the target opening window corresponding to the position coordinates of each center point Select from the corresponding ordinate;
    响应于所述验证结果为通过,获取与所述中心点位置坐标对应的目标开启窗所对应的目标房间号。In response to the verification result being passed, the target room number corresponding to the target opening window corresponding to the position coordinates of the center point is acquired.
  7. 根据权利要求1-6任一项所述的方法,其中,所述确定与所述目标开启窗的位置所对应的目标房间号,包括:The method according to any one of claims 1-6, wherein said determining the target room number corresponding to the position of the target opening window comprises:
    查询所述目标玻璃幕墙外立面所有开启窗的位置与房间号的预设对应关系;Query the preset corresponding relationship between the positions of all open windows on the facade of the target glass curtain wall and the room number;
    根据所述预设对应关系确定与所述目标开启窗的位置所对应的目标房间号。The target room number corresponding to the position of the target opening window is determined according to the preset corresponding relationship.
  8. 一种玻璃幕墙开启窗开启状态检测装置,包括:A device for detecting the opening state of an opening window of a glass curtain wall, comprising:
    校正模块,设置为获取图像采集设备拍摄的原始图像,并对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像;The correction module is configured to obtain the original image taken by the image acquisition device, and correct the original image to obtain a corrected image, wherein the original image is a panoramic image of the facade of the target glass curtain wall including all open windows;
    检测模块,设置为将所述校正图像输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,根据所述目标检测模型的输出确定开启窗检测结果图像以及处于开启状态的目标开启窗的位置;The detection module is configured to input the corrected image into the pre-trained target detection model to detect the open window in the open state, and determine the detection result image of the open window and the open target open window in the open state according to the output of the target detection model. the position of the window;
    发送模块,设置为确定与所述目标开启窗的位置所对应的目标房间号,并将所述目标房间号和所述开启窗检测结果图像发送至与所述目标玻璃幕墙所在楼宇对应的管控人员侧设备。The sending module is configured to determine the target room number corresponding to the position of the target opening window, and send the target room number and the detection result image of the opening window to the management and control personnel corresponding to the building where the target glass curtain wall is located side device.
  9. 根据权利要求8所述的装置,其中,所述校正模块,包括:The device according to claim 8, wherein the correction module comprises:
    选取单元,设置为获取图像采集设备拍摄的原始图像,并在所述原始图像中选取预设个数的参考点以及确定与参考点相对应的标准参考点;The selection unit is configured to obtain the original image taken by the image acquisition device, and select a preset number of reference points in the original image and determine a standard reference point corresponding to the reference point;
    第一确定单元,设置为根据所述参考点的坐标以及所述标准参考点的坐标,确定从参考点投影到对应的标准参考点的变换矩阵;The first determination unit is configured to determine a transformation matrix projected from the reference point to the corresponding standard reference point according to the coordinates of the reference point and the coordinates of the standard reference point;
    第一校正单元,设置为基于所述变换矩阵对所述原始图像进行校正,得到校正图像,其中,所述原始图像为包括所有开启窗的目标玻璃幕墙外立面全景图像。The first correction unit is configured to correct the original image based on the transformation matrix to obtain a corrected image, wherein the original image is a panoramic image of a target glass curtain wall facade including all open windows.
  10. 根据权利要求9所述的装置,其中,所述选取单元,设置为获取图像采集设备拍摄的原始图像,并将所述原始图像输入至预先训练的语义分割模型中,得到与所述原始图像对应的二值化图像,其中,所述二值化图像中白色区域为所述目标玻璃幕墙外立面所形成的区域,黑色区域为背景区域;对所述二值化图像中的白色区域进行轮廓提取,得到所述白色区域对应的轮廓信息;提取所述轮廓信息中多个边缘直线的信息,并将所述多个边缘直线之间的交点作为在所述原始图像中选取的预设个数的参考点以及确定与每个参考点相对应的标准参考点。The device according to claim 9, wherein the selection unit is configured to obtain the original image taken by the image acquisition device, and input the original image into the pre-trained semantic segmentation model to obtain The binarized image, wherein, the white area in the binarized image is the area formed by the facade of the target glass curtain wall, and the black area is the background area; outline the white area in the binarized image Extracting to obtain the contour information corresponding to the white area; extracting the information of a plurality of edge straight lines in the contour information, and using the intersection points between the plurality of edge straight lines as the preset number selected in the original image and determine the standard reference points corresponding to each reference point.
  11. 根据权利要求8所述的装置,其中,所述检测模块,包括:第一检测单元;The device according to claim 8, wherein the detection module comprises: a first detection unit;
    所述第一检测单元,设置为对所述校正图像按照预设尺寸的窗口以及预设步长进行扫描裁剪得到裁剪后的图像,其中,所述预设尺寸和所述预设步长对应的数值分别为开启窗最大边长的整数倍,所述预设步长对应的数值小于所述预设尺寸对应的数值;将所有裁剪后的图像分别输入至预先训练的目标检测模型中对处于开启状态的开启窗进行检测,得到每个裁剪后的图像所对应的第一开启窗检测结果图像以及每个裁剪后的图像中处于开启状态的第一目标开启窗所对应的矩形检测框的第一位置坐标。The first detection unit is configured to scan and crop the corrected image according to a window of a preset size and a preset step to obtain a cropped image, wherein the preset size and the preset step correspond to The values are integer multiples of the maximum side length of the open window, and the value corresponding to the preset step size is smaller than the value corresponding to the preset size; input all the cropped images into the pre-trained target detection model respectively for those in the open The open window of the state is detected, and the first open window detection result image corresponding to each cropped image and the first rectangle detection frame corresponding to the first target open window in the open state in each cropped image are obtained. Position coordinates.
  12. 根据权利要求11所述的装置,其中,所述检测模块,包括:第二检测 单元;The device according to claim 11, wherein the detection module comprises: a second detection unit;
    所述第二检测单元,设置为基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一开启窗检测结果图像映射至所述校正图像中,得到开启窗检测结果图像;基于所述每个裁剪后的图像相对于所述校正图像的位置,将所有第一位置坐标的矩形检测框映射至所述校正图像中,得到所有第一位置坐标的矩形检测框在所述校正图像中的中心点位置坐标;根据所述中心点位置坐标确定目标开启窗的位置。The second detection unit is configured to map all first open window detection result images to the corrected image based on the position of each cropped image relative to the corrected image, to obtain an open window detection result image ; Based on the position of each cropped image relative to the corrected image, map the rectangular detection frames of all first position coordinates to the corrected image, and obtain the rectangular detection frames of all first position coordinates in the Correcting the position coordinates of the center point in the image; determining the position of the target opening window according to the position coordinates of the center point.
  13. 一种计算机设备,所述计算机设备包括:A computer device comprising:
    一个或多个处理器;one or more processors;
    存储装置,设置为存储一个或多个程序;a storage device configured to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的玻璃幕墙开启窗开启状态检测方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for detecting the opening state of the glass curtain wall opening window according to any one of claims 1-7.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-7中任一所述的玻璃幕墙开启窗开启状态检测方法。A computer-readable storage medium, the computer-readable storage medium is stored with a computer program, and when the computer program is executed by a processor, the detection of the opening state of the glass curtain wall opening window according to any one of claims 1-7 is realized method.
PCT/CN2021/139585 2021-06-28 2021-12-20 Glass curtain wall open window open state detection method and apparatus, device, and medium WO2023273219A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110719434.7 2021-06-28
CN202110719434.7A CN113435508B (en) 2021-06-28 2021-06-28 Method, device, equipment and medium for detecting opening state of glass curtain wall opening window

Publications (1)

Publication Number Publication Date
WO2023273219A1 true WO2023273219A1 (en) 2023-01-05

Family

ID=77755016

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139585 WO2023273219A1 (en) 2021-06-28 2021-12-20 Glass curtain wall open window open state detection method and apparatus, device, and medium

Country Status (2)

Country Link
CN (1) CN113435508B (en)
WO (1) WO2023273219A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809501A (en) * 2023-02-08 2023-03-17 万得福实业集团有限公司 Intelligent generation method and system for metal plate curtain wall processing and mounting scheme
CN116342571A (en) * 2023-03-27 2023-06-27 中吉创新技术(深圳)有限公司 State detection method and device for ventilation system control box and storage medium
CN117232983A (en) * 2023-11-13 2023-12-15 四川名人居门窗有限公司 Dynamic wind pressure detection system and method for system doors and windows
CN117911907A (en) * 2024-03-19 2024-04-19 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Curtain wall opening and closing state detection method, inspection system and medium based on unmanned aerial vehicle

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435508B (en) * 2021-06-28 2024-01-19 中冶建筑研究总院(深圳)有限公司 Method, device, equipment and medium for detecting opening state of glass curtain wall opening window
CN114724316A (en) * 2022-05-12 2022-07-08 中国银行股份有限公司 Alarm method and device for automatic teller machine
CN117111535B (en) * 2023-10-20 2024-01-12 四川名人居门窗有限公司 Closed space impact-resistant risk-avoiding control system and intelligent door and window control method
CN117346285B (en) * 2023-12-04 2024-03-26 南京邮电大学 Indoor heating and ventilation control method, system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102770864A (en) * 2010-01-29 2012-11-07 香港科技大学 Architectural pattern detection and modeling in images
KR101713269B1 (en) * 2015-09-25 2017-03-07 주식회사 토비스 a smart windows having user recognition
CN109657648A (en) * 2019-01-10 2019-04-19 天津大学 A kind of System and method for of real-time monitoring office building window situation
CN110969604A (en) * 2019-11-26 2020-04-07 北京工业大学 Intelligent security real-time windowing detection alarm system and method based on deep learning
CN111726532A (en) * 2020-06-30 2020-09-29 北京环境特性研究所 Windowing alarm detection system and method
CN113435508A (en) * 2021-06-28 2021-09-24 中冶建筑研究总院(深圳)有限公司 Method, device, equipment and medium for detecting opening state of glass curtain wall opening window

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110232311B (en) * 2019-04-26 2023-11-14 平安科技(深圳)有限公司 Method and device for segmenting hand image and computer equipment
CN113033316A (en) * 2021-03-01 2021-06-25 湖南长海现代实验室设备有限公司 Device and method for detecting and controlling show window state of fume hood

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102770864A (en) * 2010-01-29 2012-11-07 香港科技大学 Architectural pattern detection and modeling in images
KR101713269B1 (en) * 2015-09-25 2017-03-07 주식회사 토비스 a smart windows having user recognition
CN109657648A (en) * 2019-01-10 2019-04-19 天津大学 A kind of System and method for of real-time monitoring office building window situation
CN110969604A (en) * 2019-11-26 2020-04-07 北京工业大学 Intelligent security real-time windowing detection alarm system and method based on deep learning
CN111726532A (en) * 2020-06-30 2020-09-29 北京环境特性研究所 Windowing alarm detection system and method
CN113435508A (en) * 2021-06-28 2021-09-24 中冶建筑研究总院(深圳)有限公司 Method, device, equipment and medium for detecting opening state of glass curtain wall opening window

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809501A (en) * 2023-02-08 2023-03-17 万得福实业集团有限公司 Intelligent generation method and system for metal plate curtain wall processing and mounting scheme
CN116342571A (en) * 2023-03-27 2023-06-27 中吉创新技术(深圳)有限公司 State detection method and device for ventilation system control box and storage medium
CN116342571B (en) * 2023-03-27 2023-12-22 中吉创新技术(深圳)有限公司 State detection method and device for ventilation system control box and storage medium
CN117232983A (en) * 2023-11-13 2023-12-15 四川名人居门窗有限公司 Dynamic wind pressure detection system and method for system doors and windows
CN117232983B (en) * 2023-11-13 2024-02-13 四川名人居门窗有限公司 Dynamic wind pressure detection system and method for system doors and windows
CN117911907A (en) * 2024-03-19 2024-04-19 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Curtain wall opening and closing state detection method, inspection system and medium based on unmanned aerial vehicle
CN117911907B (en) * 2024-03-19 2024-05-17 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) Curtain wall opening and closing state detection method, inspection system and medium based on unmanned aerial vehicle

Also Published As

Publication number Publication date
CN113435508A (en) 2021-09-24
CN113435508B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
WO2023273219A1 (en) Glass curtain wall open window open state detection method and apparatus, device, and medium
WO2019052318A1 (en) Method, apparatus and system for monitoring elevator car
WO2022134490A1 (en) Gimbal target conversion control method, apparatus, device, and storage medium
WO2017035949A1 (en) Intelligent home device interaction method and system based on intelligent television video scene
US10515434B2 (en) Adjustment of architectural elements relative to facades
MX2008011002A (en) Model- based dewarping method and apparatus.
WO2020151299A1 (en) Yellow no-parking line identification method and apparatus, computer device and storage medium
CN109035278B (en) Image-based fire door and detection method for opening and closing state of fire door
CN104732225A (en) Image rotation processing method
EP2813973A1 (en) Method and system for processing video image
CN106991821A (en) Vehicles peccancy hand-held mobile terminal data collecting system
US20130077836A1 (en) Method and device for acquiring latent fingerprint orientation
CN107862713A (en) Video camera deflection for poll meeting-place detects method for early warning and module in real time
CN115359239A (en) Wind power blade defect detection and positioning method and device, storage medium and electronic equipment
CN113435278A (en) Crane safety detection method and system based on YOLO
US11270152B2 (en) Method and apparatus for image detection, patterning control method
EP4068151A1 (en) Linear processing method and apparatus in face image, terminal device, and storage medium
CN110826364A (en) Stock position identification method and device
CN109614938B (en) Text target detection method and system based on deep network
CN114792354B (en) Model processing method and device, storage medium and electronic equipment
WO2023070955A1 (en) Method and apparatus for detecting tiny target in port operation area on basis of computer vision
CN113239806B (en) Curtain wall plate identification method and system based on image identification
WO2022042669A1 (en) Image processing method, apparatus, device, and storage medium
CN114943954A (en) Parking space detection method, device and system
CN115346138A (en) Target detection method, device and equipment of aerial image based on unmanned aerial vehicle

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE