Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image1 = Image.open(io.BytesIO(flutter_input))
- image = np.array(image1)
- // Apply machine learning algorithim
- print("Length of image is ", len(image.flatten()))
- output = bytes(image)
- self.sendMessage(our, True)
- I.Image _img = I.decodeImage(binaryIntList);
- _img = I.encodeJpg(_img);
- IOWebSocketChannel.connect("ws://10.7.4.78:8080");
- List<int> imageBytes = img.readAsBytesSync();
- channel.sink.add(imageBytes);
- channel.stream.listen(( message) {
- Image im1 =Image.memory(message)};
- print(im1.height) // Prints null
Add Comment
Please, Sign In to add comment