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

find_line_segments freezes #479

Open
beckmx opened this issue Feb 17, 2023 · 0 comments
Open

find_line_segments freezes #479

beckmx opened this issue Feb 17, 2023 · 0 comments

Comments

@beckmx
Copy link

beckmx commented Feb 17, 2023

Describe the bug
When using find_line_segments the output of the console gets freezed and looks like it doesnt have enough memory to continue, I havent received any core dump directly but I have to reboot to make it work again.

To Reproduce
Steps to reproduce the behavior:

#find non-infinite lines NOT WORKING
import sensor, image, lcd, time
lcd.init()
sensor.reset()
sensor.set_pixformat(sensor.RGB565) # grayscale is faster
sensor.set_framesize(sensor.QVGA)
sensor.set_windowing((224, 224))
sensor.run(1)
sensor.skip_frames(30)

tim = time.ticks_ms()
while(time.ticks_diff(time.ticks_ms(), tim)<30000):
    img = sensor.snapshot()
    for l in img.find_line_segments(merge_distance = 20, max_theta_diff = 25, roi=(80,60,160,120)):
        print("line-->")
    lcd.display(img)
print("finish")
lcd.clear()

Expected behavior
Lines should be able to be found

Actual behaviour
K210 freezes and stops sending image

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information

  • IDE version: [0.2.5]
  • Firmware version: [v0.6.2-84-g8fcd84a58]
  • Board: [Maix Nano ]
  • OS: [OSX]
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

1 participant