Giter Site home page Giter Site logo

saimj7 / people-counting-in-real-time Goto Github PK

View Code? Open in Web Editor NEW
497.0 18.0 256.0 37.12 MB

People Counting in Real-Time with an IP camera.

License: MIT License

Python 100.00%
deep-learning centroid-tracking people-counter ip-camera threading opencv covid-19 ssd

people-counting-in-real-time's Introduction

Hi there ๐Ÿ‘‹ Sai here :)

image

  • Gamer, Content creator, Music freak
  • Loves The Earth, Cars, Coffee and Astronomy

- the ultimate dream is to explore the universe.. too much? Perhaps, Mars? Or should we instead work on living longer and make it a reality?

""The day science begins to study non-physical phenomena, it will make more progress in one decade than in all the previous centuries of its existence - Tesla""

๐Ÿป onto having a good time!


people-counting-in-real-time's People

Contributors

saimj7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

people-counting-in-real-time's Issues

hi

i test you code and it works but i need feature if you can do it
counting cars and sort them as sedan , trucks ,etc , also if traffic happened or not
if you interested contact e

real time tracking error

this is the error message that im getting..i dont know y

C:\Users\User\Desktop\People-Counting-in-Real-Time-master>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] Starting the live stream..
Traceback (most recent call last):
File "C:\Users\User\Desktop\People-Counting-in-Real-Time-master\run.py", line 353, in
run()
File "C:\Users\User\Desktop\People-Counting-in-Real-Time-master\run.py", line 100, in run
frame = imutils.resize(frame, width = 500)
File "C:\python\lib\site-packages\imutils\convenience.py", line 69, in resize
(h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'

Not Running

python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel

gives:
python: can't open file 'run.py': [Errno 2] No such file or directory

when replaced with Run.py can't access the libraries and gives:

Traceback (most recent call last):
File "Run.py", line 1, in
from mylib.centroidtracker import CentroidTracker
ImportError: No module named mylib.centroidtracker

AttributeError: module 'dlib' has no attribute 'correlation_tracker'

the video starts each time i try to run the code..but it stop as soon as the people in the video touches the line...please help

C:\Users\User\Desktop\test3>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
[INFO] Starting the video..
Traceback (most recent call last):
File "C:\Users\User\Desktop\test3\run.py", line 345, in
run()
File "C:\Users\User\Desktop\test3\run.py", line 159, in run
tracker = dlib.correlation_tracker()
AttributeError: module 'dlib' has no attribute 'correlation_tracker'
WhatsApp Image 2021-02-05 at 2 57 34 PM

C:\Users\User\Desktop\test3>

Total people inside value not accurate

As i can see in that example, when those first couples (2 people holding hands) are exiting, the "total people inside" value is not changing but the "exit" value is. Why is that?
Am i missing something?
EDIT: I reviewed the code and i saw the "total people inside" value is getting refreshed and is totally ok after someone is entering.
But why not just "inside = totalDown-totalUp"?
The var "inside" could get negativ, so we just need to implement following:
if totalup is equal to totaldown, just don't increment totalup.
Because obviously someone entered somewhere else, or the system didn't recognized the person.

Btw. if a person has been counted and returns back in the counter direction without leaving the picture, is he getting counted?

issue with caffemodel and function

Hello, when i execute i get this error
do you know how to fix it by any chance?
C:\Users\msi>python C:\Users\msi\Desktop\People-Counting-in-Real-Time-master\run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
Traceback (most recent call last):
File "C:\Users\msi\Desktop\People-Counting-in-Real-Time-master\run.py", line 353, in
run()
File "C:\Users\msi\Desktop\People-Counting-in-Real-Time-master\run.py", line 42, in run
net = cv2.dnn.readNetFromCaffe(args["prototxt"], args["model"])
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "mobilenet_ssd/MobileNetSSD_deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'

why showing this error?

usage: Run.py [-h] [-p PROTOTXT] -m MODEL [-i INPUT] [-o OUTPUT]
[-c CONFIDENCE] [-s SKIP_FRAMES]
Run.py: error: the following arguments are required: -m/--model

Threading not working on Raspberry Pi

Hello!
The system works, but I'd like to improve the performance, as when transitioning between states, there are a couple of seconds where the system freezes, most visible in "Detecting", where basically all frames are lost and unless the person moves really slowly, the system just doesn't register the person. And most times, it does not.

By activating threading, with an IP camera:
using the IP, it gets stuck at :

python Run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] Starting the live stream..

Using the ip with video at the end, this more verbose happens:

python Run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] Starting the live stream..
[ERROR:[email protected]] global /tmp/pip-wheel-efxaz4j7/opencv-python_bedc0fac27944da0921e079da44d32bf/opencv/modules/videoio/src/cap.cpp (164) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) /tmp/pip-wheel-efxaz4j7/opencv-python_bedc0fac27944da0921e079da44d32bf/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.95:4747/video in function 'icvExtractPattern'

And using the camera module:

python Run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] Starting the live stream..
[ WARN:[email protected]] global /tmp/pip-wheel-efxaz4j7/opencv-python_bedc0fac27944da0921e079da44d32bf/opencv/modules/videoio/src/cap_v4l.cpp (889) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

Again, everything works if threading is set at False, but performance with a Raspberry Pi is poor. I tried to add cv2.waitKey(250) at line 89 so that there would be less frames captured, but I am not sure this could be a good approach, as faster moving people could be missed.

Is there a better way to control the number of frames the camera captures?

Thanks.

Real-time database entry

