This file contains 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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/platform_device.h> | |
#include <linux/err.h> | |
#include <linux/mtd/mtd.h> | |
#include <linux/mtd/partitions.h> | |
MODULE_LICENSE("GPL"); | |
MODULE_AUTHOR("unknown, 2012"); | |
MODULE_DESCRIPTION("mtd hack copied from CyanogenModXT720"); |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <linux/videodev2.h> | |
#include <sys/mman.h> |
This file contains 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
/* | |
* Open the output.rgb with: | |
* display -size 640x480 -depth 8 -colorspace RGB output.rgb | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <fcntl.h> |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <linux/videodev2.h> | |
int main() { | |
int N = 100; | |
char* deviceName = "/dev/video0"; | |
int fd = open(deviceName, O_RDWR); |
This file contains 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
from Tkinter import * | |
from math import * | |
import random | |
GAME_FIELD_PADDING = 0.7 | |
GAME_FIELD_WIDTH = 6.0 | |
GAME_FIELD_HEIGHT = 4.0 | |
PENALTY_AREA_WIDTH = 0.6 | |
PENALTY_AREA_HEIGHT = 2.2 | |
PENALTY_MARK_SIZE = 0.1 |
This file contains 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 cv2.cv as cv | |
class SimpleBallRecognition: | |
def __init__(self, image): | |
self.bgrImage = image | |
self.ycrcbImage = cv.CreateImage(cv.GetSize(self.bgrImage), cv.IPL_DEPTH_8U, 3) | |
self.resultImage = cv.CreateImage(cv.GetSize(self.bgrImage), cv.IPL_DEPTH_8U, 3) | |
self.tmpGrayImage = cv.CreateImage(cv.GetSize(self.bgrImage), cv.IPL_DEPTH_8U, 1) | |
cv.CvtColor(self.bgrImage, self.ycrcbImage, cv.CV_BGR2YCrCb) |