CN113822223A - Method and device for detecting shielding movement of camera - Google Patents

Method and device for detecting shielding movement of camera Download PDF

Info

Publication number
CN113822223A
CN113822223A CN202111187567.0A CN202111187567A CN113822223A CN 113822223 A CN113822223 A CN 113822223A CN 202111187567 A CN202111187567 A CN 202111187567A CN 113822223 A CN113822223 A CN 113822223A
Authority
CN
China
Prior art keywords
value
image
camera
gray
judgment threshold
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
CN202111187567.0A
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.)
Jingying Digital Technology Co Ltd
Original Assignee
Jingying Digital Technology 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 Jingying Digital Technology Co Ltd filed Critical Jingying Digital Technology Co Ltd
Priority to CN202111187567.0A priority Critical patent/CN113822223A/en
Publication of CN113822223A publication Critical patent/CN113822223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Abstract

The invention relates to a method and a device for detecting shielding movement of a camera. The method comprises the following steps: respectively extracting front and rear frame images of a video acquired by a camera, and performing gray level processing on the images to obtain gray level images; obtaining a difference image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method; carrying out binarization processing on the difference image to obtain a binary image; and judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray scale value of 255 in the binary image and a judgment threshold value. According to the scheme provided by the invention, whether the camera is blocked or moved can be accurately judged by processing the video image collected by the camera, so that a backstage operation and maintenance worker can take measures in time, the monitoring quality of the camera is ensured, and the subsequent image identification processing process is facilitated.

Description

