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

S-1 B-1 vehicle and speed detection using opencv and python #422

Open
Rishithabattu11 opened this issue Jun 20, 2024 · 6 comments
Open

S-1 B-1 vehicle and speed detection using opencv and python #422

Rishithabattu11 opened this issue Jun 20, 2024 · 6 comments

Comments

@Rishithabattu11
Copy link

Below is the issue we are facing with our project..

problem

Screenshot 2024-06-20 224423

attempts to resolve

we tried to resolve it with the help of a Youtube video ,followed the exact steps shown in the video!!
video link : https://youtu.be/eaEndTeUiSU?si=TL4IUHfyGIgWmfE0

-->installed CMake globally from https://cmake.org/download/ and ensured to add it to system path, which showed the correct version with cmake --version
-->attempted to install CMake within virtual environment using pip install cmake, and then it got installed
--> dlib requires a c++ compiler and so we installed "Build Tools for Visual Studio" and ensured to select "Desktop development with C++" workload.

Now through command prompt after my virtual environment is activated ,tried to to install dlib ,but it repeatedly showed the above error .

github repo which we reffered:
https://github.com/sathyaraj819/Vehicle-Detection-And-Speed-Tracking

@charann29
Copy link
Owner

let's chat for sometime here : https://meet.google.com/zex-cscd-bcc

@Rishithabattu11
Copy link
Author

should i join right now ?

@charann29
Copy link
Owner

Verify CMake Installation
Ensure CMake is correctly installed and accessible in both the global and virtual environment.

Open a command prompt and check the CMake version:

cmake --version

If it's not recognized, make sure the path to CMake is added to your system's PATH variable.

Install Visual Studio Build Tools
Ensure you have installed the "Desktop development with C++" workload.
Verify this by running the Visual Studio Installer and checking that the "Desktop development with C++" workload is installed.
Install dlib
Activate your virtual environment.
Ensure pip and setuptools are up to date:

pip install --upgrade pip setuptools
Attempt to install dlib using pip:

pip install dlib

If Errors Persist: Use a Precompiled Binary
Find the precompiled wheel file for dlib corresponding to your Python version and operating system from this unofficial repository.

Download the .whl file to your computer.
Navigate to the directory where you downloaded the wheel file and install it using pip:

**pip install dlib-<version>.whl**

Check for Errors in Build Tools
Sometimes, the issue can be related to the environment variables set for the compiler. Make sure MSBuild is in your system PATH. You can check this by running:

where msbuild
Additional Dependencies
Ensure you have the latest version of cmake and other dependencies like boost if required.

If you provide the specific error message you receive while attempting to install dlib, I can offer more targeted advice.

@charann29
Copy link
Owner

should i join right now ?

yes, if possible..

@Rishithabattu11
Copy link
Author

yeah done !

@charann29
Copy link
Owner

charann29 commented Jun 21, 2024

Try with this one last method

pip install ------ ( one of the wheel names for the current python version )

You can use last line in this website.

https://pypi.org/simple/dlib/

Video Reference if you guys need : https://youtu.be/ot6LWpZjTXo?si=EBeB9_M5nfFMBEci

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