read Barcode is showing error- Undefined function or variable 'readBarcode'.
显示 更早的评论
clc;
clear;
obj=webcam;
img=snapshot(obj);
msg=readBarcode(img);
disp("message="+msg);
After I tried to run this basic program of barcode reading, I found this error message of [Undefined function or variable 'readBarcode'.]
Now, I want to know, why this error happened and what can be done?
1 个评论
Kamalin Mastura
2021-6-13
Hi can I know if you successfully done this?
回答(2 个)
Star Strider
2021-5-26
2 个投票
The version posted is R2019a, so to use it, it will be necessary to upgrade to R2020a.
Jan
2021-5-25
0 个投票
Do you have a license for the Computer Vision Toolbox?
4 个评论
SANDEEP KUMAR SINGH
2021-5-25
Jan
2021-5-25
Check this by:
ver
Actually the function should be found, if the toolbox is installed. What does this reply:
which('readBarcode')
SANDEEP KUMAR SINGH
2021-5-26
Jan
2021-5-26
Maybe you need to rehash the toolbox cache:
rehash toolboxcache
类别
在 帮助中心 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!