Camera Sum Calculator

Point your camera at price tags or numbers, capture each one and keep a running total.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Capture numbers with the camera

Enter your values below to get started.

Examples:
Each camera capture adds a line. Type or paste numbers here if you have no camera.
Value of each capture
Shows what is left, and when the total passes it.
Reset restores the default values.

Tips for this calculator

Hold the phone 20–40 cm (8–16 in) from the tag and fill the orange box with the number.

Use Largest number on shelf tags, where the price is the biggest figure.

Use Prices only to skip quantities, weights and item codes.

The camera needs an https page and your permission; manual entry works without both.

A camera sum calculator reads numbers through your device camera and adds them to a running total. Start the camera, fit a price tag, label or meter inside the guide box and press Capture; optical character recognition (OCR) reads the digits in the browser, each capture becomes a line you can edit, and the calculator shows the total, the average per capture and how much of your budget is left. No camera? Type the numbers instead.

What is a Camera Sum?

A camera sum is a running total built from numbers captured one by one with a device camera. Each capture reads the digits in front of the lens, such as a shelf price, and adds them to the total, so 5 tags of $12.99, $4.50, $7.25, $19.00 and $3.49 give $47.23.

A camera sum differs from a photo sum in 1 way: a photo sum reads one finished picture, while a camera sum keeps adding as you move from item to item, the way a shopper, a stock counter or a meter reader works.

InteractiveTap price tags to capture them

How Does the Camera Sum Calculator Work?

The camera sum calculator works in 5 steps: it opens the camera stream, grabs a frame, crops it to the guide box, reads the digits with OCR and adds the value to the running total. The stream comes from the W3C Media Capture and Streams API (getUserMedia), and the OCR engine is tesseract.js, a WebAssembly build of Tesseract that runs inside the browser.

InteractiveThe guide box decides what OCR sees
  1. Stream

    getUserMedia opens the rear camera at up to 1280 × 720 px after you allow it.

  2. Grab and crop

    Capture copies the current frame to a canvas and keeps only the orange guide box (80% wide, 40% tall).

  3. Read

    The crop is turned gray and passed to tesseract.js, limited to digits, separators and currency signs.

  4. Add

    The recognized text becomes a new line; the calculator picks its value and updates the total.

Camera Sum Formula

The camera sum formula is the running total Tk = Tk−1 + vk, where vk is the value of capture k and T0 = 0. With a budget B, the amount left after k captures is B − Tk.

Tk=Tk−1+vk=∑i=1kvi,Lk=B−TkT_k = T_{k-1} + v_k = \sum_{i=1}^{k} v_i, \qquad L_k = B - T_k

Value of One Capture

A capture can hold several numbers n1, …, nm. The calculator sets vk to their sum, their maximum or the first one, depending on the chosen mode.

vk∈{∑jnj, max⁡jnj, n1}v_k \in \Big\{ \sum_j n_j,\ \max_j n_j,\ n_1 \Big\}

Average per Capture

The average per capture is Tk / k. For the 5 demo tags, $47.23 / 5 = $9.45 (rounded to cents).

InteractiveRunning total against a budget

Types of Camera Sum Capture Modes

There are 3 camera sum capture modes and 3 number filters: add all numbers, take the largest number or take the first number, combined with any number, prices only or whole numbers only. A shelf tag reading "2 for 5.00 SAVE 1.50 unit 2.50" gives 11 with all numbers, 5 with the largest number and 2 with the first number.

InteractiveOne busy price tag, 9 readings

Add All Numbers

Adds every number in the capture. Best for a column of figures or a scoreboard.

Largest Number

Keeps the biggest number. Best for shelf tags, where the price is the largest figure.

First Number

Keeps the first number read. Best for meters and counters with 1 main reading.

Prices Only

Accepts numbers with exactly 2 decimals, such as 5.00, and skips quantities like 2.

Whole Numbers Only

Accepts integers such as meter readings and skips prices and weights.

Any Number

Accepts every number, including decimals and negatives.

How to Calculate a Camera Sum by Hand

To calculate a camera sum by hand, write each captured value on a new line and add it to the previous running total. Here are 5 price tags with a $50 budget:

  1. $12.99 → total $12.99.
  2. + $4.50 → $17.49.
  3. + $7.25 → $24.74.
  4. + $19.00 → $43.74.
  5. + $3.49 → $47.23; budget left $50 − $47.23 = $2.77.
