# Download Face Template using the SDK 2.52

**URL:** <https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328>\
**Category:** Integration\
**Tags:** facepass7pro, facedeep5, sdk\
**Created:** [August 25, 2023, 4:34pm UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328 "2023-08-25T16:34:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/mrodrigues/32/840_2.png) [@mrodrigues](https://community.anviz.com/u/mrodrigues)\
**Post date:** [August 25, 2023, 4:34pm UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/1 "2023-08-25T16:34:47Z")

</div>

Hello,

I’m currently working on downloading face templates from Anviz devices using SDK version 2.52. I’ve attempted to use the `CChex_DownloadFacePictureModule` function, but I’m facing difficulties in retrieving the face template data from the `CCHEX_RET_DOWNLOAD_FACE_PICTURE_MODULE_TYPE` structure, which is sent to my application when I execute the `CChex_Update` function.

I noticed that part of the `CCHEX_RET_DOWNLOAD_FACE_PICTURE_MODULE_TYPE` structure, containing picture data, is commented out. I tried uncommenting it, but encountered an error while attempting to convert the memory block into an object.

Has anyone else encountered this issue before? Are there alternative methods for retrieving face templates from Anviz devices?

Your insights and assistance are greatly appreciated.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Leonardo\_Anviz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/leonardo_anviz/32/60_2.png) [@Leonardo\_Anviz](https://community.anviz.com/u/Leonardo_Anviz)\
**Post date:** [August 28, 2023, 2:14pm UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/2 "2023-08-28T14:14:17Z")

</div>

Hi @Felix_Anviz can you please check this issue?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Felix\_Anviz](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@Felix\_Anviz](https://community.anviz.com/u/Felix_Anviz)\
**Post date:** [August 29, 2023, 11:01am UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/3 "2023-08-29T11:01:01Z")

</div>

Hi Mrodrigues:

`CChex_Update` function is asynchronous process. When you get the respond the template may do not fully processed.

Please refer to the [The CChex\_Update funciton in the SDK](https://community.anviz.com/t/the-cchex-update-funciton-in-the-sdk/633)

Thanks

---

<div class="post-metadata">

**Author:** ![mrodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/mrodrigues/32/840_2.png) [@mrodrigues](https://community.anviz.com/u/mrodrigues)\
**Post date:** [August 29, 2023, 1:26pm UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/4 "2023-08-29T13:26:06Z")

</div>

Hi Felix,

If I wait time enough for the message to be processed, where can I find the face template data?  
The field named PictureData is commented on the SDK 2.52 example.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/anviz/original/1X/d2d18316b2ab1a98a65e95a49f04f13a55bdcf07.png)

---

<div class="post-metadata">

**Author:** ![mrodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/mrodrigues/32/840_2.png) [@mrodrigues](https://community.anviz.com/u/mrodrigues)\
**Post date:** [September 6, 2023, 11:15am UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/5 "2023-09-06T11:15:49Z")

</div>

Hi @Leonardo_Anviz and @Felix_Anviz  
Can you help me with the previous question? Thanks.

---

<div class="post-metadata">

**Author:** ![Felix\_Anviz](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@Felix\_Anviz](https://community.anviz.com/u/Felix_Anviz)\
**Post date:** [September 6, 2023, 11:37am UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/6 "2023-09-06T11:37:19Z")

</div>

Hi:

The Face photo data is keep in the " public byte PictureData; " Please uncomment it.

The image data is behind the structure (The size of structure). You can refer our SDK demo.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/anviz/original/1X/95eb0946ee04be0ee37722c47b4f3b413409faed.png)

---

<div class="post-metadata">

**Author:** ![mrodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/mrodrigues/32/840_2.png) [@mrodrigues](https://community.anviz.com/u/mrodrigues)\
**Post date:** [November 2, 2023, 10:07am UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/7 "2023-11-02T10:07:03Z")

</div>

Thank you @Felix_Anviz, it worked perfectly.  
🙂

---

<div class="post-metadata">

**Author:** ![ggordillo](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@ggordillo](https://community.anviz.com/u/ggordillo)\
**Post date:** [November 25, 2024, 6:56pm UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/8 "2024-11-25T18:56:59Z")

</div>

Where can I get the demo shown in the screenshot?  
Could you send me a link?

---

<div class="post-metadata">

**Author:** ![Technical\_Anviz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.anviz.com/technical_anviz/32/1143_2.png) [@Technical\_Anviz](https://community.anviz.com/u/Technical_Anviz)\
**Post date:** [November 28, 2024, 3:49am UTC](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/9 "2024-11-28T03:49:33Z")

</div>

Hi， [ggordillo](https://community.anviz.com/t/download-face-template-using-the-sdk-2-52/1328/8)

Could you please send your project information, including the device info, to our support team at `support@anviz.com`?

We’ll assess and share the SDK package, which includes the demo above, with you.

Best regard  
Zac
