Skip to content

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

Open

Description

@Rishithabattu11

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

Activity

  1. charann29 commented on Jun 20, 2024

    @charann29
    Owner

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

  2. Rishithabattu11 commented on Jun 20, 2024

    @Rishithabattu11
    Author

    should i join right now ?

  3. charann29 commented on Jun 20, 2024

    @charann29
    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.

  4. charann29 commented on Jun 20, 2024

    @charann29
    Owner

    should i join right now ?

    yes, if possible..

  5. Rishithabattu11 commented on Jun 20, 2024

    @Rishithabattu11
    Author

    yeah done !

  6. charann29 commented on Jun 21, 2024

    @charann29
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions