Methods and systems for video processing
AssigneeZhejiang Dahua Technology Co., Ltd.
InventorsDeqiang Cheng, Chunhuang Zheng, Jianfeng Wu
Life of this patent
Estimating the term…
Abstract
A method and a system for video processing, including: determining a target bounding box from an image frame in a video; determining a classification result of a subject in the target bounding box by processing the target bounding box using a recognition model; and determining one or more target image frames to be saved in the video based on the classification result.
Claims14
A method for video processing, comprising:
- determining a target bounding box from an image frame in a video;
- obtaining at least one candidate bounding box corresponding to at least one moving target from the image frame;
- obtaining a motion detection tracking sequence of each target frame in the video;
- and
- screening a candidate bounding box corresponding to a motion detection tracking sequence meeting a first preset condition, comprising:
- obtaining a minimum value of at least one number of intelligent detection frames of the at least one moving target in at least one historical image frame, the number of intelligent detection frame indicating a count of times that at least one associated bounding box corresponding to the candidate bounding box from the at least one historical image frame in the video is processed by a recognition model;
- determining whether the number of the minimum value is greater than one;
- selecting a candidate bounding box corresponding to the minimum value as the target bounding box if the number of minimum values is not greater than one;
- obtaining a maximum value of background difference values of the at least one candidate bounding box corresponding to the minimum value if the number of minimum values is greater than one, the background difference value indicating an absolute value of a pixel difference between a current frame image and a background image;
- and
- selecting a candidate bounding box corresponding to the maximum value of background difference values as the target bounding box;
- determining a classification result of a subject in the target bounding box by processing the target bounding box using the recognition model;
- and
- determining one or more target image frames to be saved in the video based on the classification result.
A system for video processing, comprising:
- at least one storage device including a set of instructions;
- and
- at least one processor configured to communicate with the at least one storage device, wherein when executing the set of instructions, the at least one processor is configured to direct the system to perform operations including:
- determining a target bounding box from an image frame in a video;
- obtaining at least one candidate bounding box corresponding to at least one moving target from the image frame;
- obtaining a motion detection tracking sequence of each target frame in the video;
- and
- screening a candidate bounding box corresponding to a motion detection tracking sequence meeting a first preset condition, comprising:
- obtaining a minimum value of at least one number of intelligent detection frames of the at least one moving target in at least one historical image frame, the number of intelligent detection frame indicating a count of times that at least one associated bounding box corresponding to the candidate bounding box from the at least one historical image frame in the video is processed by a recognition model;
- determining whether the number of the minimum value is greater than one;
- selecting a candidate bounding box corresponding to the minimum value as the target bounding box if the number of minimum values is not greater than one;
- obtaining a maximum value of background difference values of the at least one candidate bounding box corresponding to the minimum value if the number of minimum values is greater than one, the background difference value indicating an absolute value of a pixel difference between a current frame image and a background image;
- and
- selecting a candidate bounding box corresponding to the maximum value of background difference values as the target bounding box;
- determining a classification result of a subject in the target bounding box by processing the target bounding box using the recognition model;
- and
- determining one or more target image frames to be saved in the video based on the classification result.
A non-transitory computer readable medium, comprising executable instructions that, when executed by at least one processor, direct the at least one processor to perform a method, the method comprising:
- determining a target bounding box from an image frame in a video;
- obtaining at least one candidate bounding box corresponding to at least one moving target from the image frame;
- obtaining a motion detection tracking sequence of each target frame in the video;
- and
- screening a candidate bounding box corresponding to a motion detection tracking sequence meeting a first preset condition, comprising:
- obtaining a minimum value of at least one number of intelligent detection frames of the at least one moving target in at least one historical image frame, the number of intelligent detection frame indicating a count of times that at least one associated bounding box corresponding to the candidate bounding box from the at least one historical image frame in the video is processed by a recognition model;
- determining whether the number of the minimum value is greater than one;
- selecting a candidate bounding box corresponding to the minimum value as the target bounding box if the number of minimum values is not greater than one;
- obtaining a maximum value of background difference values of the at least one candidate bounding box corresponding to the minimum value if the number of minimum values is greater than one, the background difference value indicating an absolute value of a pixel difference between a current frame image and a background image;
- and
- selecting a candidate bounding box corresponding to the maximum value of background difference values as the target bounding box;
- determining a classification result of a subject in the target bounding box by processing the target bounding box using the recognition model;
- and
- determining one or more target image frames to be saved in the video based on the classification result.
Dependencies are inferred from the claim text.