Count Candies by Color in a Photo with Revdoku

Count Candies by Color in a Photo with Revdoku

Updated by Revdoku Content Team

Count Candies by Color in a Photo with Revdoku

Step 1: Open Revdoku and drop the candy photo.

Start at the Revdoku Starred view with no envelopes open. Drag candies.png — a top-down shot of a pile of M&M-style candies on a wooden surface — into the purple Drop files here zone to create a new envelope.

Open Revdoku and drop the candy photo.

Step 2: Write the checklist rule.

In the Add Checklist dialog, name the checklist Candy Colors and paste a one-line rule that tells Revdoku to confirm every candy is categorized by color, that the sum of each color group matches the total inventory count, and to save the check value as ‘color,count’ (for example red,21). Click Save Changes.

Write the checklist rule.

Step 3: Run the review.

Back in the Review Envelope dialog, pick Candy Colors (1 rules), confirm the AI model Google Gemini Standard US, and click Run Review. Revdoku walks through Preparing, Analyzing, Reviewing, and Finalizing on the single image page.

Run the review.

Step 4: Read the per-color breakdown.

All 7 checks pass at 100% compliance. Revdoku reports brown 19, blue 17, yellow 14, green 23, orange 19, red 21, and a total of 113 candies — each count highlighted with a green region on the candy photo.

Read the per-color breakdown.

Step 5: Open the envelope script editor.

Click the more menu in the top-right of the envelope and pick Edit Script. In the Edit Envelope Script dialog, open the Sample Scripts dropdown and pick Group by category and sum — it parses each check’s ‘color,count’ value, groups by color, and sums the counts. Click Save.

Open the envelope script editor.

Step 6: Read the computed totals.

The script output lists every color with its count — blue 17, brown 19, green 23, orange 19, red 21, yellow 14 — plus the total 113 from the inventory check, and a grand Total of 226 at the bottom. The candies photo below shows the same seven checks outlined in green.

Read the computed totals.


What You Learned

This case showed how Revdoku can take a document, apply a structured checklist, and surface specific findings — all in under a minute. No manual line-by-line reading required.

Free Trial Explore Use Cases

Disclosure: Sample documents in this use case were generated using AI and contain intentional errors for demonstration purposes. All names, companies, and details are fictional.

Share:

Related Articles

Loading PDF…