just a tip for anyone following this tutorial, I had a lot of problems when using the latest versions of EMGU, but then I tried the older versions, such as 3.2 and it worked just fine :3
@jabuszkodev2 жыл бұрын
System.TypeInitializationException HResult=0x80131534 Message=Inicjator typów zgłosił wyjątek dla typu 'Engine.Form1'. Source=Engine Ślad stosu: at Engine.Form1..ctor() in C:\Users\Alex\Desktop\Codes\Engine\Engine\Form1.cs:line 23 at Engine.Program.Main() in C:\Users\Alex\Desktop\Codes\Engine\Engine\Program.cs:line 19 Ten wyjątek został pierwotnie zgłoszony w tym stosie wywołań: [Kod zewnętrzny] Engine.Form1.Form1() w Form1.cs Wewnętrzny wyjątek 1: CvException: OpenCV: haarcascade_frontalface_alt_tree.xml(1): Valid XML should start with ''
@حساناليافعي-ق9ذ Жыл бұрын
@@jabuszkodev🎉
@giuliocacucci28564 жыл бұрын
Hi, great tutorial. Thanks a lot! Just a little tip for followers: "Use Emgu.CV V4.1.1.3497 (as in the video) to avoid errors with related functions".
@foxlearn4 жыл бұрын
Thanks for sharing
@peterstein46824 жыл бұрын
Very true
@keyboardwarrior24183 жыл бұрын
@@foxlearn His comment is very important. The newer version will indeed cause errors. It would be a good idea to pin his comment so that new people watching this video will get a heads-up.
@RmzPame Жыл бұрын
@@keyboardwarrior2418 doesnt work for me
@classiciranian3 жыл бұрын
thank you very much . i'm a iranian programmer and very happy for create a channel for programmers c# . be succesful
@talhatariq55304 жыл бұрын
I Really can't express the sense of satisfaction over this Video . Good work and really Helpful .
@foxlearn4 жыл бұрын
Thank you !
@ameerabdaljabar5 жыл бұрын
We need a project that compares the face, for example: - You have a group of photos of certain people, the number of thousands, and you take a picture of a modern person, the program compares the new image with the old photos and extracts the old image of his I think it's termed "image processing"
@foxlearn5 жыл бұрын
OK. Thank you for your suggestion. I'll upload soon !
@ameerabdaljabar4 жыл бұрын
Fox Learn any upload 😅
@aidanmcgeady76634 жыл бұрын
@FoxLearn is there a way to have 2 different types of boxes come up? Say a red box would appear if the image is in a file directory and a blue box if it is not? If so how would this be done? If that can't be done, then could you show a way to have a box appear but only on people who the programme has been "trained" to see?
@denisbmonteiro5 жыл бұрын
Good job with the tutorials, there is really cool videos on your channel. Would be possible to upload more WPF videos please?
@foxlearn5 жыл бұрын
OK. Thank you for your suggestion !
@kamild34 жыл бұрын
Thank you for video. If I want to change video source as my desktop screen, what changes should I do in the code?
@foxlearn4 жыл бұрын
Change your picturebox dock to fill
@kamild34 жыл бұрын
@@foxlearn I want to capture faces from desktop screen not webcam. Is it gonna work?
@tamhoangminh1972 жыл бұрын
Thankyou so much but I had an problem: I downloaded haarcascade_frontalface_alt_tree.xml file in the link github you've share but It still cannot detected my face, I added checkpoint that cascadeClassifier.DetectMultiScale(grayImage, 1.2, 1) always return empty array. Help me please
@mohammadthaher84544 жыл бұрын
great video is there any video or project for medical face detection using emgu.cv c#?
@davidcerezoromero3754 жыл бұрын
So wonderful. Hi, do you know how I can stream the processed content ( the frames with rectangules over the smiles) to a client from a Web Server using emgucv ???
@foxlearn4 жыл бұрын
OK. Thank you for your suggestion. Let me try to research
@ranniesumacot45763 жыл бұрын
Using this face recognition, how do you display the user's information using his face?
@seo.innovativedevelopment91574 жыл бұрын
Error CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]'
@hrutikpansare28953 жыл бұрын
Same
@ivanestrada26883 жыл бұрын
@@hrutikpansare2895 Instala la version Emgu.CV 4.1.1.3497 en lugar de la mas nueva
@abdalrhmanatma30263 жыл бұрын
how i can solve this "cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]'"
@ivanestrada26883 жыл бұрын
Instala la version Emgu.CV 4.1.1.3497 en lugar de la mas nueva
@u1krsh2 жыл бұрын
@@ivanestrada2688 Muchas gracias!
@thetechchap62603 жыл бұрын
everything went perfect but not detecting the face why ?? can you please help me out
@MeloneXT-mh6vg3 жыл бұрын
CS1503 Argument "1": Converting from "System.Drawing.Bitmap" in "byte[*,*,*]" not Possible Pls Help
@RmzPame Жыл бұрын
I replace "Image grayImage = new Image(bitmap)" to "var grayImage = bitmap.ToImage();" it works for me
@spymancrackers5 жыл бұрын
Very good tutorial Thank you very much
@foxlearn5 жыл бұрын
You're welcome. Thank you !
@bangsamorodeveloper15065 жыл бұрын
Wow! This is a wonderful tutorial... Thank you FoxLearn! By the way, is it possible to compare the face from the image saved in the database using that method? If a face was similar on one of the image saved in database, then it will say something! I hope you can make a tutorial for that.😁😊
@foxlearn5 жыл бұрын
Let me try to research. Thank you for your suggestion !
@TheSuper77777775 жыл бұрын
Yes please. I need tutorial like this
@puppz032 жыл бұрын
@@foxlearn Hi, have you done the code for this? Thanks in advance
@dhtlucky19845 жыл бұрын
Perfect! I wish i could like this video 1000 times. Do you try with a Decklink card & Professional SDI Camera?
@foxlearn5 жыл бұрын
At this time no. Thank you !
@keyboardwarrior24183 жыл бұрын
@@foxlearn What is the song name of the music that starts playing at 8:16? You forgot to mention it in your video description.
@khalilsaqib81763 жыл бұрын
Please upload video on Face emotion detection
@hieudaica13043 ай бұрын
I managed to make it work somehow but it is not really detect my face as I have expected.
@sairk61744 жыл бұрын
Seems am bit late in subscribing to your channel ..vids are Awesome ..Thanks A Ton for sharing your knowledge. Actual i would like to know more on communication btw winforms and web browser control (customized with html controls as webpage ) .Any help ..much Appreciated .
@swerytv43425 жыл бұрын
Thanks for this tutorial yet. so i am waiting the system login and authorization that you have implement on JRE rental software with Devexpress.
@foxlearn5 жыл бұрын
I'll write the article on my site. Too much code i can't make the video tutorial
@swerytv43425 жыл бұрын
@@foxlearn I managed to implement login but i could not manage in the authorization and management of the colone role in other to print it in the gridview of Devexpress i am trying but nothing as solutions. Thank you.
@swerytv43425 жыл бұрын
@@foxlearn i don't need the video for that just a source code and comment for each line it's all please i am work on a project i would like To implement it.
@Дмитрийсекрет-н7о5 жыл бұрын
Великолепный урок ))
@foxlearn5 жыл бұрын
Thank you !
@septiantriiriawan65315 жыл бұрын
Nice tutorial.. Could you please include your pc specs? Thanks
@Misicek3 жыл бұрын
why u need that :D
@daalwada4 жыл бұрын
My VideoCaptureDevice in Page Load event is throwing "Object Reference not set" error. How to add the input device in dropdown? (BDW I am creating this application in Laptop)
@foxlearn4 жыл бұрын
Please check your code again. I think you miss something
@malex18362 жыл бұрын
@Alex Caraballo did you solve it??
@RichardDika-kv7yj4 жыл бұрын
Very good tutorial
@foxlearn4 жыл бұрын
Thank you !
@shahakkuba85904 жыл бұрын
I've copied the code exactly to see if my errors were spacings or anything little I could miss but I still get the Error: CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]'
@foxlearn4 жыл бұрын
Please check again. You can see demo code at foxlearn.com
@lavyksoares99624 жыл бұрын
I analyzed the case and saw that the error happens because of the version of Emgu.cv downloaded on NuGet. You need to downgrade to the version Emgu.cv V4.1.1.3497 on NuGet itself, to solve it for me.
@RmzPame Жыл бұрын
I replace "Image grayImage = new Image(bitmap)" to var "grayImage = bitmap.ToImage();" it works for me
@desync74 жыл бұрын
Webcam person detection?
@ncankalkan5833 жыл бұрын
why dont you give link "haars_frontface_alt_xtree.xml" files for download? :/
@abdalrhmanatma30263 жыл бұрын
can i ask you a question
@Ruhgtfo5 жыл бұрын
Thanks is works, but is not sensitive as expected and have mirror effect~ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AForge.Video; using AForge.Video.DirectShow; using Emgu.CV; using Emgu.CV.Structure; namespace FaceDetectionCamera { public partial class Form1 : Form { public Form1() { InitializeComponent(); } FilterInfoCollection filter; VideoCaptureDevice device; private void Form1_Load(object sender, EventArgs e) { filter = new FilterInfoCollection(FilterCategory.VideoInputDevice); foreach (FilterInfo device in filter) cboDevice.Items.Add(device.Name); cboDevice.SelectedIndex = 0; device = new VideoCaptureDevice(); } private void btnDetect_Click(object sender, EventArgs e) { device = new VideoCaptureDevice(filter[cboDevice.SelectedIndex].MonikerString); device.NewFrame += Device_NewFrame; device.Start(); } static readonly CascadeClassifier cascadeClassifier = new CascadeClassifier("haarcascade_frontalface_alt_tree.xml"); private void Device_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); Image grayImage = new Image(bitmap); Rectangle[] rectangles = cascadeClassifier.DetectMultiScale(grayImage, 1.2, 1); foreach (Rectangle rectangle in rectangles) { using (Graphics graphics = Graphics.FromImage(bitmap)) { using (Pen pen = new Pen(Color.Red, 1)) { graphics.DrawRectangle(pen, rectangle); } } } pic.Image = bitmap; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (device.IsRunning) device.Stop(); } } }
@foxlearn4 жыл бұрын
Thank you !
@wONd3ry11 ай бұрын
100% working
@adorablelaughter40935 жыл бұрын
Thanks for the tutorial. But pls I have a problem, the camera captures images well but it's not detecting the face. I had issues downloading the engine.cv, the one with over 200k download, so I downloaded the one with over 100k download. Could that be the cause?
@foxlearn5 жыл бұрын
What error are you getting?
@adorablelaughter40935 жыл бұрын
@@foxlearn it does not throw any exceptions. It builds well, but while capturing the image, it does not detect the face neither does it show any rectangular line.
@lawrencekraft1064 жыл бұрын
Have you solved the problem already? It seems I´m having the same issue
@marymory284 жыл бұрын
I had the same problem, but I change the library of Emug.CV to EmugCV and if you have another thing, for example --> Image grayImage = new Image(bitmap.Size); it should stay with Image grayImage = new Image(bitmap);
@jeraldsamonte12644 жыл бұрын
System.TypeInitializationException: 'The type initializer for 'Face_Detection_Camera.Form1' threw an exception.' im getting this error hope you can help
@foxlearn4 жыл бұрын
Please check your code again. i think you missing something
@yourspdahal56064 жыл бұрын
can i use it my own system
@foxlearn4 жыл бұрын
Yes, you can
@yourspdahal56064 жыл бұрын
@@foxlearn may i use haarcascade_frontalface_alt2.xml file for development of software and distribution it. how can i use this Copyright (C) 2000, Intel Corporation, please help me . Thank you!!!
@leinah36714 жыл бұрын
is object detection included?
@foxlearn4 жыл бұрын
face detection
@sinhnguyennguyen43295 жыл бұрын
Follow code instruction, it can show webcam but it could not show rectangle on the face. Debug code in frame event, it always returns zero rectangle, so it could not draw red rectangle on the face. What happen to me?
@foxlearn5 жыл бұрын
Select an other picture or you can detect your face via webcam
@prometeusz.jasinski4 жыл бұрын
@@foxlearn Does not work with my german face either. Facing the cam on the youtube video detects the face there. I guess now I need to dig into openCV...
@danielezekielulep49564 жыл бұрын
I have a problem "pic.image does not exist in the current context" What does pic.image mean?
@foxlearn4 жыл бұрын
pic is a name of your PictureBox control
@vungocquang68385 жыл бұрын
Hi. How to change the server name is PC / SQLEXPRESS to PC. Thanhk you
@ohfam66314 жыл бұрын
i got this error: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]' how could i fix this?
@foxlearn4 жыл бұрын
Please check your code again. I think you miss something
@shahakkuba85904 жыл бұрын
i got the same error did u find out what the issue was?
@lavyksoares99624 жыл бұрын
I analyzed the case and saw that the error happens because of the version of Emgu.cv downloaded on NuGet. You need to downgrade to the version Emgu.cv V4.1.1.3497 on NuGet itself, to solve it for me.
@daalwada4 жыл бұрын
@@lavyksoares9962 Thanks Buddy! :) It helped me solve my issue.
@rapidengineering20554 жыл бұрын
@@lavyksoares9962 Thanks
@hambalilubis3615 жыл бұрын
Real time detection please
@foxlearn5 жыл бұрын
Thank you for your suggestion !
@Khaner84 жыл бұрын
Image grayImage = new Image(bitmap); I have an error on the last "bitmap". It says Error CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]' I need Help
@juanottaviano40174 жыл бұрын
Latest Emgu.cv version removed the Image(Bitmap bitmap) definition. Best solution is to download the exact same version as in the video.(v4.1.1.3497) which still has the Bitmap parameter definition.
@Khaner84 жыл бұрын
@@juanottaviano4017 okie dokie
@QutadaAlFannad4 жыл бұрын
Our Friend solved it Lavyk Soares Lavyk Soares 1 month ago (edited) I analyzed the case and saw that the error happens because of the version of Emgu.cv downloaded on NuGet. You need to downgrade to the version Emgu.cv V4.1.1.3497 on NuGet itself, to solve it for me.
@raresh12723 жыл бұрын
why it doesn't detect my camera? please help
@ShakirAlimit4 жыл бұрын
EMGU.CV is open source ?
@foxlearn4 жыл бұрын
Yes, It's an opensource
@relaxingsatisfying94415 жыл бұрын
Amazing.. ..
@foxlearn5 жыл бұрын
Thank you !
@ProjectCluster_011 ай бұрын
The downgrade emguCv solution is not working, when I installed it it just made the cascadeclassifier not working saying there's no cascadeclassifier
@jameelurrehman85875 жыл бұрын
خوب
@foxlearn5 жыл бұрын
Thank you !
@abmtechnologies5 жыл бұрын
sorry Sir but I don't Understand what is "cdoDevice"
@foxlearn5 жыл бұрын
cboDevice is a name of your Combobox
@abmtechnologies5 жыл бұрын
thanks
@braydencunningham93375 жыл бұрын
So, i'm having a problem on line 29 where it says " Error CS1061 'VideoCaptureDevice' does not contain a definition for 'name' and no accessible extension method 'name' accepting a first argument of type 'VideoCaptureDevice' could be found (are you missing a using directive or an assembly reference?)" but I don't know how to fix it
@foxlearn5 жыл бұрын
You should install the libraries, and don't forget to include to your namespace
Thank you very much😊, you can find source code here: github.com/MoussaGerges9/Face-Detection.git
@foxlearn4 жыл бұрын
Thank you !
@r501425 жыл бұрын
Oh WOW!
@foxlearn5 жыл бұрын
Thank you !
@atsmv29643 жыл бұрын
private void Device_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); //Image grayImage = new Image(bitmap); //GraphicsImage = Image.FromFile(openfiledialog1.FileName) as Bitmap; Image grayImage = new Image(bitmap); i have problem at code here: Image grayImage = new Image(bitmap); the error is at (bitmap) the error is : Error CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]'
@akhilan82932 жыл бұрын
I'm also have this error
@FereshtehJourney2 жыл бұрын
I have the same error! I can't install the downgrade version because I am coding in .NET core 3.1, please help me to solve it
@The_Sifter4 жыл бұрын
github link is 404 error
@prometeusz.jasinski4 жыл бұрын
github.com/opencv/opencv/blob/master/data/haarcascades/haarcascade_frontalface_alt_tree.xml in my case I forgot to type twice "opencv"
@Dione5G2 жыл бұрын
I love you
@aamirgour36043 жыл бұрын
Not working properly
@SigmaGamerProzst4 жыл бұрын
4:05 please ignore this comment
@ogunkilic26255 жыл бұрын
github.com/opencv/opencv/tree/master/data/haarcascades Github link
@foxlearn5 жыл бұрын
Thank you !
@alirezaabedi18855 жыл бұрын
like.
@foxlearn5 жыл бұрын
Thank you !
@vib_yt98062 жыл бұрын
It says cbodevice not found
@redev47815 жыл бұрын
pleas taining c# face compare
@foxlearn5 жыл бұрын
OK. Thank you for your suggestion !
@mohammedmuzzammil1184 Жыл бұрын
private void Device_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); Image grayscale = new Image(bitmap); Rectangle[] rectangles = cascadeClassifier.DetectMultiScale(grayscale, 1.2, 1); foreach (Rectangle rectangle in rectangles) { using(Graphics graphics=Graphics.FromImage(bitmap)) { using(Pen pen=new Pen(Color.Red,1)) { graphics.DrawRectangle(pen, rectangle); } } } pictureBox1.Image = bitmap; } this event is not triggering
@莫逆逼5 жыл бұрын
redline disapear >
@foxlearn5 жыл бұрын
Thank you !
@ivanarabome41723 жыл бұрын
Wrong.... not accurate in detection and very slow
@seo.innovativedevelopment91574 жыл бұрын
Error CS1503 Argument 1: cannot convert from 'System.Drawing.Bitmap' to 'byte[*,*,*]'
@gogakakabadze3 жыл бұрын
**** Solution **** Install EmguCV instead of EMGU.CV !!! **** Solution**** That worked for me!
@gogakakabadze3 жыл бұрын
Do not forget to delete Emgu.CV before or after you install EmguCV!!!!!