The invention discloses a capsule antenna. The capsule antenna comprises an upper dielectric plate, a lower dielectric plate, a metal pole, a metal cover, a polyimide shell, a metal stripe and a feedmetal probe, wherein the metal pole is embedded into the center of the upper dielectric plate and the center of the lower dielectric plate, the metal cover is arranged on the top surface of the upperdielectric plate, and the bottom surface of the lower dielectric plate is covered with an annular metal layer; the polyimide shell has biocompatibility, and the exterior is in direct contact with human tissues; the metal stripe clings to the inner wall of the shell and forms an external metal ring with the annular metal layer on the bottom surface of the lower dielectric plate, and a slot antennastructure is formed among the metal ring, the metal pole and the metal cover. The metal pole serves as a carrier of a battery, and the influence of the battery on antenna performance can be shielded.Electronic parts and components of a wireless endoscope system are arranged inside the metal cover, and the influence on the radiation performance of the antenna is avoided as well. A feed port is formed in the top of the metal cover, one end is connected with the metal stripe, and the other end is connected with the metal stripe inside the polyimide shell, so that a half wave length resonant slotantenna is simulated.