A picture recognition processing method based on image detection and model analysis

By screening and preprocessing the moving and non-moving images in the image sequence, and merging their features and then inputting them into the CNN model, the problem of low image recognition accuracy and poor adaptability in the existing technology is solved, and a more efficient image recognition effect is achieved.

CN118552880BActive Publication Date: 2024-10-01JIANGSU HUIZHI INTELLIGENT DIGITAL TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411008938.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

In the existing technology, image recognition accuracy is low and adaptability is poor, and moving images and non-moving images cannot be effectively combined, resulting in poor recognition results.

Method used

By acquiring the video to be processed, setting fixed continuous frames, splitting the image sequence into multiple segments, screening moving images and non-moving images, using moving particles for image preprocessing, merging dynamic and static features, and inputting them into the CNN model for processing. Identify.

Benefits of technology

It improves the accuracy and adaptability of image recognition, enhances the reliability of recognition results, and ensures efficient operation of image recognition processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552880B_ABST
    Figure CN118552880B_ABST
Patent Text Reader

Abstract

The present invention discloses a picture recognition processing method based on image detection and model analysis, and relates to the technical field of image recognition processing. Split a continuous frame image sequence into multiple continuous image sequence segments; determine the feature points of each image in the image sequence segment, determine the non-motion image, perform image preprocessing on the motion image in combination with motion particles, and determine the motion image and non-motion image in the same situation by comparing multiple sub-parts of the motion image and the non-motion image; fuse the dynamic features and the static features, and input the fused features into a preset CNN model, output the image recognition result, and mark the image recognition result at the corresponding position of the image. In this way, the accuracy and efficiency of motion image recognition are improved. Input the fused features into the preset CNN model, output the image recognition result, improve the reliability and accuracy of image recognition, expand the adaptability of image recognition, and ensure the efficient operation of image recognition processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition processing, and in particular to a picture recognition processing method based on image detection and model analysis. Background Art

[0002] The background technology of the image recognition processing solution based on image detection and model analysis mainly comes from the fields of computer vision and machine learning. The development of computer vision technology enables the automatic extraction and analysis of information such as objects, scenes, and behaviors in images, while the development of machine learning, especially deep learning technology, enables model analysis to achieve a deep understanding and interpretation of image content.

[0003] Through deep learning models, hierarchical feature representations can be extracted from images, thereby achieving tasks such as classification, recognition, and labeling of image content. In addition, combined with motion detection, image segmentation and other technologies, real-time monitoring and analysis of dynamic scenes can be achieved.

[0004] In the prior art, image recognition is often performed based on only one of the moving image or the non-moving image, and the moving image or the non-moving image cannot be reliably combined, resulting in low image recognition accuracy and poor adaptability.

[0005] Therefore, how to combine moving images and non-moving images to improve image recognition accuracy and adaptability is a technical problem that needs to be solved. Summary of the invention

[0006] The purpose of the present invention is to solve the problems of low image recognition accuracy and poor adaptability in the prior art, and to propose a picture recognition processing method based on image detection and model analysis.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A picture recognition processing method based on image detection and model analysis, comprising:

[0009] Acquire a video to be processed, obtain a continuous frame image sequence according to the video to be processed, set a fixed continuous frame according to the attribute of the continuous frame image sequence, and split the continuous frame image sequence into a plurality of continuous image sequence segments according to the fixed continuous frame;

[0010] Determine the feature points of each image in the image sequence segment, and filter the moving images by calculating the motion vector of each image feature point between consecutive frames, determine the non-moving images on the image sequence segment according to the moving images, determine a plurality of moving particles through the moving images, perform image preprocessing on the moving images in combination with the moving particles, and form a to-be-processed image sequence with the preprocessed moving images and non-moving images according to the frame order;

[0011] The images in the image sequence to be processed are divided into a plurality of sub-parts, and the moving images and the non-moving images in the same situation are determined by comparing the plurality of sub-parts of the moving images and the non-moving images, and the moving images and the non-moving images in the same situation are marked in the image sequence to be processed, so as to obtain a plurality of image sequences to be processed in different situations;

[0012] The dynamic features and static features in each image sequence to be processed are extracted, the dynamic features and static features are fused to obtain fused features, and the fused features are input into the preset CNN model, the image recognition results are output, and the image recognition results are marked at the corresponding positions of the image.

