|
now sir please don't discourage me because i will do it. and sir i will do it by my self. because i have implemented a simple algorithm that detects a face in live video. in which i first detect skin color then in every normal window of skin color i searches for two eyes which are non-skin colors in the upper area of the window and then in lower part of the window i search for the mouth which is a non-skin color as well after that i calculate the area among all three places. and then i draw a rectangle on correct region.
i discussed it very briefly. but i have implemented and it detects faces in live video. but it is not good as "Nural Networks" or "Viola Jones algos" etc. they are perfect. and now i wana implement "Nural Networks" but i don't understand it.
so now what do you think sir if someone will tell me that what the nural network algo is saying so i can implement it in c#.
thanks
|
|
|
|
|
inayathussaintoori wrote: i first detect skin color then in every normal window of skin color i searches for two eyes which are non-skin colors in the upper area of the window and then in lower part of the window i search for the mouth which is a non-skin color as well after that i calculate the area among all three places. and then i draw a rectangle on correct region.
That's a really bad implementation idea there. How do you handle the case where somebody has something like a portwine birthmark?
|
|
|
|
|
I don't understand the Viola Jones algorithm, or how to detect faces with a NNW for that matter. I certainly don't want to do the research on it, if I did I'd probably do it as part of of a PhD or something, at least I'd get something from it. If I were going to do this as a research project I'd do it myself, I wouldn't come here and ask other people to do this for me.
You only have two options on this one:
1) Try to change your project.
2) Put in the effort to get your project done.
|
|
|
|
|
3) Learn the concepts and stop trying to get other people to do your project
#3 being the best option ....
Don't comment your code - it was hard to write, it should be hard to read!
|
|
|
|
|
inayathussaintoori wrote: please sir if you can implement i in c# for me or is there c# source code available.
Errm, it's your course not ours. Is there not reading material available to you from your course? Have you not taken the requisite classes? Developing an application is not just about writing code, and your tutors are going to want to see the other aspects. They are going to want to see your design, your workings. They want to see that you have a thorough understanding of the underlying concepts. How are you going to get any of that if we write the code for you?
inayathussaintoori wrote: please help otherwise i am going to have a great lose.
Now's the time for you to step up to the plate (to quote a sporting metaphor) and be your most magnificent. Be exceptional and surprise yourself.
|
|
|
|
|
Umm...I really hate to say this, but because you want someone to write this for you or ive you the step-by-step (which doesn't exist by the way!) you will learn nothing and at that point YOU DESERVE TO FAIL!!
|
|
|
|
|
|
yes i know that my way of implemention is bad idea there for i wana implement nural networks algo.
and for which i need help.
|
|
|
|
|
Sadly for you then, you aren't going to get the help.
It's my sad duty to inform you that you are most likely going to fail then. People here have told you precisely what you need to do, but you are looking for the easy option. It's time for you to realise that life is not going to deliver things to you for free; this is your responsibility, so it's up to you to sort it out.
If you can't do this subject, you need to change it to one that you can do.
|
|
|
|
|
No one will write do your design or write code for you, there is a perfectly vaild reason for this type of action. I recommend that you read some transactions on Pattern Analysis and Machine Intelligence, the IEEE is a great source. There is plenty of information on neural network design, theres also loads of open source neural networks out there. You have to put some effort behind it otherwise you will be found out in the workplace as a loser if you do decide to work in the computer industry.
Good luck.
|
|
|
|
|
now i want to weep.
|
|
|
|
|
My system has a directory C:\AAAA. Where 'AAAA' has security permissions set. ie., only read operations can be performed and no write operations.
My application tries to create a directory under 'AAAA'. i.e, C:\AAAA\BBBB.
I am trying to handle an exception to avoid a crash -
try
{
Directory.CreateDirectory("C:\\AAAA\\BBBB");
}
catch(Exception ex)
{
}
But I am observing that the catch handler is never invoked. My application is trying to create the directory, It is unable to create and it goes to the next statement after the catch block.
What would be the code to check whether a directory can be created under AAAA or not.
|
|
|
|
|
Could you use the FileSystemInfo class to get the attributes and check if it's read only?
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
V K 2 wrote: and it goes to the next statement after the catch block.
whuch is a clear indication it DID catch the exception; if it hadn't, it would have returned from the current method, until it encountered a matching catch, or it would crash the app.
Never
have an empty catch block, it makes no sense. All it does is swallow an exception, i.e. hide a problem.
|
|
|
|
|
Luc Pattyn wrote: Never
have an empty catch block, it makes no sense. All it does is swallow an exception, i.e. hide a problem.
Unsure
AMEN, BROTHER!!!!!
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
I would put the following in the catch clause to make sure that it is not being invoked
MessageBox.Show(exception.Message);
or
Console.WriteLine(exeception.Message);
|
|
|
|
|
You are in essence "eating" the exception (if the code above is the actual code you're using). Put a breakpoint on the first bracket and run the code under the debugger. It should stop at the breakpoint.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Is it really an empty catch block or you removed the code inside it for the post? Never ever have an empty catch block. Also, never use try/catch/finally as if they are same as if/else. I, personally, would prefer checking for the permission and then deciding the flow.
|
|
|
|
|
Hi ,
I am using asp.net using c#. In my ascx page, i included asp.net controls like textbox labels gridview.... in the ascx page, i dont see any div or tr tags.. but when i run the program, i can see those in fire bug. Well some div are ok but some are nested div . Some tags are even unnecessary to me. is there any way i can remove those tags ? any ideas ??
suchita
|
|
|
|
|
Those tags are probably generated by the html renderer for the controls you are using on the control. The only tags I think you can remove are the ones you have placed yourself in the script for your control.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
ya i think so too.
suchita
|
|
|
|
|
This question should be posted on the asp.net forum.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
The reason that extra content is rendering is because you are creating a User Control and not a Custom Control. In order to fully control the rendering of your control you will need to make Custom/Server Control.
Walkthrough: Developing and Using a Custom Web Server Control[^]
Don't comment your code - it was hard to write, it should be hard to read!
|
|
|
|
|
This belongs to ASP.Net forum.
Those tags occur because of the way ASP.Net server controls are rendered on screen. You can create a simple web page with a GridView and some hardcoded data in it. Just see how it is rendered.
Basically, .Net specific tags what we see in an ASPX/ASCX file are alien for a browser. It understands HTML and some scripting languages only. So, what .Net has done is, made our life easier. We can put in a GridView in ASPX set the properties and when the page is rendered on screen, that tag is converted to it's equivalent HTML.
|
|
|
|
|
I have the need to build a client-server system. It will all be working on an intranet, distributed on multiple PCs.
One will be a server application, hosted on a PC, that will manage the data.
The second will be a client application. It will be used to read and modify the data. This application already exists, for the most, and is a C++ application. It is huge so it cannot be done from scratch again. I have seen that I can expose a COM interface from .Net, so I will probably do a library that will be used as an interface between my old C++ app and the .Net architecture.
I also need the server to be able to send notifications to the client applications when some changes occurs, so I need a subscription mechanism.
I am relatively new to .Net so I am not sure what the best technology is.
I have looked at WCF, but it does not seem ideal for the subscription/notification part. Am I wrong?
What else is there that could be better?
|
|
|
|