holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 33 forks source link

Reading and displaying an image #306

Open 6zyman opened 1 year ago

6zyman commented 1 year ago

image

I'm trying to use opencv on carnets to continue my project, after my computer broke. Please i need your assist to start with, especially with reading images, videos

holzschu commented 1 year ago

iOS has a relatively protected file system. It's better to place the notebook and the image files in the same directory, and use relative file paths: cv2.imread("ReferenceFrame.png").

Here, I think Python tries to read the file located inside the subdirectory private/varmobile... inside the current directory. Since the subdirectory doesn't exist, the file access does not work and the image is empty.