Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphiRAD Studio

Learn How To Deploy A Powerful Camera Component For Delphi On iOS By WINSOFT

  1. Introduction

Camera for iOS is a Firemonkey component, which support iOS platform only. It uses AVFoundation framework and supports native video preview. It also supports native barcode detection (EAN, QR Code, Data Matrix, Aztec, UPC-E, PDF417, ITF 14, etc.) and native face detection.


2. Components in the Demo and what they do


The Demo contains a TabControl which opens two screens (tabs). The Screen ‘Preview’ opens the camera in a format, set up in the ‘Settings’ screen. The Settings screen itself contains the main settings that the Camera component offers. The description of a certain settings is shown with TLabel and the Dropdown options are loaded in TComboBox. For example at the top you can choose between rear and front camera which respectively open one of the both camera on the phone. In the next code below you will see how this is handled:

The function FindDevice goes through the camera devices of the phone and filters the chosen one by name, as it follows:

Same structure and logic is used for the rest of the settings – Camera format, resolution, Flash, on or off, Torch on or off, etc.

There are also two timers – one for the face recognition and one for the barcode recognition. When started, they both hide the rectangles for the Face recognition or barcode recognition, depending on of has been caught by the Camera component.

In the short video below you can see the Demo in action:

You can downlaod the Demo from the link below:


What's New for RAD Studio 11

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts

How to Use C++ Builder Path Manipulation Routines on Windows

DelphiNewsRAD Studio

Announcing DelphiCon 2021!

C++DelphiIDENewsRAD Studio

New in RAD Studio 11: High DPI IDE and Form Designing!


The Best C++ Posts For New Windows Developers This Week

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.