The quality control of a flexible container (FC) gripped and held by a gripping device during the entire cycle of packaging is an important task in the packaging process of bulk materials in a soft package. Noncontact optical methods of control have been developed and researched for the diagnostics of the automatic manipulating process of a flexible container when bulk materials are packaged in a soft package. Diagnostics of the FC gripping and opening accuracy was carried out herein with the help of machine vision. Processing of the image obtained when the neck of the FC was photographed was carried out by a neural network algorithm, which was made according to a scheme of a perceptron. An automated diagnostics system of the FC gripping and opening accuracy was developed in terms of the obtained algorithm. A control technique based on the algorithm of comparison with a reference was used to reveal the FC gripping and opening defects. This technique consists of preliminary processing of the image obtained from the camera and automatic search for deviations in FC gripping and opening. As a result, a report of defects in the process of FC gripping and opening was obtained.