<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to Detect Faces with NXP Vision Toolbox in MBDT for VISION</title>
    <link>https://community.nxp.com/t5/MBDT-for-VISION/How-to-Detect-Faces-with-NXP-Vision-Toolbox/m-p/802863#M21</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;H1 class="" style="color: #d55000; font-weight: normal; font-size: 22px; margin: 3px 10px 15px 4px; padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Face Detection&lt;/SPAN&gt;&lt;/H1&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px; text-align: justify;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;The following livescript uses MATLAB functionalities to simulate the face detection application. Face detection algorithm is implemented using Local Binary Patterns and Cascading Classifiers.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Read the input image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;inImgPath = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a020f0; padding: 0px;"&gt;'data/face_detection.png'&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;inImgUMat = nxpvt.imread(inImgPath);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;if &lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;isempty(inImgUMat)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; fprintf(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a020f0; padding: 0px;"&gt;'Failed to open input image: %s.'&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;, inImgPath);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; return&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;end&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;nxpvt.imshow(inImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #404040; background: white; font-size: 14px; padding: 10px 0px 6px 17px;"&gt;&lt;DIV class="" data-testid="output_0" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;DIV class="" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62155iC65B9E864FC610BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Define a face detector object.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;width = uint32(640);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;height = uint32(480);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;fdetector = nxpvt.FaceDetector(width, height);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Apply the face detection algorithm on the grayscale image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border: 1px solid #e9e9e9; padding: 5px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;[bbox, l] = fdetector.GetFaces(inImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Add the result on the original image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;outImgUMat = nxpvt.cv.rectangle(inImgUMat, bbox, [255, 0 ,0], 5);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;nxpvt.imshow(outImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #404040; background: white; font-size: 14px; padding: 10px 0px 6px 17px;"&gt;&lt;DIV class="" data-testid="output_1" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;DIV class="" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62156i734B449A29C9DB9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 17:22:17 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2018-06-20T17:22:17Z</dc:date>
    <item>
      <title>How to Detect Faces with NXP Vision Toolbox</title>
      <link>https://community.nxp.com/t5/MBDT-for-VISION/How-to-Detect-Faces-with-NXP-Vision-Toolbox/m-p/802863#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;H1 class="" style="color: #d55000; font-weight: normal; font-size: 22px; margin: 3px 10px 15px 4px; padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Face Detection&lt;/SPAN&gt;&lt;/H1&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px; text-align: justify;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;The following livescript uses MATLAB functionalities to simulate the face detection application. Face detection algorithm is implemented using Local Binary Patterns and Cascading Classifiers.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Read the input image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;inImgPath = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a020f0; padding: 0px;"&gt;'data/face_detection.png'&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;inImgUMat = nxpvt.imread(inImgPath);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;if &lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;isempty(inImgUMat)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; fprintf(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a020f0; padding: 0px;"&gt;'Failed to open input image: %s.'&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;, inImgPath);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; return&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="color: #0000ff; padding: 0px;"&gt;end&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="padding: 0px;"&gt;nxpvt.imshow(inImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #404040; background: white; font-size: 14px; padding: 10px 0px 6px 17px;"&gt;&lt;DIV class="" data-testid="output_0" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;DIV class="" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62155iC65B9E864FC610BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Define a face detector object.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;width = uint32(640);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;height = uint32(480);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;fdetector = nxpvt.FaceDetector(width, height);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Apply the face detection algorithm on the grayscale image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border: 1px solid #e9e9e9; padding: 5px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;[bbox, l] = fdetector.GetFaces(inImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="color: #000000; padding: 0px;"&gt;&lt;DIV class="" style="margin: 2px 10px 9px 4px; padding: 0px;"&gt;&lt;STRONG&gt;&lt;SPAN class="" style="padding: 0px;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;Add the result on the original image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #f7f7f7; margin: 10px 0px; padding: 0px;"&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-top: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 5px 0px 0px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;outImgUMat = nxpvt.cv.rectangle(inImgUMat, bbox, [255, 0 ,0], 5);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 0px;"&gt;&lt;DIV class="" style="border-bottom: 1px solid #e9e9e9; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; padding: 0px 0px 5px 10px;"&gt;&lt;SPAN class="" style="padding: 0px; font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="padding: 0px;"&gt;nxpvt.imshow(outImgUMat);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #404040; background: white; font-size: 14px; padding: 10px 0px 6px 17px;"&gt;&lt;DIV class="" data-testid="output_1" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;DIV class="" style="color: #404040; font-size: 12px; padding: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62156i734B449A29C9DB9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 17:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MBDT-for-VISION/How-to-Detect-Faces-with-NXP-Vision-Toolbox/m-p/802863#M21</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-06-20T17:22:17Z</dc:date>
    </item>
  </channel>
</rss>