[0013] In some embodiments of the present application, a fixed continuous frame is set by an attribute of a continuous frame image sequence, and the continuous frame image sequence is split into a plurality of continuous image sequence segments according to the fixed continuous frame, including:

[0014] The properties of the continuous frame image sequence include the time length and frame rate of the continuous frame image sequence;

[0015] The total number of frames of the continuous frame image sequence is determined according to the time length and frame rate of the continuous frame image sequence, a fixed number of continuous frames is set according to the total number of frames of the continuous frame image sequence, and the continuous frame image sequence is split into multiple continuous image sequence segments according to the fixed number of continuous frames, and the number of frames of each continuous image sequence segment is the same as the number of fixed continuous frames.

[0016] In some embodiments of the present application, determining feature points of each image in an image sequence segment, and filtering motion images by calculating motion vectors of each image feature point between consecutive frames, and determining non-motion images in the image sequence segment based on the motion images, includes:

[0017] The feature points of each image in the image sequence segment are extracted by SIFT, SURF and HOG, and the preliminary motion area in the image is screened out according to the motion vectors between the feature points in the images of consecutive frames;

[0018] Calculate the motion vector of each pixel in the preliminary motion area in continuous frames to determine the motion area, and take the image containing the motion area as the motion image, and the rest of the images as the non-motion images to be screened;

[0019] If there is a non-moving image to be screened between the moving images, the distance between the two moving images is recorded as the frame interval, and several non-moving images to be screened in the middle and at both ends of the frame interval are regarded as non-moving images;

[0020] If there are non-moving images to be screened at both ends of the image sequence segment, all the non-moving images to be screened between the two ends of the image sequence segment and the first moving image are regarded as non-moving images.

[0021] In some embodiments of the present application, a plurality of moving particles are determined by a moving image, and image preprocessing is performed on the moving image in combination with the moving particles, including:

[0022] A plurality of first moving particles and second moving particles are defined according to the conditions of the preliminary moving area and the moving area in the moving image, and a third moving particle of the same kind is determined by using the first moving particles and the second moving particles of the same kind;

[0023] ;

[0024] in, is the size of the third moving particle of the i-th type, is the size of the first moving particle of the i-th species, is the size of the second moving particle of the i-th type, is the absolute value of the difference between the first moving particle and the second moving particle of the i-th type, is a preset constant;

[0025] Perform normalization processing on each type of third motion particles, and integrate each type of third motion particles to obtain comprehensive motion particles;

[0026] ;

[0027] in, is the comprehensive moving particle, n is the number of moving particles, is the motion weight of the third moving particle of the i-th type, The size of the initial integrated moving particle is obtained by mapping the motion influence of all third moving particles. is the size of the initial integrated moving particle;

[0028] The noise and contrast conditions of the motion image are obtained, and the initial denoising intensity and the initial contrast adjustment amount are determined. The initial denoising intensity and the initial contrast adjustment amount are corrected by comprehensive motion particles to obtain the target denoising intensity and the target contrast adjustment amount. The motion image is preprocessed by the target denoising intensity and the target contrast adjustment amount.

[0029] In some embodiments of the present application, before performing image preprocessing on the motion image in combination with the motion particles, the method further includes:

[0030] The noise and contrast conditions of the non-motion image are obtained, and the denoising intensity and contrast adjustment amount are determined, and the non-motion image is preprocessed by the denoising intensity and contrast adjustment amount.

[0031] In some embodiments of the present application, the moving image and the non-moving image in the same context are determined by comparing multiple sub-parts of the moving image and the non-moving image, including:

[0032] The plurality of sub-parts include a background part and an object part, and the similarity between the background part and the object part of the moving image and the non-moving image within a time stamp range is compared, so as to determine the moving image and the non-moving image in the same situation;

[0033] ;

[0034] in, is the similarity between the motion image a and the non-motion image b, is the comprehensive similarity of the consistency of the object part and the background part of the moving image a and the non-moving image b, is the similarity of the position change of the object part between the moving image a and the non-moving image b, is the similarity of the comprehensive image features of the object part and the background part of the moving image a and the non-moving image b, , , They are multiple different similarity weights. is the difference in timestamps between the moving image a and the non-moving image b, is the correction coefficient corresponding to the time difference;

