static void Main(string[] args) { var imageFile = @"..\..\..\..\EdgeDevice\modules\CameraModule\simulated-images\300x300\counter.png"; byte[] bytes = File.ReadAllBytes(imageFile); ByteString bs = ByteString.CopyFrom(bytes); // Change this IP address to point to your DBE's compute role IP address var client = new FpgaClient.FpgaModel("192.168.1.192", 50051); var result = client.Process(bs); Console.WriteLine("Done"); }
static void Main(string[] args) { var bigImage = @"..\..\..\..\EdgeDevice\modules\CameraModule\simulated-images\counter.jpg"; byte[] bytes0 = File.ReadAllBytes(bigImage); var small = CameraModule.Camera.ShrinkJpegTo300x300(bytes0); // Change this IP address to point to your DBE's compute role IP address var client = new FpgaClient.FpgaModel("192.168.1.192", 50051, "104, 117, 123"); var result = client.Process(small); Console.WriteLine("Done"); }