The invention discloses a multi-device collaborative passenger flow statistical method and
system, and the method comprises the following steps: presetting a unique identity
label and a physical position index for devices, reading the unique identity
label and the physical position index, and initializing the attribute information of the devices; a
user datagram protocol broadcasting mechanism is started, and
heartbeat information including the unique identity
label, the physical position index and the online state is sent according to a preset period; monitoring the
user datagram protocol broadcast message in the
local area network, constructing and maintaining an online equipment
list, and updating the online state of the equipment according to the
heartbeat information receiving analysis condition; judging adjacent equipment based on a physical location index, and deciding whether to start a first boundary or a second boundary according to the online state of the adjacent equipment; and the decision result is transmitted to a passenger flow
statistical algorithm to generate a shop-crossing detection line. According to the invention, multi-device collaborative passenger flow statistics dynamic boundary configuration is realized, the shop-crossing detection line is accurately generated, and the passenger flow statistics problems of fixed boundary configuration, easy missed counting and poor multi-device
collaboration are solved.