[0035] When the similarity is greater than the similarity threshold, the motion image and the non-motion image are in the same scene.

[0036] In some embodiments of the present application, dynamic features and static features are fused to obtain fused features, including:

[0037] A feature sequence is generated according to the time sequence of dynamic features and static features, and the dynamic features and static features are represented in the form of vectors. The dynamic features and static features are weighted and spliced ​​together to form fusion features.

[0038] In some embodiments of the present application, outputting the image recognition result and marking the image recognition result at the corresponding position of the image includes:

[0039] The image recognition result includes object area and object attributes, and the corresponding object attributes are marked at the object area position.

[0040] By applying the above technical solution, a video to be processed is obtained, a continuous frame image sequence is obtained according to the video to be processed, a fixed continuous frame is set according to the attributes of the continuous frame image sequence, and the continuous frame image sequence is split into multiple continuous image sequence segments according to the fixed continuous frame; the feature points of each image in the image sequence segment are determined, and the motion image is screened by calculating the motion vector of each image feature point between continuous frames, a non-motion image is determined on the image sequence segment according to the motion image, a plurality of motion particles are determined according to the motion image, and the motion image is preprocessed in combination with the motion particles, and the preprocessed motion image and non-motion image are sorted according to the frame Sequentially compose a sequence of images to be processed; divide the images in the sequence of images to be processed into multiple sub-parts, determine the moving images and non-moving images in the same situation by comparing the multiple sub-parts of the moving images and non-moving images, and mark the moving images and non-moving images in the same situation in the sequence of images to be processed, and obtain multiple sections of image sequences to be processed in different situations; extract dynamic features and static features in each section of the image sequence to be processed, fuse the dynamic features and static features to obtain fused features, and input the fused features into a preset CNN model, output image recognition results, and mark the image recognition results at the corresponding positions of the images. The present application screens moving images and non-moving images by calculating the motion vector of each image feature point between consecutive frames, thereby improving the accuracy and efficiency of moving image recognition. The image preprocessing of moving images is combined with moving particles, which improves the adaptability of moving image preprocessing and provides a stable foundation for subsequent image feature extraction and model input. By comparing multiple sub-parts of moving images and non-moving images to determine the moving images and non-moving images in the same situation, the associated moving images and non-moving images are effectively integrated together. The fused features are input into the preset CNN model and the image recognition results are output, which improves the reliability and accuracy of image recognition, expands the adaptability of image recognition, and ensures the efficient operation of image recognition processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a process flow of a picture recognition processing method based on image detection and model analysis proposed by the present invention;

[0042] Figure 2 A flowchart of the training process of the CNN model proposed in the present invention. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0044] Reference Figure 1, a picture recognition processing method based on image detection and model analysis, comprising the following steps:

[0045] Step S101, obtaining a video to be processed, obtaining a continuous frame image sequence according to the video to be processed, setting a fixed continuous frame according to the attributes of the continuous frame image sequence, and dividing the continuous frame image sequence into a plurality of continuous image sequence segments according to the fixed continuous frame.

[0046] In this embodiment, the images in the video exist in a continuous frame sequence, and each frame is a complete image, including the video screen at a certain moment. Based on the total length and frame rate of the video, the total number of frames in the video is calculated. For example, if the total length of the video is 100 seconds and the frame rate is 30fps, the total number of frames is 3000 frames, that is, there are 3000 images. Fixed continuous frames refer to the best number of frames that can capture motion or dynamics. For example, in 3000 frames, the fixed continuous frames can be set to 50 frames, so that the dynamic situation of the image can be captured in many 50 frames as much as possible. The continuous image sequence segment here means that each segment is 50 frames. There are many such segments, and all image sequence segments are integrated into a complete continuous frame image sequence.

[0047] In some embodiments of the present application, a fixed continuous frame is set by an attribute of a continuous frame image sequence, and the continuous frame image sequence is split into a plurality of continuous image sequence segments according to the fixed continuous frame, including:

[0048] The properties of the continuous frame image sequence include the time length and frame rate of the continuous frame image sequence;

