PowercoderJr / lords-gifts-counter

Guild gifts counter for mobile game Lords Mobile for automatic accounting
MIT License
8 stars 4 forks source link

error: the following arguments are required: video_filename #2

Open Keesboersma opened 1 year ago

Keesboersma commented 1 year ago

hello,

Where do I enter the path for the video? I get this message every time: error: the following arguments are required: video_filename.

PowercoderJr commented 1 year ago

Hi, pass it as parameter to command line after script name. For example: python analyze.py myvideo.mp4

Keesboersma commented 1 year ago

Thanx that part works. now i get the following: PS C:\Python\lords-gifts-counter-master> python analyze.py video1.MP4 Read video 1280x720 Error: unsupported resolution Currently supported resolutions: 2340x1080

PowercoderJr commented 1 year ago

Sorry, as it said, only one resolution supported. It is needed to create markup manually for each screen.

Keesboersma commented 1 year ago

I modified the video and now it works. but now i have the following: Data loaded successfully Traceback (most recent call last): File "C:\Python\lords-gifts-counter-master\analyze.py", line 201, in main(args) File "C:\Python\lords-gifts-counter-master\analyze.py", line 162, in main cv2.imshow('sender_fragment', sender_fragment) ^^^^^^^^^^^^^^^^ UnboundLocalError: cannot access local variable 'sender_fragment' where it is not associated with a value PS C:\Python\lords-gifts-counter-master>

Sorry for all these questions

PowercoderJr commented 1 year ago

It can be the same thing as here: https://github.com/PowercoderJr/lords-gifts-counter/issues/1#issuecomment-864301199 or maybe because of video resize. It's not enough to just match the shape, UI elements must match the original patterns.

Keesboersma commented 1 year ago

Yeah same problem. how do you make the recording?

Keesboersma commented 1 year ago

Doesnt work with option 1 and 2 but does with version 0 But no data in the excel file

PowercoderJr commented 1 year ago

Starting from very top of list

Keesboersma commented 1 year ago

I actually mean how to make a video with a resolution of: 2340x1080

HalfDemon2 commented 9 months ago

You can go on a website and do it, or you can use da Vinci resolve to upscale the resolution