The invention relates to an intelligent flight device with an obstacle avoiding function for bridge detection. The device comprises a body, a protection ring, a detection mechanism, a connecting mechanism, a buffer mechanism and four flight mechanisms; the detection mechanism comprises a camera, a connecting block, a stretchable assembly and an adjusting assembly; the stretchable assembly comprises an air pump, a cylinder, a piston and two hinge units; the buffer mechanism comprises a plurality of buffer assemblies; each buffer assembly comprises a sleeve, a first spring, an ejector rod and asteel ball; the connecting mechanism comprises a plurality of connecting assemblies; each connecting assembly comprises a second spring, a pressure plate and a connecting rod. According to the intelligent flight device with the obstacle avoiding function for bridge detection, the camera is moved and rotated through the detection mechanism, the camera can perform photographing at different angles and directions, and photographing blind spots are avoided; due to the buffer mechanism and the protection ring, the phenomenon that the body collides with a bridge and piers during flying is avoided, safety flight of the device is ensured, and therefore the practicability of the device is improved.