You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am trying to run a cod about document classification and I got this error i try to install the library via Anaconda but doesn't exist.
import pandas as pd
import numpy as np
import tensorflow as tf
import string
import nltk
import pathlib
import os
import cv2
import matplotlib.pyplot as plt
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.metrics import TruePositives, FalsePositives, TrueNegatives, FalseNegatives, BinaryAccuracy, Precision, Recall, AUC
The text was updated successfully, but these errors were encountered:
Run the following command to create a new virtual environment (replace env_name with the desired name for your environment):
If the installation is successful, you should be able to import the cv2 module without any issues.
Install OpenCV using pip:
If the Anaconda approach doesn't work, you can try installing OpenCV using pip.
pip install opencv-python
This command will install OpenCV and its dependencies using pip.
Check the installation path:
If you have multiple Python installations or environments on your system, make sure that you are importing the cv2 module from the correct environment or installation path.
Try Reinstall OpenCV:
If the above steps don't work, you can try uninstalling and reinstalling OpenCV.
Expected behaviour
I'am trying to run a cod about document classification and I got this error i try to install the library via Anaconda but doesn't exist.
import pandas as pd
import numpy as np
import tensorflow as tf
import string
import nltk
import pathlib
import os
import cv2
import matplotlib.pyplot as plt
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.metrics import TruePositives, FalsePositives, TrueNegatives, FalseNegatives, BinaryAccuracy, Precision, Recall, AUC
The text was updated successfully, but these errors were encountered: