EU and the European Court of Human Rights are not really connected - The Court is a function of the Council of Europe, which has 47 member states, not just the 28 EU ones - almost everybody, except Belarus - even Russia, Turkey, Iceland, Norway and Switzerland.