Afficher commentaires plus anciens
私は以下のようにして一枚絵からカスケード分類器を用いた認識を行いました。
detector = vision.CascadeObjectDetector('~~');
RGB = imread('~~');
bbox = step(detector,RGB);
detectedImg = insertObjectAnnotation(RGB,'rectangle',bbox,'mouse');
figure; imshow(detectedImg);
今度は動画で認識を行いたいのですがRGBの文をvision.VideoFileReader(~~~)に変えたら
「
エラー: vision.CascadeObjectDetector/validateInputsImpl (line 338)
2 番目の入力引数 は次のタイプのいずれかにする必要があります:
uint8, uint16, double, single, int16
指定されたタイプは vision.VideoFileReader でした。
エラー: mouserecognation2 (line 6)
bbox = step(detector,v); 」
というエラーが出てしまいました。 どう書き直すと良いでしょうか?
追記:vf= RGB();を追加してdetectedImg = insertObjectAnnotation(vf,'rectangle',bbox,'mouse');
とすると動画は出たのですが再生しません。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur セマンティック セグメンテーション dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!