The ship on the left is moving slowly through the canal and the one on the right is entering the lock on the downstream side.
Once the lock is flooded and the water level becomes equal to that on the upstream side, the lock gate will be opened allowing the ship to enter the canal on the upstream side and continue its journey.