The Interior ministry has put out to tender a contract for facial recognition border control technology.
The government is offering 4.1 million euros for the design and running of the Spanish version of the Entry/Exit System (EES), under new EU rules to monitor the entry from outside the common Schengen travel area, including from UK and Ireland.
The technology chosen should "be able to record and store the time, day and place of entry and exit of nationals of third-party countries".
In addition it should automatically calculate " the authorised length of stay" and "generate alerts".
It will use biometric and facial recognition technology and cover both airports and ports when up and running.