A detection packaging structure based on a flexible tube, comprising: a main circuit board , a detection circuit board , a detection component , an instrument tube , a tube cap , and an outer tube , wherein the detection circuit board board is perpendicularly disposed on a first side surface, along a first direction, of the main circuit board , the instrument tube is disposed on a second side surface, along the first direction, of the main circuit board , and the detection component is disposed, along a second direction, on a first side surface of the detection circuit board ; the tube cap is mounted on the second side surface of the main circuit board , and is connected to an end of the instrument tube ; a first conducting material is disposed on the first side surface, along the second direction, of the detection circuit board , a second conducting material capable of being conducted to the first conducting material is disposed on a second side surface, along the second direction, of the detection circuit board , a detection conducting material is disposed on the first side surface of the main circuit board , a wiring terminal of the detection component is conductively welded to the first conducting material, one end of the detection conducting material is conductively welded to the second conducting material , and the other end of the detection conducting material is conductively connected to a cable; the main circuit board , the detection circuit board , the detection component , the tube cap , and a part of the instrument tube are all disposed in the outer tube , and the outer tube is directly or indirectly connected to a flexible controllable curved tube; and the first direction is perpendicular to the second direction. wherein the detection circuit board board is perpendicularly disposed on a first side surface, along a first direction, of the main circuit board , the instrument tube is disposed on a second side surface, along the first direction, of the main circuit board , and the detection component is disposed, along a second direction, on a first side surface of the detection circuit board ; the tube cap is mounted on the second side surface of the main circuit board , and is connected to an end of the instrument tube ; a first conducting material is disposed on the first side surface, along the second direction, of the detection circuit board , a second conducting material capable of being conducted to the first conducting material is disposed on a second side surface, along the second direction, of the detection circuit board , a detection conducting material is disposed on the first side surface of the main circuit board , a wiring terminal of the detection component is conductively welded to the first conducting material, one end of the detection conducting material is conductively welded to the second conducting material , and the other end of the detection conducting material is conductively connected to a cable; the main circuit board , the detection circuit board , the detection component , the tube cap , and a part of the instrument tube are all disposed in the outer tube , and the outer tube is directly or indirectly connected to a flexible controllable curved tube; and the first direction is perpendicular to the second direction. <EOS>