xiayang zhang
xiayang zhang
  • Видео 22
  • Просмотров 35 602
Project Hub
Project Hub
Просмотров: 37

Видео

DIgitalProject Demo
Просмотров 103 года назад
DIgitalProject Demo
USYD OWEEK
Просмотров 253 года назад
USYD OWEEK
Attendance System -IOS APP
Просмотров 2473 года назад
Attendance System -IOS APP
IPharmacist - 3D Prototype
Просмотров 303 года назад
IPharmacist - 3D Prototype
CMS PROJECT REPORTING PRESENTATION _ Group 6 Tut08
Просмотров 244 года назад
CMS PROJECT REPORTING PRESENTATION _ Group 6 Tut08
Procedural Content Generation:Maze Generation - Group 11 Xiayang Zhang
Просмотров 404 года назад
Procedural Content Generation:Maze Generation - Group 11 Xiayang Zhang
Replacing finite state machine with behaviour tree
Просмотров 5284 года назад
13124084 Xiayang Zhang
Advanced Tutorial-OpenCV in Unity
Просмотров 33 тыс.4 года назад
Xiayang Zhang Guanghui Fu
Caffeine Rush - Marketing Video
Просмотров 724 года назад
Caffeine Rush - Marketing Video - UTS Introduction to game design - Group 14
Final Project Presentation group19
Просмотров 234 года назад
Final Project Presentation group19
Assignment 1 Demonstration
Просмотров 124 года назад
xiayang zhang 13124084
EXILE-LAND
Просмотров 1044 года назад
EXILE-LAND
RCS-Real City Simulator
Просмотров 214 года назад
RCS-Real City Simulator
Advanced Interaction Design - 4k
Просмотров 1145 лет назад
group assignment-completer assignment-completer.com/
Advanced Interaction Design
Просмотров 275 лет назад
Advanced Interaction Design
Prototype Megaman Shooting Game - Group ARDUINO PI
Просмотров 1195 лет назад
Prototype Megaman Shooting Game - Group ARDUINO PI
Dice Simulator - Prototype Physical Interaction - Xiayang Zhang
Просмотров 5085 лет назад
Dice Simulator - Prototype Physical Interaction - Xiayang Zhang
INTERACTIVE MEDIA FINAL PROJECT
Просмотров 1586 лет назад
INTERACTIVE MEDIA FINAL PROJECT
EASYSTEP Group Yellow
Просмотров 1786 лет назад
EASYSTEP Group Yellow
xiayang zhang 13124084 UG09 Fundamentals of Interaction Design
Просмотров 376 лет назад
xiayang zhang 13124084 UG09 Fundamentals of Interaction Design
CITP
Просмотров 246 лет назад
CITP

