We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在用MacBook用该工具时,发现最终裁剪的表格总是原始表格部分内容,不完整。
参考python使用selenium截屏后再截取指定坐标图片定位不准确是为什么 回答,解决了问题。
更改以下位置代码
TableGeneration/TableGeneration/GenerateTable.py
Lines 207 to 227 in d943483
为以下:
ratio = 2 max_height, max_width = window_size["height"], window_size["width"] max_height *= ratio max_width *= ratio contens = [] for idx in range(id_count): e = WebDriverWait(self.driver, 3).until( EC.presence_of_element_located((By.ID, str(idx))) ) txt = e.text.strip() lentext = len(txt) loc = e.location size_ = e.size xmin = loc["x"] ymin = loc["y"] xmax = int(size_["width"] + xmin) ymax = int(size_["height"] + ymin) xmin *= ratio ymin *= ratio xmax *= ratio ymax *= ratio contens.append( [lentext, txt, [[xmin, ymin], [xmax, ymin], [xmax, ymax], [xmin, ymax]]] )
The text was updated successfully, but these errors were encountered:
欢迎提个pr
Sorry, something went wrong.
没问题,我整理一下。
之前也一直想写这个工具来着,后来发现您先做了。巧了不是。
No branches or pull requests
在用MacBook用该工具时,发现最终裁剪的表格总是原始表格部分内容,不完整。
参考python使用selenium截屏后再截取指定坐标图片定位不准确是为什么 回答,解决了问题。
更改以下位置代码
TableGeneration/TableGeneration/GenerateTable.py
Lines 207 to 227 in d943483
为以下:
The text was updated successfully, but these errors were encountered: