WO2022134504A9 - Image detection method and apparatus, electronic device, and storage medium - Google Patents

Image detection method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022134504A9
WO2022134504A9 PCT/CN2021/101619 CN2021101619W WO2022134504A9 WO 2022134504 A9 WO2022134504 A9 WO 2022134504A9 CN 2021101619 W CN2021101619 W CN 2021101619W WO 2022134504 A9 WO2022134504 A9 WO 2022134504A9
Authority
WO
WIPO (PCT)
Prior art keywords
area
escalator
state
image
elevator
Prior art date
Application number
PCT/CN2021/101619
Other languages
French (fr)
Chinese (zh)
Other versions
WO2022134504A1 (en
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 上海商汤智能科技有限公司
Priority to JP2022532078A priority Critical patent/JP2023510477A/en
Priority to KR1020227018450A priority patent/KR20220095218A/en
Publication of WO2022134504A1 publication Critical patent/WO2022134504A1/en
Publication of WO2022134504A9 publication Critical patent/WO2022134504A9/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B66HOISTING; LIFTING; HAULING
    • B66BELEVATORS; ESCALATORS OR MOVING WALKWAYS
    • B66B25/00Control of escalators or moving walkways
    • B66B25/003Methods or algorithms therefor
    • 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/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • G06F18/2132Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on discrimination criteria, e.g. discriminant analysis
    • 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
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/80Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
    • G06V10/809Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of classification results, e.g. where the classifiers operate on the same input data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/64Three-dimensional objects
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Definitions

  • the present disclosure relates to the technical field of image detection and the technical field of computer vision, and in particular, to an image detection method and apparatus, an electronic device and a storage medium.
  • the embodiment of the present disclosure proposes an image detection technical solution.
  • an image detection method including: acquiring a first image of an escalator; performing area detection on the first image, and determining an image of the escalator in the first image.
  • the first area perform elevator state recognition on the image of the first area corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty state or in non-empty elevator state; according to the at least one state identification result, determine the state of the escalator.
  • the determining the state of the escalator according to the at least one state identification result includes: in the case of multiple state identification results, determining the state of the escalator according to the multiple state identification results and The weights of the plurality of state identification results determine the state discriminating value of the escalator; when the state discriminating value is greater than or equal to the first threshold, it is determined that the escalator is in an empty state.
  • the state identification result includes a first state identification result
  • the elevator state identification is performed on a first area image corresponding to the first area to determine at least one state of the escalator
  • the identification result includes: classifying the first area image to obtain the first state identification result of the escalator.
  • the state identification result includes a second state identification result
  • the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator
  • the identification result includes: segmenting the first area image, dividing the first area image into a background area and a foreground area where the escalator is located; adjusting the pixel values of the background area to obtain an adjusted
  • the second area image of the escalator is obtained; the second area image is classified and processed to obtain the second state recognition result of the escalator.
  • the state identification result includes a third state identification result
  • the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator
  • the identification result includes: performing pixel matching on the first area image and a preset reference image, and determining the matching area ratio between the first area image and the reference image, the reference image including The area image corresponding to the escalator in the elevator state; when the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state.
  • the state identification result includes a fourth state identification result
  • the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator
  • the identification result includes: performing a first target detection on the first area image, and determining whether the first target exists in the first area image; and in the case where the first target does not exist in the first area image, determining The fourth state recognition result is that the escalator is in an empty state.
  • the method further includes: when the escalator is in an empty state, sending an elevator stop signal, where the elevator stop signal is used to instruct the escalator to stop running.
  • the method further includes: when the escalator is in a non-empty state and the escalator has stopped running, sending an elevator start signal, where the elevator start signal is used for Instruct the escalator to run.
  • the method further includes: performing second target detection on the first image, and determining a third area of the second target in the first image; The positional relationship between the third areas determines a detection result of the second target, where the detection result includes that the second target is on the escalator or not on the escalator.
  • the determining the detection result of the second target according to the positional relationship between the first area and the third area includes: between the fourth area and the third area When the area ratio between the areas is greater than or equal to a third threshold, it is determined that the detection result is that the second target is on the escalator, and the fourth area includes the first area and the third Intersection area between regions.
  • an image detection apparatus including: an image acquisition module configured to acquire a first image of an escalator; an area detection module configured to perform area detection on the first image, and determine the first area of the escalator in the first image; the state recognition module is configured to perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition of the escalator As a result, the state recognition result includes that the escalator is in an empty state or a non-empty state; the state determination module is configured to determine the state of the escalator according to the at least one state recognition result.
  • an electronic device comprising: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to Perform the above method.
  • a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
  • a computer program product including computer-readable code, and when the computer-readable code is executed in an electronic device, a processor in the electronic device executes the above method .
  • the escalator it is possible to detect the area where the escalator is located in the image, identify at least one state recognition result according to the area image of the escalator, and determine the empty state or non-empty state of the escalator according to the at least one state recognition result
  • the state can improve the positioning accuracy of the escalator area and improve the recognition accuracy of the running state of the escalator.
  • FIG. 1 shows a flowchart of an image detection method according to an embodiment of the present disclosure.
  • Fig. 2a shows a schematic diagram of region detection of an image detection method according to an embodiment of the present disclosure.
  • FIG. 2b shows a schematic diagram of area detection of an image detection method according to an embodiment of the present disclosure.
  • FIG. 3 shows a schematic diagram of a first region according to an embodiment of the present disclosure.
  • Figure 4a shows a schematic diagram of a second object according to an embodiment of the present disclosure.
  • Figure 4b shows a schematic diagram of a second object according to an embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of a processing procedure of an image detection method according to an embodiment of the present disclosure.
  • FIG. 6 shows a block diagram of an image detection apparatus according to an embodiment of the present disclosure.
  • FIG. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • the artificial intelligence wave based on deep learning, industry + artificial intelligence has become one of the goals of industrial development in the new era.
  • New fields such as smart factories, smart stores, and smart agriculture are emerging one after another.
  • AI Artificial Intelligence
  • smart security the industrial application of AI for security, called smart security
  • the purpose of the smart elevator is to improve the work efficiency of the management department and strengthen the supervision of the daily operation of the elevator.
  • only part of the detection function for escalators can usually be realized, and there is no complete smart elevator solution.
  • the image detection method according to the embodiment of the present disclosure can be applied to scenes such as shopping malls, office buildings, and public transportation.
  • the positioning of the elevator area, the discrimination of the empty and non-empty status of the elevator, and the detection and identification of key targets (such as baby strollers, wheelchairs, luggage, etc.) Effectively, reduce the cost of elevator operation and reduce the risk of safety accidents.
  • FIG. 1 shows a flowchart of an image detection method according to an embodiment of the present disclosure. As shown in FIG. 1 , the image detection method includes:
  • step S11 a first image of the escalator is acquired
  • step S12 performing region detection on the first image to determine a first region of the escalator in the first image
  • step S13 perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty state or in a non-empty state;
  • step S14 the state of the escalator is determined according to the at least one state identification result.
  • the image detection method may be executed by an electronic device such as a terminal device or a server, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a handheld device, a computing equipment, vehicle-mounted equipment, wearable equipment, etc.
  • the method can be implemented by the processor calling the computer-readable instructions stored in the memory.
  • the method may be performed by a server.
  • At least one image acquisition device can be installed at the location where the escalator to be detected is located, for example, at least one camera facing the escalator can be installed, so as to collect the video stream of the escalator, and to monitor the escalator and the escalator in the video stream.
  • the target of the escalator (such as pedestrians, items carried by pedestrians, etc.) is detected.
  • the embodiments of the present disclosure do not limit the installation position of the image acquisition device, the acquisition method of the video stream, and the area corresponding to the video stream.
  • a first image of the escalator may be acquired.
  • Each image frame of the video stream can be used as the first image; the video stream can also be sampled at a certain time interval, and the sampled image frame can be used as the first image; key frames in the video stream can also be obtained as the first image .
  • the embodiment of the present disclosure does not limit the acquisition manner of the first image.
  • region detection may be performed on the first image through the trained region detection network to determine the first region of the escalator in the first image.
  • the region detection network may be, for example, a convolutional neural network, and the embodiments of the present disclosure do not limit the network structure and training method of the region detection network.
  • FIG. 2a and 2b illustrate schematic diagrams of region detection in an image detection method according to an embodiment of the present disclosure.
  • Fig. 2a shows the first image of the escalator;
  • Fig. 2b shows the region detection result in the first image.
  • the region detection network may adopt an object detection model or a region segmentation model.
  • the detected first area can be the rectangular detection frame of the area where the escalator is located, such as the detection frame 21 in Fig. 2b; when the area segmentation model is used, the detected first area can be the escalator The irregular region in which it is located, such as region 22 in Figure 2b.
  • the embodiment of the present disclosure does not limit the network model adopted by the area detection network.
  • the background area can be reduced as much as possible while the detection frame includes the complete elevator area, thereby reducing the influence of background noise on the subsequent processing process.
  • the lower left corner of the dark elevator area is used as the reference, as the coordinates of the lower left vertex of the detection frame 21; the upper right corner of the dark elevator area is used as the reference, as the detection The coordinates of the upper right vertex of box 21.
  • the region segmentation model is used for processing, the dark elevator region in the detection frame can be segmented, and a polygon can be drawn with the elevator handrail as the boundary, such as region 22 in FIG. 2b.
  • a first area image corresponding to the first area may be intercepted from the first image, and the escalator may be identified according to the first area image state, that is, to identify whether the escalator is in an empty state or a non-empty state.
  • the first area image state that is, to identify whether the escalator is in an empty state or a non-empty state.
  • At least one identification manner may be used to identify the images of the first area respectively to obtain a corresponding state identification result.
  • the identification method may include, for example, at least one of the following: directly classifying the image of the first area; adjusting the pixel value of the background area in the image of the first area, and classifying the adjusted image; comparing the image of the first area with the reference image of the empty elevator Comparison; detect whether there are objects such as pedestrians on the elevator.
  • the embodiments of the present disclosure do not limit the identification methods used.
  • the state of the escalator may be determined according to at least one state identification result.
  • the state of the escalator is comprehensively determined according to the value and weight of each state identification result.
  • an elevator stop signal can be sent to instruct the escalator to stop running; when the escalator is in a non-empty state and has stopped running, an elevator stop signal can be sent. Send an elevator start signal to instruct the escalator to start running.
  • the area where the escalator is located in the image can be detected, at least one state recognition result is recognized according to the area image of the escalator, and the empty state of the escalator or the escalator is determined according to the at least one state recognition result.
  • the positioning accuracy of the escalator area can be improved, and the recognition accuracy of the running state of the escalator can be improved.
  • the video stream of the area where the escalator is located can be captured by the camera, and the captured video stream can be transmitted to electronic devices such as a local front-end server or a cloud server.
  • the electronic device can decode the video stream to obtain the decoded video stream.
  • a first image of the escalator may be acquired.
  • the first image may be an image frame of the decoded video stream.
  • the region detection is performed on the first image through the trained region detection network, and the first region of the escalator in the first image is determined, for example, the detection frame of the region where the escalator is located.
  • step S13 the first area image corresponding to the first area may be intercepted from the first image, and at least one identification method is used to respectively identify the first area image to obtain at least one state identification result.
  • FIG. 3 shows a schematic diagram of a first region according to an embodiment of the present disclosure.
  • the first image includes the first areas 31 and 32 of two elevators.
  • the first area images corresponding to the first areas 31 and 32 can be intercepted respectively, and the two first area images can be recognized in parallel. Thereby improving the processing efficiency.
  • the state identification result includes the first state identification result.
  • Step S13 may include:
  • the first area image is classified and processed to obtain a first state recognition result of the escalator.
  • the first classification network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc.
  • the embodiment of the present disclosure does not limit the network structure and training method of the first classification network.
  • the first region image can be input into the first classification network, and the first state recognition result can be output, indicating that the escalator is in an empty elevator state or in a non-empty elevator state, for example, when the escalator is in an empty elevator state It outputs 1 when it is in the state, and outputs 0 when it is in the non-empty state. In this way, the status of the escalator can be identified simply and efficiently.
  • the state identification result includes the second state identification result.
  • Step S13 may include:
  • the second area image is classified and processed to obtain the second state recognition result of the escalator.
  • the first area image corresponding to the first area can be segmented by the trained segmentation network, and the first area image is segmented into the background area and the motorized area.
  • the segmentation network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc.
  • the embodiments of the present disclosure do not limit the network structure and training method of the segmentation network.
  • the area image corresponding to the enclosing rectangular frame of the first area may be used as the first area image.
  • the first area can be directly used as the foreground area; the area other than the first area in the first area image is used as the background area to realize the segmentation of the first area image.
  • the pixel values of the pixels in the background area may be adjusted, for example, the pixel values of the background area are all adjusted to zero (black) to obtain an adjusted image of the second area.
  • the pixel value of the background area may also be adjusted to other values, which is not limited in this embodiment of the present disclosure.
  • the images of the second region may be classified by a trained classification network (herein referred to as a second classification network).
  • the second classification network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc.
  • the second classification network may have the same network structure as the first classification network, but with different network parameters.
  • the embodiments of the present disclosure do not limit the network structure and training method of the second classification network.
  • the second region image is input into the second classification network, and the second state recognition result is output, indicating that the escalator is in an empty state or in a non-empty state, for example, when the escalator is in an empty state It outputs 1 when it is in the empty state, and outputs 0 when it is in an empty state.
  • the second region image after pixel adjustment is classified and processed, which can improve the accuracy of elevator state identification.
  • the state identification result includes a third state identification result.
  • Step S13 may include:
  • Pixel matching is performed on the first area image and a preset reference image, and the matching area ratio between the first area image and the reference image is determined, and the reference image includes an escalator in an empty state. the corresponding area image;
  • the third state recognition result is that the escalator is in an empty state.
  • a single or multiple area images corresponding to the escalator can be acquired, for example, an image of the escalator is acquired by a camera, and an area image is obtained by performing area detection on the image.
  • the area image can be used as a reference image; if multiple area images are acquired, the multiple area images can be fused to obtain a reference image (or called the empty elevator template).
  • a reference image or called the empty elevator template.
  • a segmentation model is used to obtain the labels of all pixels in the elevator area, and then an empty elevator template is obtained through a Gaussian mixture model.
  • the embodiments of the present disclosure do not limit the generation manner of the reference image.
  • the reference images may be stored in a database.
  • pixel matching can be performed on the first area image and the reference image to determine the number of matching pixels; The proportion of matching areas.
  • the proportion of the matching area is greater than or equal to the second threshold, it may be determined that the third state recognition result is that the escalator is in an empty state; otherwise, if the proportion of the matching area is less than the second threshold , it can be determined that the third state recognition result is that the escalator is in a non-empty state.
  • the second threshold can set the second threshold according to the actual situation, for example, 0.8, and the embodiment of the present disclosure does not limit the actual value of the second threshold.
  • the state identification result includes a fourth state identification result.
  • Step S13 may include:
  • the fourth state recognition result is that the escalator is in an empty state.
  • a trained target detection network (which may be referred to as a first detection network) may be used to perform a first target detection on an image of the first area to determine whether there is a first target in the image of the first area.
  • the first target may include, for example, a pedestrian, an item, etc., which is not limited in this embodiment of the present disclosure.
  • the first detection network may be, for example, a convolutional neural network, and the embodiment of the present disclosure does not limit the network structure and training method of the first detection network.
  • the fourth state recognition result is that the escalator is in a non-empty state; otherwise, if the first area image does not exist the first target If a target is reached, it can be determined that the fourth state recognition result is that the escalator is in an empty state.
  • step S14 may include: in the case of multiple state identification results, determining the state identification value of the escalator according to the multiple state identification results and the weights of the multiple state identification results;
  • the state of the escalator can be directly determined according to the state recognition result; if there are multiple state recognition results, the state of the escalator can be comprehensively determined according to the multiple state recognition results.
  • the weight of each state recognition result may be preset, the weight of the state recognition result with a higher accuracy rate is set to be higher, and the weight of the state recognition result with a lower accuracy rate is set to be higher low, the sum of the weights of each state recognition result is 1.
  • the state discrimination value of the escalator may be determined according to multiple state identification results and the weights of the multiple state identification results with reference to a voting mechanism.
  • the state identification result may include at least two of the above-mentioned first, second, third and fourth state identification results.
  • the state recognition result includes the first state recognition result a 1 , the second state recognition result a 2 , the third state recognition result a 3 , and the fourth state recognition result a 4
  • the weights of the third and fourth state identification results are set as w 1 , w 2 , w 3 and w 4 respectively
  • the state discrimination value w 1 *a 1 +w 2 *a 2 +w 3 *a 3 +w 4 *a 4
  • w 1 +w 2 +w 3 +w 4 1, a 1 , a 2 , a 3 , and a 4 output 1 when the escalator is in an empty state, and output 0 when it is in a non-empty state.
  • the state discriminating value is greater than or equal to the preset first threshold, it can be considered that the escalator is in an empty state; on the contrary, if the state discriminating value is smaller than the preset first threshold, it can be considered that the escalator is in an empty state; The escalator is not empty. As shown in FIG. 3 , the escalator in area 31 is in an empty state, and the escalator in area 32 is in a non-empty state.
  • the first threshold value for example, 0.5, according to the actual situation, and the embodiment of the present disclosure does not limit the value of the first threshold value.
  • the running state of the escalator can be accurately identified, and the error rate of the elevator state judgment can be significantly reduced.
  • the image detection method according to the embodiment of the present disclosure may further include:
  • an elevator stop signal is sent, and the elevator stop signal is used to instruct the escalator to stop running.
  • an elevator stop signal can be generated and sent to instruct the escalator to stop running.
  • the elevator stop signal is sent to the elevator control device, so that the elevator control device controls the escalator to stop running; the elevator stop signal can also be sent to the staff, so that the staff can control the escalator to stop running.
  • the embodiment of the present disclosure does not limit the type and transmission manner of the elevator outage signal.
  • the elevator can be stopped when it is empty, thereby reducing the cost of elevator operation.
  • the image detection method according to the embodiment of the present disclosure may further include:
  • an elevator start signal is sent, and the elevator start signal is used to instruct the escalator to run.
  • an elevator start signal can be generated and sent to instruct the escalator to run .
  • the elevator start signal can be sent to the elevator control device, so that the elevator control device controls the operation of the escalator; the elevator start signal can also be sent to the staff, so that the staff can control the operation of the escalator.
  • the embodiment of the present disclosure does not limit the type and transmission mode of the elevator start signal.
  • the elevator can be started when someone takes the elevator and the elevator is out of service, thereby ensuring the normal use of the elevator.
  • the image detection method according to the embodiment of the present disclosure may further include:
  • a detection result of the second target is determined, and the detection result includes that the second target is on the escalator or not on the electric escalator on the escalator.
  • a trained target detection network (which may be referred to as a second detection network) can also be used to perform second target detection on the first image to determine the first image. Whether there is a second target in .
  • the second target may include items prohibited from entering the escalator, such as a baby stroller, a wheelchair, a large luggage, etc.
  • the embodiment of the present disclosure does not limit the type of the second target.
  • the second detection network may be, for example, a convolutional neural network, and the embodiment of the present disclosure does not limit the network structure and training method of the second detection network.
  • the second detection network may determine a region (which may be referred to as a third region) of the second object in the first image.
  • 4a and 4b show schematic diagrams of a second object according to an embodiment of the present disclosure.
  • the second object in FIG. 4 a is the stroller 41
  • the second object in FIG. 4 b is the luggage 42 .
  • the detection frame where the second target is located that is, the third area can be determined.
  • the detection result of the second target may be determined through the positional relationship between the first area and the third area. That is, it is determined whether the second target is on the escalator according to the positional relationship.
  • the step of determining the detection result of the second target according to the positional relationship between the first area and the third area may include:
  • the area ratio between the fourth area and the third area is greater than or equal to a third threshold, it is determined that the detection result is that the second target is on the escalator, and the fourth area includes all The intersection area between the first area and the third area.
  • IOU Intersection-over-Union
  • the area ratio between the fourth area and the third area can be obtained, that is, the area of the intersection area of the area where the second target is located and the elevator area is equal to the The ratio of the area of the area where the second target is located.
  • the area ratio is greater than or equal to a preset third threshold, it may be determined that the detection result is that the second target is on the escalator; otherwise, if the area ratio is less than the preset third threshold , it can be determined that the detection result is that the second target is not on the escalator.
  • a preset third threshold it may be determined that the detection result is that the second target is on the escalator; otherwise, if the area ratio is less than the preset third threshold , it can be determined that the detection result is that the second target is not on the escalator.
  • the second detection network may also directly perform second target detection on the first area image of the elevator area to determine whether there is a second target in the first area image. If the second object exists in the first area image, it may be determined that the second object is on the escalator.
  • the embodiments of the present disclosure do not limit the adopted processing manner.
  • the second target includes items prohibited from entering the escalator
  • the image detection method according to an embodiment of the present disclosure may further include: when the second target is on the escalator Next, send alarm information.
  • alarm information can be sent to remind or directly control the escalator to stop running.
  • the alarm information can be sent to the elevator monitoring equipment and/or staff in the monitoring room, so that the staff can control the escalator to stop running and/or go to the elevator for processing; the alarm information can also be sent to the elevator control equipment to make the elevator
  • the control device controls the escalator to stop running.
  • the embodiments of the present disclosure do not limit the type and sending manner of the alarm information.
  • an alarm may be issued in response to the second object appearing on the elevator for the first time, and the second object that appears in succession will repeat the alarm within a specified interval to avoid sending alarm information too frequently.
  • FIG. 5 shows a schematic diagram of a processing procedure of an image detection method according to an embodiment of the present disclosure.
  • the image of the escalator can be input in step 51 of image input; step 52 of elevator positioning and step 53 of key target detection are respectively performed on the image to improve the processing efficiency of the event; Step 52 of elevator positioning determines the elevator area 54 in the image; then, through step 55 of judging empty elevators, it is determined that the elevator is empty/non-empty 57, and then corresponding processing is performed.
  • the key target position 56 in the image is determined through the key target detection step 53, and the key target is the item that is prohibited from entering the elevator (violation item); according to the elevator area 54 and the key target position 56, it is determined whether the key target is on the elevator ; If the key target is on the elevator, alarm 58 of illegal items. In this way, the entire processing process of the image detection method according to the embodiment of the present disclosure can be realized.
  • step 52 of elevator positioning input the first image of the escalator as shown in Figure 2a, that is, the elevator, build a target detection or area segmentation model based on the deep learning algorithm, and output the elevator detection frame 21 as shown in Figure 2b, Or output the segmentation result of the region 22 as shown in Fig. 2b.
  • the target detection method needs to ensure that the detection frame includes the elevator area while reducing the background area as much as possible, so as to prevent background noise from interfering with subsequent elevator services. Therefore, the bounding box of the elevator as shown in Fig. 2b is defined as the detection box 21. At the same time, pay attention to the position of the elevator.
  • Figure 2b is offset to the left, with the lower left corner of the elevator area as the benchmark (the lower left coordinate of the bounding box is determined from this), and the right boundary is based on the upper right corner of the elevator area as the benchmark. If the segmentation model is used to build a more accurate elevator area positioning module, the elevator area is defined as the elevator area within the detection frame 21, and a polygon is drawn with the elevator handrail as the boundary, such as area 22 in Figure 2b.
  • step 55 of judging empty elevators build a multi-channel parallel elevator state classification model based on deep learning, receive the processing results of the elevator positioning module (taking the detection results as an example), perform data processing simultaneously through various technical solutions, and finally make the results Fusion, determine the idle state of the elevator: an empty elevator or a non-empty elevator, as shown in FIG. 3 , the left elevator 31 is in an idle state, and the right elevator 32 is in a non-idle state.
  • This process can be accomplished in several ways:
  • the first method is to extract the detection frame area, and output the elevator status through the classification network model
  • Method 2 Extract the detection frame area, refer to the segmentation area, set the pixel value of the background area in the detection frame to 0 (black), and output the elevator status through the classification network model;
  • the segmentation model is used to obtain the labels of all pixels in all elevator areas, and finally the template of the empty elevator (equivalent to the reference image) is obtained through the Gaussian mixture model, and the proportion of the matching area is obtained through the same The ratio of the number of pixels/total number of pixels is obtained;
  • Method 4 Based on the pedestrian and key target detection model, the elevator area is used as the input. If there is no target of interest in the elevator area, the output is an idle elevator, otherwise it is a non-empty elevator.
  • step S56 of the key target location detection of key targets such as baby carriages, wheelchairs, and luggage is supported, and various event alarms are supported.
  • the output results of the model are a detection target of a stroller 41 (equivalent to the second target) as shown in 4a, and a detection target of a suitcase 42 shown in 4b (equivalent to the second target).
  • step 52 of elevator positioning it is judged whether the detection target exists in the elevator area, so as to give an alarm.
  • the entrance of the smart elevator solution can be constructed based on the positioning of the elevator area; in the elevator area, the multi-channel parallel empty elevator discrimination method and the result voting mechanism are used to determine whether the elevator is an empty elevator, Improve the accuracy of empty elevator prediction; through the empty elevator alarm, guide the management department to reduce the elevator running speed or even stop running, reduce energy consumption while ensuring the safety and convenience of travel; based on the target detection algorithm, locate the key targets in the elevator area, Give an alarm to the illegal objects, and improve the supervision of the management department.
  • elevator area positioning can be performed based on a deep learning target detection/segmentation model, and multi-target detection is supported to locate multiple elevator areas at the same time.
  • the two area definition methods proposed by this method can reduce the interference of background noise while ensuring complete coverage of the elevator area.
  • the image detection method of the embodiment of the present disclosure it is possible to judge whether the elevator is empty based on the multi-channel parallel empty elevator state discrimination method combined with the result voting mechanism, which can greatly reduce the error rate of output results, and also supports multi-area parallel classification.
  • the empty state of the elevator is usually judged by a single method, and the accuracy rate is low.
  • the image detection method of the embodiment of the present disclosure by training a deep neural network to detect specific illegal items and identify all key targets within the field of view, the problem of inability to detect illegal items such as baby strollers, wheelchairs, and large suitcases in the related art is solved , and based on the elevator area and key target area, a specific IOU calculation method is used to judge whether the illegal items are on the elevator, which improves the accuracy of the judgment.
  • an intelligent elevator system based on automatic positioning and key target detection is proposed, which can form a complete and stable intelligent elevator solution and can be applied to all current public elevator scenarios.
  • the method can be applied to smart cameras to locate elevator areas and identify empty elevators in elevator scenes, reduce energy consumption when the elevator is in an empty state, ensure that the elevators are empty before the elevator stops, and improve the work efficiency of the management department; Elevator area positioning and key target detection, alarm the illegal items on the elevator, and strengthen the supervision of the management department.
  • the embodiments of the present disclosure also provide image detection apparatuses, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any image detection method provided by the embodiments of the present disclosure, and the corresponding technical solutions and descriptions and refer to the methods part of the corresponding records.
  • FIG. 6 shows a block diagram of an image detection apparatus according to an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus includes:
  • an image acquisition module 61 configured to acquire a first image of the escalator
  • an area detection module 62 configured to perform area detection on the first image, and determine a first area of the escalator in the first image
  • the state recognition module 63 is configured to perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is empty state or in a non-empty state;
  • the state determination module 64 is configured to determine the state of the escalator according to the at least one state identification result.
  • the state determination module includes: a discriminant value determination sub-module, configured to identify multiple states according to the multiple state identification results and the multiple state identification results when there are multiple state identification results The weight of the result determines the state discriminating value of the escalator; the state determination submodule is configured to determine that the escalator is in an empty state when the state discriminating value is greater than or equal to a first threshold.
  • the state identification result includes a first state identification result
  • the state identification module includes: a first result determination sub-module, configured to perform classification processing on the first area image, and obtain the The first state recognition result of the escalator is described.
  • the state identification result includes a second state identification result
  • the state identification module includes: a segmentation sub-module configured to segment the first region image, and divide the first region image into The image is divided into a background area and a foreground area where the escalator is located; the pixel adjustment sub-module is configured to adjust the pixel values of the background area to obtain an adjusted second area image; the second result determination sub-module is configured to In order to classify the image of the second area, a second state recognition result of the escalator is obtained.
  • the state identification result includes a third state identification result
  • the state identification module includes: a pixel matching sub-module configured to perform pixel matching between the first region image and a preset reference image. matching, to determine the proportion of the matching area between the first area image and the reference image, where the reference image includes the area image corresponding to the escalator in the empty elevator state; the third result determination sub-module is configured to When the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state.
  • the state identification result includes a fourth state identification result
  • the state identification module includes: a detection sub-module configured to perform a first target detection on the first area image, and determine the Whether the first target exists in the first area image; the fourth result determination submodule is configured to determine that the fourth state recognition result is the escalator when the first target does not exist in the first area image in an empty state.
  • the device further includes: a shutdown signal sending module configured to send an elevator shutdown signal when the escalator is in an empty state, and the elevator shutdown signal is configured as The escalator is instructed to stop running.
  • the device further includes: a start signal sending module configured to send an elevator start signal when the escalator is in a non-empty state and the escalator has stopped running,
  • the elevator activation signal is configured to instruct the escalator to operate.
  • the apparatus further includes: a target detection module, configured to perform second target detection on the first image, and determine a third area of the second target in the first image; detecting A result determination module, configured to determine a detection result of the second target according to the positional relationship between the first area and the third area, where the detection result includes that the second target is on the escalator or not on the escalator.
  • a target detection module configured to perform second target detection on the first image, and determine a third area of the second target in the first image
  • a result determination module configured to determine a detection result of the second target according to the positional relationship between the first area and the third area, where the detection result includes that the second target is on the escalator or not on the escalator.
  • the detection result determination module includes: a determination sub-module configured to determine, when the area ratio between the fourth region and the third region is greater than or equal to a third threshold, The detection result is that the second target is on the escalator, and the fourth area includes an intersection area between the first area and the third area.
  • the second target includes items that are prohibited from entering the escalator
  • the apparatus further includes: an alarm information sending module configured to, when the second target is on the escalator, , send alarm information.
  • the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • An embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • Embodiments of the present disclosure also provide a computer program product, including computer-readable code, when the computer-readable code is run on a device, a processor in the device executes a method configured to implement the image detection method provided by any of the above embodiments. instruction.
  • Embodiments of the present disclosure further provide another computer program product configured to store computer-readable instructions, which, when executed, cause the computer to perform the operations of the image detection method provided by any of the foregoing embodiments.
  • the electronic device may be provided as a terminal, server or other form of device.
  • FIG. 7 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
  • electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
  • an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812 , sensor component 814 and communication component 816 .
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method configured to operate on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
  • Memory 804 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM) , Static Random-Access Memory), Erasable Programmable Read-Only Memory (EPROM, Electrically Erasable Programmable Read-Only Memory), Programmable Read-Only Memory (PROM, Programmable Read-Only Memory), Read-Only Memory (ROM, Read Only Memory), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM Static Random-Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Electrically Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • Read-Only Memory
  • Power supply assembly 806 provides power to various components of electronic device 800 .
  • Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD, Liquid Crystal Display) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC, Microphone) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a calling mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816 .
  • audio component 810 also includes a speaker configured to output audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors configured to provide status assessment of various aspects of electronic device 800 .
  • the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or one of the electronic devices 800. Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a Complementary Metal-Oxide-Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications.
  • CMOS Complementary Metal-Oxide-Semiconductor
  • CCD Charge Coupled Device
  • the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (Wi-Fi, Wireless Fidelity), a second-generation mobile communication technology (2G, The 2nd Generation) or a third-generation mobile communication technology (3G, The 3nd Generation) Generation), or their combination.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a Near Field Communication (NFC, Near Field Communication) module to facilitate short-range communication.
  • NFC Near Field Communication
  • the NFC module can be based on Radio Frequency Identification (RFID, Radio Frequency Identification) technology, Infrared Data Association (IrDA, Infrared Data Association) technology, Ultra Wide Band (UWB, Ultra Wide Band) technology, Bluetooth (BT, Blue Tooth) technology and other technologies to achieve.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD) Processing Device), Programmable Logic Device (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA, Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation, configured to perform the above method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic component implementation, configured to perform the above method.
  • a non-volatile computer-readable storage medium such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
  • FIG. 8 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
  • the electronic device 1900 may be provided as a server.
  • electronic device 1900 includes processing component 1922, which may include one or more processors, and a memory resource represented by memory 1932 configured to store instructions executable by processing component 1922, such as an application program.
  • An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above-described methods.
  • the electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows ServerTM), a graphical user interface based operating system (Mac OS XTM) introduced by Apple, a multi-user multi-process computer operating system (UnixTM). ), a free and open source Unix-like operating system (LinuxTM), an open source Unix-like operating system (FreeBSDTM) or similar systems.
  • a non-volatile computer-readable storage medium such as memory 1932 comprising computer program instructions executable by the processing component 1922 of the electronic device 1900 to accomplish the above-described method is also provided.
  • Embodiments of the present disclosure may be systems, methods and/or computer program products.
  • the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the embodiments of the present disclosure.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media may include: portable computer disks, hard disks, random access memory (RAM, Random Access Memory), read-only memory, erasable programmable read-only memory (EPROM or flash memory), static random access memory, Portable Compact Disc Read-Only Memory (CD-ROM, Compact Disc Read-Only Memory), Digital Versatile Disc (DVD, Digital Video Disc), memory stick, floppy disk, mechanical coding device, such as a punch card on which instructions are stored Or the protruding structure in the groove, and any suitable combination of the above.
  • RAM Random Access Memory
  • EPROM or flash memory erasable programmable read-only memory
  • static random access memory Portable Compact Disc Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • DVD Digital Versatile Disc
  • memory stick floppy disk
  • mechanical coding device such as a punch card on which instructions are stored Or the protruding structure in the groove, and any suitable combination of the above.
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
  • the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • the computer program instructions for carrying out the operations of the present disclosure may be assembly instructions, Industry Standard Architecture (ISA) instructions, machine instructions, machine-dependent instructions, pseudocode, firmware instructions, state setting data, or in one or more Source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or Wide Area Network (WAN), or it may be connected to an external computer (eg, using Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • electronic circuits such as programmable logic circuits, field programmable gate arrays, or programmable logic arrays, that can execute computer readable program instructions are personalized by utilizing state information of computer readable program instructions , thereby implementing various aspects of the present disclosure.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the computer program product can be implemented in hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
  • the first area of the escalator in the first image is determined;
  • the first area image of the escalator is used for elevator status recognition, and at least one status recognition result of the escalator is determined, and the status recognition result includes that the escalator is in an empty elevator state or in a non-empty elevator state;
  • the state of the escalator is determined; in this way, the recognition accuracy of the running state of the escalator can be improved, and a complete and stable intelligent elevator solution can be formed, which can be applied to all current public elevator scenarios.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Geometry (AREA)
  • Computational Linguistics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Mathematical Physics (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Image Analysis (AREA)
  • Escalators And Moving Walkways (AREA)

Abstract

An image detection method and apparatus, an electronic device, and a storage medium. The method comprises: obtaining a first image of an escalator (S11); performing region detection on the first image to determine that the escalator is in a first region of the first image (S12); performing escalator state recognition on a first region image that corresponds to the first region to determine at least one state recognition result of the escalator (S13), the state recognition result comprising that the escalator is in an empty state or in a non-empty state; and determining the state of the escalator according to the at least one state recognition result (S14).

Description

图像检测方法及装置、电子设备和存储介质Image detection method and device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开基于申请号为202011559951.4、申请日为2020年12月25日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以全文引入的方式引入本公开。The present disclosure is based on a Chinese patent application with application number 202011559951.4 and an application date of December 25, 2020, and claims the priority of the Chinese patent application, the entire contents of which are hereby incorporated into the present disclosure by full text .
技术领域technical field
本公开涉及图像检测技术领域、计算机视觉技术领域,尤其涉及一种图像检测方法及装置、电子设备和存储介质。The present disclosure relates to the technical field of image detection and the technical field of computer vision, and in particular, to an image detection method and apparatus, an electronic device and a storage medium.
背景技术Background technique
随着经济的发展和基础设施建设的不断完善,电动扶梯在商场、写字楼、公共交通等场景的应用也越来越广泛。在电动扶梯日常运行期间,人们需要对电动扶梯所在区域进行严格管理,以便保障电梯运行,避免引发意外事故。相关技术中针对电梯区域的自动化检测方案,通常是基于红外感应或重力感应来实现电梯的启停运行,容易产生误识别,检测效果较差。With the development of the economy and the continuous improvement of infrastructure construction, the application of escalators in shopping malls, office buildings, public transportation and other scenarios is becoming more and more extensive. During the daily operation of the escalator, people need to strictly manage the area where the escalator is located to ensure the operation of the elevator and avoid accidents. The automatic detection scheme for the elevator area in the related art is usually based on infrared induction or gravity induction to realize the start and stop of the elevator, which is prone to misidentification and poor detection effect.
发明内容SUMMARY OF THE INVENTION
本公开实施例提出了一种图像检测技术方案。The embodiment of the present disclosure proposes an image detection technical solution.
根据本公开实施例的一方面,提供了一种图像检测方法,包括:获取电动扶梯的第一图像;对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;根据所述至少一个状态识别结果,确定所述电动扶梯的状态。According to an aspect of the embodiments of the present disclosure, there is provided an image detection method, including: acquiring a first image of an escalator; performing area detection on the first image, and determining an image of the escalator in the first image. The first area; perform elevator state recognition on the image of the first area corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty state or in non-empty elevator state; according to the at least one state identification result, determine the state of the escalator.
在一种可能的实现方式中,所述根据所述至少一个状态识别结果,确定所述电动扶梯的状态,包括:在所述状态识别结果为多个的情况下,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值;在所述状态判别值大于或等于第一阈值的情况下,确定所述电动扶梯处于空梯状态。In a possible implementation manner, the determining the state of the escalator according to the at least one state identification result includes: in the case of multiple state identification results, determining the state of the escalator according to the multiple state identification results and The weights of the plurality of state identification results determine the state discriminating value of the escalator; when the state discriminating value is greater than or equal to the first threshold, it is determined that the escalator is in an empty state.
在一种可能的实现方式中,所述状态识别结果包括第一状态识别结果,所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:对所述第一区域图像进行分类处理,得到所述电动扶梯的第一状态识别结果。In a possible implementation manner, the state identification result includes a first state identification result, and the elevator state identification is performed on a first area image corresponding to the first area to determine at least one state of the escalator The identification result includes: classifying the first area image to obtain the first state identification result of the escalator.
在一种可能的实现方式中,所述状态识别结果包括第二状态识别结果,所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:对所述第一区域图像进行分割,将所述第一区域图像分割为背景区域及所述电动扶梯所在的前景区域;对所述背景区域的像素值进行调整,得到调整后的第二区域图像;对所述第二区域图像进行分类处理,得到所述电动扶梯的第二状态识别结果。In a possible implementation manner, the state identification result includes a second state identification result, and the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator The identification result includes: segmenting the first area image, dividing the first area image into a background area and a foreground area where the escalator is located; adjusting the pixel values of the background area to obtain an adjusted The second area image of the escalator is obtained; the second area image is classified and processed to obtain the second state recognition result of the escalator.
在一种可能的实现方式中,所述状态识别结果包括第三状态识别结果,所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:对所述第一区域图像与预设的参考图像进行像素匹配,确定所述第一区域图像与所述参考图像之间的匹配区域占比,所述参考图像包括与处于空梯状态的电动扶梯对应的区域图像;在所述匹配区域占比大于或等于第二阈值的情况下,确定所述 第三状态识别结果为所述电动扶梯处于空梯状态。在一种可能的实现方式中,所述状态识别结果包括第四状态识别结果,所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:对所述第一区域图像进行第一目标检测,确定所述第一区域图像中是否存在第一目标;在所述第一区域图像中不存在第一目标的情况下,确定所述第四状态识别结果为所述电动扶梯处于空梯状态。In a possible implementation manner, the state identification result includes a third state identification result, and the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator The identification result includes: performing pixel matching on the first area image and a preset reference image, and determining the matching area ratio between the first area image and the reference image, the reference image including The area image corresponding to the escalator in the elevator state; when the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state. In a possible implementation manner, the state identification result includes a fourth state identification result, and the elevator state identification is performed on the first area image corresponding to the first area to determine at least one state of the escalator The identification result includes: performing a first target detection on the first area image, and determining whether the first target exists in the first area image; and in the case where the first target does not exist in the first area image, determining The fourth state recognition result is that the escalator is in an empty state.
在一种可能的实现方式中,所述方法还包括:在所述电动扶梯处于空梯状态的情况下,发送电梯停运信号,所述电梯停运信号用于指示所述电动扶梯停止运行。In a possible implementation manner, the method further includes: when the escalator is in an empty state, sending an elevator stop signal, where the elevator stop signal is used to instruct the escalator to stop running.
在一种可能的实现方式中,所述方法还包括:在所述电动扶梯处于非空梯状态,且所述电动扶梯已停止运行的情况下,发送电梯启动信号,所述电梯启动信号用于指示所述电动扶梯运行。In a possible implementation manner, the method further includes: when the escalator is in a non-empty state and the escalator has stopped running, sending an elevator start signal, where the elevator start signal is used for Instruct the escalator to run.
在一种可能的实现方式中,所述方法还包括:对所述第一图像进行第二目标检测,确定第二目标在所述第一图像中的第三区域;根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,所述检测结果包括所述第二目标处于所述电动扶梯上或未处于所述电动扶梯上。在一种可能的实现方式中,所述根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,包括:在第四区域与所述第三区域之间的面积比值大于或等于第三阈值的情况下,确定所述检测结果为所述第二目标处于所述电动扶梯上,所述第四区域包括所述第一区域与所述第三区域之间的交集区域。In a possible implementation manner, the method further includes: performing second target detection on the first image, and determining a third area of the second target in the first image; The positional relationship between the third areas determines a detection result of the second target, where the detection result includes that the second target is on the escalator or not on the escalator. In a possible implementation manner, the determining the detection result of the second target according to the positional relationship between the first area and the third area includes: between the fourth area and the third area When the area ratio between the areas is greater than or equal to a third threshold, it is determined that the detection result is that the second target is on the escalator, and the fourth area includes the first area and the third Intersection area between regions.
在一种可能的实现方式中,所述第二目标包括禁止进入电动扶梯的物品,所述方法还包括:在所述第二目标处于所述电动扶梯上的情况下,发送告警信息。根据本公开实施例的一方面,提供了一种图像检测装置,包括:图像获取模块,配置为获取电动扶梯的第一图像;区域检测模块,配置为对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;状态识别模块,配置为对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;状态确定模块,配置为根据所述至少一个状态识别结果,确定所述电动扶梯的状态。In a possible implementation manner, the second target includes items prohibited from entering the escalator, and the method further includes: when the second target is on the escalator, sending alarm information. According to an aspect of the embodiments of the present disclosure, an image detection apparatus is provided, including: an image acquisition module configured to acquire a first image of an escalator; an area detection module configured to perform area detection on the first image, and determine the first area of the escalator in the first image; the state recognition module is configured to perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition of the escalator As a result, the state recognition result includes that the escalator is in an empty state or a non-empty state; the state determination module is configured to determine the state of the escalator according to the at least one state recognition result.
根据本公开实施例的一方面,提供了一种电子设备,包括:处理器;配置为存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to an aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to Perform the above method.
根据本公开实施例的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
根据本公开实施例的一方面,提供了一种计算机程序产品,包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备中的处理器执行上述方法。According to an aspect of the embodiments of the present disclosure, there is provided a computer program product including computer-readable code, and when the computer-readable code is executed in an electronic device, a processor in the electronic device executes the above method .
根据本公开的实施例,能够检测出图像中电动扶梯所在的区域,根据电动扶梯的区域图像识别出至少一个状态识别结果,并根据至少一个状态识别结果确定电动扶梯的空梯状态或非空梯状态,能够提高电动扶梯区域的定位准确性,提高电动扶梯运行状态的识别准确率。According to the embodiments of the present disclosure, it is possible to detect the area where the escalator is located in the image, identify at least one state recognition result according to the area image of the escalator, and determine the empty state or non-empty state of the escalator according to the at least one state recognition result The state can improve the positioning accuracy of the escalator area and improve the recognition accuracy of the running state of the escalator.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure.
图1示出根据本公开实施例的图像检测方法的流程图。FIG. 1 shows a flowchart of an image detection method according to an embodiment of the present disclosure.
图2a示出根据本公开实施例的图像检测方法的区域检测的示意图。Fig. 2a shows a schematic diagram of region detection of an image detection method according to an embodiment of the present disclosure.
图2b示出根据本公开实施例的图像检测方法的区域检测的示意图。FIG. 2b shows a schematic diagram of area detection of an image detection method according to an embodiment of the present disclosure.
图3示出根据本公开实施例的第一区域的示意图。FIG. 3 shows a schematic diagram of a first region according to an embodiment of the present disclosure.
图4a示出根据本公开实施例的第二目标的示意图。Figure 4a shows a schematic diagram of a second object according to an embodiment of the present disclosure.
图4b示出根据本公开实施例的第二目标的示意图。Figure 4b shows a schematic diagram of a second object according to an embodiment of the present disclosure.
图5示出根据本公开实施例的图像检测方法的处理过程的示意图。FIG. 5 shows a schematic diagram of a processing procedure of an image detection method according to an embodiment of the present disclosure.
图6示出根据本公开实施例的图像检测装置的框图。FIG. 6 shows a block diagram of an image detection apparatus according to an embodiment of the present disclosure.
图7示出根据本公开实施例的一种电子设备的框图。FIG. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
图8示出根据本公开实施例的一种电子设备的框图。FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
实施方式Implementation
下以下将参考附图详细说明本公开实施例的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features and aspects of embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures denote elements that have the same or similar functions. While various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the term "at least one" herein refers to any combination of any one of the plurality or at least two of the plurality, for example, including at least one of A, B, and C, and may mean including from A, B, and C. Any one or more elements selected from the set of B and C.
另外,为了更好地说明本公开,在下文的实施方式中给出了众多的细节。本领域技术人员应当理解,没有某些细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous details are given in the following embodiments. It will be understood by those skilled in the art that the present disclosure may be practiced without certain details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail so as not to obscure the subject matter of the present disclosure.
近年来,基于深度学习的人工智能浪潮,工业+人工智能(AI,Artificial Intelligence)成为新时代工业发展的目标之一。智慧工厂、智慧商店、智慧农业等新领域层出不穷,其中将AI用于安防的产业应用,名为智慧安防,该类应用尤为火热。在公共安全领域,电动扶梯是现代生活普遍的代步工具,也是需要严格规章制度管理的公共场所。智慧电梯的目的是提升管理部门的工作效率,并且加强对电梯日常运行的监管。相关技术中通常仅能实现针对电动扶梯的部分检测功能,没有完整的智慧电梯解决方案。In recent years, the artificial intelligence wave based on deep learning, industry + artificial intelligence (AI, Artificial Intelligence) has become one of the goals of industrial development in the new era. New fields such as smart factories, smart stores, and smart agriculture are emerging one after another. Among them, the industrial application of AI for security, called smart security, is particularly popular. In the field of public safety, the escalator is a common means of transportation in modern life, and it is also a public place that needs to be managed by strict rules and regulations. The purpose of the smart elevator is to improve the work efficiency of the management department and strengthen the supervision of the daily operation of the elevator. In the related art, only part of the detection function for escalators can usually be realized, and there is no complete smart elevator solution.
根据本公开实施例的图像检测方法,可应用于商场、写字楼、公共交通等场景中,该方法基于深度学习的方式,对场景中电动扶梯所在区域的图像或视频流进行处理和分析,能够实现电梯区域的定位、电梯的空梯与非空梯状态的判别,以及关键目标(例如婴儿车、轮椅、行李箱等物体)的检测与识别等功能,从而构建完整的智慧电梯解决方案,提高检测效果,降低电梯运行成本,并降低发生安全事故的风险。The image detection method according to the embodiment of the present disclosure can be applied to scenes such as shopping malls, office buildings, and public transportation. The positioning of the elevator area, the discrimination of the empty and non-empty status of the elevator, and the detection and identification of key targets (such as baby strollers, wheelchairs, luggage, etc.) Effectively, reduce the cost of elevator operation and reduce the risk of safety accidents.
图1示出根据本公开实施例的图像检测方法的流程图,如图1所示,所述图像检测方法包括:FIG. 1 shows a flowchart of an image detection method according to an embodiment of the present disclosure. As shown in FIG. 1 , the image detection method includes:
在步骤S11中,获取电动扶梯的第一图像;In step S11, a first image of the escalator is acquired;
在步骤S12中,对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;In step S12, performing region detection on the first image to determine a first region of the escalator in the first image;
在步骤S13中,对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;In step S13, perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty state or in a non-empty state;
在步骤S14中,根据所述至少一个状态识别结果,确定所述电动扶梯的状态。In step S14, the state of the escalator is determined according to the at least one state identification result.
在一种可能的实现方式中,所述图像检测方法可以由终端设备或服务器等电子设备执行,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、手持设备、计算设备、车载设备、可穿戴设备等,所述方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。或者,可通过服务器执行所述方法。In a possible implementation manner, the image detection method may be executed by an electronic device such as a terminal device or a server, and the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a handheld device, a computing equipment, vehicle-mounted equipment, wearable equipment, etc., the method can be implemented by the processor calling the computer-readable instructions stored in the memory. Alternatively, the method may be performed by a server.
举例来说,可在待检测电动扶梯所在的位置设置至少一个图像采集设备,例如设置朝向电动扶梯的至少一个摄像头,以便采集电动扶梯的视频流,并对视频流画面中的电动扶梯、搭乘电动扶梯的目标(例如行人、行人携带的物品等)进行检测。本公开实施例对图像采集装置的安装位置、视频流的采集方式及视频流对应的区域均不作限制。For example, at least one image acquisition device can be installed at the location where the escalator to be detected is located, for example, at least one camera facing the escalator can be installed, so as to collect the video stream of the escalator, and to monitor the escalator and the escalator in the video stream. The target of the escalator (such as pedestrians, items carried by pedestrians, etc.) is detected. The embodiments of the present disclosure do not limit the installation position of the image acquisition device, the acquisition method of the video stream, and the area corresponding to the video stream.
在一种可能的实现方式中,在步骤S11中,可获取电动扶梯的第一图像。可将视频流的每个图像帧作为第一图像;也可以一定的时间间隔对视频流进行采样,将采样的图像帧作为第一图像;还可以获取视频流中的关键帧,作为第一图像。本公开实施例对第一图像的获取方式不作限制。In a possible implementation manner, in step S11, a first image of the escalator may be acquired. Each image frame of the video stream can be used as the first image; the video stream can also be sampled at a certain time interval, and the sampled image frame can be used as the first image; key frames in the video stream can also be obtained as the first image . The embodiment of the present disclosure does not limit the acquisition manner of the first image.
在一种可能的实现方式中,在步骤S12中,可通过已训练的区域检测网络对第一图像进行区域检测,确定电动扶梯在第一图像中的第一区域。该区域检测网络可例如为卷积神经网络,本公开实施例对区域检测网络的网络结构及训练方式均不作限制。In a possible implementation manner, in step S12, region detection may be performed on the first image through the trained region detection network to determine the first region of the escalator in the first image. The region detection network may be, for example, a convolutional neural network, and the embodiments of the present disclosure do not limit the network structure and training method of the region detection network.
图2a和图2b示出根据本公开实施例的图像检测方法的区域检测的示意图。图2a示出了电动扶梯的第一图像;图2b示出了第一图像中的区域检测结果。2a and 2b illustrate schematic diagrams of region detection in an image detection method according to an embodiment of the present disclosure. Fig. 2a shows the first image of the escalator; Fig. 2b shows the region detection result in the first image.
在一种可能的实现方式中,区域检测网络可采用目标检测模型或者区域分割模型。在采用目标检测模型时,检测到的第一区域可为电动扶梯所在区域的矩形检测框,例如图2b中的检测框21;在采用区域分割模型时,检测到的第一区域可为电动扶梯所在的不规则区域,例如图2b中的区域22。本公开实施例对区域检测网络所采用的网络模型不作限制。In a possible implementation manner, the region detection network may adopt an object detection model or a region segmentation model. When the target detection model is used, the detected first area can be the rectangular detection frame of the area where the escalator is located, such as the detection frame 21 in Fig. 2b; when the area segmentation model is used, the detected first area can be the escalator The irregular region in which it is located, such as region 22 in Figure 2b. The embodiment of the present disclosure does not limit the network model adopted by the area detection network.
在采用目标检测模型进行处理时,可使得检测框在包括完整电梯区域的同时,尽可能减少背景面积,从而减少背景噪声对后续处理过程的影响。如图2b所示,在电梯朝向为向左侧偏移时,以深色电梯区域的左下角为基准,作为检测框21的左下顶点坐标;以深色电梯区域的右上角为基准,作为检测框21的右上顶点坐标。在采用区域分割模型进行处理时,可分割出检测框内的深色电梯区域,以电梯扶手为边界绘制多边形,例如图2b中的区域22。When the target detection model is used for processing, the background area can be reduced as much as possible while the detection frame includes the complete elevator area, thereby reducing the influence of background noise on the subsequent processing process. As shown in Figure 2b, when the elevator orientation is offset to the left, the lower left corner of the dark elevator area is used as the reference, as the coordinates of the lower left vertex of the detection frame 21; the upper right corner of the dark elevator area is used as the reference, as the detection The coordinates of the upper right vertex of box 21. When the region segmentation model is used for processing, the dark elevator region in the detection frame can be segmented, and a polygon can be drawn with the elevator handrail as the boundary, such as region 22 in FIG. 2b.
在一种可能的实现方式中,在得到第一区域后,在步骤S13中,可从第一图像中截取与所述第一区域对应的第一区域图像,并根据第一区域图像识别电动扶梯的状态,也即识别电动扶梯处于空梯状态还是处于非空梯状态。其中,电动扶梯上没有行人和/或物品时,处于空梯状态;电动扶梯上存在行人和/或物品时,处于非空梯状态。In a possible implementation manner, after the first area is obtained, in step S13, a first area image corresponding to the first area may be intercepted from the first image, and the escalator may be identified according to the first area image state, that is, to identify whether the escalator is in an empty state or a non-empty state. Among them, when there are no pedestrians and/or objects on the escalator, it is in an empty state; when there are pedestrians and/or objects on the escalator, it is in a non-empty state.
在一种可能的实现方式中,可通过至少一种识别方式,分别对第一区域图像进行识别,得到对应的状态识别结果。识别方式可例如包括以下至少一种:直接对第一区域图像进行分类;调整第一区域图像中背景区域的像素值,对调整后的图像进行分类;将第一区域图像与空电梯的参考图像比对;检测电梯上是否有行人等目标。本公开实施例对采用的识别方式均不作限制。In a possible implementation manner, at least one identification manner may be used to identify the images of the first area respectively to obtain a corresponding state identification result. The identification method may include, for example, at least one of the following: directly classifying the image of the first area; adjusting the pixel value of the background area in the image of the first area, and classifying the adjusted image; comparing the image of the first area with the reference image of the empty elevator Comparison; detect whether there are objects such as pedestrians on the elevator. The embodiments of the present disclosure do not limit the identification methods used.
在一种可能的实现方式中,在步骤S14中,可根据至少一个状态识别结果,确定电动扶梯的状态。例如参照投票机制,根据各个状态识别结果的取值及权重,综合判定电动扶梯的状态。在状态识别结果为空梯状态的总体权重更高时,判定电动扶梯处于空梯状态;反之,判定电动扶梯处于非空梯状态。In a possible implementation manner, in step S14, the state of the escalator may be determined according to at least one state identification result. For example, referring to the voting mechanism, the state of the escalator is comprehensively determined according to the value and weight of each state identification result. When the state recognition result is that the overall weight of the empty elevator state is higher, it is determined that the escalator is in the empty elevator state; otherwise, it is determined that the escalator is in the non-empty elevator state.
在一种可能的实现方式中,在电动扶梯处于空梯状态的情况下,可发送电梯停运信号,指示电动扶梯停止运行;在电动扶梯处于非空梯状态且已停止运行的情况下,可发送电梯启动信号,指示所述电动扶梯开始运行。本公开实施例对不同电梯状态下执行的 操作不作限制。In a possible implementation, when the escalator is in an empty state, an elevator stop signal can be sent to instruct the escalator to stop running; when the escalator is in a non-empty state and has stopped running, an elevator stop signal can be sent. Send an elevator start signal to instruct the escalator to start running. The embodiments of the present disclosure do not limit the operations performed in different elevator states.
根据本公开实施例的图像检测方法,能够检测出图像中电动扶梯所在的区域,根据电动扶梯的区域图像识别出至少一个状态识别结果,并根据至少一个状态识别结果确定电动扶梯的空梯状态或非空梯状态,能够提高电动扶梯区域的定位准确性,提高电动扶梯运行状态的识别准确率。According to the image detection method of the embodiment of the present disclosure, the area where the escalator is located in the image can be detected, at least one state recognition result is recognized according to the area image of the escalator, and the empty state of the escalator or the escalator is determined according to the at least one state recognition result. In the non-empty state, the positioning accuracy of the escalator area can be improved, and the recognition accuracy of the running state of the escalator can be improved.
下面对根据本公开实施例的图像检测方法进行展开说明。The image detection method according to the embodiment of the present disclosure will be described below.
如前所述,可通过摄像头采集电动扶梯所在区域的视频流,并将采集的视频流传输给本地的前置服务器或云端服务器等电子设备。电子设备可对视频流进行解码,得到解码后的视频流。As mentioned above, the video stream of the area where the escalator is located can be captured by the camera, and the captured video stream can be transmitted to electronic devices such as a local front-end server or a cloud server. The electronic device can decode the video stream to obtain the decoded video stream.
在步骤S11中,可获取电动扶梯的第一图像。该第一图像可以为解码后的视频流的图像帧。在步骤S12中,通过已训练的区域检测网络对第一图像进行区域检测,确定电动扶梯在第一图像中的第一区域,例如电动扶梯所在区域的检测框。In step S11, a first image of the escalator may be acquired. The first image may be an image frame of the decoded video stream. In step S12, the region detection is performed on the first image through the trained region detection network, and the first region of the escalator in the first image is determined, for example, the detection frame of the region where the escalator is located.
在步骤S13中,可从第一图像中截取与所述第一区域对应的第一区域图像,并通过至少一种识别方式,分别对第一区域图像进行识别,得到至少一个状态识别结果。In step S13, the first area image corresponding to the first area may be intercepted from the first image, and at least one identification method is used to respectively identify the first area image to obtain at least one state identification result.
图3示出根据本公开实施例的第一区域的示意图。如图3所示,第一图像中包括两个电梯的第一区域31和32,可分别截取与第一区域31和32对应的第一区域图像,并行对两个第一区域图像进行识别,从而提高处理效率。FIG. 3 shows a schematic diagram of a first region according to an embodiment of the present disclosure. As shown in FIG. 3 , the first image includes the first areas 31 and 32 of two elevators. The first area images corresponding to the first areas 31 and 32 can be intercepted respectively, and the two first area images can be recognized in parallel. Thereby improving the processing efficiency.
在一种可能的实现方式中,该状态识别结果包括第一状态识别结果。步骤S13可包括:In a possible implementation manner, the state identification result includes the first state identification result. Step S13 may include:
对所述第一区域图像进行分类处理,得到所述电动扶梯的第一状态识别结果。The first area image is classified and processed to obtain a first state recognition result of the escalator.
也就是说,可通过已训练的分类网络(此处称为第一分类网络),直接对第一区域图像进行分类。该第一分类网络可例如为卷积神经网络,包括卷积层、全连接层、激活层等,本公开实施例对第一分类网络的网络结构及训练方式均不作限制。That is, the first region image can be directly classified by the trained classification network (herein referred to as the first classification network). The first classification network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc. The embodiment of the present disclosure does not limit the network structure and training method of the first classification network.
在一种可能的实现方式中,可将第一区域图像输入第一分类网络中,输出第一状态识别结果,指示电动扶梯处于空梯状态或处于非空梯状态,例如在电动扶梯处于空梯状态时输出1,处于非空梯状态时输出0。通过这种方式,可简单有效地识别电动扶梯的状态。In a possible implementation manner, the first region image can be input into the first classification network, and the first state recognition result can be output, indicating that the escalator is in an empty elevator state or in a non-empty elevator state, for example, when the escalator is in an empty elevator state It outputs 1 when it is in the state, and outputs 0 when it is in the non-empty state. In this way, the status of the escalator can be identified simply and efficiently.
在一种可能的实现方式中,该状态识别结果包括第二状态识别结果。步骤S13可包括:In a possible implementation manner, the state identification result includes the second state identification result. Step S13 may include:
对所述第一区域图像进行分割,将所述第一区域图像分割为背景区域及所述电动扶梯所在的前景区域;Segmenting the first area image, and dividing the first area image into a background area and a foreground area where the escalator is located;
对所述背景区域的像素值进行调整,得到调整后的第二区域图像;Adjust the pixel value of the background area to obtain the adjusted second area image;
对所述第二区域图像进行分类处理,得到所述电动扶梯的第二状态识别结果。The second area image is classified and processed to obtain the second state recognition result of the escalator.
举例来说,在第一区域为矩形检测框的情况下,可通过已训练的分割网络对与第一区域对应的第一区域图像进行分割,将第一区域图像分割为背景区域及所述电动扶梯所在的前景区域。该分割网络可例如为卷积神经网络,包括卷积层、全连接层、激活层等,本公开实施例对该分割网络的网络结构及训练方式均不作限制。For example, in the case where the first area is a rectangular detection frame, the first area image corresponding to the first area can be segmented by the trained segmentation network, and the first area image is segmented into the background area and the motorized area. The foreground area where the escalator is located. The segmentation network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc. The embodiments of the present disclosure do not limit the network structure and training method of the segmentation network.
在一种可能的实现方式中,在第一区域为电动扶梯所在的不规则区域的情况下,可将第一区域的外接矩形框对应的区域图像作为第一区域图像。可直接将第一区域作为前景区域;第一区域图像中除了第一区域外的区域作为背景区域,实现第一区域图像的分割。In a possible implementation manner, when the first area is an irregular area where the escalator is located, the area image corresponding to the enclosing rectangular frame of the first area may be used as the first area image. The first area can be directly used as the foreground area; the area other than the first area in the first area image is used as the background area to realize the segmentation of the first area image.
在一种可能的实现方式中,可对背景区域中像素的像素值进行调整,例如将背景区域的像素值均调整为零(黑色),得到调整后的第二区域图像。也可以将背景区域的像素值调整为其他值,本公开实施例对此不作限制。In a possible implementation manner, the pixel values of the pixels in the background area may be adjusted, for example, the pixel values of the background area are all adjusted to zero (black) to obtain an adjusted image of the second area. The pixel value of the background area may also be adjusted to other values, which is not limited in this embodiment of the present disclosure.
在一种可能的实现方式中,可通过已训练的分类网络(此处称为第二分类网络)对第二区域图像进行分类。该第二分类网络可例如为卷积神经网络,包括卷积层、全连接层、激活层等,该第二分类网络可与第一分类网络的网络结构相同,但网络参数不同。本公开实施例对第二分类网络的网络结构及训练方式均不作限制。In a possible implementation manner, the images of the second region may be classified by a trained classification network (herein referred to as a second classification network). The second classification network may be, for example, a convolutional neural network, including a convolutional layer, a fully connected layer, an activation layer, etc. The second classification network may have the same network structure as the first classification network, but with different network parameters. The embodiments of the present disclosure do not limit the network structure and training method of the second classification network.
在一种可能的实现方式中,将第二区域图像输入第二分类网络中,输出第二状态识别结果,指示电动扶梯处于空梯状态或处于非空梯状态,例如在电动扶梯处于空梯状态时输出1,处于空梯状态时输出0。这样结合图像分割,对像素调整后的第二区域图像进行分类处理,可提高电梯状态识别的准确率。In a possible implementation, the second region image is input into the second classification network, and the second state recognition result is output, indicating that the escalator is in an empty state or in a non-empty state, for example, when the escalator is in an empty state It outputs 1 when it is in the empty state, and outputs 0 when it is in an empty state. In this way, in combination with image segmentation, the second region image after pixel adjustment is classified and processed, which can improve the accuracy of elevator state identification.
在一种可能的实现方式中,该状态识别结果包括第三状态识别结果。步骤S13可包括:In a possible implementation manner, the state identification result includes a third state identification result. Step S13 may include:
对所述第一区域图像与预设的参考图像进行像素匹配,确定所述第一区域图像与所述参考图像之间的匹配区域占比,所述参考图像包括与处于空梯状态的电动扶梯对应的区域图像;Pixel matching is performed on the first area image and a preset reference image, and the matching area ratio between the first area image and the reference image is determined, and the reference image includes an escalator in an empty state. the corresponding area image;
在所述匹配区域占比大于或等于第二阈值的情况下,确定所述第三状态识别结果为所述电动扶梯处于空梯状态。When the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state.
举例来说,在电动扶梯处于空梯状态时,可获取与电动扶梯对应的单个或多个区域图像,例如通过摄像头采集电动扶梯的图像,并对图像进行区域检测得到区域图像。For example, when the escalator is in an empty state, a single or multiple area images corresponding to the escalator can be acquired, for example, an image of the escalator is acquired by a camera, and an area image is obtained by performing area detection on the image.
在一种可能的实现方式中,如果获取到单个区域图像,则可将该区域图像作为参考图像;如果获取到多个区域图像,则可将多个区域图像进行融合,得到参考图像(也可称为空电梯模板)。例如,通过1至2天的长时间图像采集,使用分割模型获得电梯区域中所有像素的标签,再通过高斯混合模型得到空电梯模板。本公开实施例对参考图像的生成方式不作限制。In a possible implementation, if a single area image is acquired, the area image can be used as a reference image; if multiple area images are acquired, the multiple area images can be fused to obtain a reference image (or called the empty elevator template). For example, through a long-term image acquisition of 1 to 2 days, a segmentation model is used to obtain the labels of all pixels in the elevator area, and then an empty elevator template is obtained through a Gaussian mixture model. The embodiments of the present disclosure do not limit the generation manner of the reference image.
在一种可能的实现方式中,可将参考图像保存在数据库中。在进行电梯状态识别时,可对第一区域图像与参考图像进行像素匹配,确定相匹配的像素数量;根据相匹配的像素数量与总像素数量的比值,确定第一区域图像与参考图像之间的匹配区域占比。In one possible implementation, the reference images may be stored in a database. When performing elevator state recognition, pixel matching can be performed on the first area image and the reference image to determine the number of matching pixels; The proportion of matching areas.
在一种可能的实现方式中,如果该匹配区域占比大于或等于第二阈值,则可确定第三状态识别结果为电动扶梯处于空梯状态;反之,如果该匹配区域占比小于第二阈值,则可确定第三状态识别结果为电动扶梯处于非空梯状态。其中,本领域技术人员可根据实际情况设置第二阈值,例如0.8,本公开实施例对第二阈值的实际取值不作限制。In a possible implementation manner, if the proportion of the matching area is greater than or equal to the second threshold, it may be determined that the third state recognition result is that the escalator is in an empty state; otherwise, if the proportion of the matching area is less than the second threshold , it can be determined that the third state recognition result is that the escalator is in a non-empty state. Wherein, those skilled in the art can set the second threshold according to the actual situation, for example, 0.8, and the embodiment of the present disclosure does not limit the actual value of the second threshold.
通过像素匹配的方式,可提高电梯状态识别的效率。Through pixel matching, the efficiency of elevator state recognition can be improved.
在一种可能的实现方式中,该状态识别结果包括第四状态识别结果。步骤S13可包括:In a possible implementation manner, the state identification result includes a fourth state identification result. Step S13 may include:
对所述第一区域图像进行第一目标检测,确定所述第一区域图像中是否存在第一目标;performing a first target detection on the first area image to determine whether there is a first target in the first area image;
在所述第一区域图像中不存在第一目标的情况下,确定所述第四状态识别结果为所述电动扶梯处于空梯状态。In the case where the first target does not exist in the first area image, it is determined that the fourth state recognition result is that the escalator is in an empty state.
举例来说,可通过已训练的目标检测网络(可称为第一检测网络),对第一区域图像进行第一目标检测,确定第一区域图像中是否存在第一目标。该第一目标可例如包括行人、物品等,本公开实施例对此不作限制。For example, a trained target detection network (which may be referred to as a first detection network) may be used to perform a first target detection on an image of the first area to determine whether there is a first target in the image of the first area. The first target may include, for example, a pedestrian, an item, etc., which is not limited in this embodiment of the present disclosure.
在一种可能的实现方式中,第一检测网络可例如为卷积神经网络,本公开实施例对第一检测网络的网络结构及训练方式均不作限制。In a possible implementation manner, the first detection network may be, for example, a convolutional neural network, and the embodiment of the present disclosure does not limit the network structure and training method of the first detection network.
在一种可能的实现方式中,如果第一区域图像中存在第一目标,则可确定第四状态识别结果为所述电动扶梯处于非空梯状态;反之,如果第一区域图像中不存在第一目标,则可确定第四状态识别结果为所述电动扶梯处于空梯状态。通过设定第一目标,并对第 一区域图像进行目标检测,可提高电梯状态识别方式的多样性。In a possible implementation manner, if the first target exists in the first area image, it may be determined that the fourth state recognition result is that the escalator is in a non-empty state; otherwise, if the first area image does not exist the first target If a target is reached, it can be determined that the fourth state recognition result is that the escalator is in an empty state. By setting the first target and performing target detection on the image of the first area, the diversity of elevator state identification methods can be improved.
在确定出各个状态识别结果后,可在步骤S14中根据各个状态识别结果确定电动扶梯的状态。其中,步骤S14可包括:在所述状态识别结果为多个的情况下,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值;After each state recognition result is determined, the state of the escalator can be determined according to each state recognition result in step S14. Wherein, step S14 may include: in the case of multiple state identification results, determining the state identification value of the escalator according to the multiple state identification results and the weights of the multiple state identification results;
在所述状态判别值大于或等于第一阈值的情况下,确定所述电动扶梯处于空梯状态。When the state discrimination value is greater than or equal to a first threshold value, it is determined that the escalator is in an empty state.
举例来说,如果状态识别结果为一个,则可根据该状态识别结果直接确定电动扶梯的状态;如果状态识别结果为多个,则可根据多个状态识别结果综合判定电动扶梯的状态。For example, if there is one state recognition result, the state of the escalator can be directly determined according to the state recognition result; if there are multiple state recognition results, the state of the escalator can be comprehensively determined according to the multiple state recognition results.
在一种可能的实现方式中,可预先设置有各个状态识别结果的权重,将准确率较高的状态识别结果的权重设置为较高,将准确率较低的状态识别结果的权重设置为较低,各个状态识别结果的权重之和为1。In a possible implementation manner, the weight of each state recognition result may be preset, the weight of the state recognition result with a higher accuracy rate is set to be higher, and the weight of the state recognition result with a lower accuracy rate is set to be higher low, the sum of the weights of each state recognition result is 1.
在一种可能的实现方式中,可参照投票机制,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值。其中,状态识别结果可包括上述的第一、第二、第三及第四状态识别结果中的至少两个。In a possible implementation manner, the state discrimination value of the escalator may be determined according to multiple state identification results and the weights of the multiple state identification results with reference to a voting mechanism. The state identification result may include at least two of the above-mentioned first, second, third and fourth state identification results.
例如,在状态识别结果包括上述的第一状态识别结果a 1、第二状态识别结果a 2、第三状态识别结果a 3及第四状态识别结果a 4的情况下,将第一、第二、第三及第四状态识别结果的权重分别设置为w 1、w 2、w 3及w 4,则状态判别值=w 1*a 1+w 2*a 2+w 3*a 3+w 4*a 4。其中,w 1+w 2+w 3+w 4=1,a 1、a 2、a 3、a 4在电动扶梯处于空梯状态时输出1,处于非空梯状态时输出0。 For example, when the state recognition result includes the first state recognition result a 1 , the second state recognition result a 2 , the third state recognition result a 3 , and the fourth state recognition result a 4 , the first and second state recognition results , the weights of the third and fourth state identification results are set as w 1 , w 2 , w 3 and w 4 respectively, then the state discrimination value=w 1 *a 1 +w 2 *a 2 +w 3 *a 3 +w 4 *a 4 . Wherein, w 1 +w 2 +w 3 +w 4 =1, a 1 , a 2 , a 3 , and a 4 output 1 when the escalator is in an empty state, and output 0 when it is in a non-empty state.
在一种可能的实现方式中,如果状态判别值大于或等于预设的第一阈值,则可认为电动扶梯处于空梯状态;反之,如果状态判别值小于预设的第一阈值,则可认为电动扶梯处于非空梯状态。如图3所示,区域31的电动扶梯处于空梯状态,区域32的电动扶梯处于非空梯状态。In a possible implementation manner, if the state discriminating value is greater than or equal to the preset first threshold, it can be considered that the escalator is in an empty state; on the contrary, if the state discriminating value is smaller than the preset first threshold, it can be considered that the escalator is in an empty state; The escalator is not empty. As shown in FIG. 3 , the escalator in area 31 is in an empty state, and the escalator in area 32 is in a non-empty state.
本领域技术人员可根据实际情况设置第一阈值,例如0.5,本公开实施例对第一阈值的取值不作限制。Those skilled in the art can set the first threshold value, for example, 0.5, according to the actual situation, and the embodiment of the present disclosure does not limit the value of the first threshold value.
通过上述的投票机制进行判定的方式,能够准确识别出电动扶梯的运行状态,显著降低电梯状态判断的错误率。Through the above-mentioned voting mechanism, the running state of the escalator can be accurately identified, and the error rate of the elevator state judgment can be significantly reduced.
在一种可能的实现方式中,根据本公开实施例的图像检测方法还可包括:In a possible implementation manner, the image detection method according to the embodiment of the present disclosure may further include:
在所述电动扶梯处于空梯状态的情况下,发送电梯停运信号,所述电梯停运信号用于指示所述电动扶梯停止运行。When the escalator is in an empty state, an elevator stop signal is sent, and the elevator stop signal is used to instruct the escalator to stop running.
也就是说,如果步骤S14中判定电动扶梯处于空梯状态,则可生成并发送电梯停运信号,以指示电动扶梯停止运行。例如,将电梯停运信号发送给电梯控制设备,以使电梯控制设备控制电动扶梯停止运行;还可将电梯停运信号发送给工作人员,以使工作人员控制电动扶梯停止运行。本公开实施例对电梯停运信号的类型及发送方式不作限制。That is, if it is determined in step S14 that the escalator is in an empty state, an elevator stop signal can be generated and sent to instruct the escalator to stop running. For example, the elevator stop signal is sent to the elevator control device, so that the elevator control device controls the escalator to stop running; the elevator stop signal can also be sent to the staff, so that the staff can control the escalator to stop running. The embodiment of the present disclosure does not limit the type and transmission manner of the elevator outage signal.
通过这种方式,可以在电梯空梯时停止运行,从而降低电梯运行成本。In this way, the elevator can be stopped when it is empty, thereby reducing the cost of elevator operation.
在一种可能的实现方式中,根据本公开实施例的图像检测方法还可包括:In a possible implementation manner, the image detection method according to the embodiment of the present disclosure may further include:
在所述电动扶梯处于非空梯状态,且所述电动扶梯已停止运行的情况下,发送电梯启动信号,所述电梯启动信号用于指示所述电动扶梯运行。When the escalator is in a non-empty state and the escalator has stopped running, an elevator start signal is sent, and the elevator start signal is used to instruct the escalator to run.
也就是说,如果步骤S14中判定电动扶梯处于非空梯状态,且电动扶梯已停止运行,也即在停运期间有行人搭乘电动扶梯,则可生成并发送电梯启动信号,以指示电动扶梯运行。与上述的方式类似,可将电梯启动信号发送给电梯控制设备,以使电梯控制设备控制电动扶梯运行;还可将电梯启动信号发送给工作人员,以使工作人员控制电动扶梯运行。本公开实施例对电梯启动信号的类型及发送方式不作限制。That is to say, if it is determined in step S14 that the escalator is in a non-empty state and the escalator has stopped running, that is, there are pedestrians riding the escalator during the shutdown, an elevator start signal can be generated and sent to instruct the escalator to run . Similar to the above method, the elevator start signal can be sent to the elevator control device, so that the elevator control device controls the operation of the escalator; the elevator start signal can also be sent to the staff, so that the staff can control the operation of the escalator. The embodiment of the present disclosure does not limit the type and transmission mode of the elevator start signal.
通过这种方式,可以在有人搭乘电梯而电梯停运时启动电梯,从而保证电梯的正常 使用。In this way, the elevator can be started when someone takes the elevator and the elevator is out of service, thereby ensuring the normal use of the elevator.
在一种可能的实现方式中,根据本公开实施例的图像检测方法还可包括:In a possible implementation manner, the image detection method according to the embodiment of the present disclosure may further include:
对所述第一图像进行第二目标检测,确定第二目标在所述第一图像中的第三区域;performing second target detection on the first image, and determining a third area of the second target in the first image;
根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,所述检测结果包括所述第二目标处于所述电动扶梯上或未处于所述电动扶梯上。According to the positional relationship between the first area and the third area, a detection result of the second target is determined, and the detection result includes that the second target is on the escalator or not on the electric escalator on the escalator.
举例来说,在步骤S11中获取电动扶梯的第一图像后,还可通过已训练的目标检测网络(可称为第二检测网络),对第一图像进行第二目标检测,确定第一图像中是否存在第二目标。该第二目标可包括禁止进入电动扶梯的物品,例如婴儿车、轮椅、大件行李箱等,本公开实施例对第二目标的类型不作限制。For example, after acquiring the first image of the escalator in step S11, a trained target detection network (which may be referred to as a second detection network) can also be used to perform second target detection on the first image to determine the first image. Whether there is a second target in . The second target may include items prohibited from entering the escalator, such as a baby stroller, a wheelchair, a large luggage, etc. The embodiment of the present disclosure does not limit the type of the second target.
在一种可能的实现方式中,第二检测网络可例如为卷积神经网络,本公开实施例对第二检测网络的网络结构及训练方式均不作限制。In a possible implementation manner, the second detection network may be, for example, a convolutional neural network, and the embodiment of the present disclosure does not limit the network structure and training method of the second detection network.
在一种可能的实现方式中,如果第一图像中存在第二目标,则第二检测网络可确定出第二目标在第一图像中的区域(可称为第三区域)。图4a和图4b示出根据本公开实施例的第二目标的示意图。图4a中的第二目标为婴儿车41,图4b中的第二目标为行李箱42。如图4a和图4b所示,可确定出第二目标所在的检测框,即第三区域。In a possible implementation manner, if the second object exists in the first image, the second detection network may determine a region (which may be referred to as a third region) of the second object in the first image. 4a and 4b show schematic diagrams of a second object according to an embodiment of the present disclosure. The second object in FIG. 4 a is the stroller 41 , and the second object in FIG. 4 b is the luggage 42 . As shown in FIG. 4a and FIG. 4b, the detection frame where the second target is located, that is, the third area can be determined.
在一种可能的实现方式中,根据电动扶梯在第一图像中的第一区域,可通过第一区域与第三区域之间的位置关系,确定第二目标的检测结果。也即根据位置关系判断第二目标是否处于电动扶梯上。In a possible implementation manner, according to the first area of the escalator in the first image, the detection result of the second target may be determined through the positional relationship between the first area and the third area. That is, it is determined whether the second target is on the escalator according to the positional relationship.
在一种可能的实现方式中,根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果的步骤,可包括:In a possible implementation manner, the step of determining the detection result of the second target according to the positional relationship between the first area and the third area may include:
在第四区域与所述第三区域之间的面积比值大于或等于第三阈值的情况下,确定所述检测结果为所述第二目标处于所述电动扶梯上,所述第四区域包括所述第一区域与所述第三区域之间的交集区域。In the case that the area ratio between the fourth area and the third area is greater than or equal to a third threshold, it is determined that the detection result is that the second target is on the escalator, and the fourth area includes all The intersection area between the first area and the third area.
也就是说,可通过求取交并比(Intersection-over-Union,IOU)的思路进行判断。设第四区域包括第一区域与第三区域之间的交集区域,则可求取第四区域与第三区域之间的面积比值,即第二目标所在区域和电梯区域的交集区域的面积与第二目标所在区域的面积的比值。That is to say, the judgment can be made by the idea of obtaining the Intersection-over-Union (IOU). Assuming that the fourth area includes the intersection area between the first area and the third area, the area ratio between the fourth area and the third area can be obtained, that is, the area of the intersection area of the area where the second target is located and the elevator area is equal to the The ratio of the area of the area where the second target is located.
在一种可能的实现方式中,如果该面积比值大于或等于预设的第三阈值,则可确定检测结果为第二目标处于电动扶梯上;反之,如果该面积比值小于预设的第三阈值,则可确定检测结果为第二目标未处于电动扶梯上。本领域技术人员可根据实际情况设置第三阈值,例如0.6,本公开实施例对第三阈值的取值不作限制。In a possible implementation manner, if the area ratio is greater than or equal to a preset third threshold, it may be determined that the detection result is that the second target is on the escalator; otherwise, if the area ratio is less than the preset third threshold , it can be determined that the detection result is that the second target is not on the escalator. Those skilled in the art can set the third threshold according to the actual situation, for example, 0.6, and the embodiment of the present disclosure does not limit the value of the third threshold.
通过这种方式,可以实现第二目标所处区域的判断。In this way, the judgment of the area where the second target is located can be realized.
在一种可能的实现方式中,第二检测网络也可直接对电梯区域的第一区域图像进行第二目标检测,确定第一区域图像中是否存在第二目标。如果第一区域图像中存在第二目标,则可确定第二目标处于电动扶梯上。本公开实施例对采用的处理方式不作限制。In a possible implementation manner, the second detection network may also directly perform second target detection on the first area image of the elevator area to determine whether there is a second target in the first area image. If the second object exists in the first area image, it may be determined that the second object is on the escalator. The embodiments of the present disclosure do not limit the adopted processing manner.
在一种可能的实现方式中,所述第二目标包括禁止进入电动扶梯的物品,根据本公开实施例的图像检测方法,还可包括:在所述第二目标处于所述电动扶梯上的情况下,发送告警信息。In a possible implementation manner, the second target includes items prohibited from entering the escalator, and the image detection method according to an embodiment of the present disclosure may further include: when the second target is on the escalator Next, send alarm information.
也就是说,针对禁止进入电动扶梯的物品,如果前述步骤中确定该第二目标处于电动扶梯上,则可发送告警信息,以进行提醒或直接控制电动扶梯停止运行。That is, for items prohibited from entering the escalator, if it is determined in the foregoing steps that the second target is on the escalator, alarm information can be sent to remind or directly control the escalator to stop running.
例如,可将告警信息发送给监控室的电梯监控设备和/或工作人员,以使工作人员控制电动扶梯停止运行和/或前往电梯处理;也可将告警信息发送给电梯控制设备,以使电梯控制设备控制电动扶梯停止运行。本公开实施例对告警信息的类型及发送方式不作限制。For example, the alarm information can be sent to the elevator monitoring equipment and/or staff in the monitoring room, so that the staff can control the escalator to stop running and/or go to the elevator for processing; the alarm information can also be sent to the elevator control equipment to make the elevator The control device controls the escalator to stop running. The embodiments of the present disclosure do not limit the type and sending manner of the alarm information.
在一种可能的实现方式中,可以响应于第二目标首次出现在电梯上时报警,后续连续出现的第二目标,则在指定间隔时间内重复报警,避免告警信息发送得过于频繁。In a possible implementation manner, an alarm may be issued in response to the second object appearing on the elevator for the first time, and the second object that appears in succession will repeat the alarm within a specified interval to avoid sending alarm information too frequently.
通过这种方式,可以在禁止进入电动扶梯的物品进入电梯时,及时告警,从而降低发生安全事故的风险。In this way, when items prohibited from entering the escalator can enter the elevator, an alarm can be issued in time, thereby reducing the risk of a safety accident.
图5示出根据本公开实施例的图像检测方法的处理过程的示意图。如图5所示,在处理过程中,可在图像输入的步骤51,输入电动扶梯的图像;对图像分别进行电梯定位的步骤52和关键目标检测的步骤53,以提升事件的处理效率;通过电梯定位的步骤52确定图像中的电梯区域54;再通过空电梯判别的步骤55,确定电梯为空/非空57,进而执行相应的处理。FIG. 5 shows a schematic diagram of a processing procedure of an image detection method according to an embodiment of the present disclosure. As shown in Figure 5, in the processing process, the image of the escalator can be input in step 51 of image input; step 52 of elevator positioning and step 53 of key target detection are respectively performed on the image to improve the processing efficiency of the event; Step 52 of elevator positioning determines the elevator area 54 in the image; then, through step 55 of judging empty elevators, it is determined that the elevator is empty/non-empty 57, and then corresponding processing is performed.
在示例中,通过关键目标检测的步骤53确定图像中关键目标位置56,关键目标即为禁止进入电梯的物品(违规物品);根据电梯区域54和关键目标位置56,确定关键目标是否在电梯上;如果关键目标在电梯上,则进行违规物品报警58。这样,可实现根据本公开实施例的图像检测方法的整个处理过程。In the example, the key target position 56 in the image is determined through the key target detection step 53, and the key target is the item that is prohibited from entering the elevator (violation item); according to the elevator area 54 and the key target position 56, it is determined whether the key target is on the elevator ; If the key target is on the elevator, alarm 58 of illegal items. In this way, the entire processing process of the image detection method according to the embodiment of the present disclosure can be realized.
在电梯定位的步骤52中,输入如图2a所示的电动扶梯即电梯的第一图像,基于深度学习算法,构建目标检测或者区域分割模型,输出如图2b所示的电梯的检测框21,或者输出如图2b所示的区域22的分割结果。In step 52 of elevator positioning, input the first image of the escalator as shown in Figure 2a, that is, the elevator, build a target detection or area segmentation model based on the deep learning algorithm, and output the elevator detection frame 21 as shown in Figure 2b, Or output the segmentation result of the region 22 as shown in Fig. 2b.
其中,目标检测方法需要保证检测框在包含电梯区域的同时尽可能减少背景面积,防止背景噪声对后续电梯业务的干扰。因而将如图2b中电梯的边界框定义为检测框21。同时注意电梯朝向的位置,图2b是向左侧偏移,以电梯区域的左下角为基准(边界框的左下坐标由此确定),而右侧边界是以电梯区域的右上角作为基准。如果使用分割模型构建更加精准的电梯区域定位模块,则电梯区域定义为在检测框21内的电梯区域,以电梯扶手为边界绘制多边形,如图2b中的区域22。Among them, the target detection method needs to ensure that the detection frame includes the elevator area while reducing the background area as much as possible, so as to prevent background noise from interfering with subsequent elevator services. Therefore, the bounding box of the elevator as shown in Fig. 2b is defined as the detection box 21. At the same time, pay attention to the position of the elevator. Figure 2b is offset to the left, with the lower left corner of the elevator area as the benchmark (the lower left coordinate of the bounding box is determined from this), and the right boundary is based on the upper right corner of the elevator area as the benchmark. If the segmentation model is used to build a more accurate elevator area positioning module, the elevator area is defined as the elevator area within the detection frame 21, and a polygon is drawn with the elevator handrail as the boundary, such as area 22 in Figure 2b.
在空电梯判别的步骤55中,基于深度学习构建多路并行的电梯状态分类模型,接收电梯定位模块的处理结果(以检测结果为例),通过多种技术方案同时进行数据处理,最终做结果融合,确定电梯的空闲状态:空电梯或者非空电梯,如图3所示,左侧电梯31为空闲状态,右侧电梯32为非空闲状态。该过程可以通过以下几种方式实现:In step 55 of judging empty elevators, build a multi-channel parallel elevator state classification model based on deep learning, receive the processing results of the elevator positioning module (taking the detection results as an example), perform data processing simultaneously through various technical solutions, and finally make the results Fusion, determine the idle state of the elevator: an empty elevator or a non-empty elevator, as shown in FIG. 3 , the left elevator 31 is in an idle state, and the right elevator 32 is in a non-idle state. This process can be accomplished in several ways:
方式一,提取检测框区域,通过分类网络模型,输出电梯状态;The first method is to extract the detection frame area, and output the elevator status through the classification network model;
方式二,提取检测框区域,参考分割区域,将检测框内的背景区域的像素值设置为0(黑色),通过分类网络模型,输出电梯状态;Method 2: Extract the detection frame area, refer to the segmentation area, set the pixel value of the background area in the detection frame to 0 (black), and output the elevator status through the classification network model;
方式三,基于模板匹配的方法,通过将输入与数据库中的空电梯模板进行匹配,输出匹配区域占比,如果匹配比例超过T(相当于第二阈值,T>=0.8)则确认输入电梯为空闲电梯,否则为非空闲电梯。其中通过1至2天的长时间数据采集后,使用分割模型获得所有电梯区域中所有像素的标签,最后通过高斯混合模型得到空梯的模板(相当于参考图像),而匹配区域占比通过同像素数目/总像素数目的比值来获得;Mode 3, based on the template matching method, by matching the input with the empty elevator template in the database, and outputting the proportion of the matching area, if the matching proportion exceeds T (equivalent to the second threshold, T>=0.8), then confirm that the input elevator is Idle elevator, otherwise non-idle elevator. Among them, after 1 to 2 days of long-term data collection, the segmentation model is used to obtain the labels of all pixels in all elevator areas, and finally the template of the empty elevator (equivalent to the reference image) is obtained through the Gaussian mixture model, and the proportion of the matching area is obtained through the same The ratio of the number of pixels/total number of pixels is obtained;
方式四,基于行人和关键目标检测模型,以电梯区域作为输入,如果电梯区域内不存在感兴趣目标,则输出为空闲电梯,否则为非空电梯。Method 4: Based on the pedestrian and key target detection model, the elevator area is used as the input. If there is no target of interest in the elevator area, the output is an idle elevator, otherwise it is a non-empty elevator.
最终结果按照投票机制确定,其中方式一至方式四的权重分别为w 1、w 2、w 3及w 4,其中w 1+w 2+w 3+w 4=1。基于上述投票机制,可以极大降低电梯类别判断的错误率。如果空闲状态获得更高的权重,则触发信息通告机制。 The final result is determined according to the voting mechanism, wherein the weights of the first to fourth methods are w 1 , w 2 , w 3 and w 4 , where w 1 +w 2 +w 3 +w 4 =1. Based on the above voting mechanism, the error rate of elevator category judgment can be greatly reduced. If the idle state gets a higher weight, the information notification mechanism is triggered.
在关键目标位置的步骤S56中,支持婴儿车、轮椅、行李箱等关键目标的检测,并且支持多种事件报警。模型的输出结果如4a所示的一种婴儿车41的检测目标(相当于第二目标),以及如4b所示的一种行李箱42的检测目标(相当于第二目标)。最后结合电梯定位的步骤52的处理结果,判断检测目标是否存在于电梯区域,从而给予报警。检测结果是否存在于电梯区域的计算方法为:交并比=检测目标和电梯区域的交集面 积/检测目标的面积,如果交并比大于T(0<T<1,一般取0.5至1)则触发报警机制。通过目标跟踪实现单目标仅在出现时报警,后续连续出现的同一目标,则在指定间隔时间内重复报警。In step S56 of the key target location, detection of key targets such as baby carriages, wheelchairs, and luggage is supported, and various event alarms are supported. The output results of the model are a detection target of a stroller 41 (equivalent to the second target) as shown in 4a, and a detection target of a suitcase 42 shown in 4b (equivalent to the second target). Finally, according to the processing result of step 52 of elevator positioning, it is judged whether the detection target exists in the elevator area, so as to give an alarm. The calculation method of whether the detection result exists in the elevator area is: intersection ratio=intersection area of detection target and elevator area/area of detection target, if the intersection ratio is greater than T (0<T<1, generally take 0.5 to 1), then Trigger the alarm mechanism. Through target tracking, a single target will only alarm when it appears, and the same target that appears in succession will be repeatedly alarmed within a specified interval.
根据本公开实施例的图像检测方法,能够基于电梯区域定位,构建智慧电梯解决方案的入口;在电梯区域内,利用多路并行的空梯判别方法和结果投票机制,判断电梯是否为空电梯,提升空梯预测的准确度;通过空梯报警,引导管理部门降低电梯运行速度甚至停止运行,在降低能耗的同时保障出行的安全与便利;基于目标检测算法,定位电梯区域内的关键目标,针对违规物件给予报警,提高管理部门的监管力度。According to the image detection method of the embodiment of the present disclosure, the entrance of the smart elevator solution can be constructed based on the positioning of the elevator area; in the elevator area, the multi-channel parallel empty elevator discrimination method and the result voting mechanism are used to determine whether the elevator is an empty elevator, Improve the accuracy of empty elevator prediction; through the empty elevator alarm, guide the management department to reduce the elevator running speed or even stop running, reduce energy consumption while ensuring the safety and convenience of travel; based on the target detection algorithm, locate the key targets in the elevator area, Give an alarm to the illegal objects, and improve the supervision of the management department.
根据本公开实施例的图像检测方法,能够基于深度学习的目标检测/分割模型的方式,进行电梯区域定位,支持多目标检测同时定位多部电梯区域。并且,该方法提出的两种区域定义方法可以在保证完全覆盖电梯区域的同时,减少背景噪声的干扰。在相关技术的智慧电梯解决方案中,完全没有涉及电梯定位的方案。According to the image detection method of the embodiment of the present disclosure, elevator area positioning can be performed based on a deep learning target detection/segmentation model, and multi-target detection is supported to locate multiple elevator areas at the same time. Moreover, the two area definition methods proposed by this method can reduce the interference of background noise while ensuring complete coverage of the elevator area. Among the smart elevator solutions in the related art, there is no solution involving elevator positioning at all.
根据本公开实施例的图像检测方法,能够基于多路并行的空梯状态判别方法,结合结果投票机制判断电梯是否为空,能够极大降低输出结果的错误率,同时也支持多区域并行分类。在相关技术的方案中,通常通过单一方法判断电梯的空梯状态,准确率较低。According to the image detection method of the embodiment of the present disclosure, it is possible to judge whether the elevator is empty based on the multi-channel parallel empty elevator state discrimination method combined with the result voting mechanism, which can greatly reduce the error rate of output results, and also supports multi-area parallel classification. In the solution of the related art, the empty state of the elevator is usually judged by a single method, and the accuracy rate is low.
根据本公开实施例的图像检测方法,通过训练深度神经网络检测特定违规物品,识别视野范围内的所有关键目标,解决了相关技术中不能检测婴儿车、轮椅、大件行李箱等违规物品的问题,并且基于电梯区域和关键目标区域,采用特定的IOU计算方法来判断违规物品是否登上电梯,提高了判断的准确率。According to the image detection method of the embodiment of the present disclosure, by training a deep neural network to detect specific illegal items and identify all key targets within the field of view, the problem of inability to detect illegal items such as baby strollers, wheelchairs, and large suitcases in the related art is solved , and based on the elevator area and key target area, a specific IOU calculation method is used to judge whether the illegal items are on the elevator, which improves the accuracy of the judgment.
根据本公开实施例的图像检测方法,提出了一种基于自动定位和关键目标检测的智慧电梯系统,可以形成一套完整、稳定的智能电梯解决方案,可以应用到目前所有的公共电梯场景当中。According to the image detection method of the embodiment of the present disclosure, an intelligent elevator system based on automatic positioning and key target detection is proposed, which can form a complete and stable intelligent elevator solution and can be applied to all current public elevator scenarios.
该方法可应用于智能相机,对电梯场景进行电梯区域定位和空电梯判别,在电梯处于空梯状态时降低能耗以及保证电梯停运前电梯为空,提升管理部门工作效率;对电梯场景进行电梯区域定位和关键目标检测,对电梯上的违规物品进行报警,加强管理部门的监管力度。The method can be applied to smart cameras to locate elevator areas and identify empty elevators in elevator scenes, reduce energy consumption when the elevator is in an empty state, ensure that the elevators are empty before the elevator stops, and improve the work efficiency of the management department; Elevator area positioning and key target detection, alarm the illegal items on the elevator, and strengthen the supervision of the management department.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例。本领域技术人员可以理解,在实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the foregoing method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above method of the embodiments, the specific execution order of each step should be determined by its function and possible internal logic.
此外,本公开实施例还提供了图像检测装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开实施例提供的任一种图像检测方法,相应技术方案和描述和参见方法部分的相应记载。In addition, the embodiments of the present disclosure also provide image detection apparatuses, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any image detection method provided by the embodiments of the present disclosure, and the corresponding technical solutions and descriptions and refer to the methods part of the corresponding records.
图6示出根据本公开实施例的图像检测装置的框图,如图6所示,所述装置包括:FIG. 6 shows a block diagram of an image detection apparatus according to an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus includes:
图像获取模块61,配置为获取电动扶梯的第一图像;an image acquisition module 61, configured to acquire a first image of the escalator;
区域检测模块62,配置为对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;an area detection module 62, configured to perform area detection on the first image, and determine a first area of the escalator in the first image;
状态识别模块63,配置为对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;The state recognition module 63 is configured to perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is empty state or in a non-empty state;
状态确定模块64,配置为根据所述至少一个状态识别结果,确定所述电动扶梯的状态。The state determination module 64 is configured to determine the state of the escalator according to the at least one state identification result.
在一种可能的实现方式中,所述状态确定模块包括:判别值确定子模块,配置为在所述状态识别结果为多个的情况下,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值;状态确定子模块,配置为在所述状态判别值大 于或等于第一阈值的情况下,确定所述电动扶梯处于空梯状态。In a possible implementation manner, the state determination module includes: a discriminant value determination sub-module, configured to identify multiple states according to the multiple state identification results and the multiple state identification results when there are multiple state identification results The weight of the result determines the state discriminating value of the escalator; the state determination submodule is configured to determine that the escalator is in an empty state when the state discriminating value is greater than or equal to a first threshold.
在一种可能的实现方式中,所述状态识别结果包括第一状态识别结果,所述状态识别模块包括:第一结果确定子模块,配置为对所述第一区域图像进行分类处理,得到所述电动扶梯的第一状态识别结果。In a possible implementation manner, the state identification result includes a first state identification result, and the state identification module includes: a first result determination sub-module, configured to perform classification processing on the first area image, and obtain the The first state recognition result of the escalator is described.
在一种可能的实现方式中,所述状态识别结果包括第二状态识别结果,所述状态识别模块包括:分割子模块,配置为对所述第一区域图像进行分割,将所述第一区域图像分割为背景区域及所述电动扶梯所在的前景区域;像素调整子模块,配置为对所述背景区域的像素值进行调整,得到调整后的第二区域图像;第二结果确定子模块,配置为对所述第二区域图像进行分类处理,得到所述电动扶梯的第二状态识别结果。In a possible implementation manner, the state identification result includes a second state identification result, and the state identification module includes: a segmentation sub-module configured to segment the first region image, and divide the first region image into The image is divided into a background area and a foreground area where the escalator is located; the pixel adjustment sub-module is configured to adjust the pixel values of the background area to obtain an adjusted second area image; the second result determination sub-module is configured to In order to classify the image of the second area, a second state recognition result of the escalator is obtained.
在一种可能的实现方式中,所述状态识别结果包括第三状态识别结果,所述状态识别模块包括:像素匹配子模块,配置为对所述第一区域图像与预设的参考图像进行像素匹配,确定所述第一区域图像与所述参考图像之间的匹配区域占比,所述参考图像包括与处于空梯状态的电动扶梯对应的区域图像;第三结果确定子模块,配置为在所述匹配区域占比大于或等于第二阈值的情况下,确定所述第三状态识别结果为所述电动扶梯处于空梯状态。In a possible implementation manner, the state identification result includes a third state identification result, and the state identification module includes: a pixel matching sub-module configured to perform pixel matching between the first region image and a preset reference image. matching, to determine the proportion of the matching area between the first area image and the reference image, where the reference image includes the area image corresponding to the escalator in the empty elevator state; the third result determination sub-module is configured to When the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state.
在一种可能的实现方式中,所述状态识别结果包括第四状态识别结果,所述状态识别模块包括:检测子模块,配置为对所述第一区域图像进行第一目标检测,确定所述第一区域图像中是否存在第一目标;第四结果确定子模块,配置为在所述第一区域图像中不存在第一目标的情况下,确定所述第四状态识别结果为所述电动扶梯处于空梯状态。In a possible implementation manner, the state identification result includes a fourth state identification result, and the state identification module includes: a detection sub-module configured to perform a first target detection on the first area image, and determine the Whether the first target exists in the first area image; the fourth result determination submodule is configured to determine that the fourth state recognition result is the escalator when the first target does not exist in the first area image in an empty state.
在一种可能的实现方式中,所述装置还包括:停运信号发送模块,配置为在所述电动扶梯处于空梯状态的情况下,发送电梯停运信号,所述电梯停运信号配置为指示所述电动扶梯停止运行。In a possible implementation manner, the device further includes: a shutdown signal sending module configured to send an elevator shutdown signal when the escalator is in an empty state, and the elevator shutdown signal is configured as The escalator is instructed to stop running.
在一种可能的实现方式中,所述装置还包括:启动信号发送模块,配置为在所述电动扶梯处于非空梯状态,且所述电动扶梯已停止运行的情况下,发送电梯启动信号,所述电梯启动信号配置为指示所述电动扶梯运行。In a possible implementation manner, the device further includes: a start signal sending module configured to send an elevator start signal when the escalator is in a non-empty state and the escalator has stopped running, The elevator activation signal is configured to instruct the escalator to operate.
在一种可能的实现方式中,所述装置还包括:目标检测模块,配置为对所述第一图像进行第二目标检测,确定第二目标在所述第一图像中的第三区域;检测结果确定模块,配置为根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,所述检测结果包括所述第二目标处于所述电动扶梯上或未处于所述电动扶梯上。In a possible implementation manner, the apparatus further includes: a target detection module, configured to perform second target detection on the first image, and determine a third area of the second target in the first image; detecting A result determination module, configured to determine a detection result of the second target according to the positional relationship between the first area and the third area, where the detection result includes that the second target is on the escalator or not on the escalator.
在一种可能的实现方式中,所述检测结果确定模块包括:确定子模块,配置为在第四区域与所述第三区域之间的面积比值大于或等于第三阈值的情况下,确定所述检测结果为所述第二目标处于所述电动扶梯上,所述第四区域包括所述第一区域与所述第三区域之间的交集区域。In a possible implementation manner, the detection result determination module includes: a determination sub-module configured to determine, when the area ratio between the fourth region and the third region is greater than or equal to a third threshold, The detection result is that the second target is on the escalator, and the fourth area includes an intersection area between the first area and the third area.
在一种可能的实现方式中,所述第二目标包括禁止进入电动扶梯的物品,所述装置还包括:告警信息发送模块,配置为在所述第二目标处于所述电动扶梯上的情况下,发送告警信息。In a possible implementation manner, the second target includes items that are prohibited from entering the escalator, and the apparatus further includes: an alarm information sending module configured to, when the second target is on the escalator, , send alarm information.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以配置为执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述。In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be configured to execute the methods described in the above method embodiments, and the specific implementation may refer to the descriptions in the above method embodiments.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是非易失性计算机可读存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
本公开实施例还提出一种电子设备,包括:处理器;配置为存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,当计算机可读 代码在设备上运行时,设备中的处理器执行配置为实现如上任一实施例提供的图像检测方法的指令。Embodiments of the present disclosure also provide a computer program product, including computer-readable code, when the computer-readable code is run on a device, a processor in the device executes a method configured to implement the image detection method provided by any of the above embodiments. instruction.
本公开实施例还提供了另一种计算机程序产品,配置为存储计算机可读指令,指令被执行时使得计算机执行上述任一实施例提供的图像检测方法的操作。Embodiments of the present disclosure further provide another computer program product configured to store computer-readable instructions, which, when executed, cause the computer to perform the operations of the image detection method provided by any of the foregoing embodiments.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device may be provided as a terminal, server or other form of device.
图7示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等终端。FIG. 7 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
参照图7,电子设备800可以包括以下一个或多个组件:处理组件802、存储器804、电源组件806、多媒体组件808、音频组件810、输入/输出(Input/Output,I/O)的接口812,传感器组件814以及通信组件816。7, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812 , sensor component 814 and communication component 816 .
处理组件802通常控制电子设备800的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括配置为在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM,Static Random-Access Memory),电可擦除可编程只读存储器(EEPROM,Static Random-Access Memory),可擦除可编程只读存储器(EPROM,Electrically Erasable Programmable Read-Only Memory),可编程只读存储器(PROM,Programmable Read-Only Memory),只读存储器(ROM,Read Only Memory),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method configured to operate on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM) , Static Random-Access Memory), Erasable Programmable Read-Only Memory (EPROM, Electrically Erasable Programmable Read-Only Memory), Programmable Read-Only Memory (PROM, Programmable Read-Only Memory), Read-Only Memory (ROM, Read Only Memory), magnetic memory, flash memory, magnetic disk or optical disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply assembly 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD,Liquid Crystal Display)和触摸面板(TP,Touch Panel)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD, Liquid Crystal Display) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC,Microphone),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,配置为输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC, Microphone) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a calling mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, audio component 810 also includes a speaker configured to output audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,配置为为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态、组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS,Complementary Metal-Oxide-Semiconductor)或电荷耦合装置(CCD,Charge Coupled Device)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors configured to provide status assessment of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the electronic device 800 or one of the electronic devices 800. Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include a light sensor, such as a Complementary Metal-Oxide-Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(Wi-Fi,Wireless Fidelity),第二代移动通信技术(2G,The 2nd Generation)或第三代移动通信技术(3G,The 3nd Generation),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC,Near Field Communication)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID,Radio Frequency Identification)技术,红外数据协会(IrDA,Infrared Data Association)技术,超宽带(UWB,Ultra Wide Band)技术,蓝牙(BT,Blue Tooth)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (Wi-Fi, Wireless Fidelity), a second-generation mobile communication technology (2G, The 2nd Generation) or a third-generation mobile communication technology (3G, The 3nd Generation) Generation), or their combination. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC, Near Field Communication) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (RFID, Radio Frequency Identification) technology, Infrared Data Association (IrDA, Infrared Data Association) technology, Ultra Wide Band (UWB, Ultra Wide Band) technology, Bluetooth (BT, Blue Tooth) technology and other technologies to achieve.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理器(DSP,Digital Signal Processor)、数字信号处理设备(DSPD,Digital Signal Processing Device)、可编程逻辑器件(PLD,Programmable Logic Device)、现场可编程门阵列(FPGA,Field Programmable Gate Array)、控制器、微控制器、微处理器或其他电子元件实现,配置为执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD) Processing Device), Programmable Logic Device (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA, Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation, configured to perform the above method.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium, such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
图8示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图8,电子设备1900包括处理组件1922,可以包括一个或多个处理器,以及由存储器1932所代表的存储器资源,配置为存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 8 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 8, electronic device 1900 includes processing component 1922, which may include one or more processors, and a memory resource represented by memory 1932 configured to store instructions executable by processing component 1922, such as an application program. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Additionally, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似系统。The electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows Server™), a graphical user interface based operating system (Mac OS X™) introduced by Apple, a multi-user multi-process computer operating system (Unix™). ), a free and open source Unix-like operating system (LinuxTM), an open source Unix-like operating system (FreeBSDTM) or similar systems.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium, such as memory 1932 comprising computer program instructions executable by the processing component 1922 of the electronic device 1900 to accomplish the above-described method is also provided.
本公开实施例可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计 算机可读存储介质,其上载有用于使处理器实现本公开实施例的各个方面的计算机可读程序指令。Embodiments of the present disclosure may be systems, methods and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the embodiments of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质可以包括:便携式计算机盘、硬盘、随机存取存储器(RAM,Random Access Memory)、只读存储器、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器、便携式压缩盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD,Digital Video Disc)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. Computer-readable storage media may include: portable computer disks, hard disks, random access memory (RAM, Random Access Memory), read-only memory, erasable programmable read-only memory (EPROM or flash memory), static random access memory, Portable Compact Disc Read-Only Memory (CD-ROM, Compact Disc Read-Only Memory), Digital Versatile Disc (DVD, Digital Video Disc), memory stick, floppy disk, mechanical coding device, such as a punch card on which instructions are stored Or the protruding structure in the groove, and any suitable combination of the above. Computer-readable storage media, as used herein, are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA,Industry Standard Architecture)指令、机器指令、机器相关指令、伪代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言诸如Smalltalk、C++等,以及常规的过程式编程语言如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN,Local Area Network)或广域网(WAN,Wide Area Network)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列或可编程逻辑阵列,该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions for carrying out the operations of the present disclosure may be assembly instructions, Industry Standard Architecture (ISA) instructions, machine instructions, machine-dependent instructions, pseudocode, firmware instructions, state setting data, or in one or more Source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or Wide Area Network (WAN), or it may be connected to an external computer (eg, using Internet service provider to connect via the Internet). In some embodiments, electronic circuits, such as programmable logic circuits, field programmable gate arrays, or programmable logic arrays, that can execute computer readable program instructions are personalized by utilizing state information of computer readable program instructions , thereby implementing various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上 执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
该计算机程序产品可以通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品体现为计算机存储介质,在另一个可选实施例中,计算机程序产品体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be implemented in hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present disclosure have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
工业实用性Industrial Applicability
本公开实施例中,通过获取电动扶梯的第一图像;对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;根据所述至少一个状态识别结果,确定所述电动扶梯的状态;如此,可提高电动扶梯运行状态的识别准确率,可以形成一套完整、稳定的智能电梯解决方案,可以应用到目前所有的公共电梯场景当中。In the embodiment of the present disclosure, by acquiring the first image of the escalator; performing area detection on the first image, the first area of the escalator in the first image is determined; The first area image of the escalator is used for elevator status recognition, and at least one status recognition result of the escalator is determined, and the status recognition result includes that the escalator is in an empty elevator state or in a non-empty elevator state; As a result, the state of the escalator is determined; in this way, the recognition accuracy of the running state of the escalator can be improved, and a complete and stable intelligent elevator solution can be formed, which can be applied to all current public elevator scenarios.

Claims (25)

  1. 一种拍摄处理方法,包括:A shooting processing method, comprising:
    获取电动扶梯的第一图像;Get the first image of the escalator;
    对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;Perform area detection on the first image to determine the first area of the escalator in the first image;
    对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;Perform elevator state recognition on the first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty elevator state or in a non-empty elevator state ;
    根据所述至少一个状态识别结果,确定所述电动扶梯的状态。According to the at least one state identification result, the state of the escalator is determined.
  2. 根据权利要求1所述的方法,其中,所述根据所述至少一个状态识别结果,确定所述电动扶梯的状态,包括:The method according to claim 1, wherein the determining the state of the escalator according to the at least one state identification result comprises:
    在所述状态识别结果为多个的情况下,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值;In the case of multiple state identification results, determining the state identification value of the escalator according to the multiple state identification results and the weights of the multiple state identification results;
    在所述状态判别值大于或等于第一阈值的情况下,确定所述电动扶梯处于空梯状态。When the state discrimination value is greater than or equal to a first threshold value, it is determined that the escalator is in an empty state.
  3. 根据权利要求1或2所述的方法,其中,所述状态识别结果包括第一状态识别结果,The method according to claim 1 or 2, wherein the state identification result comprises a first state identification result,
    所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:The performing elevator state identification on the first area image corresponding to the first area to determine at least one state identification result of the escalator includes:
    对所述第一区域图像进行分类处理,得到所述电动扶梯的第一状态识别结果。The first area image is classified and processed to obtain a first state recognition result of the escalator.
  4. 根据权利要求1至3任一项所述的方法,其中,所述状态识别结果包括第二状态识别结果,The method according to any one of claims 1 to 3, wherein the state identification result comprises a second state identification result,
    所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:The performing elevator state identification on the first area image corresponding to the first area to determine at least one state identification result of the escalator includes:
    对所述第一区域图像进行分割,将所述第一区域图像分割为背景区域及所述电动扶梯所在的前景区域;Segmenting the first area image, and dividing the first area image into a background area and a foreground area where the escalator is located;
    对所述背景区域的像素值进行调整,得到调整后的第二区域图像;Adjust the pixel value of the background area to obtain the adjusted second area image;
    对所述第二区域图像进行分类处理,得到所述电动扶梯的第二状态识别结果。The second area image is classified and processed to obtain the second state recognition result of the escalator.
  5. 根据权利要求1至4任一项所述的方法,其中,所述状态识别结果包括第三状态识别结果,The method according to any one of claims 1 to 4, wherein the state identification result comprises a third state identification result,
    所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:The performing elevator state identification on the first area image corresponding to the first area to determine at least one state identification result of the escalator includes:
    对所述第一区域图像与预设的参考图像进行像素匹配,确定所述第一区域图像与所述参考图像之间的匹配区域占比,所述参考图像包括与处于空梯状态的电动扶梯对应的区域图像;Pixel matching is performed on the first area image and a preset reference image, and the matching area ratio between the first area image and the reference image is determined, and the reference image includes an escalator in an empty state. the corresponding area image;
    在所述匹配区域占比大于或等于第二阈值的情况下,确定所述第三状态识别结果为所述电动扶梯处于空梯状态。When the proportion of the matching area is greater than or equal to the second threshold, it is determined that the third state recognition result is that the escalator is in an empty state.
  6. 根据权利要求1至5任一项所述的方法,其中,所述状态识别结果包括第四状态识别结果,The method according to any one of claims 1 to 5, wherein the state identification result comprises a fourth state identification result,
    所述对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,包括:The performing elevator state identification on the first area image corresponding to the first area to determine at least one state identification result of the escalator includes:
    对所述第一区域图像进行第一目标检测,确定所述第一区域图像中是否存在第一目标;performing a first target detection on the first area image to determine whether there is a first target in the first area image;
    在所述第一区域图像中不存在第一目标的情况下,确定所述第四状态识别结果为所 述电动扶梯处于空梯状态。In the case that the first target does not exist in the first area image, it is determined that the fourth state recognition result is that the escalator is in an empty state.
  7. 根据权利要求1至6任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在所述电动扶梯处于空梯状态的情况下,发送电梯停运信号,所述电梯停运信号用于指示所述电动扶梯停止运行。When the escalator is in an empty state, an elevator stop signal is sent, and the elevator stop signal is used to instruct the escalator to stop running.
  8. 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    在所述电动扶梯处于非空梯状态,且所述电动扶梯已停止运行的情况下,发送电梯启动信号,所述电梯启动信号用于指示所述电动扶梯运行。When the escalator is in a non-empty state and the escalator has stopped running, an elevator start signal is sent, and the elevator start signal is used to instruct the escalator to run.
  9. 根据权利要求1至8任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    对所述第一图像进行第二目标检测,确定第二目标在所述第一图像中的第三区域;performing second target detection on the first image, and determining a third area of the second target in the first image;
    根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,所述检测结果包括所述第二目标处于所述电动扶梯上或未处于所述电动扶梯上。According to the positional relationship between the first area and the third area, a detection result of the second target is determined, and the detection result includes that the second target is on the escalator or not on the electric escalator on the escalator.
  10. 根据权利要求9所述的方法,其中,所述根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,包括:The method according to claim 9, wherein the determining the detection result of the second target according to the positional relationship between the first area and the third area comprises:
    在第四区域与所述第三区域之间的面积比值大于或等于第三阈值的情况下,确定所述检测结果为所述第二目标处于所述电动扶梯上,所述第四区域包括所述第一区域与所述第三区域之间的交集区域。In the case that the area ratio between the fourth area and the third area is greater than or equal to a third threshold, it is determined that the detection result is that the second target is on the escalator, and the fourth area includes all The intersection area between the first area and the third area.
  11. 根据权利要求9或10所述的方法,其中,所述第二目标包括禁止进入电动扶梯的物品,所述方法还包括:The method of claim 9 or 10, wherein the second target includes items prohibited from entering the escalator, the method further comprising:
    在所述第二目标处于所述电动扶梯上的情况下,发送告警信息。When the second target is on the escalator, alarm information is sent.
  12. 一种图像检测装置,包括:An image detection device, comprising:
    图像获取模块,配置为获取电动扶梯的第一图像;an image acquisition module, configured to acquire a first image of the escalator;
    区域检测模块,配置为对所述第一图像进行区域检测,确定所述电动扶梯在所述第一图像中的第一区域;an area detection module, configured to perform area detection on the first image, and determine a first area of the escalator in the first image;
    状态识别模块,配置为对与所述第一区域对应的第一区域图像进行电梯状态识别,确定所述电动扶梯的至少一个状态识别结果,所述状态识别结果包括所述电动扶梯处于空梯状态或处于非空梯状态;A state recognition module configured to perform elevator state recognition on a first area image corresponding to the first area, and determine at least one state recognition result of the escalator, where the state recognition result includes that the escalator is in an empty state or in a non-empty state;
    状态确定模块,配置为根据所述至少一个状态识别结果,确定所述电动扶梯的状态。The state determination module is configured to determine the state of the escalator according to the at least one state identification result.
  13. 根据权利要求12所述的装置,其中,所述状态确定模块包括:The apparatus of claim 12, wherein the state determination module comprises:
    判别值确定子模块,配置为在所述状态识别结果为多个的情况下,根据多个状态识别结果及所述多个状态识别结果的权重,确定所述电动扶梯的状态判别值;a discriminant value determination submodule, configured to determine the state discriminant value of the escalator according to the multiple state identification results and the weights of the multiple state identification results when the state identification results are multiple;
    状态确定子模块,配置为在所述状态判别值大于或等于第一阈值的情况下,确定所述电动扶梯处于空梯状态。The state determination submodule is configured to determine that the escalator is in an empty state when the state discrimination value is greater than or equal to a first threshold.
  14. 根据权利要求12或13所述的装置,其中,所述状态识别结果包括第一状态识别结果,所述状态识别模块包括:The apparatus according to claim 12 or 13, wherein the state identification result includes a first state identification result, and the state identification module includes:
    第一结果确定子模块,配置为对所述第一区域图像进行分类处理,得到所述电动扶梯的第一状态识别结果。The first result determination sub-module is configured to perform classification processing on the first area image to obtain a first state recognition result of the escalator.
  15. 根据权利要求12至14任一项所述的装置,其中,所述状态识别结果包括第二状态识别结果,所述状态识别模块包括:The device according to any one of claims 12 to 14, wherein the state identification result includes a second state identification result, and the state identification module includes:
    分割子模块,配置为对所述第一区域图像进行分割,将所述第一区域图像分割为背景区域及所述电动扶梯所在的前景区域;a segmentation submodule, configured to segment the first area image, and divide the first area image into a background area and a foreground area where the escalator is located;
    像素调整子模块,配置为对所述背景区域的像素值进行调整,得到调整后的第二区域图像;a pixel adjustment sub-module, configured to adjust the pixel value of the background area to obtain an adjusted second area image;
    第二结果确定子模块,配置为对所述第二区域图像进行分类处理,得到所述电动扶梯的第二状态识别结果。The second result determination sub-module is configured to perform classification processing on the second area image to obtain a second state recognition result of the escalator.
  16. 根据权利要求12至15任一项所述的装置,其中,所述状态识别结果包括第三状态识别结果,所述状态识别模块包括:The device according to any one of claims 12 to 15, wherein the state identification result includes a third state identification result, and the state identification module includes:
    像素匹配子模块,配置为对所述第一区域图像与预设的参考图像进行像素匹配,确定所述第一区域图像与所述参考图像之间的匹配区域占比,所述参考图像包括与处于空梯状态的电动扶梯对应的区域图像;A pixel matching sub-module, configured to perform pixel matching on the first area image and a preset reference image, and determine the matching area ratio between the first area image and the reference image, the reference image including and The image of the area corresponding to the escalator in the empty state;
    第三结果确定子模块,配置为在所述匹配区域占比大于或等于第二阈值的情况下,确定所述第三状态识别结果为所述电动扶梯处于空梯状态。The third result determination sub-module is configured to determine that the third state identification result is that the escalator is in an empty state when the proportion of the matching area is greater than or equal to the second threshold.
  17. 根据权利要求12至16任一项所述的装置,其中,所述状态识别结果包括第四状态识别结果,所述状态识别模块包括:The device according to any one of claims 12 to 16, wherein the state identification result includes a fourth state identification result, and the state identification module includes:
    检测子模块,配置为对所述第一区域图像进行第一目标检测,确定所述第一区域图像中是否存在第一目标;a detection submodule, configured to perform a first target detection on the first area image to determine whether there is a first target in the first area image;
    第四结果确定子模块,配置为在所述第一区域图像中不存在第一目标的情况下,确定所述第四状态识别结果为所述电动扶梯处于空梯状态。The fourth result determination sub-module is configured to determine that the fourth state recognition result is that the escalator is in an empty state when the first target does not exist in the first area image.
  18. 根据权利要求12至17任一项所述的装置,其中,所述装置还包括:The apparatus of any one of claims 12 to 17, wherein the apparatus further comprises:
    停运信号发送模块,配置为在所述电动扶梯处于空梯状态的情况下,发送电梯停运信号,所述电梯停运信号配置为指示所述电动扶梯停止运行。A shutdown signal sending module is configured to send an elevator shutdown signal when the escalator is in an empty state, and the elevator shutdown signal is configured to instruct the escalator to stop running.
  19. 根据权利要求12至18任一项所述的装置,其中,所述装置还包括:The apparatus of any one of claims 12 to 18, wherein the apparatus further comprises:
    启动信号发送模块,配置为在所述电动扶梯处于非空梯状态,且所述电动扶梯已停止运行的情况下,发送电梯启动信号,所述电梯启动信号配置为指示所述电动扶梯运行。A start signal sending module is configured to send an elevator start signal when the escalator is in a non-empty state and the escalator has stopped running, and the elevator start signal is configured to instruct the escalator to run.
  20. 根据权利要求12至19任一项所述的装置,其中,所述装置还包括:The apparatus of any one of claims 12 to 19, wherein the apparatus further comprises:
    目标检测模块,配置为对所述第一图像进行第二目标检测,确定第二目标在所述第一图像中的第三区域;a target detection module, configured to perform second target detection on the first image, and determine a third area of the second target in the first image;
    检测结果确定模块,配置为根据所述第一区域与所述第三区域之间的位置关系,确定所述第二目标的检测结果,所述检测结果包括所述第二目标处于所述电动扶梯上或未处于所述电动扶梯上。a detection result determination module, configured to determine a detection result of the second target according to the positional relationship between the first area and the third area, the detection result includes that the second target is in the escalator on or not on the escalator.
  21. 根据权利要求20所述的装置,其中,所述检测结果确定模块包括:The apparatus according to claim 20, wherein the detection result determination module comprises:
    确定子模块,配置为在第四区域与所述第三区域之间的面积比值大于或等于第三阈值的情况下,确定所述检测结果为所述第二目标处于所述电动扶梯上,所述第四区域包括所述第一区域与所述第三区域之间的交集区域。A determination sub-module configured to determine that the detection result is that the second target is on the escalator when the area ratio between the fourth area and the third area is greater than or equal to a third threshold, so The fourth area includes an intersection area between the first area and the third area.
  22. 根据权利要求20或21所述的装置,其中,所述第二目标包括禁止进入电动扶梯的物品,所述装置还包括:The apparatus of claim 20 or 21, wherein the second target includes items prohibited from entering the escalator, the apparatus further comprising:
    告警信息发送模块,配置为在所述第二目标处于所述电动扶梯上的情况下,发送告警信息。The alarm information sending module is configured to send alarm information when the second target is on the escalator.
  23. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    配置为存储处理器可执行指令的存储器;a memory configured to store processor executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至11中任意一项所述的方法。wherein the processor is configured to invoke instructions stored in the memory to perform the method of any one of claims 1-11.
  24. 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至11中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the method of any one of claims 1 to 11 when executed by a processor.
  25. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行配置为实现权利要求1至11中任意一项所述的方法。A computer program comprising computer readable code, when the computer readable code is run in an electronic device, the execution of the processor in the electronic device is configured to implement the method of any one of claims 1 to 11 .
