This is the shape detection API implementation demo
The following demo allows you to detect shapes, barcodes and faces from an uploaded image.
Refer to the How to detect human faces (and other shapes) in JavaScript on the CKEditor Blog to find out more about the presented function.
Please bear in mind, this mechanism only works in Chrome (Mac, Windows) and it requires this flag:
chrome://flags#enable-experimental-web-platform-features
to be turned on.