How can I integrate the intel RealSenseID Camera through Simulink?
Show older comments
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
cr
on 1 Sep 2021
Is the camera working from Matlab script/command-line?
Did you try using the USBwebcams package and the matlab code block?
Stephen Warren
on 9 Sep 2021
Answers (0)
Categories
Find more on RF Blockset Models for Transceivers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!