PCT/CN2021/101619 2020-12-25 2021-06-22 Image detection method and apparatus, electronic device, and storage medium WO2022134504A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022532078A JP2023510477A (en) 2020-12-25 2021-06-22 Image detection method and device, electronic device, and storage medium
KR1020227018450A KR20220095218A (en) 2020-12-25 2021-06-22 Image detection method and apparatus, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011559951.4 2020-12-25
CN202011559951.4A CN112560986B (en) 2020-12-25 2020-12-25 Image detection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
WO2022134504A1 WO2022134504A1 (en) 2022-06-30
WO2022134504A9 true WO2022134504A9 (en) 2022-07-21

Family

ID=75034245

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101619 WO2022134504A1 (en) 2020-12-25 2021-06-22 Image detection method and apparatus, electronic device, and storage medium

Country Status (4)

Country Link
JP (1) JP2023510477A (en)
KR (1) KR20220095218A (en)
CN (2) CN112560986B (en)
WO (1) WO2022134504A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560986B (en) * 2020-12-25 2022-01-04 上海商汤智能科技有限公司 Image detection method and device, electronic equipment and storage medium
CN114155483A (en) * 2021-11-11 2022-03-08 鸿富锦精密电子(郑州)有限公司 Monitoring alarm method, device, storage medium and computer equipment
CN114036987B (en) * 2021-11-12 2024-05-31 上海擎朗智能科技有限公司 Staircase detection method and device, mobile equipment and storage medium
CN116363575B (en) * 2023-02-15 2023-11-03 南京诚勤教育科技有限公司 Classroom monitoring management system based on wisdom campus

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699878B (en) * 2013-12-09 2017-05-03 安维思电子科技(广州)有限公司 Method and system for recognizing abnormal operation state of escalator
JP6134641B2 (en) * 2013-12-24 2017-05-24 株式会社日立製作所 Elevator with image recognition function
EP4134626A1 (en) * 2017-06-02 2023-02-15 Apple Inc. Venues map application and system
CN107273852A (en) * 2017-06-16 2017-10-20 华南理工大学 Escalator floor plates object and passenger behavior detection algorithm based on machine vision
CN107416630B (en) * 2017-09-05 2020-04-28 日立楼宇技术(广州)有限公司 Method and system for detecting abnormal closing of elevator
CN109353907B (en) * 2017-09-05 2020-09-15 日立楼宇技术(广州)有限公司 Safety prompting method and system for elevator operation
CN107832730A (en) * 2017-11-23 2018-03-23 高域(北京)智能科技研究院有限公司 Improve the method and face identification system of face recognition accuracy rate
US11029810B2 (en) * 2018-05-07 2021-06-08 Otis Elevator Company Equipment service graphical interface
CN108639921A (en) * 2018-07-05 2018-10-12 江苏瑞奇海力科技有限公司 A kind of staircase passenger safety prior-warning device and method
CN110342357A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 A kind of elevator scheduling method, device, computer equipment and storage medium
CN110427741B (en) * 2019-07-31 2021-07-27 Oppo广东移动通信有限公司 Fingerprint identification method and related product
CN110852253A (en) * 2019-11-08 2020-02-28 杭州宇泛智能科技有限公司 Ladder control scene detection method and device and electronic equipment
CN111339846B (en) * 2020-02-12 2022-08-12 深圳市商汤科技有限公司 Image recognition method and device, electronic equipment and storage medium
CN111325188A (en) * 2020-03-24 2020-06-23 通力电梯有限公司 Method for monitoring escalator and device for monitoring escalator
CN111913857A (en) * 2020-07-08 2020-11-10 浙江大华技术股份有限公司 Method and device for detecting operation behavior of intelligent equipment
CN111924695A (en) * 2020-07-09 2020-11-13 上海市隧道工程轨道交通设计研究院 Intelligent safety protection system for subway escalator and working method of intelligent safety protection system
CN111807204A (en) * 2020-07-27 2020-10-23 苏州雷格特智能设备股份有限公司 Intelligent elevator safety monitoring system
CN112102407A (en) * 2020-09-09 2020-12-18 北京市商汤科技开发有限公司 Display equipment positioning method and device, display equipment and computer storage medium
CN111931701B (en) * 2020-09-11 2021-01-15 平安国际智慧城市科技股份有限公司 Gesture recognition method and device based on artificial intelligence, terminal and storage medium
CN112560986B (en) * 2020-12-25 2022-01-04 上海商汤智能科技有限公司 Image detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114283305A (en) 2022-04-05
CN112560986A (en) 2021-03-26
KR20220095218A (en) 2022-07-06
JP2023510477A (en) 2023-03-14
CN112560986B (en) 2022-01-04
WO2022134504A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
WO2022134504A9 (en) Image detection method and apparatus, electronic device, and storage medium
WO2022183661A1 (en) Event detection method and apparatus, electronic device, storage medium, and program product
TWI766286B (en) Image processing method and image processing device, electronic device and computer-readable storage medium
EP3163498B1 (en) Alarming method and device
US11410001B2 (en) Method and apparatus for object authentication using images, electronic device, and storage medium
TWI728621B (en) Image processing method and device, electronic equipment, computer readable storage medium and computer program
US11321575B2 (en) Method, apparatus and system for liveness detection, electronic device, and storage medium
US20210133468A1 (en) Action Recognition Method, Electronic Device, and Storage Medium
US11288531B2 (en) Image processing method and apparatus, electronic device, and storage medium
US20210166040A1 (en) Method and system for detecting companions, electronic device and storage medium
WO2022183663A1 (en) Event detection method and apparatus, and electronic device, storage medium and program product
US20200250495A1 (en) Anchor determination method and apparatus, electronic device, and storage medium
US20190035104A1 (en) Object detection and tracking
TWI757756B (en) Pedestrian event detection method and detection device, electronic device and computer-readable storage medium
WO2022160569A1 (en) Method and apparatus for detecting security check anomaly event, electronic device, and storage medium
US11222231B2 (en) Target matching method and apparatus, electronic device, and storage medium
WO2022134388A1 (en) Method and device for rider fare evasion detection, electronic device, storage medium, and computer program product
CN107122743B (en) Security monitoring method and device and electronic equipment
WO2023071174A1 (en) Occupancy detection method and apparatus, electronic device, and storage medium
CN111435422B (en) Action recognition method, control method and device, electronic equipment and storage medium
US20210326649A1 (en) Configuration method and apparatus for detector, storage medium
Liu et al. Infrasee: An unobtrusive alertness system for pedestrian mobile phone users
CN112464898A (en) Event detection method and device, electronic equipment and storage medium
CN116778415A (en) Crowd counting network model for unmanned aerial vehicle and counting method
CN113569749A (en) Elevator trapping detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022532078

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227018450

Country of ref document: KR

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21908512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908512

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.12.2023)