MahmudulAlam / Automatic-Identification-and-Counting-of-Blood-Cells

Machine learning approach of automatic identification and counting of blood cells (RBC, WBC, and Platelet) with KNN and IOU based verification.

Home Page:https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/htl.2018.5098

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run the code in google colab

gzx666 opened this issue · comments

I have followed your step on https://github.com/MahmudulAlam/Automatic-Identification-and-Counting-of-Blood-Cells/wiki/A-Step-by-Step-Guide-of-How-to-Run-the-Code but when I do the step 3, runing code by command "python detect.py" on google colab, it report an error below.

image

@gzx666
Hi, I think cython is missing and you need to install cython==0.29.23

image
Help, it's still not working

@WidianaAR
Seems like you are using Python 3.7. I tested on Python 3.6 and it worked without any issue. Can you please change the python version and let me know?

oh it works, thank u

Great!

oh it works, thank u

@ WidianaAR
are you using a local runtime? if not what method was successful for modifying the hosted runtime to 3.6?
thanks!

oh it works, thank u

I've already tried that and I'm still getting the same error...is there anyway I could get a link to the project on colab so i can take a look at it and hopefully figure out where I'm going wrong..
thanks!

@7HAB
Can you please share your error message here?

@7HAB
Can you please share your error message here?
hi, i really appreciate you reaching out to help :)

Screen Shot 2021-11-25 at 9 23 21 PM

python version 3.6.9 python 0.29.23

@7HAB
I built the darkflow module for Linux. I should work now without any issue. Can you please clone the repo again and test it in colab and verify whether it is working or not? Please let me know.

If you are getting ": cannot connect to X server" in colab then comment line 103 cv2.imshow and use matplotlib for visualizing.

@7HAB
I built the darkflow module for Linux. I should work now without any issue. Can you please clone the repo again and test it in colab and verify whether it is working or not? Please let me know.

It works! thank you so much for your help 😊

can you please help me in this

`Traceback (most recent call last):
File "C:/Users/jagan/Downloads/Automatic-Identification-and-Counting-of-Blood-Cells-master/Automatic-Identification-and-Counting-of-Blood-Cells-master/test.py", line 26, in
output = tfnet.return_predict(image)
File "C:\Users\jagan\Downloads\Automatic-Identification-and-Counting-of-Blood-Cells-master\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\flow.py", line 83, in return_predict
'Image is not a np.ndarray'

AssertionError: Image is not a np.ndarray
`