eyesweb-core 2.0.0a3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eyesweb_core-2.0.0a3/.gitattributes +3 -0
- eyesweb_core-2.0.0a3/.gitignore +25 -0
- eyesweb_core-2.0.0a3/CMakeLists.txt +79 -0
- eyesweb_core-2.0.0a3/LICENSE +73 -0
- eyesweb_core-2.0.0a3/PKG-INFO +118 -0
- eyesweb_core-2.0.0a3/README.md +99 -0
- eyesweb_core-2.0.0a3/THIRD_PARTY_NOTICES +90 -0
- eyesweb_core-2.0.0a3/VERSION +1 -0
- eyesweb_core-2.0.0a3/bindings/base/binary_pulses_regularity.cpp +42 -0
- eyesweb_core-2.0.0a3/bindings/base/time_window_synchronizer.cpp +76 -0
- eyesweb_core-2.0.0a3/bindings/common.cpp +56 -0
- eyesweb_core-2.0.0a3/bindings/convert.h +275 -0
- eyesweb_core-2.0.0a3/bindings/dance/scalar_peak_detector.cpp +37 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/array_io.h +67 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/generic_model_orientations_extractor.cpp +64 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/generic_model_simulator.cpp +114 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/humanoid_orientations_extractor.cpp +73 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/humanoid_simulator.cpp +118 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/joint_names.h +42 -0
- eyesweb_core-2.0.0a3/bindings/humanoid/mass_spring_model.cpp +96 -0
- eyesweb_core-2.0.0a3/bindings/imaging/blob_sub_regions.cpp +66 -0
- eyesweb_core-2.0.0a3/bindings/imaging/centroids_calc.cpp +96 -0
- eyesweb_core-2.0.0a3/bindings/imaging/videogram.cpp +57 -0
- eyesweb_core-2.0.0a3/bindings/module.cpp +59 -0
- eyesweb_core-2.0.0a3/bindings/motion/body_parts_from_curvature.cpp +48 -0
- eyesweb_core-2.0.0a3/bindings/motion/bounding_box_filled_area.cpp +36 -0
- eyesweb_core-2.0.0a3/bindings/motion/contour_curvature.cpp +29 -0
- eyesweb_core-2.0.0a3/bindings/motion/direction_change.cpp +41 -0
- eyesweb_core-2.0.0a3/bindings/motion/ellipsoid_sphericity.cpp +37 -0
- eyesweb_core-2.0.0a3/bindings/motion/ensemble_dominance.cpp +38 -0
- eyesweb_core-2.0.0a3/bindings/motion/equilibrium.cpp +48 -0
- eyesweb_core-2.0.0a3/bindings/motion/gesture_segmenter.cpp +55 -0
- eyesweb_core-2.0.0a3/bindings/motion/histogram_rarity.cpp +42 -0
- eyesweb_core-2.0.0a3/bindings/motion/impulsivity.cpp +50 -0
- eyesweb_core-2.0.0a3/bindings/motion/impulsivity_index.cpp +43 -0
- eyesweb_core-2.0.0a3/bindings/motion/kinetic_energy_index.cpp +82 -0
- eyesweb_core-2.0.0a3/bindings/motion/motion_noise_detector.cpp +49 -0
- eyesweb_core-2.0.0a3/bindings/motion/multi_scale_entropy.cpp +67 -0
- eyesweb_core-2.0.0a3/bindings/motion/novelty_rarity.cpp +53 -0
- eyesweb_core-2.0.0a3/bindings/motion/periodicity_index.cpp +46 -0
- eyesweb_core-2.0.0a3/bindings/motion/points_density.cpp +61 -0
- eyesweb_core-2.0.0a3/bindings/motion/rarity_index.cpp +44 -0
- eyesweb_core-2.0.0a3/bindings/motion/sample_entropy.cpp +39 -0
- eyesweb_core-2.0.0a3/bindings/motion/smoothness_index.cpp +65 -0
- eyesweb_core-2.0.0a3/bindings/motion/speed_profile_metrics.cpp +98 -0
- eyesweb_core-2.0.0a3/bindings/motion/suddenness.cpp +51 -0
- eyesweb_core-2.0.0a3/bindings/motion/symmetry.cpp +40 -0
- eyesweb_core-2.0.0a3/bindings/motion/symmetry_index_3d.cpp +76 -0
- eyesweb_core-2.0.0a3/bindings/motion/triangle_symmetry_index.cpp +51 -0
- eyesweb_core-2.0.0a3/bindings/registry.h +38 -0
- eyesweb_core-2.0.0a3/bindings/space/hit_cell_detector.cpp +43 -0
- eyesweb_core-2.0.0a3/bindings/space/position_depending_potentials.cpp +85 -0
- eyesweb_core-2.0.0a3/bindings/space/region_depending_potentials.cpp +97 -0
- eyesweb_core-2.0.0a3/bindings/space/space_convert.h +64 -0
- eyesweb_core-2.0.0a3/bindings/sync/event_synchronization.cpp +43 -0
- eyesweb_core-2.0.0a3/bindings/sync/event_synchronization_mecs.cpp +63 -0
- eyesweb_core-2.0.0a3/bindings/sync/generalised_auto_correlation.cpp +49 -0
- eyesweb_core-2.0.0a3/bindings/sync/interdependence.cpp +40 -0
- eyesweb_core-2.0.0a3/bindings/sync/partial_recurrence_synchronization.cpp +28 -0
- eyesweb_core-2.0.0a3/bindings/sync/phase_locking_value.cpp +45 -0
- eyesweb_core-2.0.0a3/bindings/sync/recurrence_plot.cpp +81 -0
- eyesweb_core-2.0.0a3/bindings/sync/spike_sync.cpp +52 -0
- eyesweb_core-2.0.0a3/bindings/tests/data/humanoid_reference.npz +0 -0
- eyesweb_core-2.0.0a3/bindings/tests/test_bindings.py +308 -0
- eyesweb_core-2.0.0a3/bindings/trajectory/directness.cpp +42 -0
- eyesweb_core-2.0.0a3/bindings/trajectory/kinematics.cpp +95 -0
- eyesweb_core-2.0.0a3/bindings/trajectory/trajectory_non_planarity.cpp +41 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/adopt_params.h +17 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/blob.h +39 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/image.h +58 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/int_conversion.h +18 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/labelled_set.h +33 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/labelled_set_transform.h +12 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/matrix.h +22 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/shift_window.h +33 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/stats.h +39 -0
- eyesweb_core-2.0.0a3/core/include/ew/common/time_series.h +52 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/base/binary_pulses_regularity.h +63 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/base/time_window_synchronizer.h +107 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/dance/scalar_peak_detector.h +63 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/generic_model_orientations_extractor.h +51 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/generic_model_runner.h +105 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/generic_model_simulator.h +73 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/humanoid.h +86 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/humanoid_orientations_extractor.h +56 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/humanoid_simulator.h +102 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/mass.h +56 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/mass_spring_model.h +92 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/solver.h +34 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/spring.h +74 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/humanoid/spring_simulation.h +93 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/imaging/blob_sub_regions.h +102 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/imaging/centroids_calc.h +127 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/imaging/videogram.h +82 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/body_parts_from_curvature.h +104 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/bounding_box_filled_area.h +52 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/coarse_graining.h +48 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/contour_curvature.h +38 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/direction_change.h +58 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/ellipsoid_sphericity.h +50 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/ensemble_dominance.h +34 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/equilibrium.h +58 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/gesture_segmenter.h +86 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/histogram_rarity.h +57 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/impulsivity.h +69 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/impulsivity_index.h +61 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/kinetic_energy_index.h +72 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/motion_noise_detector.h +70 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/multi_scale_entropy.h +103 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/novelty_rarity.h +76 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/periodicity_index.h +48 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/periodicity_transform.h +37 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/points_density.h +64 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/rarity_index.h +69 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/sample_entropy.h +64 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/smoothness_index.h +113 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/speed_profile_metrics.h +159 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/suddenness.h +72 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/symmetry.h +66 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/symmetry_index_3d.h +80 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/motion/triangle_symmetry_index.h +89 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/grid.h +48 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/hit_cell_detector.h +63 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/position_depending_potentials.h +123 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/potential_kernels.h +51 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/region_depending_potentials.h +131 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/region_mask.h +49 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/space/uniform_quantizer.h +48 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/cross_recurrence_plot.h +55 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/event_synchronization.h +95 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/event_synchronization_mecs.h +110 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/generalised_auto_correlation.h +72 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/interdependence.h +57 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/partial_recurrence_synchronization.h +39 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/phase_locking_value.h +71 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/recurrence_plot.h +66 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/recurrence_plot_math.h +33 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/spike_sync.h +73 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/spike_sync_calculator.h +54 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/sync_events.h +29 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/sync/sync_math.h +26 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/trajectory/directness.h +23 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/trajectory/kinematics.h +132 -0
- eyesweb_core-2.0.0a3/core/include/ew/features/trajectory/trajectory_non_planarity.h +75 -0
- eyesweb_core-2.0.0a3/core/include/ew/filters/savitzky_golay.h +83 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/butterworth.h +31 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/constants.h +10 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/convex_hull_3d.h +39 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/eigen_symmetric3.h +45 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/fft.h +23 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/filtfilt.h +21 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/find_peaks.h +27 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/lfilter.h +36 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/linspace.h +13 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/mcculloch_tables.h +30 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/percentile.h +29 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/quaternion.h +140 -0
- eyesweb_core-2.0.0a3/core/include/ew/math/vec.h +58 -0
- eyesweb_core-2.0.0a3/core/src/common/blob.cpp +38 -0
- eyesweb_core-2.0.0a3/core/src/common/labelled_set.cpp +22 -0
- eyesweb_core-2.0.0a3/core/src/common/labelled_set_transform.cpp +22 -0
- eyesweb_core-2.0.0a3/core/src/common/shift_window.cpp +27 -0
- eyesweb_core-2.0.0a3/core/src/common/stats.cpp +84 -0
- eyesweb_core-2.0.0a3/core/src/common/time_series.cpp +61 -0
- eyesweb_core-2.0.0a3/core/src/features/base/binary_pulses_regularity.cpp +46 -0
- eyesweb_core-2.0.0a3/core/src/features/base/time_window_synchronizer.cpp +142 -0
- eyesweb_core-2.0.0a3/core/src/features/dance/scalar_peak_detector.cpp +65 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/generic_model_orientations_extractor.cpp +27 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/generic_model_runner.cpp +78 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/generic_model_simulator.cpp +40 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/humanoid.cpp +142 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/humanoid_orientations_extractor.cpp +70 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/humanoid_simulator.cpp +152 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/mass.cpp +26 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/mass_spring_model.cpp +147 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/mass_spring_model_xml.cpp +183 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/spring.cpp +71 -0
- eyesweb_core-2.0.0a3/core/src/features/humanoid/spring_simulation.cpp +143 -0
- eyesweb_core-2.0.0a3/core/src/features/imaging/blob_sub_regions.cpp +236 -0
- eyesweb_core-2.0.0a3/core/src/features/imaging/centroids_calc.cpp +204 -0
- eyesweb_core-2.0.0a3/core/src/features/imaging/videogram.cpp +108 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/body_parts_from_curvature.cpp +173 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/bounding_box_filled_area.cpp +41 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/coarse_graining.cpp +40 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/contour_curvature.cpp +39 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/direction_change.cpp +88 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/ellipsoid_sphericity.cpp +59 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/ensemble_dominance.cpp +35 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/equilibrium.cpp +52 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/gesture_segmenter.cpp +86 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/histogram_rarity.cpp +62 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/impulsivity.cpp +23 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/impulsivity_index.cpp +53 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/kinetic_energy_index.cpp +84 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/motion_noise_detector.cpp +46 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/multi_scale_entropy.cpp +95 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/novelty_rarity.cpp +122 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/periodicity_index.cpp +62 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/periodicity_transform.cpp +140 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/points_density.cpp +76 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/rarity_index.cpp +85 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/sample_entropy.cpp +70 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/smoothness_index.cpp +170 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/speed_profile_metrics.cpp +208 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/suddenness.cpp +92 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/symmetry.cpp +65 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/symmetry_index_3d.cpp +115 -0
- eyesweb_core-2.0.0a3/core/src/features/motion/triangle_symmetry_index.cpp +108 -0
- eyesweb_core-2.0.0a3/core/src/features/space/hit_cell_detector.cpp +29 -0
- eyesweb_core-2.0.0a3/core/src/features/space/position_depending_potentials.cpp +159 -0
- eyesweb_core-2.0.0a3/core/src/features/space/potential_kernels.cpp +101 -0
- eyesweb_core-2.0.0a3/core/src/features/space/region_depending_potentials.cpp +195 -0
- eyesweb_core-2.0.0a3/core/src/features/space/region_mask.cpp +33 -0
- eyesweb_core-2.0.0a3/core/src/features/space/uniform_quantizer.cpp +45 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/cross_recurrence_plot.cpp +31 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/event_synchronization.cpp +95 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/event_synchronization_mecs.cpp +139 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/generalised_auto_correlation.cpp +76 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/interdependence.cpp +88 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/partial_recurrence_synchronization.cpp +80 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/phase_locking_value.cpp +62 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/recurrence_plot.cpp +48 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/recurrence_plot_math.cpp +23 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/spike_sync.cpp +78 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/spike_sync_calculator.cpp +191 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/sync_events.cpp +25 -0
- eyesweb_core-2.0.0a3/core/src/features/sync/sync_math.cpp +130 -0
- eyesweb_core-2.0.0a3/core/src/features/trajectory/directness.cpp +28 -0
- eyesweb_core-2.0.0a3/core/src/features/trajectory/kinematics.cpp +190 -0
- eyesweb_core-2.0.0a3/core/src/features/trajectory/trajectory_non_planarity.cpp +199 -0
- eyesweb_core-2.0.0a3/core/src/filters/savitzky_golay.cpp +172 -0
- eyesweb_core-2.0.0a3/core/src/math/butterworth.cpp +99 -0
- eyesweb_core-2.0.0a3/core/src/math/convex_hull_3d.cpp +196 -0
- eyesweb_core-2.0.0a3/core/src/math/fft.cpp +51 -0
- eyesweb_core-2.0.0a3/core/src/math/filtfilt.cpp +45 -0
- eyesweb_core-2.0.0a3/core/src/math/find_peaks.cpp +77 -0
- eyesweb_core-2.0.0a3/core/src/math/lfilter.cpp +99 -0
- eyesweb_core-2.0.0a3/core/src/math/linspace.cpp +15 -0
- eyesweb_core-2.0.0a3/core/src/math/mcculloch_tables.cpp +58 -0
- eyesweb_core-2.0.0a3/core/src/math/percentile.cpp +56 -0
- eyesweb_core-2.0.0a3/pyproject.toml +67 -0
- eyesweb_core-2.0.0a3/third_party/pocketfft/LICENSE.md +25 -0
- eyesweb_core-2.0.0a3/third_party/pocketfft/pocketfft_hdronly.h +3853 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
build/
|
|
2
|
+
build_*/
|
|
3
|
+
out/
|
|
4
|
+
.vs/
|
|
5
|
+
*.pyd
|
|
6
|
+
*.dll
|
|
7
|
+
*.obj
|
|
8
|
+
*.exp
|
|
9
|
+
*.lib
|
|
10
|
+
*.ilk
|
|
11
|
+
*.pdb
|
|
12
|
+
__pycache__/
|
|
13
|
+
.vscode/
|
|
14
|
+
.idea/
|
|
15
|
+
Testing/
|
|
16
|
+
dist/
|
|
17
|
+
_skbuild/
|
|
18
|
+
*.egg-info/
|
|
19
|
+
*.whl
|
|
20
|
+
|
|
21
|
+
# Local agentic-development notes (not tracked)
|
|
22
|
+
dev-notes/algorithm_review/
|
|
23
|
+
|
|
24
|
+
# Local notes (not tracked)
|
|
25
|
+
PORTING_STATUS.md
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.20)
|
|
2
|
+
# ONE source of truth for the version: the file VERSION (PEP 440, e.g. 2.0.0a1). CMake takes the numeric part for
|
|
3
|
+
# project(); the module reports the full string as __version__ and the wheel metadata (pyproject.toml) reads the same file.
|
|
4
|
+
# PyEyesWeb compares only major.minor of __version__ at import: bump it with the bindings (see dev-notes/RELEASE.md).
|
|
5
|
+
file(STRINGS VERSION EW_VERSION_FULL LIMIT_COUNT 1)
|
|
6
|
+
string(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" EW_VERSION_NUMERIC "${EW_VERSION_FULL}")
|
|
7
|
+
if(NOT EW_VERSION_NUMERIC)
|
|
8
|
+
message(FATAL_ERROR "VERSION must start with MAJOR.MINOR.PATCH, found '${EW_VERSION_FULL}'")
|
|
9
|
+
endif()
|
|
10
|
+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS VERSION)
|
|
11
|
+
project(EyesWebCore VERSION ${EW_VERSION_NUMERIC} LANGUAGES CXX)
|
|
12
|
+
|
|
13
|
+
set(CMAKE_CXX_STANDARD 17)
|
|
14
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
15
|
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
16
|
+
|
|
17
|
+
# Tests are built only when this is the top-level project (not when consumed with add_subdirectory).
|
|
18
|
+
option(EW_BUILD_TESTS "Build the C++ tests" ${PROJECT_IS_TOP_LEVEL})
|
|
19
|
+
option(EW_WARNINGS_AS_ERRORS "Treat compiler warnings as errors (for CI)" OFF)
|
|
20
|
+
|
|
21
|
+
# Strict warnings for every target, one place.
|
|
22
|
+
function(ew_warnings target)
|
|
23
|
+
if(MSVC)
|
|
24
|
+
target_compile_options(${target} PRIVATE /W4 $<$<BOOL:${EW_WARNINGS_AS_ERRORS}>:/WX>)
|
|
25
|
+
else()
|
|
26
|
+
target_compile_options(${target} PRIVATE -Wall -Wextra $<$<BOOL:${EW_WARNINGS_AS_ERRORS}>:-Werror>)
|
|
27
|
+
endif()
|
|
28
|
+
endfunction()
|
|
29
|
+
|
|
30
|
+
# --- Core: ports of EyesWeb feature blocks. No EyesWeb, TouchDesigner or Python dependency. ---
|
|
31
|
+
file(GLOB_RECURSE EW_CORE_SOURCES CONFIGURE_DEPENDS core/src/*.cpp)
|
|
32
|
+
add_library(ew_core STATIC ${EW_CORE_SOURCES})
|
|
33
|
+
target_include_directories(ew_core PUBLIC core/include)
|
|
34
|
+
target_include_directories(ew_core SYSTEM PRIVATE third_party/pocketfft) # header-only FFT
|
|
35
|
+
ew_warnings(ew_core)
|
|
36
|
+
if(MSVC)
|
|
37
|
+
target_compile_definitions(ew_core PUBLIC _USE_MATH_DEFINES)
|
|
38
|
+
else()
|
|
39
|
+
# Same results on every platform: no fused multiply-add contraction. Clang on ARM (Apple silicon) contracts a*b + c by
|
|
40
|
+
# default; the filters then leave residues of 1e-16 where MSVC and x86-64 give exactly 0 (a direction of a still point
|
|
41
|
+
# becomes arbitrary, filtered PLV drifts by 1e-5 against the reference). MSVC does not contract by default.
|
|
42
|
+
target_compile_options(ew_core PRIVATE -ffp-contract=off)
|
|
43
|
+
endif()
|
|
44
|
+
|
|
45
|
+
# --- Tests: one runner, every tests/**/test_*.cpp registers itself ---
|
|
46
|
+
if(EW_BUILD_TESTS)
|
|
47
|
+
enable_testing()
|
|
48
|
+
file(GLOB_RECURSE EW_TEST_SOURCES CONFIGURE_DEPENDS tests/*/test_*.cpp)
|
|
49
|
+
add_executable(ew_tests tests/main.cpp ${EW_TEST_SOURCES})
|
|
50
|
+
target_link_libraries(ew_tests PRIVATE ew_core)
|
|
51
|
+
ew_warnings(ew_tests)
|
|
52
|
+
add_test(NAME ew_tests COMMAND ew_tests)
|
|
53
|
+
endif()
|
|
54
|
+
|
|
55
|
+
# --- Python module eyesweb_core (nanobind bindings of the core). Configure with -DEW_BUILD_PYTHON=ON -Dnanobind_DIR=<python -m nanobind --cmake_dir>.
|
|
56
|
+
# Python 3.10 or newer (TouchDesigner 2025.x bundles 3.11). With the stable ABI (Python 3.12+ in a scikit-build-core
|
|
57
|
+
# build with wheel.py-api) nanobind uses the abi3 module; below 3.12 STABLE_ABI is ignored.
|
|
58
|
+
option(EW_BUILD_PYTHON "Build the eyesweb_core Python module" OFF)
|
|
59
|
+
if(EW_BUILD_PYTHON)
|
|
60
|
+
find_package(Python 3.10 COMPONENTS Interpreter Development.Module ${SKBUILD_SABI_COMPONENT} REQUIRED)
|
|
61
|
+
find_package(nanobind CONFIG REQUIRED)
|
|
62
|
+
file(GLOB_RECURSE EW_BINDING_SOURCES CONFIGURE_DEPENDS bindings/*.cpp)
|
|
63
|
+
nanobind_add_module(eyesweb_core STABLE_ABI NOMINSIZE ${EW_BINDING_SOURCES})
|
|
64
|
+
target_link_libraries(eyesweb_core PRIVATE ew_core)
|
|
65
|
+
ew_warnings(eyesweb_core)
|
|
66
|
+
# The module reports its version and the commit it was built from (read when CMake configures).
|
|
67
|
+
# -DEW_BUILD_HASH=<hash> overrides (an sdist has no .git).
|
|
68
|
+
if(NOT EW_BUILD_HASH)
|
|
69
|
+
execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
70
|
+
OUTPUT_VARIABLE EW_BUILD_HASH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
|
|
71
|
+
endif()
|
|
72
|
+
if(NOT EW_BUILD_HASH)
|
|
73
|
+
set(EW_BUILD_HASH "unknown")
|
|
74
|
+
endif()
|
|
75
|
+
target_compile_definitions(eyesweb_core PRIVATE EW_CORE_VERSION="${EW_VERSION_FULL}" EW_CORE_BUILD="${EW_BUILD_HASH}")
|
|
76
|
+
|
|
77
|
+
# Wheel (scikit-build-core): only the module, at the top level of the wheel (import eyesweb_core). No library, no tests.
|
|
78
|
+
install(TARGETS eyesweb_core LIBRARY DESTINATION . RUNTIME DESTINATION .)
|
|
79
|
+
endif()
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
InfoMus Binary Licence (LicenseRef-InfoMus-Binary)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 InfoMus Lab - Casa Paganini
|
|
4
|
+
|
|
5
|
+
This licence applies to the compiled software "eyesweb-core" (Python import name "eyesweb_core"), in the form in which
|
|
6
|
+
InfoMus Lab - Casa Paganini distributes it (the "Software"). By installing or using the Software you accept these terms.
|
|
7
|
+
If you do not accept them, do not install or use the Software.
|
|
8
|
+
|
|
9
|
+
1. Grant
|
|
10
|
+
|
|
11
|
+
InfoMus Lab - Casa Paganini ("the Licensor") grants you a non-exclusive, worldwide, royalty-free and perpetual
|
|
12
|
+
licence, subject to the conditions below, to install and use the Software (including for commercial purposes) and to
|
|
13
|
+
redistribute it in unmodified binary form, as obtained from the Licensor.
|
|
14
|
+
|
|
15
|
+
2. Conditions
|
|
16
|
+
|
|
17
|
+
(1) Notices. Every copy of the Software that you redistribute must include this licence and the file
|
|
18
|
+
THIRD_PARTY_NOTICES, unaltered, and keep every copyright and licence notice it contains.
|
|
19
|
+
|
|
20
|
+
(2) Acknowledgement. Any product, service, publication, documentation or presentation that uses the Software, or
|
|
21
|
+
software that depends on it, must credit "InfoMus Lab - Casa Paganini, University of Genoa", in a place where
|
|
22
|
+
users or readers can reasonably see it. Any publication (paper, thesis, report, poster) that reports results
|
|
23
|
+
obtained with the Software must also cite the reference given in the file CITATION.cff of the PyEyesWeb
|
|
24
|
+
repository (https://github.com/InfoMusCP/PyEyesWeb), which at the date of this licence reads:
|
|
25
|
+
|
|
26
|
+
Sabharwal, S. R., Corbellini, N., Ghisio, S., Coletta, P., Romano, G., Foysal, A. A., Volpe, G., Camurri, A.
|
|
27
|
+
"PyEyesWeb: An open source toolkit for multimodal movement feature extraction". MOCO '26: Proceedings of the
|
|
28
|
+
10th International Conference on Movement and Computing (MOCO '26), Montpellier, France, 23-25 April 2026.
|
|
29
|
+
ACM, New York, NY, USA. DOI: 10.1145/3802842.3802904
|
|
30
|
+
|
|
31
|
+
If the file CITATION.cff is updated, the updated preferred citation applies.
|
|
32
|
+
|
|
33
|
+
(3) No modification. You may not modify, adapt, translate or create derivative works of the Software, and you may
|
|
34
|
+
not reverse engineer, decompile or disassemble it or try to obtain its source code, except to the extent that
|
|
35
|
+
applicable law allows this despite this restriction.
|
|
36
|
+
|
|
37
|
+
(4) No sublicensing or sale. You may not sublicense, sell, rent or lease the Software on its own. You may include it,
|
|
38
|
+
unmodified, as a dependency or component of your own product or service, provided that you comply with these
|
|
39
|
+
conditions. Using the Software through a separate program that only calls it (for example PyEyesWeb, which has
|
|
40
|
+
its own licence) does not change the licence of that program.
|
|
41
|
+
|
|
42
|
+
3. Source code and third-party components
|
|
43
|
+
|
|
44
|
+
The source code of the Software is not licensed to you and is not provided. The Software contains or links
|
|
45
|
+
third-party components, which remain under their own licences as listed in THIRD_PARTY_NOTICES.
|
|
46
|
+
|
|
47
|
+
4. No warranty
|
|
48
|
+
|
|
49
|
+
The Software is provided "as is", without warranty of any kind, express or implied, including the warranties of
|
|
50
|
+
merchantability, fitness for a particular purpose and non-infringement. The Licensor does not promise that the
|
|
51
|
+
Software is free of errors or suitable for any particular use, and it is not designed for safety-critical uses.
|
|
52
|
+
|
|
53
|
+
5. Limitation of liability
|
|
54
|
+
|
|
55
|
+
To the extent permitted by law, the Licensor and its contributors are not liable for any damage (direct, indirect,
|
|
56
|
+
incidental, special, consequential, or loss of data, profit or use) arising from the use of, or the inability to
|
|
57
|
+
use, the Software, even if they were told that such damage was possible.
|
|
58
|
+
|
|
59
|
+
6. Termination
|
|
60
|
+
|
|
61
|
+
This licence ends automatically if you breach any of its conditions. When it ends you must stop using the Software
|
|
62
|
+
and delete all your copies. Sections 3 to 8 survive termination.
|
|
63
|
+
|
|
64
|
+
7. Reservation of rights
|
|
65
|
+
|
|
66
|
+
All rights not expressly granted in this licence are reserved by InfoMus Lab - Casa Paganini. No right is granted
|
|
67
|
+
to use the names "InfoMus", "Casa Paganini" or "EyesWeb", or those of the University of Genoa, other than to give
|
|
68
|
+
the acknowledgement required by condition 2(2).
|
|
69
|
+
|
|
70
|
+
8. Governing law
|
|
71
|
+
|
|
72
|
+
This licence is governed by Italian law. The Court of Genoa has exclusive jurisdiction over any dispute arising
|
|
73
|
+
from it, except where mandatory law gives you the right to bring a claim in another court.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eyesweb-core
|
|
3
|
+
Version: 2.0.0a3
|
|
4
|
+
Summary: Compiled EyesWeb core: C++ ports of EyesWeb movement-analysis blocks, used by PyEyesWeb (import name eyesweb_core)
|
|
5
|
+
License-Expression: LicenseRef-InfoMus-Binary
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: THIRD_PARTY_NOTICES
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Programming Language :: C++
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: numpy>=1.23
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# EyesWebCore
|
|
21
|
+
|
|
22
|
+
Pure C++17 library with ports of the EyesWeb movement-analysis blocks (motion, trajectory, space, synchronization,
|
|
23
|
+
dance, base blocks, imaging, humanoid model) and the lab's own features. It has no EyesWeb, TouchDesigner or Python
|
|
24
|
+
dependency.
|
|
25
|
+
|
|
26
|
+
**This repository is PRIVATE and closed source.** It contains the C++ core, its tests and the nanobind bindings, and
|
|
27
|
+
builds the compiled module `eyesweb_core` (shipped as the binary wheel `eyesweb-core`). The public Python package is
|
|
28
|
+
`PyEyesWeb`, which is pure Python and depends on that module.
|
|
29
|
+
|
|
30
|
+
## Layout
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
core/include/ew/features/<area>/ block headers (documentation in each header); also common/, math/, filters/
|
|
34
|
+
core/src/ implementations
|
|
35
|
+
tests/<area>/test_<name>.cpp tests (self-registering, tests/main.cpp is the runner)
|
|
36
|
+
bindings/ nanobind bindings (module eyesweb_core); bindings/tests/test_bindings.py smoke test
|
|
37
|
+
third_party/pocketfft vendored header-only FFT
|
|
38
|
+
VERSION, pyproject.toml wheel build (scikit-build-core); VERSION is the single source of the version
|
|
39
|
+
.github/workflows/wheels.yml CI: cibuildwheel, sdist, publish
|
|
40
|
+
tools/add_spdx_headers.py SPDX header script (dry run by default; `--write` applies it)
|
|
41
|
+
LICENSE InfoMus Binary Licence (shipped in the wheel and the sdist)
|
|
42
|
+
THIRD_PARTY_NOTICES notices of vendored and compiled-in third-party code
|
|
43
|
+
dev-notes/ specs and RELEASE.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Build and test
|
|
47
|
+
|
|
48
|
+
Windows (MSVC):
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
|
|
52
|
+
cmake --build build --config Release --parallel
|
|
53
|
+
build\Release\ew_tests.exe
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Linux / macOS:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
60
|
+
cmake --build build --parallel
|
|
61
|
+
./build/ew_tests
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Python module `eyesweb_core` for development (needs Python 3.10 or newer and nanobind; lands in `build\Release`):
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DEW_BUILD_PYTHON=ON -Dnanobind_DIR=<python -m nanobind --cmake_dir> -DPython_EXECUTABLE=<python>
|
|
68
|
+
cmake --build build --config Release --parallel
|
|
69
|
+
python bindings/tests/test_bindings.py build/Release
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
PyEyesWeb finds a local build with `EYESWEB_CORE_PATH=<folder holding the module>`.
|
|
73
|
+
|
|
74
|
+
## The wheel (`eyesweb-core`)
|
|
75
|
+
|
|
76
|
+
The distributable is the binary wheel `eyesweb-core` (import name `eyesweb_core`), built with scikit-build-core from
|
|
77
|
+
`pyproject.toml` (`pip install scikit-build-core nanobind build`):
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
python -m build --wheel # or: pip wheel . --no-deps -w <dir outside the repo>
|
|
81
|
+
pip install <wheel>
|
|
82
|
+
python bindings/tests/test_bindings.py # no argument: tests the installed module
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
On Windows set `CMAKE_GENERATOR="Visual Studio 17 2022"` first (otherwise scikit-build-core may pick Ninja and a MinGW
|
|
86
|
+
compiler found on the PATH). The wheel holds only the compiled module (top level `eyesweb_core`) and `THIRD_PARTY_NOTICES`;
|
|
87
|
+
the C++ test executable is not part of it. The stable ABI (`wheel.py-api`, one wheel for Python 3.12+) is not enabled yet:
|
|
88
|
+
wheels are per Python version.
|
|
89
|
+
|
|
90
|
+
Versions. The single source is the file `VERSION` (PEP 440, now `2.0.0a3`). CMake takes its numeric part for
|
|
91
|
+
`project()` and compiles the full string into the module as `eyesweb_core.__version__`; scikit-build-core reads the same
|
|
92
|
+
file for the wheel metadata. `eyesweb_core.__build__` is the git short hash at configure time (`unknown` without `.git`,
|
|
93
|
+
override with `-DEW_BUILD_HASH=`). PyEyesWeb (`pyeyesweb/_core.py`) compares only the major and minor numbers of
|
|
94
|
+
`__version__` with `REQUIRED_CORE` and depends on `eyesweb-core>=2.0,<2.1`: a new minor version of the core means a new
|
|
95
|
+
`REQUIRED_CORE` and a new pin there. A pre-release suffix (`a1`, `rc1`) after the patch number is fine for that check;
|
|
96
|
+
keep three numeric parts (`2.0.0a1`, never `2.0a1`).
|
|
97
|
+
|
|
98
|
+
CI (`.github/workflows/wheels.yml`, never run yet) builds wheels with cibuildwheel for Windows, Linux (manylinux_2_28
|
|
99
|
+
x86_64) and macOS (x86_64 and arm64), Python 3.10 to 3.13, with warnings as errors, runs the binding smoke test on each
|
|
100
|
+
installed wheel, builds the sdist, and publishes with trusted publishing: TestPyPI by manual run, PyPI when a release is
|
|
101
|
+
published. Release procedure: `dev-notes/RELEASE.md` (TestPyPI first).
|
|
102
|
+
|
|
103
|
+
Tests are built only when this is the top-level project (`-DEW_BUILD_TESTS=OFF` to skip); `-DEW_WARNINGS_AS_ERRORS=ON` makes any warning an error (CI). The module reports `__version__` (the CMake project version, which PyEyesWeb checks at import: bump it with the bindings) and `__build__` (git hash). Used with
|
|
104
|
+
`add_subdirectory`, the library target is `ew_core`.
|
|
105
|
+
|
|
106
|
+
## Fidelity policy
|
|
107
|
+
|
|
108
|
+
Each block reproduces the original EyesWeb behaviour, bugs included, unless a correction was decided by the
|
|
109
|
+
maintainers and documented. The rules are in `CONVENTIONS.md`; each correction and deviation is stated in the header of
|
|
110
|
+
the block.
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
|
|
114
|
+
Copyright (c) 2026 InfoMus Lab - Casa Paganini. The wheel is distributed under the InfoMus Binary Licence
|
|
115
|
+
(`LicenseRef-InfoMus-Binary`, file `LICENSE`): use and redistribution of the unmodified binary are free, the lab must be
|
|
116
|
+
acknowledged and cited, the source code is not licensed. Third-party notices: `THIRD_PARTY_NOTICES` (shipped in the wheel and
|
|
117
|
+
the sdist). `third_party/pocketfft` keeps its own license. The draft licence awaits review by the technology-transfer office
|
|
118
|
+
(`dev-notes/LICENSE_REVIEW.md`, private). Every .h/.cpp/.py file starts with an SPDX header (see `CONVENTIONS.md`).
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# EyesWebCore
|
|
2
|
+
|
|
3
|
+
Pure C++17 library with ports of the EyesWeb movement-analysis blocks (motion, trajectory, space, synchronization,
|
|
4
|
+
dance, base blocks, imaging, humanoid model) and the lab's own features. It has no EyesWeb, TouchDesigner or Python
|
|
5
|
+
dependency.
|
|
6
|
+
|
|
7
|
+
**This repository is PRIVATE and closed source.** It contains the C++ core, its tests and the nanobind bindings, and
|
|
8
|
+
builds the compiled module `eyesweb_core` (shipped as the binary wheel `eyesweb-core`). The public Python package is
|
|
9
|
+
`PyEyesWeb`, which is pure Python and depends on that module.
|
|
10
|
+
|
|
11
|
+
## Layout
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
core/include/ew/features/<area>/ block headers (documentation in each header); also common/, math/, filters/
|
|
15
|
+
core/src/ implementations
|
|
16
|
+
tests/<area>/test_<name>.cpp tests (self-registering, tests/main.cpp is the runner)
|
|
17
|
+
bindings/ nanobind bindings (module eyesweb_core); bindings/tests/test_bindings.py smoke test
|
|
18
|
+
third_party/pocketfft vendored header-only FFT
|
|
19
|
+
VERSION, pyproject.toml wheel build (scikit-build-core); VERSION is the single source of the version
|
|
20
|
+
.github/workflows/wheels.yml CI: cibuildwheel, sdist, publish
|
|
21
|
+
tools/add_spdx_headers.py SPDX header script (dry run by default; `--write` applies it)
|
|
22
|
+
LICENSE InfoMus Binary Licence (shipped in the wheel and the sdist)
|
|
23
|
+
THIRD_PARTY_NOTICES notices of vendored and compiled-in third-party code
|
|
24
|
+
dev-notes/ specs and RELEASE.md
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Build and test
|
|
28
|
+
|
|
29
|
+
Windows (MSVC):
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
|
|
33
|
+
cmake --build build --config Release --parallel
|
|
34
|
+
build\Release\ew_tests.exe
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Linux / macOS:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
|
41
|
+
cmake --build build --parallel
|
|
42
|
+
./build/ew_tests
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Python module `eyesweb_core` for development (needs Python 3.10 or newer and nanobind; lands in `build\Release`):
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DEW_BUILD_PYTHON=ON -Dnanobind_DIR=<python -m nanobind --cmake_dir> -DPython_EXECUTABLE=<python>
|
|
49
|
+
cmake --build build --config Release --parallel
|
|
50
|
+
python bindings/tests/test_bindings.py build/Release
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
PyEyesWeb finds a local build with `EYESWEB_CORE_PATH=<folder holding the module>`.
|
|
54
|
+
|
|
55
|
+
## The wheel (`eyesweb-core`)
|
|
56
|
+
|
|
57
|
+
The distributable is the binary wheel `eyesweb-core` (import name `eyesweb_core`), built with scikit-build-core from
|
|
58
|
+
`pyproject.toml` (`pip install scikit-build-core nanobind build`):
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
python -m build --wheel # or: pip wheel . --no-deps -w <dir outside the repo>
|
|
62
|
+
pip install <wheel>
|
|
63
|
+
python bindings/tests/test_bindings.py # no argument: tests the installed module
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
On Windows set `CMAKE_GENERATOR="Visual Studio 17 2022"` first (otherwise scikit-build-core may pick Ninja and a MinGW
|
|
67
|
+
compiler found on the PATH). The wheel holds only the compiled module (top level `eyesweb_core`) and `THIRD_PARTY_NOTICES`;
|
|
68
|
+
the C++ test executable is not part of it. The stable ABI (`wheel.py-api`, one wheel for Python 3.12+) is not enabled yet:
|
|
69
|
+
wheels are per Python version.
|
|
70
|
+
|
|
71
|
+
Versions. The single source is the file `VERSION` (PEP 440, now `2.0.0a3`). CMake takes its numeric part for
|
|
72
|
+
`project()` and compiles the full string into the module as `eyesweb_core.__version__`; scikit-build-core reads the same
|
|
73
|
+
file for the wheel metadata. `eyesweb_core.__build__` is the git short hash at configure time (`unknown` without `.git`,
|
|
74
|
+
override with `-DEW_BUILD_HASH=`). PyEyesWeb (`pyeyesweb/_core.py`) compares only the major and minor numbers of
|
|
75
|
+
`__version__` with `REQUIRED_CORE` and depends on `eyesweb-core>=2.0,<2.1`: a new minor version of the core means a new
|
|
76
|
+
`REQUIRED_CORE` and a new pin there. A pre-release suffix (`a1`, `rc1`) after the patch number is fine for that check;
|
|
77
|
+
keep three numeric parts (`2.0.0a1`, never `2.0a1`).
|
|
78
|
+
|
|
79
|
+
CI (`.github/workflows/wheels.yml`, never run yet) builds wheels with cibuildwheel for Windows, Linux (manylinux_2_28
|
|
80
|
+
x86_64) and macOS (x86_64 and arm64), Python 3.10 to 3.13, with warnings as errors, runs the binding smoke test on each
|
|
81
|
+
installed wheel, builds the sdist, and publishes with trusted publishing: TestPyPI by manual run, PyPI when a release is
|
|
82
|
+
published. Release procedure: `dev-notes/RELEASE.md` (TestPyPI first).
|
|
83
|
+
|
|
84
|
+
Tests are built only when this is the top-level project (`-DEW_BUILD_TESTS=OFF` to skip); `-DEW_WARNINGS_AS_ERRORS=ON` makes any warning an error (CI). The module reports `__version__` (the CMake project version, which PyEyesWeb checks at import: bump it with the bindings) and `__build__` (git hash). Used with
|
|
85
|
+
`add_subdirectory`, the library target is `ew_core`.
|
|
86
|
+
|
|
87
|
+
## Fidelity policy
|
|
88
|
+
|
|
89
|
+
Each block reproduces the original EyesWeb behaviour, bugs included, unless a correction was decided by the
|
|
90
|
+
maintainers and documented. The rules are in `CONVENTIONS.md`; each correction and deviation is stated in the header of
|
|
91
|
+
the block.
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
Copyright (c) 2026 InfoMus Lab - Casa Paganini. The wheel is distributed under the InfoMus Binary Licence
|
|
96
|
+
(`LicenseRef-InfoMus-Binary`, file `LICENSE`): use and redistribution of the unmodified binary are free, the lab must be
|
|
97
|
+
acknowledged and cited, the source code is not licensed. Third-party notices: `THIRD_PARTY_NOTICES` (shipped in the wheel and
|
|
98
|
+
the sdist). `third_party/pocketfft` keeps its own license. The draft licence awaits review by the technology-transfer office
|
|
99
|
+
(`dev-notes/LICENSE_REVIEW.md`, private). Every .h/.cpp/.py file starts with an SPDX header (see `CONVENTIONS.md`).
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
THIRD PARTY NOTICES for eyesweb-core (import name eyesweb_core)
|
|
2
|
+
================================================================
|
|
3
|
+
|
|
4
|
+
This software is Copyright (c) 2026 InfoMus Lab - Casa Paganini; see LICENSE. It derives from the EyesWeb Expressive
|
|
5
|
+
Gesture Analysis library developed by the same lab.
|
|
6
|
+
|
|
7
|
+
This file lists the third-party material that is part of, or compiled into, eyesweb-core, with the notices that the
|
|
8
|
+
respective licences require. It does not state the licence of eyesweb-core itself (see LICENSE).
|
|
9
|
+
|
|
10
|
+
--------------------------------------------------------------------------------
|
|
11
|
+
1. pocketfft (header-only C++ FFT), vendored in third_party/pocketfft
|
|
12
|
+
--------------------------------------------------------------------------------
|
|
13
|
+
Used by the FFT in core/include/ew/math/fft.h. Licence: BSD 3-clause. The notice below is copied verbatim from the header
|
|
14
|
+
of third_party/pocketfft/pocketfft_hdronly.h (the same file vendors a LICENSE.md with the 2010-2018 text).
|
|
15
|
+
|
|
16
|
+
This file is part of pocketfft.
|
|
17
|
+
|
|
18
|
+
Copyright (C) 2010-2024 Max-Planck-Society
|
|
19
|
+
Copyright (C) 2019-2020 Peter Bell
|
|
20
|
+
|
|
21
|
+
For the odd-sized DCT-IV transforms:
|
|
22
|
+
Copyright (C) 2003, 2007-14 Matteo Frigo
|
|
23
|
+
Copyright (C) 2003, 2007-14 Massachusetts Institute of Technology
|
|
24
|
+
|
|
25
|
+
For the prev_good_size search:
|
|
26
|
+
Copyright (C) 2024 Tan Ping Liang, Peter Bell
|
|
27
|
+
|
|
28
|
+
For the safeguards against integer overflow in good_size search:
|
|
29
|
+
Copyright (C) 2024 Cris Luengo
|
|
30
|
+
|
|
31
|
+
Authors: Martin Reinecke, Peter Bell
|
|
32
|
+
|
|
33
|
+
All rights reserved.
|
|
34
|
+
|
|
35
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
36
|
+
are permitted provided that the following conditions are met:
|
|
37
|
+
|
|
38
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
39
|
+
list of conditions and the following disclaimer.
|
|
40
|
+
* Redistributions in binary form must reproduce the above copyright notice, this
|
|
41
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
42
|
+
other materials provided with the distribution.
|
|
43
|
+
* Neither the name of the copyright holder nor the names of its contributors may
|
|
44
|
+
be used to endorse or promote products derived from this software without
|
|
45
|
+
specific prior written permission.
|
|
46
|
+
|
|
47
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
48
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
49
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
50
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
51
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
52
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
53
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
54
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
55
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
56
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
57
|
+
|
|
58
|
+
--------------------------------------------------------------------------------
|
|
59
|
+
2. nanobind (C++/Python binding library), compiled into the extension module
|
|
60
|
+
--------------------------------------------------------------------------------
|
|
61
|
+
Not vendored: fetched at build time as the Python package `nanobind` (build requirement). Its runtime (libnanobind) is
|
|
62
|
+
statically compiled into the module eyesweb_core, so its notice applies to the binary wheel. Licence: BSD 3-clause. Text
|
|
63
|
+
copied from the licence file of the nanobind package used for the build.
|
|
64
|
+
|
|
65
|
+
Copyright (c) 2022 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved.
|
|
66
|
+
|
|
67
|
+
Redistribution and use in source and binary forms, with or without
|
|
68
|
+
modification, are permitted provided that the following conditions are met:
|
|
69
|
+
|
|
70
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
71
|
+
list of conditions and the following disclaimer.
|
|
72
|
+
|
|
73
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
74
|
+
this list of conditions and the following disclaimer in the documentation
|
|
75
|
+
and/or other materials provided with the distribution.
|
|
76
|
+
|
|
77
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
78
|
+
may be used to endorse or promote products derived from this software
|
|
79
|
+
without specific prior written permission.
|
|
80
|
+
|
|
81
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
82
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
83
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
84
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
85
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
86
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
87
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
88
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
89
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
90
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0a3
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// SPDX-License-Identifier: LicenseRef-InfoMus-Binary
|
|
2
|
+
// SPDX-FileCopyrightText: Copyright (c) 2026 InfoMus Lab - Casa Paganini
|
|
3
|
+
#include <nanobind/nanobind.h>
|
|
4
|
+
#include <nanobind/stl/tuple.h>
|
|
5
|
+
|
|
6
|
+
#include "../convert.h"
|
|
7
|
+
#include "../registry.h"
|
|
8
|
+
#include "ew/features/base/binary_pulses_regularity.h"
|
|
9
|
+
|
|
10
|
+
namespace nb = nanobind;
|
|
11
|
+
|
|
12
|
+
namespace ewpy {
|
|
13
|
+
|
|
14
|
+
void bindBinaryPulsesRegularity(nb::module_& m) {
|
|
15
|
+
using Block = ew::base::BinaryPulsesRegularity;
|
|
16
|
+
nb::class_<Block>(
|
|
17
|
+
m, "BinaryPulsesRegularity",
|
|
18
|
+
"EyesWeb BinaryPulsesRegularity: whether the intervals between the pulses (non-zero samples) of a "
|
|
19
|
+
"window are all equal, within a threshold.")
|
|
20
|
+
.def(
|
|
21
|
+
"__init__",
|
|
22
|
+
[](Block* self, int threshold) {
|
|
23
|
+
Block::Params params;
|
|
24
|
+
params.threshold = threshold;
|
|
25
|
+
new (self) Block(params);
|
|
26
|
+
},
|
|
27
|
+
nb::arg("threshold") = 1)
|
|
28
|
+
.def(
|
|
29
|
+
"process",
|
|
30
|
+
[](Block& block, const AnyArray& window) {
|
|
31
|
+
const Block::Output output = block.process(toTimeSeries(window, 0.0));
|
|
32
|
+
return std::make_tuple(output.regular, output.pulseCount);
|
|
33
|
+
},
|
|
34
|
+
nb::arg("window"),
|
|
35
|
+
"window: one channel, (samples,) or (1, samples). Returns (regular, pulse_count).")
|
|
36
|
+
.def("reset", &Block::reset)
|
|
37
|
+
| adoptParams;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
EW_REGISTER_BINDING("base", bindBinaryPulsesRegularity);
|
|
41
|
+
|
|
42
|
+
} // namespace ewpy
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// SPDX-License-Identifier: LicenseRef-InfoMus-Binary
|
|
2
|
+
// SPDX-FileCopyrightText: Copyright (c) 2026 InfoMus Lab - Casa Paganini
|
|
3
|
+
#include <nanobind/nanobind.h>
|
|
4
|
+
#include <nanobind/stl/optional.h>
|
|
5
|
+
#include <nanobind/stl/vector.h>
|
|
6
|
+
|
|
7
|
+
#include "../convert.h"
|
|
8
|
+
#include "../registry.h"
|
|
9
|
+
#include "ew/features/base/time_window_synchronizer.h"
|
|
10
|
+
|
|
11
|
+
namespace nb = nanobind;
|
|
12
|
+
|
|
13
|
+
namespace ewpy {
|
|
14
|
+
|
|
15
|
+
void bindTimeWindowSynchronizer(nb::module_& m) {
|
|
16
|
+
using Block = ew::base::TimeWindowSynchronizer;
|
|
17
|
+
nb::class_<Block> cls(
|
|
18
|
+
m, "TimeWindowSynchronizer",
|
|
19
|
+
"EyesWeb Synchronizer: cuts asynchronous sampled streams and frame streams into windows of the same "
|
|
20
|
+
"duration.");
|
|
21
|
+
|
|
22
|
+
nb::class_<Block::Input>(cls, "Input", "One input of the synchronizer: a sampled stream or a frame stream.")
|
|
23
|
+
.def(
|
|
24
|
+
"__init__",
|
|
25
|
+
[](Block::Input* self, int channels, double sampling_rate) {
|
|
26
|
+
new (self) Block::Input{Block::InputType::Samples, channels, sampling_rate};
|
|
27
|
+
},
|
|
28
|
+
nb::arg("channels"), nb::arg("sampling_rate"), "A sampled stream (audio, motion capture, any time series).")
|
|
29
|
+
.def_static(
|
|
30
|
+
"frames", [] { return Block::Input{Block::InputType::Frames, 1, 0.0}; },
|
|
31
|
+
"A frame stream (video, or any non-sampled datatype).");
|
|
32
|
+
|
|
33
|
+
cls.def(
|
|
34
|
+
"__init__",
|
|
35
|
+
[](Block* self, double temporal_window, const std::vector<Block::Input>& inputs, double start_time) {
|
|
36
|
+
Block::Params params;
|
|
37
|
+
params.temporalWindow = temporal_window;
|
|
38
|
+
params.startTime = start_time;
|
|
39
|
+
params.inputs = inputs;
|
|
40
|
+
new (self) Block(std::move(params));
|
|
41
|
+
},
|
|
42
|
+
nb::arg("temporal_window"), nb::arg("inputs"), nb::arg("start_time") = 0.0)
|
|
43
|
+
.def(
|
|
44
|
+
"push_samples",
|
|
45
|
+
[](Block& block, int input, const AnyArray& chunk, std::optional<double> presentation_time) {
|
|
46
|
+
block.pushSamples(input, toTimeSeries(chunk, 0.0), presentation_time);
|
|
47
|
+
},
|
|
48
|
+
nb::arg("input"), nb::arg("chunk"), nb::arg("presentation_time") = nb::none(),
|
|
49
|
+
"chunk: (channels, samples). With a presentation time (seconds, of the first sample) the samples "
|
|
50
|
+
"older than the next window are dropped.")
|
|
51
|
+
.def("push_frame", &Block::pushFrame, nb::arg("input"), nb::arg("token"), nb::arg("presentation_time"))
|
|
52
|
+
.def("ready", &Block::ready)
|
|
53
|
+
.def(
|
|
54
|
+
"pop",
|
|
55
|
+
[](Block& block) {
|
|
56
|
+
Block::Window window = block.pop();
|
|
57
|
+
nb::list samples;
|
|
58
|
+
for (std::size_t input = 0; input < window.samples.size(); ++input) {
|
|
59
|
+
if (block.params().inputs[input].type == Block::InputType::Frames)
|
|
60
|
+
samples.append(nb::none());
|
|
61
|
+
else
|
|
62
|
+
samples.append(toNumpy(std::move(window.samples[input])));
|
|
63
|
+
}
|
|
64
|
+
return nb::make_tuple(window.startTime, window.duration, samples, window.frameTokens);
|
|
65
|
+
},
|
|
66
|
+
"Returns (start_time, duration, samples, frame_tokens): per input a (channels, samples) array "
|
|
67
|
+
"(None for a frame input) and the token of its frame (-1: none yet, or a sampled input).")
|
|
68
|
+
.def("reset", &Block::reset)
|
|
69
|
+
.def("samples_per_window", &Block::samplesPerWindow, nb::arg("input"))
|
|
70
|
+
.def_prop_ro("next_window_start", &Block::nextWindowStart)
|
|
71
|
+
| adoptParams;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
EW_REGISTER_BINDING("base", bindTimeWindowSynchronizer);
|
|
75
|
+
|
|
76
|
+
} // namespace ewpy
|