[0049] The total number of frames of the continuous frame image sequence is determined according to the time length and frame rate of the continuous frame image sequence, a fixed number of continuous frames is set according to the total number of frames of the continuous frame image sequence, and the continuous frame image sequence is split into multiple continuous image sequence segments according to the fixed number of continuous frames, and the number of frames of each continuous image sequence segment is the same as the number of fixed continuous frames.

[0050] In this embodiment, different total frame numbers correspond to different fixed continuous frame numbers.

[0051] Step S102, determining the feature points of each image in the image sequence segment, and filtering the moving images by calculating the motion vector of each image feature point between consecutive frames, determining the non-moving images on the image sequence segment according to the moving images, determining a plurality of moving particles through the moving images, performing image preprocessing on the moving images in combination with the moving particles, and combining the preprocessed moving images and non-moving images into a to-be-processed image sequence in frame order.

[0052] In this embodiment, the preliminary motion region is first determined by a feature point-based method, and then a more sophisticated optical flow method is used to calculate the change of each pixel in the preliminary motion region, so as to determine the motion region and the motion image, thereby improving the efficiency of motion image recognition. Motion particles refer to indicators that can characterize the motion between multiple images, so as to help denoise and adjust the contrast of motion images.

[0053] In some embodiments of the present application, determining feature points of each image in an image sequence segment, and filtering motion images by calculating motion vectors of each image feature point between consecutive frames, and determining non-motion images in the image sequence segment based on the motion images, includes:

[0054] The feature points of each image in the image sequence segment are extracted by SIFT, SURF and HOG, and the preliminary motion area in the image is screened out according to the motion vectors between the feature points in the images of consecutive frames;

[0055] Calculate the motion vector of each pixel in the preliminary motion area in continuous frames to determine the motion area, and take the image containing the motion area as the motion image, and the rest of the images as the non-motion images to be screened;

[0056] If there is a non-moving image to be screened between the moving images, the distance between the two moving images is recorded as the frame interval, and several non-moving images to be screened in the middle and at both ends of the frame interval are regarded as non-moving images;

[0057] If there are non-moving images to be screened at both ends of the image sequence segment, all the non-moving images to be screened between the two ends of the image sequence segment and the first moving image are regarded as non-moving images.

[0058] In this embodiment, the feature-based method uses specific visual features to identify and track objects. Feature points can be points extracted by algorithms such as SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features), HOG (Histogram of Directed Gradients), etc. These algorithms can extract points with unique properties from images, such as edges, corners, textures, etc. The preliminary motion area in the image is screened out based on the motion vectors between feature points on the images of consecutive frames. By judging the degree of change of the motion vectors between feature points of different images, if the change is large, it can be considered that there is a change. Calculate the motion vector of each pixel in the preliminary motion area under continuous frames to determine the motion area (the optical flow method is the same, except that each pixel in the area is calculated).

[0059] It should be noted that, because the motion image is determined by calculating the changes between multiple images, the determined motion image is often a continuous multiple frames.

[0060] In this embodiment, the non-moving image is a still image or an image with small motion changes. There are a large number of such images, and there are many repeated and meaningless redundant images. Such images need to be screened here. If there are non-moving images to be screened between moving images, when there are non-moving images to be screened between two moving images, it is necessary to retain the non-moving images to be screened adjacent to the moving image and the non-moving images to be screened in the middle that can reflect the changes, and treat these two images as non-moving images. The images at both ends may represent the moving images on both sides to a certain extent, so they are retained. There are non-moving images to be screened at both ends of the image sequence segment, and the images here may represent the situation of the previous or next image sequence segment, so the images are retained.

[0061] In some embodiments of the present application, a plurality of moving particles are determined by a moving image, and image preprocessing is performed on the moving image in combination with the moving particles, including:

[0062] A plurality of first moving particles and second moving particles are defined according to the conditions of the preliminary moving area and the moving area in the moving image, and a third moving particle of the same kind is determined by using the first moving particles and the second moving particles of the same kind;

[0063] ;

[0064] in, is the size of the third moving particle of the i-th type, is the size of the first moving particle of the i-th species, is the size of the second moving particle of the i-th type, is the absolute value of the difference between the first moving particle and the second moving particle of the i-th type, is a preset constant;

[0065] Perform normalization processing on each type of third motion particles, and integrate each type of third motion particles to obtain comprehensive motion particles;

[0066] ;

[0067] in, is the comprehensive moving particle, n is the number of moving particles, is the motion weight of the third moving particle of the i-th type, The size of the initial integrated moving particle is obtained by mapping the motion influence of all third moving particles. is the size of the initial integrated moving particle;

[0068] The noise and contrast conditions of the motion image are obtained, and the initial denoising intensity and the initial contrast adjustment amount are determined. The initial denoising intensity and the initial contrast adjustment amount are corrected by comprehensive motion particles to obtain the target denoising intensity and the target contrast adjustment amount. The motion image is preprocessed by the target denoising intensity and the target contrast adjustment amount.

[0069] In this embodiment, the moving particles here are obtained through the regional changes, such as the average size of the motion vector, the proportion of the motion area, the estimation of the motion speed, and other indicators that can characterize the motion changes. In order to comprehensively consider the two motion detection methods based on features and based on the optical flow method, multiple first moving particles and second moving particles are defined according to the conditions of the preliminary motion area and the motion area. The types of these two particles are exactly the same. The third moving particle is obtained by correcting the average value of the first moving particle and the second moving particle by the difference between the two. The correction is expressed by , and the value range is 0.89-1.24. The comprehensive motion particles are expressed by the average value of the initial comprehensive motion particles (a little larger than the average value).

[0070] In this embodiment, the initial denoising intensity and the initial contrast adjustment amount are corrected by comprehensive motion particles. Different comprehensive motion particle sizes correspond to different correction coefficients, and the correction is completed by multiplying the correction coefficient with the initial denoising intensity and the initial contrast adjustment amount. For images with higher comprehensive motion particles, a lighter denoising intensity can be used to retain motion details; for images with lower comprehensive motion particles, a stronger denoising intensity can be used to remove noise. The same applies to contrast. For moving frame images, the denoising intensity should be able to adapt to changes in motion to avoid excessive blurring of moving objects.

[0071] In some embodiments of the present application, before performing image preprocessing on the motion image in combination with the motion particles, the method further includes:

[0072] The noise and contrast conditions of the non-motion image are obtained, and the denoising intensity and contrast adjustment amount are determined, and the non-motion image is preprocessed by the denoising intensity and contrast adjustment amount.

[0073] In this embodiment, the noise type and intensity in the image are analyzed. This can be done by observing the histogram, noise distribution and local noise level of the image. According to the noise type, a suitable denoising method is selected, such as a median filter, a mean filter, a wavelet denoising, etc., to determine the denoising intensity. The contrast level of the original image is checked to ensure that it is suitable for subsequent processing steps. According to the contrast level of the image, a suitable contrast enhancement method is selected, such as histogram equalization, contrast stretching, etc. For the contrast enhancement algorithm, the best contrast adjustment amount is found.

[0074] Step S103, dividing the images in the image sequence to be processed into multiple sub-parts, determining the moving images and non-moving images in the same situation by comparing the multiple sub-parts of the moving images and the non-moving images, and marking the moving images and non-moving images in the same situation in the image sequence to be processed, to obtain multiple image sequences to be processed in different situations.

[0075] In this embodiment, the image is segmented into background and object parts (multiple), and the object part may include preset objects such as people and animals. By comparing the similarities of the sub-parts of the moving image and the non-moving image, the moving image and the non-moving image in the same situation are determined, which is convenient for subsequent feature extraction and model input. Multiple sequences of images to be processed in different situations, where each sequence of images to be processed may represent a situation.

[0076] In some embodiments of the present application, the moving image and the non-moving image in the same context are determined by comparing multiple sub-parts of the moving image and the non-moving image, including:

[0077] The plurality of sub-parts include a background part and an object part, and the similarity between the background part and the object part of the moving image and the non-moving image within a time stamp range is compared, so as to determine the moving image and the non-moving image in the same situation;

[0078] ;

[0079] in, is the similarity between the motion image a and the non-motion image b, is the comprehensive similarity of the consistency of the object part and the background part of the moving image a and the non-moving image b, is the similarity of the position change of the object part between the moving image a and the non-moving image b, is the similarity of the comprehensive image features of the object part and the background part of the moving image a and the non-moving image b, , , They are multiple different similarity weights. is the difference in timestamps between the moving image a and the non-moving image b, is the correction coefficient corresponding to the time difference;

