Number Sign Recognition - Image Classifier in OpenCV and Keras - Convolutional Neural Network (CNN)

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 123

  • @dompower500
    @dompower500 4 года назад +2

    Great Work Adarsh. Keep it up.

  • @armanshaikh8785
    @armanshaikh8785 3 года назад +2

    Thanks for helping us out with the tutorial. It helps a lot.🙏

  • @prajeshsanghvi57
    @prajeshsanghvi57 4 года назад +3

    thank you very much for the tutorial. great job!

  • @suryaprihanto3979
    @suryaprihanto3979 Год назад

    hi, why not choose threshoding with white hand color and black background?

  • @ehtishamraza2623
    @ehtishamraza2623 5 лет назад +1

    Sir Please Upload more Vidoes you are doing good job

  • @priyanshdesai9310
    @priyanshdesai9310 4 года назад +4

    Hey from where u learn building and training cnn model

  • @19-534JithendraKamineni
    @19-534JithendraKamineni Год назад

    thank you it is working is good ,but i want increage the index size could u plese help me

  • @jaisonjose8256
    @jaisonjose8256 4 года назад +1

    nyc project macha

  • @manojchoudhary2251
    @manojchoudhary2251 3 года назад +1

    Thank you so much bhai :)

  • @gokulreddy2066
    @gokulreddy2066 4 года назад +1

    You are super keep rocking

  • @macharya6434
    @macharya6434 4 года назад +3

    Sir can you please tell me whether we can get the voice output from this project. If yes how?

  • @Marathi_Techworld
    @Marathi_Techworld 2 года назад

    I'm adding upto 9 digit and it's shows me array out of bonds for axis 0 ...how can I resolve it please reply

  • @sangamesh9256
    @sangamesh9256 4 года назад +2

    which algorithm you used basically ? can you give little information about it

    • @AdarshMenon
      @AdarshMenon  4 года назад

      I have used a convolutional neural network (CNN). You can search for CNN on youtube or google, there are lots of resources explaining how it works

  • @ssaniljainn
    @ssaniljainn 4 года назад +1

    I am not able to get how you got the test data. I have trained accordingly and even loaded the model while following up the video, but could not find where you have shown how you got the test data out from the train data. Can you point out which line of code does it ???
    Thanks in advance, and great tutorial!

    • @AdarshMenon
      @AdarshMenon  4 года назад

      I have not done a train test split because i already did that - i have two folders train and test inside the data folder - github.com/chasinginfinity/number-sign-recognition

    • @ssaniljainn
      @ssaniljainn 4 года назад

      @@AdarshMenon yes, that I understand. I also understood how the images were gone in the train folder. But the test set folder remains empty, why?

    • @AdarshMenon
      @AdarshMenon  4 года назад

      the test set folder is not empty, please clone the git repo and check

    • @ssaniljainn
      @ssaniljainn 4 года назад

      @@AdarshMenon I checked. I know. I mean to ask whether you manually added the photos to add to the test folder or was this process a part of the tutorial?

    • @AbhijeetKumar-tm5pk
      @AbhijeetKumar-tm5pk 3 года назад

      @@ssaniljainn you simply replace 'train' to 'test' in collect data.py file.

  • @itslight_
    @itslight_ 3 года назад +1

    Thanks mate

  • @mli7822
    @mli7822 3 года назад +2

    Hello, can you help me on the portion of loading the trained model as well as the prediction? I'm using a trained model built from google teachable machines, the website has a export to tensorflow keras-model however there are no further documents on how do I load the model and I also want to use a connected webcam to do predictions

  • @BiranchiNarayanNayak
    @BiranchiNarayanNayak 5 лет назад +1

    Excellent tutorial...

  • @merveozdas1193
    @merveozdas1193 2 года назад

    can you classify eye directions like up down right left.I couldnt make , because I working in 1 sample with four dirctions

  • @allenalex4861
    @allenalex4861 4 года назад +1

    Great Tutorial.

  • @notapixiegal
    @notapixiegal 4 года назад +1

    Hello, i came across a cnn training code where they were not using the standard train_test_split function to divide the dataset nor did they divide it manually. Could you please tell me how that is possible?

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      The only reason we do train test split is to validate our model on some sample of the data it was trained on. Without validation there is no way to know if our model performed well or not.
      There is nothing wrong with using the entire dataset for training, provided there is some way to validate the model.

  • @anonymouss_96
    @anonymouss_96 3 года назад

    json_file = open("model-bw.json", "r")
    model_json = json_file.read()
    json_file.close()
    loaded_model = model_from_json(model_json)
    # load weights into new model
    loaded_model.load_weights("model-bw.h5")
    print("Loaded model from disk")
    Getting error on this one file not found please help

  • @ayushraut1936
    @ayushraut1936 Год назад

    hey , can you please tell me how to train and predict data for a- z ??

  • @tomjerry431
    @tomjerry431 4 года назад +1

    How can we add the feature of mathematical operation like add, subtract, multiply etc on taken inputs. E.g-2+3=5. What changes should I make in code?

    • @AdarshMenon
      @AdarshMenon  4 года назад +2

      if you want to convert the image into numbers, inside the prediction instead of the string 'ZERO', 'ONE' etc.. you can use the respective numbers. Or even create a mapping between the words and actual numbers.
      And how you want to take in the input of the operations depends, maybe it could be a sign that you train the system on, or could be keyboard input

  • @mehmetgul8686
    @mehmetgul8686 3 года назад

    thank you very much for this good tutorial

  • @shivkumark5208
    @shivkumark5208 3 года назад +1

    can you please upload test and train datasets for 6 to 9 and alphabets

  • @annujolly3024
    @annujolly3024 5 лет назад +1

    very helpful

  • @rahimmohd578
    @rahimmohd578 3 года назад

    Is this project able to execute on a Raspberry Pi 3 Model B?

  • @iklilzafirah5641
    @iklilzafirah5641 2 года назад

    sir, is it posibble to have input from kinect?

  • @saturwarvedanth2747
    @saturwarvedanth2747 4 года назад +2

    iam getting this error
    Error when checking input: expected conv2d_1_input to have shape (64, 64, 3) but got array with shape (64, 64, 1)
    please reply

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      have you used black and white images ? the 3 stands for the three color channels - R, G and B.

  • @hyeeiye859
    @hyeeiye859 3 года назад +1

    sir~ when i use 600 as steps_per_epoch, the result shows this >> Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least `steps_per_epoch * epochs` batches (in this case, 6000 batches). i really need your help sir

    • @anshugulati9165
      @anshugulati9165 3 года назад

      Wht u did to overcome? Cause I'm also facing the same

    • @ashwinigupta6695
      @ashwinigupta6695 2 года назад

      Just keep 60 the issue will fix but when running the actual code I am getting wrong output

  • @nws4537
    @nws4537 4 года назад +2

    can apply the concept to American Sign Language ? Thanks for advice, please reply

    • @AdarshMenon
      @AdarshMenon  4 года назад

      Yes you can!

    • @ayushraut1936
      @ayushraut1936 Год назад

      @@AdarshMenon I tried for ASL but it is not working. How can I do can you please tell me.

  • @pavanteja158
    @pavanteja158 4 года назад +1

    how to get plain image only with hand and excluding background . While collecting data the image captures background too . Help

    • @AdarshMenon
      @AdarshMenon  4 года назад

      Well the easiest way to stand before a plain wall. It is working well for me because I positioned myself in such a way that the background is plain

    • @aXe-XBT
      @aXe-XBT 4 года назад +1

      Threshold a value which ranges from least skin color to most vibrant skin color and then make a mask of it and apply it to your realtime video,.
      It will only detect your hand and exclude the background

  • @anonymouss_96
    @anonymouss_96 3 года назад

    In prediction: Filenotfound error on json and h5 files any idea ?????

  • @bhurvasharma8
    @bhurvasharma8 3 года назад +1

    im getting an error ModuleNotFoundError: No module named 'cv2'

    • @AdarshMenon
      @AdarshMenon  3 года назад

      please install opencv using the command - pip install opencv-python

  • @prajwalkittur6445
    @prajwalkittur6445 4 года назад +1

    can i run this code in pycharm??
    if yes can u please suggest me the version of pip and tensorflow
    I'm facing error over there

    • @AdarshMenon
      @AdarshMenon  4 года назад

      Yes you can, I would suggest using the latest versions. If you want to do the detection in still images you can also try google colab, where you don't have to do any setup

    • @prajwalkittur6445
      @prajwalkittur6445 4 года назад

      @@AdarshMenon I'm having some trouble in installing tensorflow package with pycharm... So I tried running the same code in spyder... But facing some errors related keras

  • @jishnunair5629
    @jishnunair5629 6 лет назад

    Nice one mate!

  • @taschajalani7927
    @taschajalani7927 4 года назад +1

    Hey I have question. Can I train my own dataset in this project?

    • @AdarshMenon
      @AdarshMenon  4 года назад

      yes you can

    • @taschajalani7927
      @taschajalani7927 4 года назад

      Adarsh Menon thank you for your reply and one more thing. Can i make this project as mobile based application? Do you have any kind of project that build in application? I hope u can help me 🥺

    • @AdarshMenon
      @AdarshMenon  4 года назад

      well this project in it's current form would be difficult to convert to a native mobile app. You can check tensorflow.js if you are interested. Another easy way would be to have a browser / native app that takes picture from mobile, and calls an api to do the prediction. But you would need to set up a server and api to accept the image, make prediction and send back the result

  • @aaysharasheed1915
    @aaysharasheed1915 4 года назад +1

    did u use cnn just for training and testing?

    • @AdarshMenon
      @AdarshMenon  4 года назад

      yes

    • @aaysharasheed1915
      @aaysharasheed1915 4 года назад +1

      @@AdarshMenon is this reinforcement learning

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      @@aaysharasheed1915 no this is supervised learning using a deep learning technique called convolutional neural networks (cnn)

  • @tamurtaj2722
    @tamurtaj2722 3 года назад

    Hi, I downloaded your code and ran it. Thanks to you it working great but the issue I was facing is, it shows me warning about:
    "WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least `steps_per_epoch * epochs` batches (in this case, 30 batches). You may need to use the repeat() function when building your dataset.
    "
    While I have also added my gestures in the data set and they are adding up but while checking the length of test and train set it only shows 126 and 6 respectively. Also I have searched stack overflow but not able to sort out the error. The execution stops after it reaches 126th epoch. Kindly help we with this thanks.

    • @vishaal3112
      @vishaal3112 3 года назад

      set batch size = 1

    • @jotaro9664
      @jotaro9664 3 года назад

      @tamur does it work? that @vishaal mentioned

    • @tamurtaj2722
      @tamurtaj2722 3 года назад

      @@jotaro9664 I didn't worked on this project afterwards.

  • @m2keerthisriravada527
    @m2keerthisriravada527 3 года назад

    how does the data base works ?could you please explain me brother.

  • @judithnjoku7729
    @judithnjoku7729 3 года назад

    is the code to collect data supposed to automatically create the folders? or do I need to create the folders first before generating data

  • @worldofsports2661
    @worldofsports2661 4 года назад +1

    Is GPU is required to run this project?????

  • @spoorthiab1605
    @spoorthiab1605 4 года назад +1

    Am getting error like No module named cv2 ..help me please

    • @AdarshMenon
      @AdarshMenon  4 года назад

      install opencv using pip install opencv-python

  • @tiyaann3796
    @tiyaann3796 2 года назад

    Which version of tensor flow is used for training?

  • @manikshah3932
    @manikshah3932 4 года назад +2

    can we train it for a b c d letters also

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      yes you can

    • @manikshah3932
      @manikshah3932 4 года назад

      @@AdarshMenon by using capture .py and it will automatically lane it as A B C or we have to do it by changing the code in pridict.py

    • @manikshah3932
      @manikshah3932 4 года назад +1

      @@AdarshMenon make a video of adding an alphabet in it because in my project I want to recognize the alphabet also

  • @pitchaimaariselvakumar1407
    @pitchaimaariselvakumar1407 4 года назад

    Sir I want combine opencv hand gestures with python raspberry gpio

  • @madhurabhat8014
    @madhurabhat8014 4 года назад +1

    How to find accuracy of prediction each time? Please reply

    • @AdarshMenon
      @AdarshMenon  4 года назад

      You can print the result variable - it contains the prediction accuracy

    • @madhurabhat8014
      @madhurabhat8014 4 года назад +1

      @@AdarshMenon thank you....will try that

    • @madhurabhat8014
      @madhurabhat8014 4 года назад +1

      Result variable is a tuple....but I need accuracy to be printed as a percent value that too below the predicted result on frame. What to do?

    • @AdarshMenon
      @AdarshMenon  4 года назад

      @@madhurabhat8014 'accuracy' alone in metrics calculates the categorical accuracy from cost (since we are using categorical_crosentropy). You can try to modify your metrics to ['binary_accuracy', 'categorical_accuracy'] and see what the result variable contains. Ref - intellipaat.com/community/17161/keras-model-evaluate-vs-model-predict-accuracy-difference-in-multi-class-nlp-task

    • @madhurabhat8014
      @madhurabhat8014 4 года назад

      OK

  • @amitpachange3666
    @amitpachange3666 3 года назад

    Hey, can you please tell.. how to get accuracy in percentage using that result variable

  • @nareshgoud4632
    @nareshgoud4632 4 года назад

    unable to predict : error displaying import tensorflow as tf and some libraries., please make complete video of recognizing the numbers

    • @jaisonjose8256
      @jaisonjose8256 4 года назад

      give more data

    • @shwetakumari3816
      @shwetakumari3816 4 года назад

      same error happened with me, it is because the anaconda i had did not have support of tensorflow, write 'conda install tensorflow' in the console and u r good to go!

  • @TofajjalHNipu
    @TofajjalHNipu 5 лет назад

    Dear , Thanks for nice job and share with us.
    Here i face error :
    import tensorflow as tf
    ModuleNotFoundError: No module named 'tensorflow'
    I try to install tensorflow but failed.Also faced error when try to install tensorflow ---
    Could not find a version that satisfies the requirement tensorflow (from versions: )
    No matching distribution found for tensorflow'
    what can i do now..?
    Thanks

    • @kevalgajera6535
      @kevalgajera6535 5 лет назад

      Upgrade your python version from 2.x to 3.6 or 3.7 . Tensorflow will support in new updated version of python.
      Python 2.7 will not be able to support certain functions.

    • @unitywithzaher1374
      @unitywithzaher1374 5 лет назад

      get older version of openCV like 3.4

  • @learning7184
    @learning7184 3 года назад

    how can I understand the code please?

  • @mahadirabby8813
    @mahadirabby8813 4 года назад

    Which model did u use in ur project?? plz tell me bro

  • @tharas3368
    @tharas3368 7 месяцев назад

    Can you send me the document of this project it's my humble request please respond and do favour to me

  • @ashuchauhan7235
    @ashuchauhan7235 6 лет назад +1

    sir i want to ask that could we donot use googlecolab for this. Is it be ok.

    • @ashuchauhan7235
      @ashuchauhan7235 6 лет назад +1

      please reply sir

    • @AdarshMenon
      @AdarshMenon  6 лет назад

      @@ashuchauhan7235 We cannot use Google Colab for this. The reason is we cannot connect to webcam from colab.

    • @ashuchauhan7235
      @ashuchauhan7235 6 лет назад +1

      @@AdarshMenon sir please can you tell which are best system requirements for anaconda. I donot have gpu. I have i5 8 gb ram and 2 gb radeon graphics. Is it be okk

    • @ashuchauhan7235
      @ashuchauhan7235 6 лет назад

      thankyou for reply

    • @AdarshMenon
      @AdarshMenon  6 лет назад

      @@ashuchauhan7235 yes that is great! You dont need a GPU. Simply install anaconda and the required libraries

  • @mukundpotdar1272
    @mukundpotdar1272 3 года назад

    Filenotfound error araha hai bhai,, woh data train ka path error aaraha hai!!

    • @anonymouss_96
      @anonymouss_96 3 года назад

      Same error did you find solution ??

  • @shreeshtiwari9485
    @shreeshtiwari9485 4 года назад +1

    module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      this is because recent updates to keras, you can try importing from tensorflow.keras instead of simply keras - ref - stackoverflow.com/questions/53135439/issue-with-add-method-in-tensorflow-attributeerror-module-tensorflow-python

  • @saturwarvedanth2747
    @saturwarvedanth2747 4 года назад +1

    bro how to import keras cv2 in spyder

    • @AdarshMenon
      @AdarshMenon  4 года назад +1

      you need to install it first using 'pip install opencv-python', but if you are using anaconda, you can run: 'conda install -c anaconda opencv'

  • @AnujKinge
    @AnujKinge 3 года назад

    Which CNN is used here?

    • @AdarshMenon
      @AdarshMenon  3 года назад +1

      a very simple 2 layer cnn custom built with keras

    • @AnujKinge
      @AnujKinge 3 года назад

      @@AdarshMenon Thanks for replying man... You're doing an amazing job...

    • @ashwinigupta6695
      @ashwinigupta6695 2 года назад

      @@AdarshMenon CAN YOU PLEASE PROVIDE THE ARCHITECTURE PICTURE please WITH LAYERS

  • @priyambordoloi771
    @priyambordoloi771 3 года назад

    Your code is not optimized. And so it is giving very less fps which is not good at all. Try to use opencv + cuda build.

  • @sangamesh9256
    @sangamesh9256 3 года назад

    why you preferred CNN algorithm, even the basic algorithm can detect the image and predict it right...

    • @imalone7494
      @imalone7494 3 года назад

      CNN is much lower as compared to other classification algorithms.

    • @lets_see_777
      @lets_see_777 2 года назад

      @@imalone7494 what?

  • @avtarchandra2407
    @avtarchandra2407 2 года назад

    lit

  • @vishnusaibhonsle7367
    @vishnusaibhonsle7367 4 года назад +1

    Face detection with cnn

  • @vishnusaibhonsle7367
    @vishnusaibhonsle7367 4 года назад

    ?