Finding Rice Grain Orientation is as Easy as 1, 2, 3!

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 8

  • @EkalabyaGhosh-g3i
    @EkalabyaGhosh-g3i 3 місяці тому +1

    Interesting...

    • @spacedataguy
      @spacedataguy  3 місяці тому

      Glad you think so! What do you like most about it?

  • @zebusaqua4415
    @zebusaqua4415 3 місяці тому

    Where can we get the image set? Should flip the RGB before grey scaling. Also edge detection and then do the oval approximation. Otherwise interesting video.

    • @spacedataguy
      @spacedataguy  3 місяці тому

      I got the images from www.kaggle.com/datasets/muratkokludataset/rice-image-dataset
      Can you clarify what you mean by flipping the RGB before converting to grayscale?
      Also, the code performs edge detection before building an oval approximation (line 32 is edge detection github.com/davidmvermillion/riceorientation/blob/main/rice_orientation_classifier.py). I may not have made that clear in the video. Was there a different approach you had in mind?

    • @zebusaqua4415
      @zebusaqua4415 3 місяці тому

      @@spacedataguy ah ok so I looked at the code and you are not using opencv. So opencv wants you to take your rgb image and convert it to bgr and then do your image processing. I am not sure if the skimage wants you to do that as well. I have not used it and do not know the documentation.
      Going to make my own implementation of this as it seems like a fun thing to do. But with opencv instead.

    • @spacedataguy
      @spacedataguy  3 місяці тому

      Correct. This one is using skimage. Let me know what you find with OpenCV! Also interesting that you have to convert RGB to BGR for image processing.

    • @zebusaqua4415
      @zebusaqua4415 3 місяці тому

      @@spacedataguy youtube deleted my comment :C but i tried to post my github its aquabouncer and the project is image processing. I got better fitting but didn't really understand the point of the direction thing. I was just more interested in the image set and playing with it and drawing a ellipse around the rice. Did the direction as a "extra credit".
      I have used OpenCV, tkinter and pytesserect to make a manga translation tool. Never finished it like maybe 60% done. I got it to detect speech bubbles in a Korean webtoon then extract the text and then translate it and place the translated text back on the bubble in english. Most of the work that needs to be done is just interface stuff with tkinter and better translation tools. But you can give it a image and it can find the bubble in most cases. If it cant you just tweak the settings and it will.

    • @spacedataguy
      @spacedataguy  3 місяці тому

      Neat! Yeah, the direction piece was the big point for why I created this project. Hypothetically, grain orientation *could* influence processing speed through steps like a sieve to remove chaff. That's the idea. I chose an ellipse because it's the simplest shape close to a rice edge outline. Ellipse orientation is also easy to calculate with simple trigonometry based on semi and major axes.