Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2018 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/293c1500a0b594f99e4e2f751cabf5ba to your computer and use it in GitHub Desktop.
Save anonymous/293c1500a0b594f99e4e2f751cabf5ba to your computer and use it in GitHub Desktop.
Visual Studio 2010 Facebook Api
********************
Visual Studio 2010 Facebook Api ->>->>->>
********************
http://shurll.com/bzgte
(Copy & Paste link)
********************
more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Log In Sign Up . Email Sign Up or sign in with Google Facebook Luxand API in Visual Studio 2010? Ask Question up vote 1 down vote favorite How can I use Luxand API to get to work in visual studio 2010? I need to detect points of chin in a given face, can I do it with any other API? I have tried this sample code: OpenFileDialog openFileDialog1 = new OpenFileDialog(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { FSDK.CImage image = new FSDK.CImage(openFileDialog1.FileName); // resize image to fit the window width double ratio = System.Math.Min((pictureBox1.Width + 0.4) / image.Width, (pictureBox1.Height + 0.4) / image.Height); image = image.Resize(ratio); Image frameImage = image.ToCLRImage(); Graphics gr = Graphics.FromImage(frameImage); FSDK.TFacePosition facePosition = image.DetectFace(); if (0 == facePosition.w) MessageBox.Show("No faces detected", "Face Detection"); else { int left = facePosition.xc - facePosition.w / 2; int top = facePosition.yc - facePosition.w / 2; gr.DrawRectangle(Pens.LightGreen, left, top, facePosition.w, facePosition.w); FSDK.TPoint[] facialFeatures = image.DetectFacialFeaturesInRegion(ref facePosition); int i = 0; foreach (FSDK.TPoint point in facialFeatures) gr.DrawEllipse((++i > 2) ? Pens.LightGreen : Pens.Blue, point.x, point.y, 3, 3); gr.Flush(); } // display image pictureBox1.Image = frameImage; pictureBox1.Refresh(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Exception"); } } I get this error: Could not load file or assembly 'xquisite.application.exe' or one of its dependencies. Dev centers Windows Office Visual Studio Microsoft Azure More. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. Security CheckPlease enter the text belowCan't read the text above?Try another text or an audio captchaEnter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users.Submit.. –Tehreem May 17 '13 at 22:30 add a comment 2 Answers 2 active oldest votes up vote 2 down vote accepted what is your settings for your target? Any CPU ? Try x86 for Runtime ! have you add to your app.config ? These two thinks i forgot, were the reason of my errors which was the same as yours. Export (0) Print . Expand All . It's back! Take the 2018 Developer Survey today . c# matlab image-processing emgucv shareimprove this question edited May 17 '13 at 22:40 asked May 17 '13 at 22:08 Tehreem 3462621 2 Did you try anything? Please read FAQ and How to Ask –Soner Gnl May 17 '13 at 22:10 I tried writing a program using it in VS 2010 but it does not work. What's newSurface Book 2Surface ProXbox One XXbox One SVR & mixed realityWindows 10 appsOffice appsStore & SupportAccount profileDownload CenterSales & supportReturnsOrder trackingStore locationsSupportBuy online, pick up in storeEducationMicrosoft in educationOffice for studentsOffice 365 for schoolsDeals for students & educators Microsoft Azure in education.. This site uses cookies for analytics, personalized content and ads. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. rev2018.1.8.28313 . Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. Join Stack Overflow to learn, share knowledge, and build your career. Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies Terms of use Trademarks 2018 Microsoft . The content you requested has been removed. By continuing to browse this site, you agree to this use. Learn more Developer Network Developer Network Developer Subscriber portal Get tools Downloads Visual Studio SDKs Trial software Free downloads Office resources SharePoint Server 2013 resources SQL Server 2014 Express resources Windows Server 2012 resources Programs Subscriptions Overview Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Samples Retired content . Stack Overflow works best with JavaScript enabled .. Is this page helpful? Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! We appreciate your feedback. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. IsFaceRecognized = FaceMetricHandler.LooksLike(FaceTemplate, similarityMinimum).Any(); if (IsFaceRecognized) { foreach (var match in FaceMetricHandler.LooksLike(FaceTemplate, similarityMinimum)) { failerCounter = 0; GreetingMessage = match.Name; IsFaceDetectionActive = false; OnFaceRecognized(); break; } } else { if (failerCounter++ > failerLimit) { failerCounter = 0; IsFaceDetectionActive = false; OnFaceNotRecognized(); } } if (IsFaceFrameActive) { gr.DrawRectangle(Pens.Red, facePosition.xc - 2*facePosition.w/3, facePosition.yc - facePosition.w/2, 4*facePosition.w/3, 4*facePosition.w/3); } } else { ResetSmoothing(); } FaceContent = frameImage; GC.Collect(); Application.Current.Dispatcher.Invoke(delegate { }, DispatcherPriority.Background); } } catch(Exception e) { logger.Fatal(e.Message); InitializeCamera(); } finally { FSDKCam.CloseVideoCamera(cameraHandler); FSDKCam.FinalizeCapturing(); } } shareimprove this answer edited Jul 11 '13 at 6:24 answered Jul 10 '13 at 18:43 Konstantin Heinrich 11915 Its been quite a while since I needed this, but it works perfect!! Thankyou so much :) –Tehreem Jul 11 '13 at 16:48 :) great than happy coding :) If you want, i have a beautiful MVVC App which recognize when somebody comes to the camera and you can safe your facemetric with your name and when you goe away and came back it recognized it again and say hello 'username' and you have a survey : like facescann or dislike ;) –Konstantin Heinrich Jul 11 '13 at 17:51 thats cool! Where can I have a look? –Tehreem Jul 12 '13 at 12:29 add a comment up vote 1 down vote BTW, you can use x64 with win64FaceSDK.NET.dll shareimprove this answer answered Jul 12 '13 at 18:03 user2577451 111 add a comment Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. asked 4 years, 7 months ago viewed 801 times active 4 years, 6 months ago Blog Take the 2018 Developer Survey Visit Chat Related 175Visual Studio C# statement collapsing365How to have an auto incrementing version number (Visual Studio)?186Shortcut to create properties in Visual Studio?83Visual Studio 2010 suddenly can't see namespace?325Format code shortcut for Visual Studio?162Seeing the console's output in Visual Studio 2010?405Writing to output window of Visual Studio?1Reading error C#240Visual Studio “Could not copy” … during build166Unable to type in Visual Studio Hot Network Questions fixing the following diagram? Confused about bibliography in old books Is there a way to safely have exposed electrical wires? Numeral system for a species with 8 fingers How to avoid implicit type casts in PostgreSQL? How do I negotiate more "Man" time for myself without offending my partner? What is DJ's actual name? How to fix a broken End Gateway in Minecraft Survival? Why is Unevaluated[#]& different from Unevaluated? How to determine the saturation level when an opamp schmitt trigger starts worknig? When reading papers, what's the most convenient way to check a citation without disrupting the reading process? Is standing actually illegal in Venice? Why is 11 am + 1 hour == 12:00 pm? What sense does it make for "sharpness" to be adjustable on a monitor? Should the + subject-verb agreement Is this sentence properly written Vce saturation voltage confusion How "scrambled" is the data on a RAID5 disk? Why is Windows reporting a battery charge with my desktop? Determine Tic-Tac-Toe winner (round based) Why play a fretted note while you can play it on an open string? Compare two numbers given as strings Finding pair of Amicable numbers under 10000 in C taking too long Internal resistance of a battery more hot questions question feed default . Were sorry. here is a piece of my code: private void DetectFace() { var failerCounter = 0; var cameraHandler = 0; try { const int failerLimit = 2; int failerLimitFaceDetection = Properties.Settings.Default.NotDetectedLimit; float similarityMinimum = Properties.Settings.Default.SimilarityLimit; var r = FSDKCam.OpenVideoCamera(ref CameraName, ref cameraHandler); if (r != FSDK.FSDKEOK) { MessageBox.Show(StringHelper.ErrorCamera); } FSDK.SetFaceDetectionParameters( Properties.Settings.Default.DetectionHandleArbitaryRotations, Properties.Settings.Default.DetectionDetermineFaceRotationAngle, Properties.Settings.Default.DetectionInternalResizeWidth); FSDK.SetFaceDetectionThreshold(Properties.Settings.Default.DetectionFaceDetectionThreshold); while (IsFaceDetectionActive) { var imageHandle = 0; if (FSDK.FSDKEOK != FSDKCam.GrabFrame(cameraHandler, ref imageHandle)) { Application.Current.Dispatcher.Invoke(delegate { }, DispatcherPriority.Background); continue; } var image = new FSDK.CImage(imageHandle); var frameImage = image.ToCLRImage(); FaceContent = frameImage; var gr = Graphics.FromImage(frameImage); var facePosition = image.DetectFace(); IsFaceDetected = facePosition.w != 0; if (!IsFaceDetected) { if (failerCounter++ > failerLimitFaceDetection) { failerCounter = 0; OnFaceNotDetected(); } } // if a face is detected, we detect facial features if (IsFaceDetected) { var facialFeatures = image.DetectFacialFeaturesInRegion(ref facePosition); SmoothFacialFeatures(ref facialFeatures); FaceTemplate = image.GetFaceTemplate(); // Similarity = 0.5f -> fin the right value . What's newSurface Book 2Surface ProXbox One XXbox One SVR & mixed realityWindows 10 appsOffice appsStore & SupportAccount profileDownload CenterSales & supportReturnsOrder trackingStore locationsSupportBuy online, pick up in storeEducationMicrosoft in educationOffice for studentsOffice 365 for schoolsDeals for students & educators Microsoft Azure in education.. Error Sorry, this page is unavailable. –Tehreem May 17 '13 at 22:28 I get this error: Could not load file or assembly 'xQuisite Application.exe' or one of its dependencies 5a02188284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment