How the scanner works on the Xiaomi smartphone: from fingerprint to document

Xiaomi’s modern smartphones have long since ceased to be just callers, becoming universal tools for working with information. When users ask how the scanner works on Xiaomi, they often mean two completely different technologies: biometric protection or text recognition, in both cases, complex algorithms integrated into the MIUI or HyperOS shell are responsible for the process.

Device owners often don’t realize that the camera’s built-in app hides a powerful document scanner that doesn’t require third-party software to be installed, which uses artificial intelligence to define sheet boundaries, align perspective, and improve readability. Understanding how these modules work not only speeds up work, but also improves the security of personal data.

In this article, we will take a closer look at the mechanics of optical and ultrasound scanners, learn how to adjust sensitivity correctly, and eliminate common recognition errors, learn how to turn your Redmi or Poco camera into a full-fledged office scanner, and also find out why sometimes your phone stops seeing your finger after a protective glass is pasted.

Principles of operation of biometric sensors

The security foundation of Xiaomi’s ecosystem is built on biometrics, with a fingerprint scanner that can be located on the back, in the on button, or directly under the display. Optical underscreen scanners, popular in flagship models, work on the principle of photographing a finger with bright light.

When you put your finger on the screen, a special zone lights up underneath, lighting up the papillary pattern, and the camera underneath the display takes the picture and sends it to the Trusted Execution Environment (TEE) security module, where the image is converted into a digital hash code, which is compared to the reference, and the image itself is not stored anywhere, which guarantees privacy.

The ultrasonic scanners that we see in the top-end models are different. They use high-frequency sound waves to create these. 3D-This allows the device to read the fingerprint even through thick protective glass or when the finger is slightly wet.

⚠️ Attention: Using cheap hydrogel films or black-framed glasses can completely block the operation of the underscreen scanner.

To maximize efficiency, the system offers calibration, and if the phone starts to get wrong, you should retrain the fingerprint by adding a second profile of the same finger at a slightly different angle, which will expand the database and improve recognition in non-standard positions of the device.

📊 Which type of fingerprint scanner do you like best?
Optical subscreen
Ultrasonic.
Classic on the back.
In the switch

Hidden document scanner in the Camera app

Many users have been installing third-party applications like CamScanner for years, not knowing that MIUI already has a powerful tool built in to digitize papers, and it's in the standard Camera app and activated via Still mode or a swipe in the shooting mode menu, called Documents, and it uses neural networks to analyze the scene.

The algorithm automatically looks for rectangular objects that contrast with the background. Once the document frame is fixed, the camera takes a series of images with different exposures, selecting the clearest frame, then programmatically trimming the background, aligning the geometry of the sheet, and applying a filter that removes shadows and increases the contrast of the text.

You don't need root rights to activate this feature. Open the camera, go to More → Documents. Some versions of the shell may have different paths: Camera → Modes → Documents. If you don't find this option, check for Camera updates in GetApps.

💡

For better scanning quality, use a single-color contrast background (such as a dark white paper table) to help the algorithm determine the boundaries of the document faster.

Once the scan is created, the system will offer to save the image in the gallery or immediately recognize the text. The OCR (optical character recognition) function in Xiaomi works on the basis of Google engines or the company’s own development, supporting many languages, including Russian and English. The accuracy of recognition depends on the quality of the original image and font.

Sensitivity adjustment and calibration

The scanner's performance depends on the right settings, and you can adjust the security menu to adjust the speed and accuracy of the reading, especially for owners of devices with subscreen modules, where pressurization and surface cleanliness are important.

To get into the settings menu, go to Settings → Passwords & Security → Unlock by fingerprint. Here you will find a list of registered fingers and the ability to delete or rename them. Also, this menu often hides the “Improving Recognition” option, which suggests adding fingerprint variations.

  • 📱 Adding an alternate fingerprint: Write down the same finger a second time while holding the phone at a different angle.
  • 💧 Mode with wet hands: some models allow you to increase the sensitivity of the sensor in the developer settings.
  • 🛡️ Safe Startup: Set up the Entry Requirement PIN-code after restarting the device for additional protection.

If the scanner is slow to start working, try clearing the cache of the system’s Security service. Go to Settings → Apps → All Apps → Security → Memory → Clean. This action will not delete your data, but will reset temporary files that may have caused a conflict of processes.

☑️ Diagnostics of the scanner

Done: 0 / 4

It's important to understand that software calibration has its limits, and if a physical sensor is damaged or contaminated from the inside (such as moisture), software methods won't help, and in such cases, a diagnostic service center is required.

Use Google Lens and Mi Scan

