Keras VGGFace名人姓名编码

时间:2019-09-12 13:22:16

标签: python-3.x tensorflow keras face-recognition keras-vggface

我使用keras和keras-vggface 0.6运行TF 1.13

$lineItemShipments = array();
$lineItemShipment = new Google_Service_ShoppingContent_OrderShipmentLineItemShipment();
$lineItemShipment->setLineItemId($item->getId());
$lineItemShipment->setQuantity($item->quantityPending);
$lineItemShipments[] = $lineItemShipment;
$postBody->setLineItems($lineItemShipments);

我得到results = decode_predictions(y) for result in results[0]: confidence = result[1] * 100 #log_str += '%s: %.3f%%' % (result[0], confidence) name = result[0].replace("'", "").replace("b ", "").replace("_", " ") # the name is a str object "b' Emir_Had\xc5\xbeihafizbegovi\xc4\x87'" # (which looks like byte literal but its not) # I strip leftovers and make it: s = str("Emir Had\xc5\xbeihafizbegovi\xc4\x87") b = s.encode() print(b.decode('utf-8')) ,而维基百科显示Emir HadžihafizbegoviÄ

所以我想它不是utf-8。如果我更改为utf-16,它会显示我的象形文字。

0 个答案:

没有答案