Commit 2eaa8068 authored by limingzhe's avatar limingzhe

fix: debug

parent ad67eb36
No preview for this file type
......@@ -266,6 +266,13 @@ cc.Class({
left, bottom
]
this.ques_region_opt = {
left,
top,
right,
bottom
}
console.log(' this.ques_region: ' , this.ques_region);
console.log('regionItem: ', regionItem);
......@@ -505,8 +512,8 @@ cc.Class({
"part_name": this.data.part_name, //"d",
"is_hand_writing": true,
"is_line_link": false,
'ques_region' : this.ques_region
"write_regions": [this.ques_region_opt]
// 'ques_region' : []
}
cw.openOsmoHandwriting(para);
......@@ -3736,8 +3743,8 @@ cc.Class({
getPhotoData(cb) {
const tmpData1 = {"result":{"text":[{"left":0.07833333313465118,"right":0.4266666769981384,"top":0.08086597919464111,"bottom":0.11437113583087921,"score":1,"content":"CTrace,write,and say."},{"left":0.07999999821186066,"right":0.9399999976158142,"top":0.12210309505462646,"bottom":0.1904020607471466,"score":0.9897310733795166,"content":"AAAAAAAAA"},{"left":0.47999998927116394,"right":0.9383333325386047,"top":0.23937112092971802,"bottom":0.29220619797706604,"score":0.9846656918525696,"content":"a aaa a"}]}}
// const tmpData1 = { "result" : { "text" : [ { "bottom" : 0.12310344725847244, "top" : 0.0817241370677948, "score" : 6.4884182106673037e+28, "content" : "CTrace, write,and say.", "right" : 0.4464285671710968, "left" : 0.071428574621677399 }, { "bottom" : 0.21137930452823639, "top" : 0.12448275834321976, "score" : 6.4884182106673037e+28, "content" : "AAA AAA", "right" : 0.69285714626312256, "left" : 0.078571431338787079 }, { "bottom" : 0.30241379141807556, "top" : 0.25689655542373657, "score" : 6.4884182106673037e+28, "content" : "O1o", "right" : 0.39642858505249023, "left" : 0.19285714626312256 } ] }}
// const tmpData1 = {"result":{"text":[{"left":0.07833333313465118,"right":0.4266666769981384,"top":0.08086597919464111,"bottom":0.11437113583087921,"score":1,"content":"CTrace,write,and say."},{"left":0.07999999821186066,"right":0.9399999976158142,"top":0.12210309505462646,"bottom":0.1904020607471466,"score":0.9897310733795166,"content":"AAAAAAAAA"},{"left":0.47999998927116394,"right":0.9383333325386047,"top":0.23937112092971802,"bottom":0.29220619797706604,"score":0.9846656918525696,"content":"a aaa a"}]}}
const tmpData1 = { "result" : { "text" : [ { "bottom" : 0.12310344725847244, "top" : 0.0817241370677948, "score" : 6.4884182106673037e+28, "content" : "CTrace, write,and say.", "right" : 0.4464285671710968, "left" : 0.071428574621677399 }, { "bottom" : 0.21137930452823639, "top" : 0.12448275834321976, "score" : 6.4884182106673037e+28, "content" : "AAA AAA", "right" : 0.69285714626312256, "left" : 0.078571431338787079 }, { "bottom" : 0.30241379141807556, "top" : 0.25689655542373657, "score" : 6.4884182106673037e+28, "content" : "O1o", "right" : 0.39642858505249023, "left" : 0.19285714626312256 } ] }}
// const tmpData1 = {"result":{"text":[{"left":0.08800879865884781,"right":0.42794278264045715,"top":0.010067113675177097,"bottom":0.16778524219989777,"score":1,"content":"CTrace,write,and say."},{"left":0.09350935369729996,"right":0.48184818029403687,"top":0.1845637559890747,"bottom":0.46644294261932373,"score":0.9882554411888123,"content":"AAAA"},{"left":0.5731573104858398,"right":0.6347634792327881,"top":0.20469798147678375,"bottom":0.463087260723114,"score":0.9638504385948181,"content":"A"},{"left":0.751375138759613,"right":0.8129813075065613,"top":0.20134228467941284,"bottom":0.4563758373260498,"score":0.8285241723060608,"content":"A"},{"left":0.5665566325187683,"right":0.6281628012657166,"top":0.6677852272987366,"bottom":0.8791946172714233,"score":0.8251835703849792,"content":"a"}]}}
// const tmpData1 = {"result":{"text":[{"left":0,"right":0.33299797773361206,"top":0.0971250981092453,"bottom":0.12354312092065811,"content":1,"text":"race,write,and say."},{"left":0.14084507524967194,"right":0.9476861357688904,"top":0.13131313025951385,"bottom":0.21445220708847046,"content":0.9066159129142761,"text":"AAAA-A-AA"},{"left":0.28470826148986816,"right":0.9315895438194275,"top":0.2735042870044708,"bottom":0.32867133617401123,"content":0.9610617756843567,"text":"aaaq qa"},{"left":0.03018108569085598,"right":0.6438632011413574,"top":0.37995338439941406,"bottom":0.41025641560554504,"content":1,"text":"Listen. Then write Aa or cross it out. o5"},{"left":0.636820912361145,"right":0.7655935883522034,"top":0.4755244851112366,"bottom":0.5314685106277466,"content":0.8729087710380554,"text":"Aa"},{"left":0.10663983970880508,"right":0.11167001724243164,"top":0.5788655877113342,"bottom":0.6021755933761597,"content":0.7464486360549927,"text":"4"},{"left":0.1589537262916565,"right":0.29074445366859436,"top":0.5936285853385925,"bottom":0.6596736311912537,"content":0.8887001872062683,"text":"Aa"},{"left":0.6549295783042908,"right":0.7786720395088196,"top":0.5920745730400085,"bottom":0.6643356680870056,"content":0.9307805895805359,"text":"Aa"},{"left":0.11267605423927307,"right":0.4034205377101898,"top":0.7700077891349792,"bottom":0.807303786277771,"content":1,"text":"Lusten and chant, bd"},{"left":0.28973841667175293,"right":0.7162978053092957,"top":0.9254079461097717,"bottom":0.9712509512901306,"content":0.9342746138572693,"text":"户藤미 Ow"},{"left":0.8158953785896301,"right":0.7203219532966614,"top":0.9611499905586243,"bottom":0.9370629191398621,"content":0.7845855951309204,"text":"0章"}]}}
cb(tmpData1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment