The application relates to the technical field of cargo entry and exit detection systems, and provides a method for detecting the entry and exit state of articles, which comprises the following steps: S1: starting detection in response to a cabinet door opening instruction; S2: when a sensing detection module outputs a detection change
signal, determining a detection change area where a state change occurs according to the detection change
signal; the sensing detection module comprises magnetic sensors arranged in different detection areas and magnetic pieces that move with the articles; the detection change
signal is generated by the magnetic sensors sensing the state change of the magnetic pieces; S3: acquiring a detection change image for the detection change area; S4: acquiring article information and an article access state based on the detection change image, and updating or recording the article information according to the article access state. Based on this, the real-time performance and detection accuracy of reading can be improved.