Model input size determination method, electronic device and storage medium

    公开(公告)号:US12118704B2

    公开(公告)日:2024-10-15

    申请号:US17526325

    申请日:2021-11-15

    摘要: A model input size determination method, an electronic device and a storage medium are provided, the method includes acquiring a plurality of test images and a defect result; and encoding each test image to obtain an encoding vector. The encoding vector is decoded to obtain a reconstructed image, then a reconstruction error and a plurality of sub-vectors are calculated; the plurality of sub-vectors is inputted into a Gaussian mixture model, then a plurality of sub-probabilities, an estimated probability and a test error are determined; a detection result in the test image according to the test error and the corresponding error threshold are obtained; an accuracy according to the detection result and the defect result are determined, and an input size is selected from the plurality of preset sizes according to the accuracy. An accuracy of defect detection in manufacturing can be improved.

    Method for detecting defects in product and computer device

    公开(公告)号:US12045970B2

    公开(公告)日:2024-07-23

    申请号:US17561821

    申请日:2021-12-24

    IPC分类号: G06T7/00 G01N21/88 G06T7/11

    摘要: A method for detecting defects in product applied in a computer device inputs an image of a product under test to an automatic encoder to obtain a reconstructed image, and the image is segmented into N image blocks and the reconstructed image is segmented into N image blocks. The computer device associates each of the N testing blocks with one reconstructed blocks according to positions of the N testing blocks in the image and positions of the N reconstructed blocks in the reconstructed image. The computer device further calculates mean square errors between each of the N testing blocks and each of the N reconstructed blocks, and associates each mean square error with each of the N testing blocks, whether the product has defects being determined based on the mean square errors corresponding to each of the N testing blocks.

    DRIVING ASSISTANCE ALGORITHM TESTING METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM

    公开(公告)号:US20240233396A1

    公开(公告)日:2024-07-11

    申请号:US18195340

    申请日:2023-05-09

    IPC分类号: G06V20/58 B60W40/12

    摘要: A driving assistance algorithm testing method applied to an electronic device is provided. In the method, the electronic device obtains a driving assistance algorithm to be tested of a vehicle and multiple specification parameters and models a virtual scene on a simulator according to the preset parameters and generates an initial image according to the virtual scene. The electronic device obtains a target image corresponding to the driving assistance algorithm by converting the initial image according to a preset sensor conversion algorithm and the specification parameters, and generates a target vehicle control instruction according to the driving assistance algorithm, the target image, a vehicle control conversion algorithm, and the specification parameters, and scores the driving assistance algorithm by executing the target vehicle control instruction in the virtual scene of the simulator. The method can improve a verification accuracy of the driving assistance algorithm.