vin

PHP VIN number validation code

戏子无情 提交于 2019-11-29 00:54:16
问题 Does anyone know any Vehicle Identification Number (wiki) validation code written in PHP? I just need to check if the entered vin number is correct or not? 回答1: Here's something I wrote up real quick using the example in the wikipedia article. Not guaranteed perfect or bug free or super efficient, but should provide you with a solid starting point: Note : I included the edits provided by Confluence below, making the procedure slightly more succinct. function validate_vin($vin) { $vin =

vin capture demo程序

吃可爱长大的小学妹 提交于 2019-11-27 02:38:34
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <getopt.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <asm/types.h> #include <linux/videodev2.h> #include <linux/fb.h> #define CLEAR(x) memset (&(x), 0, sizeof (x)) #define VIDEO_WIDTH 1280 #define VIDEO_HEIGHT 720 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 *