AMF-Placer  2.0
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
figProcess.py
Go to the documentation of this file.
1 from matplotlib import pyplot as plt
2 import numpy as np
3 import cv2
4 import glob
5 
6 densityFileList = glob.glob('DumpLUTFFCoordTrace-*.png')
7 for fileName in densityFileList:
8  #fileName.replace("DumpLUTFFCoordTrace-", "").replace()
9  img = cv2.imread(fileName)
10  if img is None:
11  print("图片读入失败, 请检查图片路径及文件名")
12  exit()
13 
14  height = img.shape[0]
15  width = img.shape[1]
16 
17  img[:, :, 1] = img[:, :, 1]*4
18 
19  cv2.imwrite("./new/"+fileName, img)
20 
21 # ffmpeg -framerate 5 -i DumpCARRYCoordTrace-%d.png video.mp4
22 # ffmpeg -i video.mp4 -vcodec libx264 -crf 40 output.mp4