Jump to content

Mardax007

Member
  • Posts

    60
  • Joined

  • Last visited

Everything posted by Mardax007

  1. I have done it. I needed to set the methode to HoG is stead of CNN. Now it is blazing fast! Full code coming soon.
  2. Mardax007

    Working on a face recognition project

    The face recognition project is DONE!!! Now I am going to optimise it and I'll upload the full code very soon (ish).
  3. Face recognition project is heading in the right direction!!! 😀

    Still not done though: linustechtips.com/face identification

  4. Yes me to. Haven't figured out what is exactly out what it is but as said above I already have a face detection and id programs. Thanks for the tip!
  5. Thanks for the face detection code but it already had that. I was looking for a face recognition program with deep learning. And I found it yesterday. But there is one problem: # python recognize_faces_image.py --encodings encodings.pickle --image examples/example_01.png # import the necessary packages import face_recognition import argparse import pickle import cv2 # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-e", "--encodings", required=True, help="path to serialized db of facial encodings") ap.add_argument("-i", "--image", required=True, help="path to input image") ap.add_argument("-d", "--detection-method", type=str, default="cnn", help="face detection model to use: either `hog` or `cnn`") args = vars(ap.parse_args()) # load the known faces and embeddings print("[INFO] loading encodings...") data = pickle.loads(open(args["encodings"], "rb").read()) # load the input image and convert it from BGR to RGB image = cv2.imread(args["image"]) rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) # detect the (x, y)-coordinates of the bounding boxes corresponding # to each face in the input image, then compute the facial embeddings # for each face print("[INFO] recognizing faces...") boxes = face_recognition.face_locations(rgb, model=args["detection_method"]) encodings = face_recognition.face_encodings(rgb, boxes) # initialize the list of names for each face detected names = [] # loop over the facial embeddings for encoding in encodings: # attempt to match each face in the input image to our known # encodings matches = face_recognition.compare_faces(data["encodings"], encoding) name = "Unknown" # check to see if we have found a match if True in matches: # find the indexes of all matched faces then initialize a # dictionary to count the total number of times each face # was matched matchedIdxs = [i for (i, b) in enumerate(matches) if b] counts = {} # loop over the matched indexes and maintain a count for # each recognized face face for i in matchedIdxs: name = data["names"][i] counts[name] = counts.get(name, 0) + 1 # determine the recognized face with the largest number of # votes (note: in the event of an unlikely tie Python will # select first entry in the dictionary) name = max(counts, key=counts.get) # update the list of names names.append(name) # loop over the recognized faces for ((top, right, bottom, left), name) in zip(boxes, names): # draw the predicted face name on the image cv2.rectangle(image, (left, top), (right, bottom), (0, 255, 0), 2) y = top - 15 if top - 15 > 15 else top + 15 cv2.putText(image, name, (left, y), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (0, 255, 0), 2) # show the output image cv2.imshow("Image", image) cv2.waitKey(0) Line 32 where boxes is defined takes 28 seconds to define and that's way to long. Is there any way to define it outside the function or make the process faster? My and goal is this: The camera sees a face( an other program), it calls the id function, the id function takes a picture and quickly1 ids the person. (There is more but that's irrelevant) 1.quickly = 2 to 10 seconds
  6. Working on a face recognition project

    1. Mardax007

      Mardax007

      The face recognition project is DONE!!! Now I am going to optimise it and I'll upload the full code very soon (ish).

  7. Hi, I am building a face recognition program in python3. I started with getting a face id program. Then I added blinkdetection to insure that its a living person and not a photo. Then I added a face detection model. Then I came back to the face recognition part. Turns out that 60% meens 60% unsure. Now I am looking for a better face recognition program. I heard that a face recognition program with deep learning will increase accurcy a lot. I have googled it a lot but I still can't find a working program. If someone has a solution/tip please comment below. Thanks!
  8. My pc is finally done. Now I can play fortnite for the first time on pc.

  9. An old motherboard with 1GB of DDR ram With an Intel idk The was even dirt under the capacitors?
  10. Here they made a custom monitor is that what you want to do?
  11. Hello, I have recently started programming in coppercube but I have one small problem. How do I make my first person camera crouch? I have already tried changing a the relativeposition variable with when the player presses ctrl - change variable - #player.relativeposition - subtract - 0.0, 0.0, 0.0 Is there a other way???
  12. I am shopping on alternate.nl I would be glad if you could select the parts. It's a Dutch site but your browser should be able to translate it.
  13. As a said earlier I would like to have as much information as possible so I can create a good build.
  14. Okay thanks nick name and berries for the tips? I will do 16Gb.
  15. Hi, I already ask on the forum for help choosing my pc parts. But I just want to check one more time. Is this build all ok?
  16. Hello, I am building a pc but I can't choose; should I get a Ryzen 5 2600 or a Ryzen 7 2700X? I am planning to use the pc for game development in programs like construct and coppercube and of course python and java IDE's. I also will use the pc for games like roblox, minecraft and (maybe) fortnite(my current pc can't handle fortnite:( ) My current list: I already have a 1TB HDD at home thats why I took 128GB storage. I created it on a Dutch site so there is one word you need to know: "zwart" means back. ITS A COLOUR NOT A FEATURE.
  17. I already have a 1TB HDD but maybe a 256GB. thanks anyway?
  18. tnx I already thought it was bad now I am extremely confident it's old? It still nails minecraft 30FPS-?
×