ROI selection cv2.selectROI not working in Google Colab - opencv

I’m learning opencv for object detection and trying to do all the coding using google colab. And so far it has been working well: I can mount the gdrive and upload file and read the video file just fine.
The selecting ROI by passing video frame into cv2.selectROI() crashed the Colab. The runtime log complained about a plugin xcb not initialising. Further reading reveals the plug in require to be run on local machine, so I wonder if there is a way to run cv2.selectROI or equivalent on colab?

Related

QML Image not able to open local image files in iOS

I am trying to open the image files from iOS app local storage which were created using openCV. I have already tried to use file:/// also I used rootContextProperty. The app always says
QML QQuickImage: Cannot open: file://users/amitimac/Library/Developer/CoreSimulator/Devices/C62DB1E2-F6AD-4A94-9E08-0DBA4E45E718/data/Containers/Data/Application/1FB67106-7647-4739-A59B-3D61EDF29718/Documents/Documents/test.png
But, I can both read and write to the local storage of the iOS simulator in C++, but not in QML.
I am using QStandardPaths :: writableLocation(QStandardPath :: DocumentsLocation) for writing the image files and I have also tried the Pictures location.
Please help if you can.
Well, I solved this issue. The actual problem was with the JPG files. When I converted them to PNG, the whole thing started to work.

Incorporating WebGL into Dash Plotly

I'm reading the Dash documentation and can't seem to figure out if I can run WebGl (JavaScript API for rendering interactive 2D and 3D graphics within any compatible web browser without the use of plug-ins) inside the python platform. Html.script will not be executed but custom javascript placed in the "Assets" folder will be executed. I'm just not sure if this would be sufficient. I just want to add some pizazz the dashboard

OSError: SavedModel file dors not exist at: ./AstBert_bert

I was working on colab I saved my machine learning model and checked that it was well saved before closing the notebook I come back to open the notebook I can't find my model anymore I'm looking in my drive I still can't find it. Where can it be?

Use Folder From Desktop in Google Colab

I downloaded the Flicker8k_Dataset (a folder with lots of pictures). I am looking for a way to load that into Google Colab without using Google Drive (it would take 5 hours to upload to Google Drive). What would be the best way to do this?
You can use wget command to download the dataset into your google drive and use it from there. The other way to use colab on your local dataset would be to run the colab on a local machine.

Read text from image without using tesseract using python3

I have a task to read text from image(.png format). I researched that it is possibile using opencv module, tesseract_OCR application, pytesseract module.
As I am on a strict client environment I won't be able to install tesseract_OCR (.exe) application on the host.
I am searching for an approach if it can be done without installing this OCR application. Please suggest me the approach.
For example i have below image:
I want out put as a text:
img=IMG.Convert('RGBA')

Resources