Questions tagged [readimage]

7 questions
2
votes
1 answer

Google Colab: TypeError: Image data of dtype object cannot be converted to float

I know there are similar questions and I have checked on that but it did not work. I try to open an image with cv2 in google colab using this code: path='/content/group.jpg' img = cv2.imread(path) plt.imshow(img) plt.show() But it was error. I…
mstd
  • 37
  • 1
  • 1
  • 6
1
vote
2 answers

No valid text recognizer: initialize the OCR engine before use, and make sure it has not been shut down Google vision

i am trying to implement Google vision text recognizer to read text on image with camera in my app. The text recognition works for some times and returns this error on every read text code executed. E/native: jni_helper.cc:760 No valid text…
Daniel Nyamasyo
  • 2,152
  • 1
  • 24
  • 23
0
votes
1 answer

Python pytesseract ModuleNotFoundError: Windows

I'm kind of new to python and still learning. I've just installed my first package via pip on windows. And went with pytesseract. Now I'm having a ModuleNotFoundError: No Module Named 'pytesseract'. I've tried alot of the suggestions I've been able…
0
votes
0 answers

How do I convert the "Verification code" image to text, OCR text doesn't work and the text gets refreshed automatically after every 10 secs

https://w1.leisurelink.lcsd.gov.hk/leisurelink/application/checkCode.do?flowId=1&lang=EN Ocr.setUp(); // one time setup Ocr ocr = new Ocr(); // create a new OCR engine ocr.startEngine("eng", Ocr.SPEED_FASTEST); // English String st =…
0
votes
1 answer

Convert ReadTensorFromImageFile to opencv format

I'm currently reading images using ReadTensorFromImageFile() function. But I want to read using OpenCV function. tensorflow image reading: Status read_tensor_status = ReadTensorFromImageFile(image_path, input_height, input_width, input_mean, …
W3 heap
  • 1
  • 3
0
votes
4 answers

How to read images using C

is there a way to read image pixels or any data considering the image using FILE fopen in C? I'm not interested in libraries. I tried to read the image data with fgetc but it prints out some numbers which don't make any sense. EDIT: I know it's…
0
votes
2 answers

Converting Images to Numpy arrays with correct dimension

I am trying to convert 100 images into a numpy array, which in turn will be fed into my neural network. My NN is training data was a 4D numpy array (No of Images, 32, 32, 3). When using below code to read images and feed into model.predict() i am…
Mrinal
  • 105
  • 7