int main () { #ifdef USE_SSI_LEAK_DETECTOR { #endif HMODULE hDLL = NULL; #ifdef _DEBUG hDLL = LoadLibrary(L"ssidialogd.dll"); #else hDLL = LoadLibrary(L"E:\\code\\intelliVoice\\bin\\x64\\vc140\\ssidialog.dll"); #endif init (hDLL); Exsemble ex; ex.add(&ex_selection, 0, "SELECTION", "How to create a selection dialog."); ex.add(&ex_camdevice, 0, "CAMDEVICE", "How to use camera device selection dialog."); ex.add(&ex_pinandmedia, 0, "CAMMEDIA", "How to use camera media selection dialog."); ex.show(); FreeLibrary (hDLL); #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 ("ssievent"); Factory::RegisterDLL ("ssiioput"); Factory::RegisterDLL ("ssisignal"); Factory::RegisterDLL ("ssimodel"); ssi_random_seed (); Exsemble ex; ex.add(&ex_event_write, 0, "EVENT_WRITE", "How to write events to a file."); ex.add(&ex_stream_write, 0, "STREAM_WRITE", "How to write streams to a file."); ex.add(&ex_stream_read, 0, "STREAM_READ", "How to read streams from a file."); ex.add(&ex_sample_write, 0, "SAMPLES_WRITE", "How to write samples to a file."); ex.add(&ex_sample_read, 0, "SAMPLES_READ", "How to read samples from a file."); ex.add(&ex_wav_write, 0, "WAV_WRITE", "How to write samples to a wav file."); 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("ssievent"); Factory::RegisterDLL("ssiframe"); Factory::RegisterDLL ("ssiwebsocket"); Exsemble ex; ex.add(&ex_events_empty, 0, "EVENTS EMPTY", "How to use Websocket to send SSI events with type EMPTY to the browser and how to receive data from the browser."); ex.add(&ex_events_string, 0, "EVENTS STRING", "How to use Websocket to send SSI events with type STRING to the browser and how to receive data from the browser."); ex.add(&ex_stream, 0, "STREAMING TO BROWSER", "How to use Websocket to stream SSI streams to the browser."); ex.add(&ex_stream_info, 0, "STREAMING TO BROWSER WITH INFO", "How to use Websocket to stream SSI streams to the browser. Stream info message is sent at beginning."); ex.add(&ex_mobile_events, 0, "EVENTS FROM BROWSER", "How to use Websocket to receive sensor data from mobile devices."); ex.show(); Factory::Clear(); #ifdef USE_SSI_LEAK_DETECTOR } _CrtDumpMemoryLeaks(); #endif std::cout << std::endl << "Press Enter to close." << std::endl; getchar(); 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; }
int main () { #ifdef USE_SSI_LEAK_DETECTOR { #endif ssi_print ("%s\n\nbuild version: %s\n\n", SSI_COPYRIGHT, SSI_VERSION); Factory::RegisterDLL ("ssiframe"); Factory::RegisterDLL ("ssiopensmile"); Factory::RegisterDLL ("ssigraphic"); Factory::RegisterDLL ("ssiaudio"); Factory::RegisterDLL ("ssisignal"); Factory::RegisterDLL ("ssiioput"); Factory::RegisterDLL ("ssievent"); Exsemble ex; ex.add(ex_functionals, 0, "FUNCTIONALS", "Demonstrates extraction of functionals"); ex.add(ex_intensity, 0, "INTENSITY", "Demonstrates extraction of intensity"); ex.add(ex_lpc, 0, "LPC", "Demonstrates extraction of LPC coefficients"); ex.add(ex_plp, 0, "PLP", "Demonstrates extraction of PLP coefficients"); ex.add(ex_mfcc, 0, "MFCC", "Demonstrates extraction of MFCC coefficients"); ex.add(ex_mfcc_chain, 0, "MFCC-CHAIN", "Demonstrates extraction of MFCC coefficients"); ex.add(ex_pitch, 0, "PITCH", "Demonstrates extraction of pitch"); ex.add(ex_pitch_chain, 0, "PITCH-CHAIN", "Demonstrates extraction of pitch"); ex.add(ex_pitchdirection, 0, "PITCH-DIRECTION", "Demonstrates extraction of pitch direction"); ex.add(ex_vad, 0, "VAD", "Demonstrates voice activity detection"); 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); ssimsg = new FileMessage("ssi.log"); Factory::RegisterDLL ("ssievent", 0, ssimsg); Factory::RegisterDLL ("ssiframe", 0, ssimsg); //Factory::RegisterDLL ("ssigraphic", 0, ssimsg); Factory::RegisterDLL ("ssimouse", 0, ssimsg); Factory::RegisterDLL ("ssiioput", 0, ssimsg); ssi_random_seed (); Exsemble ex; ex.add(&ex_msg, 0, "MESSAGE", "How to output ssi formated messages."); ex.add(&ex_buffer, 0, "BUFFER", "How to use 'Buffer' class."); ex.add(&ex_timebuffer, 0, "TIMEBUFFER", "How to use 'TimeBuffer' class."); ex.add(&ex_framework, 0, "FRAMEWORK", "How to set up a pipeline using 'TheFramework'."); ex.add(&ex_sensor, 0, "SENSOR", "How to use input from a live sensor"); ex.add(&ex_event, 0, "EVENT", "How to send/receive events in a pipeline."); ex.add(&ex_trigger, 0, "TRIGGER", "How to use a stream to trigger a consumer."); ex.add(&ex_async, 0, "ASYNC", "How to run a transformer asynchronously."); ex.add(&ex_sync, 0, "SYNC", "How to sync two separate pipelines."); ex.add(&ex_timeserver, 0, "TIMESERVER", "How to use pipeline as a timeserver."); ex.add(&ex_xml, 0, "XML", "How to run a xml pipeline from code."); ex.add(&ex_export, 0, "EXPORT", "How to export dlls used by a pipeline to a directory."); ex.show(); Factory::Clear (); delete ssimsg; ssimsg = 0; #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 ("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; }