Image acquisition equipment calling method and device, electronic equipment and storage medium
By using the browser's Web RTC interface to obtain and display a list of image acquisition devices, users can select a target device and obtain its media stream parameters. This solves the cumbersome operation problem of requiring plugin installation in existing technologies, and enables quick switching of image acquisition devices and simplified operation.
Patent Information
- Application Number
- CN202511556719.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2026-02-06
AI Technical Summary
In the existing technology, electronic devices need to install special plug-ins when connecting to different models of enhanced image acquisition devices, which is cumbersome.
By calling the browser's Web RTC media list interface, the system obtains and displays the media device list on the image acquisition page. After the user selects the target device, the system obtains its media stream parameters and starts image acquisition based on these parameters.
It enables quick switching between different image acquisition devices without installing plugins in the browser, simplifying the operation process.
Smart Images

Figure CN121486672A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to a method, apparatus, electronic device, and storage medium for invoking an image acquisition device. Background Technology
[0002] With the rapid development of applications such as digital office, distance education, e-government, and smart retail, image acquisition devices have become an important part of computer peripherals. Among them, the application of some enhanced image acquisition devices is becoming increasingly widespread. For example, the use of document scanners and cameras with advanced functions (such as autofocus and background blur) is becoming more and more common. Among them, document scanners (also known as "high-speed document capture devices") are widely used in scenarios such as bank counters, school paper marking, contract signing, file management, and medical record entry due to their advantages such as convenient operation, high scanning efficiency, and support for 3D object shooting.
[0003] In related technologies, when electronic devices connect to different models of enhanced image acquisition devices, they may need to install corresponding dedicated plugins. Users need to download and install the corresponding drivers according to the device model and operating system, which is a cumbersome process. Summary of the Invention
[0004] This application aims to at least partially address one of the technical problems in the related art.
[0005] Therefore, the first objective of this application is to propose a method for invoking an image acquisition device.
[0006] The second objective of this application is to provide an image acquisition device calling device.
[0007] The third objective of this application is to propose an electronic device.
[0008] The fourth objective of this application is to provide a computer-readable storage medium.
[0009] The fifth objective of this application is to provide a computer program product.
[0010] To achieve the above objectives, a first aspect of this application provides a method for invoking an image acquisition device, comprising: In response to the detection of an access operation to the image capture page, the browser's Web RTC media list interface is invoked to obtain a list of registered media devices on the electronic device currently displaying the image capture page, and the media device list is displayed on the image capture page. In response to detecting a selection operation of a target image acquisition device in the list of media devices, the target media stream parameters of the target image acquisition device are obtained; Based on the target media stream parameters, the target image acquisition device is activated to acquire images.
[0011] To achieve the above objectives, a second aspect of this application provides an image acquisition device recall apparatus, comprising: The first acquisition module is used to respond to the detection of an access operation to the image acquisition page by calling the media list interface of the browser WebRTC to obtain the list of registered media devices on the electronic device currently displaying the image acquisition page, and display the media device list on the image acquisition page. The second acquisition module is used to acquire the target media stream parameters of the target image acquisition device in response to detecting a selection operation of a target image acquisition device in the media device list; The acquisition module is used to start the target image acquisition device to acquire images based on the target media stream parameters.
[0012] To achieve the above objectives, a third aspect of this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method described in the first aspect embodiment above.
[0013] To achieve the above objectives, a fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method described in the first aspect.
[0014] To achieve the above objectives, a fifth aspect of this application provides a computer program product including a computer program that, when executed by a processor, implements the method described in the first aspect.
[0015] The image acquisition device invocation method, apparatus, electronic device, and storage medium provided in this application, upon detecting an access operation to an image acquisition page, invoke the browser's Web RTC media list interface to obtain a list of media devices and display it on the image acquisition page for user selection. If a selection operation of a target image acquisition device in the media device list is detected, the target media stream parameters of the target image acquisition device are obtained, and based on the target media stream parameters, the target image acquisition device is started to perform image acquisition. Therefore, when performing image acquisition using a browser page, the image acquisition device can be directly invoked via the browser's Web RTC without the need for plugins, enabling rapid switching between different models of image acquisition devices.
[0016] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0017] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 A flowchart illustrating an image acquisition device invocation method provided in an embodiment of this application; Figure 2 A flowchart illustrating another image acquisition device invocation method provided in this application embodiment; Figure 3 A flowchart illustrating another image acquisition device invocation method provided in this application embodiment; Figure 4 A schematic diagram illustrating the image acquisition process of an image acquisition device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an image acquisition device calling device provided in an embodiment of this application. Detailed Implementation
[0018] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0019] The following description, with reference to the accompanying drawings, describes an image acquisition device invocation method, apparatus, electronic device, and storage medium according to embodiments of this application.
[0020] Figure 1 This is a flowchart illustrating an image acquisition device invocation method provided in an embodiment of this application.
[0021] like Figure 1 As shown, the method for invoking this image acquisition device includes the following steps: Step 101: In response to the detection of an access operation to the image acquisition page, the browser's Web RTC media list interface is called to obtain the list of registered media devices on the electronic device currently displaying the image acquisition page, and the media device list is displayed on the image acquisition page.
[0022] The image acquisition page can be a browser page. For example, the image acquisition page can be a browser page within a web application provided by the imaging system. The imaging system can provide functions such as image acquisition device capture, image uploading, image downloading, and image viewing.
[0023] In this application, users can open an image acquisition page, select an image acquisition device through the image acquisition page, and use the image acquisition device to acquire images of the target object. Therefore, if the browser detects an access operation to the image acquisition page, it can call the browser's Web RTC media list interface to obtain a list of media devices, and provide the user with a list of media devices to choose from.
[0024] Web RTC (Web Real-Time Communication) consists of a set of standards, protocols, and JavaScript APIs used to enable end-to-end audio, video, and data sharing between browsers. WebRTC provides MediaDevices APIs (such as getUserMedia) that can be used to access multimedia devices such as cameras and microphones, making real-time communication a standard function. Web applications can achieve this through simple JavaScript APIs without relying on third-party plugins or proprietary software. Therefore, the browser in this application has Web RTC built-in, and thus, the list of media devices can be obtained through the browser's Web RTC media list interface.
[0025] The media devices in the media device list are the media devices that have been registered on the electronic device currently displaying the image capture page.
[0026] For example, the media device list may include image acquisition devices built into electronic devices and externally connected image acquisition devices. For instance, the media device list may include built-in cameras and document scanners. A document scanner is a hardware device based on an image sensor that connects to a computer via USB or a network interface to perform functions such as document scanning and object photography.
[0027] For example, the information in the media device list may include, but is not limited to, the identification information, functions, manufacturer, and manufacturing date of the media devices. For instance, the identification information of a media device may include its name and model information.
[0028] After obtaining the list of media devices, the browser can display the list of media devices in the target area of the image capture page.
[0029] Step 102: In response to detecting a selection operation of a target image acquisition device in the media device list, obtain the target media stream parameters of the target image acquisition device.
[0030] The target image acquisition device can be any image acquisition device from the list of media devices. For example, it can be a camera built into an electronic device, or an external document camera.
[0031] Media stream parameters refer to parameters used to describe and control the output quality during the acquisition of images or audio / video. These parameters can affect the visual effects of media content.
[0032] For example, media stream parameters may include, but are not limited to, brightness, color temperature, contrast, color saturation, and sharpness.
[0033] Among them, the target media stream parameters of the target image acquisition device can be the media stream parameters that the target image acquisition device will use for this image acquisition.
[0034] In this application, users can select any image acquisition device from the media device list on the image acquisition page by clicking on that image acquisition device. If the browser detects the selection operation for the target image acquisition device in the media device list, it obtains the target media stream parameters of the target image acquisition device.
[0035] For example, the default media stream parameters of the target image acquisition device can be obtained from the factory settings information of the target image acquisition device, and used as the target media stream parameters. The default media stream parameters can be the media stream parameters set by the manufacturer.
[0036] Because some image acquisition devices can process images after acquisition—for example, after a document scanner captures an image, it needs to perform noise reduction, autofocus, white balance, compression encoding, and other processing—high-resolution images have more pixels, and the computational load (such as matrix operations and filtering algorithms) for each frame increases exponentially. If the processor's computing power is insufficient, the frame rate needs to be reduced to ensure the processing completion of each frame and avoid blurry or stuttering images. Therefore, when connecting different models and types of document scanners, it is necessary to balance parameters such as resolution and frame rate to achieve better shooting results.
[0037] For example, the media stream parameters of the target image acquisition device can be determined based on the remaining resources of the electronic device. For instance, if the electronic device has sufficient remaining resources, the resolution of the target image acquisition device can be the maximum available resolution; if the electronic device has insufficient remaining resources, the resolution of the target image acquisition device can be the lowest possible resolution to avoid blurry images or stuttering.
[0038] Therefore, the resolution can be adaptively determined based on the current remaining resources of the electronic device, avoiding bandwidth waste or lag in low-performance devices caused by a fixed high resolution, and adapting to different hardware capabilities.
[0039] Step 103: Based on the target media stream parameters, start the target image acquisition device to acquire images.
[0040] In this application, a target image acquisition device can be launched using the getUserMedia() method of a browser's Web RTC based on target media stream parameters, so that the target image acquisition device can acquire images of the target object using the target media stream parameters. For example, the target object can be a paper document or a person, etc.
[0041] For example, after acquiring the image from the target image acquisition device, it can be directly rendered and displayed. Alternatively, if the target image acquisition device has image processing capabilities, the image processing capabilities of the target image acquisition device can be used to process the acquired image, and the processed image can be rendered and displayed.
[0042] In this embodiment, upon detecting an access operation to the image acquisition page, the browser's Web RTC media list interface is invoked to obtain a list of media devices. This list is then displayed on the image acquisition page for the user to select. If a selection operation on a target image acquisition device from the media device list is detected, the target media stream parameters of the target image acquisition device are obtained. Based on these parameters, the target image acquisition device is then started to perform image acquisition. Therefore, when performing image acquisition using a browser page, the image acquisition device can be directly invoked via the browser's Web RTC without the need for plugins, enabling rapid switching between different models of image acquisition devices.
[0043] Figure 2 This is a flowchart illustrating another method for invoking an image acquisition device provided in an embodiment of this application.
[0044] like Figure 2 As shown, the image acquisition device invocation method may include the following steps: Step 201: In response to the detection of an access operation to the image capture page, the browser's Web RTC media list interface is called to obtain the list of registered media devices on the electronic device currently displaying the image capture page, and the media device list is displayed on the image capture page.
[0045] In this application, step 201 can be implemented using any of the methods described in the various embodiments of this application, and therefore will not be repeated here.
[0046] Step 202: In response to detecting a selection operation of a target image acquisition device in the media device list, query the device feature library based on the device identifier of the target image acquisition device to obtain the initial media stream parameters of the target image acquisition device.
[0047] The device feature library can be used to store media stream parameters of each image acquisition device connected to the electronic device.
[0048] For example, the device feature library may store the media stream parameters most recently used by each image acquisition device. If the image acquisition device has not used them, it may store the default media stream parameters of the image acquisition device.
[0049] For example, the device feature library can store media stream parameters according to the identification information of the image acquisition device.
[0050] The initial media stream parameters of the target image acquisition device can be the media stream parameters in the device feature library that correspond to the identification information of the target image acquisition device.
[0051] In this application, when the browser starts, it can automatically load the saved device feature library. The browser can query the device feature library based on the identification information of the target image acquisition device to obtain the media stream parameters corresponding to the identification information of the target image acquisition device from the device feature library, thereby obtaining the initial media stream parameters of the target image acquisition device.
[0052] Step 203: Obtain the target media stream parameters based on the initial media stream parameters.
[0053] In some embodiments, the initial media stream parameters of the target image acquisition device obtained from the device feature library can be directly used as the target media stream parameters of the target image acquisition device. For example, after obtaining the target media stream parameters, they can be displayed on the image acquisition page.
[0054] Since the media stream parameters obtained from the device feature library may not meet the user's shooting needs, in some embodiments, the initial media stream parameters of the target image acquisition device and the editing control of the initial media stream parameters can be displayed on the image acquisition page. The user can modify the initial media stream parameters of the target image acquisition device by triggering the editing control of the media stream parameters. If the modification operation of the initial media stream parameters is detected on the image acquisition page, the modified media stream parameters can be obtained and determined as the target media stream parameters of the target image acquisition device.
[0055] The modified initial media stream parameters can be one or more, and there is no limitation on this.
[0056] For example, if there are multiple initial media stream parameters, the user can modify some of the initial media stream parameters and use these modified media stream parameters, along with the unmodified media stream parameters from the initial media stream parameters, as the target media stream parameters.
[0057] For example, if there are multiple initial media stream parameters, the user can modify all media stream parameters and use all the modified media stream parameters as the target media stream parameters.
[0058] Therefore, users can modify the media stream parameters according to their needs, thereby meeting different shooting requirements.
[0059] Step 204: Based on the target media stream parameters, start the target image acquisition device to acquire images.
[0060] In this application, step 204 can be implemented using any of the methods described in the various embodiments of this application, and therefore will not be repeated here.
[0061] Since users may have the same need to use the same image acquisition device multiple times in a row, in order to facilitate the direct use of the media stream parameters used in the previous use, optionally, if the target media stream parameters are obtained by modifying the initial media stream parameters, after acquiring images using the target media stream parameters, the media stream parameters of the target image acquisition device in the device feature library can be updated according to the modified media stream parameters of the target image acquisition device.
[0062] For example, the initial media stream parameters of the target image acquisition device in the device feature library can be updated to the modified media stream parameters.
[0063] Therefore, the most recently modified media stream parameters can be saved through the device feature library, thereby dynamically updating the device feature library for easy subsequent use without having to repeatedly set the media stream parameters each time.
[0064] In this embodiment, the initial media stream parameters of the target image acquisition device are obtained from the device feature library by querying the identification information of the target image acquisition device, and then the target media stream parameters are obtained based on the initial media stream parameters. This improves the efficiency of obtaining media stream parameters and enables the adaptation of basic functions of multiple image acquisition devices without the need for local plugins.
[0065] Figure 3 This is a flowchart illustrating another method for invoking an image acquisition device provided in an embodiment of this application.
[0066] like Figure 3 As shown, the image acquisition device invocation method may include the following steps: Step 301: In response to the detection of an access operation to the image acquisition page, the browser's Web RTC media list interface is called to obtain the list of registered media devices on the electronic device currently displaying the image acquisition page, and the media device list is displayed on the image acquisition page.
[0067] Step 302: In response to detecting a selection operation of a target image acquisition device in the media device list, obtain the target media stream parameters of the target image acquisition device.
[0068] Step 303: Based on the target media stream parameters, start the target image acquisition device to acquire images.
[0069] In this application, steps 301-303 can be implemented using any of the methods described in the various embodiments of this application, and therefore will not be repeated here.
[0070] Step 304: Determine the shooting scene of the target image acquisition device based on the attribute information of the target image acquisition device.
[0071] Since different image acquisition devices may be used in different scenarios, for example, image acquisition devices with high-resolution cameras can be used for document shooting, while image acquisition devices in front of electronic devices are mainly used for shooting portraits, office images, etc. Therefore, in this application, the current shooting scenario of the target image acquisition device can be determined based on the attribute information of the target image acquisition device.
[0072] The attribute information may include, but is not limited to, functional information, resolution, etc.
[0073] Step 305: Invoke the target image processing algorithm that matches the shooting scene to process the image acquired by the target image acquisition device.
[0074] Since browsers offer limited control over advanced functions of image acquisition devices, such as focus and lighting adjustment, the acquired images can be optimized through software. In this application, the target image processing algorithm corresponding to the shooting scene of the target image acquisition device can be determined based on the correspondence between the shooting scene and the image processing algorithm, and then this target image processing algorithm can be invoked to process the image acquired by the target image acquisition device.
[0075] For example, based on the shooting scene, an image processing algorithm corresponding to the shooting scene of the target image acquisition device can be queried in a lightweight image processing library, and the image processing algorithm corresponding to the shooting scene can be determined as the target image processing algorithm.
[0076] As an example, consider scenarios where documents, such as receipts, are photographed using a high-resolution camera. Document photography can suffer from issues like document tilt, high background noise, and blurred text edges. Therefore, lightweight image processing libraries can include image processing algorithms suitable for such scenarios, such as tilt correction algorithms, background cleansing algorithms, and contrast enhancement algorithms. Specifically, tilt correction algorithms can automatically correct the document's shooting angle through perspective transformation, restoring the rectangular outline. Background cleansing algorithms can improve OCR (Optical Character Recognition) recognition rates through binarization, noise reduction to remove shadows and noise points. Contrast enhancement algorithms can improve uneven lighting through histogram equalization, highlighting text edges and enhancing contrast.
[0077] As an example, in the scenario of taking portrait or office images through the front-facing camera of an electronic device, the lighting conditions in the office may result in poor skin tone and high facial noise in the portrait. Therefore, the image processing algorithms matched to this scenario in a lightweight image processing library can include lighting optimization algorithms, edge smoothing algorithms, etc. Among them, the lighting optimization algorithm can optimize the lighting by adjusting the brightness or contrast, or by optimizing the skin tone area through HSV color gamut detection. The edge smoothing algorithm can reduce noise in portrait scenes, preserve facial details, and achieve the purpose of smoothing edges.
[0078] Therefore, using a lightweight image library for image acquisition optimization can not only adapt to different shooting scenarios and enhance the original images output by different image acquisition devices in real time to improve image quality, but also has a fast processing speed.
[0079] In this embodiment, the shooting scene of the image acquisition device is determined based on its attribute information, and an image processing algorithm matching the shooting scene is invoked to process the image acquired by the image acquisition device. Thus, by automatically identifying the shooting scene based on the attribute information of the image acquisition device and invoking corresponding image processing algorithms to enhance the image for different shooting scenes, the automatic matching of the shooting scene and enhancement strategy on the browser page can meet the image processing needs of different shooting scenes. This can compensate for the browser's inability to access advanced hardware functions, improve processing efficiency, and reduce resource waste.
[0080] To facilitate understanding of the image acquisition device invocation method in this application, a high-speed document scanner will be used as an example below, combined with... Figure 4 To explain, Figure 4 This is a schematic diagram of the image acquisition process of an image acquisition device provided in an embodiment of this application.
[0081] like Figure 4As shown, the document scanner is connected to the computer via USB. The computer's operating system detects the device input through the USB controller and then sends a standard USB request to the document scanner. The document scanner returns device information, and the computer's operating system registers the document scanner to the system's device manager based on the device information.
[0082] When a user visits the image capture page of the web application, the web application calls the device enumeration interface (i.e., the media list interface mentioned above) through the enumerateDevice method provided by the browser's Web RTC. This retrieves the list of devices registered by the driver from the computer's operating system and returns a media device list to the web application. The web application displays this media device list on the image capture page for the user to select. When the user selects the document camera from the list, the web application retrieves the initial media stream parameters of the document camera from the device feature library and displays them. Based on these parameters, the web application calls the getUserMedia method provided by the browser's Web RTC to open the document camera and begin capturing images. The browser's Web RTC retrieves the data stream by calling the computer's operating system interface. The computer's operating system sends a standard USB request to the document camera. The document camera captures images through its sensor based on this request and returns the raw frame sequence to the computer's operating system. The computer's operating system performs standardization processing (e.g., format conversion) and returns a continuous video stream to the browser's Web RTC. The browser's Web RTC converts this stream into a MediaStream object and returns the MediaStream media stream to the web application. The web application renders and preprocesses the images using the video tag. Additionally, the web application can also upload captured images to the image backend via an upload interface. Figure 4 (Not shown in the image).
[0083] The image acquisition device invocation method of this application embodiment determines the media stream parameters of the selected image acquisition device based on the device feature library, enabling different models of image acquisition devices, such as different models of document scanners, to connect and be invoked using media stream parameters. It can realize connection and use of basic functions for different models of image acquisition devices, and users do not need to download special plugins for image acquisition devices.
[0084] In addition, by processing the images acquired by the image acquisition device using a lightweight image processing library based on the device's attribute information, the image acquisition quality can be improved, compensating for the browser's inability to access advanced hardware functions and thus enhancing image quality.
[0085] To implement the above embodiments, this application also proposes an image acquisition device recall apparatus.
[0086] Figure 5This is a schematic diagram of the structure of an image acquisition device calling device provided in an embodiment of this application.
[0087] like Figure 5 As shown, the image acquisition device calling device 500 includes: The first acquisition module 510 is used to respond to the detection of an access operation to the image acquisition page by calling the media list interface of the browser Web RTC to obtain the list of registered media devices on the electronic device currently displaying the image acquisition page, and display the media device list on the image acquisition page. The second acquisition module 520 is used to acquire the target media stream parameters of the target image acquisition device in response to detecting a selection operation of a target image acquisition device in the media device list. The acquisition module 530 is used to start the target image acquisition device to acquire images based on the target media stream parameters.
[0088] Furthermore, in one possible implementation of this application embodiment, the second acquisition module 520 is used for: Based on the identification information of the target image acquisition device, the device feature library is queried to obtain the initial media stream parameters of the target image acquisition device; wherein, the device feature library is used to store the media stream parameters of each image acquisition device connected to the electronic device; Based on the initial media stream parameters, obtain the target media stream parameters.
[0089] Furthermore, in one possible implementation of this application embodiment, the second acquisition module 520 is used for: In response to detecting a modification operation on the initial media stream parameters on the image acquisition page, the modified media stream parameters are obtained; The modified media stream parameters are determined as the target media stream parameters.
[0090] Furthermore, in one possible implementation of this application embodiment, the device may further include: The update module is used to update the initial media stream parameters in the device feature library to the modified media stream parameters.
[0091] Furthermore, in one possible implementation of this application embodiment, the device may further include: The determining module is used to determine the shooting scene of the target image acquisition device based on the attribute information of the target image acquisition device; The calling module is used to call the target image processing algorithm that matches the shooting scene to process the image acquired by the target image acquisition device.
[0092] Furthermore, in one possible implementation of this application embodiment, the calling module is used for: Based on the shooting scene, query the lightweight image processing library for the image processing algorithm corresponding to the shooting scene; The image processing algorithm corresponding to the shooting scene is determined as the target image processing algorithm; The target image processing algorithm is invoked to process the image acquired by the target image acquisition device.
[0093] It should be noted that the foregoing explanation of the image acquisition device invocation method embodiment also applies to the image acquisition device invocation device of this embodiment, and will not be repeated here.
[0094] In this embodiment, upon detecting an access operation to the image acquisition page, the browser's Web RTC media list interface is invoked to obtain a list of media devices. This list is then displayed on the image acquisition page for the user to select. If a selection operation on a target image acquisition device from the media device list is detected, the target media stream parameters of the target image acquisition device are obtained. Based on these parameters, the target image acquisition device is then started to perform image acquisition. Therefore, when performing image acquisition using a browser page, the image acquisition device can be directly invoked via the browser's Web RTC without the need for plugins, enabling rapid switching between different models of image acquisition devices.
[0095] To implement the above embodiments, this application also proposes an electronic device, including: a processor and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method provided in the foregoing embodiments. To implement the above embodiments, this application also proposes a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided in the foregoing embodiments.
[0096] To implement the above embodiments, this application also proposes a computer program product, including a computer program that, when executed by a processor, implements the methods provided in the foregoing embodiments.
[0097] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0098] It should be noted that personal information collected from users should be used for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. Furthermore, such collection / sharing should only be conducted after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign an agreement / authorization that includes authorization of relevant user information before the user uses the function. In addition, any necessary steps must be taken to protect and safeguard access to such personal information data and ensure that others with access to personal information data comply with their privacy policies and procedures.
[0099] This application is intended to provide an implementation scheme for users to selectively prevent the use or access to their personal information data. Specifically, this disclosure is intended to provide hardware and / or software to prevent or block access to such personal information data. Once personal information data is no longer needed, risks can be minimized by restricting data collection and deleting data. Furthermore, where applicable, such personal information is de-identified to protect user privacy.
[0100] In the foregoing descriptions of the embodiments, the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0101] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0102] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0104] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0105] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0107] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for invoking an image acquisition device, characterized in that, include: In response to the detection of an access operation to the image capture page, the browser's Web RTC media list interface is invoked to obtain a list of registered media devices on the electronic device currently displaying the image capture page, and the media device list is displayed on the image capture page. In response to detecting a selection operation of a target image acquisition device in the list of media devices, the target media stream parameters of the target image acquisition device are obtained; Based on the target media stream parameters, the target image acquisition device is activated to acquire images.
2. The method according to claim 1, characterized in that, The acquisition of the target media stream parameters of the target image acquisition device includes: Based on the identification information of the target image acquisition device, the device feature library is queried to obtain the initial media stream parameters of the target image acquisition device; wherein, the device feature library is used to store the media stream parameters of each image acquisition device connected to the electronic device; Based on the initial media stream parameters, obtain the target media stream parameters.
3. The method according to claim 2, characterized in that, The step of obtaining the target media stream parameters based on the initial media stream parameters includes: In response to detecting a modification operation on the initial media stream parameters on the image acquisition page, the modified media stream parameters are obtained; The modified media stream parameters are determined as the target media stream parameters.
4. The method according to claim 3, characterized in that, The method further includes: Update the initial media stream parameters in the device feature library to the modified media stream parameters.
5. The method according to claim 1, characterized in that, The method further includes: The shooting scene of the target image acquisition device is determined based on the attribute information of the target image acquisition device; The target image processing algorithm that matches the shooting scene is invoked to process the image acquired by the target image acquisition device.
6. The method according to claim 5, characterized in that, The step of invoking a target image processing algorithm that matches the shooting scene to process the image acquired by the target image acquisition device includes: Based on the shooting scene, query the lightweight image processing library for the image processing algorithm corresponding to the shooting scene; The image processing algorithm corresponding to the shooting scene is determined as the target image processing algorithm; The target image processing algorithm is invoked to process the image acquired by the target image acquisition device.
7. An image acquisition device recalling apparatus, characterized in that, include: The first acquisition module is used to respond to the detection of an access operation to the image acquisition page by calling the media list interface of the browser's Web RTC to obtain the list of registered media devices on the electronic device currently displaying the image acquisition page, and display the media device list on the image acquisition page. The second acquisition module is used to acquire the target media stream parameters of the target image acquisition device in response to detecting a selection operation of a target image acquisition device in the media device list; The acquisition module is used to start the target image acquisition device to acquire images based on the target media stream parameters.
8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-6.
Citation Information
Cited By
Method for directly calling native technology of material high-speed photographic apparatus by B / S (Browser / Server) architecture service system
CN120295624A
