When a fire occurs on storage racks in a warehouse, it is not advisable to find the location of the fire point accurately, because there are a large number of goods on the storage rack, and many interference factors such as light will disturb the precise location of the fire. In response to the above problems, and thanks to the high-speed growth of deep learning technology, we propose an edge detection method and apply it in fire locations successfully. We adopt VGG-16 as our backbone and introduce an attention module to suppress background information and eliminate interference. We test the proposed method on our collected dataset, and the results show that our proposed model can extract the shelf edges more completely and locate the fire point accurately. In terms of detection speed, our method can achieve 0.188 s per image, which meets the requirements of real-time detection. Our approach lays a good foundation for the precise extinguishing of fire that occurs on storage racks.