Fig. 4 The structure of CA module C denotes the depth of the feature channel; H and W denote the height and width of the feature; r is the indentation ratio; X Avg Pool denotes horizontal global pooling; Y Avg Pool denotes vertical global pooling; Conv2d denotes convolutional 2D; BN denotes batch normalization; Sigmoid is an activation function
Fig. 5 Prediction box and ground truth box of the model $b_{c_{x}}^{g t}$, $b_{c_{y}}^{g t}$ are the coordinates of the center point Bgt of the real box (ground truth box), and $b_{c_{x}}$, $b_{c_{y}}$ are the coordinates of the center point B of the prediction box; h and w are the length and width of the prediction box, and hgt, wgt are the length and width of the real box; σ is the straight line distance between the point Bgt and the point B; ch and cw are the distance between the center point of the two boxes in the vertical direction and the distance in the horizontal direction; ch and cw are the height and width of the smallest outer rectangle of the real box and the prediction box; α is the angle between the center point of the real box and the center point of the prediction box in the horizontal direction.
Fig. 7 Schematic diagram of the disparity calculation The figure uses two directional axes, Z and X; Oleft and Oright are the left and right camera optical centers, respectively; P is the positioning point on the object to be measured; Pleft and Pright are the imaging points of the positioning point P on the left and right camera optical sensors, respectively; xleft and xright are the distances of Pleft and Pright from the optical axis of the left and right cameras, respectively; f is the camera focal length; b is the distance between the centers of the two cameras; x is the coordinate of point P on the X-axis; Baseline is the line connecting the optical centers of the left and right cameras.
Fig. 10 Field cotton category recognition results based on YOLOX-Cotton Cotton_Side represents the side cotton identified based on YOLOX-Cotton model; Cotton_Top represents the positive normal cotton; CottonLow_Top represents the positive side of low-grade cotton. The number at the end of the cotton grade represents confidence.