芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

PCB抄板飞思卡尔小车摄像头组图像识别程序

PCB抄板包含图像二值化

单片机源程序如下:
  1. /*!
  2. *   PCB抄板

  3. *
  4. *   PCB抄板
  5. */
  6. #include "include.h"
  7. #include "motor.h"
  8. #include "camera.h"
  9. #include "servo.h"
  10. #include "image_process.h"
  11. #include "menu.h"
  12. #include "flash.h"
  13. #include "ultrasonic.h"
  14. #include "switch.h"
  15. #include "bluetooth.h"
  16. #include "isr.h"
  17. uint8 cnt;



  18. #if defined CAR_1

  19. #define VSYNC_  PTD17
  20. #define HREF_   PTD16
  21. #define PCLK_   PTD18

  22. #endif
  23. /*
  24. #if defined CAR_2

  25. #define VSYNC_  PTC17 //PTD14
  26. #define HREF_   PTC16 //PTD13
  27. #define PCLK_   PTC18 //PTD12

  28. #endif
  29. */
  30. volatile Image gImage;//(60,10)

  31. //! 初始化摄像头
  32. inline static void CameraInit()
  33. {
  34.     IICWriteGpio_inintOV();//初始化设置SCCB引脚
  35.     while (ov7725_probe() == 0)//初始化寄存器
  36.         ;
  37.     ov7725_set_image_size(IMAGE_SIZE);//设置图像大小

  38.     CameraSetImageBuffer(gImage);
  39.     CameraInterruptInit();//中断初始化
  40. }

  41. //! 拨码开关的值
  42. volatile float switch_val = 0;

  43. typedef void (*func_t)(void);
  44. volatile
  45. float k, b;
  46. float SpeedDiffCoeff2(float servoduty)
  47. {
  48.     return k / 1000 * fabsf(servoduty) + b;
  49. }

  50. void PortEHandler(void)
  51. {
  52.     PORT_FUNC(E, 27, nrf_handler);
  53. }



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信