From 54b813294909ded6720072eafe1db03e09fe8eab Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 5 Sep 2019 22:13:48 +0200 Subject: [PATCH] License update. --- LICENSE | 3 +- ml/cmsisnn/nn_convert.py | 5 ++- ml/cmsisnn/nn_run_all.sh | 7 ++++ ml/haarcascade/cascade_convert.py | 7 +++- src/Makefile | 9 +++++ src/bootloader/Makefile | 9 ++++- src/bootloader/src/main.c | 10 +++++ src/bootloader/src/stm32fxxx_hal_msp.c | 6 ++- src/bootloader/src/stm32fxxx_it.c | 6 ++- src/bootloader/stm32fxxx.ld.S | 6 ++- src/cmsis/Makefile | 10 ++++- src/fatfs/Makefile | 9 ++++- src/lepton/Makefile | 8 ++++ src/mlx/Makefile | 8 ++++ src/omv/Makefile | 10 ++++- src/omv/array.c | 6 ++- src/omv/array.h | 6 ++- src/omv/boards/OPENMV1/imlib_config.h | 6 ++- src/omv/boards/OPENMV1/omv_boardconfig.h | 6 ++- src/omv/boards/OPENMV2/imlib_config.h | 6 ++- src/omv/boards/OPENMV2/omv_boardconfig.h | 6 ++- src/omv/boards/OPENMV3/imlib_config.h | 6 ++- src/omv/boards/OPENMV3/omv_boardconfig.h | 6 ++- src/omv/boards/OPENMV4/imlib_config.h | 6 ++- src/omv/boards/OPENMV4/omv_boardconfig.h | 6 ++- src/omv/boards/OPENMV4R/imlib_config.h | 6 ++- src/omv/boards/OPENMV4R/omv_boardconfig.h | 6 ++- src/omv/cambus.c | 6 ++- src/omv/cambus.h | 46 ++++++++++++----------- src/omv/common.h | 6 ++- src/omv/framebuffer.c | 8 ++-- src/omv/framebuffer.h | 8 ++-- src/omv/img/apriltag.c | 11 ++++-- src/omv/img/binary.c | 11 ++++-- src/omv/img/blob.c | 14 ++++--- src/omv/img/bmp.c | 6 ++- src/omv/img/clahe.c | 11 ++++-- src/omv/img/collections.c | 11 ++++-- src/omv/img/collections.h | 11 ++++-- src/omv/img/dmtx.c | 11 ++++-- src/omv/img/draw.c | 11 ++++-- src/omv/img/edge.c | 6 ++- src/omv/img/eye.c | 17 +++++---- src/omv/img/filter.c | 11 ++++-- src/omv/img/fmath.c | 6 ++- src/omv/img/fmath.h | 6 ++- src/omv/img/font.c | 5 ++- src/omv/img/font.h | 6 ++- src/omv/img/gif.c | 8 ++-- src/omv/img/haar.c | 8 ++-- src/omv/img/hog.c | 5 ++- src/omv/img/hough.c | 11 ++++-- src/omv/img/imlib.c | 6 ++- src/omv/img/imlib.h | 11 ++++-- src/omv/img/integral.c | 6 ++- src/omv/img/integral_mw.c | 5 ++- src/omv/img/jpeg.c | 11 +++--- src/omv/img/kmeans.c | 6 ++- src/omv/img/lbp.c | 21 ++++++----- src/omv/img/line.c | 11 ++++-- src/omv/img/lsd.c | 11 ++++-- src/omv/img/mathop.c | 11 ++++-- src/omv/img/mjpeg.c | 8 ++-- src/omv/img/orb.c | 6 ++- src/omv/img/phasecorrelation.c | 11 ++++-- src/omv/img/point.c | 6 ++- src/omv/img/ppm.c | 6 ++- src/omv/img/qrcode.c | 11 ++++-- src/omv/img/rectangle.c | 6 ++- src/omv/img/selective_search.c | 9 +++-- src/omv/img/shadow_removal.c | 11 ++++-- src/omv/img/stats.c | 11 ++++-- src/omv/img/template.c | 6 ++- src/omv/img/zbar.c | 11 ++++-- src/omv/ini.c | 11 ++++-- src/omv/ini.h | 22 +++++------ src/omv/lepton.c | 7 ++-- src/omv/lepton.h | 6 ++- src/omv/main.c | 6 ++- src/omv/mt9v034.c | 7 ++-- src/omv/mt9v034.h | 6 ++- src/omv/mutex.c | 8 ++-- src/omv/mutex.h | 8 ++-- src/omv/nn/nn.c | 9 +++-- src/omv/nn/nn.h | 9 +++-- src/omv/ov2640.c | 6 ++- src/omv/ov2640.h | 6 ++- src/omv/ov2640_regs.h | 6 ++- src/omv/ov5640.c | 6 ++- src/omv/ov5640.h | 6 ++- src/omv/ov5640_regs.h | 6 ++- src/omv/ov7725.c | 6 ++- src/omv/ov7725.h | 6 ++- src/omv/ov7725_regs.h | 6 ++- src/omv/ov9650.c | 6 ++- src/omv/ov9650.h | 28 +++++++------- src/omv/ov9650_regs.h | 6 ++- src/omv/py/mp.h | 6 ++- src/omv/py/py_assert.h | 6 ++- src/omv/py/py_cpufreq.c | 7 ++-- src/omv/py/py_cpufreq.h | 6 ++- src/omv/py/py_fir.c | 8 ++-- src/omv/py/py_fir.h | 8 ++-- src/omv/py/py_gif.c | 6 ++- src/omv/py/py_helper.c | 11 ++++-- src/omv/py/py_helper.h | 11 ++++-- src/omv/py/py_image.c | 7 ++-- src/omv/py/py_image.h | 6 ++- src/omv/py/py_lcd.c | 6 ++- src/omv/py/py_lcd.h | 6 ++- src/omv/py/py_mjpeg.c | 6 ++- src/omv/py/py_nn.c | 10 ++++- src/omv/py/py_omv.c | 10 ++++- src/omv/py/py_sensor.c | 6 ++- src/omv/py/py_sensor.h | 6 ++- src/omv/py/py_time.c | 6 ++- src/omv/py/py_time.h | 6 ++- src/omv/py/py_tof.h | 6 ++- src/omv/py/py_tv.h | 8 ++-- src/omv/py/py_winc.c | 6 ++- src/omv/py/qstrdefsomv.h | 6 ++- src/omv/ringbuf.c | 6 ++- src/omv/ringbuf.h | 6 ++- src/omv/sdcard_sdio.c | 6 ++- src/omv/sensor.c | 6 ++- src/omv/sensor.h | 34 +++++++++-------- src/omv/soft_i2c.c | 6 ++- src/omv/soft_i2c.h | 6 ++- src/omv/stm32fxxx.ld.S | 8 ++-- src/omv/stm32fxxx_hal_msp.c | 6 ++- src/omv/trace.c | 10 +++++ src/omv/trace.h | 6 ++- src/omv/umm_malloc.c | 11 ++++-- src/omv/umm_malloc.h | 11 ++++-- src/omv/usbdbg.c | 8 ++-- src/omv/usbdbg.h | 6 ++- src/omv/wifidbg.c | 10 ++++- src/omv/wifidbg.h | 10 ++++- src/omv/xalloc.c | 6 ++- src/omv/xalloc.h | 6 ++- src/sthal/f4/Makefile | 10 ++++- src/sthal/f7/Makefile | 10 ++++- src/sthal/h7/Makefile | 10 ++++- src/uvc/Makefile | 9 ++++- src/uvc/src/main.c | 10 +++++ src/uvc/src/stm32fxxx_it.c | 6 ++- src/uvc/stm32fxxx.ld.S | 6 ++- src/winc1500/Makefile | 10 ++++- src/winc1500/include/winc.h | 6 ++- src/winc1500/src/winc.c | 8 ++-- tools/augment_images.py | 8 ++-- tools/calc_ir_table.py | 11 +++++- tools/client.py | 11 +++++- tools/create_labels.py | 11 +++--- tools/draw_rainbow.py | 11 +++++- tools/encode_raw.py | 11 +++++- tools/gc.py | 12 +++++- tools/gen_fft.py | 12 +++++- tools/gen_invariant.py | 9 ++++- tools/gen_rainbow.py | 8 ++++ tools/gen_rgb2lab.py | 10 ++++- tools/gen_rgb2rgb.py | 9 +++++ tools/gen_rgb2yuv.py | 10 ++++- tools/gen_sin_cos.py | 10 ++++- tools/keypoints_editor.py | 8 ++++ tools/make_patches.py | 8 ++-- tools/objfind.py | 10 +++-- tools/optflow.py | 10 ++++- tools/pll.py | 11 ------ tools/pydfu.py | 19 +++++----- tools/pyopenmv.py | 7 +++- tools/pyopenmv_fb.py | 11 +++++- tools/pyopenmv_multi.py | 9 +++-- tools/pyopenmv_test.py | 9 +++++ tools/saleae_test.py | 9 +++++ 175 files changed, 1066 insertions(+), 450 deletions(-) delete mode 100755 tools/pll.py diff --git a/LICENSE b/LICENSE index 4d0cb1fe5..eeb3bc2d7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) -Copyright (c) 2014 Ibrahim Abdelkader +Copyright (c) 2013-2019 Ibrahim Abdelkader +Copyright (c) 2013-2019 Kwabena W. Agyeman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/ml/cmsisnn/nn_convert.py b/ml/cmsisnn/nn_convert.py index 5e57dae3a..15dfa2a7a 100644 --- a/ml/cmsisnn/nn_convert.py +++ b/ml/cmsisnn/nn_convert.py @@ -1,5 +1,8 @@ # This file is part of the OpenMV project. -# Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. # # CMSIS NN binary converter. diff --git a/ml/cmsisnn/nn_run_all.sh b/ml/cmsisnn/nn_run_all.sh index 3f3bc7185..ba238efcf 100755 --- a/ml/cmsisnn/nn_run_all.sh +++ b/ml/cmsisnn/nn_run_all.sh @@ -1,4 +1,11 @@ #!/usr/bin/env sh +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. + if [ -z $1 ]; then echo "Usage : nn_run_all.sh model_name" exit 1 diff --git a/ml/haarcascade/cascade_convert.py b/ml/haarcascade/cascade_convert.py index 00705090e..2bf4e0544 100755 --- a/ml/haarcascade/cascade_convert.py +++ b/ml/haarcascade/cascade_convert.py @@ -1,6 +1,9 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. # # Haar Cascade binary converter. diff --git a/src/Makefile b/src/Makefile index 1df5ec5fc..1192afd9f 100755 --- a/src/Makefile +++ b/src/Makefile @@ -1,3 +1,12 @@ +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# Top level Makefile + # Set verbosity ifeq ($(V), 1) Q = diff --git a/src/bootloader/Makefile b/src/bootloader/Makefile index 7f1e13956..a8392c47b 100755 --- a/src/bootloader/Makefile +++ b/src/bootloader/Makefile @@ -1,4 +1,11 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# bootloader Makefile SRCS = $(wildcard src/*.c) OBJS = $(addprefix $(BUILD)/, $(SRCS:.c=.o)) OBJ_DIRS = $(sort $(dir $(OBJS))) diff --git a/src/bootloader/src/main.c b/src/bootloader/src/main.c index ff9e93a92..f694e5394 100644 --- a/src/bootloader/src/main.c +++ b/src/bootloader/src/main.c @@ -1,3 +1,13 @@ +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * main function. + */ #include STM32_HAL_H #include "usbdev/usbd_cdc.h" #include "usbdev/usbd_desc.h" diff --git a/src/bootloader/src/stm32fxxx_hal_msp.c b/src/bootloader/src/stm32fxxx_hal_msp.c index 5a5fbad10..eb93ea0ee 100644 --- a/src/bootloader/src/stm32fxxx_hal_msp.c +++ b/src/bootloader/src/stm32fxxx_hal_msp.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * HAL MSP. - * */ #include STM32_HAL_H #include "omv_boardconfig.h" diff --git a/src/bootloader/src/stm32fxxx_it.c b/src/bootloader/src/stm32fxxx_it.c index 3995fd3c1..2d7585030 100644 --- a/src/bootloader/src/stm32fxxx_it.c +++ b/src/bootloader/src/stm32fxxx_it.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Interrupt handlers. - * */ /** diff --git a/src/bootloader/stm32fxxx.ld.S b/src/bootloader/stm32fxxx.ld.S index c29f4d8bd..b268d603a 100644 --- a/src/bootloader/stm32fxxx.ld.S +++ b/src/bootloader/stm32fxxx.ld.S @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Linker script for STM32F4xx Devices. - * */ /* Entry Point */ diff --git a/src/cmsis/Makefile b/src/cmsis/Makefile index 7a609687a..4cfe152c4 100644 --- a/src/cmsis/Makefile +++ b/src/cmsis/Makefile @@ -1,4 +1,12 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# CMSIS Makefile + SRC_S = src/st/$(STARTUP).s SRC_C = src/st/system_stm32fxxx.c diff --git a/src/fatfs/Makefile b/src/fatfs/Makefile index 73782b8cb..c50785f51 100644 --- a/src/fatfs/Makefile +++ b/src/fatfs/Makefile @@ -1,4 +1,11 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# FatFS Makefile SRCS += $(addprefix src/,\ ff.c\ option/ccsbcs.c\ diff --git a/src/lepton/Makefile b/src/lepton/Makefile index 2a76ed499..8986ca58b 100644 --- a/src/lepton/Makefile +++ b/src/lepton/Makefile @@ -1,3 +1,11 @@ +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# LEPTON Makefile SRCS = $(wildcard src/*.c) OBJS = $(addprefix $(BUILD)/, $(SRCS:.c=.o)) OBJ_DIRS = $(sort $(dir $(OBJS))) diff --git a/src/mlx/Makefile b/src/mlx/Makefile index 2a76ed499..244b27007 100644 --- a/src/mlx/Makefile +++ b/src/mlx/Makefile @@ -1,3 +1,11 @@ +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# MLX Makefile SRCS = $(wildcard src/*.c) OBJS = $(addprefix $(BUILD)/, $(SRCS:.c=.o)) OBJ_DIRS = $(sort $(dir $(OBJS))) diff --git a/src/omv/Makefile b/src/omv/Makefile index 08d95504d..02c18afd1 100644 --- a/src/omv/Makefile +++ b/src/omv/Makefile @@ -1,4 +1,12 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# OMV Makefile + SRCS += $(addprefix , \ main.c \ xalloc.c \ diff --git a/src/omv/array.c b/src/omv/array.c index 98b74be08..c0520e833 100644 --- a/src/omv/array.c +++ b/src/omv/array.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Dynamic array. - * */ #include #include diff --git a/src/omv/array.h b/src/omv/array.h index 4af57a7bb..326b132cc 100644 --- a/src/omv/array.h +++ b/src/omv/array.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Dynamic array. - * */ #ifndef __ARRAY_H__ #define __ARRAY_H__ diff --git a/src/omv/boards/OPENMV1/imlib_config.h b/src/omv/boards/OPENMV1/imlib_config.h index 4562f2ed4..7c1f8ac16 100644 --- a/src/omv/boards/OPENMV1/imlib_config.h +++ b/src/omv/boards/OPENMV1/imlib_config.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library configuration. - * */ #ifndef __IMLIB_CONFIG_H__ #define __IMLIB_CONFIG_H__ diff --git a/src/omv/boards/OPENMV1/omv_boardconfig.h b/src/omv/boards/OPENMV1/omv_boardconfig.h index f7912e993..7e5d51409 100644 --- a/src/omv/boards/OPENMV1/omv_boardconfig.h +++ b/src/omv/boards/OPENMV1/omv_boardconfig.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Board configuration and pin definitions. - * */ #ifndef __OMV_BOARDCONFIG_H__ #define __OMV_BOARDCONFIG_H__ diff --git a/src/omv/boards/OPENMV2/imlib_config.h b/src/omv/boards/OPENMV2/imlib_config.h index 750399da2..91e663263 100644 --- a/src/omv/boards/OPENMV2/imlib_config.h +++ b/src/omv/boards/OPENMV2/imlib_config.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library configuration. - * */ #ifndef __IMLIB_CONFIG_H__ #define __IMLIB_CONFIG_H__ diff --git a/src/omv/boards/OPENMV2/omv_boardconfig.h b/src/omv/boards/OPENMV2/omv_boardconfig.h index f2ec3e7d0..dc7dd3ae8 100644 --- a/src/omv/boards/OPENMV2/omv_boardconfig.h +++ b/src/omv/boards/OPENMV2/omv_boardconfig.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Board configuration and pin definitions. - * */ #ifndef __OMV_BOARDCONFIG_H__ #define __OMV_BOARDCONFIG_H__ diff --git a/src/omv/boards/OPENMV3/imlib_config.h b/src/omv/boards/OPENMV3/imlib_config.h index a2078f691..13b40e12d 100644 --- a/src/omv/boards/OPENMV3/imlib_config.h +++ b/src/omv/boards/OPENMV3/imlib_config.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library configuration. - * */ #ifndef __IMLIB_CONFIG_H__ #define __IMLIB_CONFIG_H__ diff --git a/src/omv/boards/OPENMV3/omv_boardconfig.h b/src/omv/boards/OPENMV3/omv_boardconfig.h index 3fda725c2..109ed723c 100644 --- a/src/omv/boards/OPENMV3/omv_boardconfig.h +++ b/src/omv/boards/OPENMV3/omv_boardconfig.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Board configuration and pin definitions. - * */ #ifndef __OMV_BOARDCONFIG_H__ #define __OMV_BOARDCONFIG_H__ diff --git a/src/omv/boards/OPENMV4/imlib_config.h b/src/omv/boards/OPENMV4/imlib_config.h index fdbd9e05b..a7e312ae9 100644 --- a/src/omv/boards/OPENMV4/imlib_config.h +++ b/src/omv/boards/OPENMV4/imlib_config.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library configuration. - * */ #ifndef __IMLIB_CONFIG_H__ #define __IMLIB_CONFIG_H__ diff --git a/src/omv/boards/OPENMV4/omv_boardconfig.h b/src/omv/boards/OPENMV4/omv_boardconfig.h index a1ba42bcc..ba72d7108 100644 --- a/src/omv/boards/OPENMV4/omv_boardconfig.h +++ b/src/omv/boards/OPENMV4/omv_boardconfig.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Board configuration and pin definitions. - * */ #ifndef __OMV_BOARDCONFIG_H__ #define __OMV_BOARDCONFIG_H__ diff --git a/src/omv/boards/OPENMV4R/imlib_config.h b/src/omv/boards/OPENMV4R/imlib_config.h index ffa385b5a..0a15653d1 100644 --- a/src/omv/boards/OPENMV4R/imlib_config.h +++ b/src/omv/boards/OPENMV4R/imlib_config.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library configuration. - * */ #ifndef __IMLIB_CONFIG_H__ #define __IMLIB_CONFIG_H__ diff --git a/src/omv/boards/OPENMV4R/omv_boardconfig.h b/src/omv/boards/OPENMV4R/omv_boardconfig.h index 95822c4fd..65215bd49 100644 --- a/src/omv/boards/OPENMV4R/omv_boardconfig.h +++ b/src/omv/boards/OPENMV4R/omv_boardconfig.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Board configuration and pin definitions. - * */ #ifndef __OMV_BOARDCONFIG_H__ #define __OMV_BOARDCONFIG_H__ diff --git a/src/omv/cambus.c b/src/omv/cambus.c index df3a21d93..e69b8d819 100644 --- a/src/omv/cambus.c +++ b/src/omv/cambus.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * SCCB (I2C like) driver. - * */ #include #include STM32_HAL_H diff --git a/src/omv/cambus.h b/src/omv/cambus.h index b906580c5..765b65c18 100644 --- a/src/omv/cambus.h +++ b/src/omv/cambus.h @@ -1,22 +1,24 @@ -/* - * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader - * This work is licensed under the MIT license, see the file LICENSE for details. - * - * Camera bus driver. - * - */ -#ifndef __CAMBUS_H__ -#define __CAMBUS_H__ -#include -int cambus_init(); -int cambus_scan(); -int cambus_readb(uint8_t slv_addr, uint8_t reg_addr, uint8_t *reg_data); -int cambus_writeb(uint8_t slv_addr, uint8_t reg_addr, uint8_t reg_data); -int cambus_readb2(uint8_t slv_addr, uint16_t reg_addr, uint8_t *reg_data); -int cambus_writeb2(uint8_t slv_addr, uint16_t reg_addr, uint8_t reg_data); -int cambus_readw(uint8_t slv_addr, uint8_t reg_addr, uint16_t *reg_data); -int cambus_writew(uint8_t slv_addr, uint8_t reg_addr, uint16_t reg_data); -int cambus_readw2(uint8_t slv_addr, uint16_t reg_addr, uint16_t *reg_data); -int cambus_writew2(uint8_t slv_addr, uint16_t reg_addr, uint16_t reg_data); -#endif // __CAMBUS_H__ +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Camera bus driver. + */ +#ifndef __CAMBUS_H__ +#define __CAMBUS_H__ +#include +int cambus_init(); +int cambus_scan(); +int cambus_readb(uint8_t slv_addr, uint8_t reg_addr, uint8_t *reg_data); +int cambus_writeb(uint8_t slv_addr, uint8_t reg_addr, uint8_t reg_data); +int cambus_readb2(uint8_t slv_addr, uint16_t reg_addr, uint8_t *reg_data); +int cambus_writeb2(uint8_t slv_addr, uint16_t reg_addr, uint8_t reg_data); +int cambus_readw(uint8_t slv_addr, uint8_t reg_addr, uint16_t *reg_data); +int cambus_writew(uint8_t slv_addr, uint8_t reg_addr, uint16_t reg_data); +int cambus_readw2(uint8_t slv_addr, uint16_t reg_addr, uint16_t *reg_data); +int cambus_writew2(uint8_t slv_addr, uint16_t reg_addr, uint16_t reg_data); +#endif // __CAMBUS_H__ diff --git a/src/omv/common.h b/src/omv/common.h index 090b90ff7..0c34e312d 100644 --- a/src/omv/common.h +++ b/src/omv/common.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Common macros. - * */ #ifndef __OMV_COMMON_H__ #ifndef ALWAYS_INLINE diff --git a/src/omv/framebuffer.c b/src/omv/framebuffer.c index 9c24a8fbc..de85d313c 100644 --- a/src/omv/framebuffer.c +++ b/src/omv/framebuffer.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * Framebuffer stuff. - * + * Framebuffer functions. */ #include "mpprint.h" #include "framebuffer.h" diff --git a/src/omv/framebuffer.h b/src/omv/framebuffer.h index 793abd01e..710ca92fc 100644 --- a/src/omv/framebuffer.h +++ b/src/omv/framebuffer.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * Framebuffer stuff. - * + * Framebuffer functions. */ #ifndef __FRAMEBUFFER_H__ #define __FRAMEBUFFER_H__ diff --git a/src/omv/img/apriltag.c b/src/omv/img/apriltag.c index e6c6352af..8583fb9cd 100644 --- a/src/omv/img/apriltag.c +++ b/src/omv/img/apriltag.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * AprilTags library. */ - #include #include #include "imlib.h" diff --git a/src/omv/img/binary.c b/src/omv/img/binary.c index e14830f9b..9093ee6f5 100644 --- a/src/omv/img/binary.c +++ b/src/omv/img/binary.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Binary image operations. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_BINARY_OPS diff --git a/src/omv/img/blob.c b/src/omv/img/blob.c index 2d78f78f9..3fd8c85fe 100644 --- a/src/omv/img/blob.c +++ b/src/omv/img/blob.c @@ -1,12 +1,16 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2019 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Blob detection code. */ - #include "imlib.h" -typedef struct xylr -{ +typedef struct xylr { int16_t x, y, l, r, t_l, b_l; } xylr_t; diff --git a/src/omv/img/bmp.c b/src/omv/img/bmp.c index deb8fc97e..854e636f9 100644 --- a/src/omv/img/bmp.c +++ b/src/omv/img/bmp.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * BMP reader/writer. - * */ #include #include diff --git a/src/omv/img/clahe.c b/src/omv/img/clahe.c index aed241e50..0b3cdf1f1 100644 --- a/src/omv/img/clahe.c +++ b/src/omv/img/clahe.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Contrast Limited Adaptive Histogram Equalization. */ - #include "imlib.h" #define BYTE_IMAGE diff --git a/src/omv/img/collections.c b/src/omv/img/collections.c index fcfcc3b83..1fd4738ba 100644 --- a/src/omv/img/collections.c +++ b/src/omv/img/collections.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Common data structures. */ - #include "imlib.h" #define CHAR_BITS (sizeof(char) * 8) #define CHAR_MASK (CHAR_BITS - 1) diff --git a/src/omv/img/collections.h b/src/omv/img/collections.h index c6f4d19d2..395ad54e5 100644 --- a/src/omv/img/collections.h +++ b/src/omv/img/collections.h @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Common data structures. */ - #ifndef __COLLECTIONS_H__ #define __COLLECTIONS_H__ #include diff --git a/src/omv/img/dmtx.c b/src/omv/img/dmtx.c index de32ec3cf..795b8cf0b 100644 --- a/src/omv/img/dmtx.c +++ b/src/omv/img/dmtx.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Data Matrix Encoding/Decoding Library. */ - #include #include "imlib.h" #ifdef IMLIB_ENABLE_DATAMATRICES diff --git a/src/omv/img/draw.c b/src/omv/img/draw.c index 37f13d461..c327515ae 100644 --- a/src/omv/img/draw.c +++ b/src/omv/img/draw.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Basic drawing functions. */ - #include "font.h" #include "imlib.h" diff --git a/src/omv/img/edge.c b/src/omv/img/edge.c index 78415f5e4..105a2dd38 100644 --- a/src/omv/img/edge.c +++ b/src/omv/img/edge.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Edge Detection. - * */ #include #include diff --git a/src/omv/img/eye.c b/src/omv/img/eye.c index 56a1a35b0..b0ca9bfc5 100644 --- a/src/omv/img/eye.c +++ b/src/omv/img/eye.c @@ -1,12 +1,13 @@ /* -* This file is part of the OpenMV project. -* Copyright (c) 2013/2014 Ibrahim Abdelkader -* This work is licensed under the MIT license, see the file LICENSE for details. -* -* Pupil localization using image gradients. -* See Fabian Timm's paper. -* -*/ + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Pupil localization using image gradients. See Fabian Timm's paper for details. + */ #include "imlib.h" #include "xalloc.h" #include "fmath.h" diff --git a/src/omv/img/filter.c b/src/omv/img/filter.c index 7b34beb4c..e8b9f1f8e 100644 --- a/src/omv/img/filter.c +++ b/src/omv/img/filter.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image filtering functions. */ - #include "fsort.h" #include "imlib.h" diff --git a/src/omv/img/fmath.c b/src/omv/img/fmath.c index 84889f654..1a82f4e54 100644 --- a/src/omv/img/fmath.c +++ b/src/omv/img/fmath.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Fast approximate math functions. - * */ #include "fmath.h" #include "common.h" diff --git a/src/omv/img/fmath.h b/src/omv/img/fmath.h index 8cd350940..7ade74ca5 100644 --- a/src/omv/img/fmath.h +++ b/src/omv/img/fmath.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Fast approximate math functions. - * */ #ifndef __FMATH_H__ #define __FMATH_H__ diff --git a/src/omv/img/font.c b/src/omv/img/font.c index 9e8a38d56..c0eb59b04 100644 --- a/src/omv/img/font.c +++ b/src/omv/img/font.c @@ -1,6 +1,9 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Font data. diff --git a/src/omv/img/font.h b/src/omv/img/font.h index d27143853..59cc40f69 100644 --- a/src/omv/img/font.h +++ b/src/omv/img/font.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Font data. - * */ #ifndef __FONT_H__ #define __FONT_H__ diff --git a/src/omv/img/gif.c b/src/omv/img/gif.c index 46c1d60ef..9d8028d11 100644 --- a/src/omv/img/gif.c +++ b/src/omv/img/gif.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * A super simple GIF encoder. - * + * A simple GIF encoder. */ #include #include "fb_alloc.h" diff --git a/src/omv/img/haar.c b/src/omv/img/haar.c index 98e20b769..c0544fad5 100644 --- a/src/omv/img/haar.c +++ b/src/omv/img/haar.c @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Viola-Jones object detector implementation. - * Original Author: Francesco Comaschi (f.comaschi@tue.nl) - * + * Based on the work of Francesco Comaschi (f.comaschi@tue.nl) */ #include #include diff --git a/src/omv/img/hog.c b/src/omv/img/hog.c index 5f63e6aa8..cfc25f040 100644 --- a/src/omv/img/hog.c +++ b/src/omv/img/hog.c @@ -1,6 +1,9 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * HoG. diff --git a/src/omv/img/hough.c b/src/omv/img/hough.c index c66b6577a..281ec3cd9 100644 --- a/src/omv/img/hough.c +++ b/src/omv/img/hough.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Hough Transform feature extraction. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_FIND_LINES diff --git a/src/omv/img/imlib.c b/src/omv/img/imlib.c index 8e0145150..0331a910f 100644 --- a/src/omv/img/imlib.c +++ b/src/omv/img/imlib.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image library. - * */ #include #include diff --git a/src/omv/img/imlib.h b/src/omv/img/imlib.h index d84f9de27..2e2c2495d 100644 --- a/src/omv/img/imlib.h +++ b/src/omv/img/imlib.h @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image processing library. */ - #ifndef __IMLIB_H__ #define __IMLIB_H__ #include diff --git a/src/omv/img/integral.c b/src/omv/img/integral.c index ffd04af6b..d7544180a 100644 --- a/src/omv/img/integral.c +++ b/src/omv/img/integral.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Integral image. - * */ #include #include diff --git a/src/omv/img/integral_mw.c b/src/omv/img/integral_mw.c index aa13e7791..d0fbc1ae5 100644 --- a/src/omv/img/integral_mw.c +++ b/src/omv/img/integral_mw.c @@ -1,6 +1,9 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * An integral image using a moving window. diff --git a/src/omv/img/jpeg.c b/src/omv/img/jpeg.c index 9e830e791..63cbc7433 100644 --- a/src/omv/img/jpeg.c +++ b/src/omv/img/jpeg.c @@ -1,16 +1,15 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Minimalistic JPEG baseline encoder. * Ported from public domain JPEG writer by Jon Olick - http://jonolick.com - * - * DCT implementation is based on Arai, Agui, and Nakajima's algorithm for - * scaled DCT. - * + * DCT implementation is based on Arai, Agui, and Nakajima's algorithm for scaled DCT. */ - #include #include STM32_HAL_H #include diff --git a/src/omv/img/kmeans.c b/src/omv/img/kmeans.c index e217c0a13..4496a2cff 100644 --- a/src/omv/img/kmeans.c +++ b/src/omv/img/kmeans.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Kmeans clustering. - * */ #include #include diff --git a/src/omv/img/lbp.c b/src/omv/img/lbp.c index eee379d8a..ea75b2423 100644 --- a/src/omv/img/lbp.c +++ b/src/omv/img/lbp.c @@ -1,14 +1,15 @@ /* -* This file is part of the OpenMV project. -* Copyright (c) 2013/2014 Ibrahim Abdelkader -* This work is licensed under the MIT license, see the file LICENSE for details. -* -* LBPu2⁄8,2 Operator. -* Note: The distance function uses weights optimized for face recognition. -* Note: See Timo Ahonen's "Face Recognition with Local Binary Patterns" -* -*/ - + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * LBPu2 8,2 Operator. + * Note: The distance function uses weights optimized for face recognition. + * Note: See Timo Ahonen's "Face Recognition with Local Binary Patterns". + */ #include #include #include diff --git a/src/omv/img/line.c b/src/omv/img/line.c index 7d9344c52..da59db90f 100644 --- a/src/omv/img/line.c +++ b/src/omv/img/line.c @@ -1,10 +1,15 @@ -#include "imlib.h" -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Line functions. */ +#include "imlib.h" + static void pixel_magnitude(image_t *ptr, int x, int y, int *theta, uint32_t *mag) { switch (ptr->bpp) { diff --git a/src/omv/img/lsd.c b/src/omv/img/lsd.c index e3f7590a6..130c6ca90 100644 --- a/src/omv/img/lsd.c +++ b/src/omv/img/lsd.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Line Segment Detector. */ - #include #include #include "imlib.h" diff --git a/src/omv/img/mathop.c b/src/omv/img/mathop.c index 6b1a9399d..aa2e2112a 100644 --- a/src/omv/img/mathop.c +++ b/src/omv/img/mathop.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Image math operations. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_MATH_OPS diff --git a/src/omv/img/mjpeg.c b/src/omv/img/mjpeg.c index 41418adfd..4df877b3c 100644 --- a/src/omv/img/mjpeg.c +++ b/src/omv/img/mjpeg.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * A super simple MJPEG encoder. - * + * A simple MJPEG encoder. */ #include "fb_alloc.h" #include "ff_wrapper.h" diff --git a/src/omv/img/orb.c b/src/omv/img/orb.c index e96d9676b..69291f2a6 100644 --- a/src/omv/img/orb.c +++ b/src/omv/img/orb.c @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * ORB keypoints descriptor based on OpenCV code. */ - #include #include #include diff --git a/src/omv/img/phasecorrelation.c b/src/omv/img/phasecorrelation.c index 15025dcfa..6a6101347 100644 --- a/src/omv/img/phasecorrelation.c +++ b/src/omv/img/phasecorrelation.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Phase correlation. */ - #include "imlib.h" #include "fft.h" #define alt_fast_exp(x, linear) ((linear) ? (x) : (fast_expf(x))) diff --git a/src/omv/img/point.c b/src/omv/img/point.c index 508216f21..1c1a02349 100644 --- a/src/omv/img/point.c +++ b/src/omv/img/point.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Point functions. - * */ #include "imlib.h" #include "xalloc.h" diff --git a/src/omv/img/ppm.c b/src/omv/img/ppm.c index ceb2e4fb9..ffba97172 100644 --- a/src/omv/img/ppm.c +++ b/src/omv/img/ppm.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * PPM/PGM reader/writer. - * */ #include #include diff --git a/src/omv/img/qrcode.c b/src/omv/img/qrcode.c index dcc7a69cd..6b2bba022 100644 --- a/src/omv/img/qrcode.c +++ b/src/omv/img/qrcode.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * QR-code recognition library. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_QRCODES //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/omv/img/rectangle.c b/src/omv/img/rectangle.c index 569b92f56..1f967c302 100644 --- a/src/omv/img/rectangle.c +++ b/src/omv/img/rectangle.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Rectangle functions. - * */ #include "imlib.h" #include "array.h" diff --git a/src/omv/img/selective_search.c b/src/omv/img/selective_search.c index f8d640694..558e6d5a2 100644 --- a/src/omv/img/selective_search.c +++ b/src/omv/img/selective_search.c @@ -1,6 +1,9 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 - * Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Selective search. diff --git a/src/omv/img/shadow_removal.c b/src/omv/img/shadow_removal.c index b9e01fa55..fba68cf63 100644 --- a/src/omv/img/shadow_removal.c +++ b/src/omv/img/shadow_removal.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Shadow removal. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_REMOVE_SHADOWS diff --git a/src/omv/img/stats.c b/src/omv/img/stats.c index d96b3e037..139eb0c42 100644 --- a/src/omv/img/stats.c +++ b/src/omv/img/stats.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Statistics functions. */ - #include "imlib.h" #ifdef IMLIB_ENABLE_GET_SIMILARITY diff --git a/src/omv/img/template.c b/src/omv/img/template.c index acc666486..813401a12 100644 --- a/src/omv/img/template.c +++ b/src/omv/img/template.c @@ -1,6 +1,9 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Template matching with NCC (Normalized Cross Correlation) using exhaustive and diamond search. @@ -9,7 +12,6 @@ * Briechle, Kai, and Uwe D. Hanebeck. "Template matching using fast normalized cross correlation." Aerospace * Lewis, J. P. "Fast normalized cross-correlation." * Zhu, Shan, and Kai-Kuang Ma. "A new diamond search algorithm for fast block-matching motion estimation." - * */ #include #include diff --git a/src/omv/img/zbar.c b/src/omv/img/zbar.c index fe92d2f2a..4b5b43657 100644 --- a/src/omv/img/zbar.c +++ b/src/omv/img/zbar.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * This file is part of the ZBar Bar Code Reader library. */ - #include #include "imlib.h" #ifdef IMLIB_ENABLE_BARCODES diff --git a/src/omv/ini.c b/src/omv/ini.c index 03727a859..0e898c4b3 100644 --- a/src/omv/ini.c +++ b/src/omv/ini.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Initialization file parser. */ - #include #include #include diff --git a/src/omv/ini.h b/src/omv/ini.h index 1fff8097c..e7b7406a4 100644 --- a/src/omv/ini.h +++ b/src/omv/ini.h @@ -1,17 +1,15 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Initialization file parser. + * inih library is released under the New BSD license (see LICENSE.txt). + * For more details see the following: https://github.com/benhoyt/inih */ - -/* inih -- simple .INI file parser - -inih is released under the New BSD license (see LICENSE.txt). Go to the project -home page for more info: - -https://github.com/benhoyt/inih - -*/ - #ifndef __INI_H__ #define __INI_H__ diff --git a/src/omv/lepton.c b/src/omv/lepton.c index ffb5488cd..6f64201ff 100644 --- a/src/omv/lepton.c +++ b/src/omv/lepton.c @@ -1,12 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Lepton driver. - * */ - #include STM32_HAL_H #include "mp.h" #include "irq.h" diff --git a/src/omv/lepton.h b/src/omv/lepton.h index 6540dc46f..be473b4c4 100644 --- a/src/omv/lepton.h +++ b/src/omv/lepton.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Lepton driver. - * */ #ifndef __LEPTON_H__ #define __LEPTON_H__ diff --git a/src/omv/main.c b/src/omv/main.c index ba6036621..330014900 100644 --- a/src/omv/main.c +++ b/src/omv/main.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * main function. - * */ #include #include diff --git a/src/omv/mt9v034.c b/src/omv/mt9v034.c index a72f0e39a..07f3666bd 100644 --- a/src/omv/mt9v034.c +++ b/src/omv/mt9v034.c @@ -1,12 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * MT9V034 driver. - * */ - #include STM32_HAL_H #include "cambus.h" #include "mt9v034.h" diff --git a/src/omv/mt9v034.h b/src/omv/mt9v034.h index 782c135ff..ff636bbdf 100644 --- a/src/omv/mt9v034.h +++ b/src/omv/mt9v034.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * MT9V034 driver. - * */ #ifndef __MT9V034_H__ #define __MT9V034_H__ diff --git a/src/omv/mutex.c b/src/omv/mutex.c index f844531f2..0a2b55e85 100644 --- a/src/omv/mutex.c +++ b/src/omv/mutex.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * Mutex. - * + * Mutex implementation. */ #include STM32_HAL_H #include "mutex.h" diff --git a/src/omv/mutex.h b/src/omv/mutex.h index c249be009..a603523e2 100644 --- a/src/omv/mutex.h +++ b/src/omv/mutex.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * Mutex. - * + * Mutex implementation. */ #ifndef __MUTEX_H__ #define __MUTEX_H__ diff --git a/src/omv/nn/nn.c b/src/omv/nn/nn.c index 634413300..fe70ac372 100644 --- a/src/omv/nn/nn.c +++ b/src/omv/nn/nn.c @@ -1,9 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * CNN code. - * */ #include "nn.h" #include "imlib.h" diff --git a/src/omv/nn/nn.h b/src/omv/nn/nn.h index fb1becb7c..b9f2dd6b4 100644 --- a/src/omv/nn/nn.h +++ b/src/omv/nn/nn.h @@ -1,9 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * CNN code. - * */ #ifndef __NN_H__ #define __NN_H__ diff --git a/src/omv/ov2640.c b/src/omv/ov2640.c index b72034e07..13e0724c2 100644 --- a/src/omv/ov2640.c +++ b/src/omv/ov2640.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV2640 driver. - * */ #include #include diff --git a/src/omv/ov2640.h b/src/omv/ov2640.h index a89049926..472fe1a14 100644 --- a/src/omv/ov2640.h +++ b/src/omv/ov2640.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV2640 driver. - * */ #ifndef __OV2640_H__ #define __OV2640_H__ diff --git a/src/omv/ov2640_regs.h b/src/omv/ov2640_regs.h index 3da9c1123..2aa3a6263 100644 --- a/src/omv/ov2640_regs.h +++ b/src/omv/ov2640_regs.h @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV2640 register definitions. */ - #ifndef __REG_REGS_H__ #define __REG_REGS_H__ diff --git a/src/omv/ov5640.c b/src/omv/ov5640.c index a8db01dc5..dbaadcadd 100644 --- a/src/omv/ov5640.c +++ b/src/omv/ov5640.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV5640 driver. - * */ #include #include diff --git a/src/omv/ov5640.h b/src/omv/ov5640.h index adc691b0e..3ea9a8bd4 100644 --- a/src/omv/ov5640.h +++ b/src/omv/ov5640.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV5640 driver. - * */ #ifndef __OV5640_H__ #define __OV5640_H__ diff --git a/src/omv/ov5640_regs.h b/src/omv/ov5640_regs.h index 97e0d53d7..18af65bae 100644 --- a/src/omv/ov5640_regs.h +++ b/src/omv/ov5640_regs.h @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV5640 register definitions. */ - #ifndef __REG_REGS_H__ #define __REG_REGS_H__ diff --git a/src/omv/ov7725.c b/src/omv/ov7725.c index da5fc829d..5621b7c39 100644 --- a/src/omv/ov7725.c +++ b/src/omv/ov7725.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV7725 driver. - * */ #include #include diff --git a/src/omv/ov7725.h b/src/omv/ov7725.h index 1881f73fb..d435628b9 100644 --- a/src/omv/ov7725.h +++ b/src/omv/ov7725.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV7725 driver. - * */ #ifndef __OV7725_H__ #define __OV7725_H__ diff --git a/src/omv/ov7725_regs.h b/src/omv/ov7725_regs.h index 9701918c5..3f83c675c 100644 --- a/src/omv/ov7725_regs.h +++ b/src/omv/ov7725_regs.h @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV7725 register definitions. */ - #ifndef __REG_REGS_H__ #define __REG_REGS_H__ diff --git a/src/omv/ov9650.c b/src/omv/ov9650.c index 012e7fe64..e83c84b8d 100644 --- a/src/omv/ov9650.c +++ b/src/omv/ov9650.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV9650 driver. - * */ #include #include diff --git a/src/omv/ov9650.h b/src/omv/ov9650.h index 2623351be..b4ebde0e6 100644 --- a/src/omv/ov9650.h +++ b/src/omv/ov9650.h @@ -1,13 +1,15 @@ -/* - * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader - * This work is licensed under the MIT license, see the file LICENSE for details. - * - * OV9650 driver. - * - */ -#ifndef __OV9650_H__ -#define __OV9650_H__ -#include "sensor.h" -int ov9650_init(sensor_t *sensor); -#endif // __OV9650_H__ +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OV9650 driver. + */ +#ifndef __OV9650_H__ +#define __OV9650_H__ +#include "sensor.h" +int ov9650_init(sensor_t *sensor); +#endif // __OV9650_H__ diff --git a/src/omv/ov9650_regs.h b/src/omv/ov9650_regs.h index 38eae7471..8967e06c1 100644 --- a/src/omv/ov9650_regs.h +++ b/src/omv/ov9650_regs.h @@ -1,11 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * OV9650 register definitions. */ - #ifndef __REG_REGS_H__ #define __REG_REGS_H__ diff --git a/src/omv/py/mp.h b/src/omv/py/mp.h index bc6dd48a4..e09f00841 100644 --- a/src/omv/py/mp.h +++ b/src/omv/py/mp.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * MicroPython header. - * */ #ifndef __MP_H__ #define __MP_H__ diff --git a/src/omv/py/py_assert.h b/src/omv/py/py_assert.h index 870aba6ac..05a44ba9d 100644 --- a/src/omv/py/py_assert.h +++ b/src/omv/py/py_assert.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * MP assertions. - * */ #ifndef __PY_ASSERT_H__ #define __PY_ASSERT_H__ diff --git a/src/omv/py/py_cpufreq.c b/src/omv/py/py_cpufreq.c index 0fe6a61b4..ab0862bfe 100644 --- a/src/omv/py/py_cpufreq.c +++ b/src/omv/py/py_cpufreq.c @@ -1,12 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * CPU frequency scaling module. - * */ - #include #include #include diff --git a/src/omv/py/py_cpufreq.h b/src/omv/py/py_cpufreq.h index 3711b3607..8fc7363fb 100644 --- a/src/omv/py/py_cpufreq.h +++ b/src/omv/py/py_cpufreq.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * CPU Frequency module. - * */ #ifndef __PY_CPUFREQ_H__ #define __PY_CPUFREQ_H__ diff --git a/src/omv/py/py_fir.c b/src/omv/py/py_fir.c index f07d6b105..c4812f0f0 100644 --- a/src/omv/py/py_fir.c +++ b/src/omv/py/py_fir.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * MLX Python module. - * + * FIR Python module. */ #include #include "soft_i2c.h" diff --git a/src/omv/py/py_fir.h b/src/omv/py/py_fir.h index 00dec0fb6..c6d53caa0 100644 --- a/src/omv/py/py_fir.h +++ b/src/omv/py/py_fir.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * MLX Python module. - * + * FIR Python module. */ #ifndef __PY_FIR_H__ #define __PY_FIR_H__ diff --git a/src/omv/py/py_gif.c b/src/omv/py/py_gif.c index 61ee5d021..ae1800d04 100644 --- a/src/omv/py/py_gif.c +++ b/src/omv/py/py_gif.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * GIF Python module. - * */ #include "mp.h" #include "ff_wrapper.h" diff --git a/src/omv/py/py_helper.c b/src/omv/py/py_helper.c index ea21d9952..39cd12eb9 100644 --- a/src/omv/py/py_helper.c +++ b/src/omv/py/py_helper.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Python helper functions. */ - #include "py_helper.h" extern void *py_image_cobj(mp_obj_t img_obj); diff --git a/src/omv/py/py_helper.h b/src/omv/py/py_helper.h index c11317644..b3bd7dad7 100644 --- a/src/omv/py/py_helper.h +++ b/src/omv/py/py_helper.h @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Python helper functions. */ - #ifndef __PY_HELPER_H__ #define __PY_HELPER_H__ #include "imlib.h" diff --git a/src/omv/py/py_image.c b/src/omv/py/py_image.c index 85b1b3fc0..146468923 100644 --- a/src/omv/py/py_image.c +++ b/src/omv/py/py_image.c @@ -1,12 +1,13 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image Python module. - * */ - #include #include #include "imlib.h" diff --git a/src/omv/py/py_image.h b/src/omv/py/py_image.h index ca9e4e2ff..00660701a 100644 --- a/src/omv/py/py_image.h +++ b/src/omv/py/py_image.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Image Python module. - * */ #ifndef __PY_IMAGE_H__ #define __PY_IMAGE_H__ diff --git a/src/omv/py/py_lcd.c b/src/omv/py/py_lcd.c index f44297c98..8d8bd4614 100644 --- a/src/omv/py/py_lcd.c +++ b/src/omv/py/py_lcd.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * LCD Python module. - * */ #include #include diff --git a/src/omv/py/py_lcd.h b/src/omv/py/py_lcd.h index 5b78cce75..a22fc8d8b 100644 --- a/src/omv/py/py_lcd.h +++ b/src/omv/py/py_lcd.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * LCD Python module. - * */ #ifndef __PY_LCD_H__ #define __PY_LCD_H__ diff --git a/src/omv/py/py_mjpeg.c b/src/omv/py/py_mjpeg.c index 4d856d96e..bbcfc9733 100644 --- a/src/omv/py/py_mjpeg.c +++ b/src/omv/py/py_mjpeg.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * MJPEG Python module. - * */ #include "mp.h" #include "ff_wrapper.h" diff --git a/src/omv/py/py_nn.c b/src/omv/py/py_nn.c index d497a8f07..85d594971 100644 --- a/src/omv/py/py_nn.c +++ b/src/omv/py/py_nn.c @@ -1,6 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * NN Python module. */ #include #include "nn.h" diff --git a/src/omv/py/py_omv.c b/src/omv/py/py_omv.c index ca5002da8..7a4572fc8 100644 --- a/src/omv/py/py_omv.c +++ b/src/omv/py/py_omv.c @@ -1,6 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * OMV Python module. */ #include #include "usbdbg.h" diff --git a/src/omv/py/py_sensor.c b/src/omv/py/py_sensor.c index c01683130..869a6eb28 100644 --- a/src/omv/py/py_sensor.c +++ b/src/omv/py/py_sensor.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Sensor Python module. - * */ #include #include "mp.h" diff --git a/src/omv/py/py_sensor.h b/src/omv/py/py_sensor.h index 9add13dae..a9e096200 100644 --- a/src/omv/py/py_sensor.h +++ b/src/omv/py/py_sensor.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Sensor Python module. - * */ #ifndef __PY_SENSOR_H__ #define __PY_SENSOR_H__ diff --git a/src/omv/py/py_time.c b/src/omv/py/py_time.c index 4c6e39447..03b6eba76 100644 --- a/src/omv/py/py_time.c +++ b/src/omv/py/py_time.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Time Python module. - * */ #include #include "systick.h" diff --git a/src/omv/py/py_time.h b/src/omv/py/py_time.h index 89b50fa16..69e415fe3 100644 --- a/src/omv/py/py_time.h +++ b/src/omv/py/py_time.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Time Python module. - * */ #ifndef __PY_TIME_H__ #define __PY_TIME_H__ diff --git a/src/omv/py/py_tof.h b/src/omv/py/py_tof.h index 3211dfd4a..c2863d4ab 100644 --- a/src/omv/py/py_tof.h +++ b/src/omv/py/py_tof.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * ToF Python module. - * */ #ifndef __PY_TOF_H__ #define __PY_TOF_H__ diff --git a/src/omv/py/py_tv.h b/src/omv/py/py_tv.h index 386bc901e..26fb9169c 100644 --- a/src/omv/py/py_tv.h +++ b/src/omv/py/py_tv.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * LCD Python module. - * + * TV Python module. */ #ifndef __PY_TV_H__ #define __PY_TV_H__ diff --git a/src/omv/py/py_winc.c b/src/omv/py/py_winc.c index e6fef9368..c81c0ac41 100644 --- a/src/omv/py/py_winc.c +++ b/src/omv/py/py_winc.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * WINC1500 Python module. - * */ #include #include diff --git a/src/omv/py/qstrdefsomv.h b/src/omv/py/qstrdefsomv.h index 2df12b180..c50af1424 100644 --- a/src/omv/py/qstrdefsomv.h +++ b/src/omv/py/qstrdefsomv.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * qstrs specific to openmv - * */ // OMV Module diff --git a/src/omv/ringbuf.c b/src/omv/ringbuf.c index e66330e67..c52666ce1 100644 --- a/src/omv/ringbuf.c +++ b/src/omv/ringbuf.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Simple Ring Buffer implementation. - * */ #include #include "ringbuf.h" diff --git a/src/omv/ringbuf.h b/src/omv/ringbuf.h index f7a37663e..4acacfd33 100644 --- a/src/omv/ringbuf.h +++ b/src/omv/ringbuf.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Simple Ring Buffer implementation. - * */ #ifndef __RING_BUFFER_H__ #define __RING_BUFFER_H__ diff --git a/src/omv/sdcard_sdio.c b/src/omv/sdcard_sdio.c index 4afff964f..e288085fb 100644 --- a/src/omv/sdcard_sdio.c +++ b/src/omv/sdcard_sdio.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * SD card SDIO driver. - * */ #include #include STM32_HAL_H diff --git a/src/omv/sensor.c b/src/omv/sensor.c index e9aae1cfe..03ed2632e 100644 --- a/src/omv/sensor.c +++ b/src/omv/sensor.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Sensor abstraction layer. - * */ #include #include diff --git a/src/omv/sensor.h b/src/omv/sensor.h index d864261ec..c58aca950 100644 --- a/src/omv/sensor.h +++ b/src/omv/sensor.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Sensor abstraction layer. - * */ #ifndef __SENSOR_H__ #define __SENSOR_H__ @@ -12,22 +14,22 @@ #include #include "imlib.h" -#define OV7725_SLV_ADDR (0x42) -#define OV2640_SLV_ADDR (0x60) -#define MT9V034_SLV_ADDR (0xB8) -#define LEPTON_SLV_ADDR (0x54) -#define OV5640_SLV_ADDR (0x78) +#define OV7725_SLV_ADDR (0x42) +#define OV2640_SLV_ADDR (0x60) +#define MT9V034_SLV_ADDR (0xB8) +#define LEPTON_SLV_ADDR (0x54) +#define OV5640_SLV_ADDR (0x78) -#define OV_CHIP_ID (0x0A) -#define OV5640_CHIP_ID (0x300A) -#define ON_CHIP_ID (0x00) +#define OV_CHIP_ID (0x0A) +#define OV5640_CHIP_ID (0x300A) +#define ON_CHIP_ID (0x00) -#define OV9650_ID (0x96) -#define OV2640_ID (0x26) -#define OV7725_ID (0x77) -#define OV5640_ID (0x56) -#define MT9V034_ID (0x13) -#define LEPTON_ID (0x54) +#define OV9650_ID (0x96) +#define OV2640_ID (0x26) +#define OV7725_ID (0x77) +#define OV5640_ID (0x56) +#define MT9V034_ID (0x13) +#define LEPTON_ID (0x54) typedef enum { PIXFORMAT_INVALID = 0, diff --git a/src/omv/soft_i2c.c b/src/omv/soft_i2c.c index 1ec4e500f..92048bbcc 100644 --- a/src/omv/soft_i2c.c +++ b/src/omv/soft_i2c.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Software I2C implementation. - * */ #include #include "soft_i2c.h" diff --git a/src/omv/soft_i2c.h b/src/omv/soft_i2c.h index d2d302cf7..87cd7c1b3 100644 --- a/src/omv/soft_i2c.h +++ b/src/omv/soft_i2c.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Software I2C implementation. - * */ #ifndef __SOFT_I2C_H__ #define __SOFT_I2C_H__ diff --git a/src/omv/stm32fxxx.ld.S b/src/omv/stm32fxxx.ld.S index 3e694076c..df7c5693c 100755 --- a/src/omv/stm32fxxx.ld.S +++ b/src/omv/stm32fxxx.ld.S @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * Linker script for STM32F4xx Devices. - * + * Linker script for STM32F Devices. */ /* Entry Point */ diff --git a/src/omv/stm32fxxx_hal_msp.c b/src/omv/stm32fxxx_hal_msp.c index 218d289c9..8956f6ff9 100644 --- a/src/omv/stm32fxxx_hal_msp.c +++ b/src/omv/stm32fxxx_hal_msp.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * HAL MSP. - * */ #include STM32_HAL_H #include "omv_boardconfig.h" diff --git a/src/omv/trace.c b/src/omv/trace.c index 5e5764f86..4670d4695 100644 --- a/src/omv/trace.c +++ b/src/omv/trace.c @@ -1,3 +1,13 @@ +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * Trace buffer. + */ #include "trace.h" #include #include STM32_HAL_H diff --git a/src/omv/trace.h b/src/omv/trace.h index 5e89f8ecc..1da6d3c16 100644 --- a/src/omv/trace.h +++ b/src/omv/trace.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Trace buffer. - * */ #ifndef __TRACE_H__ #define __TRACE_H__ diff --git a/src/omv/umm_malloc.c b/src/omv/umm_malloc.c index 59789ff62..596e91229 100644 --- a/src/omv/umm_malloc.c +++ b/src/omv/umm_malloc.c @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * UMM memory allocator. */ - #include #include #include "fb_alloc.h" diff --git a/src/omv/umm_malloc.h b/src/omv/umm_malloc.h index fe3c5d6d8..a200f9fb1 100644 --- a/src/omv/umm_malloc.h +++ b/src/omv/umm_malloc.h @@ -1,8 +1,13 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * UMM memory allocator. */ - #ifndef __UMM_MALLOC_H__ #define __UMM_MALLOC_H__ #include diff --git a/src/omv/usbdbg.c b/src/omv/usbdbg.c index 45d486e73..049a5658b 100644 --- a/src/omv/usbdbg.c +++ b/src/omv/usbdbg.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * - * USB debug support. - * + * USB debugger. */ #include "mp.h" #include "imlib.h" diff --git a/src/omv/usbdbg.h b/src/omv/usbdbg.h index cf5852414..c8f681153 100644 --- a/src/omv/usbdbg.h +++ b/src/omv/usbdbg.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * USB debug support. - * */ #ifndef __USBDBG_H__ #define __USBDBG_H__ diff --git a/src/omv/wifidbg.c b/src/omv/wifidbg.c index 8692ad8fd..ddbb520e7 100644 --- a/src/omv/wifidbg.c +++ b/src/omv/wifidbg.c @@ -1,6 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * WiFi debugger. */ #include #include diff --git a/src/omv/wifidbg.h b/src/omv/wifidbg.h index 75b487dee..7fcbf1769 100644 --- a/src/omv/wifidbg.h +++ b/src/omv/wifidbg.h @@ -1,6 +1,12 @@ -/* This file is part of the OpenMV project. - * Copyright (c) 2013-2018 Ibrahim Abdelkader & Kwabena W. Agyeman +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. + * + * WiFi debugger. */ #ifndef __WIFI_DBG_H__ #define __WIFI_DBG_H__ diff --git a/src/omv/xalloc.c b/src/omv/xalloc.c index 63cc28991..9f9a7d233 100644 --- a/src/omv/xalloc.c +++ b/src/omv/xalloc.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Memory allocation functions. - * */ #include #include "xalloc.h" diff --git a/src/omv/xalloc.h b/src/omv/xalloc.h index f79838fc9..777059c95 100644 --- a/src/omv/xalloc.h +++ b/src/omv/xalloc.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Memory allocation functions. - * */ #ifndef __XALLOC_H__ #define __XALLOC_H__ diff --git a/src/sthal/f4/Makefile b/src/sthal/f4/Makefile index a2b3277f1..e8b283185 100644 --- a/src/sthal/f4/Makefile +++ b/src/sthal/f4/Makefile @@ -1,5 +1,11 @@ -# Sources -#SRCS = $(wildcard src/*.c) +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# STHAL Makefile SRCS = $(addprefix src/,\ stm32f4xx_hal_adc.c\ stm32f4xx_hal_adc_ex.c\ diff --git a/src/sthal/f7/Makefile b/src/sthal/f7/Makefile index b44ad63d0..bddec9943 100644 --- a/src/sthal/f7/Makefile +++ b/src/sthal/f7/Makefile @@ -1,5 +1,11 @@ -# Sources -#SRCS = $(wildcard src/*.c) +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# STHAL Makefile SRCS = $(addprefix src/,\ stm32f7xx_hal_adc.c\ stm32f7xx_hal_adc_ex.c\ diff --git a/src/sthal/h7/Makefile b/src/sthal/h7/Makefile index e96bdb9fa..851d99864 100644 --- a/src/sthal/h7/Makefile +++ b/src/sthal/h7/Makefile @@ -1,5 +1,11 @@ -# Sources -#SRCS = $(wildcard src/*.c) +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# STHAL Makefile SRCS = $(addprefix src/,\ stm32h7xx_hal_adc.c\ stm32h7xx_hal_adc_ex.c\ diff --git a/src/uvc/Makefile b/src/uvc/Makefile index 7f1e13956..01b40d599 100755 --- a/src/uvc/Makefile +++ b/src/uvc/Makefile @@ -1,4 +1,11 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# UVC Makefile SRCS = $(wildcard src/*.c) OBJS = $(addprefix $(BUILD)/, $(SRCS:.c=.o)) OBJ_DIRS = $(sort $(dir $(OBJS))) diff --git a/src/uvc/src/main.c b/src/uvc/src/main.c index 53eb00db8..b07f35d30 100644 --- a/src/uvc/src/main.c +++ b/src/uvc/src/main.c @@ -1,3 +1,13 @@ +/* + * This file is part of the OpenMV project. + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * + * This work is licensed under the MIT license, see the file LICENSE for details. + * + * main function. + */ #include STM32_HAL_H #include "usbd_core.h" #include "usbd_desc.h" diff --git a/src/uvc/src/stm32fxxx_it.c b/src/uvc/src/stm32fxxx_it.c index 06eaf47de..7da5041d1 100644 --- a/src/uvc/src/stm32fxxx_it.c +++ b/src/uvc/src/stm32fxxx_it.c @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Interrupt handlers. - * */ /** diff --git a/src/uvc/stm32fxxx.ld.S b/src/uvc/stm32fxxx.ld.S index 10aa1f5af..0bcdbd2d9 100755 --- a/src/uvc/stm32fxxx.ld.S +++ b/src/uvc/stm32fxxx.ld.S @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013/2014 Ibrahim Abdelkader + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * Linker script for STM32F4xx Devices. - * */ /* Entry Point */ diff --git a/src/winc1500/Makefile b/src/winc1500/Makefile index 7f1e13956..1adc4a0dd 100644 --- a/src/winc1500/Makefile +++ b/src/winc1500/Makefile @@ -1,4 +1,12 @@ -# Sources +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# WINC1500 Makefile + SRCS = $(wildcard src/*.c) OBJS = $(addprefix $(BUILD)/, $(SRCS:.c=.o)) OBJ_DIRS = $(sort $(dir $(OBJS))) diff --git a/src/winc1500/include/winc.h b/src/winc1500/include/winc.h index e7190aa20..8b27b4581 100644 --- a/src/winc1500/include/winc.h +++ b/src/winc1500/include/winc.h @@ -1,10 +1,12 @@ /* * This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * WINC1500 driver. - * */ #ifndef __WINC_H__ #define __WINC_H__ diff --git a/src/winc1500/src/winc.c b/src/winc1500/src/winc.c index e45026b72..846bd6f34 100644 --- a/src/winc1500/src/winc.c +++ b/src/winc1500/src/winc.c @@ -1,10 +1,12 @@ -/*/ +/* * This file is part of the OpenMV project. - * Copyright (c) 2013-2017 Ibrahim Abdelkader & Kwabena W. Agyeman + * + * Copyright (c) 2013-2019 Ibrahim Abdelkader + * Copyright (c) 2013-2019 Kwabena W. Agyeman + * * This work is licensed under the MIT license, see the file LICENSE for details. * * WINC1500 driver. - * */ #include "winc.h" #include "common.h" diff --git a/tools/augment_images.py b/tools/augment_images.py index ba4986d80..bc98129c9 100755 --- a/tools/augment_images.py +++ b/tools/augment_images.py @@ -1,9 +1,11 @@ #!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2017-2018 -# Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. -# +# # This script augments an image dataset. import os, sys diff --git a/tools/calc_ir_table.py b/tools/calc_ir_table.py index 8aa06d84b..456d0e448 100755 --- a/tools/calc_ir_table.py +++ b/tools/calc_ir_table.py @@ -1,4 +1,13 @@ -#! /usr/bin/env python +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This scripts generates IR table. + import sys it = iter(l) diff --git a/tools/client.py b/tools/client.py index fe0afcfc1..b57fa31a5 100755 --- a/tools/client.py +++ b/tools/client.py @@ -1,4 +1,13 @@ -#! /usr/bin/env python +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# An example sockets client. + import time import select import socket diff --git a/tools/create_labels.py b/tools/create_labels.py index 7d3c6ccf3..c7b9024ac 100644 --- a/tools/create_labels.py +++ b/tools/create_labels.py @@ -1,10 +1,13 @@ #!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2017-2018 -# Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. -# +# # This script creates test and training label files for an image dataset. +# See https://medium.com/machine-learning-world/using-caffe-with-your-own-dataset-b0ade5d71233 import os, sys import argparse @@ -12,8 +15,6 @@ import random import numpy as np from tqdm import tqdm -# courtsey https://medium.com/machine-learning-world/using-caffe-with-your-own-dataset-b0ade5d71233 - import time import shutil diff --git a/tools/draw_rainbow.py b/tools/draw_rainbow.py index 0ffc103fb..8f8ce2437 100755 --- a/tools/draw_rainbow.py +++ b/tools/draw_rainbow.py @@ -1,4 +1,13 @@ -#! /usr/bin/env python +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script draws the rainbow table. + import colorsys from PIL import Image diff --git a/tools/encode_raw.py b/tools/encode_raw.py index fe2367593..475df6ca3 100755 --- a/tools/encode_raw.py +++ b/tools/encode_raw.py @@ -1,5 +1,12 @@ -#!/usr/bin/env python -# Converts raw RGB565 video to MP4/AVI +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script converts raw RGB565 video to MP4/AVI from sys import argv, exit from array import array diff --git a/tools/gc.py b/tools/gc.py index d6bfd22dc..a6e14bbc2 100755 --- a/tools/gc.py +++ b/tools/gc.py @@ -1,5 +1,13 @@ -#! /usr/bin/env python -# Simple script to visualize GC +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# A simple script to visualize GC + from PIL import Image import sys, os,time, serial diff --git a/tools/gen_fft.py b/tools/gen_fft.py index 3d9d7aa43..7290981e2 100755 --- a/tools/gen_fft.py +++ b/tools/gen_fft.py @@ -1,8 +1,16 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates FFT tables. +# See: https://www.nayuki.io/page/fast-fourier-transform-in-x86-assembly import sys, math -# https://www.nayuki.io/page/fast-fourier-transform-in-x86-assembly sys.stdout.write("const float cos_table[512] = {\n") for i in range(512): diff --git a/tools/gen_invariant.py b/tools/gen_invariant.py index c824be3a4..34584a377 100755 --- a/tools/gen_invariant.py +++ b/tools/gen_invariant.py @@ -1,7 +1,14 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# See: https://en.wikipedia.org/wiki/SRGB (The reverse transformation) -# https://en.wikipedia.org/wiki/SRGB (The reverse transformation) def lin(c): return 100.0 * ((c/12.92) if (c<=0.04045) else pow((c+0.055)/1.055, 2.4)) diff --git a/tools/gen_rainbow.py b/tools/gen_rainbow.py index 7889a7085..7a2e5c6d4 100644 --- a/tools/gen_rainbow.py +++ b/tools/gen_rainbow.py @@ -1,5 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates the rainbow lookup table. NUM_COL=256 SAT=1.0 diff --git a/tools/gen_rgb2lab.py b/tools/gen_rgb2lab.py index 939dba2d8..3c40c7496 100755 --- a/tools/gen_rgb2lab.py +++ b/tools/gen_rgb2lab.py @@ -1,7 +1,15 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates RGB to LAB lookup table. +# See https://en.wikipedia.org/wiki/SRGB (The reverse transformation) -# https://en.wikipedia.org/wiki/SRGB (The reverse transformation) def lin(c): return 100 * ((c/12.92) if (c<=0.04045) else pow((c+0.055)/1.055, 2.4)) diff --git a/tools/gen_rgb2rgb.py b/tools/gen_rgb2rgb.py index 9f9f4179d..d429dc8f6 100755 --- a/tools/gen_rgb2rgb.py +++ b/tools/gen_rgb2rgb.py @@ -1,5 +1,14 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates RGB to RGB lookup table. import sys sys.stdout.write("#include \n") diff --git a/tools/gen_rgb2yuv.py b/tools/gen_rgb2yuv.py index f068ed71e..23e19101e 100755 --- a/tools/gen_rgb2yuv.py +++ b/tools/gen_rgb2yuv.py @@ -1,5 +1,13 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates RGB to YUV lookup table. import sys sys.stdout.write("#include \n") diff --git a/tools/gen_sin_cos.py b/tools/gen_sin_cos.py index 4aef14ac2..8e0d84d07 100755 --- a/tools/gen_sin_cos.py +++ b/tools/gen_sin_cos.py @@ -1,5 +1,13 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 -*- +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script generates sin/cos tables. import sys, math diff --git a/tools/keypoints_editor.py b/tools/keypoints_editor.py index 70abe44db..03be0980d 100755 --- a/tools/keypoints_editor.py +++ b/tools/keypoints_editor.py @@ -1,4 +1,12 @@ #!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# Simple keypoints descriptor editor. import time import struct diff --git a/tools/make_patches.py b/tools/make_patches.py index 381536b27..74421e937 100755 --- a/tools/make_patches.py +++ b/tools/make_patches.py @@ -1,9 +1,11 @@ #!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2017-2018 -# Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. -# +# # This script creates smaller patches from images. import os, sys diff --git a/tools/objfind.py b/tools/objfind.py index 6e96c90f5..b0df854f4 100755 --- a/tools/objfind.py +++ b/tools/objfind.py @@ -1,9 +1,11 @@ -#! /usr/bin/env python +#!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2017-2018 -# Ibrahim Abdelkader & Kwabena W. Agyeman +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. -# +# # This script finds all object files and sorts them by text, bss or data. import os, sys diff --git a/tools/optflow.py b/tools/optflow.py index 2689203f8..a93bccda0 100755 --- a/tools/optflow.py +++ b/tools/optflow.py @@ -1,5 +1,13 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# # pygame + sockets util that receives optical flow data from the camera and draws a path. + import time import select import socket diff --git a/tools/pll.py b/tools/pll.py deleted file mode 100755 index f3d47d7a9..000000000 --- a/tools/pll.py +++ /dev/null @@ -1,11 +0,0 @@ -#! /usr/bin/env python - -PLL_M = 6 -PLL_N = 360 -PLL_Q = 15 -PLL_P = 4 -HSE_VALUE = 12000000 -PLL_VCO = (HSE_VALUE / PLL_M) * PLL_N -print ("PLL_VCO = %d"%PLL_VCO) -print ("SYSCLK = %d"%(PLL_VCO / PLL_P)) -print ("USB/SDIO/RNG =%d"%(PLL_VCO / PLL_Q)) diff --git a/tools/pydfu.py b/tools/pydfu.py index 72549e16d..ad84f72b4 100755 --- a/tools/pydfu.py +++ b/tools/pydfu.py @@ -1,15 +1,14 @@ #!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2013/2014 Ibrahim Abdelkader -# This work is licensed under the MIT license, see the file LICENSE for -# details. - -"""This module implements enough functionality to program the STM32F4xx over -DFU, without requiringdfu-util. - -See app note AN3156 for a description of the DFU protocol. -See document UM0391 for a dscription of the DFuse file. -""" +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This module implements the DFU protocol for STM32 chips. +# See app note AN3156 for a description of the DFU protocol. +# See document UM0391 for a dscription of the DFuse file. from __future__ import print_function diff --git a/tools/pyopenmv.py b/tools/pyopenmv.py index 6d7898123..e27368da3 100755 --- a/tools/pyopenmv.py +++ b/tools/pyopenmv.py @@ -1,6 +1,9 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2013/2014 Ibrahim Abdelkader +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. # # Openmv module. diff --git a/tools/pyopenmv_fb.py b/tools/pyopenmv_fb.py index cdce25954..79b95acb3 100755 --- a/tools/pyopenmv_fb.py +++ b/tools/pyopenmv_fb.py @@ -1,4 +1,13 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# An example script using pyopenmv to grab the framebuffer. + import sys import numpy as np import pygame diff --git a/tools/pyopenmv_multi.py b/tools/pyopenmv_multi.py index e5c02b7b3..c260b1fc8 100644 --- a/tools/pyopenmv_multi.py +++ b/tools/pyopenmv_multi.py @@ -1,9 +1,12 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # This file is part of the OpenMV project. -# Copyright (c) 2013/2014 Ibrahim Abdelkader +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# # This work is licensed under the MIT license, see the file LICENSE for details. # -# Openmv module. +# Openmv module with support for multiple cams. import struct import sys,time diff --git a/tools/pyopenmv_test.py b/tools/pyopenmv_test.py index 4aa9b0507..21a1cf60a 100755 --- a/tools/pyopenmv_test.py +++ b/tools/pyopenmv_test.py @@ -1,4 +1,13 @@ #!/usr/bin/env python2 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This script stress-tests script execution. + import sys, os import pyopenmv import argparse diff --git a/tools/saleae_test.py b/tools/saleae_test.py index 10cb1f243..e091de784 100755 --- a/tools/saleae_test.py +++ b/tools/saleae_test.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# This file is part of the OpenMV project. +# +# Copyright (c) 2013-2019 Ibrahim Abdelkader +# Copyright (c) 2013-2019 Kwabena W. Agyeman +# +# This work is licensed under the MIT license, see the file LICENSE for details. +# +# This scripts uses Saleae Logic to capture openmv I/O data and compare it to known values. + import sys import saleae import argparse