Can you count calories without the internet
The answer varies depending on the part of the application. Photo recognition does not work offline for anyone, but the diary and reference database work perfectly well.
What requires a network and what does not
| Function | Network required | Why |
|---|---|---|
| Recognizing a dish from a photo | Yes | The model runs on a server, not on the phone |
| Parsing a menu page | Yes | Same as above |
| Barcode search | Depends | Scanning the code is local, searching for the product is in the database |
| Diary and history | No | Entries are stored in the browser storage |
| Calorie reference guide | No, if pre-loaded | This is static data |
| Calculating daily intake and macros | No | Arithmetic |
Why recognition cannot work offline
The model that identifies a dish in a photo and estimates portion weight consists of several gigabytes of weights and calculations that an average phone would take tens of seconds to process. It physically does not fit into the application and cannot run on the device.
There are smaller models that work on a phone, but they solve a different task: distinguishing pizza from salad in a list of a hundred categories. They cannot estimate portion weight, distinguish sour cream from mayonnaise in a dressing, or account for oil in a stir-fry — and that is exactly what the numbers depend on. A breakdown of where the limits of these capabilities lie is available separately: why AI confidently provides incorrect figures.
Barcode: half the work is done offline
Here it is worth distinguishing between two steps that the user perceives as one.
Scanning the code — recognizing the bars with the camera — happens in the browser, locally, and does not require a network. This results in a number: thirteen digits of EAN-13.
Searching for the product by this number — is a request to the database. This is what requires a network, because the database resides on a server and contains millions of items.
The only way to bypass the second step is to put part of the database on the device in advance. That is how it is done — with a volume limitation. Here, for example, a package of ten thousand products is loaded into the browser and updated once a day; when there is no network, the search is performed against it. Ten thousand is not the entire database, but a significant portion of what is actually on the shelf.
What a barcode can tell you about a product and what it cannot is analyzed separately: barcode on packaging.
The diary always works
Entries about what you have eaten do not require a network by their nature: these are your data, and they live in the browser storage on the device. You can add a dish, view the daily total, or see the week while on a plane.
A network is needed in two cases: when you need to recognize something new and when you need to transfer the diary to another device.
How the application opens without a network at all
This is handled by a mechanism built into browsers — a service worker. Upon the first visit, it saves the application files to the device, and subsequent opening happens from the local copy, not from the network. This is precisely why a web application added to the home screen launches in airplane mode just like a regular one. More details — an application that does not need to be installed.
It is easy to check this on any service: open it once with a network, then turn on airplane mode and open it again. A white screen or an error means that offline mode is not provided there at all.
What to do when traveling without a connection
A practical guide for planes, trains, and traveling abroad without roaming:
- Before leaving — open the application at least once so that it is saved to the device, and allow the product package to update.
- On the road — record from memory and using reference values. Accuracy will be lower, but skipping an entire day distorts the week more than an approximate entry.
- Take photos for later. The images remain in the gallery, and you can process them later when a network becomes available. This is the best option available: an estimate based on a fresh photo is more accurate than an estimate based on a memory from two days ago.
- Do not try to reconstruct everything retroactively. Three days recorded approximately are more useful than three days reconstructed in detail and incorrectly.
Why there are almost no fully offline counters left
They used to exist and work: the product database fit into the application, the search was performed against it, and the internet was only needed for updates. They disappeared not because of technology, but because of data — the composition of products changes, the assortment is updated, and a local database becomes obsolete faster than a user can update the application. Plus, recognition by photo, which is impossible offline in principle.
A reasonable compromise today looks like this: the interface and diary are local, reference data is local with updates, and recognition is on the server. This is exactly what most do.
Frequently asked questions
- Does food recognition via photo work without an internet connection?
- No. The model weighs several gigabytes and runs on a server; it does not fit on a phone. Smaller on-device models can distinguish food categories, but they cannot estimate portion weight or composition.
- Can I scan barcodes offline?
- Reading the code itself with the camera happens locally and does not require a network. Searching for a product by code accesses a database—offline, it only works using a pre-downloaded product package.
- What should I do with entries while on a plane?
- The diary works without a network: entries are stored in the browser's storage. It is more convenient to take photos of new meals in advance and process them later—an estimate based on a recent photo is more accurate than recalling from memory two days later.
Read next
- Barcode on packaging: what is encrypted in it and what is not — There is a persistent belief about barcodes: that you can supposedly tell the country where a product was made from the first digits, and verify its authenticity from the rest.
- An app that doesn't need to be installed — Your phone's home screen can feature an icon that isn't linked to an installed app.
- How a neural network recognizes food in a photo — A photo of a plate turns into a number on the screen in a few seconds, and from the outside, it looks like a measurement.
This article is for general information. It is not medical advice, a diagnosis, or a prescription for treatment or a diet, and it does not replace a consultation with your doctor. If you have a health condition, are pregnant, take medication, or follow a diet prescribed to you, decisions about food belong with your doctor.
Figures from regulations, guidelines and studies are given as they stood when this article was prepared and may since have changed; check them against the primary sources. This article is not advertising, an offer, or individual advice, and neither the author nor the site owner is responsible for decisions taken on the basis of it.