CN117745664A - Image dynamic detection method, device, equipment and storage medium - Google Patents

Image dynamic detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117745664A
CN117745664A CN202311733757.7A CN202311733757A CN117745664A CN 117745664 A CN117745664 A CN 117745664A CN 202311733757 A CN202311733757 A CN 202311733757A CN 117745664 A CN117745664 A CN 117745664A
Authority
CN
China
Prior art keywords
image
condition
difference
parameters
duty ratio
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.)
Pending
Application number
CN202311733757.7A
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.)
Suzhou Invo Automotive Electronics Co ltd
Original Assignee
Suzhou Invo Automotive Electronics Co ltd
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 Suzhou Invo Automotive Electronics Co ltd filed Critical Suzhou Invo Automotive Electronics Co ltd
Priority to CN202311733757.7A priority Critical patent/CN117745664A/en
Publication of CN117745664A publication Critical patent/CN117745664A/en
Pending legal-status Critical Current

Links

Abstract

The application provides an image dynamic detection method, an image dynamic detection device, image dynamic detection equipment and a storage medium, wherein the image dynamic detection method comprises the following steps: acquiring continuous frame images; processing the continuous frame images to obtain a binarized image; obtaining parameters of a difference image according to the binarized image and the obtained current frequency and current times, wherein the parameters of the difference image comprise pixel duty ratio, current frequency and current times; acquiring the detection time of the image under the condition that the parameters of the difference image do not meet the first specified condition; in the case where the detection time exceeds the specified time, it is determined that the image is normal. According to the image dynamic detection method, whether the image is stuck or not can be judged according to the parameters of the settable first specified condition, the specified time and the difference image, so that the phenomenon that the defective products flow out due to the fact that image residues are left in the test process and abnormality cannot be detected is effectively avoided.

Description

