--- url: "https://web.dev/articles/perception-toolkit" titulek: "Visual searching with the Web Perception Toolkit | Articles | web.dev" h1: "Visual searching with the Web Perception Toolkit Stay organized with collections Save and categorize content based on your preferences." popis: "Wouldn't it be great if users could search your site using their camera?" jazyk: "en" kanonicka: "https://web.dev/articles/perception-toolkit" drobecky: ["Articles", "Visual searching with the Web Perception Toolkit"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 23:13:47" znaku: 8612 slov: 1227 kodovani: "iso-8859-2" sha256: "530028b7e426786951faf7d1d612a0727e886de4b00e625c18f283b95acb3047" --- Visual searching with the Web Perception Toolkit Stay organized with collections Save and categorize content based on your preferences. Easy to use real-world interactivity. Joe Medley Wouldn't it be great if users could search your site using their camera? Imagine this. Your site is Razor McShaveyface. Your customers tell you they have trouble finding the right cartridges for their razor when they reorder. They don't know the right keywords for your product search. And let's be honest, they probably never will. What if they never need to? What if they could point their phone's camera at the UPC code on package and your site could present them with the right cartridge and a big red "reorder" button? Think of other ways you can use a camera on a site. Imagine a site that supports in-store price checking. Imagine getting information about a museum exhibit or historical marker. Imagine identifying real-world landmarks in games like geocaching or scavenger hunts. [The Web Perception Toolkit](https://github.com/GoogleChromeLabs/perception-toolkit) makes these camera-based scenarios possible. In some cases you can even create an experience without writing code. How does it work? The open-source Web Perception Toolkit helps you add visual search to your website. It passes a device camera stream through a set of detectors that map real-world objects, here called "targets", to content on your site. This mapping is defined using Structured Data (JSON-LD) on your site. With this data, you can present the right information in a customizable UI. I'll show you enough of this to give you a taste of how it works. For a complete explanation, check out the [Getting Started](https://perceptiontoolkit.dev/getting-started/) guide, the [toolkit reference](https://perceptiontoolkit.dev/documentation/), the [I/O Sandbox demo](https://io.perceptiontoolkit.dev/) and the [sample demos](https://github.com/GoogleChromeLabs/perception-toolkit/tree/master/demo). Structured data The toolkit can't find just any target in the camera's view. You must provide it with linked JSON data for the targets you want it to recognize. This data also contains information about those targets that will be shown to the user. The data is all you need to create a user experience like the one in the image below. If you do nothing else, the Web Perception Toolkit can identify targets, then show and hide cards based on the information provided in the data. Try this for yourself using our [artifact-map demo](https://github.com/GoogleChromeLabs/perception-toolkit/tree/master/demo/artifact-map). The default interface. Add data to your site with a JSON linked data file, included using a `