The invention discloses an electronic capsule capable of actively changing the photographing angle, which comprises a housing, and an imaging and photographing unit, a microprocessor, a motor, a wireless emitter, an antenna, etc., which are arranged in the housing. The electronic capsule is characterized in that the motor is a miniature flat eccentric motor or a flat vibration motor. The photographing angle can be changed by rotating the eccentric motor or the flat vibration motor to achieve photographing at different angles. The electronic capsule is particularly suitable for examining human organs with larger inner space and no natural orientation effect, such as the stomach or the large intestine. The electronic capsule has the advantages that the electronic capsule can be used for replacing a gastroscope to change micro-invasive examination into non-invasive examination, thus obviating the fear of gastroscope, obviating anesthesia before examination, eliminating various adverse effects in the examination process, and providing a selectable means for people not suitable for gastroscope examination. When one or more pictures are photographed, the eccentric motor is rotated under the control of the microprocessor to change the photographing positions, and then the photographing unit performs subsequent photographing until the entire stomach is photographed.