The invention discloses an automatic book checking and abnormity
early warning system and method, and the method comprises the steps: carrying out the marking of books through a CODE128 bar code, precisely positioning each bookshelf through a cloud platform spherical camera which is disposed at a position opposite to the front surface of the bookshelf, capturing an image, correcting the image through a
perspective transformation algorithm, segmenting and extracting the bar code through a YOLOv8 target detection
algorithm, and carrying out the early warning of the abnormity of the books. Meanwhile, the abnormal state of book placement is detected, and if
abnormality is detected, the
system records abnormal information and gives an alarm; the bar code is identified through a ZXing
library, and when identification fails, the image is automatically rotated for retry; the
system records and informs an administrator of a bar code which cannot be recognized; the
infrared sensor arranged in the bookshelf monitors the state change of the books in real time, and if the state change occurs, the
system automatically triggers the re-checking of the area so as to update the inventory information in real time. According to the invention, the problems of low efficiency, long period and incapability of updating book position information in real time of traditional
library manual checking are effectively solved.