Photo payment: on the device or on the server?

Two specialists look at a laptop together in a server room.

In short: both approaches can be secure and compliant with data protection law.

On the device, the image stays in the app, but the range of features is limited, and the quality and currency of results depend more on the smartphone and on your app releases. With a server-based solution, the image is transmitted in encrypted form; in return, extraction quality can be improved centrally and rolled out without a release update, more features are available, and quality is noticeably better for everyone thanks to many millions of documents. What matters is not the label but the actual data flow in your app.

The two approaches compared

QuestionOn the deviceOn the server / via API

Where is the image read?

on the smartphone

on the provider’s infrastructure

Is the image transmitted?

not with purely local recognition

yes, encrypted. Only the payment data comes back

Does recognition need internet access?

no

yes

What determines the size of the models?

the smartphone’s memory and processing power

the provider’s resources

How do improvements reach users?

usually with an SDK update and app release; some solutions download models later

centrally, without an app release, immediately for everyone

What role do older devices play?

processing power and memory can affect the result

recognition is the same for everyone; only image capture depends on the camera

What does data protection review?

local processing plus telemetry, logs, crash reports, and network calls

transmission, hosting, access, deletion, and the data processing agreement

Two data flows in photo payment. With local recognition, the invoice image stays on the device. With server-side recognition, the app sends the image to the API in encrypted form and receives only payment data in return. In both cases, the data is checked in the app.

What ‘on the device’ should really mean

By definition, the term only says where recognition is computed. You should also check:

  • Are images or recognised data still transmitted anywhere, for example to improve quality?
  • Do telemetry, analytics tools, or crash reports contain invoice content?
  • Does the SDK download models or updates from external servers?
  • Does the SDK connect to servers for licence or activation checks?

Regular updates: two different tasks

A better recognition model is something different from a new camera interface.

Better recognition

On the server, it takes effect immediately for all apps, with no work for your team. With local on-device extraction, it usually arrives as a new SDK version that your team integrates, tests, and ships in a release. After that, it only reaches users who update their app.

New interface

Interface changes, for example for a new system design, reach users as an SDK update with your release in both cases.

Ask every provider how often its recognition improves and how those improvements reach your customers.

When each approach fits best

If this applies to youthe better fit is

Your policies rule out any transmission of invoice images

On-device recognition

Invoices must be recognised even without internet access

On-device recognition

Improvements should arrive without an app release

Server-side recognition

You need many invoice types, languages, and QR standards

Server-side recognition

Some of your customers use older smartphones

Server-side recognition

You want maximum compatibility, from familiar QR codes to new formats such as the Wero code

A hybrid that automatically chooses the right approach for each input

Why Gini combines both approaches

Gini checks every input and chooses the right approach within milliseconds. Known payment codes are recognised instantly. New formats such as the Wero code, unknown QR codes, and invoices without a code go to invoice recognition, which uses the whole invoice as context. They are transmitted in encrypted form and read in certified Tier 4 high-security data centres in Germany. Only the payment data goes back to the app.

Your customers don’t notice any of this. The aim is maximum compatibility with every invoice and payment code they receive.

Data sheet Security, privacy, and DORA

Testing the data flow technically

An architecture slide is a start, but a test is better. Set one up with your information security team:

  1. Use the app on a test device with a made-up test invoice and record the network traffic.
  2. Check which servers are contacted and what is transmitted.
  3. Check telemetry and crash reports for invoice content.
  4. Compare the result with the provider’s architecture diagram and contract.

Frequently asked questions

Is on-device recognition automatically better for privacy?

Not automatically. It avoids transmitting the image, but telemetry or crash reports can still send data. Server-side recognition can be just as compliant if the data processing agreement, including hosting, certifications, compliance, evidence, and contract, is in order.

Is server-side recognition more accurate?

Generally, yes. Servers offer plenty of processing power, large, up-to-date, and highly optimised models, and central training. Every improvement takes effect immediately for all users. On the device, by contrast, recognition always depends on the model currently shipped, the smartphone’s performance, and the operating system version. At Gini, this shows in accuracy: 92% on average, while comparable solutions on the market achieve around 70%. Still, measure with your own invoices, for every provider.

Is server-side recognition slower?

Not necessarily. Transmission takes time, but servers compute faster than smartphones. Measure the time to a completed transfer on real devices. At Gini, the average processing time from sending the image to receiving the data is 1.7 seconds.

What happens with Gini without internet access?

Full recognition requires an internet connection. The transfer itself needs a connection to the bank anyway.

Why does Gini use the server for invoices?

Because recognition can be improved continuously there, improvements reach everyone without an app release, and recognition works equally well on all devices. For a feature that is part of an app’s critical infrastructure, every percentage point of accuracy counts.

Want to talk through your architecture? We’ll show you how Gini fits into a specific banking app.

Discuss your architecture with Gini

Does your company operate a mobile app?

Does your company operate a mobile app?
Please provide all necessary information to proceed to the next step.