How to detect and anonymize facial biometrics via Postman

Facial biometrics detection is a very useful and widely used technique in computer vision. It allows systems to identify and track faces in images or videos, which can be useful in a large range of applications, such as face recognition, emotion detection, security, and others.

Face detection in images or videos has many practical applications: use in face recognition systems for authentication and security in mobile devices, in surveillance systems to detect suspicious activity in public places, and in entertainment applications to create face-based filters and effects

The process of face anonymization, on the other hand, refers to hiding or blurring a person's facial identity. It can be applied to protect the individual's privacy, ensure safety in risky situations, and comply with data privacy laws. Examples include images and videos captured by surveillance cameras in public spaces, where people's privacy also needs to be protected.

Learn to detect biometrics with Postman

Now that we know some of the important applications for these technologies, let's learn how to detect and anonymize faces in an image, using BioPass ID's multibiometric API package features and Postman as a test platform.

Ready to put it into practice? Check out the steps below.

1. Get the biometric API access key

To make requests to the biometric API, you must obtain the access key that identifies and allows the use of the different functionalities of the system.

2. Detect faces

In this tutorial we will use a single image with 3 faces, taken from the internet, which will be used for both detection and anonymization. In BioPass ID's multibiometric API package, the face detection operation shows us the number of faces found in an image and the rectangles that indicate the positions of each of them. This is what we will see now.

2.1 Set up the authorization header

Once you have acquired the API access key, set up the authorization header. As shown in the Biometric API documentation, the URL used for this call is https://api.biopassid.com/multibiometrics/face_detect and the method is "POST".

Then select the type for "API Key", fill in the "Key" and "Value" fields respectively with Ocp-Apim-Subscription-Key and the value of the "API key", which is the access key mentioned earlier. Select the "Header" option in the "Add to" field. All the fields mentioned are marked in red, as shown in the image below:

2.2 Define the body of the request

Now fill in the parameters for the body of the request.  Select the "Body" section, the point "raw" and in the drop-down list, the JSON format, an abbreviation for "JavaScript Object Notation", a lightweight, easy-to-read and easy-to-write data interchange format often used to transmit data between a server and a web client.

The structure of the request body has the "Check" object, which represents the analysis of the submitted image, and within it, has the "Image" field. Include the converted image in the base64 string. If you want to understand a bit more about base64, as well as learn how to do the encoding, you can follow step 5 of the article How to register an individual's facial biometrics with Postman.

In Postman, the structure looks like this:

We have placed the partially filled code below. You just need to replace the content of the "Image" field:


  "Check": {

    "Image": "{{base64}}"



2.3 Analyze the request response

In case of success, you will see the status "200 OK" and the body of the response with an object of the "DetectedFaces" type with the fields: "FaceNumber" which returns the number of faces found in the image and "FaceRects" an array of objects, where each object corresponds to a rectangle that indicates the position of a face detected in the submitted image. Each object has the x and y coordinates, as well as the height and width of the rectangle.

See the image below for the structure of a successful response:

On unsuccessful operation, the response status is a numerical code that starts with the numbers 4 or 5, accompanied by the reason for the error. An example is "FaceNotFound", which occurs when no face is found in the image. This type of failure can also occur when the image submitted is of low resolution and has many faces. Take a look at a request template with the mentioned failure:

Remember, you can see the error codes and their descriptions in the Biometric API documentation.

3. Anonymize faces in photos

Now that you've learned about and tested a face detection operation, an important feature of the BioPass ID multibiometric API package for many types of applications, you can move on to the function that anonymizes a face.

Use the same image as the previous operation, which has 3 faces When the request is complete, an image will be returned in PNG format with a blur rate of 0.8, i.e., the faces identified in the image will have their transparency reduced by 80%.

The format of the header and body of the request is almost identical to the face detection operation, the only difference is in the last part of the URL https://api.biopassid.com/multibiometrics/anonymizer

The successful response will return with the status "200 OK" and the body with an object of type "FaceAnonymizer" and an "Image" field with the image in base64 string. See below:

3.1 Decode the base64 string

To see the image with the anonymized faces, now decode the base64 string contained in the "Image" field of the request response. 

It is simple and fast, just copy the content belonging to the "Image" field and access the same online converter that was used to encode the image submitted in the operation, follow the direct link: https://base64.guru/converter/decode/image.

On the page, paste the content into the reserved space, click on the 'Decode Base64 to Image' button, and the image will be generated instantly. See below:

Process Conclusion

As you have seen in this article, the process of testing the face detection and anonymization functionalities is relatively simple and can be performed by professionals from different fields using tools and software available on the internet.

By testing the BioPass ID Biometrics API, it is possible to evaluate its efficiency in different conditions, such as low light environments or with variations in the position of faces. In addition, testing also allows you to identify possible flaws or limitations of the API, which can be corrected or bypassed before its implementation in systems and applications.

Also understand how to compare facial biometrics using Postman, in another tutorial on our Blog.

Translation: Thalita Ferreira

Don't miss out on our updates!

Subscribe to BioPass ID's newsletter and stay up-to-date with the world of biometrics and technology.

Thanks! We received your message!
Oops! Algo deu errado no envio do formulário.
Tente novamente em instantes.


Financial fraud: how multi-factor authentication can help solve the problem

Multi-factor authentication is the trend emerging to combat the rise in financial fraud. Find out how to use and apply the technology.

Health 4.0: what it is, its benefits and challenges

Health 4.0 is data-driven and focused on personalizing patient care. This article explores the benefits and challenges of this approach.

Contactless technology: learn about the innovation and its benefits

Contactless technology is growing at more than 180% annually, with strong adoption among the Brazilian public. Learn more about contactless payments.

Types of healthcare fraud: how biometrics can prevent them

Discover the most common healthcare frauds and how biometrics can help prevent these threats.

Privacy and Security
3 technology trends for the healthcare market

Technology helps improve both human and institutional health. Find out more about the emerging trends in the healthcare market.

How to prevent fraud in public tenders with biometrics?

Fraud in public tenders can be prevented using biometrics, which brings more security and reliability to competitions. Find out more!

How can BioPass ID APIs optimize healthcare services?

The use of APIs in healthcare simplifies processes and improves the quality of medical care. Learn more!

How biometrics strengthens security in brazilian schools

The biggest benefit of using biometrics in schools is increased security. But there are many other benefits. Find out more here.

Discover how BioPass ID prevents financial fraud

Fraudsters create new financial scams every day. Discover how BioPass ID protects companies and customer data from malicious actions.

Telemedicine in Brazil: 5 advantages of using biometrics

The security and confidentiality of telemedicine in Brazil are concerns that are eliminated with the use of biometrics. Read more in the article.

APIs for the financial market: how can they help your company?

APIs bring agility and savings to banks and fintechs. Discover other benefits that can also help financial institutions.

3 APIs for the BioPass ID to streamline the education process

Biometric APIs can increase the security of educational institutions and improve operational efficiency and the student experience. Find out more.

How to identify and prevent bank fraud

Learn how to identify bank fraud and how biometrics can help secure your information.

Technology in Finance: trends and challenges

Artificial intelligence, open finance, and advanced biometrics promise to transform the financial marketplace. Learn more to stay ahead.

5 security trends in education

Schools are facing complex security challenges and are trusting in technological innovation to solve these problems. Discover the top 5 trends.

GDPL and biometrics: what to do to adapt

The GDPL has raised questions about the treatment and privacy of user data. Understand once and for all how it works.

Privacy and Security
5 benefits of using a Rest API

Rest APIs are ideal for cloud applications. Find out how to use them in your project.

Cybersecurity: what it is and how to invest

Learn all about cybersecurity and find out how to protect your data online.

Privacy and Security
Liveness Detection: what’s the difference between passive and active?

The liveness detection technology may be used in a passive and active method to identify the proof of life authenticity of an image. Learn what’s the difference between them.

ICAO standard: how to ensure biometric image quality

Quality biometric images meet ICAO standard to optimize identification and identity verification. Check out BioPass ID's solutions.

Microservices architecture: what they are and their benefits

Learn what is the architecture model for software development using microservices and what are its advantages.

How to speed up software developments with SDKs

The Face SDK, one of the BioPass ID SDKs, makes it possible to build and configure development platforms or applications quickly.

Biometric boarding in Brazil: benefits and how it works

Meet the new technology that is breaking new ground in airport security.

Cloud Observability: what it is and how to use it

How to use web application monitoring and microservices in BioPass ID cloud-based biometrics platform. Check it out!

How to use Postman to evaluate the quality of a facial biometrics

A quick guide on how to use Postman, an API testing tool, to evaluate the quality of facial biometrics.

How to detect spoofing in facial biometrics with Postman

Learn how to use the Postman tool to detect possible spoofing attacks on facial recognition biometric authentication systems.

How to detect and anonymize facial biometrics via Postman

Check out how to detect and anonymize facial biometrics using the Postman platform and the BioPass ID feature set.

Proof of Life: learn more about Liveness 2D V2

Biometrics, liveness and BioPass ID: how these technologies can boost your company and applications in the world of Biometrics as a Service.

ABIS: what is it, and how does it work

Biometrics, ABIS and BioPass ID. How these technologies can boost your company and applications in the world of Biometrics as a Service.

Liveness: the technology used by INSS to prevent fraud

Do you know Liveness? Learn how this tool can enhance your everyday security.

Why should you use biometrics in the cloud

Learn how the connection between Cloud Computing and Biometrics can increase the competitivity of companies in today's market.

How to use Postman to match facial biometrics

Understand the match between biometrics, using the BioPass ID feature set and the Postman platform to make API requests.

How to test a biometric API using Postman

Learn how to test a few CRUD operations of biometric API using Postman platform.

4 steps to integrate a BioPass ID biometric API

Learn how to implement and manage BioPass ID API packages in just 4 steps.

How to register a user's facial biometrics via Postman

Understand how to enroll facial biometrics through the Postman platform.

Kubernetes: the technology that enables cloud applications

Learn how BioPass ID uses Kubernetes, Containers, and cloud-native applications in its infrastructure.

Certify processes with the Analytics API

The Analytics API pack provides technology lenses that count people inside vehicles as well as in classrooms.

Online fraud: prevention tips with biometric validation

As our security advances, hackers also evolve their strategies. Do you know how to protect yourself from them?

Does biometrics contribute to trustworthy digital accounts?

As it seems, digital accounts are here to stay, but did biometrics contribute to this achievement?

What does the Roman Empire and biometrics have in common?

Did you know that the Roman Empire and biometrics have something in common? Yes, in concern for information security.

Data security: get better results with biometrics

Nowadays, with the amount of people connected, we care about the security of our data. Biometric correspondence can help with that.

Facial recognition is already being used in condos

Facial recognition technology is already being used in condos around the world as a way to ensure security and validate the entry of residents. Read this text to see how this process works.

How to prevent fraud using biometrics

Biometrics is an excellent security and validation tool, but you need to be aware of possible frauds. Read this text and learn more about it.

Learn the requirements of the ICAO standard (ISO 19794-5)

Learn about the characteristics of the icao standard for using facial recognition technology at airports.

How does facial biometrics help to keep your data safe?

Facial biometrics was one of the greatest security tools used in the pandemic.

What is the difference between API and SDK?

Understand the main differences between API and SDK, two technological tools often used by developers in applications.

What is cyber security?

Understand how cyber security works and how it can protect your data.

Do you really know how biometrics work?

Check out the news about the universe of biometrics, which develop and is integrated more and more in the daily life of the population.

What is an SDK?

SDK is a tool widely used in the technological environment. Learn more about it and learn how it can help you develop your applications.

How does facial biometrics work on public transportation

Facial biometrics has already been used in public transportation in some parts of the world. Learn how this technology can optimize the life of your users.

What is an API?

Understand what an API is, how it works, and where it runs in biometric applications.

Learn about multifactor authentication with multibiometrics

Understand how multi-factor authentication ensures full security and provides a good experience for your users.

Have you ever paid for your lunch with facial recognition?

As technology modernizes, new forms of access and payment are also created, and one of these possibilities is to pay with facial recognition.

Increase the security of your onboarding with Biometric Qualification

Onboarding is increasingly present in our lives, and as such, it is important to invest in increasing your security with biometric qualification.

Security flaws tendencies for 2022

From ransomware to identity management, learn about the main security flaws for 2022.

Using Facial Recognition in Videoconferences

Video conferencing is already part of our lives, but we need to pay attention to safety, imagine with the convenience of facial recognition?

Forget passwords, the future is passwordless

Who has never come across the event of forgetting a password? Forget it, the future is passwordless, contactless and frictionless.