matlab-cvst

Matlab Stereo Camera Calibration Scene Reconstruction Error

大兔子大兔子 提交于 2021-02-18 07:44:27
问题 I am trying to use the Computer Vision System Toolbox to calibrate the pair of cameras below in order to be able to generate a 3-D point cloud of a vehicle at a range between 1 to 5m. The output image size was approximately 1 MB per image for the checkerboard calibration images and the checkerboard square size was 25 mm. The cameras used were a pair of SJ4000 HD1080P cameras. The cameras were placed as parallel to each other as possible with no angle in the vertical axis. The checkboard

Shape detection using MATLAB

∥☆過路亽.° 提交于 2020-01-16 03:51:08
问题 I am working on car parking system project. For that, I would like to detect the presence of a car. Can anybody tell me how I can accomplish this using MATLAB? Also, what is the algorithm for detecting a car? 回答1: There's a whole world of methods for object detection in images. You need to learn a little bit about image processing to solve this problem. I suggest you read about template matching or more generally about Object recognition. Specifically for car detection, if you know they will

Matlab: Error using VideoFileReader/setup

余生颓废 提交于 2020-01-15 07:21:50
问题 I'm using this code: h = vision.VideoFileReader('num2.avi') h = System: vision.VideoFileReader Properties: Filename: '/Users/LoFe/Documents/BME/Work/Work/Work/num2.avi' PlayCount: Inf ImageColorSpace: 'RGB' VideoOutputDataType: 'single' It is working well, but when I want to call step on it, i get this: while ~isDone(h) hFrame = step(h); end Error using VideoFileReader/setup Could not open the specified file. Error in /Applications/MATLAB_R2013a.app/toolbox/matlab/system/+matlab/+system/

Matlab: Error using VideoFileReader/setup

霸气de小男生 提交于 2020-01-15 07:17:06
问题 I'm using this code: h = vision.VideoFileReader('num2.avi') h = System: vision.VideoFileReader Properties: Filename: '/Users/LoFe/Documents/BME/Work/Work/Work/num2.avi' PlayCount: Inf ImageColorSpace: 'RGB' VideoOutputDataType: 'single' It is working well, but when I want to call step on it, i get this: while ~isDone(h) hFrame = step(h); end Error using VideoFileReader/setup Could not open the specified file. Error in /Applications/MATLAB_R2013a.app/toolbox/matlab/system/+matlab/+system/

Bag of features and Neural Networks in Matlab

ε祈祈猫儿з 提交于 2020-01-13 03:24:12
问题 I've been trying to implement a neural network in Matlab that is capable of recognizing images based on their features. I am attempting to use the Bag of features/words approach to obtain a discrete vector of features that I can then feed into my neural network. I have been using this example as a guide - http://in.mathworks.com/help/vision/examples/image-category-classification-using-bag-of-features.html One line in the code (featureVector = encode(bag, img);) counts the word occurrences in

How to read mutliple images in a for loop in MATLAB?

孤街醉人 提交于 2020-01-11 10:39:12
问题 I have segmented results in a folder. Those need to be read in a for loop and processed further in the loop. I tried reading as below: for i=1:10 file_name=dir(strcat('C:\Users\adminp\Desktop\dinosaurs\')); im=imread(strcat('C:\Users\adminp\Desktop\dinosaurs\',file_name(i).name)); %processing of read image end An error was thrown :??? Error using ==> imread at 370 Can't open file "C:\Users\adminp\Desktop\dinosaurs\." for reading; you may not have read permission. Please suggest where I have

Kalman filter in computer vision: the choice of Q and R noise covariances

浪尽此生 提交于 2020-01-01 03:17:34
问题 I read some works about Kalman filter for CV object tracking but I can't find some reference about the choice of: 1)the process noise covariance Q; 2)Measurement noise covariance R. So far I have realized that the model is equation of motion (someone uses acceleration as state variable, others use position and speed only) but nobody is clear about Q and R choice including this example by mathworks: http://www.mathworks.it/it/help/vision/examples/using-kalman-filter-for-object-tracking.html

Text Recognition using ocr of Matlab

可紊 提交于 2019-12-30 20:28:25
问题 I am trying to do OCR of this image- This is what I am doing using ocr of MATLAB - I=imread('N.jpg'); r = ocr(I,'TextLayout','Word') But instead of getting N as Text this is what I am getting- r = ocrText with properties: Text: 'I\/ ' CharacterBoundingBoxes: [5x4 double] CharacterConfidences: [5x1 single] Words: {'I\/'} WordBoundingBoxes: [276 120 13 7] WordConfidences: 0.7718 So,basically I am getting I\/ as text.How can I fix this? 回答1: You can dilate the image with a vertical line

Text Recognition using ocr of Matlab

拜拜、爱过 提交于 2019-12-30 20:27:27
问题 I am trying to do OCR of this image- This is what I am doing using ocr of MATLAB - I=imread('N.jpg'); r = ocr(I,'TextLayout','Word') But instead of getting N as Text this is what I am getting- r = ocrText with properties: Text: 'I\/ ' CharacterBoundingBoxes: [5x4 double] CharacterConfidences: [5x1 single] Words: {'I\/'} WordBoundingBoxes: [276 120 13 7] WordConfidences: 0.7718 So,basically I am getting I\/ as text.How can I fix this? 回答1: You can dilate the image with a vertical line

OpenCV 3.0.0 MSER Binary Mask

帅比萌擦擦* 提交于 2019-12-30 06:14:06
问题 I am trying to use MSER algorithm in OpenCV 3.0.0 beta to extract text regions from an image. At the end I need a binary mask with the detected MSER regions, but the algorithm only provides contours. I tried to draw these contours but I don't get the expected result. This is the code I use: void mserExtractor (const Mat& image, Mat& mserOutMask){ Ptr<MSER> mserExtractor = MSER::create(); vector<vector<cv::Point>> mserContours; vector<cv::Rect> mserBbox; mserExtractor->detectRegions(image,