Image dynamic detection method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of image detection technologies, and in particular, to a method, an apparatus, a device, and a storage medium for dynamically detecting an image.
Background
Image detection is a process of extracting a feature region (detection target) of interest through an image, wherein the image is a carrier carrying the detection target, and the detection target needs to be extracted and generalized in advance and is finally separated through a corresponding algorithm. The image detection method can be classified into single frame image detection and multi-frame image detection. The single-frame image detection mainly uses the gray information of the image to divide the target, and mainly comprises a target detection method based on a gray threshold value and a target detection method based on edge information; the multi-frame image detection realizes the extraction of the target through the change characteristics of the sequence images.
The prior art uses a processing judging method (an image color detecting method) for a single frame image, wherein picture residues appear in the testing process, and abnormality cannot be detected, so that defective products flow out.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for dynamically detecting images, so as to solve the problems in the related art, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an image dynamic detection method, including:
acquiring continuous frame images;
processing the continuous frame images to obtain a binarized image;
obtaining parameters of a difference image according to the binarized image, the obtained current frequency and the obtained current times, wherein the parameters of the difference image comprise pixel duty ratio, the current frequency and the current times;
acquiring the detection time of the image under the condition that the parameters of the difference image do not meet the first specified condition;
in the case where the detection time exceeds the specified time, it is determined that the image is normal.
In one embodiment, processing successive frame images to obtain a binary image includes:
converting continuous frame images to obtain single-channel gray level images of each frame;
calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
obtaining a structural element;
and performing expansion, corrosion and binarization processing on the difference value graph according to the structural elements to obtain a binarized image.
In one embodiment, deriving the pixel duty cycle in the image from the binarized image comprises:
determining the total pixel number and the target pixel number according to the binarized image;
and obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number.
In one embodiment, the method further comprises:
and under the condition that the parameters of the difference image meet the first specified condition, determining that the image is jammed.
In one embodiment, in a case where the parameter of the difference image does not satisfy the first specified condition, the detection time of acquiring the image includes:
under the condition that the current frequency is not more than or equal to the dynamic frequency, acquiring the detection time of the image;
or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the pixel duty ratio is not less than or equal to the dynamic duty ratio;
or alternatively, the first and second heat exchangers may be,
and under the condition that the current times are not more than the judgment times, acquiring the detection time of the image.
In one embodiment, in a case where the parameters of the difference image all meet the first specified condition, determining that the image is stuck includes:
judging whether the pixel duty ratio is smaller than or equal to the dynamic duty ratio under the condition that the current frequency is larger than or equal to the dynamic frequency;
judging whether the current frequency is greater than or equal to the judgment frequency under the condition that the pixel duty ratio is less than or equal to the dynamic duty ratio;
and under the condition that the current times are greater than or equal to the judgment times, determining that the image is jammed.
In one embodiment, the method further comprises:
and re-acquiring continuous frame images and adjusting the current times under the condition that the detection time does not exceed the designated time.
In a second aspect, an embodiment of the present application provides an image dynamic detection apparatus, including:
the detection module is used for collecting and sending out video signals;
the video access module is electrically connected with the detection module and is used for acquiring the video signal sent by the detection module;
the image acquisition module is electrically connected with the video access module and is used for acquiring images of the video signals acquired by the video access module to acquire continuous frame images;
the image processing module is electrically connected with the image acquisition module and is used for processing the continuous frame images to obtain binarized images;
the image judging module is electrically connected with the image processing module and is used for obtaining parameters of a difference image according to the binarized image, the obtained current frequency and the obtained current times, wherein the parameters of the difference image comprise pixel duty ratio, the current frequency and the current times, the detection time of the image is obtained under the condition that the parameters of the difference image do not meet the first specified condition, and the image is determined to be normal under the condition that the detection time exceeds the specified time.
In a third aspect, an embodiment of the present application provides an electronic device, including: memory and a processor. Wherein the memory and the processor are in communication with each other via an internal connection, the memory is configured to store instructions, the processor is configured to execute the instructions stored by the memory, and when the processor executes the instructions stored by the memory, the processor is caused to perform the methods of the various embodiments described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, where the methods of the various embodiments described above are performed when the computer program is run on a computer.
The advantages or beneficial effects in the technical scheme at least comprise:
according to the technical scheme, continuous frame images acquired from video signals are acquired, the continuous frame images are processed to obtain binarized images, parameters of difference images are acquired for the binarized images, current frequency and current times are acquired to obtain parameters of the difference images, the parameters of the difference images comprise pixel duty ratio, current frequency and current times, the parameters of the difference images such as pixel duty ratio, current frequency and current times and the like are judged and compared with first specified conditions, detection time of the images is acquired under the condition that the parameters of the difference images do not meet the first specified conditions, and the images are determined to be normal under the condition that the detection time exceeds the specified time. According to the image dynamic detection method, whether the image is blocked or not can be judged according to the parameters of the settable first specified condition, the specified time and the difference image, so that the situation that the image is left in the test process and abnormal products flow out due to failure to detect the abnormal images is effectively avoided, and the accuracy of multi-frame image detection is effectively improved.
The foregoing summary is for the purpose of the specification only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will become apparent by reference to the drawings and the following detailed description.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the disclosure and are not therefore to be considered limiting of its scope.
FIG. 1 is a flowchart of an image dynamic detection method according to an embodiment of the present application;
FIG. 2 is a block diagram of an image dynamic detection method according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for dynamic image detection according to another embodiment of the present application
Fig. 4 shows a block diagram of an image dynamic detection apparatus according to an embodiment of the present invention;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Hereinafter, only certain exemplary embodiments are briefly described. As will be recognized by those of skill in the pertinent art, the described embodiments may be modified in various different ways without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature and not as restrictive.
In the related art, image detection is a process of extracting a feature region (detection target) of interest through an image, wherein the image is a carrier carrying the detection target, and the detection target needs to be extracted and generalized in advance and finally separated through a corresponding algorithm. The image detection method can be classified into single frame image detection and multi-frame image detection. The single-frame image detection mainly uses the gray information of the image to divide the target, and mainly comprises a target detection method based on a gray threshold value and a target detection method based on edge information; the multi-frame image detection realizes the extraction of targets through the change characteristics of sequence images, is mainly used for detecting moving targets and mainly comprises the following steps: methods based on pixel analysis, methods for feature detection, and methods based on transformation.
In the related art, an image color detection method is used, and in the test process, image residues appear, so that abnormality cannot be detected, and defective products flow out.
Fig. 1 shows a flowchart of an image dynamic detection method according to an embodiment of the present application. As shown in fig. 1 and 2, an image dynamic detection method may include:
s110: acquiring continuous frame images;
s120: processing the continuous frame images to obtain a binarized image;
s130: obtaining parameters of a difference image according to the binarized image, the obtained current frequency and the obtained current times, wherein the parameters of the difference image comprise pixel duty ratio, the current frequency and the current times;
s140: acquiring the detection time of the image under the condition that the parameters of the difference image do not meet the first specified condition;
s150: in the case where the detection time exceeds the specified time, it is determined that the image is normal.
In this embodiment, the image dynamic detection method may be executed on a cloud server or a PC host.
According to the technical scheme, continuous frame images acquired from video signals are acquired, the continuous frame images are processed to obtain binarized images, parameters of difference images are acquired for the binarized images to obtain parameters of the difference images, the parameters of the difference images comprise pixel duty ratio, current frequency and current times, the parameters of the difference images such as the pixel duty ratio, the current frequency and the current times and first specified conditions are judged and compared, detection time of the images is acquired under the condition that the parameters of the difference images do not meet the first specified conditions, and the images are determined to be normal under the condition that the detection time exceeds the specified time. According to the image dynamic detection method, whether the image is blocked or not can be judged according to the parameters of the settable first specified condition, the specified time and the difference image, so that the situation that the image is left in the test process and abnormal products flow out due to failure to detect the abnormal images is effectively avoided, and the accuracy of multi-frame image detection is effectively improved.
In step S110, successive frame images are acquired.
In the embodiment of the present application, the continuous frame image is a plurality of images of continuous frames obtained after the acquisition processing is performed on the acquired video signal. The video signal is sent by the detection jig through the horse race lamp, and the video signal can be obtained by shooting video through a camera, a video camera or a camera and other devices capable of acquiring video images.
The obtained video signal can be collected through the collecting card, and continuous frame images corresponding to the video signal are obtained. Acquisition cards such as TC-739 high definition acquisition cards.
In step S120, the continuous frame images are processed to obtain binarized images.
In this embodiment, the continuous frame image includes at least two adjacent images. The processing method for the continuous frame image specifically can be as follows:
carrying out single-channel gray level conversion on continuous frame images to obtain single-channel gray level images of each frame;
calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
obtaining a structural element;
among them, the structural element may be various types of structural elements, such as a cross-shaped structural element, a rectangular structural element, a circular structural element, and the like, and in this embodiment, the structural element is preferably a cross-shaped structural element.
And performing operations such as expansion and corrosion on the difference image according to the structural elements to obtain the difference image after expansion and corrosion, and converting the difference image after expansion and corrosion into a binary image by setting a specified binary value.
In this embodiment, in the process of converting the difference image into the binarized image, a binarization threshold may be set through an external setting, and the binarization threshold may be configured according to an actual situation.
In step S130, parameters of the difference image are obtained according to the binarized image, where the parameters of the difference image include a pixel duty ratio, a current frequency, and a current number of times.
In this embodiment, a binarized image is obtained through the above embodiment, a pixel duty ratio can be obtained by analyzing the binarized image, and parameters of a difference image are determined by obtaining a current frequency and the obtained pixel duty ratio, where the parameters of the difference image include the pixel duty ratio, the current frequency and the current frequency.
The pixel duty ratio calculating method comprises the following steps:
determining the total pixel number and the target pixel number according to the binarized image;
obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number;
the calculation formula is as follows:
image ratio= (target pixel number/total pixel number) ×100
The target pixel number is the pixel number of the target to be detected.
The current frequency is the frequency corresponding to the current frame image under the current video signal, and the current frequency is specifically the current millisecond number.
The current number of times is the number of times judged between the parameter of the difference image and the first specified condition.
In step S140, in the case where the parameter of the difference image does not satisfy the first specified condition, the detection time of the image is acquired.
In this embodiment, the parameters of the difference image are determined by the above embodiment, where the parameters of the difference image include the pixel duty ratio, the current frequency, and the current number of times.
In the case where the parameters of the difference image do not satisfy the first specified condition, the detection time for acquiring the image is specifically: under the condition that the current frequency is not more than or equal to the dynamic frequency, acquiring the detection time of the image;
i.e. the detection time of the acquired image in case the current frequency is smaller than the dynamic frequency.
Or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the pixel duty ratio is not less than or equal to the dynamic duty ratio;
namely, under the condition that the pixel duty ratio is larger than the dynamic duty ratio, acquiring the detection time of the image;
or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the current times are not more than or equal to the judgment times;
i.e. the detection time of the acquired image in case the current number is smaller than the decision number.
In this embodiment, the dynamic frequency, the dynamic duty ratio and the number of times of determination may all be configured according to the actual situation, so that the detection method of this embodiment may set the parameters for determining the difference image according to the actual situation, with good flexibility.
In an embodiment, if the parameters of the difference image are sequentially determined and neither of the parameters satisfies the first specified condition, it is determined that the image is stuck.
Specifically:
judging whether the pixel duty ratio is smaller than or equal to the dynamic duty ratio under the condition that the current frequency is larger than or equal to the dynamic frequency;
judging whether the current frequency is greater than or equal to the judgment frequency under the condition that the pixel duty ratio is less than or equal to the dynamic duty ratio;
and under the condition that the current times are greater than or equal to the judgment times, determining that the image is jammed.
In this embodiment, the first specified condition is that the current frequency is not greater than or equal to the dynamic frequency, the pixel duty ratio is not less than or equal to the dynamic duty ratio, and the current number of times is not greater than or equal to the determination number of times.
After the method is executed, the parameters of the difference image are judged in sequence, and under the condition that the corresponding specified conditions are not met, the image is determined to be blocked and should be processed in time at the moment, so that the problem that defective products flow out due to the fact that image residues are left in image detection and abnormality cannot be detected is avoided.
In step S150, in the case where the detection time exceeds the specified time, it is determined that the image is normal.
The specified time may be configured according to the actual situation, where the detection time may be the execution time in the method of this embodiment, and if the execution exceeds the specified time, it is indicated that the image is normal.
If the execution does not exceed the specified time, it is not determined whether the image is normal, which may be the case when the image is normal or the image is stuck, and at this time, the steps S1-S150 may be re-executed to make a judgment by re-acquiring successive frame images in the video signal until it is determined that the image is normal or the image is stuck.
As shown in fig. 2, in one embodiment, processing successive frame images to obtain a binary image includes:
s210: converting continuous frame images to obtain single-channel gray level images of each frame;
s220: calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
s230: obtaining a structural element;
s240: and performing expansion, corrosion and binarization processing on the difference value graph according to the structural elements to obtain a binarized image.
In this embodiment, the continuous frame image includes at least two adjacent images. The processing method for the continuous frame image specifically can be as follows:
carrying out single-channel gray level conversion on continuous frame images to obtain single-channel gray level images of each frame;
calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
obtaining a structural element;
among them, the structural element may be various types of structural elements, such as a cross-shaped structural element, a rectangular structural element, a circular structural element, and the like, and in this embodiment, the structural element is preferably a cross-shaped structural element.
And performing operations such as expansion and corrosion on the difference image according to the structural elements to obtain the difference image after expansion and corrosion, and converting the difference image after expansion and corrosion into a binary image by setting a specified binary value.
In one embodiment, as shown in fig. 3, obtaining the pixel duty ratio in the image from the binarized image includes:
s310: determining the total pixel number and the target pixel number according to the binarized image;
s320: and obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number.
In this embodiment, according to the binarized image, calculating the total pixels and the target pixels corresponding to the target object to obtain the total pixel number and the target pixel number;
obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number;
the calculation formula is as follows:
image ratio= (target pixel number/total pixel number) ×100
The target pixel number is the pixel number of the target to be detected.
In one embodiment, the method further comprises:
and under the condition that the parameters of the difference image meet the first specified condition, determining that the image is jammed.
The method comprises the following steps: in one embodiment, in a case where the parameters of the difference image all meet the first specified condition, determining that the image is stuck includes:
judging whether the pixel duty ratio is smaller than or equal to the dynamic duty ratio under the condition that the current frequency is larger than or equal to the dynamic frequency;
judging whether the current frequency is greater than or equal to the judgment frequency under the condition that the pixel duty ratio is less than or equal to the dynamic duty ratio;
and under the condition that the current times are greater than or equal to the judgment times, determining that the image is jammed.
After the method is executed, all the parameters of the difference images are judged in sequence, when the corresponding specified conditions are met, the image is determined to be blocked, and the image should be processed in time at the moment, so that the problem that defective products flow out due to the fact that image residues are left in image detection and abnormality cannot be detected is avoided.
In one embodiment, in a case where the parameters of the difference image sequentially do not satisfy the first specified condition, the detection time for acquiring the image specifically includes:
under the condition that the current frequency is not more than or equal to the dynamic frequency, acquiring the detection time of the image;
or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the pixel duty ratio is not less than or equal to the dynamic duty ratio;
or alternatively, the first and second heat exchangers may be,
and under the condition that the current times are not more than the judgment times, acquiring the detection time of the image.
In one embodiment, the method further comprises:
and re-acquiring continuous frame images and adjusting the current times under the condition that the detection time does not exceed the designated time.
If the detection time does not exceed the specified time, it is not determined whether the image is normal, which may be the case when the image is normal or the image is jammed, and at this time, the steps of S110-S150 may be re-executed to perform the judgment by re-acquiring the continuous frame images in the video signal until it is determined that the image is normal or the image is in a jammed state. Therefore, whether the image is stuck or not can be accurately judged, and meanwhile, the image can be processed in time, so that accurate feedback is obtained.
Fig. 4 shows a block diagram of an image dynamic detection apparatus according to an embodiment of the present invention. As shown in fig. 4, in a second aspect, an embodiment of the present application provides an image dynamic detection apparatus, which may include:
the detection module 410 is configured to collect and send out a video signal;
the video access module 420 is electrically connected with the detection module and is used for acquiring the video signal sent by the detection module;
the image acquisition module 430 is electrically connected with the video access module and is used for acquiring images of the video signals acquired by the video access module to obtain continuous frame images;
the image processing module 440 is electrically connected to the image acquisition module, and is configured to process the continuous frame images to obtain a binarized image;
the image judging module 450 is electrically connected with the image processing module, and is configured to obtain parameters of the difference image according to the binarized image and the obtained current frequency and the obtained current times, where the parameters of the difference image include a pixel duty ratio, the current frequency and the current times, obtain a detection time of the image when the parameters of the difference image do not meet a first specified condition, and determine that the image is normal when the detection time exceeds the specified time.
According to the technical scheme, continuous frame images acquired from video signals are acquired, the continuous frame images are processed to obtain binarized images, parameters of difference images are acquired for the binarized images to obtain parameters of the difference images, the parameters of the difference images comprise pixel duty ratio, current frequency and current times, the parameters of the difference images such as the pixel duty ratio, the current frequency and the current times and first specified conditions are judged and compared, detection time of the images is acquired under the condition that the parameters of the difference images do not meet the first specified conditions, and the images are determined to be normal under the condition that the detection time exceeds the specified time. According to the image dynamic detection method, whether the image is blocked or not can be judged according to the parameters of the settable first specified condition, the specified time and the difference image, so that the situation that the image is left in the test process and abnormal products flow out due to failure to detect the abnormal images is effectively avoided, and the accuracy of multi-frame image detection is effectively improved.
In one embodiment, processing successive frame images to obtain a binary image includes:
converting continuous frame images to obtain single-channel gray level images of each frame;
calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
obtaining a structural element;
and performing expansion, corrosion and binarization processing on the difference value graph according to the structural elements to obtain a binarized image.
In one embodiment, deriving the pixel duty cycle in the image from the binarized image comprises:
determining the total pixel number and the target pixel number according to the binarized image;
and obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number.
In one embodiment, the method further comprises:
and under the condition that the parameters of the difference image meet the first specified condition, determining that the image is jammed.
In one embodiment, in a case where the parameter of the difference image does not satisfy the first specified condition, the detection time of acquiring the image includes:
under the condition that the current frequency is not more than or equal to the dynamic frequency, acquiring the detection time of the image;
or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the pixel duty ratio is not less than or equal to the dynamic duty ratio;
or alternatively, the first and second heat exchangers may be,
and under the condition that the current times are not more than the judgment times, acquiring the detection time of the image.
In one embodiment, in a case where the parameters of the difference image all meet the first specified condition, determining that the image is stuck includes:
judging whether the pixel duty ratio is smaller than or equal to the dynamic duty ratio under the condition that the current frequency is larger than or equal to the dynamic frequency;
judging whether the current frequency is greater than or equal to the judgment frequency under the condition that the pixel duty ratio is less than or equal to the dynamic duty ratio;
and under the condition that the current times are greater than or equal to the judgment times, determining that the image is jammed.
In one embodiment, the method further comprises:
and re-acquiring continuous frame images and adjusting the current times under the condition that the detection time does not exceed the designated time.
The functions of each module in each device of the embodiments of the present invention may be referred to the corresponding descriptions in the above methods, and are not described herein again.
Fig. 5 shows a block diagram of an electronic device according to an embodiment of the invention. As shown in fig. 5, the electronic device includes: memory 910 and processor 920, memory 910 stores a computer program executable on processor 920. The processor 920 implements the image dynamic detection method in the above-described embodiment when executing the computer program. The number of memories 910 and processors 920 may be one or more.
The electronic device/terminal/server further includes:
and the communication interface 930 is used for communicating with external equipment and carrying out data interaction transmission.
If the memory 910, the processor 920, and the communication interface 930 are implemented independently, the memory 910, the processor 920, and the communication interface 930 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 910, the processor 920, and the communication interface 930 are integrated on a chip, the memory 910, the processor 920, and the communication interface 930 may communicate with each other through internal interfaces.
The embodiment of the invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements a method provided in the embodiment of the application.
The embodiment of the application also provides a chip, which comprises a processor and is used for calling the instructions stored in the memory from the memory and running the instructions stored in the memory, so that the communication device provided with the chip executes the method provided by the embodiment of the application.
The embodiment of the application also provides a chip, which comprises: the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the application embodiment.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (digital signal processing, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (fieldprogrammablegate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (advanced RISC machines, ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may include a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory, among others. Volatile memory can include random access memory (random access memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (dynamic random access memory, DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Any process or method description in a flowchart or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed in a substantially simultaneous manner or in an opposite order from that shown or discussed, including in accordance with the functions that are involved.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the methods of the embodiments described above may be performed by a program that, when executed, comprises one or a combination of the steps of the method embodiments, instructs the associated hardware to perform the method.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various changes or substitutions within the technical scope of the present application, and these should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An image dynamic detection method, characterized by comprising:
acquiring continuous frame images;
processing the continuous frame images to obtain binarized images;
obtaining parameters of a difference image according to the binarized image, the obtained current frequency and the obtained current times, wherein the parameters of the difference image comprise pixel duty ratio, the current frequency and the current times;
acquiring the detection time of the image under the condition that the parameters of the difference image do not meet the first specified condition;
and if the detection time exceeds the specified time, determining that the image is normal.
2. The method of image dynamic detection according to claim 1, wherein the processing the successive frame images to obtain binary images includes:
converting the continuous frame images to obtain single-channel gray level images of each frame;
calculating the difference between pixels corresponding to the continuous two-frame single-channel gray level images by using a frame difference method to obtain a difference image;
obtaining a structural element;
and performing expansion, corrosion and binarization processing on the difference value graph according to the structural elements to obtain a binarized image.
3. The method of image dynamic detection according to claim 1, wherein obtaining the pixel duty ratio in the image from the binarized image comprises:
determining the total pixel number and the target pixel number according to the binarized image;
and obtaining the pixel duty ratio in the image according to the total pixel number and the target pixel number.
4. The image dynamic detection method according to claim 1, further comprising:
and under the condition that the parameters of the difference image meet the first specified condition, determining that the image is jammed.
5. The image dynamic detection method according to claim 4, wherein the detecting time for acquiring the image in the case where the parameter of the difference image does not satisfy the first specified condition includes:
acquiring the detection time of the image under the condition that the current frequency is not more than or equal to the dynamic frequency;
or alternatively, the first and second heat exchangers may be,
acquiring the detection time of the image under the condition that the pixel duty ratio is not less than or equal to the dynamic duty ratio;
or alternatively, the first and second heat exchangers may be,
and under the condition that the current times are not more than the judgment times, acquiring the detection time of the image.
6. The method according to claim 5, wherein determining that the image is stuck if the parameters of the difference image satisfy the first specified condition comprises:
judging whether the pixel duty ratio is smaller than or equal to the dynamic duty ratio under the condition that the current frequency is larger than or equal to the dynamic frequency;
judging whether the current frequency is larger than or equal to the judging frequency under the condition that the pixel duty ratio is smaller than or equal to the dynamic duty ratio;
and under the condition that the current times is greater than or equal to the judgment times, determining that the image is jammed.
7. The image dynamic detection method according to claim 1, further comprising:
and re-acquiring continuous frame images and adjusting the current times under the condition that the detection time does not exceed the designated time.
8. An image dynamic detection apparatus, comprising:
the detection module is used for collecting and sending out video signals;
the video access module is electrically connected with the detection module and is used for acquiring video signals sent by the detection module;
the image acquisition module is electrically connected with the video access module and is used for acquiring images of the video signals acquired by the video access module to obtain continuous frame images;
the image processing module is electrically connected with the image acquisition module and is used for processing the continuous frame images to obtain a binarized image;
the image judging module is electrically connected with the image processing module and is used for obtaining parameters of a difference image according to the binarized image and the obtained current frequency and the obtained current times, wherein the parameters of the difference image comprise pixel duty ratio, the current frequency and the current times, the detection time of the image is obtained under the condition that the parameters of the difference image do not meet a first specified condition, and the image is determined to be normal under the condition that the detection time exceeds the specified time.
9. An electronic device, comprising: a processor and a memory in which instructions are stored, which instructions are loaded and executed by the processor to implement the method of claims 1 to 7.
10. A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method as claimed in claims 1-7.
CN202311733757.7A 2023-12-15 2023-12-15 Image dynamic detection method, device, equipment and storage medium Pending CN117745664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311733757.7A CN117745664A (en) 2023-12-15 2023-12-15 Image dynamic detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311733757.7A CN117745664A (en) 2023-12-15 2023-12-15 Image dynamic detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117745664A true CN117745664A (en) 2024-03-22

Family

ID=90260280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311733757.7A Pending CN117745664A (en) 2023-12-15 2023-12-15 Image dynamic detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117745664A (en)

Similar Documents

Publication Publication Date Title
CN110288599B (en) Dead pixel detection method and device, electronic equipment and storage medium
US11189019B2 (en) Method for detecting defects, electronic device, and computer readable medium
CN110599484B (en) Defect detection method, device and storage medium
CN116519707A (en) Lithium battery defect detection method and device based on machine vision and electronic equipment
CN113673454A (en) Remnant detection method, related device, and storage medium
CN113052019A (en) Target tracking method and device, intelligent equipment and computer storage medium
US11887315B2 (en) Method and apparatus for tracking an object
CN117745664A (en) Image dynamic detection method, device, equipment and storage medium
CN106971386B (en) Method and device for judging image integrity and page loading degree and client equipment
CN111091146A (en) Image similarity obtaining method and device, computer equipment and storage medium
CN113935966B (en) Slag point detection method, device and equipment for metal material and storage medium
CN110634124A (en) Method and equipment for area detection
CN112073713B (en) Video leakage test method, device, equipment and storage medium
CN113870754A (en) Method and system for judging defects of panel detection electronic signals
CN114677615A (en) Environment detection method and system
CN111667012B (en) Classification result correction method, device, correction equipment and readable storage medium
CN113628192A (en) Image blur detection method, device, apparatus, storage medium, and program product
US20100008542A1 (en) Object detection method and apparatus
CN112150385A (en) Infrared image filtering method and device
CN111833232A (en) Image processing device
CN114264933B (en) Fault detection method and fault detection system for integrated circuit board
CN112492293A (en) Image fuzzy diagnosis method and device and security central control equipment
CN116309563B (en) Method, device, medium, equipment and program product for detecting defect of panel edge
CN115601606B (en) Store state detection method, device, equipment and storage medium
CN111145674B (en) Display panel detection method, electronic device and storage medium

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