CN114677615A - Environment detection method and system - Google Patents

Environment detection method and system Download PDF

Info

Publication number
CN114677615A
CN114677615A CN202210142700.9A CN202210142700A CN114677615A CN 114677615 A CN114677615 A CN 114677615A CN 202210142700 A CN202210142700 A CN 202210142700A CN 114677615 A CN114677615 A CN 114677615A
Authority
CN
China
Prior art keywords
historical
video
environment detection
environment
detection terminal
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
CN202210142700.9A
Other languages
Chinese (zh)
Inventor
陈文瑞
刘彦明
刘伟
李波
李红杰
李思雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210142700.9A priority Critical patent/CN114677615A/en
Publication of CN114677615A publication Critical patent/CN114677615A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides an environment detection method and an environment detection system, and relates to the technical field of environment detection. In the invention, a historical video set obtained by detecting a corresponding environmental area historically by each environmental detection terminal device is respectively obtained, and a plurality of historical video sets corresponding to a plurality of environmental detection terminal devices are obtained; for each historical video set in a plurality of historical video sets, performing video content comparison analysis on historical environment detection videos included in the historical video set to obtain environment change characteristic information historically formed by an environment area corresponding to the historical video set; and determining at least one environment detection terminal device as a target environment detection terminal device in the plurality of environment detection terminal devices based on the environment change characteristic information corresponding to each historical video set. Based on the method, the problem that resources are wasted easily during environment detection in the prior art can be solved.

Description

Environment detection method and system
Technical Field
The invention relates to the technical field of environment detection, in particular to an environment detection method and an environment detection system.
Background
Effective detection of the environment is one of important means for ensuring the safety of the environment, and for example, by detecting the environment, whether a danger exists in the environment can be determined. In the prior art, in order to ensure the reliability of detection, more environment detection terminal devices are generally deployed to detect each environment area respectively, and all the environment detection terminal devices are turned on to perform environment detection each time detection is performed, so that the problem of detection resource waste is easily caused.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an environment detection method and an environment detection system, so as to solve the problem in the prior art that resources are easily wasted during environment detection.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
an environment detection method is applied to an environment detection server, the environment detection server is in communication connection with a plurality of environment detection terminal devices, and the environment detection method comprises the following steps:
respectively acquiring a historical video set obtained by detecting a corresponding environment area in history by each environment detection terminal device in the plurality of environment detection terminal devices to obtain a plurality of historical video sets corresponding to the plurality of environment detection terminal devices, wherein each historical video set comprises a plurality of historical environment detection videos, and each historical environment detection video comprises a plurality of continuous multi-frame historical environment detection video frames in time sequence obtained by detecting the corresponding environment area;
For each historical video set in the plurality of historical video sets, performing video content comparison analysis on historical environment detection videos included in the historical video set to obtain environment change characteristic information historically formed by an environment area corresponding to the historical video set;
and determining at least one environment detection terminal device as a target environment detection terminal device in the plurality of environment detection terminal devices based on the environment change characteristic information corresponding to each historical video set, wherein the target environment detection terminal device is used for detecting a corresponding environment area under the control of the environment detection server to obtain a current environment detection video.
In some preferred embodiments, in the environment detection method, the step of respectively obtaining a historical video set obtained by detecting, by each of the plurality of environment detection terminal devices, a corresponding environment area historically to obtain a plurality of historical video sets corresponding to the plurality of environment detection terminal devices includes:
for each environment detection terminal device in the plurality of environment detection terminal devices, acquiring each historical environment detection video obtained by detecting a corresponding environment area historically by the environment detection terminal device, and counting the number of the historical environment detection videos to obtain the statistical number of the historical videos corresponding to the environment detection terminal device;
Determining a relative size relation between the historical video statistic quantity corresponding to each environment detection terminal device and a preset video statistic quantity threshold value for each environment detection terminal device in the plurality of environment detection terminal devices;
for each environment detection terminal device in the plurality of environment detection terminal devices, if the historical video statistic number corresponding to the environment detection terminal device is smaller than the video statistic number threshold, constructing a historical video set corresponding to the environment detection terminal device based on each historical environment detection video obtained by the environment detection terminal device, if the historical video statistic number corresponding to the environment detection terminal device is larger than or equal to the video statistic number threshold, screening all the historical environment detection videos obtained by the environment detection terminal device, and constructing a corresponding historical video set based on the screened historical environment detection videos.
In some preferred embodiments, in the environment detection method, if the statistical number of the historical videos corresponding to each of the plurality of environment detection terminal devices is smaller than the video statistical number threshold, the method further includes, for each of the plurality of environment detection terminal devices, constructing a historical video set corresponding to the environment detection terminal device based on each of the historical environment detection videos detected by the environment detection terminal device, and if the statistical number of the historical videos corresponding to the environment detection terminal device is greater than or equal to the video statistical number threshold, screening all the historical environment detection videos detected by the environment detection terminal device, and constructing a corresponding historical video set based on the screened historical environment detection videos, and includes:
For each environment detection terminal device in the plurality of environment detection terminal devices, if the historical video statistical quantity corresponding to the environment detection terminal device is smaller than the video statistical quantity threshold value, constructing a historical video set corresponding to the environment detection terminal device based on each historical environment detection video detected by the environment detection terminal device;
for each environmental detection terminal device in the plurality of environmental detection terminal devices, if the historical video statistical quantity corresponding to the environmental detection terminal device is greater than or equal to the video statistical quantity threshold, respectively acquiring historical detection time information of each historical environmental detection video detected by the environmental detection terminal device, screening based on the historical detection time information, and constructing a corresponding historical video set based on the screened historical environmental detection videos, wherein the number of the historical environmental detection videos included in the prime number historical video set is equal to the video statistical quantity threshold, and the historical detection time information of each screened historical environmental detection video is later than that of each unselected historical environmental detection video.
In some preferred embodiments, in the above environment detection method, for each historical video set in the plurality of historical video sets, performing video content contrast analysis on the historical environment detection videos included in the historical video set to obtain environment change feature information historically formed by an environment area corresponding to the historical video set, the step includes:
for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
and aiming at each historical video set in the plurality of historical video sets, based on the video similarity between every two historical environment detection videos included in the historical video set, obtaining the environment change characteristic information formed historically by the environment area corresponding to the historical video set.
In some preferred embodiments, in the above environment detection method, the step of obtaining, for each historical video set in the plurality of historical video sets, environment change feature information historically formed in an environment area corresponding to the historical video set based on a video similarity between every two historical environment detection videos included in the historical video set, includes:
For each historical video set in the plurality of historical video sets, screening out the video similarity between every two adjacent historical environment detection videos from the video similarities between every two historical environment detection videos included in the historical video set, wherein the video similarities are used as first video similarities to obtain a plurality of first video similarities corresponding to the historical video set;
respectively calculating the average value of the historical detection time information of two historical environment detection videos corresponding to each of a plurality of first video similarities corresponding to each historical video set aiming at each historical video set in the plurality of historical video sets to obtain the historical detection time average value corresponding to each first video similarity;
for each historical video set in the plurality of historical video sets, respectively performing update processing on each first video similarity except for a first video similarity in the plurality of first video similarities corresponding to the historical video set, wherein the update processing is based on the video similarity between a next historical environment detection video in the two historical environment detection videos corresponding to the first video similarity and an adjacent previous historical environment detection video in the previous historical environment detection video, if the video similarity is greater than the corresponding first video similarity, the first video similarity is increased when the first video similarity is updated, if the video similarity is equal to the corresponding first video similarity, the first video similarity is maintained when the first video similarity is updated, and if the video similarity is less than the corresponding first video similarity, reducing the first video similarity when updating the first video similarity;
For each historical video set in the multiple historical video sets, performing coordinate point mapping processing based on multiple current corresponding first video similarities of the historical video set and a historical detection time average value corresponding to each first video similarity, and performing curve fitting processing based on coordinate points obtained through mapping processing to obtain environment change characteristic information formed in history of an environment area corresponding to the historical video set, wherein each coordinate point comprises one corresponding first video similarity and one historical detection time average value.
In some preferred embodiments, in the environment detection method, the step of determining, in the plurality of environment detection terminal devices, at least one environment detection terminal device as a target environment detection terminal device based on the environment change feature information corresponding to each historical video set includes:
for each environment detection terminal device in the plurality of environment detection terminal devices, determining the size relation between the change amplitude represented by the environment change characteristic information corresponding to the historical video set corresponding to the environment detection terminal device and a preset change amplitude threshold value;
And for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold, determining the environment detection terminal device as a target environment detection terminal device.
In some preferred embodiments, in the environment detection method, the step of determining, in the plurality of environment detection terminal devices, at least one environment detection terminal device as a target environment detection terminal device based on the environment change feature information corresponding to each historical video set further includes:
for each environment detection terminal device in the plurality of environment detection terminal devices, if the change amplitude represented by the environment change characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is smaller than the change amplitude threshold, determining the latest historical detection time information in the historical detection time information corresponding to each historical environment detection video in the historical video set corresponding to the environment detection terminal device, and determining the relative size relationship between the difference between the historical detection time information and the current time information and a preset time difference threshold;
For each environment detection terminal device in the plurality of environment detection terminal devices, if a difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is greater than or equal to the time difference value threshold, determining the environment detection terminal device as a target environment detection terminal device, and if the difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is less than the time difference value threshold, determining that the environment detection terminal device is not determined as the target environment detection terminal device.
An embodiment of the present invention further provides an environment detection system, which is applied to an environment detection server, wherein the environment detection server is communicatively connected to a plurality of environment detection terminal devices, and the environment detection system includes:
a historical video set obtaining module, configured to obtain a historical video set obtained by detecting, in a historical manner, a corresponding environment region by each of the multiple environment detection terminal devices, and obtain multiple historical video sets corresponding to the multiple environment detection terminal devices, where each of the historical video sets includes multiple historical environment detection videos, and each of the historical environment detection videos includes multiple frames of historical environment detection video frames which are obtained by detecting the corresponding environment region and are consecutive in time sequence;
The environment change characteristic determining module is used for carrying out video content comparison analysis on historical environment detection videos included in the historical video sets aiming at each historical video set in the plurality of historical video sets to obtain environment change characteristic information formed historically by environment areas corresponding to the historical video sets;
and the target detection device determining module is configured to determine, based on the environment change feature information corresponding to each historical video set, at least one environment detection terminal device as a target environment detection terminal device from among the plurality of environment detection terminal devices, where the target environment detection terminal device is configured to detect a corresponding environment area under the control of the environment detection server, and obtain a current environment detection video.
In some preferred embodiments, in the above environment detection system, the environment change characteristic determination module is specifically configured to:
for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
and aiming at each historical video set in the plurality of historical video sets, based on the video similarity between every two historical environment detection videos included in the historical video set, obtaining the environment change characteristic information formed historically by the environment area corresponding to the historical video set.
In some preferred embodiments, in the above environment detection system, the target detection device determining module is specifically configured to:
for each environment detection terminal device in the plurality of environment detection terminal devices, determining the size relationship between the change amplitude represented by the environment change characteristic information corresponding to the history video set corresponding to the environment detection terminal device and a preset change amplitude threshold value;
and for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold value, determining the environment detection terminal device as a target environment detection terminal device.
The environment detection method and the environment detection system provided by the embodiment of the invention can firstly respectively obtain a historical video set obtained by detecting a corresponding environment area by each environment detection terminal device in history, obtain a plurality of historical video sets corresponding to the environment detection terminal devices, then, for each historical video set in the plurality of historical video sets, carry out video content comparison analysis on the historical environment detection videos included in the historical video set, obtain the environment change characteristic information historically formed by the environment area corresponding to the historical video set, thus, at least one environment detection terminal device is determined as a target environment detection terminal device in the plurality of environment detection terminal devices based on the environment change characteristic information corresponding to each historical video set, namely, the target environment detection terminal device is determined by combining the historical environment detection videos, and then, environment detection is carried out based on the target environment detection terminal equipment, and compared with a conventional scheme of directly carrying out detection based on all the environment detection terminal equipment, the resource consumption of environment detection can be reduced to a certain extent, so that the problem of resource waste easily occurring in the environment detection in the prior art is solved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of an environment detection server according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps included in the environment detection method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of modules included in the environment detection system according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an environment detection server. Wherein the environment detection server may include a memory and a processor.
In detail, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The memory can have stored therein at least one software function (computer program) which can be present in the form of software or firmware. The processor may be configured to execute the executable computer program stored in the memory, thereby implementing the environment detection method provided by the embodiments of the present invention (described later).
For example, in an application example, the Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
For example, in an application example, the Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
Also, the structure shown in fig. 1 is only an illustration, and the environment detection server may further include more or less components than those shown in fig. 1, or have a different configuration from that shown in fig. 1, for example, may include a communication unit for information interaction with other devices. For example, the environment detection server may be communicatively connected with a plurality of environment detection terminal devices (such as image capture devices).
With reference to fig. 2, an embodiment of the present invention further provides an environment detection method, which can be applied to the environment detection server. Wherein, the method steps defined by the flow related to the environment detection method can be implemented by the environment detection server. The steps shown in fig. 2 will be described in detail below.
Step S110, respectively obtaining a historical video set obtained by detecting, in history, a corresponding environmental area by each of the plurality of environmental detection terminal devices, to obtain a plurality of historical video sets corresponding to the plurality of environmental detection terminal devices.
In the embodiment of the present invention, the environment detection server may respectively obtain a historical video set obtained by detecting, by each of the plurality of environment detection terminal devices, a corresponding environment area in history, to obtain a plurality of historical video sets corresponding to the plurality of environment detection terminal devices. Each historical video set comprises a plurality of historical environment detection videos, and each historical environment detection video comprises a plurality of frames of historical environment detection video frames which are obtained by detecting a corresponding environment area and are continuous in time sequence.
Step S120, aiming at each historical video set in the plurality of historical video sets, performing video content comparison analysis on the historical environment detection video included in the historical video set to obtain the environment change characteristic information formed in the history by the environment area corresponding to the historical video set.
In this embodiment of the present invention, the environment detection server may perform, for each historical video set in the plurality of historical video sets, video content comparison analysis on the historical environment detection videos included in the historical video set, so as to obtain environment change feature information historically formed in an environment area corresponding to the historical video set.
Step S130, determining, based on the environment change characteristic information corresponding to each historical video set, at least one environment detection terminal device among the plurality of environment detection terminal devices as a target environment detection terminal device.
In this embodiment of the present invention, the environment detection server may determine, based on the environment change feature information corresponding to each historical video set, at least one environment detection terminal device as a target environment detection terminal device from among the plurality of environment detection terminal devices. The target environment detection terminal device is used for detecting a corresponding environment area under the control of the environment detection server to obtain a current environment detection video.
Based on the steps S110, S120, and S130 included in the above-mentioned environment detection method, a history video set obtained by detecting a corresponding environment area historically by each environment detection terminal device may be obtained, so as to obtain a plurality of history video sets corresponding to the environment detection terminal devices, and then, for each history video set in the plurality of history video sets, video content comparison analysis may be performed on the history environment detection videos included in the history video set, so as to obtain environment change characteristic information historically formed by the environment area corresponding to the history video set, so that, based on the environment change characteristic information corresponding to each history video set, at least one environment detection terminal device may be determined as a target environment detection terminal device in the plurality of environment detection terminal devices, that is, the target environment detection terminal device may be determined by combining the history environment detection videos, and then, environment detection is carried out based on the target environment detection terminal equipment, and compared with a conventional scheme of directly carrying out detection based on all the environment detection terminal equipment, the resource consumption of environment detection can be reduced to a certain extent, so that the problem of resource waste easily occurring in the environment detection in the prior art is solved.
For example, in an application example, the step S110 may include the following steps:
firstly, aiming at each environment detection terminal device in the plurality of environment detection terminal devices, obtaining each historical environment detection video obtained by detecting a corresponding environment area historically by the environment detection terminal device, and counting the number of the historical environment detection videos to obtain the statistical number of the historical videos corresponding to the environment detection terminal device;
secondly, determining a relative size relation between the historical video statistic quantity corresponding to each environment detection terminal device and a preset video statistic quantity threshold value for each environment detection terminal device in the plurality of environment detection terminal devices;
then, for each environment detection terminal device in the plurality of environment detection terminal devices, if the historical video statistics number corresponding to the environment detection terminal device is smaller than the video statistics number threshold, a historical video set corresponding to the environment detection terminal device is constructed based on each historical environment detection video detected by the environment detection terminal device, if the historical video statistics number corresponding to the environment detection terminal device is larger than or equal to the video statistics number threshold, all the historical environment detection videos detected by the environment detection terminal device are screened, and a corresponding historical video set is constructed based on the screened historical environment detection videos.
For example, in an application example, if the number of historical videos corresponding to each of the plurality of environment detection terminal devices is less than the video statistics number threshold, the step of constructing a historical video set corresponding to the environment detection terminal device based on each historical environment detection video detected by the environment detection terminal device, and if the number of historical videos corresponding to the environment detection terminal device is greater than or equal to the video statistics number threshold, screening all the historical environment detection videos detected by the environment detection terminal device, and constructing a corresponding historical video set based on the screened historical environment detection videos may include the following steps:
firstly, aiming at each environment detection terminal device in the environment detection terminal devices, if the historical video statistic quantity corresponding to the environment detection terminal device is smaller than the video statistic quantity threshold value, constructing a historical video set corresponding to the environment detection terminal device based on each historical environment detection video detected by the environment detection terminal device;
Secondly, aiming at each environment detection terminal device in the environment detection terminal devices, if the historical video statistic quantity corresponding to the environment detection terminal device is larger than or equal to the video statistic quantity threshold value, respectively acquiring the historical detection time information of each historical environment detection video detected by the environment detection terminal device, screening based on the historical detection time information, and constructing a corresponding historical video set based on the screened historical environment detection videos, wherein the quantity of the historical environment detection videos included in the prime number historical video set is equal to the video statistic quantity threshold value, and the historical detection time information of each screened historical environment detection video is later than that of each unseen historical environment detection video.
For example, in an application example, the step S120 may include the following steps:
firstly, for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
secondly, aiming at each historical video set in the plurality of historical video sets, based on the video similarity between every two historical environment detection videos included in the historical video set, environment change characteristic information formed historically by the environment area corresponding to the historical video set is obtained.
For example, in an application example, the step of calculating, for each historical video set in the plurality of historical video sets, a video similarity between every two historical environment detection videos included in the historical video set may include the following steps:
firstly, for each historical video set in the plurality of historical video sets, performing similarity calculation operation on every two historical environment detection videos included in the historical video set to obtain the video similarity between every two historical environment detection videos.
Wherein, the similarity calculation operation may include the following steps:
firstly, respectively determining the two historical environment detection videos as a first historical environment detection video and a second historical environment detection video (any one of the two is used as the first historical environment detection video, and the other one is used as the second historical environment detection video), respectively determining the number of the historical environment detection video frames included in the first historical environment detection video and the number of the historical environment detection video frames included in the second historical environment detection video, obtaining a corresponding first video frame number and a second video frame number, respectively carrying out video interception (intercepting the historical environment detection video frames in front of the time sequence) on the first historical environment detection video and the second historical environment detection video based on the smaller value of the first video frame number and the second video frame number, obtaining a corresponding first video segment and a corresponding second video segment, then, the historical environment detection video frames included in the first video clip and the second video clip are processed in a one-to-one correspondence mode according to corresponding time sequences;
Secondly, performing feature point extraction processing on a first frame historical environment detection video frame included in the first video clip (for example, performing extraction based on the existing ORB algorithm, organized FAST and related BRIEF), obtaining a plurality of image feature points corresponding to the first frame historical environment detection video frame, determining a plurality of target image feature points of which the number is not more than the smaller value of the number of the first video frame and the number of the second video frame from the plurality of image feature points, and sequencing the plurality of target image feature points based on the positions of the plurality of target image feature points in the first frame historical environment detection video frame (for example, sequencing from top left to bottom right and the like), so as to obtain a sequencing serial number of each target image feature point;
then, according to the corresponding sequence number, performing one-to-one correspondence processing on the plurality of target image feature points and the corresponding number of multi-frame historical environment detection video frames included in the first video segment, and performing one-to-one correspondence processing on the plurality of target image feature points and the corresponding number of multi-frame historical environment detection video frames included in the second video segment, wherein the corresponding relation exists between the multi-frame historical environment detection video frames corresponding to the plurality of target image feature points included in the first video segment and the multi-frame historical environment detection video frames corresponding to the plurality of target image feature points included in the second video segment in time sequence;
Then, detecting a video frame aiming at each frame of historical environment included in the first video clip, if the detected video frame of the historical environment corresponds to one target image characteristic point, extracting pixel values of the target image characteristic point in the detected video frame of the historical environment, and constructing and obtaining a first pixel value sequence of the plurality of target image characteristic points in the first video clip on the basis of the pixel values respectively corresponding to the plurality of target image characteristic points;
then, detecting a video frame aiming at each frame of historical environment included in the second video clip, if the detected video frame of the historical environment corresponds to one target image characteristic point, extracting pixel values of the target image characteristic point in the detected video frame of the historical environment, and constructing and obtaining a second pixel value sequence of the plurality of target image characteristic points in the second video clip on the basis of the pixel values respectively corresponding to the plurality of target image characteristic points;
and finally, calculating the sequence similarity of the first pixel value sequence and the second pixel value sequence, and taking the sequence similarity as the video similarity between the two historical environment detection videos, wherein the sequence similarity is obtained based on the similarity between the pixel values of the corresponding sequence positions between the first pixel value sequence and the second pixel value sequence (such as performing mean calculation).
For example, in an application example, the step of obtaining, for each historical video set in the multiple historical video sets, the environment change feature information historically formed by the environment area corresponding to the historical video set based on the video similarity between every two historical environment detection videos included in the historical video set may include the following:
firstly, for each historical video set in the plurality of historical video sets, screening out the video similarity between every two adjacent historical environment detection videos in the video similarity between every two historical environment detection videos included in the historical video set as a first video similarity to obtain a plurality of first video similarities corresponding to the historical video set;
secondly, respectively calculating the average value of the historical detection time information of two historical environment detection videos corresponding to each of the multiple first video similarities corresponding to the historical video set aiming at each of the multiple historical video sets to obtain the historical detection time average value corresponding to each of the first video similarities;
Then, for each historical video set in the plurality of historical video sets, respectively performing update processing on each first video similarity except for a first one of the plurality of first video similarities corresponding to the historical video set, where the update processing is based on a video similarity between a subsequent historical environment detection video in the two historical environment detection videos corresponding to the first video similarity and an adjacent previous historical environment detection video in the previous historical environment detection video, and if the video similarity is greater than the corresponding first video similarity, increasing the first video similarity when updating the first video similarity, if the video similarity is equal to the corresponding first video similarity, maintaining the first video similarity when updating the first video similarity, and if the video similarity is less than the corresponding first video similarity, reducing the first video similarity when updating the first video similarity;
finally, for each historical video set in the multiple historical video sets, performing coordinate point mapping processing based on multiple current corresponding first video similarities of the historical video set and a historical detection time average value corresponding to each first video similarity, and performing curve fitting processing based on coordinate points obtained through mapping processing to obtain environment change characteristic information formed in history of an environment area corresponding to the historical video set, wherein each coordinate point comprises one corresponding first video similarity and one historical detection time average value.
For example, in an application example, the step S130 may include the following steps:
firstly, for each environment detection terminal device in the plurality of environment detection terminal devices, determining a magnitude relationship between a variation amplitude represented by environment variation characteristic information corresponding to a history video set corresponding to the environment detection terminal device (as described above, performing variation amplitude calculation on a curve obtained by fitting processing, for example, calculating a difference between each adjacent peak and valley, and calculating an accumulated sum of the differences as a corresponding variation amplitude) and a pre-configured variation amplitude threshold;
secondly, for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold, determining the environment detection terminal device as a target environment detection terminal device.
For example, in an application example, the step S130 may further include the following steps:
firstly, for each environment detection terminal device in the plurality of environment detection terminal devices, if the change amplitude represented by the environment change characteristic information corresponding to the history video set corresponding to the environment detection terminal device is smaller than the change amplitude threshold, determining the latest history detection time information in the history detection time information corresponding to each history environment detection video included in the history video set corresponding to the environment detection terminal device, and determining the relative size relationship between the difference between the history detection time information and the current time information and the preset time difference threshold;
Secondly, for each environment detection terminal device in the plurality of environment detection terminal devices, if a difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is greater than or equal to the time difference value threshold, determining the environment detection terminal device as a target environment detection terminal device, and if the difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is less than the time difference value threshold, determining that the environment detection terminal device is not determined as the target environment detection terminal device.
With reference to fig. 3, an embodiment of the present invention further provides an environment detection system, which can be applied to the environment detection server. Wherein the environment detection system may comprise the following:
a historical video set acquiring module, configured to acquire a historical video set obtained by detecting, in a historical manner, a corresponding environmental area by each of the multiple environmental detection terminal devices, to obtain multiple historical video sets corresponding to the multiple environmental detection terminal devices, where each of the historical video sets includes multiple historical environmental detection videos, and each of the historical environmental detection videos includes multiple frames of historical environmental detection video frames that are continuous in time sequence and obtained by detecting the corresponding environmental area;
The environment change characteristic determining module is used for carrying out video content comparison analysis on historical environment detection videos included in the historical video sets aiming at each historical video set in the plurality of historical video sets to obtain environment change characteristic information formed historically by environment areas corresponding to the historical video sets;
and the target detection device determining module is configured to determine, based on the environment change feature information corresponding to each historical video set, at least one environment detection terminal device as a target environment detection terminal device from among the plurality of environment detection terminal devices, where the target environment detection terminal device is configured to detect a corresponding environment area under the control of the environment detection server, and obtain a current environment detection video.
For example, in an application example, the environment change characteristic determination module is specifically configured to:
for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
and aiming at each historical video set in the plurality of historical video sets, based on the video similarity between every two historical environment detection videos included in the historical video set, obtaining the environment change characteristic information formed historically by the environment area corresponding to the historical video set.
For example, in an application example, the target detection device determining module is specifically configured to:
for each environment detection terminal device in the plurality of environment detection terminal devices, determining the size relationship between the change amplitude represented by the environment change characteristic information corresponding to the history video set corresponding to the environment detection terminal device and a preset change amplitude threshold value;
and for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold value, determining the environment detection terminal device as a target environment detection terminal device.
In summary, according to the environment detection method and the environment detection system provided by the present invention, a historical video set obtained by detecting a corresponding environment area in history by each environment detection terminal device is respectively obtained, a plurality of historical video sets corresponding to a plurality of environment detection terminal devices are obtained, then, for each historical video set in the plurality of historical video sets, video content comparison analysis is performed on the historical environment detection videos included in the historical video set, so as to obtain environment change characteristic information historically formed by the environment area corresponding to the historical video set, so that at least one environment detection terminal device is determined as a target environment detection terminal device in the plurality of environment detection terminal devices based on the environment change characteristic information corresponding to each historical video set, that is, the target environment detection terminal device is determined by combining the historical environment detection videos, and then, environment detection is carried out based on the target environment detection terminal equipment, and compared with a conventional scheme of directly carrying out detection based on all the environment detection terminal equipment, the resource consumption of environment detection can be reduced to a certain extent, so that the problem of resource waste easily occurring in the environment detection in the prior art is solved.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An environment detection method is applied to an environment detection server, the environment detection server is in communication connection with a plurality of environment detection terminal devices, and the environment detection method comprises the following steps:
respectively acquiring a historical video set obtained by detecting a corresponding environment area historically by each environment detection terminal device in the plurality of environment detection terminal devices to obtain a plurality of historical video sets corresponding to the plurality of environment detection terminal devices, wherein each historical video set comprises a plurality of historical environment detection videos, and each historical environment detection video comprises a plurality of frames of historical environment detection video frames which are continuous in time sequence and obtained by detecting the corresponding environment area;
for each historical video set in the plurality of historical video sets, performing video content comparison analysis on the historical environment detection videos included in the historical video set to obtain environment change characteristic information historically formed by the environment area corresponding to the historical video set;
And determining at least one environment detection terminal device as a target environment detection terminal device in the plurality of environment detection terminal devices based on the environment change characteristic information corresponding to each historical video set, wherein the target environment detection terminal device is used for detecting a corresponding environment area under the control of the environment detection server to obtain a current environment detection video.
2. The environment detecting method according to claim 1, wherein the step of respectively obtaining a plurality of historical video sets corresponding to the plurality of environment detecting terminal devices by historically detecting a corresponding environment area by each of the plurality of environment detecting terminal devices comprises:
for each environment detection terminal device in the plurality of environment detection terminal devices, acquiring each historical environment detection video obtained by detecting a corresponding environment area historically by the environment detection terminal device, and counting the number of the historical environment detection videos to obtain the statistical number of the historical videos corresponding to the environment detection terminal device;
Determining a relative size relation between the historical video statistic quantity corresponding to each environment detection terminal device and a preset video statistic quantity threshold value for each environment detection terminal device in the plurality of environment detection terminal devices;
for each environment detection terminal device in the environment detection terminal devices, if the historical video statistic quantity corresponding to the environment detection terminal device is smaller than the video statistic quantity threshold value, a historical video set corresponding to the environment detection terminal device is obtained based on each historical environment detection video obtained by the environment detection terminal device, if the historical video statistic quantity corresponding to the environment detection terminal device is larger than or equal to the video statistic quantity threshold value, all the historical environment detection videos obtained by the environment detection terminal device are screened, and a corresponding historical video set is obtained based on the screened historical environment detection videos.
3. The environment detection method according to claim 2, wherein the step of constructing, for each of the plurality of environment detection terminal devices, a history video set corresponding to the environment detection terminal device based on each history video detected by the environment detection terminal device if the history video statistics number corresponding to the environment detection terminal device is smaller than the video statistics number threshold, and screening all the history video detected by the environment detection terminal device if the history video statistics number corresponding to the environment detection terminal device is larger than or equal to the video statistics number threshold, and constructing a corresponding history video set based on the screened history video detected by the environment detection terminal device comprises:
For each environment detection terminal device in the plurality of environment detection terminal devices, if the historical video statistic number corresponding to the environment detection terminal device is smaller than the video statistic number threshold, constructing a historical video set corresponding to the environment detection terminal device based on each historical environment detection video detected by the environment detection terminal device;
for each environmental detection terminal device in the plurality of environmental detection terminal devices, if the historical video statistical quantity corresponding to the environmental detection terminal device is greater than or equal to the video statistical quantity threshold, respectively acquiring historical detection time information of each historical environmental detection video detected by the environmental detection terminal device, screening based on the historical detection time information, and constructing a corresponding historical video set based on the screened historical environmental detection videos, wherein the number of the historical environmental detection videos included in the prime number historical video set is equal to the video statistical quantity threshold, and the historical detection time information of each screened historical environmental detection video is later than that of each unselected historical environmental detection video.
4. The environment detection method according to claim 1, wherein the step of performing video content contrast analysis on the historical environment detection video included in each of the plurality of historical video sets to obtain the environment change feature information historically formed by the environment area corresponding to the historical video set comprises:
for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
and aiming at each historical video set in the plurality of historical video sets, based on the video similarity between every two historical environment detection videos included in the historical video set, obtaining the environment change characteristic information formed historically by the environment area corresponding to the historical video set.
5. The environment detection method according to claim 4, wherein the step of obtaining, for each historical video set in the plurality of historical video sets, the historically-formed environment change feature information of the environment area corresponding to the historical video set based on the video similarity between every two historical environment detection videos included in the historical video set comprises:
For each historical video set in the plurality of historical video sets, screening out the video similarity between every two adjacent historical environment detection videos from the video similarities between every two historical environment detection videos included in the historical video set, wherein the video similarities are used as first video similarities to obtain a plurality of first video similarities corresponding to the historical video set;
respectively calculating the average value of the historical detection time information of two historical environment detection videos corresponding to each of the multiple first video similarities corresponding to the historical video set aiming at each of the multiple historical video sets to obtain the historical detection time average value corresponding to each of the first video similarities;
for each historical video set in the plurality of historical video sets, respectively updating each first video similarity except for a first video similarity in a plurality of first video similarities corresponding to the historical video set, wherein the updating is based on the video similarity between a next historical environment detection video in the two historical environment detection videos corresponding to the first video similarity and an adjacent previous historical environment detection video in the previous historical environment detection video, if the video similarity is greater than the corresponding first video similarity, the first video similarity is increased when the first video similarity is updated, if the video similarity is equal to the corresponding first video similarity, the first video similarity is maintained when the first video similarity is updated, if the video similarity is less than the corresponding first video similarity, reducing the first video similarity when updating the first video similarity;
For each historical video set in the multiple historical video sets, performing coordinate point mapping processing based on multiple first video similarities corresponding to the historical video set at present and a historical detection time average value corresponding to each first video similarity, and performing curve fitting processing based on coordinate points obtained through mapping processing to obtain environment change characteristic information, formed historically, of an environment area corresponding to the historical video set, wherein each coordinate point comprises one corresponding first video similarity and one historical detection time average value.
6. The environment detection method according to any one of claims 1 to 5, wherein the step of determining, among the plurality of environment detection terminal devices, at least one environment detection terminal device as a target environment detection terminal device based on the environment change feature information corresponding to each of the historical video sets includes:
for each environment detection terminal device in the plurality of environment detection terminal devices, determining the size relationship between the change amplitude represented by the environment change characteristic information corresponding to the history video set corresponding to the environment detection terminal device and a preset change amplitude threshold value;
And for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold, determining the environment detection terminal device as a target environment detection terminal device.
7. The environment detecting method according to claim 6, wherein the step of determining, among the plurality of environment detecting terminal devices, at least one environment detecting terminal device as a target environment detecting terminal device based on the environment change feature information corresponding to each of the historical video sets, further comprises:
for each environment detection terminal device in the plurality of environment detection terminal devices, if the change amplitude represented by the environment change characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is smaller than the change amplitude threshold, determining the latest historical detection time information in the historical detection time information corresponding to each historical environment detection video in the historical video set corresponding to the environment detection terminal device, and determining the relative size relationship between the difference between the historical detection time information and the current time information and a preset time difference threshold;
For each environment detection terminal device in the plurality of environment detection terminal devices, if a difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is greater than or equal to the time difference value threshold, determining the environment detection terminal device as a target environment detection terminal device, and if the difference value between the historical detection time information and the current time information corresponding to the environment detection terminal device is less than the time difference value threshold, determining not to determine the environment detection terminal device as the target environment detection terminal device.
8. The utility model provides an environment detection system which characterized in that is applied to environment detection server, environment detection server communication connection has a plurality of environment detection terminal equipment, environment detection system includes:
a historical video set obtaining module, configured to obtain a historical video set obtained by detecting, in a historical manner, a corresponding environment region by each of the multiple environment detection terminal devices, and obtain multiple historical video sets corresponding to the multiple environment detection terminal devices, where each of the historical video sets includes multiple historical environment detection videos, and each of the historical environment detection videos includes multiple frames of historical environment detection video frames which are obtained by detecting the corresponding environment region and are consecutive in time sequence;
The environment change characteristic determining module is used for carrying out video content comparison analysis on historical environment detection videos included in the historical video sets aiming at each historical video set in the historical video sets to obtain environment change characteristic information formed historically by environment areas corresponding to the historical video sets;
and the target detection device determining module is configured to determine, based on the environment change feature information corresponding to each historical video set, at least one environment detection terminal device as a target environment detection terminal device from among the plurality of environment detection terminal devices, where the target environment detection terminal device is configured to detect a corresponding environment area under the control of the environment detection server, and obtain a current environment detection video.
9. The environmental detection system of claim 8, wherein the environmental change characteristic determination module is specifically configured to:
for each historical video set in the plurality of historical video sets, calculating the video similarity between every two historical environment detection videos included in the historical video set;
and aiming at each historical video set in the plurality of historical video sets, obtaining the environment change characteristic information formed historically by the environment area corresponding to the historical video set on the basis of the video similarity between every two historical environment detection videos included in the historical video set.
10. The environmental detection system of claim 8, wherein the target detection device determination module is specifically configured to:
for each environment detection terminal device in the plurality of environment detection terminal devices, determining the size relationship between the change amplitude represented by the environment change characteristic information corresponding to the history video set corresponding to the environment detection terminal device and a preset change amplitude threshold value;
and for each environment detection terminal device in the plurality of environment detection terminal devices, if the variation amplitude represented by the environment variation characteristic information corresponding to the historical video set corresponding to the environment detection terminal device is greater than or equal to the variation amplitude threshold value, determining the environment detection terminal device as a target environment detection terminal device.
CN202210142700.9A 2022-02-16 2022-02-16 Environment detection method and system Withdrawn CN114677615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210142700.9A CN114677615A (en) 2022-02-16 2022-02-16 Environment detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210142700.9A CN114677615A (en) 2022-02-16 2022-02-16 Environment detection method and system

Publications (1)

Publication Number Publication Date
CN114677615A true CN114677615A (en) 2022-06-28

Family

ID=82072835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210142700.9A Withdrawn CN114677615A (en) 2022-02-16 2022-02-16 Environment detection method and system

Country Status (1)

Country Link
CN (1) CN114677615A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115082711A (en) * 2022-08-22 2022-09-20 广东新禾道信息科技有限公司 Soil general survey data processing method and system and cloud platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115082711A (en) * 2022-08-22 2022-09-20 广东新禾道信息科技有限公司 Soil general survey data processing method and system and cloud platform

Similar Documents

Publication Publication Date Title
CN114581856B (en) Agricultural unit motion state identification method and system based on Beidou system and cloud platform
CN109446061B (en) Page detection method, computer readable storage medium and terminal device
CN114140713A (en) Image recognition system and image recognition method
CN115018840B (en) Method, system and device for detecting cracks of precision casting
CN114140712A (en) Automatic image recognition and distribution system and method
CN114155459A (en) Smart city monitoring method and system based on data analysis
CN114677615A (en) Environment detection method and system
CN114697618A (en) Building control method and system based on mobile terminal
CN113902993A (en) Environmental state analysis method and system based on environmental monitoring
CN114726571A (en) Network security early warning management platform and method
CN114187763A (en) Vehicle driving data screening method and system for intelligent traffic
CN115375886A (en) Data acquisition method and system based on cloud computing service
CN115457467A (en) Building quality hidden danger positioning method and system based on data mining
CN115424193A (en) Training image information processing method and system
CN114095734A (en) User data compression method and system based on data processing
CN114639035A (en) Intelligent environment detection system and method thereof
CN113902412A (en) Environment monitoring method based on data processing
CN114189535A (en) Service request method and system based on smart city data
CN113949881A (en) Service processing method and system based on smart city data
CN114720812A (en) Method and system for processing and positioning faults of power distribution network
CN113687985A (en) Internet of things data backup method based on Internet of things equipment trust
CN113808088A (en) Pollution detection method and system
CN115082709B (en) Remote sensing big data processing method, system and cloud platform
CN114173086A (en) User data screening method based on data processing
CN114997343B (en) Fault reason tracing method and system based on air purification detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20220628

WW01 Invention patent application withdrawn after publication