Method and device for detecting shielding movement of camera
Technical Field
The invention relates to the field of image identification and safety supervision, in particular to a method and a device for detecting shielding movement of a camera.
Background
With the rapid development of machine vision technology, the use of machine vision instead of human eyes has become a trend of intelligent development in various industries, machine vision mainly depends on real-time pictures transmitted by a camera in the monitoring process to perform further image recognition processing, but in the process of realizing the real-time monitoring of the camera, the situation that the camera is shielded or moves unnaturally may occur, the monitoring quality of the camera is affected, and difficulty is caused in the subsequent image recognition processing process.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a method and a device for detecting the shielding movement of a camera.
According to a first aspect of the embodiments of the present invention, there is provided a method for detecting a movement of a camera by occlusion, including:
respectively extracting front and rear frame images of a video acquired by a camera, and performing gray level processing on the images to obtain gray level images;
obtaining a difference image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
carrying out binarization processing on the difference image to obtain a binary image;
and judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray scale value of 255 in the binary image and a judgment threshold value.
Further, the judgment threshold includes an image movement value and an occlusion value;
the judging whether the camera is sheltered or moved according to the comparison result of the number of the pixels with the gray scale value of 255 in the binary image and the judging threshold value specifically comprises:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
Further, before judging whether the camera is shielded or moved according to the comparison result between the number of the pixel points with the gray scale value of 255 in the binary image and a preset threshold, the method further comprises:
counting the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame of image, comparing the counted number with the pixel value of the image, and determining a judgment threshold value according to the comparison result.
Further, the determining a judgment threshold according to the comparison result specifically includes:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for detecting a movement of a camera by occlusion, including:
the gray processing module is used for respectively extracting front and rear two frames of images of a video collected by the camera and carrying out gray processing on the images to obtain gray images;
the difference value processing module is used for obtaining a difference value image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
the binarization module is used for carrying out binarization processing on the difference image to obtain a binary image;
and the comparison and judgment module is used for judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the judgment threshold value.
Further, the judgment threshold includes an image movement value and an occlusion value;
the comparison and judgment module is specifically configured to:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
Further, the apparatus further comprises:
and the judgment threshold value determining module is used for counting the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame of image before the comparison judging module judges whether the camera is blocked or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the preset threshold value, comparing the counted number with the pixel value of the image, and determining the judgment threshold value according to the comparison result.
Further, the judgment threshold determining module is specifically configured to:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
According to a third aspect of the embodiments of the present invention, there is provided a terminal device, including:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method as described above.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
according to the invention, whether the camera is blocked or moved can be accurately judged by processing the video image collected by the camera, so that a backstage operation and maintenance worker can take measures in time, the monitoring quality of the camera is ensured, and the subsequent image identification processing process is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts throughout.
FIG. 1 is a schematic flow diagram illustrating a method for detecting movement of a camera head through occlusion in accordance with an exemplary embodiment of the invention;
FIG. 2 is a block diagram illustrating an apparatus for detecting movement of a camera by occlusion according to an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a computing device according to an exemplary embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that, although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for detecting a camera head occlusion movement according to an exemplary embodiment of the present invention.
Referring to fig. 1, the method includes:
110. respectively extracting front and rear frame images of a video acquired by a camera, and performing gray level processing on the images to obtain gray level images;
120. obtaining a difference image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
130. carrying out binarization processing on the difference image to obtain a binary image;
140. and judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray scale value of 255 in the binary image and a judgment threshold value.
Specifically, in this embodiment, a difference image of gray level images of two previous and next frames of images may be obtained by using an Opencv absdiff frame difference method, further, an Opencv threshold may be selected to filter noise in a difference matrix of the difference image to obtain a neat difference matrix, where the filtering method may specifically use a THRESH _ BINARY method.
The specific process of carrying out binarization processing on the difference image to obtain a binary image is as follows: a judgment threshold is given in advance, each pixel point in the difference image is judged, if the gray value of the pixel point is larger than the threshold, the gray value of the pixel point is changed into 255, otherwise, the gray value of the pixel point is changed into 0, after all the pixel points in the difference image are judged, the pixel points with the gray value equal to 255 are counted, and therefore the number of the pixel points with larger gray value difference in the two frames of images before and after the pixel points are obtained, and the number can be recorded as a differential _ count.
Generally, when a camera is shielded, the difference between the gray values of the pixel points of the two frames of images is large, so that the value of the differential _ count is large, and when the camera is moved, the value of the differential _ count is smaller than that of the shielded time, so that the differential _ count can be compared with a judgment threshold value, and whether the camera is shielded or moved is judged according to the comparison result.
According to the method for detecting the shielding movement of the camera, provided by the embodiment of the invention, whether the camera is shielded or moved can be accurately judged by processing the video image acquired by the camera, so that a backstage operation and maintenance worker can take measures in time, the monitoring quality of the camera is ensured, and the subsequent image identification processing process is facilitated.
Optionally, in this embodiment, the determination threshold includes an image movement value and an occlusion value;
step 140 specifically includes:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
In this embodiment, when judging that the camera is removed or is sheltered from, the video of still can intercepting duration of presetting is saved as the evidence, and when judging that the camera does not take place to be removed or is sheltered from, the video of also can intercepting duration of presetting is saved as the evidence.
Optionally, as an embodiment of the present invention, the method includes:
210. respectively extracting front and rear frame images of a video acquired by a camera, and performing gray level processing on the images to obtain gray level images;
220. obtaining a difference image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
230. carrying out binarization processing on the difference image to obtain a binary image;
240. counting the number of pixel points with the gray value larger than a preset value in the gray image of the previous frame of image, comparing the counted number with the pixel value of the image, and determining a judgment threshold value according to the comparison result;
250. and judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray scale value of 255 in the binary image and a judgment threshold value.
Specifically, the inventor finds in research that in some specific scenes or time periods (such as indoor or underground dark places or nights), due to different lighting conditions, if a fixed judgment threshold is adopted, situations such as a wrong judgment of whether the camera is blocked and moved or a camera abnormality cannot be judged may occur, and for this phenomenon, in this embodiment, the judgment threshold may be adaptively changed according to the brightness of an image acquired by the camera to recover the function of normal judgment, and the specific implementation steps are that after a grayscale image of video capture is acquired each time: the method comprises the steps of firstly counting the number of pixel points with gray values larger than a preset value in an image, comparing the counted number with the pixel value of the image, wherein the pixel value of the image can be obtained through a get function, the ratio of the counted number to the pixel value of the image respectively corresponds to different judgment thresholds, the two are in positive correlation, namely the smaller the ratio is, the smaller the corresponding judgment threshold is, and otherwise, the larger the judgment threshold is, so that the judgment threshold can be adaptively changed along with the brightness of the image.
Optionally, in this embodiment, the process of determining the judgment threshold according to the comparison result in step 240 specifically includes:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
Specifically, for example, if the occlusion determination threshold range is 0.2 to 0.8, the movement determination threshold range is 0.1 to 0.4, and the ratio of the statistics to the pixel value is 30%, the current occlusion determination threshold is 0.2+0.6 × 30% to 0.38, and the current movement determination threshold is 0.1+0.3 × 30% to 0.19, and the updated threshold is reused for determining the moving occlusion of the camera.
In correspondence with the above method embodiments, this embodiment provides an apparatus for detecting the movement of a camera by occlusion, and fig. 2 is a block diagram of the apparatus according to an exemplary embodiment of the present invention.
Referring to fig. 2, the apparatus includes:
the gray processing module is used for respectively extracting front and rear two frames of images of a video collected by the camera and carrying out gray processing on the images to obtain gray images;
the difference value processing module is used for obtaining a difference value image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
the binarization module is used for carrying out binarization processing on the difference image to obtain a binary image;
and the comparison and judgment module is used for judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the judgment threshold value.
Optionally, in this embodiment, the determination threshold includes an image movement value and an occlusion value;
the comparison and judgment module is specifically configured to:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
Optionally, in this embodiment, the apparatus further includes:
and the judgment threshold value determining module is used for counting the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame of image before the comparison judging module judges whether the camera is blocked or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the preset threshold value, comparing the counted number with the pixel value of the image, and determining the judgment threshold value according to the comparison result.
Optionally, in this embodiment, the judgment threshold determining module is specifically configured to:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 3 is a schematic diagram illustrating a computing device according to an exemplary embodiment of the present invention.
Referring to fig. 3, computing device 300 includes memory 310 and processor 320.
The Processor 320 may be a Central Processing Unit (CPU), other general purpose Processor, 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, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 310 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. Wherein the ROM may store static data or instructions for the processor 320 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory 310 may comprise any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 310 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, dual layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disc, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 310 has stored thereon executable code that, when processed by the processor 320, may cause the processor 320 to perform some or all of the methods described above.
The aspects of the invention have been described in detail hereinabove with reference to the drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required by the invention. In addition, it can be understood that the steps in the method according to the embodiment of the present invention may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the device according to the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the invention may also be implemented as a computer program or computer program product comprising computer program code instructions for carrying out some or all of the steps of the above-described method of the invention.
Alternatively, the invention may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or computing device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the invention.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for detecting movement of a camera relative to a mask, comprising:
respectively extracting front and rear frame images of a video acquired by a camera, and performing gray level processing on the images to obtain gray level images;
obtaining a difference image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
carrying out binarization processing on the difference image to obtain a binary image;
and judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray scale value of 255 in the binary image and a judgment threshold value.
2. The method according to claim 1, wherein the decision threshold comprises an image movement value and an occlusion value;
the judging whether the camera is sheltered or moved according to the comparison result of the number of the pixels with the gray scale value of 255 in the binary image and the judging threshold value specifically comprises:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
3. The method according to claim 2, wherein before determining whether the camera is blocked or moved according to the comparison result between the number of pixels with a gray scale value of 255 in the binary image and a preset threshold, the method further comprises:
counting the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame of image, comparing the counted number with the pixel value of the image, and determining a judgment threshold value according to the comparison result.
4. The method according to claim 3, wherein the determining a judgment threshold according to the comparison result specifically includes:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
5. An apparatus for detecting movement of a camera by occlusion, comprising:
the gray processing module is used for respectively extracting front and rear two frames of images of a video collected by the camera and carrying out gray processing on the images to obtain gray images;
the difference value processing module is used for obtaining a difference value image of the gray level images of the front frame image and the rear frame image by adopting a frame difference method;
the binarization module is used for carrying out binarization processing on the difference image to obtain a binary image;
and the comparison and judgment module is used for judging whether the camera is shielded or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the judgment threshold value.
6. The apparatus according to claim 5, wherein the determination threshold includes an image movement value and an occlusion value;
the comparison and judgment module is specifically configured to:
if the number of the pixel points with the gray scale value of 255 in the binary image is greater than or equal to the image movement value and less than or equal to the shielding value, judging that the camera is moved;
and if the number of the pixel points with the gray scale value of 255 in the binary image is larger than the shielding value, judging that the camera is shielded.
7. The apparatus of claim 6, further comprising:
and the judgment threshold value determining module is used for counting the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame of image before the comparison judging module judges whether the camera is blocked or moved according to the comparison result of the number of the pixel points with the gray value of 255 in the binary image and the preset threshold value, comparing the counted number with the pixel value of the image, and determining the judgment threshold value according to the comparison result.
8. The apparatus of claim 7, wherein the determination threshold determining module is specifically configured to:
setting the value range of the movement judgment threshold value as [ a, b ], the value range of the shielding judgment threshold value as [ c, d ], and the ratio of the number of pixel points with the gray value larger than the preset value in the gray image of the previous frame image to the pixel value of the image as k, then
The current movement judgment threshold value m is a + k (b-a), and the current occlusion judgment threshold value n is c + k (d-c);
and multiplying the image pixel value by the current movement judgment threshold value to obtain the image movement value, and multiplying the image pixel value by the current shielding judgment threshold value to obtain the shielding value.
9. A terminal device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-4.
10. A non-transitory machine-readable storage medium having executable code stored thereon, wherein the executable code, when executed by a processor of an electronic device, causes the processor to perform the method of any of claims 1-4.
CN202111187567.0A 2021-10-12 2021-10-12 Method and device for detecting shielding movement of camera Pending CN113822223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111187567.0A CN113822223A (en) 2021-10-12 2021-10-12 Method and device for detecting shielding movement of camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111187567.0A CN113822223A (en) 2021-10-12 2021-10-12 Method and device for detecting shielding movement of camera

