Video File Won't Load in WSL2

Hi @gkomix,


I’m glad to hear you got the video file working.

The VM Ubuntu OS detected the webcam and shown /dev/Video0 and /dev/Video1. I tested with cheese webcam software and it can display the webcam view. However, when I try to add the webcam stream using brainframe-client, it failed. The following is the screenshot. Is the client can work with webcam connect thru VM?

That’s interesting! One thing about BrainFrame is that it checks available webcams on startup only (or rather, docker does…). Could you do the following to debug this issue?

  1. Stop BrainFrame via brainframe compose down
  2. plug in your webcams
  3. check with cheese that they are working
  4. Start BrainFrame via brainframe compose up
  5. Try adding the webcams again via the client

I added two video files (vehicles passing on the road) streams using brainframe-client and it can be loaded and play the videos. I tried to add capsules (CPU only) such as

  1. Tracker Vehicle Iou
  2. Classifier Vehicle Color Openvino
  3. Calculator Object Speed
    However, there are no detection and tracking shown. I also tried to add a line but nothing happened. Refer the picture below. Could you recommend the settings to make it work? Thanks.

This is an issue of capsule configuration. For more information read this post for more information.

To fix this issue, you need to load capsules that are capable of detecting vehicles. The Tracker Vehicle can only track vehicles, not detect them. The Classifier Vehicle Color can only classify the color of a vehicle, not detect vehicles.

Here’s a capsule configuration that will work: