Camera damage detection method and system based on average optical flow gradient
A detection method and optical flow technology, which is applied in image data processing, complex mathematical operations, instruments, etc., can solve problems that cannot be comprehensive, sensors cannot detect occlusion, movement, and many objects, and achieve the effect of reducing labor costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] A camera failure detection method based on the average optical flow gradient, including the following steps:
[0068] S1, the camera captures the video image, acquires the current frame image and the previous frame image;
[0069] Generally speaking, when the camera works, it will collect a continuous frame sequence, that is, video, you can set the sampling interval as needed, such as 0.1 seconds, or directly use the continuous frame image sequence collected by the camera to obtain two adjacent frame images, wherein the current frame image is the frame image collected at t moment, and the previous frame image is the frame image collected at -1 moment.
[0070] S2, grayscale processing, to obtain the gray map of the current frame image and the gray map of the previous frame image;
[0071] In the present embodiment, the use of three primary colors (red, green, blue) and other proportions of each pixel of the image superimposed together to calculate the gray value, using the ...
other Embodiment approach
[0074] In other embodiments, the method of weighted averaging may also be used, each channel is set with different weights, calculating the grayscale value.
[0075] S3, enter the grayscale map of the current frame image and the grayscale plot of the previous frame image, calculate the dense optical flow field between the two frames of the image, and each point in the optical flow field is the displacement of the corresponding pixel point in the x and y directions;
[0076] The optical flow of the picture is defined as the movement mode of the object in the image between successive frames, which may be caused by the movement of the object or the camera, it can be expressed as a displacement vector in a two-dimensional vector field, representing the movement of pixels from one frame to another, also known as the optical flow vector. At present, there are many algorithms for optical flow calculation, according to the design needs of this application, choose to use the Farneback meth...
Embodiment 2
[0129] The present application also protects a camera damage detection system based on an average optical flow gradient, comprising:
[0130] Data acquisition module, connected with the camera, the camera acquires video images, and the data acquisition module acquires the current frame image and the previous frame image;
[0131] Pre-processing module, the image is grayscaled, and the grayscale diagram of the current frame image and the grayscale diagram of the previous frame image are obtained;
[0132] Optical flow field calculation module, taking the grayscale diagram of the current frame image and the grayscale diagram of the previous frame image as input, calculates the dense optical flow field between the two frames of the image, and each point in the optical flow field is the displacement of the corresponding pixel point in the x and y directions;
[0133] Optical Flow Amplitude Mean Calculation Module, based on dense optical flow field, calculate the mean optical flow ampl...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com