hello , i've tried making connection with MySql database ...and everything seems fine ...mysql seems to fetch the data (people_in , people_out, end_time, people_inside) ... but the only problem is ...the data is transfered once the video is terminated (when pressed q) .. is there any way to make the data entry real-time...each time people x(people_inside) is changed ..it is transfered to Db without me having to close the video. It will be really helpful if u could provide ur help

This is the alteration that i have done for Db connection and data entry.

from mylib.centroidtracker import CentroidTracker
from mylib.trackableobject import TrackableObject
from imutils.video import VideoStream
from imutils.video import FPS
from mylib.mailer import Mailer
from mylib import config, thread
import time
import schedule
import csv
import numpy as np
import argparse
import imutils
import time
import dlib
import cv2
import datetime
from itertools import zip_longest
import mysql.connector

t0 = time.time()

conn = mysql.connector.connect(
host="localhost",
user="admin",
password="abcd1234",
database="crowd"
)

mycursor = conn.cursor()

def run():
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
# ap.add_argument("-p", "--prototxt", required=False,
# help="path to Caffe 'deploy' prototxt file")
# ap.add_argument("-m", "--model", required=True,
# help="path to Caffe pre-trained model")
ap.add_argument("-i", "--input", type=str,
help="path to optional input video file")
ap.add_argument("-o", "--output", type=str,
help="path to optional output video file")
# confidence default 0.4
ap.add_argument("-c", "--confidence", type=float, default=0.4,
help="minimum probability to filter weak detections")
ap.add_argument("-s", "--skip-frames", type=int, default=30,
help="# of skip frames between detections")
args = vars(ap.parse_args())

# initialize the list of class labels MobileNet SSD was trained to
# detect
CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat",
           "bottle", "bus", "car", "cat", "chair", "cow", "diningtable",
           "dog", "horse", "motorbike", "person", "pottedplant", "sheep",
           "sofa", "train", "tvmonitor"]

# load our serialized model from disk
net = cv2.dnn.readNetFromCaffe(
    'mobilenet_ssd/MobileNetSSD_deploy.prototxt', 'mobilenet_ssd/MobileNetSSD_deploy.caffemodel')

# if a video path was not supplied, grab a reference to the ip camera
if not args.get("input", False):
    print("[INFO] Starting the live stream..")
    vs = VideoStream(config.url).start()
    time.sleep(2.0)

# otherwise, grab a reference to the video file
else:
    print("[INFO] Starting the video..")
    vs = cv2.VideoCapture(args["input"])

# initialize the video writer (we'll instantiate later if need be)
writer = None

# initialize the frame dimensions (we'll set them as soon as we read
# the first frame from the video)
W = None
H = None

# instantiate our centroid tracker, then initialize a list to store
# each of our dlib correlation trackers, followed by a dictionary to
# map each unique object ID to a TrackableObject
ct = CentroidTracker(maxDisappeared=40, maxDistance=50)
trackers = []
trackableObjects = {}

# initialize the total number of frames processed thus far, along
# with the total number of objects that have moved either up or down
totalFrames = 0
totalDown = 0
totalUp = 0
x = []
empty = []
empty1 = []

# start the frames per second throughput estimator
fps = FPS().start()

if config.Thread:
    vs = thread.ThreadingClass(config.url)

# loop over frames from the video stream
while True:
    # grab the next frame and handle if we are reading from either
    # VideoCapture or VideoStream
    frame = vs.read()
    frame = frame[1] if args.get("input", False) else frame

    # if we are viewing a video and we did not grab a frame then we
    # have reached the end of the video
    if args["input"] is not None and frame is None:
        break

    # resize the frame to have a maximum width of 500 pixels (the
    # less data we have, the faster we can process it), then convert
    # the frame from BGR to RGB for dlib
    frame = imutils.resize(frame, width=500)
    rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

    # if the frame dimensions are empty, set them
    if W is None or H is None:
        (H, W) = frame.shape[:2]

    # if we are supposed to be writing a video to disk, initialize
    # the writer
    if args["output"] is not None and writer is None:
        fourcc = cv2.VideoWriter_fourcc(*"mp4v")
        writer = cv2.VideoWriter(args["output"], fourcc, 30,
                                 (W, H), True)

    # initialize the current status along with our list of bounding
    # box rectangles returned by either (1) our object detector or
    # (2) the correlation trackers
    status = "Waiting"
    rects = []

    # check to see if we should run a more computationally expensive
    # object detection method to aid our tracker
    if totalFrames % args["skip_frames"] == 0:
        # set the status and initialize our new set of object trackers
        status = "Detecting"
        trackers = []

        # convert the frame to a blob and pass the blob through the
        # network and obtain the detections
        blob = cv2.dnn.blobFromImage(frame, 0.007843, (W, H), 127.5)
        net.setInput(blob)
        detections = net.forward()

        # loop over the detections
        for i in np.arange(0, detections.shape[2]):
            # extract the confidence (i.e., probability) associated
            # with the prediction
            confidence = detections[0, 0, i, 2]

            # filter out weak detections by requiring a minimum
            # confidence
            if confidence > args["confidence"]:
                # extract the index of the class label from the
                # detections list
                idx = int(detections[0, 0, i, 1])

                # if the class label is not a person, ignore it
                if CLASSES[idx] != "person":
                    continue

                # compute the (x, y)-coordinates of the bounding box
                # for the object
                box = detections[0, 0, i, 3:7] * np.array([W, H, W, H])
                (startX, startY, endX, endY) = box.astype("int")

                # construct a dlib rectangle object from the bounding
                # box coordinates and then start the dlib correlation
                # tracker
                tracker = dlib.correlation_tracker()
                rect = dlib.rectangle(startX, startY, endX, endY)
                tracker.start_track(rgb, rect)

                # add the tracker to our list of trackers so we can
                # utilize it during skip frames
                trackers.append(tracker)

    # otherwise, we should utilize our object *trackers* rather than
    # object *detectors* to obtain a higher frame processing throughput
    else:
        # loop over the trackers
        for tracker in trackers:
            # set the status of our system to be 'tracking' rather
            # than 'waiting' or 'detecting'
            status = "Tracking"

            # update the tracker and grab the updated position
            tracker.update(rgb)
            pos = tracker.get_position()

            # unpack the position object
            startX = int(pos.left())
            startY = int(pos.top())
            endX = int(pos.right())
            endY = int(pos.bottom())

            # add the bounding box coordinates to the rectangles list
            rects.append((startX, startY, endX, endY))

    # draw a horizontal line in the center of the frame -- once an
    # object crosses this line we will determine whether they were
    # moving 'up' or 'down'
    cv2.line(frame, (0, H // 2), (W, H // 2), (0, 0, 0), 3)
    cv2.putText(frame, "-Prediction border - Entrance-", (10, H - ((i * 20) + 200)),
                cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 0), 1)

    # use the centroid tracker to associate the (1) old object
    # centroids with (2) the newly computed object centroids
    objects = ct.update(rects)

    # loop over the tracked objects
    for (objectID, centroid) in objects.items():
        # check to see if a trackable object exists for the current
        # object ID
        to = trackableObjects.get(objectID, None)

        # if there is no existing trackable object, create one
        if to is None:
            to = TrackableObject(objectID, centroid)

        # otherwise, there is a trackable object so we can utilize it
        # to determine direction
        else:
            # the difference between the y-coordinate of the *current*
            # centroid and the mean of *previous* centroids will tell
            # us in which direction the object is moving (negative for
            # 'up' and positive for 'down')
            y = [c[1] for c in to.centroids]
            direction = centroid[1] - np.mean(y)
            to.centroids.append(centroid)

            # check to see if the object has been counted or not
            if not to.counted:
                # if the direction is negative (indicating the object
                # is moving up) AND the centroid is above the center
                # line, count the object
                if direction < 0 and centroid[1] < H // 2:
                    totalUp += 1
                    empty.append(totalUp)
                    to.counted = True

                # if the direction is positive (indicating the object
                # is moving down) AND the centroid is below the
                # center line, count the object
                elif direction > 0 and centroid[1] > H // 2:
                    totalDown += 1
                    empty1.append(totalDown)
                    # print(empty1[-1])
                    # if the people limit exceeds over threshold, send an email alert
                    if sum(x) >= config.Threshold:
                        cv2.putText(frame, "-ALERT: People limit exceeded-", (10, frame.shape[0] - 80),
                                    cv2.FONT_HERSHEY_COMPLEX, 0.5, (0, 0, 255), 2)
                        if config.ALERT:
                            print("[INFO] Sending email alert..")
                            Mailer().send(config.MAIL)
                            print("[INFO] Alert sent")

                    to.counted = True

                x = []
                # compute the sum of total people inside
                x.append(len(empty1)-len(empty))
                # print("Total people inside:", x)

        # store the trackable object in our dictionary
        trackableObjects[objectID] = to

        # draw both the ID of the object and the centroid of the
        # object on the output frame
        text = "ID {}".format(objectID)
        cv2.putText(frame, text, (centroid[0] - 10, centroid[1] - 10),
                    cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 255, 255), 2)
        cv2.circle(
            frame, (centroid[0], centroid[1]), 4, (255, 255, 255), -1)

    # construct a tuple of information we will be displaying on the
    info = [
        ("Exit", totalUp),
        ("Enter", totalDown),
        ("Status", status),
		
    ]

    info2 = [
        ("Total people inside", x),
    ]

    # Display the output
    for (i, (k, v)) in enumerate(info):
        text = "{}: {}".format(k, v)
        cv2.putText(frame, text, (10, H - ((i * 20) + 20)),
                    cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 0, 0), 2)

    for (i, (k, v)) in enumerate(info2):
        text = "{}: {}".format(k, v)
        cv2.putText(frame, text, (265, H - ((i * 20) + 60)),
                    cv2.FONT_HERSHEY_SIMPLEX, 0.6, (255, 255, 255), 2)

    # Initiate a simple log to save data at end of the day
    if config.Log:
        datetimee = [datetime.datetime.now()]
        d = [datetimee, empty1, empty, x]
        export_data = zip_longest(*d, fillvalue='')

        with open('Log.csv', 'w', newline='') as myfile:
            wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
            wr.writerow(("End Time", "In", "Out", "Total Inside"))
            wr.writerows(export_data)

    # check to see if we should write the frame to disk
    if writer is not None:
        writer.write(frame)

    # show the output frame
    cv2.imshow("Real-Time Monitoring/Analysis Window", frame)
    key = cv2.waitKey(1) & 0xFF

    # if the `q` key was pressed, break from the loop
    if key == ord("q"):
        break

    # increment the total number of frames processed thus far and
    # then update the FPS counter
    totalFrames += 1
    fps.update()

    if config.Timer:
        # Automatic timer to stop the live stream. Set to 8 hours (28800s).
        t1 = time.time()
        num_seconds = (t1-t0)
        if num_seconds > 28800:
            break

# stop the timer and display FPS information
fps.stop()
print("[INFO] elapsed time: {:.2f}".format(fps.elapsed()))
print("[INFO] approx. FPS: {:.2f}".format(fps.fps()))

x=(totalDown-totalUp)
insert_data(datetime.datetime.now().strftime(
    "%Y-%m-%d %H:%M:%S"), totalUp, totalDown, x )


# # if we are not using a video file, stop the camera video stream
# if not args.get("input", False):
# 	vs.stop()
#
# # otherwise, release the video file pointer
# else:
# 	vs.release()

# issue 15
if config.Thread:
    vs.release()

# close any open windows
cv2.destroyAllWindows()

def insert_data(end_time, people_out, people_in, people_inside):

sql = "INSERT INTO people (`end_time`, `people_out`, `people_in`,`people_inside`) VALUES (%s,%s,%s,%s)"
val = (end_time, people_out, people_in, people_inside )
mycursor.execute(sql, val)
conn.commit()
print(conn)

learn more about different schedules here: https://pypi.org/project/schedule/

if config.Scheduler:
# Runs for every 1 second
# schedule.every(1).seconds.do(run)
# Runs at every day (9:00 am). You can change it.
schedule.every().day.at("23:01").do(run)

while 1:
    schedule.run_pending()

else:
run()

Multi Threading

Hello!
First I want to thank you for this awesome program, however, I am having issues with setting thread to True in config.py

If I set to True. The program will not run. False runs "fine" it struggles to pick up people in real time, hence the need to set to True.

My Setup:
Raspberry Pi4B (Overclocked to 2Ghz)
Camera (Pi Camera plugged into the camera slot)

Command I am running.

> python3 run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
> [INFO] Starting the live stream..
> ^CTraceback (most recent call last):
>   File "run.py", line 353, in <module>
>     run()
>   File "run.py", line 89, in run
>     frame = vs.read()
>   File "/home/pi/Desktop/PPL Count/mylib/thread.py", line 28, in read
>     return self.q.get() # fetch frames from the queue one by one
>   File "/usr/lib/python3.7/queue.py", line 170, in get
>     self.not_empty.wait()
>   File "/usr/lib/python3.7/threading.py", line 296, in wait
>     waiter.acquire()
> KeyboardInterrupt

My config.py

> #===============================================================================
""" Optional features config. """
#===============================================================================
# Enter mail below to receive real-time email alerts
# e.g., '[email protected]'
MAIL = ''
# Enter the ip camera url (e.g., url = 'http://191.138.0.100:8040/video')
url = '0'

# ON/OFF for mail feature. Enter True to turn on the email alert feature.
ALERT = False
# Set max. people inside limit. Optimise number below: 10, 50, 100, etc.
Threshold = 30
# Threading ON/OFF
Thread = True
# Simple log to log the counting data
Log = False
# Auto run/Schedule the software to run at your desired time
Scheduler = False
# Auto stop the software after certain a time/hours
Timer = False
#===============================================================================
#===============================================================================

Error while installing dlib

Hey, I got this issue while installing dlib.

Kindly, have a look and let me what to do now!

Thanks in advance.

Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\BHEEMI1\AppData\Local\Temp\pip-wheel-f2i2aeom' --python-tag cp37
cwd: C:\Users\BHEEMI
1\AppData\Local\Temp\pip-install-qo355fxk\dlib
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 192, in run
self.run_command('build')
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\BHEEMI
1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:


CMake must be installed to build the following extensions: dlib



ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, opencv-python, scipy
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\BHEEMI1\AppData\Local\Temp\pip-record-zwr430fz\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\BHEEMI
1\AppData\Local\Temp\pip-install-qo355fxk\dlib
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\BHEEMIREDDY VAMSI\Anaconda3\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 129, in run
    cmake_version = self.get_cmake_version()
  File "C:\Users\BHEEMI~1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py", line 125, in get_cmake_version
    "\n*******************************************************************\n")
RuntimeError:
*******************************************************************
 CMake must be installed to build the following extensions: dlib
*******************************************************************

----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\BHEEMIREDDY VAMSI\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"'; file='"'"'C:\Users\BHEEMI1\AppData\Local\Temp\pip-install-qo355fxk\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\BHEEMI~1\AppData\Local\Temp\pip-record-zwr430fz\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

want to blink led on arduino

hello sir, i want to glow led on arduino board with pyserial when threshold value reaches. can u please help me with it?

Error message while installing dlib in windows 10

Hi Team,

While install dlib (pip install dlib), I am getting below error message in Windows 10 OS. Please have a look and help me .

Thanks in advance

Collecting dlib
Using cached dlib-19.21.1.tar.gz (3.6 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py): started
Building wheel for dlib (setup.py): still running...
Building wheel for dlib (setup.py): still running...
Building wheel for dlib (setup.py): still running...
Building wheel for dlib (setup.py): finished with status 'error'
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: still running...
Running setup.py install for dlib: still running...
Running setup.py install for dlib: still running...
Running setup.py install for dlib: finished with status 'error'

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated and has no effect anymore. pip 21.1 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at pypa/pip#8333.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"'; file='"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-wheel-wfdlv7a3'
cwd: C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3
Complete output (290 lines):
running bdist_wheel
running build
running build_py
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Building extension for Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\lib.win-amd64-3.8 -A x64'
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29335.0
-- The CXX compiler identification is MSVC 19.28.29335.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/ramachandra.govindav/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.6")
-- Found PythonLibs: C:/Users/ramachandra.govindav/AppData/Local/Programs/Python/Python38/libs/Python38.lib
-- pybind11 v2.2.4
-- Using CMake version: 3.18.2
-- Compiling dlib version: 19.21.1
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Enabling SSE2 instructions
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.
-- DID NOT FIND CUDA
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/build/temp.win-amd64-3.8/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Checking Build System
Building Custom Rule C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/dlib/CMakeLists.txt
base64_kernel_1.cpp
bigint_kernel_1.cpp
bigint_kernel_2.cpp
bit_stream_kernel_1.cpp
entropy_decoder_kernel_1.cpp
entropy_decoder_kernel_2.cpp
entropy_encoder_kernel_1.cpp
entropy_encoder_kernel_2.cpp
md5_kernel_1.cpp
tokenizer_kernel_1.cpp
unicode.cpp

C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.h(512,18): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.h(537,18): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.h(524,17): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.h(549,17): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
test_for_odr_violations.cpp
sockets_kernel_1.cpp
bsp.cpp
dir_nav_kernel_1.cpp
dir_nav_kernel_2.cpp
dir_nav_extensions.cpp
linker_kernel_1.cpp
extra_logger_headers.cpp
logger_kernel_1.cpp
logger_config_file.cpp
misc_api_kernel_1.cpp
misc_api_kernel_2.cpp
sockets_extensions.cpp
sockets_kernel_2.cpp
sockstreambuf.cpp
sockstreambuf_unbuffered.cpp
server_kernel.cpp
server_iostream.cpp
server_http.cpp
multithreaded_object_extension.cpp
threaded_object_extension.cpp
threads_kernel_1.cpp
threads_kernel_2.cpp
threads_kernel_shared.cpp
thread_pool_extension.cpp
async.cpp
timer.cpp
stack_trace.cpp
cpu_dlib.cpp
tensor_tools.cpp
image_dataset_metadata.cpp
mnist.cpp
cifar.cpp
global_function_search.cpp
kalman_filter.cpp
auto.cpp
fonts.cpp
widgets.cpp
drawable.cpp
canvas_drawing.cpp
style.cpp
base_widgets.cpp
gui_core_kernel_1.cpp
gui_core_kernel_2.cpp
png_loader.cpp
save_png.cpp
jpeg_loader.cpp
save_jpeg.cpp
arm_init.c
filter_neon_intrinsics.c
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
jaricom.c
jcapimin.c
jcapistd.c
jcarith.c
jccoefct.c
jccolor.c
jcdctmgr.c
jchuff.c
jcinit.c
jcmainct.c
jcmarker.c
jcmaster.c
jcomapi.c
jcparam.c
jcprepct.c
jcsample.c
jdapimin.c
jdapistd.c
jdarith.c
jdatadst.c
jdatasrc.c
jdcoefct.c
jdcolor.c
jddctmgr.c
jdhuff.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jdatadst.c(185,60): warning C4267: '=': conversion from 'size_t' to 'unsigned long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jdinput.c
jdmainct.c
jdmarker.c
jdmaster.c
jdmerge.c
jdpostct.c
jdsample.c
jerror.c
jfdctflt.c
jfdctfst.c
jfdctint.c
jidctflt.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jerror.c(193,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jerror.c(195,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jidctfst.c
jidctint.c
jmemmgr.c
jmemnobs.c
jquant1.c
jquant2.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(307,53): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
jutils.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(367,70): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(977,46): warning C4267: '-=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(991,46): warning C4267: '-=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(1107,19): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(1110,11): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
dlib.vcxproj -> C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\Release\dlib19.21.1_release_64bit_msvc1928.lib
Building Custom Rule C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/tools/python/CMakeLists.txt
dlib.cpp
matrix.cpp
vector.cpp
svm_c_trainer.cpp
svm_rank_trainer.cpp
decision_functions.cpp
other.cpp
basic.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\other.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_c_trainer.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_rank_trainer.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\vector.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\dlib.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\basic.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\matrix.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
cca.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\decision_functions.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
sequence_segmenter.cpp
svm_struct.cpp
image.cpp
image2.cpp
image3.cpp
image4.cpp
rectangles.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\cca.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_struct.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\sequence_segmenter.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
object_detection.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image3.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image4.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
shape_predictor.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\rectangles.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
correlation_tracker.cpp
face_recognition.cpp
cnn_face_detector.cpp
global_optimization.cpp
image_dataset_metadata.cpp
numpy_returns.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\object_detection.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\shape_predictor.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\face_recognition.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\correlation_tracker.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\cnn_face_detector.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image_dataset_metadata.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\numpy_returns.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
line.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\global_optimization.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
gui.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\line.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\gui.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release_dlib_pybind11.vcxproj]
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 223, in
setup(
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools_init
.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\site-packages\wheel\bdist_wheel.py", line 290, in run
self.run_command('build')
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 135, in run
self.build_extension(ext)
File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 175, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.

ERROR: Failed building wheel for dlib
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"'; file='"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-record-kmbybswc\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\Include\dlib'
cwd: C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3
Complete output (292 lines):
running install
running build
running build_py
package init file 'tools\python\dlib_init_.py' not found (or not a regular file)
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
Building extension for Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\lib.win-amd64-3.8 -A x64'
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29335.0
-- The CXX compiler identification is MSVC 19.28.29335.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/ramachandra.govindav/AppData/Local/Programs/Python/Python38/python.exe (found version "3.8.6")
-- Found PythonLibs: C:/Users/ramachandra.govindav/AppData/Local/Programs/Python/Python38/libs/Python38.lib
-- pybind11 v2.2.4
-- Using CMake version: 3.18.2
-- Compiling dlib version: 19.21.1
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Enabling SSE2 instructions
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.
-- DID NOT FIND CUDA
-- Disabling CUDA support for dlib.  DLIB WILL NOT USE CUDA
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/build/temp.win-amd64-3.8/Release
Invoking CMake build: 'cmake --build . --config Release -- /m'
Microsoft (R) Build Engine version 16.8.2+25e4d540b for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/dlib/CMakeLists.txt
  base64_kernel_1.cpp
  bigint_kernel_1.cpp
  bigint_kernel_2.cpp
  bit_stream_kernel_1.cpp
  entropy_decoder_kernel_1.cpp
  entropy_decoder_kernel_2.cpp
  entropy_encoder_kernel_1.cpp
  entropy_encoder_kernel_2.cpp
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.h(512,18): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.h(524,17): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_1.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  md5_kernel_1.cpp
  tokenizer_kernel_1.cpp
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.h(537,18): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.h(549,17): warning C4834: discarding return value of function with 'nodiscard' attribute (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\bigint\bigint_kernel_2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  unicode.cpp
  test_for_odr_violations.cpp
  sockets_kernel_1.cpp
  bsp.cpp
  dir_nav_kernel_1.cpp
  dir_nav_kernel_2.cpp
  dir_nav_extensions.cpp
  linker_kernel_1.cpp
  extra_logger_headers.cpp
  logger_kernel_1.cpp
  logger_config_file.cpp
  misc_api_kernel_1.cpp
  misc_api_kernel_2.cpp
  sockets_extensions.cpp
  sockets_kernel_2.cpp
  sockstreambuf.cpp
  sockstreambuf_unbuffered.cpp
  server_kernel.cpp
  server_iostream.cpp
  server_http.cpp
  multithreaded_object_extension.cpp
  threaded_object_extension.cpp
  threads_kernel_1.cpp
  threads_kernel_2.cpp
  threads_kernel_shared.cpp
  thread_pool_extension.cpp
  async.cpp
  timer.cpp
  stack_trace.cpp
  cpu_dlib.cpp
  tensor_tools.cpp
  image_dataset_metadata.cpp
  mnist.cpp
  cifar.cpp
  global_function_search.cpp
  kalman_filter.cpp
  auto.cpp
  fonts.cpp
  widgets.cpp
  drawable.cpp
  canvas_drawing.cpp
  style.cpp
  base_widgets.cpp
  gui_core_kernel_1.cpp
  gui_core_kernel_2.cpp
  png_loader.cpp
  save_png.cpp
  jpeg_loader.cpp
  save_jpeg.cpp
  arm_init.c
  filter_neon_intrinsics.c
  png.c
  pngerror.c
  pngget.c
  pngmem.c
  pngpread.c
  pngread.c
  pngrio.c
  pngrtran.c
  pngrutil.c
  pngset.c
  pngtrans.c
  pngwio.c
  pngwrite.c
  pngwtran.c
  pngwutil.c
  adler32.c
  compress.c
  crc32.c
  deflate.c
  gzclose.c
  gzlib.c
  gzread.c
  gzwrite.c
  infback.c
  inffast.c
  inflate.c
  inftrees.c
  trees.c
  uncompr.c
  zutil.c
  jaricom.c
  jcapimin.c
  jcapistd.c
  jcarith.c
  jccoefct.c
  jccolor.c
  jcdctmgr.c
  jchuff.c
  jcinit.c
  jcmainct.c
  jcmarker.c
  jcmaster.c
  jcomapi.c
  jcparam.c
  jcprepct.c
  jcsample.c
  jdapimin.c
  jdapistd.c
  jdarith.c
  jdatadst.c
  jdatasrc.c
  jdcoefct.c
  jdcolor.c
  jddctmgr.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jdatadst.c(185,60): warning C4267: '=': conversion from 'size_t' to 'unsigned long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  jdhuff.c
  jdinput.c
  jdmainct.c
  jdmarker.c
  jdmaster.c
  jdmerge.c
  jdpostct.c
  jdsample.c
  jerror.c
  jfdctflt.c
  jfdctfst.c
  jfdctint.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jerror.c(193,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jerror.c(195,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  jidctflt.c
  jidctfst.c
  jidctint.c
  jmemmgr.c
  jmemnobs.c
  jquant1.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(307,53): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(367,70): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(977,46): warning C4267: '-=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  jquant2.c
  jutils.c
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(991,46): warning C4267: '-=': conversion from 'size_t' to 'long', possible loss of data [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(1107,19): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\dlib\external\libjpeg\jmemmgr.c(1110,11): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\dlib.vcxproj]
  dlib.vcxproj -> C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\dlib_build\Release\dlib19.21.1_release_64bit_msvc1928.lib
  Building Custom Rule C:/Users/ramachandra.govindav/AppData/Local/Temp/pip-install-kj9dkvek/dlib_75d9e1d1c8ec4781b4488cc2586241c3/tools/python/CMakeLists.txt
  dlib.cpp
  matrix.cpp
  vector.cpp
  svm_c_trainer.cpp
  svm_rank_trainer.cpp
  decision_functions.cpp
  other.cpp
  basic.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\other.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\matrix.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\decision_functions.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_rank_trainer.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\dlib.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\vector.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_c_trainer.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\basic.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  cca.cpp
  sequence_segmenter.cpp
  svm_struct.cpp
  image.cpp
  image2.cpp
  image3.cpp
  image4.cpp
  rectangles.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\sequence_segmenter.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\svm_struct.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\cca.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image3.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  object_detection.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image2.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  shape_predictor.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image4.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\rectangles.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  correlation_tracker.cpp
  face_recognition.cpp
  cnn_face_detector.cpp
  global_optimization.cpp
  image_dataset_metadata.cpp
  numpy_returns.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\object_detection.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\shape_predictor.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\correlation_tracker.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\face_recognition.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\cnn_face_detector.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\global_optimization.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  line.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\image_dataset_metadata.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\numpy_returns.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
  gui.cpp
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\line.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
C:\ProgramData\Anaconda3\Library\include\gif_lib.h(286,61): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\tools\python\src\gui.cpp) [C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\build\temp.win-amd64-3.8\Release\_dlib_pybind11.vcxproj]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 223, in <module>
    setup(
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 165, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 135, in run
    self.build_extension(ext)
  File "C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py", line 175, in build_extension
    subprocess.check_call(cmake_build, cwd=build_folder)
  File "C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"'; file='"'"'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-install-kj9dkvek\dlib_75d9e1d1c8ec4781b4488cc2586241c3\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ramachandra.govindav\AppData\Local\Temp\pip-record-kmbybswc\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ramachandra.govindav\AppData\Local\Programs\Python\Python38\Include\dlib' Check the logs for full command output.

Threading is not working

I tried to turn on the threading and this is showing me this error.

(py36) C:\Users\Adarsh Narayanan\People-Counting-in-Real-Time>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example-01.mp4
[INFO] Starting the video..
[ERROR:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-nxx381if\opencv\modules\videoio\src\cap.cpp (142) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-nxx381if\opencv\modules\videoio\src\cap_images.cpp:293: error: (-215:Assertion failed) !_filename.empty() in function 'cv::CvCapture_Images::open'

Anybody know how to solve this error ?

Error importing Scipy module

I've installed Python modules according to the README instructions, but when I run the Run.py script getting the following error:

ubuntu@jetson:~/People-Counting-in-Real-Time$ python Run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
Traceback (most recent call last):
  File "Run.py", line 1, in <module>
    from mylib.centroidtracker import CentroidTracker
  File "/home/ubuntu/People-Counting-in-Real-Time/mylib/centroidtracker.py", line 2, in <module>
    from scipy.spatial import distance as dist
ImportError: No module named scipy.spatial

How to make database

is there any way of making a database of people inside the building. Any suggestions would be helpful. thnx

.py to .exe issue

Hi i'm trying convert this porject to executable. Pyinstaller doesn't support the -prototxt and -model input arguments while runtime line. Can i add this lines to config file or inside of the script?

Issue in real time ip camera tracking

Hi, I am getting this error when I run the ip camera command, I hope you reply quickly

Edit: now i am getting this error :
[INFO] Starting the live stream..
[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.7:4747/video in function 'cv::icvExtractPattern'

[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.7:4747/video in function 'cv::icvExtractPattern'

error

I am trying to done below code in google colab and getting the error.. can you please help
!python Run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4

[INFO] Starting the video..
: cannot connect to X server

Error when set Thread = True in config

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy
VIDEOIO ERROR: V4L: can't open camera by index 0

When I'm not using Thread/Thread=False, everything goes smoothly.
Run with raspberry pi 4 with Logitech 920 webcam

OpenCV error

image

cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1126: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "mobilenet_ssd/MobileNetSSD_deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'

I don't have any files on this location " D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp" ,Infact there is there nothing in D:
do I need install any thing or Am I missing something,
I have all the requirements satisfied.

hello

i have this error in runtame
PS C:\Users\usr> python C:\Users\usr\OneDrive\Bureau\People-Counting-in-Real-Time-master/run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
Traceback (most recent call last):
File "C:\Users\usr\OneDrive\Bureau\People-Counting-in-Real-Time-master\run.py", line 349, in
run()
File "C:\Users\usrs\OneDrive\Bureau\People-Counting-in-Real-Time-master\run.py", line 42, in run
net = cv2.dnn.readNetFromCaffe(args["prototxt"], args["model"])
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\dnn\src\caffe\caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "mobilenet_ssd/MobileNetSSD_deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'

Reducing the frame Size of the camera feed.

Hi Saimj7,

Superb Work!!. Really appreciable.

One help I require on how to reduce the camera frame size? Like I am getting the live feed from the camera but in my actual deployment I don't want the entire feed to be involved in people counting. I would like to trim out the four edges of the live feed square.

Will really appreciate your help.

Thanks.

Error while testing on Windows 10

When I run the code
python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4
It starts the video, but as soon the person gets to the line, everything crashes with error:

[INFO] Starting the video..
Traceback (most recent call last):
File "run.py", line 345, in
run()
File "run.py", line 160, in run
rect = dlib.rectangle(startX, startY, endX, endY)
Boost.Python.ArgumentError: Python argument types in
rectangle.init(rectangle, numpy.int32, numpy.int32, numpy.int32, numpy.int32)
did not match C++ signature:
init(struct _object * __ptr64, long left, long top, long right, long bottom)
init(struct _object * __ptr64)

sending email alert

i have entered my email id in config.py
i am getting following error. thank you in advance

[INFO] Starting the live stream..
[INFO] Sending email alert..
Traceback (most recent call last):
File "run.py", line 353, in
run()
File "run.py", line 244, in run
Mailer().send(config.MAIL)
File "C:\Users\onkar\OneDrive\Desktop\be project\People-Counting-in-Real-Time\mylib\mailer.py", line 23, in send
self.server.login(self.EMAIL, self.PASS)
File "C:\Users\onkar\anaconda3\envs\env_dlib\lib\smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "C:\Users\onkar\anaconda3\envs\env_dlib\lib\smtplib.py", line 631, in auth
(code, resp) = self.docmd("AUTH", mechanism + " " + response)
TypeError: must be str, not bytes

Windows & Mac

I have tested on my windows 10 PC and its working great, but I tested on Mac and it is not working as it should be, as the counter is getting reset to 0 each time a person is a crossing the line. any help please?

IP Camera

Hi,

Can anyone recommend me a particular IP camera make and manufacture that could be used for this?

Also then on the LAN I would need a computer or virtual machine right? Any recommended OS for this?

Thanks!

error while running on pi4

hello,

i get the following error when running on a pi4
anny idea what it can be? also is it possible to run on a webcam instead of an ip camera? would love to monitor the occupancy at our sporclub with this.

Traceback (most recent call last):
File "Run.py", line 1, in
from mylib.centroidtracker import CentroidTracker
File "/home/pi/Downloads/People-Counting-in-Real-Time-master/mylib/centroidtracker.py", line 2, in
from scipy.spatial import distance as dist
File "/home/pi/.local/lib/python3.7/site-packages/scipy/spatial/init.py", line 98, in
from .qhull import *
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

Stream over http MJPEG error

Dear All
I have an old phone with an app that streams the camera feed to the local network under the address http://192.168.1.174:8081/video
I can see the feed via the browser but when I fill in this info in the config file, the program outputs the following error:

C:\Users\Administrator\Downloads\People-Counting-in-Real-Time>python run.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel
[INFO] Starting the live stream..
[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap.cpp (166) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): http://192.168.1.174:8081/video in function 'cv::icvExtractPattern'


Traceback (most recent call last):
  File "C:\Users\Administrator\Downloads\People-Counting-in-Real-Time\run.py", line 353, in <module>
    run()
  File "C:\Users\Administrator\Downloads\People-Counting-in-Real-Time\run.py", line 100, in run
    frame = imutils.resize(frame, width = 500)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\imutils\convenience.py", line 69, in resize
    (h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'

Can anyone help me with this error?

Jetson nano : not getting streaming

  1. Video streaming working fine. nvcc --version responded fine.
  2. People-counting working fine with demo video.
  3. Not starting video streaming getting following error.
    [INFO] Starting the live stream..
    [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
    [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
    [ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

Both cap_gstreamer.cpp and cap.cpp file copied in created folder file path --/home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/ . Please help/inform, how to make use of it and make it working.

not connecting to web cam

image

I'm try to connect to My webcam as I don't have acess to IPcam now, and getting this error.

Starting the live stream..
Traceback (most recent call last):
File "C:\Users\HP\Desktop\Real-Time-People-Counting\run.py", line 353, in
run()
File "C:\Users\HP\Desktop\Real-Time-People-Counting\run.py", line 100, in run
frame = imutils.resize(frame, width = 500)
File "C:\ProgramData\Anaconda3\lib\site-packages\imutils\convenience.py", line 69, in resize
(h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'

works with a video file , but cannot connect to webcam for live feed.

dlib issue

hello guys im new to all this. when trying to install requirements, im facing issues. attaching file
error.txt

PS C:\Users\onkar\OneDrive\Desktop\be project\People-Counting-in-Real-Time> pip install dlib==19.18.0
Collecting dlib==19.18.0
Using cached https://files.pythonhosted.org/packages/1e/62/aacb236d21fbd08148b1d517d58a9d80ea31bdcd386d26f21f8b23b1eb28/dlib-19.18.0.tar.gz
Installing collected packages: dlib
Running setup.py install for dlib ... error
Complete output from command c:\python\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\setup.py';f=getattr(tokenize, 'open',
open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\onkar\AppData\Local\Temp\pip-record-bura752r\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
package init file 'dlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\build\lib.win-amd64-3.6 -DPYTHON_EXECUTABLE=c:\python\python36\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\build\lib.win-amd64-3.6 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator

    NMake Makefiles

  does not support platform specification, but platform

    x64

  was specified.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/onkar/AppData/Local/Temp/pip-install-a3w83cv7/dlib/build/temp.win-amd64-3.6/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\setup.py", line 261, in <module>
    'Topic :: Software Development',
  File "c:\python\python36\lib\site-packages\setuptools\__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "c:\python\python36\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\python\python36\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "c:\python\python36\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\python\python36\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "c:\python\python36\lib\distutils\command\install.py", line 545, in run
    self.run_command('build')
  File "c:\python\python36\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\python\python36\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\python\python36\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "c:\python\python36\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\python\python36\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\setup.py", line 135, in run
    self.build_extension(ext)
  File "C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\setup.py", line 172, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "c:\python\python36\lib\subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\onkar\\AppData\\Local\\Temp\\pip-install-a3w83cv7\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\onkar\\AppData\\Local\\Temp\\pip-install-a3w83cv7\\dlib\\build\\lib.win-amd64-3.6', '-DPYTHON_EXECUTABLE=c:\\python\\python36\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\onkar\\AppData\\Local\\Temp\\pip-install-a3w83cv7\\dlib\\build\\lib.win-amd64-3.6', '-A', 'x64']' returned non-zero exit status 1.

----------------------------------------

Command "c:\python\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\onkar\AppData\Local\Temp\pip-record-bura752r\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in C:\Users\onkar\AppData\Local\Temp\pip-install-a3w83cv7\dlib
You are using pip version 18.1, however version 21.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Please Help me out. thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.