Publications (1)

Publication Number Publication Date
CN113822223A true CN113822223A (en) 2021-12-21

Family

ID=78920155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111187567.0A Pending CN113822223A (en) 2021-10-12 2021-10-12 Method and device for detecting shielding movement of camera

Country Status (1)

Country Link
CN (1) CN113822223A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114943938A (en) * 2022-07-26 2022-08-26 珠海视熙科技有限公司 Passenger flow statistical method, device, system and medium
CN115311217A (en) * 2022-07-26 2022-11-08 珠海视熙科技有限公司 Method, device, system and medium for monitoring camera lens shielding
CN115861624A (en) * 2023-03-03 2023-03-28 天津所托瑞安汽车科技有限公司 Method, device and equipment for detecting shielding of camera and storage medium
WO2024065389A1 (en) * 2022-09-29 2024-04-04 京东方科技集团股份有限公司 Method and system for detecting camera interference, and electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114943938A (en) * 2022-07-26 2022-08-26 珠海视熙科技有限公司 Passenger flow statistical method, device, system and medium
CN115311217A (en) * 2022-07-26 2022-11-08 珠海视熙科技有限公司 Method, device, system and medium for monitoring camera lens shielding
CN115311217B (en) * 2022-07-26 2023-10-31 珠海视熙科技有限公司 Method, device, system and medium for monitoring shielding of camera lens
WO2024065389A1 (en) * 2022-09-29 2024-04-04 京东方科技集团股份有限公司 Method and system for detecting camera interference, and electronic device
CN115861624A (en) * 2023-03-03 2023-03-28 天津所托瑞安汽车科技有限公司 Method, device and equipment for detecting shielding of camera and storage medium

