Inventory counting of logistics boxes in complex scenarios has always been a core task in intelligent logistics systems. To solve the problems of a high leakage rate and low computational efficiency caused by stacking, occlusion, and rotation in box detection against complex backgrounds in logistics environments, this paper proposes a lightweight, rotated object detection model: REW-YOLO (RepViT-Block YOLO with Efficient Local Attention and Wise-IoU). By integrating structural reparameterization techniques, the C2f-RVB module was designed to reduce computational redundancy in traditional convolutions. Additionally, the ELA-HSFPN multi-scale feature fusion network was constructed to enhance edge feature extraction for occluded boxes and improve detection accuracy in densely packed scenarios. A rotation angle regression branch and a dynamic Wise-IoU loss function were introduced to further refine localization and balance sample quality. Experimental results on the self-constructed BOX-data dataset demonstrate that the REW-YOLO achieves 90.2% mAP50 and 130.8 FPS, with a parameter count of only 2.18 M, surpassing YOLOv8n by 2.9% in accuracy while reducing computational cost by 28%. These improvements provide an efficient solution for automated box detection in logistics applications.
To address the issues of traditional magnetorheological brakes (MRBs) lacking power-off braking, instantaneous self-locking and zero energy consumption pressure maintenance, a detachable permanent magnet and self-locking MRB (DPMSMB) was proposed in this paper. The embedded permanent magnets provide an inherent holding torque for fail-safe operation under power-off conditions. The dynamic range of the braking torque is broadened by tuning the coil current. A mathematical model of the braking torque was established based on the Herschel–Bulkley model. The magnetic field strength was calculated by coupling the reluctance of the coil and permanent magnets. A multi-objective Gray Wolf optimization algorithm was applied to the structural optimization of the DPMSMB, considering both structural compactness and braking performance under predefined design constraints. Experiments show that at 50 rpm, the permanent magnets generated a braking torque of 61.5 N·m independently, which increases to 135.2 N·m or decreases to 2.1 N·m when coupled with ±2.0 A current. The theoretical and experimental results consistently demonstrate that the DPMSMB can achieve power-off self-locking and real-time tuning of the braking torque. In addition, the detachable permanent magnet design effectively solves the problems associated with traditional fixed magnets when filling magnetorheological fluid (MRF), such as uneven filling and magnetic field interference, and alleviates the sedimentation phenomenon caused by long-term static MRF. This study presents a MRB featuring power-off self-locking and a broadened dynamic range for high-safety braking scenarios in mechanical systems.