opencv and arduino

i need the serial communication code that can send data from arduino to visual studio thx you !

How about some code to send serial data to Paint or Notepad? It makes as much sense to send serial data to Paint or Notepad as it does to send serial data to Visual Studio.

Visual Studio is an application development application. It does not read anything from the serial port.

It allows you to write application in a number of languages (C, C++, C#, etc.) that can read (some more easily than others) from the serial port.

All you need on the Arduino is Serial.print().