This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import time | |
import sys | |
import os | |
sys.path.append(os.path.join(os.getcwd(), "samples/python/common/")) | |
sys.path.append(os.path.join(os.getcwd(), "samples/python/common/atlas_utils")) | |
print('System init success.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 1993-2018 NVIDIA Corporation. All rights reserved. | |
# | |
# NOTICE TO LICENSEE: | |
# | |
# This source code and/or documentation ("Licensed Deliverables") are | |
# subject to NVIDIA intellectual property rights under U.S. and | |
# international Copyright laws. | |
# | |
# These Licensed Deliverables contained herein is PROPRIETARY and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uvcvideo-objs := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o \ | |
uvc_status.o uvc_isight.o | |
obj-m += uvcvideo.o | |
KERNELDIR ?= /usr/src/linux-headers-3.8.0-19-generic/ | |
PWD := $(shell pwd) | |
default: | |
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* SEUIC CAMERA&JPEG Module | |
* | |
*kernel/driver/jpeg/sep6500_jpeg.c | |
*init this version | |
*08-17-2012 jyb [email protected] | |
*06-03-2013 Guanguojin [email protected] | |
*10-14-2013 Guanguojin [email protected] | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ===================================================================================== | |
* | |
* Filename: client.c | |
* | |
* Description: | |
* | |
* Version: 1.0 | |
* Created: 2013年08月19日 17时19分33秒 | |
* Revision: none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int convert_yuv_to_rgb_pixel(int y, int u, int v) | |
{ | |
unsigned int pixel32 = 0; | |
unsigned char *pixel = (unsigned char *)&pixel32; | |
int r, g, b; | |
r = y + (1.370705 * (v-128)); | |
g = y - (0.698001 * (v-128)) - (0.337633 * (u-128)); | |
b = y + (1.732446 * (u-128)); | |
if(r > 255) r = 255; | |
if(g > 255) g = 255; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ===================================================================================== | |
* | |
* Filename: camera.c | |
* | |
* Description: | |
* | |
* Version: 1.0 | |
* Created: 2013年08月23日 15时54分17秒 | |
* Revision: none |