Resource-constrained FPGA implementation of YOLOv2