ARTrailer icon indicating copy to clipboard operation
ARTrailer copied to clipboard

Resource initialization failed:

Open feraco opened this issue 4 years ago • 4 comments

Hey This project is so cool. I just tried to test it out. but I got this error in Xcode when i pointed the phone at a movie poster with text. Any idea of how to fix this? ARTrailer[16501:4219137] Resource initialization failed: could not open file /System/Library/LinguisticData/RequiredAssets_en.bundle/AssetData/en.lm/variants.dat

feraco avatar Jul 09 '20 18:07 feraco

Thank you. I believe that is only a warning, not an error. You need a YouTube Data API key to try it. I have updated both the README and the dependencies. The OCR part should work fine, but I don't have quota for my API key and I am not able to test the JSON response. To test the video overlay without quota, you may hard code the video id in the url.

waitingcheung avatar Jul 10 '20 13:07 waitingcheung

I have a YouTube data api key inserted I’ll try again.

Sent from my iPhone

On Jul 10, 2020, at 9:26 AM, Wai Ting Cheung [email protected] wrote:

 Thank you. I believe that is only a warning, not an error. You need a YouTube Data API key to try it. I have updated both the README and the dependencies. The OCR part should work fine, but I don't have quota for my API key and I am not able to test the JSON response.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

feraco avatar Jul 10 '20 15:07 feraco

Does the text need to be a certain size?

Sent from my iPhone

On Jul 10, 2020, at 9:26 AM, Wai Ting Cheung [email protected] wrote:

 Thank you. I believe that is only a warning, not an error. You need a YouTube Data API key to try it. I have updated both the README and the dependencies. The OCR part should work fine, but I don't have quota for my API key and I am not able to test the JSON response.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

feraco avatar Jul 10 '20 18:07 feraco

It supports whatever sizes the VNTextObservation supports. Currently I use the largest text on the poster to search for trailers. You may also implement other heuristics if necessary.

waitingcheung avatar Jul 11 '20 01:07 waitingcheung