A fire alarm remote control method and system based on adaptive image recognition
Through adaptive image recognition technology, automatic identification and remote control of the fire alarm host are realized, solving the problems of delayed fire response and difficulty in traceability, and improving fire handling efficiency and traceability capabilities.
Patent Information
- Application Number
- CN202410924773.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The existing fire alarm host requires manual judgment and operation when a fire occurs, resulting in delayed response, and the lack of monitoring equipment makes traceability difficult.
A fire alarm remote control system based on adaptive image recognition is used to collect the image data of the fire alarm host through an image collector. The data processor performs noise reduction identification and indicator light status identification, and combines the coordinate conversion algorithm to obtain the actual space of the buttons and indicator lights. coordinates to achieve remote control and traceability.
It realizes the automatic identification and remote control of the fire alarm host, improves the fire response speed, can complete traceability through biometric collection, and reduces the risk of manual operation and property losses.
Smart Images

Figure CN118470893B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fire safety, and in particular relates to a fire alarm remote control method and system based on adaptive image recognition. Background Art
[0002] With the development of society and the advancement of science and technology, the fire alarm system has become one of the indispensable safety facilities in modern buildings. The fire alarm host is the core equipment of the fire alarm system. It is responsible for receiving, processing and displaying fire alarm signals, and controlling the action of the fire alarm equipment, playing a major role in fire warning, defense, and crowd evacuation. However, there are certain differences in the types and models of fire alarm hosts on the market, and the fire alarm host can only be operated and controlled manually locally. When a fire occurs, it is necessary to conduct a field investigation to judge the fire situation, and then manually operate the fire alarm host to complete a series of fire emergency treatments. This not only fails to make timely emergency treatment when a fire occurs, but also leads to personnel distress and property losses. Moreover, the fire alarm host is not equipped with monitoring equipment at present, and when someone triggers the wrong button on the fire alarm host, the property loss caused by the loss cannot be traced back and held accountable. Summary of the invention
[0003] In order to solve the above problems existing in the prior art, the present invention provides a fire alarm remote control method and system based on adaptive image recognition;
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] S1: An image collector installed next to the fire alarm host collects images of the fire alarm host to obtain initial image data and transmits it to a data processor, and the data processor performs noise reduction and recognition on the image collection data through an image recognition model to obtain the button number information and the alarm indicator number information of the fire alarm host;
[0006] S2: The data processor obtains the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and stores the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; stores the initial image data and the preset processing scheme in the database of the integrated system;
[0007] S3: The image collector acquires real-time images of the fire alarm host to obtain real-time image data and transmits the real-time image data to the data processor, and the data processor obtains an abnormality determination result through an image comparison model according to the real-time image data and the initial image data;
[0008] S4: the data processor performs indicator light status identification on the real-time image data through an indicator light identification model according to the abnormal determination result to obtain an abnormal alarm indicator light identification result, determines the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light identification result, compares the abnormal alarm indicator light pixel coordinates with the pixel coordinates in a database to obtain abnormal alarm indicator light number information, and transmits the abnormal alarm indicator light number information to the integrated system; the integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls a camera with a number corresponding to the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly;
[0009] S5: After receiving the reminder signal, the smart terminal displays the live image data, collects biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction;
[0010] S6: The integrated system retrieves the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and performs adaptive control according to the preset processing scheme to generate an end effector control instruction; after receiving the control instruction, the end effector generates a trigger pressure, and obtains a target value through a motion trajectory learning algorithm according to the actual spatial coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
[0011] As a preferred technical solution of the present invention, the image recognition model includes an image preprocessing algorithm and a text recognition algorithm. The image preprocessing algorithm grayscales the initial image data by a mean weighted method to obtain grayscale image data, performs denoising on the grayscale image data by a median filtering method to obtain denoised image data, filters out uneven illumination by a homomorphic filtering method based on the denoised image data to obtain filtered image data, performs edge detection on the filtered image data by a sobel operator to obtain edge detection image data, and finally binarizes the edge detection image data by a double threshold binarization method to obtain binarized image data. The text recognition algorithm designs a single-character template and template response function with variable length according to the approximate width of a single character, and then divides the binarized image data according to the template response function to obtain single-character image data, and then uses the single-character image data as input data of the Tesseract-OCR literacy engine to obtain a single character recognition result, and finally normalizes the single character recognition result to obtain the button number information and the alarm indicator number information of the fire alarm host, wherein the template response function Mr (l,r) for
[0012] ,
[0013] in a is the robustness factor, l is the left boundary of the character, r is the right boundary of the word, e V(r) is the right boundary response function.
[0014] Specifically, the coordinate conversion algorithm obtains the actual space coordinate parameters of the recognition result through the inverse proportional relationship between the parallax of the recognition result when the image collector is imaged and the distance from the recognition result to the image collector, and the calculation formula is:
[0015] ,
[0016] ,
[0017] Among them, the coordinate parameters of the actual space of the recognition result are ( X, Y, Z ), the coordinates in the image coordinate system are ( x, y ), the coordinates in pixel coordinates are ( u, v ), the coordinates of the origin of the image coordinate system in the pixel coordinate system are ( u 0 ,v 0 ), f To fix the focal length, p, qThey represent the number of pixels per millimeter in the image coordinate system.
[0018] Specifically, the motion trajectory learning algorithm obtains a trigger code through keyword extraction according to the preset processing scheme, matches the trigger code with the actual space coordinate parameters in the database to obtain a matching result, obtains a moving point set coordinate sequence according to the matching result, sets the current actual space coordinate parameter of the end effector as the initial value of the moving point set coordinate sequence, and uses the next coordinate parameter in the moving point set coordinate sequence as the target value. The trigger code is the number information of the fire alarm host button that should be triggered in the preset processing scheme.
[0019] Specifically, the calculation method of the indicator light recognition model is as follows: converting the RGB color space of the real-time image data into the HSV color space, binarizing the H, S, and V components of the HSV color space of the real-time image data according to the preset H, S, and V component thresholds of the abnormal indicator light to obtain a grayscale image, initializing the level set function to a binary step function, taking the pixel points of the grayscale image as the input value of the binary step function to obtain the step function value, setting a seed pixel set in the grayscale image according to the step function value by a three-point labeling method, calculating the grayscale clustering distance function to obtain the grayscale clustering distance value between the pixel points in the grayscale image and the target seed points in the seed pixel set, using the grayscale clustering distance value to apply weights to the force to obtain the target force arm and the background force arm, and dividing the target pixels into the target area according to the target force arm and the background force arm through energy functional adjustment of the torque competition to obtain the abnormal alarm indicator light recognition result.
[0020] Specifically, the image comparison model obtains the abnormality judgment result by judging the similarity between the initial image data and the real-time image data, extracts the features of the initial image data and the real-time image data, obtains a two-dimensional vector respectively, calculates the distance value between the feature vectors of the initial image data and the real-time image data using Euclidean distance, and compares the distance value with a preset similarity threshold to obtain the abnormality judgment result.
[0021] A fire alarm remote control system based on adaptive image recognition, comprising: an image recognition module, a database establishment module, an abnormality judgment module, a feature extraction module, a biometric feature module and an operation control module;
[0022] The image recognition module is used for an image collector arranged next to the fire alarm host to collect images of the fire alarm host to obtain initial image data and transmit it to a data processor, and the data processor uses an image recognition model to perform noise reduction recognition on the image collection data to obtain the button number information and the alarm indicator number information of the fire alarm host;
[0023] The database establishment module is used for the data processor to obtain the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and store the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; store the initial image data and the preset processing scheme in the database of the integrated system;
[0024] The abnormality judgment module is used for the image collector to collect real-time images of the fire alarm host to obtain real-time image data and transmit it to the data processor, and the data processor obtains the abnormality judgment result according to the real-time image data and the initial image data through the image comparison model;
[0025] The feature extraction module is used for the data processor to perform indicator light status recognition on the real-time image data through the indicator light recognition model according to the abnormal judgment result to obtain an abnormal alarm indicator light recognition result, determine the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light recognition result, compare the abnormal alarm indicator light pixel coordinates with the pixel coordinates in the database to obtain abnormal alarm indicator light number information, and transmit the abnormal alarm indicator light number information to the integrated system. The integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls the camera with the corresponding number of the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly;
[0026] The biometric module is used for the smart terminal to display the live image data after receiving the reminder signal. The smart terminal collects the biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction;
[0027] The operation control module is used for the integrated system to retrieve the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and to perform adaptive control according to the preset processing scheme to generate the end effector control instruction; after receiving the control instruction, the end effector generates trigger pressure, and obtains the target value through the motion trajectory learning algorithm according to the actual space coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
[0028] The beneficial effects of the present invention are:
[0029] (1) The image of the fire alarm host is collected by the image collector and transmitted to the data processor. The data processor uses the image recognition model to perform noise reduction and recognition to obtain the button number information and the alarm indicator number information of the fire alarm host. The actual spatial coordinate parameters of the fire alarm host button and the alarm indicator number information are obtained through the coordinate conversion algorithm based on the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator number information, thereby completing the recognition of different fire alarm hosts.
[0030] (2) When a fire occurs, the fire detector triggers the alarm indicator light of the fire alarm host, the image collector performs real-time image acquisition of the fire alarm host to obtain real-time image data and transmits it to the data processor, the data processor obtains an abnormality determination result based on the real-time image data and the initial image data through an image comparison model, the data processor performs indicator light state identification on the real-time image data based on the abnormal determination result through an indicator light identification model to obtain an abnormal alarm indicator light identification result, determines the abnormal alarm indicator light pixel coordinates based on the abnormal alarm indicator light identification result, compares the abnormal alarm indicator light pixel coordinates with the pixel coordinates in the database to obtain the abnormal alarm indicator light number information, and transmits the abnormal alarm indicator light number information to the integrated system, the integrated system generates a reminder signal through adaptive control based on the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls the camera with the number corresponding to the abnormal alarm indicator light number information to collect the real-time image data of the fire scene, and transmits the real-time image data of the fire to the smart terminal by wireless means;
[0031] After receiving the reminder signal, the smart terminal displays the real-time image data of the fire scene. The smart terminal collects the biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system to complete the tracing of the person who issued the instruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 It is a schematic diagram of the system principle of the present invention. DETAILED DESCRIPTION
[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] See also Figure 1 , the embodiment of the present invention provides a fire alarm remote control method and system based on adaptive image recognition;
[0036] S1: An image collector installed next to the fire alarm host collects images of the fire alarm host to obtain initial image data and transmits it to a data processor, and the data processor performs noise reduction and recognition on the image collection data through an image recognition model to obtain the button number information and the alarm indicator number information of the fire alarm host;
[0037] S2: The data processor obtains the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and stores the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; stores the initial image data and the preset processing scheme in the database of the integrated system;
[0038] S3: The image collector acquires real-time images of the fire alarm host to obtain real-time image data and transmits the real-time image data to the data processor, and the data processor obtains an abnormality determination result through an image comparison model according to the real-time image data and the initial image data;
[0039] S4: the data processor performs indicator light status identification on the real-time image data through an indicator light identification model according to the abnormal determination result to obtain an abnormal alarm indicator light identification result, determines the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light identification result, compares the abnormal alarm indicator light pixel coordinates with the pixel coordinates in a database to obtain abnormal alarm indicator light number information, and transmits the abnormal alarm indicator light number information to the integrated system; the integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls a camera with a number corresponding to the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly;
[0040] S5: After receiving the reminder signal, the smart terminal displays the live image data, collects biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction;
[0041] S6: The integrated system retrieves the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and performs adaptive control according to the preset processing scheme to generate an end effector control instruction; after receiving the control instruction, the end effector generates a trigger pressure, and obtains a target value through a motion trajectory learning algorithm according to the actual spatial coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
[0042] In this embodiment, different function buttons are provided in the human-computer interaction interface of the intelligent terminal, including inspection, alarm, broadcast, etc. Manually clicking different buttons generates different electrical signals and transmits them to the integrated system. The integrated system filters and identifies the electrical signals to obtain event recognition results, and retrieves corresponding preset processing solutions from the database according to the event recognition results. The integrated system generates an end effector control signal through adaptive control according to the corresponding preset processing solution to control the end effector to trigger the fire alarm host button.
[0043] As a preferred technical solution of the present invention, the image recognition model includes an image preprocessing algorithm and a text recognition algorithm. The image preprocessing algorithm grayscales the initial image data by a mean weighted method to obtain grayscale image data, performs denoising on the grayscale image data by a median filtering method to obtain denoised image data, filters out uneven illumination by a homomorphic filtering method based on the denoised image data to obtain filtered image data, performs edge detection on the filtered image data by a sobel operator to obtain edge detection image data, and finally binarizes the edge detection image data by a double threshold binarization method to obtain binarized image data. The text recognition algorithm designs a single-character template and template response function with variable length according to the approximate width of a single character, and then divides the binarized image data according to the template response function to obtain single-character image data, and then uses the single-character image data as input data of the Tesseract-OCR literacy engine to obtain a single character recognition result, and finally normalizes the single character recognition result to obtain the button number information and the alarm indicator number information of the fire alarm host, wherein the template response function Mr (l,r) for
[0044] ,
[0045] in a is the robustness factor, l is the left boundary of the character, r is the right boundary of the word, e V(r) is the right boundary response function.
[0046] Specifically, the coordinate conversion algorithm obtains the actual space coordinate parameters of the recognition result through the inverse proportional relationship between the parallax of the recognition result when the image collector is imaged and the distance from the recognition result to the image collector, and the calculation formula is:
[0047] ,
[0048] ,
[0049] Among them, the coordinate parameters of the actual space of the recognition result are ( X, Y, Z ), the coordinates in the image coordinate system are ( x, y ), the coordinates in pixel coordinates are ( u, v ), the coordinates of the origin of the image coordinate system in the pixel coordinate system are ( u 0 ,v 0 ), f To fix the focal length, p, q They represent the number of pixels per millimeter in the image coordinate system.
[0050] In this embodiment, the image of the fire alarm host is collected by an image collector and transmitted to a data processor. The data processor performs noise reduction recognition through an image recognition model to obtain recognition results of the fire alarm host buttons and alarm indicator lights, and obtains the actual spatial coordinate parameters of the fire alarm host buttons and alarm indicator lights through a coordinate conversion algorithm based on the coordinate parameters of the recognition results in the pixel coordinate system to complete the recognition of different fire alarm hosts.
[0051] Specifically, the motion trajectory learning algorithm obtains a trigger code through keyword extraction according to the preset processing scheme, matches the trigger code with the actual space coordinate parameters in the database to obtain a matching result, obtains a moving point set coordinate sequence according to the matching result, sets the current actual space coordinate parameter of the end effector as the initial value of the moving point set coordinate sequence, and uses the next coordinate parameter in the moving point set coordinate sequence as the target value. The trigger code is the number information of the fire alarm host button that should be triggered in the preset processing scheme.
[0052] Specifically, the calculation method of the indicator light recognition model is as follows: converting the RGB color space of the real-time image data into the HSV color space, binarizing the H, S, and V components of the HSV color space of the real-time image data according to the preset H, S, and V component thresholds of the abnormal indicator light to obtain a grayscale image, initializing the level set function to a binary step function, taking the pixel points of the grayscale image as the input value of the binary step function to obtain the step function value, setting a seed pixel set in the grayscale image according to the step function value by a three-point labeling method, calculating the grayscale clustering distance function to obtain the grayscale clustering distance value between the pixel points in the grayscale image and the target seed points in the seed pixel set, using the grayscale clustering distance value to apply weights to the force to obtain the target force arm and the background force arm, and dividing the target pixels into the target area according to the target force arm and the background force arm through energy functional adjustment of the torque competition to obtain the abnormal alarm indicator light recognition result.
[0053] Specifically, the image comparison model obtains the abnormality judgment result by judging the similarity between the initial image data and the real-time image data, extracts the features of the initial image data and the real-time image data, obtains a two-dimensional vector respectively, calculates the distance value between the feature vectors of the initial image data and the real-time image data using Euclidean distance, and compares the distance value with a preset similarity threshold to obtain the abnormality judgment result.
[0054] A fire alarm remote control system based on adaptive image recognition, comprising: an image recognition module, a database establishment module, an abnormality judgment module, a feature extraction module, a biometric feature module and an operation control module;
[0055] The image recognition module is used for an image collector arranged next to the fire alarm host to collect images of the fire alarm host to obtain initial image data and transmit it to a data processor, and the data processor uses an image recognition model to perform noise reduction recognition on the image collection data to obtain the button number information and the alarm indicator number information of the fire alarm host;
[0056] The database establishment module is used for the data processor to obtain the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and store the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; store the initial image data and the preset processing scheme in the database of the integrated system;
[0057] The abnormality judgment module is used for the image collector to collect real-time images of the fire alarm host to obtain real-time image data and transmit it to the data processor, and the data processor obtains the abnormality judgment result according to the real-time image data and the initial image data through the image comparison model;
[0058] The feature extraction module is used for the data processor to perform indicator light status recognition on the real-time image data through the indicator light recognition model according to the abnormal judgment result to obtain an abnormal alarm indicator light recognition result, determine the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light recognition result, compare the abnormal alarm indicator light pixel coordinates with the pixel coordinates in the database to obtain abnormal alarm indicator light number information, and transmit the abnormal alarm indicator light number information to the integrated system. The integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls the camera with the corresponding number of the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly;
[0059] The biometric module is used for the smart terminal to display the live image data after receiving the reminder signal. The smart terminal collects the biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction;
[0060] The operation control module is used for the integrated system to retrieve the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and to perform adaptive control according to the preset processing scheme to generate the end effector control instruction; after receiving the control instruction, the end effector generates trigger pressure, and obtains the target value through the motion trajectory learning algorithm according to the actual space coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
[0061] In the embodiment of the present invention, the program code contained in a storage medium can be transmitted with any appropriate medium, including but not limited to wireless, wire, optical cable, etc., or any suitable combination of the above. The computer program code for performing the operation of the present invention can be written in one or more programming languages or their combinations, and the programming language includes object-oriented programming languages-such as Java, Smalltalk, C++, and also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0062] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A fire alarm remote control method based on adaptive image recognition, characterized in that: include: S1: An image collector installed next to the fire alarm host collects images of the fire alarm host to obtain initial image data and transmits it to a data processor, and the data processor performs noise reduction and recognition on the image collection data through an image recognition model to obtain the button number information and the alarm indicator number information of the fire alarm host; S2: The data processor obtains the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and stores the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; storing the initial image data and the preset processing scheme in a database of the integrated system; S3: The image collector acquires real-time images of the fire alarm host to obtain real-time image data and transmits the real-time image data to the data processor, and the data processor obtains an abnormality determination result through an image comparison model according to the real-time image data and the initial image data; S4: the data processor performs indicator light status identification on the real-time image data through an indicator light identification model according to the abnormal determination result to obtain an abnormal alarm indicator light identification result, determines the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light identification result, compares the abnormal alarm indicator light pixel coordinates with the pixel coordinates in a database to obtain abnormal alarm indicator light number information, and transmits the abnormal alarm indicator light number information to the integrated system; the integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls a camera with a number corresponding to the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly; S5: After receiving the reminder signal, the smart terminal displays the live image data, collects biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction; S6: The integrated system retrieves the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and performs adaptive control according to the preset processing scheme to generate an end effector control instruction; after receiving the control instruction, the end effector generates a trigger pressure, and obtains a target value through a motion trajectory learning algorithm according to the actual spatial coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
2. The fire alarm remote control method based on adaptive image recognition according to claim 1 is characterized in that: The image recognition model includes an image preprocessing algorithm and a text recognition algorithm. The image preprocessing algorithm grayscales the initial image data by a mean weighted method to obtain grayscale image data, performs denoising on the grayscale image data by a median filtering method to obtain denoised image data, filters out uneven illumination by a homomorphic filtering method based on the denoised image data to obtain filtered image data, performs edge detection on the filtered image data by a sobel operator to obtain edge detection image data, and finally binarizes the edge detection image data by a double threshold binarization method to obtain binarized image data. The text recognition algorithm designs a single-character template and template response function with variable length according to the approximate width of a single character, and then divides the binarized image data according to the template response function to obtain single-character image data, and then uses the single-character image data as input data of a Tesseract-OCR literacy engine to obtain a single character recognition result, and finally normalizes the single character recognition result to obtain the button number information and the alarm indicator light number information of the fire alarm host, wherein the template response function Mr(l,r) for , in a is the robustness factor, l is the left boundary of the character, r is the right boundary of the word, e V(r) is the right boundary response function.
3. The fire alarm remote control method based on adaptive image recognition according to claim 1 is characterized in that: The coordinate conversion algorithm obtains the actual space coordinate parameters of the recognition result through the inverse proportional relationship between the parallax of the recognition result when the image collector is imaged and the distance from the recognition result to the image collector. The calculation formula is: , , Among them, the coordinate parameters of the actual space of the recognition result are ( X,Y,Z ), the coordinates in the image coordinate system are ( x, y ), the coordinates in pixel coordinates are ( u,v ), the coordinates of the origin of the image coordinate system in the pixel coordinate system are ( u 0 ,v 0 ), f To fix the focal length, p、q They represent the number of pixels per millimeter in the image coordinate system.
4. The fire alarm remote control method based on adaptive image recognition according to claim 1 is characterized in that: The motion trajectory learning algorithm obtains a trigger code by keyword extraction according to the preset processing scheme, matches the trigger code with the actual space coordinate parameters in the database to obtain a matching result, obtains a moving point set coordinate sequence according to the matching result, sets the current actual space coordinate parameter of the end effector as the initial value of the moving point set coordinate sequence, and uses the next coordinate parameter in the moving point set coordinate sequence as the target value. The trigger code is the number information of the fire alarm host button that should be triggered in the preset processing scheme.
5. The fire alarm remote control method based on adaptive image recognition according to claim 1 is characterized in that: The indicator light recognition model calculation method is as follows: converting the RGB color space of the real-time image data into the HSV color space, binarizing the H, S, and V components of the HSV color space of the real-time image data according to the preset H, S, and V component thresholds of the abnormal indicator light to obtain a grayscale image, initializing the level set function to a binary step function, taking the pixel points of the grayscale image as the input value of the binary step function to obtain the step function value, setting a seed pixel set in the grayscale image according to the step function value by a three-point labeling method, calculating the grayscale clustering distance function to obtain the grayscale clustering distance value between the pixel points in the grayscale image and the target seed points in the seed pixel set, using the grayscale clustering distance value to apply weights to the force to obtain the target force arm and the background force arm, and dividing the target pixels into the target area according to the target force arm and the background force arm through energy functional adjustment of the torque competition to obtain the abnormal alarm indicator light recognition result.
6. The fire alarm remote control method based on adaptive image recognition according to claim 1, characterized in that: The image comparison model obtains the abnormality determination result by judging the similarity between the initial image data and the real-time image data, extracts the features of the initial image data and the real-time image data, obtains a two-dimensional vector respectively, calculates the distance value between the feature vectors of the initial image data and the real-time image data using Euclidean distance, and compares the distance value with a preset similarity threshold to obtain the abnormality determination result.
7. A fire alarm remote control system based on adaptive image recognition, used to execute the method according to any one of claims 1 to 6, characterized in that: include: Image recognition module, database building module, abnormality judgment module, feature extraction module, biometric module and operation control module; The image recognition module is used for an image collector arranged next to the fire alarm host to collect images of the fire alarm host to obtain initial image data and transmit it to a data processor, and the data processor performs noise reduction and recognition on the image collection data through an image recognition model to obtain the button number information and the alarm indicator number information of the fire alarm host; The database establishment module is used for the data processor to obtain the actual space coordinate parameters of the fire alarm host button and the actual space coordinate parameters of the alarm indicator light according to the pixel coordinate parameters of the fire alarm host button number information and the alarm indicator light number information in combination with the internal and external parameters of the image collector through a coordinate conversion algorithm, and store the pixel coordinate parameters and the actual space coordinate parameters in the database of the integrated system; storing the initial image data and the preset processing scheme in a database of the integrated system; The abnormality judgment module is used for the image collector to collect real-time images of the fire alarm host to obtain real-time image data and transmit it to the data processor, and the data processor obtains the abnormality judgment result according to the real-time image data and the initial image data through the image comparison model; The feature extraction module is used for the data processor to perform indicator light status recognition on the real-time image data through the indicator light recognition model according to the abnormal judgment result to obtain an abnormal alarm indicator light recognition result, determine the abnormal alarm indicator light pixel coordinates according to the abnormal alarm indicator light recognition result, compare the abnormal alarm indicator light pixel coordinates with the pixel coordinates in the database to obtain abnormal alarm indicator light number information, and transmit the abnormal alarm indicator light number information to the integrated system. The integrated system generates a reminder signal through adaptive control according to the abnormal alarm indicator light number information and sends it to the smart terminal, and at the same time calls the camera with the corresponding number of the abnormal alarm indicator light number information to collect live image data, and transmits the live image data to the smart terminal wirelessly; The biometric module is used for the smart terminal to display the live image data after receiving the reminder signal. The smart terminal collects the biometric data of the fire safety officer through the front camera, and transmits the biometric data to the database of the integrated system. The fire safety officer is a person who reviews the live image and triggers the fire confirmation instruction; The operation control module is used for the integrated system to retrieve the corresponding preset processing scheme from the database according to the fire confirmation instruction and the abnormal alarm indicator light number information, and to perform adaptive control according to the preset processing scheme to generate the end effector control instruction; after receiving the control instruction, the end effector generates trigger pressure, and obtains the target value through the motion trajectory learning algorithm according to the actual space coordinate parameters of the fire alarm host button, and moves to the fire alarm host button according to the target value to execute the trigger task.
