MaixPy-v1 icon indicating copy to clipboard operation
MaixPy-v1 copied to clipboard

can't display preview video in IDE

Open neolu opened this issue 4 years ago • 7 comments

can't display preview video in IDE

neolu avatar May 15 '20 05:05 neolu

When I connect Maix Bit to USB2.0 port, I cannot preview video in MaixpyIDE. But when I connect to USB3.0 port, I can preview. This phenomenon occur both windows and linux. I don't know the reason.

galaxystar1yuji avatar Jun 04 '20 12:06 galaxystar1yuji

Maybe data lose, parity fail, so not display image on IDE, but we failed to reproduce this problem

Neutree avatar Aug 06 '20 10:08 Neutree

Maybe as @galaxystar1yuji saied, replace a reliable USB cable and change port or PC will resolve this problem, we will continue pay attention to this problem

Neutree avatar Aug 06 '20 10:08 Neutree

Same here with my Maixduino when it is connected to my 1st gen AMD Ryzen machine. But in my case usb 2 ,3 or 3.1 ports didn't change anything. On the other hand, when I connected to my old 2. gen Intel laptop, everything works fine, every time.

Workaround: connect to your device as usual by selecting the lower numbered COM port (e.g select "com 1" if there is "com1" and "com 2") and start the device by pressing play button. Once device started go to Tools -> Open Terminal -> New Terminal. "Connect to serial port" -> "Please select a serial port" -> "com 2" (the remaining com port) -> "please enter the baud rate" -> "115200".

Preview video will start working as it was supposed to be. A second window will open. That window needs to stay open.

zaferAt avatar Nov 27 '20 09:11 zaferAt

Similar issue here. Latest firmware (v0.6.2_41_g02d12688e), IDE v0.2.5. Using USB2.0 I can see the image stream up to QVGA-RGB, however only in a dark room, adding more light causes the stream to freeze / not receive any new frames. VGA doesn't work at all. With USB3.0 for some reason I'm only able to get QQVGA-GRAYSCALE, everything above that doesn't show up. With USB3.1 a COM port doesn't even appear and after a few seconds windows says that an unknown device has been detected. Device manager also shows that "the request to set the USB address failed".
To check that this problem is not on my side, I tried two different cables, and using the same cables, I'm able to use the same 3.0/3.1 ports with another board (m5stickC).
Also I don't really understand the workaround from previous comment, since I only have 1 com port available for 1 device.
In all cases I'm only able to get the video in the main window, not in the new terminal window.

remixer-dec avatar Mar 24 '21 20:03 remixer-dec

I have the same issue on my AMD Ryzen 2400G computer, I had read somewhere that there is an issue with the OpenMV IDE and AMD cpus but cannot find the page anymore.

By the way, where is the MaixPy IDE source code so I ca try to debug it?

romainreignier avatar Sep 07 '21 18:09 romainreignier

can't display preview video in IDE

i think there might be a simple fix for this. I was having same issue and noticed a small left pointing arrow on the right hand side of the maixpy ide screen. the video preview and colour breakdown is hidden in there. it seems to rehide this every time the program is minimised too!! way too much time wasted on this!!

niallofitz avatar Jan 03 '24 19:01 niallofitz