简体   繁体   English

将数据PHP(客户端)传递到C#(服务器端)

[英]Passing data PHP(client-side) to C#(server-side)

I want to develop a web based face recognition API. 我想开发一个基于Web的面部识别API。 The system that will process face recognition is in c# application(opencv). 处理人脸识别的系统在c#应用程序(opencv)中。 My problem is how to pass data from php to c#? 我的问题是如何将数据从php传递到c#? I already tested it by using fleck websocket, it could use the webcam of website(client) and send the image byte via websocket to c# opencv application(server) and return the processed output again to the website. 我已经使用fleck websocket对其进行了测试,它可以使用网站(客户端)的网络摄像头,并通过websocket将图像字节发送到c#opencv应用程序(服务器),然后将处理后的输出再次返回到网站。 see http://www.smartjava.org/content/face-detection-using-html5-javascript-webrtc-websockets-jetty-and-javacvopencv for similar result. 有关类似结果,请参见http://www.smartjava.org/content/face-detection-using-html5-javascript-webrtc-websockets-jetty-and-javacvopencv However I am looking for an alternative aside from websocket, because I want to make my own API like rekognition and I don't know where to start. 但是,我正在寻找除websocket之外的替代方法,因为我想创建自己的API,例如重新识别,而且我不知道从哪里开始。

Hoping for help :) 希望获得帮助:)

You use WCF to expose a SOAP interface for your C# service, and then consume it from PHP like any other SOAP service. 您可以使用WCF公开C#服务的SOAP接口,然后像其他任何SOAP服务一样从PHP中使用它。 You can also expose a RESTful interface with WCF. 您还可以使用WCF公开RESTful接口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM