Search Unity

Question Computer Vision and Machine Learning integration.

Discussion in 'AR' started by kislotaooankit, Jul 29, 2020.

Thread Status:
Not open for further replies.
  1. kislotaooankit

    kislotaooankit

    Joined:
    Apr 20, 2020
    Posts:
    15
    Hello guys i come from python background and,

    I was getting familiar with ARFoundation and was thinking is there any possibility to do some image processing via python which can further assist in enhancing out AR experiences.

    As per my current knowledge there is no proper way to integrate powerful python functionalities (OpenCV , tensorflow) to unity editor directly i have scraped the internet and 90% of examples rely on WebSockets for communicating between these two environments.

    My Idea was to basically somehow send the frames of camera from unity to my python code via some sort of messaging queue service (such as rabbitmq) and then process the received frames in python for further image processing tasks.

    However i feel sketchy about this approach as it looks resources expensive + requires nice internet connection if implemented for mobile ... not to mention of uncertainty of will this ever work or not.

    I have heard about ML agents unless my understanding is wrong ,they dont allow that much customization of code in python side for the work.

    Can anyone would suggest some improvement in my approach or I would be really grateful hear other approaches.

    Thank You !!
     
    john_smith_001 likes this.
  2. d_hapani

    d_hapani

    Joined:
    May 25, 2022
    Posts:
    1
    Hi kislotaooankit,

    I am also looking for a similar solution although my use case is a little different.

    I am trying to detect body landmarks using openCV and use those to control character inside Unity.

    Please share any resource if you have found anything. Likewise I'll also share if I find anything.

    Thanks!
     
  3. GamerLordMat

    GamerLordMat

    Joined:
    Oct 10, 2019
    Posts:
    185
    So I just deleted the dll in ARcore and it worked, but this is no solution but a clumpsy work around.
    Deleting the Google plugin in Barracuda did not work bc it reappeared all the time.
    to be honest I still dont know if it will lead to some problems later on but I dont get ompiler errors anymore.
     
    john_smith_001 likes this.
Thread Status:
Not open for further replies.