Restricting by cameras angles of view of the surveillance systems, the panoramic digital images can not be obtained directly from photographing. To enlarge the horizontal and vertical angles of view for an image, an automatic panorama creating method was proposed, the key techniques of the method including camera calibration, image feature extraction, image registration, bundle adjustment, photometric optimization, image fusion and output panorama projection were also explored. An automatic panoramic image mosaicing was realized by Microsoft Visual Studio 2008 using C++. Experiments show that the software can stitch together multi-row images automatically into a panoramic image. In addition, it also reduces visual distortions, making the panoramic view clearer and its luminance more homogeneous and natural.