7/7/2023 0 Comments Javascript qr code readerMultimedia messaging sites can allow their users to overlay funny objects like sunglasses or mustaches on detected face landmarks.Content sites can dynamically crop images based on potentially detected faces rather than relying on other heuristics, or highlight detected faces with Ken Burns-like panning and zooming effects in story-like formats.By highlighting the boundaries of detected faces, this task can be facilitated. Online social networking or photo sharing sites commonly let their users annotate people in images.The following bullet list contains examples of use cases for all three features. # Suggested use casesĪs outlined above, the Shape Detection API currently supports the detection of faces, barcodes, and text. Text detection, despite being an interesting field, is not considered stable enough across either computing platforms or character sets to be standardized at the moment, which is why text detection has been moved to a separate informative specification. Currently, the supported features are face detection through the FaceDetector interface, barcode detection through the BarcodeDetector interface, and text detection (Optical Character Recognition, (OCR)) through the TextDetector interface. The Shape Detection API exposes these implementations through a set of JavaScript interfaces. On the other hand, operating systems including Android, iOS, and macOS, but also hardware chips found in camera modules, typically already have performant and highly optimized feature detectors such as the Android FaceDetector or the iOS generic feature detector, CIDetector. This could be expensive from a performance point of view and increase the overall page weight. So far, this dynamic image data-as well as static images on a page-has not been accessible by code, even though images may actually contain a lot of interesting features such as faces, barcodes, and text.įor example, in the past, if developers wanted to extract such features on the client to build a QR code reader, they had to rely on external JavaScript libraries. With APIs like and the Chrome for Android photo picker, it has become fairly easy to capture images or live video data from device cameras, or to upload local images. This post will be updated as the Shape Detection API evolves. Face and text detection are available behind a flag. Barcode detection has launched in Chrome 83. This API is part of the new capabilities project.
0 Comments
Leave a Reply. |