Hello... Hope you all are fine. I am doing face recognition based attendance system. I want to connect Pi with visual studio (Gui)
To gernate the report of student attendance.
i am very Thankfull
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
Visual Studio is a programming IDE ( for Windows PC ) so you could use it to write a program for the Pi, but I dont really understand how you plan to use it to generate a report from a running program.
You have to explain more how this should work, where does Python come into consideration ? ( since this was posted in the Python subforum )
You have to explain more how this should work, where does Python come into consideration ? ( since this was posted in the Python subforum )
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
Sir basically i done face recognition on pi board.... i want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?
What can i do ?? Create a server Or Serial communication?
Re: Interface raspbeery pi With Visual studio 2010
I'm not super familiar with the pi and all the programming features of python but I have an idea you can try.
I communicate with my pi from my windows machine using visual studio to send and receive info.
An easy solution would be to save the unique user ID's to a single text file on the pi.
Download and reference the Renci.SshNet.dll in your GUI.
You'l be able to sign in to your pi via ssh and do whatever you want from the GUI.
Example, download the ID text file to your windows app then do the rest of the work.
What language are you using for your GUI?
I communicate with my pi from my windows machine using visual studio to send and receive info.
An easy solution would be to save the unique user ID's to a single text file on the pi.
Download and reference the Renci.SshNet.dll in your GUI.
You'l be able to sign in to your pi via ssh and do whatever you want from the GUI.
Example, download the ID text file to your windows app then do the rest of the work.
What language are you using for your GUI?
Re: Interface raspbeery pi With Visual studio 2010
"Yes". You could do it via serial, have a server-client arrangement where either the Pi or the PC can be server, you could probably use something like MQTT or some other 'via the cloud' type interface, even if that 'cloud' were local, on the Pi or PC. You could do it via file sharing and reading what has been written, on the Pi or on the PC.hammadyounas2008 wrote: ↑Thu Feb 08, 2018 1:05 pmSir basically i done face recognition on pi board.... i want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?
Do you have a preference ? Are you more comfortable with Pi or PC programming ? That may dictate which is best for you or easiest to implement.
Re: Interface raspbeery pi With Visual studio 2010
There are many ways for transferring information between two computers, and using the network is usually preferred it the computers are on the same network or can reach eachother via the internet.hammadyounas2008 wrote: ↑Thu Feb 08, 2018 1:05 pmi want to send ID Number Of that student to visual studio (GUI).
What can i do ?? Create a server Or Serial communication?
Best solution depends on things like:
- Will there ever be more than one GUI-program connected to the Pi ?
- Will there be more than one Pi connecting to the GUI-program ?
- Is there a requirement how fast the ID-numbers needs to be sent ?
- What should happen to the numbers if there is no GUI running to receive them ? Throw them away or store them to send later ?
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
@pingo if you tell me how to implement that i will be very thankfull to you
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
i am using C# and SQL
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
@happy i am more comfortable with PC programing... still not have any prefrence
-
- Posts: 6
- Joined: Thu Feb 08, 2018 7:29 am
Re: Interface raspbeery pi With Visual studio 2010
@topguy i dont know about it yet...
Re: Interface raspbeery pi With Visual studio 2010
Given that, and also because the PC probably wants to be told there's new data, a new ID, rather than poll for it, the way I'd do it is ...hammadyounas2008 wrote: ↑Fri Feb 09, 2018 3:49 pm@happy i am more comfortable with PC programing... still not have any prefrence
On the Pi : For every new ID read a 'web page' from 'http://<YourPc>/ID=<id>'. That's possibly as simple as adding and calling ...
Code: Select all
def NewIdDetected(id):
IP = "192.168.0.123"
return urllib.urlopen("http://"+IP+"/ID="+id).read()
That should get you going and you can even test it with any web server on your PC just to check that what's turning up as URL's matches what you are sending.