Category : artificial-intelligence

So I’m trying to create a license plate detection program and I have been following a guide for that, (https://github.com/nicknochnack/ANPRwithPython/blob/main/ANPR%20-%20Tutorial.ipynb) however I am currently running into a problem and I have found no working solution online yet. img = cv2.imread(‘image4.jpg’) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) bfilter = cv2.bilateralFilter(gray, 11, 17, 17) #Noise reduction edged = cv2.Canny(bfilter, ..

Read more

model = keras.models.Sequential() model.add(keras.layers.Flatten(input_shape=[28, 28])) model.add(keras.layers.Dense(300, activation = "relu")) model.add(keras.layers.Dense(100, activation = "relu")) model.add(keras.layers.Dense(10, activation = "softmax")) This is the code foe a multi class classifier. When I am running my model for the data initialized before I get the following error: ————————————————————————— AttributeError Traceback (most recent call last) <ipython-input-63-dcb0cfb9e75f> in <module> —-> 1 model ..

Read more

When I run the following code I get this from tensorflow import keras import numpy as np x = np.ones((1,2,1)) model = keras.models.Sequential() model.add(keras.layers.GRU( units = 1, activation=’tanh’, recurrent_activation=’sigmoid’, use_bias=True, kernel_initializer=’ones’, recurrent_initializer=’ones’,bias_initializer=’zeros’, return_sequences = True)) model.predict(x) I get the output => array([[[0.20482421], [0.34675306]]], dtype=float32) When I do this by hand I am getting 0.55 Assuming ..

Read more