The present invention provides a flexible tube-based detection and packaging structure and an in-vivo detection device. A detection circuit board and a main circuit board perpendicular to each other are used, and a first conductive material is provided on a first side of the detection circuit board, and a second conductive material connected to the first conductive material is provided on a second side of the detection circuit board; and when the detection component is connected to the first side of the detection circuit board, a connection terminal of the detection component is able to be welded to the first conductive material. Thus, the present invention reduces the difficulty of a welding operation, improving the strength and reliability of welding, satisfying the welding stability in various motion conditions. The present invention also ensures the stable installation and use of the detection component by means of the assembly of the main circuit board and the detection circuit board, so that the detection component is not affected by an external force; and at the same time, as the detection circuit board is perpendicularly provided on the first side of the main circuit board, the detection circuit board can facilitate rational space application, thereby facilitating reduction of the overall size of the structure.La présente invention concerne une structure de détection et d'encapsulation à base de tube souple et un dispositif de détection in vivo. Une carte de circuit de détection et une carte de circuit principale perpendiculaires l'une à l'autre sont utilisées, et un premier matériau conducteur est disposé sur un premier côté de la carte de circuit de détection, et un second matériau conducteur relié au premier matériau conducteur est disposé sur un second côté de la carte de circuit de détection ; et lorsque le composant de détection est relié au premier côté de la carte de circuit de détection, un terminal de connexion du composant de détection est capable