Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How i can run this project on ubuntu. #30

Open
kuldeep203 opened this issue Nov 17, 2022 · 7 comments
Open

How i can run this project on ubuntu. #30

kuldeep203 opened this issue Nov 17, 2022 · 7 comments

Comments

@kuldeep203
Copy link

I am scanning the blood slide and want to stich together, so how i can stich all of them.

@Colin-Jing
Copy link
Collaborator

Download the required Python dependency package, change the data set in mian.py to your data set, and then you can run it.

@kuldeep203
Copy link
Author

after installing all packages i run the main .py but i got the following error.
ImportError: cannot import name 'myGpuFeatures' from 'myGpuFeatures' (unknown location)

@Colin-Jing
Copy link
Collaborator

You should unzip the myFeatures.rar file first

@kuldeep203
Copy link
Author

i unzip the myFeatures.rar and find the following packages.
/home/kuldeep/ImageStitch/myGpuFeatures/myGpuFeatures.pyd
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_aruco331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_bgsegm331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_bioinspired331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_ccalib331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_core331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudaarithm331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudacodec331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudafeatures2d331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudafilters331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudawarping331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_cudev331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_datasets331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_dpm331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_face331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_features2d331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_flann331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_fuzzy331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_hdf331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_highgui331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_img_hash331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_imgproc331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_line_descriptor331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_ml331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_objdetect331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_optflow331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_phase_unwrapping331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_plot331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_reg331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_rgbd331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_saliency331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_shape331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_stereo331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_structured_light331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_superres331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_surface_matching331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_text331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_video331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_videoio331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_xfeatures2d331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_xobjdetect331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/opencv_xphoto331.dll
/home/kuldeep/ImageStitch/myGpuFeatures/tbb.dll

but again getting the same error.

@Colin-Jing
Copy link
Collaborator

Comment out the fourth line of ImageUtility.py and try again

@kuldeep203
Copy link
Author

Traceback (most recent call last):
File "/home/kuldeep/ImageStitch/Main.py", line 54, in
stitchWithFeature()
File "/home/kuldeep/ImageStitch/Main.py", line 26, in stitchWithFeature
stitcher.imageSetStitchWithMutiple(projectAddress, outputAddress, 1, stitcher.calculateOffsetForFeatureSearchIncre,
File "/home/kuldeep/ImageStitch/Stitcher.py", line 172, in imageSetStitchWithMutiple
result = self.flowStitchWithMutiple(fileList, caculateOffsetMethod)
File "/home/kuldeep/ImageStitch/Stitcher.py", line 107, in flowStitchWithMutiple
(status, stitchResult) = self.flowStitch(fileList[startNum: totalNum], caculateOffsetMethod)
File "/home/kuldeep/ImageStitch/Stitcher.py", line 56, in flowStitch
self.printAndWrite("Stitching the directory which have " + str(fileList[0]))
IndexError: list index out of range

Process finished with exit code 1
Done the same thing as you suggest but again getting the error as shown above.

@Colin-Jing
Copy link
Collaborator

Please make sure that the location of the images folder is consistent with the location of the image organization in the demoImages folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants