A method for automatically loading and/or unloading a truck at a loading region, wherein the loading region has at least one access point, and wherein the at least one access point is provided with an optical counting device that is configured to optically detect a number of passages of persons via the access point,
- wherein the method comprises the following steps:
- docking the truck at the loading region,
- activating the loading and/or unloading,
- loading and/or unloading items to be loaded using at least one autonomous vehicle and while continuously monitoring the at least one access point by means of the optical counting device, wherein the loading and/or unloading is/are interrupted as soon as the counting device detects a passage of at least one person via the at least one access point.