InteractiveStep through 3 camera sums

    Camera Sum Accuracy: Distance, Light and Resolution

    Camera sum accuracy depends on 3 factors: digit height in pixels, light and steadiness. OCR engines such as Tesseract read best when characters are at least about 20 pixels tall; an 8 mm (0.31 in) price digit seen by a 720 px video stream at 30 cm (11.8 in) is about 23 px tall.

    • Distance: halving the distance doubles the digit height in pixels.
    • Resolution: a 1080 px stream gives 1.5 times the digit height of a 720 px stream.
    • Light and blur: glare on glossy tags and motion blur cause most misreads; tilt the tag and hold still for 1 second.
    InteractiveDigit height in pixels vs. distance

    Camera Sum Permissions and Privacy

    The camera sum calculator needs 2 things to open the camera: a secure https page and your permission in the browser prompt. Browsers follow the W3C Permissions specification, so you can allow, block or reset camera access for the site at any time from the address bar.

    Frames are processed on your device: the video never leaves the browser, and only the tesseract.js engine and its English language file are downloaded on the first capture. When the camera is blocked, missing or busy, the calculator says so and keeps the manual entry box ready.

    InteractiveWhat this browser allows right now

    Common Mistakes with Camera Sums

    The 5 most common mistakes with camera sums are capturing the same item twice, reading unit prices instead of prices, shooting from too far, ignoring glare and using the wrong decimal separator.

    • Double captures: check the Captures table and delete a repeated line.
    • Unit prices: a tag that shows 2.50/lb and 5.00 needs Largest number or Prices only.
    • Too far away: digits under about 20 px tall are often misread.
    • Glare: reflections on plastic tags hide digits; change the angle.
    • Decimal comma: 1.299,00 read with a decimal point becomes 1.299 and 0.
    InteractiveTrue or false: camera sums
    1. The camera can open on a plain http page.

    2. Halving the distance to a tag doubles the digit height in pixels.

    3. Largest number picks 5.00 from "2 for 5.00 unit 2.50".

    4. The calculator stops working when camera permission is denied.

    5. The sum of meter readings equals the energy used.

    Score: 0 / 5

    How to Use the Camera Sum Calculator

    Press Start camera, allow access, fit a number inside the orange box and press Capture and read; repeat for each item. Each capture becomes a line in the box, the total updates, and the tabs show the steps, the running-total chart and the capture table.

    InteractiveLoad sample captures

    Each button fills the calculator as if the camera had read the numbers.

    1. Start the camera

      Press Start camera and allow access; the rear camera opens on phones.

    2. Capture

      Fill the orange box with the number and press Capture and read. Stop the camera when done.

    3. Check the lines

      Each capture is a line you can edit or delete; type lines by hand without a camera.

    4. Set mode and budget

      Choose how to value each capture, a filter, a budget and a currency.

    Real-Life Uses of a Camera Sum

    A camera sum has 5 real-life uses: shopping on a budget, stock counts, meter readings, scorekeeping and checking printed totals.

    • Shopping on a budget: capture each shelf price and see the money left before checkout.
    • Stock counts: capture the count label of each box on a shelf for an inventory total.
    • Utility meters: capture electricity, gas or water meters monthly; usage is the difference between readings.
    • Scorekeeping: capture scoreboards or score cards and total the points.
    • Checking printed totals: capture the items of an invoice and compare the sum with the printed total.
    InteractiveMonthly meter captures → energy used and cost

    Camera Sum Examples

    Sample captures, the mode used and the running total.

    Camera Sum Examples
    CapturesMode and filterTotalNoteCalculator
    12.99, 4.50, 7.25, 19.00, 3.49All numbers$47.23$2.77 left of $50
    12.99, 4.50, 7.25, 19.00, 3.49All numbers$47.23$7.23 over $40, at capture 4
    6 grocery tagsLargest, prices only$35.62$5.62 over $30, at capture 6
    2 for 5.00 SAVE 1.50 unit 2.50All numbers$11.00Adds the quantity 2 too
    2 for 5.00 SAVE 1.50 unit 2.50Largest number$5.00Shelf price
    2 for 5.00 SAVE 1.50 unit 2.50All, prices only$9.005.00 + 1.50 + 2.50
    18250, 18542, 18801First, whole numbers55,593Usage = 18801 − 18250 = 551
    12,99 · 4,50 · 1.299,00All, decimal comma€1,316.49European format

    Popular Camera Sum Problems

    Work each one out, then reveal the answer or check it in the calculator.

    1. You capture 5 tags: 12.99, 4.50, 7.25, 19.00 and 3.49. How much is left of a $50 budget?

      Show answerTotal $47.23; $2.77 left
    2. With a $40 budget, at which capture does the same list pass the budget?

      Show answerCapture 4 (running total $43.74)
    3. A tag reads "2 for 5.00 SAVE 1.50 unit 2.50". What does Largest number capture?

      Show answer5.00
    4. Same tag with Prices only and All numbers: what is the value?

      Show answer5.00 + 1.50 + 2.50 = 9.00
    5. Six grocery prices 3.49, 2.79, 4.25, 5.60, 12.99, 6.50 against a $30 budget: how far over?

      Show answerTotal $35.62; $5.62 over
    6. Euro tags read 12,99, 4,50 and 1.299,00. What is the total?

      Show answer€1,316.49

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a camera sum calculator?

    A camera sum calculator is an online tool that reads numbers through a device camera with OCR and adds each capture to a running total. It shows the total, the average per capture and the budget left.

    Does the camera sum calculator need an app?

    No, the camera sum calculator runs in a mobile or desktop browser such as Chrome, Safari, Edge or Firefox, with no app to install.

    Is the camera video sent to a server?

    No, the video frames stay in your browser. OCR runs on your device with tesseract.js; only the engine files are downloaded on first use.

    What if I deny camera permission or have no camera?

    The calculator shows a clear message and keeps the manual entry box. Type one number or one capture per line and press Total the captures.

    Why does the camera not start?

    The camera needs an https page, browser support for getUserMedia, your permission and a camera not in use by another app. The Permissions section checks the first 3 for you.

    How do I read only the price on a shelf tag?

    Choose Largest number, or All numbers with the Prices only filter, so quantities, weights and item codes are skipped.

    Can the camera sum calculator track a budget?

    Yes, enter a budget to see the amount left, the amount over and the capture at which the running total passed the budget.

    How close should I hold the phone?

    Hold the phone about 20–40 cm (8–16 in) from a price tag, so each digit is at least about 20 pixels tall in the video frame.

    Can I correct a wrong capture?

    Yes, every capture is a line of text in the box; edit or delete the line and press Total the captures again.

    Conclusion

    A camera sum adds numbers as you capture them, and the camera sum calculator does it live with in-browser OCR, 3 capture modes, 3 filters and a budget check. Fill the guide box with each number, check each line, and fall back to typing when the camera is not available.

    Not sure how to set up your captures? Answer the questions below.

    InteractiveWhich camera sum setting should you use?