Skip to content

output of objectDetector in Simulink #5

Open
@zhouzheyuan

Description

@zhouzheyuan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions