{"id":19024943,"url":"https://github.com/sonujose/azure-cognitive-face-api","last_synced_at":"2025-06-20T15:11:16.215Z","repository":{"id":115803506,"uuid":"233349134","full_name":"sonujose/azure-cognitive-face-api","owner":"sonujose","description":"ML based image processing app","archived":false,"fork":false,"pushed_at":"2020-01-12T13:49:38.000Z","size":3111,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T19:12:51.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonujose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-12T06:31:09.000Z","updated_at":"2020-04-04T01:45:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"16f64685-4476-4009-bff3-94f3ac1a287d","html_url":"https://github.com/sonujose/azure-cognitive-face-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sonujose/azure-cognitive-face-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonujose%2Fazure-cognitive-face-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonujose%2Fazure-cognitive-face-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonujose%2Fazure-cognitive-face-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonujose%2Fazure-cognitive-face-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonujose","download_url":"https://codeload.github.com/sonujose/azure-cognitive-face-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonujose%2Fazure-cognitive-face-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260967882,"owners_count":23090107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:39:36.285Z","updated_at":"2025-06-20T15:11:11.204Z","avatar_url":"https://github.com/sonujose.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# contoso travel - AI Azure Cognitive services\nML based image processing app\n\n- Azure Cognitive services\n- Python flask app\n- Face API\n\n### Install Python packages\n\n1. Navigate to the AI directory\n\n``` console\n# Windows\ncd reactors\\AI_1\\starter-site\n\n# Linux or macOS\ncd ./reactors/AI_1/starter-site\n```\n\n2. Let's create a virtual environment for the packages we'll be using. Virtual environments allow us to separate packages from other environments. Return to the command line and issuing the following command:\n\n``` console\n# Windows\npython -m venv env\n.\\env\\Scripts\\activate\n\n# macOS or Linux\npython3 -m venv env\n. ./env/bin/activate\n```\n\nNote: If you're using macOS or Linux the leading `.` for the `. ./env/bin/activate` is required as it indicates to Python where your source code resides.\n\n3. Finally, we'll install the packages listed in requirements.txt by using pip\n\n``` console\npip install -r requirements.txt\n\n# macOS or Linux\npip3 install -r requirements.txt\n```\n\n## Explore the current files\n\nTake a moment to browse the files that were copied into the project directory. Open **starter-site** in the code editor of your choice. If you are using [Visual Studio Code](https://code.visualstudio.com), you can perform this operation by using the command `code .` from the terminal or command window.\n\nVerify the following files exist:\n\n- **app.py**, which holds the Python code that drives the site\n- **image.py**, which holds a helper class we'll use for image management\n- **templates/index.html**, the template for the home page\n- **templates/base.html**, the template the remainder inherits from\n- **templates/translate.html**, the template for translating signs\n- **templates/train.html**, the template for training faces\n- **templates/detect.html**, the template for detecting faces\n- **static/main.css**, which contains CSS to dress up the home page\n- **static/banner.jpg**, which contains the website banner\n- **static/placeholder.jpg**, which contains a placeholder image for photos that have yet to be uploaded\n\n\u003e **NOTE:** We won't be focusing on working with HTML during this course. We want to be able to focus on the code necessary for Cognitive Services.\n\n## Start the site\n\nLet's start the site using Flask. We will configure Flask to run in development mode by setting the `FLASK_ENV` environmental variable. Running Flask in development mode is helpful when you’re developing a website because Flask automatically reloads any files that change while the site is running. If you let Flask default to production mode and change the contents of an HTML file or other asset, you have to restart Flask to see the change in your browser.\n\n``` bash\n# Windows\nset FLASK_ENV=development\nflask run\n\n# macOS or Linux\nexport FLASK_ENV=development\nflask run\n```\n\n\u003e **NOTE:** **Keep this terminal or command window open**, as we're going to be making changes to our site throughout the day. If you accidentally close it, you can restart your site by issuing the same commands from above.\n\n## Open the site\n\nOpen a browser and navigate to `http://localhost:5000`. Confirm the website appears. If you click the buttons the three pages we'll be working with will each open. You will notice the functionality is limited to just displaying the image you upload. We're going to start adding code to add the ability to translate street signs, and eventually detect people in images.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonujose%2Fazure-cognitive-face-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonujose%2Fazure-cognitive-face-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonujose%2Fazure-cognitive-face-api/lists"}