Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output of objectDetector in Simulink #5

Open
zhouzheyuan opened this issue Oct 7, 2023 · 0 comments
Open

output of objectDetector in Simulink #5

zhouzheyuan opened this issue Oct 7, 2023 · 0 comments

Comments

@zhouzheyuan
Copy link

Hi, thanks for the great work!

However, after the installation and configuration, when I start to run in Simulink, the following error occurred:
Error in 'IntelligentBinPicking/Object Detector/Draw Shapes': The Pts input must be an M-by-4 matrix. Each row specifies a different rectangle and is of the form [x y width height].
Error in port widths or dimensions. 'output 1' of 'IntelligentBinPicking/Object Detector/Data Type Conversion' is a matrix with a maximum size of [8x5].
at
function bboxes = objectDetector(image) isSim = coder.target('sfun'); simSupported = false; useExtrinsic = isSim && ~simSupported; [bboxes] = deep.blocks.internal.objectDetector(image, 'C:\Users\jamie\Documents\MATLAB\intelligent-bin-picking-example-with-simulink\Perception\trainedYOLOv4DetectorSimGazebo_cuboid.mat', useExtrinsic, {'Threshold', 0.5, 'SelectStrongest', false}, {'NumStrongest', 8, 'RatioType', 'Union'}, 8, true, false, false); end

It turns out the objectDetector output a Mx5 matrix instead of Mx4, I wonder if there is a way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant