GPIO can't work when using RPC module

Hello people,
I have requests about GPIO OUTPUT by RPC module. When I using the RPC module the GPIOs can’t work. How to solve this problem ?

Thank you very much.

while(True):
    clock.tick()

    img = sensor.snapshot()#.lens_corr(1.5)#.histeq(adaptive=True, clip_limit=3)
    ROI = (50,50,50,50)
    blobs_1 = img.find_blobs(model_1_thresholds, roi = ROI, area_threshold = 10, merge = True)
    if blobs_1:
        pin6.low()
    else:
        pin6.high()
    img.draw_rectangle(ROI)



    interface.register_callback(jpeg_image_stream)
    interface.register_callback(face_detection)
    interface.register_callback(person_detection)
    interface.register_callback(qrcode_detection)
    interface.register_callback(all_qrcode_detection)
    interface.register_callback(apriltag_detection)
    interface.register_callback(all_apriltag_detection)
    interface.register_callback(datamatrix_detection)
    interface.register_callback(all_datamatrix_detection)
    interface.register_callback(barcode_detection)
    interface.register_callback(all_barcode_detection)
    interface.register_callback(color_detection)
    interface.register_callback(jpeg_snapshot)
    interface.loop()

That’s not how you use the RPC library.

Also, there should be no problem with your GPIOs.

I’m not sure what you are trying to do… you are registering the callbacks inside your loop and then you aren’t calling the main RPC loop. So, the RPC library is doing nothing.