The invention discloses a gun-shaped camera with moisture-proof and heat-dissipation functions. The camera comprises a supporting rod, an adjusting hydraulic oil cylinder, a connecting pin, a fixing frame, a micro linear lead screw motor, a lead screw, a connecting sleeve column, a camera shell, a notch, a fixing groove box, a through hole, dust collection cotton, a camera head, a cooling fan, a housing and an activated carbon plate. The connecting pin penetrates through the upper part of the supporting rod. The adjusting hydraulic oil cylinder is installed on one side of the supporting rod. The fixing frame is installed above the adjusting hydraulic oil cylinder. A miniature linear lead screw motor is arranged in the fixing frame. The lead screw is installed on one side of the miniature linear lead screw motor. The connecting sleeve column is installed in the middle of the lead screw, and a camera shell is installed above the connecting sleeve column. Damp gas in the camera shell canbe effectively adsorbed through the drying agent, moisture carried by the gas can be effectively reduced, dryness of the gas is guaranteed, and the damp gas is prevented from corroding the assembly.