Comments (2)
@YanShuang17 Hi, thanks for reading these code.
-
The function
is_cross_text
is used to judge if the crop has cut the text region, instead of image boundary. If the text is split, the following gt generation (distance and angle) is complicated. I was little lazy at that time to handle such cases...
Indeed, there are some vertices out of crop range. These points don't matter becausecv2.fillPoly
could automatically filter out outliers. -
After while() loop, if cnt <1000(flag==False), it just means that the crop image doesn't cut any valid text region (
label==1
vertices). And we don't have to care these ignored vertices.
The remain vertices still havelabel==0
which would used in functionget_score_geo
.
I hope this answer helps. Umm, this repo may be not the best implementation and just for my practice. OTZ
from east.
@SakuraRiven Thanks for your explanation!
Sorry, Indeed I didn't read codes about the latter gt generation part, didn't notice cv2.fillPoly(), I just read the data augmentation part and feel something wrong...now I understand, thank you!
from east.
Related Issues (20)
- According to find_min_rect_angle HOT 3
- According to crop_img HOT 1
- 直接加载训练好的模型,也不能复现性能 HOT 1
- ZIP entry not valid HOT 1
- How many epochs were trained for the pretrained model?
- Question: Saving checkpoints
- what is submit.zip HOT 1
- 无法得到作者的精度 HOT 3
- ZeroDivisionError: float division by zero
- 请帮忙看看,测试不了是什么情况 HOT 2
- 执行python train.py 遇到以下问题。望回复 HOT 1
- The sample not present in GT
- add languages
- RGBA support with png images
- Error loading the ZIP archive HOT 1
- Windows运行EAST
- CUDA out of memory on eval.py
- In dataset.py crop_img function sometimes returning negative vertices
- 有没有中文权重文件
- AP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from east.