[0080] When the similarity is greater than the similarity threshold, the motion image and the non-motion image are in the same scene.

[0081] In this embodiment, the similarity of the background part and the object part of the moving image and the non-moving image within a time stamp range is compared. If the time interval between the two images is too long, it is generally difficult to belong to the same situation. The time range is limited here. The comprehensive similarity of the consistency of the object part and the background part of the moving image and the non-moving image refers to whether they are the same object and the same scene background. The similarity of the two is combined to obtain a similarity. The similarity of the position change of the object part of the moving image and the non-moving image refers to the change of the object position. The smaller the change, the higher the similarity. The similarity of the comprehensive image features of the object part and the background part of the moving image and the non-moving image refers to the similarity of the image features (color, texture, shape). After integrating each part, this similarity is obtained. The time when two images are adjacent can also reflect the similarity. The closer the time is, the more similar they are. Here, the sum of the previous three similarities is corrected by the time difference.

[0082] Step S104, extracting dynamic features and static features from each segment of the image sequence to be processed, fusing the dynamic features and the static features to obtain fused features, and inputting the fused features into a preset CNN model, outputting image recognition results, and marking the image recognition results at corresponding positions of the images.

[0083] In this embodiment, the motion image provides the motion trajectory and dynamic behavior of the object, while the non-motion image provides the shape and position information of the static object. The dynamic features include the following:

[0084] Motion trajectory: describes the motion path and speed of an object in consecutive frames.

[0085] Motion direction: Indicates the direction in which the object moves during motion.

[0086] Motion Speed: Quantifies how fast an object moves.

[0087] Motion acceleration: describes the rate of change of motion speed.

[0088] Motion state: includes the motion state of the object, such as walking, running, stopping, etc.

[0089] Motion changes: Compare the changes in object motion in consecutive frames, such as speed changes, direction changes, etc.

[0090] Movement posture: describes the body posture and movements of the subject during movement.

[0091] Static features include the following:

[0092] Shape: describes the geometric shape of an object, such as circle, square, rectangle, etc.

[0093] Size: Quantifies the size of objects in the image.

[0094] Color: describes the color distribution and color characteristics of the object surface.

[0095] Texture: describes the texture characteristics of the object surface, such as roughness, smoothness, etc.

[0096] Position: describes the spatial location of an object in an image.

[0097] Orientation: Describes the orientation or rotation of an object in an image.

[0098] In this embodiment, the preset CNN model here refers to a convolutional neural network model, and the training process is as follows: Figure 2 As shown, including:

[0099] Data preprocessing:

[0100] Collect image data and preprocess it, such as resizing, cropping, flipping, etc., to increase data diversity. Assign category labels to each image so that the model can learn to distinguish between different categories.

[0101] Model construction:

[0102] Design CNN architecture, including convolutional layers, pooling layers, and fully connected layers. Determine the hyperparameters of each layer, such as kernel size, stride, padding, and activation function.

[0103] Train the model:

[0104] The model is trained using the preprocessed image data and labels. The output is calculated through forward propagation and the prediction error is calculated using the loss function. The model parameters are updated through backpropagation to reduce the loss.

[0105] Evaluation and Optimization:

[0106] Use the validation set to evaluate model performance and adjust hyperparameters to prevent overfitting.

[0107] Use the test set to evaluate the generalization ability of the model.

[0108] The model is optimized based on the evaluation results until satisfactory performance is achieved.

[0109] In some embodiments of the present application, dynamic features and static features are fused to obtain fused features, including:

[0110] A feature sequence is generated according to the time sequence of dynamic features and static features, and the dynamic features and static features are represented in the form of vectors. The dynamic features and static features are weighted and spliced ​​together to form fusion features.

[0111] In some embodiments of the present application, outputting the image recognition result and marking the image recognition result at the corresponding position of the image includes:

[0112] The image recognition results include object regions and object attributes, and the corresponding object attributes (category labels, text descriptions, etc.) are marked at the object region locations.