In addition to built-in tools, Xiaomi smartphones are actively integrated services Google. Google Lens is available directly from the search widget or through the camera. It is a powerful tool that can not only scan text, but also translate it in real time, recognize plants, animal breeds and goods.

To work with text, just point the camera at the document and press the Text button, and the system will highlight all the areas that you recognize, so you can copy the entire text at once, highlight the fragment or scan it. QR-Unlike a standard document scanner, the lens works better with complex formatting and handwritten text.

Special attention deserves the application Mi Scan (or similar system utilities depending on the region of the firmware). PDF-Files, watermarks, and immediately send documents to print or cloud storage. Integration with Mi Cloud allows you to synchronize scanned documents between your phone and tablet.

⚠️ Note: When using cloud services for text processing (OCR) Your images may be sent to the company's servers for analysis. Do not scan documents containing sensitive data (passwords, card numbers) through online services.

For quick activation of the scanner QR-You can use the Quick Ball function or set the camera to launch by double pressing the lock button, which speeds up access to the scanner in critical situations when you need to quickly read the code from the screen of another device.

Technical features and types of sensors

The differences in scanners are due to their technical implementation. Redmi budget models often have capacitive scanners located on the back, which physically press, which gives a tactile response and high speed, but takes up space on the body.

The mid- and flagship segments are dominated by first- and second-generation optical subscreen scanners, which take up less space inside the case, allowing for larger battery packs, but require backlighting, which can be seen in the dark. New generations are using dimmer but more efficient backlights.

The table below shows a comparison of the main types of scanners used in Xiaomi devices:

Sensor typeLocation.Speed of operationWorking with moisture
CapacitiveBack panel/ButtonTall.Low.
Optical (Gen 1)Under the screenMediumMedium
Optical (Gen 2/3)Under the screenTall.Good.
Ultrasonic.Under the screenVery high.Great.
Why is the scanner warming up?
When the scanner is under the screen, the area under the finger can get slightly warmer due to the backlight and the image processor, which is normal and not a defect.

Understanding the type of sensor you have helps you take care of your device, for example, optical scanners are critical to the cleanness of the screen in the sensor area, whereas capacitive scanners can become contaminated by sweating your hands, which requires regular washing with an alcohol wipe.

Remediation of malfunctions and failures

Periodically, users are faced with a situation where the scanner stops responding or is working with errors, most often the problem lies in a software security failure or contamination, the first thing to do is to thoroughly wipe the scanner area and screen.

If cleaning didn’t work, try restarting the device in safe mode, which will eliminate the influence of third-party applications that can intercept control of the camera or sensors. To enter safe mode, press the switch off button, and then hold the “Switch off” option on the screen for a long time.

  • 🔄 Network reset: sometimes Bluetooth conflict or NFC Impacts the operation of communication and security modules.
  • 🔨 Resetting all settings: an extreme measure before flashing, returns all system parameters to factory.
  • 🔧 Engineering menu: Entering code ##6484## allows you to run a hardware test and check the sensor response.

In the engineering menu, select Fingerprint test or Camera test. Follow the instructions on the screen. If the test fails, it's probably a hardware problem, from the plume that left the board to the module itself.

💡

If the scanner does not work even in safe mode and after resetting the settings, a hardware breakdown is likely, requiring the intervention of specialists of the service center.

In security patches, Xiaomi often fixes biometric vulnerabilities and improves the algorithms of scanner drivers. Failure to update can lead to unstable device operation in the long run.

Frequently Asked Questions (FAQ)

Can I unlock a Xiaomi phone in gloves?
Standard optical and capacitive scanners don't work with regular gloves, because the material blocks the signal or light. Ultrazoo scanners can penetrate a thin layer of tissue, but for reliable work it's better to use face unlock or face unlock. PIN-code.
Is it safe to store fingerprints in the cloud?
No, Xiaomi doesn’t send or store fingerprints anywhere in the cloud, data is stored in an isolated Secure Element chip inside the smartphone itself, and is not accessible to apps or the Android system directly.
Why can't the document scanner see the edge of the sheet?
This happens when there is a low contrast between the document and the table surface: Put a white sheet on a dark background or use the Manual Mode feature in the camera app to set the trimming boundaries yourself.
How to increase the speed of unlocking by fingerprint?
Write the same finger twice under different names (e.g., "Finger 1" and "Finger 1 copy"), which will double the base of references and increase the likelihood of a quick match.
Does the scanner work on a broken screen?
If only the outer glass (tachscript) is damaged, but the matrix is intact, the underscreen scanner can work, but if the sensor sensor sensor itself is affected or there are cracks blocking the light, the scanner will not work.