An analysis apparatus comprising: a first image analysis unit that detects faces of persons and a reference point and reference directions of a vehicle from each of a plurality of first images, referred to as a first image group, generated by a first camera for capturing a vehicle passing through a road and then for each first image, sets a two-dimensional coordinate system in which the detected reference point and reference directions of the vehicle are used as a reference, and detects coordinates of the detected faces in the coordinate system; a first detection unit that detects the number of occupants in the vehicle captured in the first image group, by grouping a plurality of faces, of a same person, existing in the plurality of first images, and detecting the number of groups as the number of occupants; a second image analysis unit that detects faces of persons and a reference point and reference directions of a vehicle from each of a plurality of second images, referred to as a second image group, generated by a second camera for capturing the vehicle passing through the road and then for each second image, sets a two-dimensional coordinate system in which the detected reference point and reference directions of the vehicle are used as a reference, and detects coordinates of the detected faces in the coordinate system; a second detection unit that detects the number of occupants in the vehicle captured in the second image group, by grouping a plurality of faces, of a same person, existing in the plurality of second images, and detecting the number of groups as the number of occupants; a determination unit that determines whether or not the first image group and the second image group satisfy a predetermined condition and infers that the first image group and the second image group include a same vehicle when the predetermined condition is satisfied; and a decision unit that decides, in a case where the predetermined condition is satisfied, the number of occupants in the vehicle captured in the first image group and the second image group to be the larger one of the number of occupants in the vehicle captured in the first image group detected by the first detection unit and the number of occupants in the vehicle captured in the second image group detected by the second detection unit, wherein the determination unit is configured to determine whether or not the first image group and the second image group satisfy the predetermined condition by determining whether or not a time when the first image group is generated and a time when the second image group is generated satisfy a predetermined relationship. a first image analysis unit that detects faces of persons and a reference point and reference directions of a vehicle from each of a plurality of first images, referred to as a first image group, generated by a first camera for capturing a vehicle passing through a road and then for each first image, sets a two-dimensional coordinate system in which the detected reference point and reference directions of the vehicle are used as a reference, and detects coordinates of the detected faces in the coordinate system; a first detection unit that detects the number of occupants in the vehicle captured in the first image group, by grouping a plurality of faces, of a same person, existing in the plurality of first images, and detecting the number of groups as the number of occupants; a second image analysis unit that detects faces of persons and a reference point and reference directions of a vehicle from each of a plurality of second images, referred to as a second image group, generated by a second camera for capturing the vehicle passing through the road and then for each second image, sets a two-dimensional coordinate system in which the detected reference point and reference directions of the vehicle are used as a reference, and detects coordinates of the detected faces in the coordinate system; a second detection unit that detects the number of occupants in the vehicle captured in the second image group, by grouping a plurality of faces, of a same person, existing in the plurality of second images, and detecting the number of groups as the number of occupants; a determination unit that determines whether or not the first image group and the second image group satisfy a predetermined condition and infers that the first image group and the second image group include a same vehicle when the predetermined condition is satisfied; and a decision unit that decides, in a case where the predetermined condition is satisfied, the number of occupants in the vehicle captured in the first image group and the second image group to be the larger one of the number of occupants in the vehicle captured in the first image group detected by the first detection unit and the number of occupants in the vehicle captured in the second image group detected by the second detection unit, wherein the determination unit is configured to determine whether or not the first image group and the second image group satisfy the predetermined condition by determining whether or not a time when the first image group is generated and a time when the second image group is generated satisfy a predetermined relationship.