Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: the following arguments are required: video_filename #2

Open
Keesboersma opened this issue Dec 4, 2022 · 10 comments
Open

error: the following arguments are required: video_filename #2

Keesboersma opened this issue Dec 4, 2022 · 10 comments

Comments

@Keesboersma
Copy link

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
Copy link
Owner

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

@Keesboersma
Copy link
Author

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
Copy link
Owner

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

@Keesboersma
Copy link
Author

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
Copy link
Owner

PowercoderJr commented Dec 4, 2022

It can be the same thing as here: #1 (comment) or maybe because of video resize. It's not enough to just match the shape, UI elements must match the original patterns.

@Keesboersma
Copy link
Author

Yeah same problem. how do you make the recording?

@Keesboersma
Copy link
Author

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

@PowercoderJr
Copy link
Owner

Starting from very top of list

@Keesboersma
Copy link
Author

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

@HalfDemon2
Copy link

HalfDemon2 commented Dec 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants