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:

https://winsoft.sk/icamera.htm


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
CodeDelphiRAD Studio

Learn More About The Powerful Macros Property Of IFDPhysCommand With FireDAC In Delphi

DelphiRAD Studio

Quick Logger Is A Powerful Enterprise-Grade Asynchronous Logger For Delphi

C++CodeRAD Studio

Learn How To Use C++ Atomic Operations For Windows Development In C++Builder

C++Code

Easily Create Ultra-Fast C++ Applications With Low-Level libsimdpp Library In C++Builder

Leave a Reply

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

IN THE ARTICLES