Emotion Recognition Using OAK Post

python main.py --model-path $PATH_TO_EMOTION_RECOGNITION_MODEL
git clone https://github.com/opencv-ai/oak-model-samples.git
git clone https://github.com/opencv-ai/oak-model-samples.git && \
cd oak-model-samples && \
git checkout 54fa4fe8bd2bb42d6bae49213dbbe6b2f1ce5c5e && \
cd emotion_recognition_retail && \
pip3 install wheel && python3 setup.py bdist_wheel && rm -R build/ *.egg-info && \
pip3 install dist/*.whl -f https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/depthai/ && rm -R dist/ && \
export PATH_TO_EMOTION_RECOGNITION_MODEL=$(pwd)
# save result video
if args.save_video:
  save_results_into_video(
    original_images, results, fps=fps, size=args.visualization_size,
  )
result_emotion_pie_chart = emotion_analyzer.create_statistics_pie_chart(
  save=args.save_statistics,
)
result_emotion_pie_chart.show()
# create report with emotion bar statistics
result_emotion_bar = emotion_analyzer.create_result_emotion_bar(
  save=args.save_statistics,
)
result_emotion_bar.show()
# run inference
original_images, results, fps = process_cam(
  model, emotion_analyzer, show=args.visualize,
)
emotion_analyzer = EmotionAnalyzer()
# build model
model = InferenceModel(
  model_path=model_path,
)  # initialize the emotion recognition model
model.model_load()  # load weights
model_path = osp.join(
  args.model_path, "checkpoint",
)  # Path to emotion recognition checkpoint

Similiar Collections

Python strftime reference pandas.Period.strftime python - Formatting Quarter time in pandas columns - Stack Overflow python - Pandas: Change day - Stack Overflow python - Check if multiple columns exist in a df - Stack Overflow Pandas DataFrame apply() - sending arguments examples python - How to filter a dataframe of dates by a particular month/day? - Stack Overflow python - replace a value in the entire pandas data frame - Stack Overflow python - Replacing blank values (white space) with NaN in pandas - Stack Overflow python - get list from pandas dataframe column - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to lowercase a pandas dataframe string column if it has missing values? - Stack Overflow How to Convert Integers to Strings in Pandas DataFrame - Data to Fish How to Convert Integers to Strings in Pandas DataFrame - Data to Fish create a dictionary of two pandas Dataframe columns? - Stack Overflow python - ValueError: No axis named node2 for object type <class 'pandas.core.frame.DataFrame'> - Stack Overflow Python Pandas iterate over rows and access column names - Stack Overflow python - Creating dataframe from a dictionary where entries have different lengths - Stack Overflow python - Deleting DataFrame row in Pandas based on column value - Stack Overflow python - How to check if a column exists in Pandas - Stack Overflow python - Import pandas dataframe column as string not int - Stack Overflow python - What is the most efficient way to create a dictionary of two pandas Dataframe columns? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow python - How do I get the row count of a Pandas DataFrame? - Stack Overflow python - How to save a new sheet in an existing excel file, using Pandas? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow How do I select a subset of a DataFrame? — pandas 1.2.4 documentation python - Delete column from pandas DataFrame - Stack Overflow python - Convert list of dictionaries to a pandas DataFrame - Stack Overflow How to Add or Insert Row to Pandas DataFrame? - Python Examples python - Check if a value exists in pandas dataframe index - Stack Overflow