Similar Documents

Publication Publication Date Title
CN113822223A (en) Method and device for detecting shielding movement of camera
CN109118498B (en) Camera stain detection method, device, equipment and storage medium
US7957592B2 (en) Video object segmentation method and system
US20070147697A1 (en) Method for removing noise in image and system thereof
CN109784487B (en) Deep learning network for event detection, training device and method of deep learning network
CN111027546B (en) Character segmentation method, device and computer readable storage medium
CN107295296B (en) Method and system for selectively storing and recovering monitoring video
WO2023039781A1 (en) Method for detecting abandoned object, apparatus, electronic device, and storage medium
CN100375530C (en) Movement detecting method
CN114897762B (en) Automatic positioning method and device for coal mining machine on coal mine working face
CN113808135B (en) Image brightness abnormality detection method, electronic device, and storage medium
CN108107611B (en) Self-adaptive defect detection method and device and electronic equipment
CN111160340B (en) Moving object detection method and device, storage medium and terminal equipment
JPH07249128A (en) Picture processor for vehicle
CN112883783A (en) Video concentration method and device, terminal equipment and storage medium
CN114998283A (en) Lens blocking object detection method and device
CN115546256A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113239738B (en) Image blurring detection method and blurring detection device
CN112183158B (en) Cereal type identification method of cereal cooking equipment and cereal cooking equipment
CN111598943B (en) Book in-place detection method, device and equipment based on book auxiliary reading equipment
JP3377180B2 (en) Image recognition device
CN113674316A (en) Video noise reduction method, device and equipment
CN115861624B (en) Method, device, equipment and storage medium for detecting occlusion of camera
CN112749677A (en) Method and device for identifying mobile phone playing behaviors and electronic equipment
JP6877501B2 (en) Retention detection device, retention detection method and retention detection program

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