Комментарии

  • @z1d2g3c4
    @z1d2g3c4 5 месяцев назад

    I love you, you make my life easier 🥰

  • @MixxusStudio
    @MixxusStudio 9 месяцев назад

    Great job! Thanks!

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

    Thank you for the video! I have tried this and works fine on desktop but the CascadeClassifier returns null on Android. Could :c

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

    thank you so much! Hope you make more tutorial opencv

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

    I have a problem in outputArrayOfStockList.cs. How to solve it?

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

    Amazing tutorial but this detecting other things of my room sometimes my face how i fix this any suggestions???

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

    Does anyone have the archive for the elements from Flappy Bird?

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

    I have this problem. I searched for so many ways to tackle it but always failed. DllNotFoundException: OpenCvSharpExtern assembly:<unknown assembly> type:<unknown type> member:(null) OpenCvSharp.NativeMethods.TryPInvoke () (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/PInvoke/NativeMethods.cs:115) Rethrow as OpenCvSharpException: OpenCvSharpExtern assembly:<unknown assembly> type:<unknown type> member:(null) *** An exception has occurred because of P/Invoke. *** Please check the following: (1) OpenCV's DLL files exist in the same directory as the executable file. (2) Visual C++ Redistributable Package has been installed. (3) The target platform(x86/x64) of OpenCV's DLL files and OpenCvSharp is the same as your project's. System.DllNotFoundException: OpenCvSharpExtern assembly:<unknown assembly> type:<unknown type> member:(null) OpenCvSharp.NativeMethods.TryPInvoke () (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/PInvoke/NativeMethods.cs:115) OpenCvSharp.NativeMethods.TryPInvoke () (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/PInvoke/NativeMethods.cs:124) OpenCvSharp.NativeMethods..cctor () (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/PInvoke/NativeMethods.cs:59) Rethrow as TypeInitializationException: The type initializer for 'OpenCvSharp.NativeMethods' threw an exception. OpenCvSharp.CascadeClassifier..ctor (System.String fileName) (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/modules/objdetect/CascadeClassifier.cs:39) NewBehaviourScript.Start () (at Assets/Scripts/NewBehaviourScript.cs:16)

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

    Anyone know how to release the camera like in normal opencv with cap.release?

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

    Excuse me, do you have github address? I want to refer to it for my class assignment

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

    Can I move it with markers?

  • @024_arindamsarkar3
    @024_arindamsarkar3 2 года назад

    I am having this error " NullReferenceException: Object reference not set to an instance of an object FaceDetector.findNewFace (OpenCvSharp.Mat frame) (at Assets/FaceDetector.cs:32) FaceDetector.Update () (at Assets/FaceDetector.cs:26)" ... my plane material is not switching to instance ..please help

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

    I have a problem the video through the camera is upside down. Please help me to rectify this

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

    Hi! I´m having a problem, could anyone help me? I followed the steps, but I can´t use the faceY variable, the way of calling it doesn´t seem to work for me.

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

    It tells me: FileNotFoundException: "/Users/***/***/***/MotionController3/Assets/haarcascade_frontalface_default.xml"not found OpenCvSharp.CascadeClassifier..ctor (System.String fileName) (at Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/modules/objdetect/CascadeClassifier.cs:40) FaceDector.Start () (at Assets/Scripts/FaceDector.cs:18) It's exactly as in the video.

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

      I have the same problem.

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

      is there any solution with this ?

  • @AnilKumar-ws8rr
    @AnilKumar-ws8rr 2 года назад

    How to get last frame value??

  • @agi-news
    @agi-news 2 года назад

    a easy way to fix the Null error with the cascade is to manually download the Haarcascade file (its on geeks for geeks) and simply drop it on the assets folder in your project. Thats where his path is looking for it. Everything else seems to work fine

  • @Didi-bu8xw
    @Didi-bu8xw 2 года назад

    笑死。看这个tutorial的时候刚好是海康威视在美被禁

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

    Has anyone successfully run this face recognition feature on Android? I installed it directly on the phone and found that even the camera function does not work properly 😓

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

    can not detect on android device

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

    Nice! Thank you!

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

    Amazing, thank you! I could use some help with landmarks and don't know where else to ask. Maybe someone has an idea? OpenCV plus made me download a shape predictor, of which I changed the file name from .dat to .bytes, I've seen it work this way in the demo scene. The idea is to track the mouth using point 63 out of 68 so I can later check if the mouth has opened and then do stuff. Code: private ShapePredictor predictor; public TextAsset shapes; //the downloaded LandmarkLib private Point mouth; private void Start() { byte[] shapeDat = shapes.bytes; predictor = new ShapePredictor(); predictor.LoadData(shapeDat); //Telling the shape predictor to use the downloaded library } void Update() { myFace = //find the face like in this Tutorial, all working findLandmarks(frame, myFace) } void findLandmarks(Mat frame, Rect face) //this makes Unity crash { if (predictor.DetectLandmarks(frame, face)[63] != null) { mouth.X = predictor.DetectLandmarks(frame, face)[63].X; mouth.Y = predictor.DetectLandmarks(frame, face)[63].Y; } } How else am I supposed to track a point on the face without Unity crashing & saying "This application has requested the runtime to terminate it in an unusual way(...)"? Is it crashing because it is running slowly? Have I referenced or imported the shape_predictor_68_face_landmarks.bytes in the wrong way? There surely must be a way to use ShapePredictor.DetectLandmarks, right? Any help is appreciated <3

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

    Thanks for a great tutorial - I had to add the "lastY=faceDector.faceY;" line suggested by someone below, unsure if it's supposed to work without this, but it did the trick for me. However, the face tracking is really jittery and imprecise for me, it jumps between different values even when my face is completely still. Does anyone know a good way to calibrate the tracking, or alternatively, to smooth out the transition between values?

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

      Hello, did you solve the jittering of the face tracking?, I have the same issue

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

      @@videogames7 Not really, but I noticed slightly better results from trying another webcam. The second one that got better results was 720p and the first was 1080, the 1080 one also caused my scene to lag more, so if you can find a lower res cam or scale down the input before sending it to unity, it might be worth trying.

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

    Everything is working fine, but my bird in game is still flying upwards despite the updating the code as shown in the video, can anyone help me on this? what could possibly the issue? Below is the code for the bird: using System.Collections; using System.Collections.Generic; using UnityEngine; public class BirdController : MonoBehaviour { FaceDector faceDector; float speed = 1f; float lastY = 0; public void Start() { faceDector = (FaceDector)FindObjectOfType(typeof(FaceDector)); } public void Update() { float step = speed * Time.deltaTime; float norm = Mathf.Clamp(faceDector.faceY - lastY, -1, 1); transform.position = Vector3.MoveTowards(transform.position, new Vector3(transform.position.x, transform.position.y + norm, transform.position.z), step); } }

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

      I have the same issue, has anyone figured it out?

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

      @@mustafaozcicek3090 Yes, the issue is the last y value in the birdcontroller script being not updated, I added the following line of code in the script for the birdcontroller, see if it works for you: public void Update() { float step = speed * Time.deltaTime; float norm = Mathf.Clamp(faceDector.faceY - lastY, -1, 1); //below transform code is in one line transform.position = Vector3.MoveTowards(transform.position, new Vector3(transform.position.x, transform.position.y + norm, transform.position.z), step); //below line was additional added, then the character starts moving lastY=faceDector.faceY; }

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

    Thank you for your video! it was very interested, and I have a question, Is possible to deploy a project in WebGL instead of android or ios?

    • @m.a.ygames87
      @m.a.ygames87 2 года назад

      You can build any of the demo scenes by opening them on the unity android platform

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

      NO does not work for android

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

    Also if you build the game/program: place the haarcascade_frontalface_default.xml directly in the first folder in unity (assets) and change the Application.dataPath to System.IO.Directory.GetCurrentDirectory + @"/path where the xml file is in the build folder" The build cant find dataPath and also not when its in a under directory.

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

      Bro i Have an null reference from "Mat frame = OpenCvSharp.Unity.TextureToMat(webcamTexture)" how to fix this

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

      thank you so match 😘

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

      I have the same problem. Did you fix it?@@mhdrxshid

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

    If somebody has problem with the haarcascade_frontalface_default.xml. In my case it wouldnt found this file till i added a / infront of the path: cascade = new CascadeClassifier(Application.dataPath + @"/haarcascade_frontalface_default.xml");

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

      Also if you build the game/program: place the haarcascade_frontalface_default.xml directly in the first folder in unity (assets) and change the Application.dataPath to System.IO.Directory.GetCurrentDirectory + @"/path where the xml file is in the build folder" The build cant find dataPath and also not when its in a under directory.

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

      bro thank you so much

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

      Thank you for saving my time!

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

      @@aarontse183 your welcome

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

      @@erfanroghani your welcome :)

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

    hi very amazing thid toturial is very useful........................... pleas continue learn open cv from basic in windows and android plarform

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

    Hi, Thank you so much for the great tutorial. I am going to use OpenCV for my Unity project. In that project I need to implement Jump, Run, SwipeLeft, SwipeRight and etc gestures with OpenCV using a Web camera. Can you please confirm that the Jump, Run, SwipeLeft, SwipeRight, and etc gestures are possible with OpenCV pose tracking? If possible can you please help me or share some of the references for the above gestures implementation using Unity. Thanks in advance.

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

    Can u do the same with hand detection instead of face detection using OpenCV+Unity?

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

    Hi, Can you please share a few references for the skeleton tracking detection using OpenCV in Unity.

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

    Awesome can you create more tutorial

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

    i have a problem. How to fix haarcascade_frontalface_default.xml"not found.

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

      Ты решил эту проблему?

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

    Awesome tutorial

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

    Hi, very good tutorial. Can Open CV works on integrated graphics like intel hd4000?

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

    Thank you fro the awesome tutorial! Do you know where to find any documentation on this? the domain in the asset store seems to not exist anymore. I was trying to build off this tutorial to detect facial landmarks by making another cascade with the shape_predictor_68_face_landmarks.bytes file, but the file seems to be empty so it doesn't work the same way. Do you know how to find facial landmarks using this asset? I can't seem to find anything about it anywhere.

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

    ok)

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

    Absolutely great video! Thanks very much

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

    Nice! :)

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

    Espetacular, Seria muito bom também com o jogo tetris usando detecção de mão

  • @OsirisStBrown-pz8qz
    @OsirisStBrown-pz8qz 3 года назад

    I get a NullReferenceException error in the findNewFace function, how could I resolve this

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

      I too...

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

      If it is still relevant, I got the same error. Check the dataPath to 'haarcascade_frontalface_default.xml', after I had corrected it, it worked

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

      Yeah, I am getting the same error and I made sure that that the dataPath + "haarcascade_frontalface_default.xml" was correct in the script. Any clue what is causing the error? Thanks for your help!

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

      @@nicknytz2491 I found that it would resolve the error once I directly pasted the path of the XML file into the cascade classifier: cascade = new CascadeClassifier("Assets/haarcascade_frontalface_default.xml");

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

      @@tonclaryinet8823 This works! thank you! You have to also paste the xml file in the projects assets folder too!

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

    Nice! :)

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

    Where did you get the assets you used in this tutorial? I searched flappy bird on the unity asset store and these materials don't come up.

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

      Flappy Bird is a 2D game, so assets are simply images. You could probably just make some yourself or browse the internet for Flappy Bird assets instead of limiting yourself to the asset store. You will immediately find someones GitHub page with all the images.

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

    Hi , Great tutorial , but is there a way to get the rotation of the face ???

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

      Just a suggestion if you're getting features such as eyes and mouth and you can tell which one has a higher Y component, you can tell whether the face has rotated

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

    I got stuck on the part where the bird keeps flying of screen instead of following the rectangle. This is the code from the facedetector.cs: using System.Collections; using System.Collections.Generic; using UnityEngine; using OpenCvSharp; public class FaceDetector : MonoBehaviour { WebCamTexture webCamTexture; CascadeClassifier cascade; Renderer Render; public float faceY; OpenCvSharp.Rect MyFace; // Start is called before the first frame update void Start() { //Gets the renderer component and stores it in the variable Render Render = GetComponent<Renderer>(); //Stores all the webcam devices it has found into the array devices WebCamDevice[] devices = WebCamTexture.devices; //Here we set the webcam texture to the first webcam device that has been found webCamTexture = new WebCamTexture(devices[0].name); //Then we play the webcam input webCamTexture.Play(); //Here we create a new cascade classifier from the dataPath provided by the program cascade = new CascadeClassifier(Application.dataPath+ @"/Haarcascade/haarcascade_frontalface_default.xml"); } // Update is called once per frame void Update() { Mat frame = OpenCvSharp.Unity.TextureToMat(webCamTexture); findNewFace(frame); display(frame); } void findNewFace(Mat Frame) { //Gets the face that currently in the frame and if it matches, stores it in the variable faces var faces = cascade.DetectMultiScale(Frame, 1.1, 2, HaarDetectionType.ScaleImage); if(faces.Length >= 1) { Debug.Log(faces[0].Location); MyFace = faces[0]; faceY = faces[0].Y; } } void display(Mat frame) { //First we check if MyFace isn't empty. If so we add a rectangle on the face if(MyFace != null) { frame.Rectangle(MyFace, new Scalar(250, 0, 0), 2); } //Here we add the face as a texture to the variable newTexture Texture newTexture = OpenCvSharp.Unity.MatToTexture(frame); //Then we set the newTexture as the main texture on the renderer Render.material.mainTexture = newTexture; } } Down here is the code from the bird.cs: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bird : MonoBehaviour { public FaceDetector faceDetector; float speed = 5f; float lastY = 0; private void Start() { faceDetector = (FaceDetector)FindObjectOfType(typeof(FaceDetector)); } // Update is called once per frame void Update() { //Moves the bird overtime with a set speed float step = speed * Time.deltaTime; //Stores the value of the last Y position in the previous frame and then calculate the difference between them float norm = Mathf.Clamp(faceDetector.faceY - lastY, -1, 1); //Afterwards we normalize the difference transform.position = Vector3.MoveTowards(transform.position, new Vector3(transform.position.x, transform.position.y + norm, transform.position.z), step); } } If someone could tell me what I did wrong please let me know!!

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

      I've managed to get the bird follow the height position of the person it detects in the camera. However only when I move up and down with my face it goes to that position, if I keep my face still in the center it keeps either going up and down instead of staying center on my face position. This is the code I use now in Bird.cs: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bird : MonoBehaviour { FaceDetector faceDetector; float speed = 5f; float lastY = 0f; private void Start() { faceDetector = (FaceDetector)FindObjectOfType(typeof(FaceDetector)); } private void Update() { float step = speed * Time.deltaTime; float adjustment = faceDetector.faceY / 200; lastY = adjustment; float norm = Mathf.Clamp(adjustment, 1, -1); transform.position = Vector3.MoveTowards(transform.position, new Vector3(transform.position.x, transform.position.y + norm, transform.position.z), step); if (transform.position.y > 5) { transform.position = new Vector3(transform.position.x, 5, transform.position.z); } if(transform.position.y < -5) { transform.position = new Vector3(transform.position.x, -5, transform.position.z); } } } This is the only way I could keep the bird on the screen by not making him pass certain Y values. I also had to devide the Y value by 200 when getting the positioning of the face because it was mainly between Y 100 and 300 instead being close to 0. If you could help me out with this I highly appriciate it! :)

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

      Where did you get the objects/materials he used? When i searched on the asset store for flappy bird nothing came up.

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

      @@charlytaylor1267 I googled the for a flappy bird image on Google and used that as a sprite image. The same for the pipes.

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

      @charulata vidhani Hey, unfortunately I didn't got it to work with this method, mainly because I eventually needed to make it work in a 3D environment. I used this guys OpenCV Plugin for Unity to make it all work. github.com/rajandeepsingh13/Face-Detection-using-OpenCV-CPP-in-Unity.

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

      ​@charulata vidhani I've tried building it for android but I also didn't got it to work because you need to put the .xml file into the build game data file manually for it to work. Because when you build the game it won't take the .xml with it. I've got it working on my PC when building it as an .exe and moved the .xml file to the correct folder, so I'm guessing you could do the same when building it for Android as well.

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

    Please provide object detection by open cv

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

    very good tutorial . anyway is that possible for test it without webcam on pc? just wanna try directly build on the smartphone? thanks in advance.

  • @HuyNguyen-vp7eb
    @HuyNguyen-vp7eb 3 года назад

    thats great tutorial, but it really slow, only 10fps when run (My pc i7 6700 + Nvidia 1060 ). How to improve performance?

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

    A quick tutorial for a simple yet awesome application using only free tools. And you even took your time for some reflections at the end. Good stuff!

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

      @charulata vidhani you can do this by simply changing the target build to android platform and for this you need android sdk,jdk,ndk installed into your pc. Hope this helps you

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

      @charulata vidhani if you want to deploy In android I can help you

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

      Where did you get the objects/materials he used? When i searched on the asset store for flappy bird nothing came up.

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

    thank you very muchhhh🤩🤩🤩🤩🤩