The invention relates to a food
water content calculation method and device based on a visual image, equipment and a medium. First, food image data is collected, and first image data is obtained by using a standardized preprocessing technology. Secondly, extracting surface glossiness and
texture feature values from the first image data, segmenting the image by using a
feature detection algorithm, marking a key region related to the
water content, and forming a visual
feature set; thirdly, the relevance of all elements in the visual
feature set is analyzed, food types are distinguished through a
classification rule, feature
weight distribution of different types of food is determined, and optimization of
feature description is achieved; and finally, based on the optimized
feature description, establishing a mapping relation model between the
water content and the visual features, substituting a newly input food image into the model, predicting the water content, and outputting a real-time detection result. An efficient and convenient detection means is provided for the fields of
food processing, storage and the like, the detection cost is reduced, and the production efficiency and the product
quality control capability are improved.