From 9c9caf1f6941559d5cc5d0ef13ed2477692374fc Mon Sep 17 00:00:00 2001
From: limingzhe <limingzhe@iplayabc.com>
Date: Mon, 7 Nov 2022 16:10:27 +0800
Subject: [PATCH] fix: debug

---
 assets/OP_18/scene/OP_18.js | 107 +++++++++++++++++++++++++++++++++++-
 1 file changed, 104 insertions(+), 3 deletions(-)

diff --git a/assets/OP_18/scene/OP_18.js b/assets/OP_18/scene/OP_18.js
index 8fdc775..82d7deb 100644
--- a/assets/OP_18/scene/OP_18.js
+++ b/assets/OP_18/scene/OP_18.js
@@ -2670,7 +2670,7 @@ cc.Class({
 	getTempWordArr(line, splitText) {
 
 		if (line.characters) {
-			return getArrByCharacters(line);
+			return this.getArrByCharacters(line);
 		}
 
 		const lineBox = {left: line.left, top: line.top, right: line.right, bottom: line.bottom};
@@ -3772,8 +3772,109 @@ 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.07566666603088379,
+									"right":0.42733335494995117,
+									"top":0.07673195749521255,
+									"bottom":0.11539174616336823,
+									"score":1,
+									"content":"CTrace,write,and say.",
+									"characters":[
+											{
+													"character":"C",
+													"centerLoc":[
+															0.109000005,
+															0.096061856
+													],
+													"poly":[
+															0.09233334,
+															0.08059794,
+															0.12733334,
+															0.08059794,
+															0.12733334,
+															0.11281443,
+															0.09233334,
+															0.11281443
+													]
+											},
+											{
+													"character":"T",
+													"centerLoc":[
+															0.14233333,
+															0.094773196
+													],
+													"poly":[
+															0.134,
+															0.08575258,
+															0.15066667,
+															0.08575258,
+															0.15066667,
+															0.10508247,
+															0.134,
+															0.10508247
+													]
+											},
+											{
+													"character":"r",
+													"centerLoc":[
+															0.15733334,
+															0.098639175
+													],
+													"poly":[
+															0.15066667,
+															0.090907216,
+															0.164,
+															0.090907216,
+															0.164,
+															0.10508247,
+															0.15066667,
+															0.10508247
+													]
+											},
+											{
+													"character":"a",
+													"centerLoc":[
+															0.17066666,
+															0.098639175
+													],
+													"poly":[
+															0.164,
+															0.090907216,
+															0.179,
+															0.090907216,
+															0.179,
+															0.10508247,
+															0.164,
+															0.10508247
+													]
+											},
+											{
+													"character":"c",
+													"centerLoc":[
+															0.18733335,
+															0.097350515
+													],
+													"poly":[
+															0.18066667,
+															0.089618556,
+															0.194,
+															0.090907216,
+															0.194,
+															0.10508247,
+															0.18066667,
+															0.10508247
+													]
+											}
+									]
+							}
+					]
+			}
+	}
+		// 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);
-- 
2.21.0