nicknochnack / TFODCourse

944 stars 919 forks source link

Capture Image code outdated and not working on Colab #151

Open TheShortKing69 opened 9 months ago

TheShortKing69 commented 9 months ago

Hi there, I am facing a lot of issues on 4. Capture Images in Image Collection.ipynb.

CV2 doesn't seems working on Colab, I am using different device on different location, so Jupyter is not a good option for me.

CV2 problem: imread no longer work on Colab, imshow cannot take 2 positional argument.

Please help. Thank you.

sabbir2609 commented 9 months ago

Using cv2 in Colab is challenging. Because the notebook is running on Google's machine. It's better you done the image collection steps in your local machine then put the whole projects inside google drive, then train it on Colab.

ps: if you're on windows you can install Google drive in your pc and work inside a folder in it... it'll auto sync all your files.

TheShortKing69 commented 9 months ago

Thanks mate, I just found out that Colab cannot run local machine's webcam since it runs on Google's Cloud, so my best bet is run it on VE at Jupyter like what Nick did in the video. Thank you, mate.