How can I integrate the intel RealSenseID Camera through Simulink?

I have the Intel RealSenseID F455 camera that I am trying to integrate with Simulink. The library for this camera is open source and provides several examples written in C++. I'm trying to use the C Caller block in Simulink to call the sample function to authenticate a user. I included all the source and header files, and the custom code is successful after parsing. However when I run the simulation model I get the error:
Error(s) encountered while building custom code simulation target for model 'C_Code'. Fix the errors in your custom code or disable 'Import custom code' if your custom code has incompatibilities.
Caused by:
  • c:\users\swarr\documents\realsenseid\samples\cpp\authenticate.cc: In function 'int authenticate()': c:\users\swarr\documents\realsenseid\samples\cpp\authenticate.cc:35:49: error: no matching function for call to 'RealSenseID::FaceAuthenticator::Connect(<brace-enclosed initializer list>)' auto status = authenticator.Connect({"COM5"}); ^ In file included from c:\users\swarr\documents\realsenseid\samples\cpp\authenticate.cc:4:0: c:\users\documents\realsenseid\include/RealSenseID/FaceAuthenticator.h:57:12: note: candidate: RealSenseID::Status RealSenseID::FaceAuthenticator::Connect(const RealSenseID::SerialConfig&) Status Connect(const SerialConfig& config); ^~~~~~~ c:\users\swarr\documents\realsenseid\include/RealSenseID/FaceAuthenticator.h:57:12: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const RealSenseID::SerialConfig&'
How do I fix this error and is there anything that I need to change in order to get this code running?

2 Comments

Is the camera working from Matlab script/command-line?
Did you try using the USBwebcams package and the matlab code block?
The camera works through Matlab command-line. The problem I'm having is integrating the pre-written code in simulink. I don't necessarily need to get images from the camera, I just need to receive a message from the camera after it authenticates a user.

Sign in to comment.

Answers (0)

Categories

Find more on RF Blockset Models for Transceivers in Help Center and File Exchange

Asked:

on 31 Aug 2021

Commented:

on 9 Sep 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!