Matlab object tracking using webcam tutorial Matlab ( detect red )

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 59

  • @mariamshukuru5768
    @mariamshukuru5768 21 วันที่ผ่านมา

    What about detection of other colors or it is only for those 3 colors

  • @tayyabaabro5345
    @tayyabaabro5345 7 ปีที่แล้ว +1

    Can I use this code for hand tracking ??

  • @stevej9678
    @stevej9678 4 ปีที่แล้ว

    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

  • @BishalKarmakarVlogs
    @BishalKarmakarVlogs 8 ปีที่แล้ว +9

    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.

    • @suharsh96
      @suharsh96 7 ปีที่แล้ว

      fire up the image aquistion app and select your webcam from there

    • @kaleemashraf7544
      @kaleemashraf7544 6 ปีที่แล้ว

      Download OSGeneric video ImageAcquisitiontool from support package of matlab,,,then try it again

  • @hebaalbalushi7421
    @hebaalbalushi7421 7 ปีที่แล้ว +1

    Why do I receive a black preview window? The preview window opens but all I see is a black image.

  • @cryppsomar8771
    @cryppsomar8771 8 ปีที่แล้ว

    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 ?

  • @Canada434
    @Canada434 8 ปีที่แล้ว +1

    Good tutorial!!
    dude can we measure distance from highlighted region to camera???
    i will appreciate your response !!

  • @israelguarneros5918
    @israelguarneros5918 8 ปีที่แล้ว

    can I use more than two colors?

  • @hassamwaheed4031
    @hassamwaheed4031 8 ปีที่แล้ว +1

    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.

    • @Randi.Pratama
      @Randi.Pratama 7 ปีที่แล้ว +2

      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.

  • @zainalabidinarsat8052
    @zainalabidinarsat8052 9 ปีที่แล้ว +2

    you deserved thumb up dude..

  • @iffaturridwan6947
    @iffaturridwan6947 9 ปีที่แล้ว +2

    I am unable to run the code, some memory allocation problem it says. Please help me out! :)

    • @apoorvajain9628
      @apoorvajain9628 4 ปีที่แล้ว

      I encounter same problem. Have you resolved it now? Please help.

  • @ulugbekabdurashidov3217
    @ulugbekabdurashidov3217 7 ปีที่แล้ว

    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

  • @sainzgupta8945
    @sainzgupta8945 7 ปีที่แล้ว

    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);

  • @laveshjain3615
    @laveshjain3615 7 ปีที่แล้ว +1

    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);

    • @shiitake9468
      @shiitake9468 7 ปีที่แล้ว

      same. Have you fixed it, sir?

  • @JackConstantnie23
    @JackConstantnie23 8 ปีที่แล้ว

    how can I get info about my camera?

  • @mitsutodd2961
    @mitsutodd2961 8 ปีที่แล้ว +1

    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?

    • @patrickaizpurua9468
      @patrickaizpurua9468 5 ปีที่แล้ว +2

      In line 13 replace imsubstract(data(:,:,1)...) and use instead imsubstract(data(:,:,2)...)
      1 is RED
      2 is GREEN
      3 is BLUE

  • @rittwik3
    @rittwik3 9 ปีที่แล้ว

    I am having an error wherever bw is written ca you just help me out of this situation

  • @mertunel4720
    @mertunel4720 5 ปีที่แล้ว

    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

    • @stevej9678
      @stevej9678 4 ปีที่แล้ว

      i also have the same issue , so i just deleted the threshold ie 0.18 instead.

    • @stevej9678
      @stevej9678 4 ปีที่แล้ว

      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)

  • @praveenvadagave2665
    @praveenvadagave2665 6 ปีที่แล้ว

    i have installedimage acquisition boxes but it is giving the error as "There are no devices installed for the specified ADAPTORNAME."

    • @SK-we1ty
      @SK-we1ty 6 ปีที่แล้ว

      Download OSGeneric video ImageAcquisitiontool from support package of matlab,,,then try it again

  •  4 ปีที่แล้ว

    Thanks so much bro, It's really helpful

  • @cyxiu19951973
    @cyxiu19951973 9 ปีที่แล้ว +1

    how do i get my camera name and id?

    • @devishanthini8221
      @devishanthini8221 9 ปีที่แล้ว +1

      +Cai Yu
      type "imaqhwinfo" in matlab command box. To further information follow this link
      in.mathworks.com/help/imaq/getting-hardware-information.html

    • @cyxiu19951973
      @cyxiu19951973 9 ปีที่แล้ว

      devi shanthini thank you~ i have solved the problem :)

  • @crazym4a16
    @crazym4a16 8 ปีที่แล้ว +4

    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');

    • @Randi.Pratama
      @Randi.Pratama 7 ปีที่แล้ว +1

      You need to install the support package for your laptop's camera.

  • @ysidroespinoza4489
    @ysidroespinoza4489 5 ปีที่แล้ว

    How could I change this code to find green rather than red?

  • @the0sea0emperor
    @the0sea0emperor 8 ปีที่แล้ว

    i am doing a coins detection using webcam
    do u have code that related to this topic
    much appreciated

    • @Itsabhishekthakur007
      @Itsabhishekthakur007 5 ปีที่แล้ว

      bro did you find the solution ? i am doing the same now !

  • @ducphunguyen2302
    @ducphunguyen2302 8 ปีที่แล้ว +2

    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

  • @tomabusam4758
    @tomabusam4758 8 ปีที่แล้ว

    Thanks a lot your videos are great

  • @cyberpunknexus
    @cyberpunknexus 9 ปีที่แล้ว

    Really cool man, congratulations!! :)

  • @jorgecabrera7519
    @jorgecabrera7519 7 ปีที่แล้ว

    Excellent tutorial!

  • @amratanshu
    @amratanshu 7 ปีที่แล้ว

    Thank you very much, really appreciate your effort and knowledge Thank you :)

  • @shivamsahil3660
    @shivamsahil3660 6 ปีที่แล้ว

    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.

  • @emmanuelmutabazi2371
    @emmanuelmutabazi2371 6 ปีที่แล้ว

    very nice codes, thanks for sharing

  • @nemuchan200
    @nemuchan200 8 ปีที่แล้ว

    Thank you so much for your help

  • @shivamsahil3660
    @shivamsahil3660 6 ปีที่แล้ว

    Thanks a lot buddy!

  • @faisalalfrhan6254
    @faisalalfrhan6254 8 ปีที่แล้ว

    thank you that is great

  • @SakuraaKissu
    @SakuraaKissu 7 ปีที่แล้ว

    Thank you 💕

  • @rosendohernandezgarcia5293
    @rosendohernandezgarcia5293 8 ปีที่แล้ว

    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.

  • @ilmi7979
    @ilmi7979 8 ปีที่แล้ว

    thank you sir!

  • @javierflorentinovazquez441
    @javierflorentinovazquez441 8 ปีที่แล้ว

    Thank you!!!

  • @iqrahussain5482
    @iqrahussain5482 8 ปีที่แล้ว

    👍👍👍👍👍👍👍👍👍👍👍👍👍

  • @Hiligthfootball
    @Hiligthfootball 8 ปีที่แล้ว

    i wan't code

  • @abebawtilahun1705
    @abebawtilahun1705 6 ปีที่แล้ว

    so it is a very problem solve and student helper program 10q

  • @_HarshVerma
    @_HarshVerma 3 ปีที่แล้ว +1

    Matlab is dead now