is there anyway to speed up the lag ? i am getting a pitch black snapped image and no movement neither any red boxes.even my preview window is frozen... idk what the issue is, neither did i find any good solution to this in net. I AM TRYING TO DETECT BLACK MARKED POINTS ON A MOVING PAPER AND TRACK THEIR COORDINATES, pleaseplease please help me out on this... thanks great video
I have tried to connect an external webcam to my laptop to take video feed from that. At first i faced some problem but when i dig i found a solusion. I wrote "imaqtool" command in the command window of matlab and select my desier webcam and resulation. If someone is faceing this kind of problem, he/she can try this.
I unfortunately got thoses errors Error using imaqdevice/set (line 72) Invalid property: 'RetrunedColorspace'. Type 'imaqhelp' for information. Error in Red_Obj_Track_Test_v01 (line 4) set(vid,'RetrunedColorspace','rgb') What should I do ?
Hello Sir. Thanks for the tutorial. Can you please tell me, if I want to detect anything with 'Green color' for that what changes I will have to make in the code? Please tell me asap. Thanks a lot.
I face a problem while running. It states "??? Undefined function or method 'RED' for input arguments of type 'char'." Does anyone know how to fix that
sir while running this code it is showing this error ??? Error using ==> imaqdevice.start at 91 Multiple VIDEOINPUT objects cannot access the same device simultaneously. Error in ==> webcam at 5 start(vid);
Sır ı m taking that error '' Error in Untitledtez (line 16) diff_im=im2bw(diff_im,018); '' and program says 'im2bw' is not recommended use 'imbinarized' instead can you help me
if you already found any solution to this and got any method to speed up the super lag we are getting in imaq please help me out .. thanks (reply to this)
how to fix this error ? Error using videoinput (line 319) The FORMAT specified is not supported by this device. See IMAQHWINFO(ADAPTORNAME). Error in Untitled2 (line 1) vid=videoinput('winvideo',1,'YUY2_320x240');
Dear teacher I want to use webcam for face recognition, so i've commanded "vid=videoinput('winvideo',1,'YUV2_320x240');" ,however, it's not successful. (Matlab 2014a). Command window show : Error using videoinput (line 217) Invalid ADAPTORNAME specified. The Videoinput is at line 217 : error(message('imaq:videoinput:invalidAdaptorName')); could you like tell me using webcam to use videoinput command. Thank you very much Best regards
For all those who are facing : The FORMAT specified is not supported by this device. See IMAQHWINFO(ADAPTORNAME). click on hyperlinked part of error it will redirect you to addons page where you can download required add on and continue.
Hi. Great video. I have been done your code, I had Matlab 2013a but it couldn't found my USB Camera's format YUY2_320.... I installed MAtlab 2015a. I installed the packages and it found my USB Camera's Formats. But when I Run the Code. shows this Error. ... ------- El parámetro no es correcto. Make sure no other objects or applications are accessing the same device. Error in Red (line 1) vid=videoinput('winvideo',1,'YUY2_352x288'); ------ My usb Camera ID is 1 it has 4 formats. I have tried with all... HELP ME PLEASE.
What about detection of other colors or it is only for those 3 colors
Can I use this code for hand tracking ??
is there anyway to speed up the lag ? i am getting a pitch black snapped image and no movement neither any red boxes.even my preview window is frozen... idk what the issue is, neither did i find any good solution to this in net. I AM TRYING TO DETECT BLACK MARKED POINTS ON A MOVING PAPER AND TRACK THEIR COORDINATES, pleaseplease please help me out on this... thanks great video
I have tried to connect an external webcam to my laptop to take video feed from that. At first i faced some problem but when i dig i found a solusion.
I wrote "imaqtool" command in the command window of matlab and select my desier webcam and resulation.
If someone is faceing this kind of problem, he/she can try this.
fire up the image aquistion app and select your webcam from there
Download OSGeneric video ImageAcquisitiontool from support package of matlab,,,then try it again
Why do I receive a black preview window? The preview window opens but all I see is a black image.
I unfortunately got thoses errors
Error using imaqdevice/set (line 72)
Invalid property: 'RetrunedColorspace'.
Type 'imaqhelp' for information.
Error in Red_Obj_Track_Test_v01 (line 4)
set(vid,'RetrunedColorspace','rgb')
What should I do ?
Good tutorial!!
dude can we measure distance from highlighted region to camera???
i will appreciate your response !!
can I use more than two colors?
Hello Sir.
Thanks for the tutorial.
Can you please tell me, if I want to detect anything with 'Green color' for that what changes I will have to make in the code?
Please tell me asap.
Thanks a lot.
You can see the command at 13th line "diff_im = imsubstract(data(:,:,1))". Change the number to 1 for red, 2 for green, and 3 for blue.
you deserved thumb up dude..
I am unable to run the code, some memory allocation problem it says. Please help me out! :)
I encounter same problem. Have you resolved it now? Please help.
I face a problem while running. It states "??? Undefined function or method 'RED' for input arguments of type 'char'." Does anyone know how to fix that
Sir program show error
Error in aac (Line 1)
vid=vidinput('winvideo',1,'YUY_320*240);
And I type
Vid=vidinput('winvideo',1,YUY_320*240);
sir while running this code it is showing this error
??? Error using ==> imaqdevice.start at 91
Multiple VIDEOINPUT objects cannot access the same device simultaneously.
Error in ==> webcam at 5
start(vid);
same. Have you fixed it, sir?
how can I get info about my camera?
Hi, i was using your code, with blue and was working ok, but I can't use it with green, how can i solve this?
In line 13 replace imsubstract(data(:,:,1)...) and use instead imsubstract(data(:,:,2)...)
1 is RED
2 is GREEN
3 is BLUE
I am having an error wherever bw is written ca you just help me out of this situation
Sır ı m taking that error '' Error in Untitledtez (line 16)
diff_im=im2bw(diff_im,018); '' and program says 'im2bw' is not recommended use 'imbinarized' instead can you help me
i also have the same issue , so i just deleted the threshold ie 0.18 instead.
if you already found any solution to this and got any method to speed up the super lag we are getting in imaq please help me out .. thanks (reply to this)
i have installedimage acquisition boxes but it is giving the error as "There are no devices installed for the specified ADAPTORNAME."
Download OSGeneric video ImageAcquisitiontool from support package of matlab,,,then try it again
Thanks so much bro, It's really helpful
how do i get my camera name and id?
+Cai Yu
type "imaqhwinfo" in matlab command box. To further information follow this link
in.mathworks.com/help/imaq/getting-hardware-information.html
devi shanthini thank you~ i have solved the problem :)
how to fix this error ?
Error using videoinput (line 319)
The FORMAT specified is not supported by this device. See
IMAQHWINFO(ADAPTORNAME).
Error in Untitled2 (line 1)
vid=videoinput('winvideo',1,'YUY2_320x240');
You need to install the support package for your laptop's camera.
How could I change this code to find green rather than red?
nvm
i am doing a coins detection using webcam
do u have code that related to this topic
much appreciated
bro did you find the solution ? i am doing the same now !
Dear teacher
I want to use webcam for face recognition, so i've commanded "vid=videoinput('winvideo',1,'YUV2_320x240');" ,however, it's not successful. (Matlab 2014a).
Command window show : Error using videoinput (line 217) Invalid ADAPTORNAME specified.
The Videoinput is at line 217 : error(message('imaq:videoinput:invalidAdaptorName'));
could you like tell me using webcam to use videoinput command.
Thank you very much
Best regards
have you done face recog. prjct?
Thanks a lot your videos are great
Really cool man, congratulations!! :)
Excellent tutorial!
Thank you very much, really appreciate your effort and knowledge Thank you :)
For all those who are facing : The FORMAT specified is not supported by this device. See
IMAQHWINFO(ADAPTORNAME).
click on hyperlinked part of error it will redirect you to addons page where you can download required add on and continue.
very nice codes, thanks for sharing
Thank you so much for your help
Thanks a lot buddy!
thank you that is great
Thank you 💕
Hi. Great video.
I have been done your code, I had Matlab 2013a but it couldn't found my USB Camera's format YUY2_320....
I installed MAtlab 2015a. I installed the packages and it found my USB Camera's Formats.
But when I Run the Code. shows this Error.
...
-------
El parámetro no es correcto.
Make sure no other objects or applications are accessing the same device.
Error in Red (line 1)
vid=videoinput('winvideo',1,'YUY2_352x288');
------
My usb Camera ID is 1
it has 4 formats. I have tried with all... HELP ME PLEASE.
thank you sir!
Thank you!!!
👍👍👍👍👍👍👍👍👍👍👍👍👍
i wan't code
so it is a very problem solve and student helper program 10q
Matlab is dead now