{"id":21288639,"url":"https://github.com/abdo-essam/facial-expression-recognition-system","last_synced_at":"2025-03-15T15:42:31.443Z","repository":{"id":173673355,"uuid":"651117466","full_name":"abdo-essam/Facial-Expression-Recognition-System","owner":"abdo-essam","description":"Facial Expression Recognition System using the JAFFE database. However, there are a few issues with the code that need to be addressed","archived":false,"fork":false,"pushed_at":"2023-06-08T23:41:21.000Z","size":133127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T05:41:22.373Z","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/abdo-essam.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":"2023-06-08T14:29:33.000Z","updated_at":"2023-06-08T22:54:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"9891d396-6bf2-4b82-8784-3aac3965c5c1","html_url":"https://github.com/abdo-essam/Facial-Expression-Recognition-System","commit_stats":null,"previous_names":["abdo-essam/facial-expression-recognition-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FFacial-Expression-Recognition-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FFacial-Expression-Recognition-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FFacial-Expression-Recognition-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FFacial-Expression-Recognition-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdo-essam","download_url":"https://codeload.github.com/abdo-essam/Facial-Expression-Recognition-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753995,"owners_count":20342537,"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-21T12:23:48.364Z","updated_at":"2025-03-15T15:42:31.427Z","avatar_url":"https://github.com/abdo-essam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facial-Expression-Recognition-System\nFacial Expression Recognition System using the JAFFE database. However, there are a few issues with the code that need to be addressed\n\n1.\tThe paths for the JAFFE database and the shape predictor model are incorrect. You need to provide the correct paths to these files. Make sure the jaffe_dir_path and landmarks_predictor_model variables contain the correct paths to the respective files.\n2.\tThe code is missing the definition of the detect_eyes function, which is used in the preprocessing function. You need to include the detect_eyes function in your code or import it from another module.\n3.\tThe code assumes that the JAFFE database images are grayscale, but it's good to double-check the image format and ensure they are indeed grayscale. If the images are in color, you might need to convert them to grayscale using cv2.cvtColor function.\n4.\tThe code includes a plotting section where it attempts to display the preprocessed images. However, the code is missing the necessary import statement for the matplotlib.pyplot module. You need to add import matplotlib.pyplot as plt at the beginning of the code.\n5.\tThe code uses the pywt library for wavelet transform, but it seems that the from_2d_to_1d function is just reshaping the images into a 1D array without performing any wavelet transform. If you want to apply wavelet transform, you need to modify the code accordingly.\n6.\tThe code fits a PCA model to the preprocessed data, but it's unclear how many components are selected (n_components=35). You might need to experiment with different values or use techniques like cross-validation to determine the optimal number of components.\n7.\tThe code uses GridSearchCV to find the best parameters for the SVM model, but it seems that the param_grid dictionary is missing the 'kernel' parameter. You need to add 'kernel': ['linear'] to the param_grid dictionary.\n8.\tThe code trains the SVM model and evaluates its performance using accuracy, confusion matrix, and classification report. However, it's essential to keep in mind that these metrics might not be the best choice for imbalanced datasets or when dealing with specific classification goals. It's recommended to consider other evaluation metrics or techniques depending on the specific requirements of your application.\nPlease review and update the code according to these suggestions before running it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Ffacial-expression-recognition-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdo-essam%2Ffacial-expression-recognition-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Ffacial-expression-recognition-system/lists"}