Using OpenCV and Kinect-V2 to detect cardboard boxes and light a LED via Arduino

I will greatly appreciate any guidance or advice or tutorial suggestions with respect to the following:

Project Aim: To use OpenCV and Kinect-V2 to detect a cardboard box and then based on detection notify Arduino Uno to light an LED.

Question1: Is there any good tutorials or only help which shows how to send information from my python or C++ program to arduino program?

Question2: How can I realy the information that an object was detected to the arduino and that in turn lights the led?

Question3: Can it be a wired connection?

Question4: Can it be a realtime operation as in a moving conveyor belt system carrying these boxes are detected by the kinect- v2 and this in turn sends the information to the arudino uno which lights the led?

Thanks,

Question1: Is there any good tutorials or only help which shows how to send information from my python or C++ program to arduino program?

pySerial tutorial

Question2: How can I realy the information that an object was detected to the arduino and that in turn lights the led?

The ReadASCIIString example (04.Communication) does about the same with an RGB LED. Your case is much simpler so it shouldn't be a problem to get the necessary parts out of that sketch.

Question3: Can it be a wired connection?

It should as the UNO doesn't have any wireless options out of the box.

Can it be a realtime operation as in a moving conveyor belt system carrying these boxes are detected by the kinect- v2 and this in turn sends the information to the arudino uno which lights the led?

Depends on your programming skills and your definition of "realtime". If you define it as immediately, the answer is no, as you will always have some delay.

This project is mainly a PC project, the Arduino is only a marginal part of it. If you have problems with OpenCV or the kinect, as them on an appropriate board.

Thank you for the information,

Pyserial makes sense,

I will go over the material,

It is true, if opencv and kinectv2 aren't good at the detection process the arduino becomes secondary.