A method for adjusting a computing resource, carried out by a computing device with at least one processor and a memory, in response to an image being inputted to the computing device for detection and recognition by a convolutional neural network, the method comprising: predicting estimated convolution times of a plurality of convolution layers, determining expected pooling times of a plurality of pooling layers according to the estimated convolution times of the plurality of convolution layers, and determining an expected pooling value according to the expected pooling times of the plurality of pooling layers; predicting to-be-processed data volumes of the plurality of pooling layers, and determining a basic pooling data volume according to the to-be-processed data volumes of the plurality of pooling layers; and determining a quantity of computing resource units used for pooling according to the expected pooling value, the basic pooling data volume, and a computing power value of a computing resource unit having an average clock frequency, the average clock frequency being an average value of a plurality of clock frequencies provided by a system; determining an expected pooling time of a target pooling layer and a to-be-processed data volume of the target pooling layer, and determining a current clock frequency corresponding to the computing resource units to be used for pooling, wherein a difference between the expected pooling time of the target pooling layer and an estimated convolution time of a convolution layer associated with the target pooling layer is less than a time threshold (101, 404); determining a target clock frequency according to the expected pooling time of the target pooling layer and the to-be-processed data volume of the target pooling layer (102, 405); and switching the current clock frequency to the target clock frequency, in response to the convolution layer associated with the target pooling layer completing convolution and the current clock frequency being different from the target clock frequency, and performing pooling in the target pooling layer based on the computing resource units having the target clock frequency (103, 407). predicting estimated convolution times of a plurality of convolution layers, determining expected pooling times of a plurality of pooling layers according to the estimated convolution times of the plurality of convolution layers, and determining an expected pooling value according to the expected pooling times of the plurality of pooling layers; predicting to-be-processed data volumes of the plurality of pooling layers, and determining a basic pooling data volume according to the to-be-processed data volumes of the plurality of pooling layers; and determining a quantity of computing resource units used for pooling according to the expected pooling value, the basic pooling data volume, and a computing power value of a computing resource unit having an average clock frequency, the average clock frequency being an average value of a plurality of clock frequencies provided by a system; determining an expected pooling time of a target pooling layer and a to-be-processed data volume of the target pooling layer, and determining a current clock frequency corresponding to the computing resource units to be used for pooling, wherein a difference between the expected pooling time of the target pooling layer and an estimated convolution time of a convolution layer associated with the target pooling layer is less than a time threshold (101, 404); determining a target clock frequency according to the expected pooling time of the target pooling layer and the to-be-processed data volume of the target pooling layer (102, 405); and switching the current clock frequency to the target clock frequency, in response to the convolution layer associated with the target pooling layer completing convolution and the current clock frequency being different from the target clock frequency, and performing pooling in the target pooling layer based on the computing resource units having the target clock frequency (103, 407).