int main () { #ifdef USE_SSI_LEAK_DETECTOR { #endif ssi_print ("%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION); Factory::RegisterDLL ("event"); Factory::RegisterDLL ("frame"); Factory::RegisterDLL ("ioput"); Factory::RegisterDLL ("mouse"); Factory::RegisterDLL ("graphic"); Factory::RegisterDLL ("control"); #if SSI_RANDOM_LEGACY_FLAG ssi_random_seed(); #endif Socket::TYPE::List type_udp = Socket::TYPE::UDP; Socket::TYPE::List type_tcp = Socket::TYPE::TCP; Exsemble ex; ex.console(0, 0, CONSOLE_WIDTH, CONSOLE_HEIGHT); ex.add(&ex_filepath, 0, "FILEPATH", "How to use 'FilePath' to decompose a filepath."); ex.add(&ex_file, 0, "FILE", "How to use 'File' to write to an ascii/binary file."); ex.add(&ex_lz4, 0, "FILE-LZ4", "How to use 'File' to write to a compressed file."); ex.add(&ex_memory, 0, "MEMORY", "How to use 'FileMem' to write into memory."); ex.add(&ex_writer, 0, "WRITER", "How to use 'MemoryWriter' and 'FileWriter' to store a stream to memory / to a file."); ex.add(&ex_stream, 0, "STREAM", "How to write/read a stream to a file."); ex.add(&ex_event, 0, "EVENT", "How to write/read events to a file."); ex.add(&ex_csv, 0, "CSV", "How to read a comma separated file."); ex.add(&ex_simulator, 0, "SIMULATOR", "How to use 'FileReader' to feed a stream from a file into a pipeline."); ex.add(&ex_annotation, 0, "ANNOTATION", "How to use 'FileAnnotationWriter' to create annotations from events."); ex.add(&ex_annotation_offline, 0, "ANNOTATION OFFLINE", "How to use 'FileAnnotationWriter' offline."); ex.add(&ex_samples, 0, "SAMPLES", "How to use 'FileSampleWriter' to store samples to a file from a pipeline."); ex.add(&ex_socket, 0, "BASICS", "How to send/receive socket messages."); ex.add(&ex_tcp2way, 0, "TCP2WAY", "How to establish a two way tcp connection."); ex.add(&ex_sender, &type_udp, "STREAM UDP", "How to stream a signal from a pipeline using UDP."); ex.add(&ex_sender_events, &type_udp, "SEND EVENTS UDP", "How to send events from a pipeline using UDP."); ex.add(&ex_sender, &type_tcp, "STREAM TCP", "How to stream a signal from a pipeline using TCP."); ex.add(&ex_sender_events, &type_tcp, "SEND EVENTS TCP", "How to send events from a pipeline using TCP."); ex.add(&ex_sender_video, 0, "STREAM VIDEO", "How to stream a video from a pipeline."); #ifndef SSI_USE_SDL ex.add(&ex_send_notifications, 0, "SEND NOTIFICATIONS", "How to send notifications using a socket connection."); #endif //ex.add(&ex_sender_file, 0, "FILE", "How to transfer the content of a file."); ex.add(&ex_download_file, 0, "DOWNLOAD FILE", "How to donwload a file."); ex.show(); Factory::Clear (); #ifdef USE_SSI_LEAK_DETECTOR } _CrtDumpMemoryLeaks(); #endif return 0; }
int main(int argc, char* const argv[]){ #ifdef USE_SSI_LEAK_DETECTOR { #endif ssi_print("%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION); Factory::RegisterDLL("ssiframe.dll"); Factory::RegisterDLL("ssievent.dll"); Factory::RegisterDLL("ssibiosig.dll"); Factory::RegisterDLL("ssiioput.dll"); Factory::RegisterDLL("ssisignal.dll"); Factory::RegisterDLL("ssigraphic.dll"); Exsemble ex; ex.console(0, 0, 650, 600); ex.add(ex_buffer, 0, "BUFFER", ""); ex.add(ex_bvp_beat_events_raw, 0, "BVP", "Beat detection"); ex.add(ex_bvp_beat_events_statistical, 0, "BVP", "Beat events statistics"); ex.add(ex_gsr_peaks, 0, "GSR", "Peaks"); ex.add(ex_gsr_peaks_online, 0, "GSR", "Peaks online"); ex.add(ex_gsr_baseline, 0, "GSR", "Baseline"); ex.add(ex_gsr_baseline_mean, 0, "GSR", "Baseline mean"); ex.add(ex_gsr_arousal, 0, "GSR", "Arousal"); ex.add(ex_gsr_response_amplitude_events, 0, "GSR", "Response amplitude events"); ex.add(ex_ecg_detection, 0, "ECG", "Beat detection"); ex.add(ex_qrs_detection_online, 0, "QRS", "Beat detection"); ex.add(ex_qrs_pulse_event, 0, "QRS", "Pulse"); ex.add(ex_qrs_hrv_event, 0, "QRS", "HRV"); ex.add(ex_qrs_heartrate, 0, "QRS", "Heartrate"); ex.add(ex_qrs_heartrate_online, 0, "QRS", "Heartrate online"); ex.add(ex_qrs_heartrate_mean, 0, "QRS", "Heartrate mean"); ex.add(ex_qrs_hr_features, 0, "QRS", "HR features"); ex.show(); return true; Factory::Clear(); #ifdef USE_SSI_LEAK_DETECTOR } _CrtDumpMemoryLeaks(); #endif return 0; }
int main () { #ifdef USE_SSI_LEAK_DETECTOR { #endif ssi_print("%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION); Factory::RegisterDLL("frame"); Factory::RegisterDLL("event"); Factory::RegisterDLL("mouse"); Factory::RegisterDLL("graphic"); Factory::RegisterDLL("ioput"); Factory::RegisterDLL("python"); ssi_type_t type = SSI_INT; #if SSI_RANDOM_LEGACY_FLAG ssi_random_seed(); #endif Exsemble ex; ex.console(0, 0, 650, 600); ex.add(ex_print, 0, "PRINT", "Print input stream(s)."); ex.add(ex_event, 0, "EVENT", "Receive and send events."); ex.add(ex_clone, 0, "CLONE", "Copy input to output."); ex.add(ex_energy, 0, "ENERGY", "Calculate energy."); ex.add(ex_diff, 0, "DIFF", "Calculate 1st derivative."); #ifndef DEBUG ex.add(ex_pearson, 0, "PPMCC", "Calculate Pearson product-moment correlation coefficient (requires numpy and scipy)."); ex.add(ex_imggray, 0, "IMG RGB2GRAY", "Convert rgb image to grayscale (requires numpy and opencv)."); ex.add(ex_imgavg, 0, "IMG AVG", "Calculate average of each channel in an image (requires numpy and opencv)."); ex.add(ex_imgplot, 0, "IMG PLOT", "Plot image (requires numpy and opencv)."); #endif ex.add(ex_sensor, 0, "SENSOR", "Provide a stream."); ex.add(ex_offline, 0, "OFFLINE", "Run a script offline."); ex.add(ex_model, 0, "MODEL", "Train/Save/Load a machine learning model"); ex.show(); Factory::Clear(); #ifdef USE_SSI_LEAK_DETECTOR } _CrtDumpMemoryLeaks(); #endif return 0; }
int main () { #ifdef USE_SSI_LEAK_DETECTOR { #endif ssi_print ("%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION); Factory::RegisterDLL ("model"); Factory::RegisterDLL ("graphic"); Factory::RegisterDLL ("signal"); Factory::RegisterDLL ("libsvm"); #if SSI_RANDOM_LEGACY_FLAG ssi_random_seed (); #endif Exsemble exsemble; exsemble.console(0, 0, 650, 800); exsemble.add(&ex_eval, 0, "EVALUATION", "How to do an evaluation."); exsemble.add(&ex_eval_regression, 0, "EVALUATION REGRESSION", "How to do an evaluation for a regression task."); exsemble.add(&ex_model, 0, "MODEL", "How to train a single model."); exsemble.add(&ex_model_norm, 0, "MODEL+NORM", "How to train a single model + normalization."); exsemble.add(&ex_model_frame, 0, "FRAME FUSION", "How to train a model that fuses frames."); exsemble.add(&ex_hierarchical, 0, "HIERARCHICAL", "How to train a hierarchical model."); exsemble.add(&ex_fusion, 0, "FUSION", "How to train a fusion model."); exsemble.show(); Factory::Clear (); #ifdef USE_SSI_LEAK_DETECTOR } _CrtDumpMemoryLeaks(); #endif return 0; }