Cosmic voids detection without density measurements