lastralab / ABISSMAL

Github repository for ABISSMAL behavioral tracking platform
https://github.com/lastralab/ABISSMAL
Other
3 stars 2 forks source link

[NEW] Alternative video recording module for collecting validation data #437

Closed gsvidaurre closed 11 months ago

gsvidaurre commented 1 year ago

I’d like to have an alternative video module to collect videos that will be used to validate Abissmal. This alternative module should provide the following:

This alternative module should be considered a short-term fix and can be called from Main.sh.

lastralab commented 1 year ago

Note: If this is going to run on a separate Pi, I'm nesting conditions to isolate the validation video screen. This means if the validation video will be running, no other modules/screens can be running on the same pi.

When running main.sh, the selection include the validation letter "a/A": a

If the selection includes other modules, example: vitra, it will find first the 'a/A' and will skip the other modules. The result will open the validation, monitor and backup screens only.

gsvidaurre commented 12 months ago

I'd also like the following options:

lastralab commented 12 months ago
  1. Added duration option to Main.sh, to enter seconds for each video
  2. Variable 'video_time_range' will handle n arrays of time slots. Each slot will be handled in the while loop

    • Example for 1 time slot = [7,10]
    • Example for 3 time slots = [7,9], [15,16], [19,21]
    • Logs example for 3 slots:
      • 2023-09-07 14:44:29 INFO Detected 3 time slots 2023-09-07 14:44:29 INFO Validation videos will be recorded between 7 and 9 hours 2023-09-07 14:44:29 INFO Validation videos will be recorded between 15 and 16 hours 2023-09-07 14:44:29 INFO Validation videos will be recorded between 19 and 21 hours
lastralab commented 12 months ago

Added 'pause' option to add seconds between each video.

pause

lastralab commented 11 months ago

Count videos command: find /home/pi/Data_Abissmal/Video/ -type f -name "*.mp4" | grep "validation_2023_9_7" | wc -l