[0113] By applying the above technical solution, a video to be processed is obtained, a continuous frame image sequence is obtained according to the video to be processed, a fixed continuous frame is set according to the attributes of the continuous frame image sequence, and the continuous frame image sequence is split into multiple continuous image sequence segments according to the fixed continuous frame; the feature points of each image in the image sequence segment are determined, and the motion image is screened by calculating the motion vector of each image feature point between continuous frames, a non-motion image is determined on the image sequence segment according to the motion image, a plurality of motion particles are determined according to the motion image, and the motion image is preprocessed in combination with the motion particles, and the preprocessed motion image and non-motion image are sorted according to the frame Sequentially compose a sequence of images to be processed; divide the images in the sequence of images to be processed into multiple sub-parts, determine the moving images and non-moving images in the same situation by comparing the multiple sub-parts of the moving images and non-moving images, and mark the moving images and non-moving images in the same situation in the sequence of images to be processed, and obtain multiple sections of image sequences to be processed in different situations; extract dynamic features and static features in each section of the image sequence to be processed, fuse the dynamic features and static features to obtain fused features, and input the fused features into a preset CNN model, output image recognition results, and mark the image recognition results at the corresponding positions of the images. The present application screens moving images and non-moving images by calculating the motion vector of each image feature point between consecutive frames, thereby improving the accuracy and efficiency of moving image recognition. The image preprocessing of moving images is combined with moving particles, which improves the adaptability of moving image preprocessing and provides a stable foundation for subsequent image feature extraction and model input. By comparing multiple sub-parts of moving images and non-moving images to determine the moving images and non-moving images in the same situation, the associated moving images and non-moving images are effectively integrated together. The fused features are input into the preset CNN model and the image recognition results are output, which improves the reliability and accuracy of image recognition, expands the adaptability of image recognition, and ensures the efficient operation of image recognition processing.

[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or by software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present invention.

[0115] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A picture recognition processing method based on image detection and model analysis, characterized in that: include: Acquire a video to be processed, obtain a continuous frame image sequence according to the video to be processed, set a fixed continuous frame according to the attribute of the continuous frame image sequence, and split the continuous frame image sequence into a plurality of continuous image sequence segments according to the fixed continuous frame; Determine the feature points of each image in the image sequence segment, and filter the moving images by calculating the motion vector of each image feature point between consecutive frames, determine the non-moving images on the image sequence segment according to the moving images, determine a plurality of moving particles through the moving images, perform image preprocessing on the moving images in combination with the moving particles, and form a to-be-processed image sequence with the preprocessed moving images and non-moving images according to the frame order; The images in the image sequence to be processed are divided into a plurality of sub-parts, and the moving images and the non-moving images in the same situation are determined by comparing the plurality of sub-parts of the moving images and the non-moving images, and the moving images and the non-moving images in the same situation are marked in the image sequence to be processed, so as to obtain a plurality of image sequences to be processed in different situations; Extract dynamic features and static features from each image sequence to be processed, fuse the dynamic features and static features to obtain fused features, and input the fused features into the preset CNN model, output the image recognition results, and mark the image recognition results at the corresponding positions of the images; Among them, motion particles refer to indicators that can characterize the motion between multiple images, including the average size of motion vectors and the proportion of motion areas, so as to help denoise and adjust the contrast of motion images.

2. The image recognition processing method based on image detection and model analysis according to claim 1 is characterized in that: The fixed continuous frames are set by the attributes of the continuous frame image sequence, and the continuous frame image sequence is split into a plurality of continuous image sequence segments according to the fixed continuous frames, including: The properties of the continuous frame image sequence include the time length and frame rate of the continuous frame image sequence; The total number of frames of the continuous frame image sequence is determined according to the time length and frame rate of the continuous frame image sequence, a fixed number of continuous frames is set according to the total number of frames of the continuous frame image sequence, and the continuous frame image sequence is split into multiple continuous image sequence segments according to the fixed number of continuous frames, and the number of frames of each continuous image sequence segment is the same as the number of fixed continuous frames.

3. The image recognition processing method based on image detection and model analysis according to claim 1 is characterized in that: Determine the feature points of each image in the image sequence segment, and filter the motion image by calculating the motion vector of each image feature point between consecutive frames, and determine the non-motion image on the image sequence segment according to the motion image, including: The feature points of each image in the image sequence segment are extracted by SIFT, SURF and HOG, and the preliminary motion area in the image is screened out according to the motion vectors between the feature points in the images of consecutive frames; Calculate the motion vector of each pixel in the preliminary motion area in continuous frames to determine the motion area, and take the image containing the motion area as the motion image, and the rest of the images as the non-motion images to be screened; If there is a non-moving image to be screened between the moving images, the distance between the two moving images is recorded as the frame interval, and several non-moving images to be screened in the middle and at both ends of the frame interval are regarded as non-moving images; If there are non-moving images to be screened at both ends of the image sequence segment, all the non-moving images to be screened between the two ends of the image sequence segment and the first moving image are regarded as non-moving images.

4. The image recognition processing method based on image detection and model analysis according to claim 3 is characterized in that: A plurality of moving particles are determined through the moving image, and the moving image is preprocessed in combination with the moving particles, including: A plurality of first moving particles and second moving particles are defined according to the conditions of the preliminary moving area and the moving area in the moving image, and a third moving particle of the same kind is determined by using the first moving particles and the second moving particles of the same kind; ; in, is the size of the third moving particle of the i-th type, is the size of the first moving particle of the i-th species, is the size of the second moving particle of the i-th type, is the absolute value of the difference between the first moving particle and the second moving particle of the i-th type, is a preset constant; Performing normalization processing on each type of third motion particles, integrating each type of third motion particles to obtain comprehensive motion particles; ; in, is the comprehensive moving particle, n is the number of moving particles, is the motion weight of the third moving particle of the i-th type, The size of the initial integrated moving particle is obtained by mapping the motion influence of all third moving particles. is the size of the initial integrated moving particle; Acquiring the noise and contrast of the motion image, and determining the initial denoising intensity and the initial contrast adjustment amount, correcting the initial denoising intensity and the initial contrast adjustment amount by integrated motion particles, obtaining the target denoising intensity and the target contrast adjustment amount, and performing image preprocessing on the motion image by the target denoising intensity and the target contrast adjustment amount; The first moving particles are obtained from the preliminary moving area, and the second moving particles are obtained from the moving area.

5. The image recognition processing method based on image detection and model analysis according to claim 4 is characterized in that: Before performing image preprocessing on the motion image in combination with the motion particles, the method further includes: The noise and contrast conditions of the non-motion image are obtained, and the denoising intensity and contrast adjustment amount are determined, and the non-motion image is preprocessed by the denoising intensity and contrast adjustment amount.

6. The image recognition processing method based on image detection and model analysis according to claim 1 is characterized in that: The moving and non-moving images in the same situation are determined by comparing multiple sub-sections of the moving and non-moving images, including: The plurality of sub-parts include a background part and an object part, and the similarity between the background part and the object part of the moving image and the non-moving image within a time stamp range is compared, so as to determine the moving image and the non-moving image in the same situation; ; in, is the similarity between the motion image a and the non-motion image b, is the comprehensive similarity of the consistency of the object part and the background part of the moving image a and the non-moving image b, is the similarity of the position change of the object part between the moving image a and the non-moving image b, is the similarity of the comprehensive image features of the object part and the background part of the moving image a and the non-moving image b, , , are different similarity weights, is the difference in timestamps between the moving image a and the non-moving image b, is the correction coefficient corresponding to the time difference; When the similarity is greater than the similarity threshold, the motion image and the non-motion image are in the same scene.

7. The image recognition processing method based on image detection and model analysis according to claim 1 is characterized in that: The dynamic features and static features are fused to obtain fused features, including: A feature sequence is generated according to the time sequence of dynamic features and static features, and the dynamic features and static features are represented in the form of vectors. The dynamic features and static features are weighted and spliced ​​together to form fusion features.

8. The image recognition processing method based on image detection and model analysis according to claim 7 is characterized in that: Output the image recognition results and mark the image recognition results at the corresponding positions of the image, including: The image recognition result includes object area and object attributes, and the corresponding object attributes are marked at the object area position.

Citation Information

Patent Citations

  • Method and device of moving target tracking in video

    CN107330384A

  • Flame identification method, system and device and medium

    CN113177467A

  • Video processing method and device, storage medium, equipment and computer program product

    CN115147515A

  • Food safety supervision method and system based on digital twinborn technology

    CN117475431A

  • Spatial-temporal feature fusion method for video fighting detection

    CN117593617A